eslint-cli-bundle 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/eslint.js +186 -15
  2. package/package.json +1 -1
package/dist/eslint.js CHANGED
@@ -84,14 +84,185 @@ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.2
84
84
  `)},words:function(e){return e.length?e.split(/[ ]+/):[]},unwords:function(e){return e.join(` `)},chars:function(e){return e.split(``)},unchars:function(e){return e.join(``)},reverse:function(e){return e.split(``).reverse().join(``)},repeat:n(function(e,t){var n=``,r;for(r=0;r<e;++r)n+=t;return n}),capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return e.replace(/[-_]+(.)?/g,function(e,t){return(t??``).toUpperCase()})},dasherize:function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,function(e,t,n){return t+`-`+(n.length>1?n:n.toLowerCase())}).replace(/^([A-Z]+)/,function(e,t){return t.length>1?t+`-`:t.toLowerCase()})}};function n(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),go=d(((e,t)=>{var n=N(function(e,t){return e>t?e:t}),r=N(function(e,t){return e<t?e:t}),i=function(e){return-e},a=Math.abs,o=function(e){return e<0?-1:e>0?1:0},s=N(function(e,t){return~~(e/t)}),c=N(function(e,t){return e%t}),l=N(function(e,t){return Math.floor(e/t)}),u=N(function(e,t){var n;return(e%(n=t)+n)%n}),d=(function(e){return 1/e}),f=Math.PI,p=f*2,m=Math.exp,h=Math.sqrt,g=Math.log,_=N(function(e,t){return e**+t}),v=Math.sin,y=Math.tan,b=Math.cos,x=Math.asin,S=Math.acos,C=Math.atan,w=N(function(e,t){return Math.atan2(e,t)}),T=function(e){return~~e},E=Math.round,D=Math.ceil,O=Math.floor,k=function(e){return e!==e},A=function(e){return e%2==0},j=function(e){return e%2!=0},M=N(function(e,t){var n;for(e=Math.abs(e),t=Math.abs(t);t!==0;)n=e%t,e=t,t=n;return e});t.exports={max:n,min:r,negate:i,abs:a,signum:o,quot:s,rem:c,div:l,mod:u,recip:d,pi:f,tau:p,exp:m,sqrt:h,ln:g,pow:_,sin:v,tan:y,cos:b,acos:S,asin:x,atan:C,atan2:w,truncate:T,round:E,ceiling:D,floor:O,isItNaN:k,even:A,odd:j,gcd:M,lcm:N(function(e,t){return Math.abs(Math.floor(e/M(e,t)*t))})};function N(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),_o=d(((e,t)=>{var n,r,i,a,o,s,c,l,u,d={}.toString;n=fo(),r=po(),i=mo(),a=ho(),o=go(),s=function(e){return e},c=f(function(e,t){return d.call(t).slice(8,-1)===e}),l=f(function(e,t){var n,r=[];for(n=0;n<e;++n)r.push(t);return r}),a.empty=r.empty,a.slice=r.slice,a.take=r.take,a.drop=r.drop,a.splitAt=r.splitAt,a.takeWhile=r.takeWhile,a.dropWhile=r.dropWhile,a.span=r.span,a.breakStr=r.breakList,u={Func:n,List:r,Obj:i,Str:a,Num:o,id:s,isType:c,replicate:l},u.each=r.each,u.map=r.map,u.filter=r.filter,u.compact=r.compact,u.reject=r.reject,u.partition=r.partition,u.find=r.find,u.head=r.head,u.first=r.first,u.tail=r.tail,u.last=r.last,u.initial=r.initial,u.empty=r.empty,u.reverse=r.reverse,u.difference=r.difference,u.intersection=r.intersection,u.union=r.union,u.countBy=r.countBy,u.groupBy=r.groupBy,u.fold=r.fold,u.foldl=r.foldl,u.fold1=r.fold1,u.foldl1=r.foldl1,u.foldr=r.foldr,u.foldr1=r.foldr1,u.unfoldr=r.unfoldr,u.andList=r.andList,u.orList=r.orList,u.any=r.any,u.all=r.all,u.unique=r.unique,u.uniqueBy=r.uniqueBy,u.sort=r.sort,u.sortWith=r.sortWith,u.sortBy=r.sortBy,u.sum=r.sum,u.product=r.product,u.mean=r.mean,u.average=r.average,u.concat=r.concat,u.concatMap=r.concatMap,u.flatten=r.flatten,u.maximum=r.maximum,u.minimum=r.minimum,u.maximumBy=r.maximumBy,u.minimumBy=r.minimumBy,u.scan=r.scan,u.scanl=r.scanl,u.scan1=r.scan1,u.scanl1=r.scanl1,u.scanr=r.scanr,u.scanr1=r.scanr1,u.slice=r.slice,u.take=r.take,u.drop=r.drop,u.splitAt=r.splitAt,u.takeWhile=r.takeWhile,u.dropWhile=r.dropWhile,u.span=r.span,u.breakList=r.breakList,u.zip=r.zip,u.zipWith=r.zipWith,u.zipAll=r.zipAll,u.zipAllWith=r.zipAllWith,u.at=r.at,u.elemIndex=r.elemIndex,u.elemIndices=r.elemIndices,u.findIndex=r.findIndex,u.findIndices=r.findIndices,u.apply=n.apply,u.curry=n.curry,u.flip=n.flip,u.fix=n.fix,u.over=n.over,u.split=a.split,u.join=a.join,u.lines=a.lines,u.unlines=a.unlines,u.words=a.words,u.unwords=a.unwords,u.chars=a.chars,u.unchars=a.unchars,u.repeat=a.repeat,u.capitalize=a.capitalize,u.camelize=a.camelize,u.dasherize=a.dasherize,u.values=i.values,u.keys=i.keys,u.pairsToObj=i.pairsToObj,u.objToPairs=i.objToPairs,u.listsToObj=i.listsToObj,u.objToLists=i.objToLists,u.max=o.max,u.min=o.min,u.negate=o.negate,u.abs=o.abs,u.signum=o.signum,u.quot=o.quot,u.rem=o.rem,u.div=o.div,u.mod=o.mod,u.recip=o.recip,u.pi=o.pi,u.tau=o.tau,u.exp=o.exp,u.sqrt=o.sqrt,u.ln=o.ln,u.pow=o.pow,u.sin=o.sin,u.tan=o.tan,u.cos=o.cos,u.acos=o.acos,u.asin=o.asin,u.atan=o.atan,u.atan2=o.atan2,u.truncate=o.truncate,u.round=o.round,u.ceiling=o.ceiling,u.floor=o.floor,u.isItNaN=o.isItNaN,u.even=o.even,u.odd=o.odd,u.gcd=o.gcd,u.lcm=o.lcm,u.VERSION=`1.2.1`,t.exports=u;function f(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),vo=d(((e,t)=>{(function(){var e=_o().reject,n,r;function i(e,t){if(e[0]===t)return e.shift();throw Error(`Expected '`+t+`', but got '`+e[0]+`' instead in `+JSON.stringify(e)+`.`)}function a(e,t){if(e[0]===t)return e.shift()}function o(e,t,n){var r=t[0],o=t[1],s,c;for(n&&i(e,r),s=[],c=`,`+(n?o:``);e.length&&n&&e[0]!==o;)s.push(d(e,c)),a(e,`,`);return n&&i(e,o),s}function s(e,t){return o(e,[`[`,`]`],t)}function c(e,t){return o(e,[`(`,`)`],t)}function l(e,t){var n,r,o;for(t&&i(e,`{`),n={},r=`,`+(t?`}`:``);e.length&&(!t||e[0]!==`}`);)o=u(e,`:`),i(e,`:`),n[o]=d(e,r),a(e,`,`);return t&&i(e,`}`),n}function u(e,t){var n;for(t??=``,n=``;e.length&&t.indexOf(e[0])===-1;)n+=e.shift();return n}function d(e,t){switch(e[0]){case`[`:return s(e,!0);case`(`:return c(e,!0);case`{`:return l(e,!0);default:return u(e,t)}}function f(e,t,n){var r=t[0],i=r.type,a=r.structure,o=e.concat(),u,f,p,m;return!n.explicit&&t.length===1&&(!i&&a||i===`Array`||i===`Object`)?(u=a===`array`||i===`Array`?s(e,e[0]===`[`):a===`tuple`?c(e,e[0]===`(`):l(e,e[0]===`{`),f=e.length?d(a===`array`||i===`Array`?(p=o,p.unshift(`[`),p.push(`]`),p):(m=o,m.unshift(`(`),m.push(`)`),m)):u):f=d(e),f}n=`\\[\\]\\(\\)}{:,`,r=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+n+`])|([^\\s`+n+`](?:\\s*[^\\s`+n+`]+)*)|\\s*`),t.exports=function(t,n,i){var a,o;if(i??={},!i.explicit&&t.length===1&&t[0].type===`String`)return n;if(a=e(p,n.split(r)),o=f(a,t,i),!o)throw Error(`Error parsing '`+n+`'.`);return o};function p(e){return!e}}).call(e)})),yo=d(((e,t)=>{(function(){var e=/[\$\w]+/,n;function r(e){var t=e[0];if(t==null)throw Error(`Unexpected end of input.`);return t}function i(t){var n=r(t);if(!e.test(n))throw Error(`Expected text, got '`+n+`' instead.`);return t.shift()}function a(e,t){var n=r(e);if(n!==t)throw Error(`Expected '`+t+`', got '`+n+`' instead.`);return e.shift()}function o(e,t){return e[0]===t?e.shift():null}function s(e){var t;if(a(e,`[`),r(e)===`]`)throw Error(`Must specify type of Array - eg. [Type], got [] instead.`);return t=p(e),a(e,`]`),{structure:`array`,of:t}}function c(e){var t=[];if(a(e,`(`),r(e)===`)`)throw Error(`Tuple must be of at least length 1 - eg. (Type), got () instead.`);for(;t.push(p(e)),o(e,`,`),r(e)!==`)`;);return a(e,`)`),{structure:`tuple`,of:t}}function l(e){var t={},n,i,s,c;for(a(e,`{`),n=!1;;){if(o(e,`...`)){n=!0;break}if(i=u(e),s=i[0],c=i[1],t[s]=c,o(e,`,`),r(e)===`}`)break}return a(e,`}`),{structure:`fields`,of:t,subset:n}}function u(e){var t=i(e),n;return a(e,`:`),n=p(e),[t,n]}function d(e){switch(e[0]){case`[`:return s(e);case`(`:return c(e);case`{`:return l(e)}}function f(t){var n=r(t),o=n===`*`,s,c;if(o||e.test(n))return s=o?a(t,`*`):i(t),c=d(t),c?(c.type=s,c):{type:s};if(c=d(t),!c)throw Error(`Unexpected character: `+n);return c}function p(e){var t,n,i,a,s,c;if(r(e)===`::`)throw Error(`No comment before comment separator '::' found.`);for(t=e[1],t!=null&&t===`::`&&(e.shift(),e.shift()),n=[],i={},r(e)===`Maybe`&&(e.shift(),n=[{type:`Undefined`},{type:`Null`}],i={Undefined:!0,Null:!0});a=f(e),s=a.type,c=a.structure,i[s]||n.push(a),c??(i[s]=!0),o(e,`|`););return n}n=RegExp(`\\.\\.\\.|::|->|`+e.source+`|\\S`,`g`),t.exports=function(e){var t,r;if(!e.length)throw Error(`No type specified.`);if(t=e.match(n)||[],m(`->`,t))throw Error(`Function types are not supported. To validate that something is a function, you may use 'Function'.`);try{return p(t)}catch(n){throw r=n,Error(r.message+` - Remaining tokens: `+JSON.stringify(t)+` - Initial input: '`+e+`'`)}};function m(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}}).call(e)})),bo=d(((e,t)=>{(function(){var e,n,r,i,a,o,s={}.toString;e=_o(),n=e.any,r=e.all,i=e.isItNaN,a={Number:{typeOf:`Number`,validate:function(e){return!i(e)}},NaN:{typeOf:`Number`,validate:i},Int:{typeOf:`Number`,validate:function(e){return!i(e)&&e%1==0}},Float:{typeOf:`Number`,validate:function(e){return!i(e)}},Date:{typeOf:`Date`,validate:function(e){return!i(e.getTime())}}},o={array:`Array`,tuple:`Array`};function c(e,t,n){return r(function(e){return p(e,t.of,n)},e)}function l(e,t,n){var r=0,i,a,o,s;for(i=0,o=(a=t.of).length;i<o;++i){if(s=a[i],!p(e[r],s,n))return!1;r++}return e.length<=r}function u(e,t,n){var r={},i=0,a,o,s,c,l;for(a in e)r[a]=!0,i++;for(s in o=0,c=t.of){if(l=c[s],!p(e[s],l,n))return!1;r[s]&&o++}return t.subset||i===o}function d(e,t,n){if(!(e instanceof Object))return!1;switch(t.structure){case`fields`:return u(e,t,n);case`array`:return c(e,t,n);case`tuple`:return l(e,t,n)}}function f(e,t,n){var r=t.type,i=t.structure,c,l;if(r)return r===`*`?!0:(c=n.customTypes[r]||a[r],c?(c.typeOf===void 0||c.typeOf===s.call(e).slice(8,-1))&&c.validate(e):r===s.call(e).slice(8,-1)&&(!i||d(e,t,n)));if(i)return(l=o[i])&&l!==s.call(e).slice(8,-1)?!1:d(e,t,n);throw Error(`No type defined. Input: `+e+`.`)}function p(e,t,r){if(s.call(t).slice(8,-1)!==`Array`)throw Error(`Types must be in an array. Input: `+e+`.`);return n(function(t){return f(e,t,r)},t)}t.exports=function(e,t,n){return n??={},n.customTypes??={},p(t,e,n)}}).call(e)})),xo=d(((e,t)=>{(function(){var e=`0.4.0`,n=yo(),r=bo();t.exports={VERSION:e,typeCheck:function(e,t,i){return r(n(e),t,i)},parsedTypeCheck:r,parseType:n}}).call(e)})),So=d(((e,t)=>{(function(){var e,n,r={}.toString;e=xo().parsedTypeCheck,n={"*":function(e,t){switch(r.call(e).slice(8,-1)){case`Array`:return s(e,{type:`Array`},t);case`Object`:return s(e,{type:`Object`},t);default:return{type:`Just`,value:c(e,[{type:`Undefined`},{type:`Null`},{type:`NaN`},{type:`Boolean`},{type:`Number`},{type:`Date`},{type:`RegExp`},{type:`Array`},{type:`Object`},{type:`String`}],(t.explicit=!0,t))}}},Undefined:function(e){return e===`undefined`||e===void 0?{type:`Just`,value:void 0}:{type:`Nothing`}},Null:function(e){return e===`null`?{type:`Just`,value:null}:{type:`Nothing`}},NaN:function(e){return e===`NaN`?{type:`Just`,value:NaN}:{type:`Nothing`}},Boolean:function(e){return e===`true`?{type:`Just`,value:!0}:e===`false`?{type:`Just`,value:!1}:{type:`Nothing`}},Number:function(e){return{type:`Just`,value:+e}},Int:function(e){return{type:`Just`,value:+e}},Float:function(e){return{type:`Just`,value:+e}},Date:function(e,t){var n;return(n=/^\#([\s\S]*)\#$/.exec(e))?{type:`Just`,value:new Date(+n[1]||n[1])}:t.explicit?{type:`Nothing`}:{type:`Just`,value:new Date(+e||e)}},RegExp:function(e,t){var n;return(n=/^\/([\s\S]*)\/([gimy]*)$/.exec(e))?{type:`Just`,value:new RegExp(n[1],n[2])}:t.explicit?{type:`Nothing`}:{type:`Just`,value:new RegExp(e)}},Array:function(e,t){return i(e,{of:[{type:`*`}]},t)},Object:function(e,t){return o(e,{of:{}},t)},String:function(e){var t,n;return r.call(e).slice(8,-1)===`String`?(t=function(e,t){return e.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(e,n){switch(n[0]){case t:return t;case`\\`:return`\\`;case`b`:return`\b`;case`f`:return`\f`;case`n`:return`
85
85
  `;case`r`:return`\r`;case`t`:return` `;case`u`:return JSON.parse(`"`+e+`"`);default:return n}})},(n=e.match(/^'([\s\S]*)'$/))?{type:`Just`,value:t(n[1],`'`)}:(n=e.match(/^"([\s\S]*)"$/))?{type:`Just`,value:t(n[1],`"`)}:{type:`Just`,value:e}):{type:`Nothing`}}};function i(e,t,n){var i,a;return r.call(e).slice(8,-1)===`Array`?(i=t.of,{type:`Just`,value:function(){var t,r,o,s=[];for(t=0,o=(r=e).length;t<o;++t)a=r[t],s.push(c(a,i,n));return s}()}):{type:`Nothing`}}function a(e,t,n){var i,a,o,s,l,u,d;if(r.call(e).slice(8,-1)!==`Array`)return{type:`Nothing`};for(i=[],a=0,o=0,l=(s=t.of).length;o<l;++o)u=s[o],d=c(e[a],u,n),r.call(d).slice(8,-1)!==`Undefined`&&i.push(d),a++;return e.length<=a?{type:`Just`,value:i}:{type:`Nothing`}}function o(e,t,n){var i,a,o;return r.call(e).slice(8,-1)===`Object`?(i=t.of,{type:`Just`,value:function(){var t,r={};for(a in t=e)o=t[a],r[c(a,[{type:`String`}],n)]=c(o,i[a]||[{type:`*`}],n);return r}()}):{type:`Nothing`}}function s(e,t,r){var s=t.type,l=t.structure,u;if(s){if(u=r.customTypes[s]?.cast||n[s],!u)throw Error(`Type not defined: `+s+`.`);return u(e,r,c)}else switch(l){case`array`:return i(e,t,r);case`tuple`:return a(e,t,r);case`fields`:return o(e,t,r)}}function c(t,n,r){var i,a,o,c,l,u;for(i=0,a=n.length;i<a;++i)if(o=n[i],c=s(t,o,r),l=c.type,u=c.value,l!==`Nothing`&&e([o],u,{customTypes:r.customTypes}))return u;throw Error(`Value `+JSON.stringify(t)+` does not type check against `+JSON.stringify(n)+`.`)}t.exports=function(e,t,n){return!n.explicit&&t.length===1&&t[0].type===`String`?e:c(e,t,n)}}).call(e)})),Co=d(((e,t)=>{(function(){var e=vo(),n=So(),r=xo().parseType,i=`0.4.1`,a=function(t,r,i){return i??={},i.explicit??=!1,i.customTypes??={},n(e(t,r,i),t,i)};t.exports={VERSION:i,parse:function(e,t,n){return a(r(e),t,n)},parsedTypeParse:a}}).call(e)})),wo=d((e=>{var t=Co();let n=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,r=new Set([0,1,2,`off`,`warn`,`error`]);function i(e){let t=Array.isArray(e)?e[0]:e;return r.has(t)}function a(e){return Object.values(e).every(i)}var o=class{label=``;value=``;justification=``;constructor(e,t,n){this.label=e,this.value=t,this.justification=n}},s=class{parseStringConfig(e){let t={};return e.trim().replace(/(?<!\s)\s*([:,])\s*/gu,`$1`).split(/\s|,+/u).forEach(e=>{if(!e)return;let[n,r=null]=e.split(`:`);t[n]=r}),t}parseJSONLikeConfig(e){try{let n=t.parse(`Object`,e)||{};if(a(n))return{ok:!0,config:n}}catch{}let n=e.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu,`"$1":`).replace(/([\]0-9])\s+(?=")/u,`$1,`);try{return{ok:!0,config:JSON.parse(`{${n}}`)}}catch(e){return{ok:!1,error:{message:`Failed to parse JSON from '${n}': ${e instanceof Error?e.message:String(e)}`}}}}parseListConfig(e){let t={};return e.split(`,`).forEach(e=>{let n=e.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,`$<ruleId>`);n&&(t[n]=!0)}),t}#e(e){let t=/\s-{2,}\s/u.exec(e);return t?{directivePart:e.slice(0,t.index).trim(),justificationPart:e.slice(t.index+t[0].length).trim()}:{directivePart:e.trim(),justificationPart:``}}parseDirective(e){let{directivePart:t,justificationPart:r}=this.#e(e),i=n.exec(t);if(!i)return;let a=i[1];return new o(a,t.slice(i.index+a.length).trim(),r)}};function c(e){return`loc`in e}function l(e){return`position`in e}function u(e){return`range`in e}function d(e){return`position`in e}function f(e,t){let n=0,r=e.length-1;for(;n<r;){let i=(n+r)/2|0;t<e[i]?r=i:n=i+1}return n}var p=class{type=`visit`;kind=1;target;phase;args;constructor({target:e,phase:t,args:n}){this.target=e,this.phase=t,this.args=n}},m=class{type=`call`;kind=2;target;args;constructor({target:e,args:t}){this.target=e,this.args=t}},h=class{type;node;value;justification;constructor({type:e,node:t,value:n,justification:r}){this.type=e,this.node=t,this.value=n,this.justification=r}},g=class{#e=[];#t=[0];#n;ast;text;constructor({text:e,ast:t,lineEndingPattern:n=/\r?\n/u}){this.ast=t,this.text=e,this.#n=new RegExp(n.source,n.flags.replace(/[gy]/gu,``))}#r(e){let t=this.#n.exec(e);return t?(this.#e.push(e.slice(0,t.index)),this.#t.push((this.#t.at(-1)??0)+t.index+t[0].length),!0):!1}#i(){if(this.#e.length!==this.#t.length){for(;this.#r(this.text.slice(this.#t.at(-1))););this.#e.push(this.text.slice(this.#t.at(-1))),Object.freeze(this.#e)}}#a(e){if(!(e<=(this.#t.at(-1)??0)))for(;e>(this.#t.at(-1)??0)&&this.#r(this.text.slice(this.#t.at(-1))););}#o(e,t){let n=e.line-t+1-(this.#t.length-1);if(!(n<=0))for(;n>0&&this.#r(this.text.slice(this.#t.at(-1)));)--n}getLoc(e){if(c(e))return e.loc;if(l(e))return e.position;throw Error(`Custom getLoc() method must be implemented in the subclass.`)}getLocFromIndex(e){if(typeof e!=`number`)throw TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);let{start:{line:t,column:n},end:{line:r,column:i}}=this.getLoc(this.ast);if(e===0)return{line:t,column:n};if(e===this.text.length)return{line:r,column:i};this.#a(e);let a=(e>=(this.#t.at(-1)??0)?this.#t.length:f(this.#t,e))-1+t;return{line:a,column:e-this.#t[a-t]+n}}getIndexFromLoc(e){if(typeof e!=`object`||!e||typeof e.line!=`number`||typeof e.column!=`number`)throw TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");let{start:{line:t,column:n},end:{line:r,column:i}}=this.getLoc(this.ast);if(e.line<t||r<e.line)throw RangeError(`Line number out of range (line ${e.line} requested). Valid range: ${t}-${r}`);if(e.line===t&&e.column===n)return 0;if(e.line===r&&e.column===i)return this.text.length;this.#o(e,t);let a=e.line===r,o=this.#t[e.line-t],s=a?this.text.length:this.#t[e.line-t+1],c=o+e.column-n;if(e.column<n||a&&c>s||!a&&c>=s)throw RangeError(`Column number out of range (column ${e.column} requested). Valid range for line ${e.line}: ${n}-${s-o+n+(a?0:-1)}`);return c}getRange(e){if(u(e))return e.range;if(d(e))return[e.position.start.offset,e.position.end.offset];throw Error(`Custom getRange() method must be implemented in the subclass.`)}getParent(e){throw Error(`Not implemented.`)}getAncestors(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=[];for(let n=this.getParent(e);n;n=this.getParent(n))t.push(n);return t.reverse()}getText(e,t,n){if(e){let r=this.getRange(e);return this.text.slice(Math.max(r[0]-(t||0),0),r[1]+(n||0))}return this.text}get lines(){return this.#i(),this.#e}traverse(){throw Error(`Not implemented.`)}};e.CallMethodStep=m,e.ConfigCommentParser=s,e.Directive=h,e.TextSourceCodeBase=g,e.VisitNodeStep=p})),To=d((e=>{(function e(t){var n,r,i,a,o,s;function c(e){var t={},n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],typeof r==`object`&&r?t[n]=c(r):t[n]=r);return t}function l(e,t){for(var n,r=e.length,i=0,a;r;)n=r>>>1,a=i+n,t(e[a])?r=n:(i=a+1,r-=n+1);return i}n={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ChainExpression:`ChainExpression`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ComprehensionBlock:`ComprehensionBlock`,ComprehensionExpression:`ComprehensionExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DebuggerStatement:`DebuggerStatement`,DirectiveStatement:`DirectiveStatement`,DoWhileStatement:`DoWhileStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForInStatement:`ForInStatement`,ForOfStatement:`ForOfStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,GeneratorExpression:`GeneratorExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportExpression:`ImportExpression`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,ModuleSpecifier:`ModuleSpecifier`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,PrivateIdentifier:`PrivateIdentifier`,Program:`Program`,Property:`Property`,PropertyDefinition:`PropertyDefinition`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchStatement:`SwitchStatement`,SwitchCase:`SwitchCase`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`},i={AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AwaitExpression:[`argument`],BlockStatement:[`body`],BinaryExpression:[`left`,`right`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ComprehensionBlock:[`left`,`right`],ComprehensionExpression:[`blocks`,`filter`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExportAllDeclaration:[`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForStatement:[`init`,`test`,`update`,`body`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],GeneratorExpression:[`blocks`,`filter`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportExpression:[`source`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],Literal:[],LabeledStatement:[`label`,`body`],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],ModuleSpecifier:[],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],Super:[],SwitchStatement:[`discriminant`,`cases`],SwitchCase:[`test`,`consequent`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},a={},o={},s={},r={Break:a,Skip:o,Remove:s};function u(e,t){this.parent=e,this.key=t}u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function f(){}f.prototype.path=function(){var e,t,n,r,i,a;function o(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a=this.__leavelist[e],o(i,a.path);return o(i,this.__current.path),i},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,n=[];for(e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var n,r=void 0;return n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(o)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))};function p(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function h(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}f.prototype.traverse=function(e,t){var n,r,i,s,c,l,u,f,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new d(e,null,null,null)),r.push(new d(null,null,null,null));n.length;){if(i=n.pop(),i===y){if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return;continue}if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(s=i.node,c=s.type||i.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(s);else throw Error(`Unknown node type `+c+`.`);for(f=_.length;--f>=0;)if(u=_[f],v=s[u],v){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!h(r,v[g])){if(m(c,_[f]))i=new d(v[g],[u,g],`Property`,null);else if(p(v[g]))i=new d(v[g],[u,g],null,null);else continue;n.push(i)}}else if(p(v)){if(h(r,v))continue;n.push(new d(v,u,null,null))}}}}},f.prototype.replace=function(e,t){var n,r,i,c,l,f,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if(i=n[t],i.ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,b={root:e},f=new d(e,null,null,new u(b,`root`)),n.push(f),r.push(f);n.length;){if(f=n.pop(),f===y){if(f=r.pop(),l=this.__execute(t.leave,f),l!==void 0&&l!==a&&l!==o&&l!==s&&f.ref.replace(l),(this.__state===s||l===s)&&S(f),this.__state===a||l===a)return b.root;continue}if(l=this.__execute(t.enter,f),l!==void 0&&l!==a&&l!==o&&l!==s&&(f.ref.replace(l),f.node=l),(this.__state===s||l===s)&&(S(f),f.node=null),this.__state===a||l===a)return b.root;if(i=f.node,i&&(n.push(y),r.push(f),!(this.__state===o||l===o))){if(c=i.type||f.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(i);else throw Error(`Unknown node type `+c+`.`);for(h=_.length;--h>=0;)if(x=_[h],v=i[x],v)if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(m(c,_[h]))f=new d(v[g],[x,g],`Property`,new u(v,g));else if(p(v[g]))f=new d(v[g],[x,g],null,new u(v,g));else continue;n.push(f)}}else p(v)&&n.push(new d(v,x,null,new u(i,x)))}}return b.root};function g(e,t){return new f().traverse(e,t)}function _(e,t){return new f().replace(e,t)}function v(e,t){var n=l(t,function(t){return t.range[0]>e.range[0]});return e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function y(e,t,n){var i=[],a,o,s,l;if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(s=0,o=t.length;s<o;s+=1)a=c(t[s]),a.extendedRange=[0,e.range[0]],i.push(a);e.leadingComments=i}return e}for(s=0,o=t.length;s<o;s+=1)i.push(v(c(t[s]),n));return l=0,g(e,{enter:function(e){for(var t;l<i.length&&(t=i[l],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),l=0,g(e,{leave:function(e){for(var t;l<i.length&&(t=i[l],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),e}return t.Syntax=n,t.traverse=g,t.replace=_,t.attachComments=y,t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(e)})),Eo=d(((e,t)=>{t.exports={name:`esrecurse`,description:`ECMAScript AST recursive visitor`,homepage:`https://github.com/estools/esrecurse`,main:`esrecurse.js`,version:`4.3.0`,engines:{node:`>=4.0`},maintainers:[{name:`Yusuke Suzuki`,email:`utatane.tea@gmail.com`,web:`https://github.com/Constellation`}],repository:{type:`git`,url:`https://github.com/estools/esrecurse.git`},dependencies:{estraverse:`^5.2.0`},devDependencies:{"babel-cli":`^6.24.1`,"babel-eslint":`^7.2.3`,"babel-preset-es2015":`^6.24.1`,"babel-register":`^6.24.1`,chai:`^4.0.2`,esprima:`^4.0.0`,gulp:`^3.9.0`,"gulp-bump":`^2.7.0`,"gulp-eslint":`^4.0.0`,"gulp-filter":`^5.0.0`,"gulp-git":`^2.4.1`,"gulp-mocha":`^4.3.1`,"gulp-tag-version":`^1.2.1`,jsdoc:`^3.3.0-alpha10`,minimist:`^1.1.0`},license:`BSD-2-Clause`,scripts:{test:`gulp travis`,"unit-test":`gulp test`,lint:`gulp lint`},babel:{presets:[`es2015`]}}})),Do=d((e=>{(function(){var t=To();function n(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function r(e,n){return(e===t.Syntax.ObjectExpression||e===t.Syntax.ObjectPattern)&&n===`properties`}function i(e,n){n||={},this.__visitor=e||this,this.__childVisitorKeys=n.childVisitorKeys?Object.assign({},t.VisitorKeys,n.childVisitorKeys):t.VisitorKeys,n.fallback===`iteration`?this.__fallback=Object.keys:typeof n.fallback==`function`&&(this.__fallback=n.fallback)}i.prototype.visitChildren=function(e){var i,a,o,s,c,l,u;if(e!=null){if(i=e.type||t.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(e);else throw Error(`Unknown node type `+i+`.`);for(o=0,s=a.length;o<s;++o)if(u=e[a[o]],u)if(Array.isArray(u))for(c=0,l=u.length;c<l;++c)u[c]&&(n(u[c])||r(i,a[o]))&&this.visit(u[c]);else n(u)&&this.visit(u)}},i.prototype.visit=function(e){var n;if(e!=null){if(n=e.type||t.Syntax.Property,this.__visitor[n]){this.__visitor[n].call(this,e);return}this.visitChildren(e)}},e.version=Eo().version,e.Visitor=i,e.visit=function(e,t,n){new i(t,n).visit(e)}})()})),Oo=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=To(),n=Do();function r(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var i=r(t),a=r(n);function o(e,t=`Assertion failed.`){if(!e)throw Error(t)}var s=class e{constructor(e,t,n,r,i,a,o){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=n,this.isWrite()&&(this.writeExpr=r,this.partial=a,this.init=o),this.__maybeImplicitGlobal=i}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&e.WRITE)}isRead(){return!!(this.flag&e.READ)}isReadOnly(){return this.flag===e.READ}isWriteOnly(){return this.flag===e.WRITE}isReadWrite(){return this.flag===e.RW}};s.READ=1,s.WRITE=2,s.RW=3;var c=class{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}};c.CatchClause=`CatchClause`,c.Parameter=`Parameter`,c.FunctionName=`FunctionName`,c.ClassName=`ClassName`,c.Variable=`Variable`,c.ImportBinding=`ImportBinding`,c.ImplicitGlobalVariable=`ImplicitGlobalVariable`;var l=class{constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.node=n,this.parent=r,this.index=i,this.kind=a}},u=class extends l{constructor(e,t,n,r){super(c.Parameter,e,t,null,n,null),this.rest=r}};let{Syntax:d}=i.default;function f(e,t,n){let r;if(e.upper&&e.upper.isStrict||n||e.type===`class`||e.type===`module`)return!0;if(e.type===`block`||e.type===`switch`)return!1;if(e.type===`function`){if(t.type===d.ArrowFunctionExpression&&t.body.type!==d.BlockStatement||(r=t.type===d.Program?t:t.body,!r))return!1}else if(e.type===`global`)r=t;else return!1;for(let e=0,t=r.body.length;e<t;++e){let t=r.body[e];if(typeof t.directive!=`string`)break;if(t.directive===`use strict`)return!0}return!1}function p(e,t){e.scopes.push(t);let n=e.__nodeToScope.get(t.block);n?n.push(t):e.__nodeToScope.set(t.block,[t])}function m(e){return e.type===c.ClassName||e.type===c.Variable&&e.parent.kind!==`var`}var h=class{constructor(e,t,n,r,i){this.type=t,this.set=new Map,this.taints=new Map,this.dynamic=this.type===`global`||this.type===`with`,this.block=r,this.through=[],this.variables=[],this.references=[],this.variableScope=this.type===`global`||this.type===`module`||this.type===`function`||this.type===`class-field-initializer`||this.type===`class-static-block`?this:n.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=n,this.isStrict=e.isStrictModeSupported()?f(this,r,i):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,p(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()}__shouldStaticallyCloseForGlobal(e){let t=e.identifier.name;if(!this.set.has(t))return!1;let n=this.set.get(t).defs;return n.length>0&&n.every(m)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do t.through.push(e),t=t.upper;while(t)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:this.type===`global`?this.__globalCloseRef:this.__dynamicCloseRef;for(let e=0,n=this.__left.length;e<n;++e){let n=this.__left[e];t.call(this,n)}return this.__left=null,this.upper}__isValidResolution(e,t){return!0}__resolve(e){let t=e.identifier.name;if(!this.set.has(t))return!1;let n=this.set.get(t);return this.__isValidResolution(e,n)?(n.references.push(e),n.stack=n.stack&&e.from.variableScope===this.variableScope,e.tainted&&(n.tainted=!0,this.taints.set(n.name,!0)),e.resolved=n,!0):!1}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,t){if(t==null)return;let n=this.__declaredVariables.get(t);n??(n=[],this.__declaredVariables.set(t,n)),n.includes(e)||n.push(e)}__defineGeneric(e,t,n,r,i){let a;a=t.get(e),a||(a=new c(e,this),t.set(e,a),n.push(a)),i&&(a.defs.push(i),this.__addDeclaredVariablesOfNode(a,i.node),this.__addDeclaredVariablesOfNode(a,i.parent)),r&&a.identifiers.push(r)}__define(e,t){e&&e.type===d.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,n,r,i,a){if(!e||e.type!==d.Identifier&&e.type!==`JSXIdentifier`||e.name===`super`)return;let o=new s(e,this,t||s.READ,n,r,!!i,!!a);this.references.push(o),this.__left.push(o)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do e.dynamic=!0,e=e.upper;while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(e){let t,n,r;for(o(this.__isClosed(),`Scope should be closed.`),o(e.type===d.Identifier,`Target should be identifier.`),n=0,r=this.references.length;n<r;++n)if(t=this.references[n],t.identifier===e)return t;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let t=0,n=this.through.length;t<n;++t)if(this.through[t].identifier.name===e)return!0;return!1}},g=class extends h{constructor(e,t){super(e,`global`,null,t,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(e){let t=[];for(let e=0,n=this.__left.length;e<n;++e){let n=this.__left[e];n.__maybeImplicitGlobal&&!this.set.has(n.identifier.name)&&t.push(n.__maybeImplicitGlobal)}for(let e=0,n=t.length;e<n;++e){let n=t[e];this.__defineImplicit(n.pattern,new l(c.ImplicitGlobalVariable,n.pattern,n.node,null,null,null))}return this.implicit.left=this.__left,super.__close(e)}__defineImplicit(e,t){e&&e.type===d.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}},_=class extends h{constructor(e,t,n){super(e,`module`,t,n,!1)}},v=class extends h{constructor(e,t,n){super(e,`function-expression-name`,t,n,!1),this.__define(n.id,new l(c.FunctionName,n.id,n,null,null,null)),this.functionExpressionScope=!0}},y=class extends h{constructor(e,t,n){super(e,`catch`,t,n,!1)}},b=class extends h{constructor(e,t,n){super(e,`with`,t,n,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let e=0,t=this.__left.length;e<t;++e){let t=this.__left[e];t.tainted=!0,this.__delegateToUpperScope(t)}return this.__left=null,this.upper}},x=class extends h{constructor(e,t,n){super(e,`block`,t,n,!1)}},S=class extends h{constructor(e,t,n){super(e,`switch`,t,n,!1)}},C=class extends h{constructor(e,t,n,r){super(e,`function`,t,n,r),this.block.type!==d.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===d.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get(`arguments`);return o(e,`Always have arguments variable.`),e.tainted||e.references.length!==0}isThisMaterialized(){return this.isStatic()?this.thisFound:!0}__defineArguments(){this.__defineGeneric(`arguments`,this.set,this.variables,null,null),this.taints.set(`arguments`,!0)}__isValidResolution(e,t){if(this.block.type===`Program`)return!0;let n=this.block.body.range[0];return!(t.scope===this&&e.identifier.range[0]<n&&t.defs.every(e=>e.name.range[0]>=n))}},w=class extends h{constructor(e,t,n){super(e,`for`,t,n,!1)}},T=class extends h{constructor(e,t,n){super(e,`class`,t,n,!1)}},E=class extends h{constructor(e,t,n){super(e,`class-field-initializer`,t,n,!0)}},D=class extends h{constructor(e,t,n){super(e,`class-static-block`,t,n,!0)}},O=class{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isJSXEnabled(){return this.__options.jsx===!0}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType===`commonjs`}isModule(){return this.__options.sourceType===`module`}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function n(e){return!(e.type===`function`&&e.functionExpressionScope)}let r=this.__get(e);if(!r||r.length===0)return null;if(r.length===1)return r[0];if(t)for(let e=r.length-1;e>=0;--e){let t=r[e];if(n(t))return t}else for(let e=0,t=r.length;e<t;++e){let t=r[e];if(n(t))return t}return null}acquireAll(e){return this.__get(e)}release(e,t){let n=this.__get(e);if(n&&n.length){let e=n[0].upper;return e?this.acquire(e.block,t):null}return null}attach(){}detach(){}__nestScope(e){return e instanceof g&&(o(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new g(this,e))}__nestBlockScope(e){return this.__nestScope(new x(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new C(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new w(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new y(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new b(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new T(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new E(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new D(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new S(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new _(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new v(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}};let{Syntax:k}=i.default;function A(e){return e.at(-1)||null}var j=class extends a.default.Visitor{static isPattern(e){let t=e.type;return t===k.Identifier||t===k.ObjectPattern||t===k.ArrayPattern||t===k.SpreadElement||t===k.RestElement||t===k.AssignmentPattern}constructor(e,t,n){super(null,e),this.rootPattern=t,this.callback=n,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let t=A(this.restElements);this.callback(e,{topLevel:e===this.rootPattern,rest:t!=null&&t.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let t=0,n=e.elements.length;t<n;++t){let n=e.elements[t];this.visit(n)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach(e=>{this.rightHandNodes.push(e)}),this.visit(e.callee)}};let{Syntax:M}=i.default;function N(e,t,n,r){let i=new j(e,t,r);i.visit(t),n!=null&&i.rightHandNodes.forEach(n.visit,n)}var P=class extends a.default.Visitor{constructor(e,t){super(null,t.options),this.declaration=e,this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,e=>{this.referencer.currentScope().__define(e,new l(c.ImportBinding,e,t,this.declaration,null,null))})}ImportNamespaceSpecifier(e){let t=e.local||e.id;t&&this.visitImport(t,e)}ImportDefaultSpecifier(e){let t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){let t=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(t,e)}},F=class extends a.default.Visitor{constructor(e,t){super(null,e),this.options=e,this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){let t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,n,r){let i=this.currentScope();t.forEach(t=>{i.__referencing(e,s.WRITE,t.right,n,e!==t.left,r)})}visitPattern(e,t,n){let r=t,i=n;typeof t==`function`&&(i=t,r={processRightHandNodes:!1}),N(this.options,e,r.processRightHandNodes?this:null,i)}visitFunction(e){let t,n;e.type===M.FunctionDeclaration&&this.currentScope().__define(e.id,new l(c.FunctionName,e.id,e,null,null,null)),e.type===M.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);let r=this;function i(n,i){r.currentScope().__define(n,new u(n,e,t,i.rest)),r.referencingDefaultValue(n,i.assignments,null,!0)}for(t=0,n=e.params.length;t<n;++t)this.visitPattern(e.params[t],{processRightHandNodes:!0},i);e.rest&&this.visitPattern({type:`RestElement`,argument:e.rest},t=>{this.currentScope().__define(t,new u(t,e,e.params.length,!0))}),e.body&&(e.body.type===M.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===M.ClassDeclaration&&this.currentScope().__define(e.id,new l(c.ClassName,e.id,e,null,null,null)),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new l(c.ClassName,e.id,e)),this.visit(e.superClass),this.visit(e.body),this.close(e)}visitProperty(e){let t;e.computed&&this.visit(e.key);let n=e.type===M.MethodDefinition;n&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===M.VariableDeclaration&&e.left.kind!==`var`&&this.scopeManager.__nestForScope(e),e.left.type===M.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,t=>{this.currentScope().__referencing(t,s.WRITE,e.right,null,!0,!0)})):this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let r=null;this.currentScope().isStrict||(r={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,r,!1),this.currentScope().__referencing(t,s.WRITE,e.right,r,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,n,r){let i=n.declarations[r],a=i.init;this.visitPattern(i.id,{processRightHandNodes:!0},(o,c)=>{e.__define(o,new l(t,o,i,n,r,n.kind)),this.referencingDefaultValue(o,c.assignments,null,!0),a&&this.currentScope().__referencing(o,s.WRITE,a,null,!c.topLevel,!0)})}AssignmentExpression(e){j.isPattern(e.left)?e.operator===`=`?this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let r=null;this.currentScope().isStrict||(r={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,r,!1),this.currentScope().__referencing(t,s.WRITE,e.right,r,!n.topLevel,!1)}):this.currentScope().__referencing(e.left,s.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},(t,n)=>{this.currentScope().__define(t,new l(c.CatchClause,t,e,null,null,null)),this.referencingDefaultValue(t,n.assignments,null,!0)}),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){j.isPattern(e.argument)?this.currentScope().__referencing(e.argument,s.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){let{computed:t,key:n,value:r}=e;t&&this.visit(n),r&&(this.scopeManager.__nestClassFieldInitializerScope(r),this.visit(r),this.close(r))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===M.VariableDeclaration&&e.init.kind!==`var`&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){!this.scopeManager.__ignoreEval()&&e.callee.type===M.Identifier&&e.callee.name===`eval`&&this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){let t=e.kind===`var`?this.currentScope().variableScope:this.currentScope();for(let n=0,r=e.declarations.length;n<r;++n){let r=e.declarations[n];this.visitVariableDeclaration(t,c.Variable,e,n),r.init&&this.visit(r.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let t=0,n=e.cases.length;t<n;++t)this.visit(e.cases[t]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){o(this.scopeManager.__isES6()&&this.scopeManager.isModule(),`ImportDeclaration should appear when the mode is ES6 and in the module context.`),new P(e,this).visit(e)}visitExportDeclaration(e){if(!e.source){if(e.declaration){this.visit(e.declaration);return}this.visitChildren(e)}}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){let t=e.id||e.local;this.visit(t)}MetaProperty(){}JSXIdentifier(e){this.scopeManager.__isJSXEnabled()&&e.name!==`this`&&this.currentScope().__referencing(e)}JSXMemberExpression(e){this.visit(e.object)}JSXElement(e){this.scopeManager.__isJSXEnabled()?(this.visit(e.openingElement),e.children.forEach(this.visit,this)):this.visitChildren(e)}JSXOpeningElement(e){if(this.scopeManager.__isJSXEnabled()){let t=e.name;(t.type===`JSXIdentifier`&&t.name[0].toUpperCase()===t.name[0]||t.type===`JSXMemberExpression`)&&this.visit(t)}e.attributes.forEach(this.visit,this)}JSXAttribute(e){e.value&&this.visit(e.value)}JSXExpressionContainer(e){this.visit(e.expression)}JSXNamespacedName(e){this.visit(e.namespace),this.visit(e.name)}};function I(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:`script`,ecmaVersion:5,childVisitorKeys:null,fallback:`iteration`}}function L(e,t){function n(e){return typeof e==`object`&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(let r in t)if(Object.hasOwn(t,r)){let i=t[r];n(i)?n(e[r])?L(e[r],i):e[r]=L({},i):e[r]=i}return e}function R(e,t){let n=L(I(),t),r=new O(n);return new F(n,r).visit(e),o(r.__currentScope===null,`currentScope should be null.`),r}e.Definition=l,e.PatternVisitor=j,e.Reference=s,e.Referencer=F,e.Scope=h,e.ScopeManager=O,e.Variable=c,e.analyze=R,e.version=`8.4.0`})),ko=d(((e,t)=>{let{isCommentToken:n}=Re(),r=ro(),i=se(),a=li(),o=ce(),{directivesPattern:s}=Cn(),c=uo(),{ConfigCommentParser:l,VisitNodeStep:u,CallMethodStep:d,Directive:f}=wo(),p=Oo(),m=new l;function h(e){if(!e)throw TypeError(`Unexpected empty AST. (${e})`);if(!e.tokens)throw TypeError(`AST is missing the tokens array.`);if(!e.comments)throw TypeError(`AST is missing the comments array.`);if(!e.loc)throw TypeError(`AST is missing location information.`);if(!e.range)throw TypeError(`AST is missing range information`)}function g(e){switch(e){case 3:return o.es3;case 5:return o.es5;default:return e<2015?o[`es${e+2009}`]:o[`es${e}`]}}function _(e){return e.type===`ExportDefaultDeclaration`||e.type===`ExportNamedDeclaration`||e.type===`ExportAllDeclaration`||e.type===`ExportSpecifier`}function v(e,t){let n=[],r=0,i=0;for(;r<e.length||i<t.length;)i>=t.length||r<e.length&&e[r].range[0]<t[i].range[0]?n.push(e[r++]):n.push(t[i++]);return n}function y(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function b(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]||t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]}function x(e,t,n,r){if(b(t,n))return!1;let[i,a]=t.range[1]<=n.range[0]?[t,n]:[n,t],o=e.getLastToken(i)||i,s=e.getFirstToken(a)||a,c=o;for(;c!==s;){let t=e.getTokenAfter(c,{includeComments:!0});if(c.range[1]!==t.range[0]||r&&t!==s&&t.type===`JSXText`&&/\s/u.test(t.value))return!0;c=t}return!1}function S(e,t){let n=0,r=e.length;for(;n<r;){let i=(n+r)/2|0;t<e[i]?r=i:n=i+1}return n}function C(e,t={},n={}){for(let r of new Set([...Object.keys(t),...Object.keys(n)])){let i=t[r]===void 0?void 0:y(t[r]),a=n[r]&&n[r].value||i,o=n[r]&&n[r].comments;if(a===`off`)continue;let s=e.set.get(r);s||(s=new p.Variable(r,e),e.variables.push(s),e.set.set(r,s)),s.eslintImplicitGlobalSetting=i,s.eslintExplicitGlobal=o!==void 0,s.eslintExplicitGlobalComments=o,s.writeable=a===`writable`}e.through=e.through.filter(t=>{let n=t.identifier.name,r=e.set.get(n);return r?(t.resolved=r,r.references.push(t),!1):!0});let{implicit:r}=e;typeof r==`object`&&r&&(r.variables=r.variables.filter(t=>{let n=t.name;return e.set.has(n)?(r.set.delete(n),!1):!0}),r.left&&=r.left.filter(t=>!e.set.has(t.identifier.name)))}function w(e,t){Object.keys(t).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)})}let T=Symbol(`caches`);t.exports=class extends r{#e;constructor(e,t){let n,r,o,s,c,l;typeof e==`string`?(n=e,o=t,r=!1):typeof e==`object`&&e&&(n=e.text,o=e.ast,r=e.hasBOM,s=e.parserServices,c=e.scopeManager,l=e.visitorKeys),h(o),super(o.tokens,o.comments),this[T]=new Map([[`scopes`,new WeakMap],[`vars`,new Map],[`configNodes`,void 0],[`isGlobalReference`,new WeakMap]]),this.isESTree=o.type===`Program`;let u=n.charCodeAt(0)===65279;this.hasBOM=u||!!r,this.text=u?n.slice(1):n,this.ast=o,this.parserServices=s||{},this.scopeManager=c||null,this.visitorKeys=l||a.DEFAULT_VISITOR_KEYS;let d=this.text.match(i.shebangPattern);d&&o.comments.length&&o.comments[0].value===d[1]&&(o.comments[0].type=`Shebang`),this.tokensAndComments=v(o.tokens,o.comments),this.lines=[],this.lineStartIndices=[0];let f=i.createGlobalLinebreakMatcher(),p;for(;p=f.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),p.index)),this.lineStartIndices.push(p.index+p[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(i.createGlobalLinebreakMatcher())}getText(e,t,n){return e?this.text.slice(Math.max(e.range[0]-(t||0),0),e.range[1]+(n||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(e){let t=e=>{let t=this.getTokenBefore(e,{includeComments:!0});return t&&n(t)&&t.type===`Block`&&t.value.charAt(0)===`*`&&e.loc.start.line-t.loc.end.line<=1?t:null},r=e.parent;switch(e.type){case`ClassDeclaration`:case`FunctionDeclaration`:return t(_(r)?r:e);case`ClassExpression`:return t(r.parent);case`ArrowFunctionExpression`:case`FunctionExpression`:if(r.type!==`CallExpression`&&r.type!==`NewExpression`){for(;!this.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&r.type!==`MethodDefinition`&&r.type!==`Property`&&(r=r.parent,r););if(r&&r.type!==`FunctionDeclaration`&&r.type!==`Program`)return t(r)}return t(e);default:return null}}getNodeByRangeIndex(e){let t=null;return a.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(n){n.range[0]<=e&&e<n.range[1]?t=n:this.skip()},leave(e){e===t&&this.break()}}),t}isSpaceBetween(e,t){return x(this,e,t,!1)}isSpaceBetweenTokens(e,t){return x(this,e,t,!0)}getLocFromIndex(e){if(typeof e!=`number`)throw TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let t=e>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:S(this.lineStartIndices,e);return{line:t,column:e-this.lineStartIndices[t-1]}}getIndexFromLoc(e){if(typeof e!=`object`||!e||typeof e.line!=`number`||typeof e.column!=`number`)throw TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(e.column<0)throw RangeError(`Invalid column number (column ${e.column} requested).`);let t=this.lineStartIndices[e.line-1],n=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],r=t+e.column;if(e.line===this.lineStartIndices.length&&r>n||e.line<this.lineStartIndices.length&&r>=n)throw RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${n-t}).`);return r}getScope(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=this[T].get(`scopes`),n=t.get(e);if(n)return n;let r=e.type!==`Program`;for(let n=e;n;n=n.parent){let i=this.scopeManager.acquire(n,r);if(i)return i.type===`function-expression-name`?(t.set(e,i.childScopes[0]),i.childScopes[0]):(t.set(e,i),i)}return t.set(e,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(e){return this.scopeManager.getDeclaredVariables(e)}getAncestors(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=[];for(let n=e.parent;n;n=n.parent)t.push(n);return t.reverse()}isGlobalReference(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=this[T].get(`isGlobalReference`);if(t.has(e))return t.get(e);if(e.type!==`Identifier`)return t.set(e,!1),!1;let n=this.scopeManager.scopes[0].set.get(e.name);if(!n||n.defs.length>0)return t.set(e,!1),!1;let r=n.references.some(({identifier:t})=>t===e);return t.set(e,r),r}getLoc(e){return e.loc}getRange(e){return e.range}markVariableAsUsed(e,t=this.ast){let n=this.getScope(t),r=n;n.type===`global`&&n.childScopes.length>0&&n.childScopes[0].block===this.ast&&(r=n.childScopes[0]);for(let t=r;t;t=t.upper){let n=t.variables.find(t=>t.name===e);if(n)return n.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let e=this[T].get(`configNodes`);return e||(e=this.ast.comments.filter(e=>{if(e.type===`Shebang`)return!1;let t=m.parseDirective(e.value);return!t||!s.test(t.label)?!1:e.type!==`Line`||!!/^eslint-disable-(?:next-)?line$/u.test(t.label)}),this[T].set(`configNodes`,e),e)}getDisableDirectives(){let e=this[T].get(`disableDirectives`);if(e)return e;let t=[],n=[];this.getInlineConfigNodes().forEach(e=>{let{label:r,value:i,justification:a}=m.parseDirective(e.value),o=/^eslint-disable-(?:next-)?line$/u.test(r);if(!(e.type===`Line`&&!o)){if(r===`eslint-disable-line`&&e.loc.start.line!==e.loc.end.line){let n=`${r} comment should not span multiple lines.`;t.push({ruleId:null,message:n,loc:e.loc});return}switch(r){case`eslint-disable`:case`eslint-enable`:case`eslint-disable-next-line`:case`eslint-disable-line`:{let t=r.slice(7);n.push(new f({type:t,node:e,value:i,justification:a}))}}}});let r={problems:t,directives:n};return this[T].set(`disableDirectives`,r),r}applyLanguageOptions(e){let t=Object.assign(Object.create(null),g(e.ecmaVersion),e.sourceType===`commonjs`?o.commonjs:void 0,e.globals);this[T].get(`vars`).set(`configGlobals`,t)}applyInlineConfig(){let e=[],t=[],n={},r=Object.create(null);this.getInlineConfigNodes().forEach(i=>{let{label:a,value:o}=m.parseDirective(i.value);switch(a){case`exported`:Object.assign(n,m.parseListConfig(o));break;case`globals`:case`global`:for(let[t,n]of Object.entries(m.parseStringConfig(o))){let a;try{a=y(n)}catch(t){e.push({ruleId:null,loc:i.loc,message:t.message});continue}r[t]?(r[t].comments.push(i),r[t].value=a):r[t]={comments:[i],value:a}}break;case`eslint`:{let n=m.parseJSONLikeConfig(o);n.ok?t.push({config:{rules:n.config},loc:i.loc}):e.push({ruleId:null,loc:i.loc,message:n.error.message});break}}});let i=this[T].get(`vars`);return i.set(`inlineGlobals`,r),i.set(`exportedVariables`,n),{configs:t,problems:e}}finalize(){let e=this[T].get(`vars`),t=e.get(`configGlobals`),n=e.get(`inlineGlobals`),r=e.get(`exportedVariables`),i=this.scopeManager.scopes[0];C(i,t,n),r&&w(i,r)}traverse(){if(this.#e)return this.#e;let e=this.#e=[],t={enterNode(t){e.push(new u({target:t,phase:1,args:[t]}))},leaveNode(t){e.push(new u({target:t,phase:2,args:[t]}))},emit(t,n){e.push(new d({target:t,args:n}))}};return this.isESTree&&(t=new c(t)),a.traverse(this.ast,{enter(e,n){e.parent=n,t.enterNode(e)},leave(e){t.leaveNode(e)},visitorKeys:this.visitorKeys}),e}}})),Ao=d(((e,t)=>{t.exports={SourceCode:ko()}})),jo=d(((e,t)=>{let n=new Set([!0,`true`,`writable`,`writeable`,!1,`false`,`readonly`,`readable`,null,`off`]);function r(e){return typeof e==`object`&&!!e}function i(e){return r(e)&&!Array.isArray(e)}function a(e){return e===void 0}function o(e){if(a(e))throw TypeError(`Key "ecmaVersion": Expected an "ecmaVersion" property.`);if(typeof e!=`number`&&e!==`latest`)throw TypeError(`Key "ecmaVersion": Expected a number or "latest".`)}function s(e){if(typeof e!=`string`||!/^(?:script|module|commonjs)$/u.test(e))throw TypeError(`Key "sourceType": Expected "script", "module", or "commonjs".`)}function c(e){if(!i(e))throw TypeError(`Key "globals": Expected an object.`);for(let t of Object.keys(e))if(t!==`__proto__`){if(t!==t.trim())throw TypeError(`Key "globals": Global "${t}" has leading or trailing whitespace.`);if(!n.has(e[t]))throw TypeError(`Key "globals": Key "${t}": Expected "readonly", "writable", or "off".`)}}function l(e){if(!e||typeof e!=`object`||typeof e.parse!=`function`&&typeof e.parseForESLint!=`function`)throw TypeError(`Key "parser": Expected object with parse() or parseForESLint() method.`)}function u(e){if(!i(e))throw TypeError(`Expected an object.`);let{ecmaVersion:t,sourceType:n,globals:r,parser:a,parserOptions:u,...d}=e;if(`ecmaVersion`in e&&o(t),`sourceType`in e&&s(n),`globals`in e&&c(r),`parser`in e&&l(a),`parserOptions`in e&&!i(u))throw TypeError(`Key "parserOptions": Expected an object.`);let f=Object.keys(d);if(f.length>0)throw TypeError(`Unexpected key "${f[0]}" found.`)}t.exports={validateLanguageOptions:u}})),Mo=d(((e,t)=>{let{SourceCode:n}=Ao(),r=S(),i=se(),a=oe(),o=Oo(),s=U(),{validateLanguageOptions:c}=jo(),{LATEST_ECMA_VERSION:l}=le(),u=r(`eslint:languages:js`),d=Symbol.for(`eslint.RuleTester.parser`);function f(e,t,n){let r=t.parserOptions.ecmaFeatures||{},i=t.ecmaVersion||5;return o.analyze(e,{ignoreEval:!0,nodejsScope:r.globalReturn,impliedStrict:r.impliedStrict,ecmaVersion:typeof i==`number`?i:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||s.KEYS,fallback:s.getKeys})}function p(e){return e===a||e[d]===a}function m(e){switch(e){case 3:return 3;case 5:case void 0:return 5;default:if(typeof e==`number`)return e>=2015?e:e+2009}return l}t.exports={fileType:`text`,lineStart:1,columnStart:0,nodeTypeKey:`type`,visitorKeys:s.KEYS,defaultLanguageOptions:{sourceType:`module`,ecmaVersion:`latest`,parser:a,parserOptions:{}},validateLanguageOptions:c,normalizeLanguageOptions(e){if(e.ecmaVersion=m(e.ecmaVersion),p(e.parser)){let t=e.parserOptions;e.sourceType&&(t.sourceType=e.sourceType,t.sourceType===`module`&&t.ecmaFeatures&&t.ecmaFeatures.globalReturn&&(t.ecmaFeatures.globalReturn=!1))}return e},matchesSelectorClass(e,t,n){switch(e.toLowerCase()){case`statement`:if(t.type.slice(-9)===`Statement`)return!0;case`declaration`:return t.type.slice(-11)===`Declaration`;case`pattern`:if(t.type.slice(-7)===`Pattern`)return!0;case`expression`:return t.type.slice(-10)===`Expression`||t.type.slice(-7)===`Literal`||t.type===`Identifier`&&(n.length===0||n[0].type!==`MetaProperty`)||t.type===`MetaProperty`;case`function`:return t.type===`FunctionDeclaration`||t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`;default:throw Error(`Unknown class name: ${e}`)}},parse(e,{languageOptions:t}){let{body:n,path:r}=e,a=n.replace(i.shebangPattern,(e,t)=>`//${t}`),{ecmaVersion:o,sourceType:c,parser:l}=t,d=Object.assign({ecmaVersion:o,sourceType:c},t.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:r});try{u(`Parsing:`,r);let e=typeof l.parseForESLint==`function`?l.parseForESLint(a,d):{ast:l.parse(a,d)};u(`Parsing successful:`,r);let{ast:t,services:n={},visitorKeys:i=s.KEYS,scopeManager:o}=e;return{ok:!0,ast:t,parserServices:n,visitorKeys:i,scopeManager:o}}catch(e){let t=e.message.replace(/^line \d+:/iu,``).trim();return u(`%s
86
86
  %s`,t,e.stack),{ok:!1,errors:[{message:t,line:e.lineNumber,column:e.column}]}}},createSourceCode(e,t,{languageOptions:r}){let{body:i,path:a,bom:o}=e,{ast:s,parserServices:c,visitorKeys:l}=t;u(`Scope analysis:`,a);let d=t.scopeManager||f(s,r,l);return u(`Scope analysis successful:`,a),new n({text:i,ast:s,hasBOM:o,parserServices:c,scopeManager:d,visitorKeys:l})}}})),No=d((e=>{let t=Ua(),n=[{files:[`**/*.js`,`**/*.mjs`]},{files:[`**/*.cjs`],languageOptions:{sourceType:`commonjs`,ecmaVersion:`latest`}}];e.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:Mo()},rules:new Proxy({},{get(e,n){return t.get(n)},has(e,n){return t.has(n)}})}},language:`@/js`,linterOptions:{reportUnusedDisableDirectives:1}},{ignores:[`**/node_modules/`,`.git/`]},...n]),e.defaultRuleTesterConfig=Object.freeze([{files:[`**`]},...n])})),Po=d(((e,t)=>{function n(){return process.hrtime()}function r(e){let t=process.hrtime(e);return t[0]*1e3+t[1]/1e6}t.exports={startTime:n,endTime:r}})),Fo=d(((e,t)=>{let{startTime:n,endTime:r}=Po();function i(e,t,n){return e+Array(t-e.length+1).join(n||` `)}function a(e,t,n){return Array(t-e.length+1).join(n||` `)+e}let o=!!process.env.TIMING,s=[`Rule`,`Time (ms)`,`Relative`],c=[i,a,a];function l(){if(typeof process.env.TIMING!=`string`)return 10;if(process.env.TIMING.toLowerCase()===`all`)return 1/0;let e=Number.parseInt(process.env.TIMING,10);return e>10?e:10}function u(e){let t=0,n=Object.keys(e).map(n=>{let r=e[n];return t+=r,[n,r]}).sort((e,t)=>t[1]-e[1]).slice(0,l());n.forEach(e=>{e.push(`${(e[1]*100/t).toFixed(1)}%`),e[1]=e[1].toFixed(3)}),n.unshift(s);let r=[];n.forEach(e=>{let t=e.length;for(let n=0;n<t;n++){let t=e[n].length;(!r[n]||t>r[n])&&(r[n]=t)}});let i=n.map(e=>e.map((e,t)=>c[t](e,r[t])).join(` | `));i.splice(1,0,r.map((e,t)=>{let n=t!==0&&t!==r.length-1?2:1;return c[t](`:`,e+n,`-`)}).join(`|`)),console.log(i.join(`
87
- `))}t.exports=(function(){let e=Object.create(null),t=!0;function i(t,i,a){return function(...s){let c=n(),l=i(...s),u=r(c);return o&&(e[t]===void 0&&(e[t]=0),e[t]+=u),a?{result:l,tdiff:u}:l}}function a(){return{...e}}function s(t){for(let[n,r]of Object.entries(t))e[n]===void 0&&(e[n]=0),e[n]+=r}function c(){t=!1}return o&&process.on(`exit`,()=>{t&&Object.keys(e).length>0&&u(e)}),{time:i,enabled:o,getListSize:l,getData:a,mergeData:s,disableDisplay:c}})()})),Io=d(((e,t)=>{t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),Lo=d(((e,t)=>{var n=Io(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),Ro=d(((e,t)=>{(function(){var e;function n(t,r){var i=this instanceof n?this:e;if(i.reset(r),typeof t==`string`&&t.length>0&&i.hash(t),i!==this)return i}n.prototype.hash=function(e){var t,n,r,i,a=e.length;switch(this.len+=a,n=this.k1,r=0,this.rem){case 0:n^=a>r?e.charCodeAt(r++)&65535:0;case 1:n^=a>r?(e.charCodeAt(r++)&65535)<<8:0;case 2:n^=a>r?(e.charCodeAt(r++)&65535)<<16:0;case 3:n^=a>r?(e.charCodeAt(r)&255)<<24:0,n^=a>r?(e.charCodeAt(r++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(t=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,t^=n,t=t<<13|t>>>19,t=t*5+3864292196&4294967295,!(r>=a);)n=e.charCodeAt(r++)&65535^(e.charCodeAt(r++)&65535)<<8^(e.charCodeAt(r++)&65535)<<16,i=e.charCodeAt(r++),n^=(i&255)<<24^(i&65280)>>8;switch(n=0,this.rem){case 3:n^=(e.charCodeAt(r+2)&65535)<<16;case 2:n^=(e.charCodeAt(r+1)&65535)<<8;case 1:n^=e.charCodeAt(r)&65535}this.h1=t}return this.k1=n,this},n.prototype.result=function(){var e=this.k1,t=this.h1;return e>0&&(e=e*11601+(e&65535)*3432906752&4294967295,e=e<<15|e>>>17,e=e*13715+(e&65535)*461832192&4294967295,t^=e),t^=this.len,t^=t>>>16,t=t*51819+(t&65535)*2246770688&4294967295,t^=t>>>13,t=t*44597+(t&65535)*3266445312&4294967295,t^=t>>>16,t>>>0},n.prototype.reset=function(e){return this.h1=typeof e==`number`?e:0,this.rem=this.k1=this.len=0,this},e=new n,t===void 0?this.MurmurHash3=n:t.exports=n})()})),zo=d(((e,t)=>{let n=Ro();function r(e){return n(e).result().toString(36)}t.exports=r})),Bo=d(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var a=t(e[i],i);n(a)?r.push.apply(r,a):r.push(a)}return r};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`}})),Vo=d(((e,t)=>{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}})),Ho=d(((e,t)=>{var n=Bo(),r=Vo();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e){return e?(e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),!0).map(d)):[]}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t){var i=[],a=r(`{`,`}`,e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=s||c,d=a.body.indexOf(`,`)>=0;if(!u&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+o+a.post,v(e)):[e];var p;if(u)p=a.body.split(/\.\./);else if(p=f(a.body),p.length===1&&(p=v(p[0],!1).map(m),p.length===1)){var y=a.post.length?v(a.post,!1):[``];return y.map(function(e){return a.pre+p[0]+e})}var b=a.pre,y=a.post.length?v(a.post,!1):[``],x;if(u){var S=l(p[0]),C=l(p[1]),w=Math.max(p[0].length,p[1].length),T=p.length==3?Math.abs(l(p[2])):1,E=g;C<S&&(T*=-1,E=_);var D=p.some(h);x=[];for(var O=S;E(O,C);O+=T){var k;if(c)k=String.fromCharCode(O),k===`\\`&&(k=``);else if(k=String(O),D){var A=w-k.length;if(A>0){var j=Array(A+1).join(`0`);k=O<0?`-`+j+k.slice(1):j+k}}x.push(k)}}else x=n(p,function(e){return v(e,!1)});for(var M=0;M<x.length;M++)for(var N=0;N<y.length;N++){var P=b+x[M]+y[N];(!t||u||P)&&i.push(P)}return i}})),Uo=d(((e,t)=>{t.exports=g,g.Minimatch=_;var n=function(){try{return h(`path`)}catch{}}()||{sep:`/`};g.sep=n.sep;var r=g.GLOBSTAR=_.GLOBSTAR={},i=Ho(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;g.filter=p;function p(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}g.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},_.defaults=function(e){return g.defaults(e).Minimatch};function g(e,t,n){return S(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new _(t,n).match(e)}function _(e,t){if(!(this instanceof _))return new _(e,t);S(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}_.prototype.debug=function(){},_.prototype.make=v;function v(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}_.prototype.parseNegate=y;function y(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)===`!`;i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}g.braceExpand=function(e,t){return b(e,t)},_.prototype.braceExpand=b;function b(e,t){return t||=this instanceof _?this.options:{},e=e===void 0?this.pattern:e,S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e)}var x=1024*64,S=function(e){if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>x)throw TypeError(`pattern is too long`)};_.prototype.parse=w;var C={};function w(e,t){S(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,x=e.length,w;b<x&&(w=e.charAt(b));b++){if(this.debug(`%s %s %s %j`,e,b,i,w),l&&u[w]){i+=`\\`+w,l=!1;continue}switch(w){case`/`:return!1;case`\\`:y(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s %s %s %j <-- stateChar`,e,b,i,w),m){this.debug(` in class`),w===`!`&&b===g+1&&(w=`^`),i+=w;continue}v.debug(`call clearStateChar %j`,p),y(),p=w,n.noext&&y();continue;case`(`:if(m){i+=`(`;continue}if(!p){i+=`\\(`;continue}d.push({type:p,start:b-1,reStart:i.length,open:a[p].open,close:a[p].close}),i+=p===`!`?`(?:(?!(?:`:`(?:`,this.debug(`plType %j %j`,p,i),p=!1;continue;case`)`:if(m||!d.length){i+=`\\)`;continue}y(),c=!0;var T=d.pop();i+=T.close,T.type===`!`&&f.push(T),T.reEnd=i.length;continue;case`|`:if(m||!d.length||l){i+=`\\|`,l=!1;continue}y(),i+=`|`;continue;case`[`:if(y(),m){i+=`\\`+w;continue}m=!0,g=b,h=i.length,i+=w;continue;case`]`:if(b===g+1||!m){i+=`\\`+w,l=!1;continue}var D=e.substring(g+1,b);try{RegExp(`[`+D+`]`)}catch{var O=this.parse(D,C);i=i.substr(0,h)+`\\[`+O[0]+`\\]`,c||=O[1],m=!1;continue}c=!0,m=!1,i+=w;continue;default:y(),l?l=!1:u[w]&&!(w===`^`&&m)&&(i+=`\\`),i+=w}}for(m&&(D=e.substr(g+1),O=this.parse(D,C),i=i.substr(0,h)+`\\[`+O[0],c||=O[1]),T=d.pop();T;T=d.pop()){var k=i.slice(T.reStart+T.open.length);this.debug(`setting tail`,i,T),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){return n||=`\\`,t+t+n+`|`}),this.debug(`tail=%j
87
+ `))}t.exports=(function(){let e=Object.create(null),t=!0;function i(t,i,a){return function(...s){let c=n(),l=i(...s),u=r(c);return o&&(e[t]===void 0&&(e[t]=0),e[t]+=u),a?{result:l,tdiff:u}:l}}function a(){return{...e}}function s(t){for(let[n,r]of Object.entries(t))e[n]===void 0&&(e[n]=0),e[n]+=r}function c(){t=!1}return o&&process.on(`exit`,()=>{t&&Object.keys(e).length>0&&u(e)}),{time:i,enabled:o,getListSize:l,getData:a,mergeData:s,disableDisplay:c}})()})),Io=d(((e,t)=>{t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})),Lo=d(((e,t)=>{let n=Io(),r={};for(let e of Object.keys(n))r[n[e]]=e;let i={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],`channels`,{value:t}),Object.defineProperty(i[e],`labels`,{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),Ro=d(((e,t)=>{let n=Lo();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}})),zo=d(((e,t)=>{let n=Lo(),r=Ro(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],`channels`,{value:n[e].channels}),Object.defineProperty(i[e],`labels`,{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i})),Bo=d(((e,t)=>{let n=(e,t)=>(...n)=>`\u001B[${e(...n)+t}m`,r=(e,t)=>(...n)=>{let r=e(...n);return`\u001B[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{let r=e(...n);return`\u001B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},a=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},c,l=(e,t,n,r)=>{c===void 0&&(c=zo());let i=r?10:0,a={};for(let[r,o]of Object.entries(c)){let s=r===`ansi16`?`ansi`:r;r===t?a[s]=e(n,i):typeof o==`object`&&(a[s]=e(o[t],i))}return a};function u(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\u001B[${i[0]}m`,close:`\u001B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,s(t.color,`ansi`,()=>l(n,`ansi16`,a,!1)),s(t.color,`ansi256`,()=>l(r,`ansi256`,a,!1)),s(t.color,`ansi16m`,()=>l(i,`rgb`,o,!1)),s(t.bgColor,`ansi`,()=>l(n,`ansi16`,a,!0)),s(t.bgColor,`ansi256`,()=>l(r,`ansi256`,a,!0)),s(t.bgColor,`ansi16m`,()=>l(i,`rgb`,o,!0)),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:u})})),Vo=d(((e,t)=>{t.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.substr(a,r-a)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.substr(i,(o?r-1:r)-i)+t+(o?`\r
88
+ `:`
89
+ `)+n,i=r+1,r=e.indexOf(`
90
+ `,i)}while(r!==-1);return a+=e.substr(i),a}}})),Ho=d(((e,t)=>{let n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
91
+ `],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){let t=e[0]===`u`,n=e[1]===`{`;return t&&!n&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r){let r=Number(t);if(!Number.isNaN(r))n.push(r);else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}})),Uo=d(((e,t)=>{let n=Bo(),{stdout:r,stderr:i}=b(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:o}=Vo(),{isArray:s}=Array,c=[`ansi`,`ansi`,`ansi256`,`ansi16m`],l=Object.create(null),u=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=r?r.level:0;e.level=t.level===void 0?n:t.level};var d=class{constructor(e){return f(e)}};let f=e=>{let t={};return u(t,e),t.template=(...e)=>x(t.template,...e),Object.setPrototypeOf(t,p.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d,t.template};function p(e){return f(e)}for(let[e,t]of Object.entries(n))l[e]={get(){let n=_(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};l.visible={get(){let e=_(this,this._styler,!0);return Object.defineProperty(this,`visible`,{value:e}),e}};let m=[`rgb`,`hex`,`keyword`,`hsl`,`hsv`,`hwb`,`ansi`,`ansi256`];for(let e of m)l[e]={get(){let{level:t}=this;return function(...r){let i=g(n.color[c[t]][e](...r),n.color.close,this._styler);return _(this,i,this._isEmpty)}}};for(let e of m){let t=`bg`+e[0].toUpperCase()+e.slice(1);l[t]={get(){let{level:t}=this;return function(...r){let i=g(n.bgColor[c[t]][e](...r),n.bgColor.close,this._styler);return _(this,i,this._isEmpty)}}}}let h=Object.defineProperties(()=>{},{...l,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},_=(e,t,n)=>{let r=(...e)=>s(e[0])&&s(e[0].raw)?v(r,x(r,...e)):v(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,h),r._generator=e,r._styler=t,r._isEmpty=n,r},v=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?``:t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.indexOf(`\x1B`)!==-1)for(;n!==void 0;)t=a(t,n.close,n.open),n=n.parent;let s=t.indexOf(`
92
+ `);return s!==-1&&(t=o(t,i,r,s)),r+t+i},y,x=(e,...t)=>{let[n]=t;if(!s(n)||!s(n.raw))return t.join(` `);let r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,`\\$&`),String(n.raw[e]));return y===void 0&&(y=Ho()),y(e,i.join(``))};Object.defineProperties(p.prototype,l);let S=p();S.supportsColor=r,S.stderr=p({level:i?i.level:0}),S.stderr.supportsColor=i,t.exports=S})),Wo=d(((e,t)=>{t.exports=function(e,t){let n=t.align,r=t.stringLength,i=e.reduce((e,t)=>(t.forEach((t,n)=>{let i=r(t);(!e[n]||i>e[n])&&(e[n]=i)}),e),[]);return e.map(e=>e.map((e,t)=>{let a=i[t]-r(e)||0,o=Array(Math.max(a+1,1)).join(` `);return n[t]===`r`?o+e:e+o}).join(` `).trimEnd()).join(`
93
+ `)}})),Go=d(((e,t)=>{let n=Uo(),r=h(`node:util`),i=Wo();function a(e,t){return t===1?e:`${e}s`}t.exports=function(e){let t=`
94
+ `,o=0,s=0,c=0,l=0,u=`yellow`;e.forEach(e=>{let a=e.messages;a.length!==0&&(o+=e.errorCount,s+=e.warningCount,c+=e.fixableErrorCount,l+=e.fixableWarningCount,t+=`${n.underline(e.filePath)}\n`,t+=`${i(a.map(e=>{let t;return e.fatal||e.severity===2?(t=n.red(`error`),u=`red`):t=n.yellow(`warning`),[``,String(e.line||0),String(e.column||0),t,e.message.replace(/([^ ])\.$/u,`$1`),n.dim(e.ruleId||``)]}),{align:[``,`r`,`l`],stringLength(e){return r.stripVTControlCharacters(e).length}}).split(`
95
+ `).map(e=>e.replace(/(\d+)\s+(\d+)/u,(e,t,r)=>n.dim(`${t}:${r}`))).join(`
96
+ `)}\n\n`)});let d=o+s;return d>0&&(t+=n[u].bold([`✖ `,d,a(` problem`,d),` (`,o,a(` error`,o),`, `,s,a(` warning`,s),`)
97
+ `].join(``)),(c>0||l>0)&&(t+=n[u].bold([` `,c,a(` error`,c),` and `,l,a(` warning`,l)," potentially fixable with the `--fix` option.\n"].join(``)))),d>0?n.reset(t):``}})),Ko=d(((e,t)=>{let n=(function(){let e={"&":`&#38;`,"<":`&#60;`,">":`&#62;`,'"':`&#34;`,"'":`&#39;`},t=/[&<>"']/gu;return function(n){return n?n.toString().replace(t,t=>e[t]||t):``}})();function r(e){let{reportColor:t,reportSummary:n,date:r,results:i}=e;return`
98
+ <!DOCTYPE html>
99
+ <html>
100
+ <head>
101
+ <meta charset="UTF-8">
102
+ <title>ESLint Report</title>
103
+ <link rel="icon" type="image/png" sizes="any" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAHaAAAB2gGFomX7AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABD1JREFUWMPFl11sk2UUx3/nbYtjxS1MF7MLMTECMgSTtSSyrQkLhAj7UBPnDSEGoxegGzMwojhXVpmTAA5iYpSoMQa8GBhFOrMFk03buei6yRAlcmOM0SEmU9d90b19jxcM1o5+sGnsc/e+z/l6ztf/HFFVMnns6QieeOCHBePGsHM+wrOtvLG2C4WRVDSSygNV7sCjlspxwDnPB44aols/DXk+mbMBmx/6OseITF1CuOtfevkPh2Uu+/jbdX8lujSScRlT5r7/QDlAfsRmfzmpnkQ/H3H13gf6bBrBn1uqK8WylgEnU8eZmk1repbfchJG1TyKyIKEwuBHFd3lD3naY3O1siiwXsVoBV2VgM1ht/QQUJk2ByqKghsQziYQ8ifKgexIXmuyzC4r67Y7R+xPAfuB/Nn3Cpva+0s7khpQVtZtd4bt51BWxtBYAiciprG7c7D4SixzU9PYalDL6110Ifb/w8W9eY7JqFeFHbO8fPGyLHwwFHJNJTSgwtVTB9oaw9BlQ+tO93vOxypoaQnfEYlI43SeCHDC4TDq9+51/h5fxr33q0ZfV9g04wat9Q943rjJgCp3952W2i8Bi6eDvdsfKj0cK/DYMRyXL4/sUJUmIHd2zYMezsvLaamp4WpcWN3BXSiHpuMwbGbZlnZ8tXY4rgosy+G7oRwQ0cAsd28YGgqfU5UjCZQDLALxDg+Hv/P5Rqvj4hwrS8izXzWb4spwc1GgENFnkpWRzxeuB+ssUHgLdb9UVdt8vpGdKQpze7n7y1U3DBChNRUuqOo9c+0+qpKKxyZqtAIYla7gY4JszAAQri93BSsMRZoyBcUC+w3Q3AyOA4sNhAOZ0q7Iq0b2vUNvK5zPgP+/H8+Zetdoa6uOikhdGurxebwvJY8Iz3V1rTMNAH+opEuQj5KTT/qA1yC+wyUjBm12OidaUtCcPNNX2h0Hx2JG69VulANZAJZJwfU7rzd/FHixuXniTdM0m4GtSQT7bTartqEh9yfImUEzkwKZmTwmo5a5JwkYBfcDL01/RkR5y8iWhtPBknB8ZxwtU9UjwOrrKCeizzc25nTGg1F/turEHoU9wMLpDvWKf8DTmNCAKnd/tqUTF4ElMXJ+A5rWDJS+41WsGWzALhJ+ErBWrLj9g+pqojHxlXJX8HGUg0BsR/x1yhxf3jm4cSzpQFLp6tmi6PEE7g1ZhtZ91ufpSZUAFa6gC+UoQslNaSmypT1U8mHKiUgEKS8KfgF4EpYunFI16tsHin+OG0LcgQK7yj7g6cSzpva2D3hKVNG0Y3mVO1BkqfSlmJrHBQ4uvM12gJHc6ETW8HZVfMRmXvyxxNC1Z/o839zyXlDuCr4nsC11J+MXueaVJWn6yPv+/pJtc9oLTNN4AeTvNGByd3rlhE2x9s5pLwDoHCy+grDzWmOZ95lUtLYj5Bma126Y8eX0/zj/ADxGyViSg4BXAAAAAElFTkSuQmCC">
104
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjk0LjgyNSAyNTguOTgyJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPg0KPHBhdGggZmlsbD0nIzgwODBGMicgZD0nTTk3LjAyMSw5OS4wMTZsNDguNDMyLTI3Ljk2MmMxLjIxMi0wLjcsMi43MDYtMC43LDMuOTE4LDBsNDguNDMzLDI3Ljk2MiBjMS4yMTEsMC43LDEuOTU5LDEuOTkzLDEuOTU5LDMuMzkzdjU1LjkyNGMwLDEuMzk5LTAuNzQ4LDIuNjkzLTEuOTU5LDMuMzk0bC00OC40MzMsMjcuOTYyYy0xLjIxMiwwLjctMi43MDYsMC43LTMuOTE4LDAgbC00OC40MzItMjcuOTYyYy0xLjIxMi0wLjctMS45NTktMS45OTQtMS45NTktMy4zOTR2LTU1LjkyNEM5NS4wNjMsMTAxLjAwOSw5NS44MSw5OS43MTYsOTcuMDIxLDk5LjAxNicvPg0KPHBhdGggZmlsbD0nIzRCMzJDMycgZD0nTTI3My4zMzYsMTI0LjQ4OEwyMTUuNDY5LDIzLjgxNmMtMi4xMDItMy42NC01Ljk4NS02LjMyNS0xMC4xODgtNi4zMjVIODkuNTQ1IGMtNC4yMDQsMC04LjA4OCwyLjY4NS0xMC4xOSw2LjMyNWwtNTcuODY3LDEwMC40NWMtMi4xMDIsMy42NDEtMi4xMDIsOC4yMzYsMCwxMS44NzdsNTcuODY3LDk5Ljg0NyBjMi4xMDIsMy42NCw1Ljk4Niw1LjUwMSwxMC4xOSw1LjUwMWgxMTUuNzM1YzQuMjAzLDAsOC4wODctMS44MDUsMTAuMTg4LTUuNDQ2bDU3Ljg2Ny0xMDAuMDEgQzI3NS40MzksMTMyLjM5NiwyNzUuNDM5LDEyOC4xMjgsMjczLjMzNiwxMjQuNDg4IE0yMjUuNDE5LDE3Mi44OThjMCwxLjQ4LTAuODkxLDIuODQ5LTIuMTc0LDMuNTlsLTczLjcxLDQyLjUyNyBjLTEuMjgyLDAuNzQtMi44ODgsMC43NC00LjE3LDBsLTczLjc2Ny00Mi41MjdjLTEuMjgyLTAuNzQxLTIuMTc5LTIuMTA5LTIuMTc5LTMuNTlWODcuODQzYzAtMS40ODEsMC44ODQtMi44NDksMi4xNjctMy41OSBsNzMuNzA3LTQyLjUyN2MxLjI4Mi0wLjc0MSwyLjg4Ni0wLjc0MSw0LjE2OCwwbDczLjc3Miw0Mi41MjdjMS4yODMsMC43NDEsMi4xODYsMi4xMDksMi4xODYsMy41OVYxNzIuODk4eicvPg0KPC9zdmc+">
105
+ <style>
106
+ body {
107
+ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
108
+ font-size: 16px;
109
+ font-weight: normal;
110
+ margin: 0;
111
+ padding: 0;
112
+ color: #333;
113
+ }
114
+
115
+ #overview {
116
+ padding: 20px 30px;
117
+ }
118
+
119
+ td,
120
+ th {
121
+ padding: 5px 10px;
122
+ }
123
+
124
+ h1 {
125
+ margin: 0;
126
+ }
127
+
128
+ table {
129
+ margin: 30px;
130
+ width: calc(100% - 60px);
131
+ max-width: 1000px;
132
+ border-radius: 5px;
133
+ border: 1px solid #ddd;
134
+ border-spacing: 0;
135
+ }
136
+
137
+ th {
138
+ font-weight: 400;
139
+ font-size: medium;
140
+ text-align: left;
141
+ cursor: pointer;
142
+ }
143
+
144
+ td.clr-1,
145
+ td.clr-2,
146
+ th span {
147
+ font-weight: 700;
148
+ }
149
+
150
+ th span {
151
+ float: right;
152
+ margin-left: 20px;
153
+ }
154
+
155
+ th span::after {
156
+ content: "";
157
+ clear: both;
158
+ display: block;
159
+ }
160
+
161
+ tr:last-child td {
162
+ border-bottom: none;
163
+ }
164
+
165
+ tr td:first-child,
166
+ tr td:last-child {
167
+ color: #9da0a4;
168
+ }
169
+
170
+ #overview.bg-0,
171
+ tr.bg-0 th {
172
+ color: #468847;
173
+ background: #dff0d8;
174
+ border-bottom: 1px solid #d6e9c6;
175
+ }
176
+
177
+ #overview.bg-1,
178
+ tr.bg-1 th {
179
+ color: #f0ad4e;
180
+ background: #fcf8e3;
181
+ border-bottom: 1px solid #fbeed5;
182
+ }
183
+
184
+ #overview.bg-2,
185
+ tr.bg-2 th {
186
+ color: #b94a48;
187
+ background: #f2dede;
188
+ border-bottom: 1px solid #eed3d7;
189
+ }
190
+
191
+ td {
192
+ border-bottom: 1px solid #ddd;
193
+ }
194
+
195
+ td.clr-1 {
196
+ color: #f0ad4e;
197
+ }
198
+
199
+ td.clr-2 {
200
+ color: #b94a48;
201
+ }
202
+
203
+ td a {
204
+ color: #3a33d1;
205
+ text-decoration: none;
206
+ }
207
+
208
+ td a:hover {
209
+ color: #272296;
210
+ text-decoration: underline;
211
+ }
212
+ </style>
213
+ </head>
214
+ <body>
215
+ <div id="overview" class="bg-${t}">
216
+ <h1>ESLint Report</h1>
217
+ <div>
218
+ <span>${n}</span> - Generated on ${r}
219
+ </div>
220
+ </div>
221
+ <table>
222
+ <tbody>
223
+ ${i}
224
+ </tbody>
225
+ </table>
226
+ <script type="text/javascript">
227
+ var groups = document.querySelectorAll("tr[data-group]");
228
+ for (i = 0; i < groups.length; i++) {
229
+ groups[i].addEventListener("click", function() {
230
+ var inGroup = document.getElementsByClassName(this.getAttribute("data-group"));
231
+ this.innerHTML = (this.innerHTML.indexOf("+") > -1) ? this.innerHTML.replace("+", "-") : this.innerHTML.replace("-", "+");
232
+ for (var j = 0; j < inGroup.length; j++) {
233
+ inGroup[j].style.display = (inGroup[j].style.display !== "none") ? "none" : "table-row";
234
+ }
235
+ });
236
+ }
237
+ <\/script>
238
+ </body>
239
+ </html>
240
+ `.trimStart()}function i(e,t){return t===1?e:`${e}s`}function a(e,t){let n=e+t,r=`${n} ${i(`problem`,n)}`;return n!==0&&(r+=` (${e} ${i(`error`,e)}, ${t} ${i(`warning`,t)})`),r}function o(e,t){return e===0?t===0?0:1:2}function s(e){let{parentIndex:t,lineNumber:r,columnNumber:i,severityNumber:a,severityName:o,message:s,ruleUrl:c,ruleId:l}=e;return`
241
+ <tr style="display: none;" class="f-${t}">
242
+ <td>${r}:${i}</td>
243
+ <td class="clr-${a}">${o}</td>
244
+ <td>${n(s)}</td>
245
+ <td>
246
+ <a href="${c||``}" target="_blank" rel="noopener noreferrer">${l||``}</a>
247
+ </td>
248
+ </tr>
249
+ `.trimStart()}function c(e,t,n){return e.map(e=>{let r=e.line||0,i=e.column||0,a;if(n){let t=n[e.ruleId];t&&t.docs&&t.docs.url&&(a=t.docs.url)}return s({parentIndex:t,lineNumber:r,columnNumber:i,severityNumber:e.severity,severityName:e.severity===1?`Warning`:`Error`,message:e.message,ruleId:e.ruleId,ruleUrl:a})}).join(`
250
+ `)}function l(e){let{color:t,index:r,filePath:i,summary:a}=e;return`
251
+ <tr class="bg-${t}" data-group="f-${r}">
252
+ <th colspan="4">
253
+ [+] ${n(i)}
254
+ <span>${n(a)}</span>
255
+ </th>
256
+ </tr>
257
+ `.trimStart()}function u(e,t){return e.map((e,n)=>l({index:n,color:o(e.errorCount,e.warningCount),filePath:e.filePath,summary:a(e.errorCount,e.warningCount)})+c(e.messages,n,t)).join(`
258
+ `)}t.exports=function(e,t){let n,i,s=t?t.rulesMeta:{};return n=0,i=0,e.forEach(e=>{n+=e.errorCount,i+=e.warningCount}),r({date:new Date,reportColor:o(n,i),reportSummary:a(n,i),results:u(e,s)})}})),qo=d(((e,t)=>{t.exports=function(e){return JSON.stringify(e)}})),Jo=d(((e,t)=>{t.exports=function(e,t){return JSON.stringify({results:e,metadata:t})}})),Yo=d(((e,t)=>{t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),Xo=d(((e,t)=>{var n=Yo(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),Zo=d(((e,t)=>{(function(){var e;function n(t,r){var i=this instanceof n?this:e;if(i.reset(r),typeof t==`string`&&t.length>0&&i.hash(t),i!==this)return i}n.prototype.hash=function(e){var t,n,r,i,a=e.length;switch(this.len+=a,n=this.k1,r=0,this.rem){case 0:n^=a>r?e.charCodeAt(r++)&65535:0;case 1:n^=a>r?(e.charCodeAt(r++)&65535)<<8:0;case 2:n^=a>r?(e.charCodeAt(r++)&65535)<<16:0;case 3:n^=a>r?(e.charCodeAt(r)&255)<<24:0,n^=a>r?(e.charCodeAt(r++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(t=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,t^=n,t=t<<13|t>>>19,t=t*5+3864292196&4294967295,!(r>=a);)n=e.charCodeAt(r++)&65535^(e.charCodeAt(r++)&65535)<<8^(e.charCodeAt(r++)&65535)<<16,i=e.charCodeAt(r++),n^=(i&255)<<24^(i&65280)>>8;switch(n=0,this.rem){case 3:n^=(e.charCodeAt(r+2)&65535)<<16;case 2:n^=(e.charCodeAt(r+1)&65535)<<8;case 1:n^=e.charCodeAt(r)&65535}this.h1=t}return this.k1=n,this},n.prototype.result=function(){var e=this.k1,t=this.h1;return e>0&&(e=e*11601+(e&65535)*3432906752&4294967295,e=e<<15|e>>>17,e=e*13715+(e&65535)*461832192&4294967295,t^=e),t^=this.len,t^=t>>>16,t=t*51819+(t&65535)*2246770688&4294967295,t^=t>>>13,t=t*44597+(t&65535)*3266445312&4294967295,t^=t>>>16,t>>>0},n.prototype.reset=function(e){return this.h1=typeof e==`number`?e:0,this.rem=this.k1=this.len=0,this},e=new n,t===void 0?this.MurmurHash3=n:t.exports=n})()})),Qo=d(((e,t)=>{let n=Zo();function r(e){return n(e).result().toString(36)}t.exports=r})),$o=d(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i<e.length;i++){var a=t(e[i],i);n(a)?r.push.apply(r,a):r.push(a)}return r};var n=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`}})),es=d(((e,t)=>{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}})),ts=d(((e,t)=>{var n=$o(),r=es();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e){return e?(e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),!0).map(d)):[]}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t){var i=[],a=r(`{`,`}`,e);if(!a||/\$$/.test(a.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),u=s||c,d=a.body.indexOf(`,`)>=0;if(!u&&!d)return a.post.match(/,(?!,).*\}/)?(e=a.pre+`{`+a.body+o+a.post,v(e)):[e];var p;if(u)p=a.body.split(/\.\./);else if(p=f(a.body),p.length===1&&(p=v(p[0],!1).map(m),p.length===1)){var y=a.post.length?v(a.post,!1):[``];return y.map(function(e){return a.pre+p[0]+e})}var b=a.pre,y=a.post.length?v(a.post,!1):[``],x;if(u){var S=l(p[0]),C=l(p[1]),w=Math.max(p[0].length,p[1].length),T=p.length==3?Math.abs(l(p[2])):1,E=g;C<S&&(T*=-1,E=_);var D=p.some(h);x=[];for(var O=S;E(O,C);O+=T){var k;if(c)k=String.fromCharCode(O),k===`\\`&&(k=``);else if(k=String(O),D){var A=w-k.length;if(A>0){var j=Array(A+1).join(`0`);k=O<0?`-`+j+k.slice(1):j+k}}x.push(k)}}else x=n(p,function(e){return v(e,!1)});for(var M=0;M<x.length;M++)for(var N=0;N<y.length;N++){var P=b+x[M]+y[N];(!t||u||P)&&i.push(P)}return i}})),ns=d(((e,t)=>{t.exports=g,g.Minimatch=_;var n=function(){try{return h(`path`)}catch{}}()||{sep:`/`};g.sep=n.sep;var r=g.GLOBSTAR=_.GLOBSTAR={},i=ts(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;g.filter=p;function p(e,t){return t||={},function(n,r,i){return g(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}g.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return g;var t=g,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},_.defaults=function(e){return g.defaults(e).Minimatch};function g(e,t,n){return S(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new _(t,n).match(e)}function _(e,t){if(!(this instanceof _))return new _(e,t);S(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}_.prototype.debug=function(){},_.prototype.make=v;function v(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}_.prototype.parseNegate=y;function y(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;i<a&&e.charAt(i)===`!`;i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}g.braceExpand=function(e,t){return b(e,t)},_.prototype.braceExpand=b;function b(e,t){return t||=this instanceof _?this.options:{},e=e===void 0?this.pattern:e,S(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:i(e)}var x=1024*64,S=function(e){if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>x)throw TypeError(`pattern is too long`)};_.prototype.parse=w;var C={};function w(e,t){S(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,x=e.length,w;b<x&&(w=e.charAt(b));b++){if(this.debug(`%s %s %s %j`,e,b,i,w),l&&u[w]){i+=`\\`+w,l=!1;continue}switch(w){case`/`:return!1;case`\\`:y(),l=!0;continue;case`?`:case`*`:case`+`:case`@`:case`!`:if(this.debug(`%s %s %s %j <-- stateChar`,e,b,i,w),m){this.debug(` in class`),w===`!`&&b===g+1&&(w=`^`),i+=w;continue}v.debug(`call clearStateChar %j`,p),y(),p=w,n.noext&&y();continue;case`(`:if(m){i+=`(`;continue}if(!p){i+=`\\(`;continue}d.push({type:p,start:b-1,reStart:i.length,open:a[p].open,close:a[p].close}),i+=p===`!`?`(?:(?!(?:`:`(?:`,this.debug(`plType %j %j`,p,i),p=!1;continue;case`)`:if(m||!d.length){i+=`\\)`;continue}y(),c=!0;var T=d.pop();i+=T.close,T.type===`!`&&f.push(T),T.reEnd=i.length;continue;case`|`:if(m||!d.length||l){i+=`\\|`,l=!1;continue}y(),i+=`|`;continue;case`[`:if(y(),m){i+=`\\`+w;continue}m=!0,g=b,h=i.length,i+=w;continue;case`]`:if(b===g+1||!m){i+=`\\`+w,l=!1;continue}var D=e.substring(g+1,b);try{RegExp(`[`+D+`]`)}catch{var O=this.parse(D,C);i=i.substr(0,h)+`\\[`+O[0]+`\\]`,c||=O[1],m=!1;continue}c=!0,m=!1,i+=w;continue;default:y(),l?l=!1:u[w]&&!(w===`^`&&m)&&(i+=`\\`),i+=w}}for(m&&(D=e.substr(g+1),O=this.parse(D,C),i=i.substr(0,h)+`\\[`+O[0],c||=O[1]),T=d.pop();T;T=d.pop()){var k=i.slice(T.reStart+T.open.length);this.debug(`setting tail`,i,T),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,n){return n||=`\\`,t+t+n+`|`}),this.debug(`tail=%j
88
259
  %s`,k,k,T,i);var A=T.type===`*`?s:T.type===`?`?o:`\\`+T.type;c=!0,i=i.slice(0,T.reStart)+A+`\\(`+k}y(),l&&(i+=`\\\\`);var j=!1;switch(i.charAt(0)){case`[`:case`.`:case`(`:j=!0}for(var M=f.length-1;M>-1;M--){var N=f[M],P=i.slice(0,N.reStart),F=i.slice(N.reStart,N.reEnd-8),I=i.slice(N.reEnd-8,N.reEnd),L=i.slice(N.reEnd);I+=L;var R=P.split(`(`).length-1,z=L;for(b=0;b<R;b++)z=z.replace(/\)[+*?]?/,``);L=z;var B=``;L===``&&t!==C&&(B=`$`),i=P+F+L+B+I}if(i!==``&&c&&(i=`(?=.)`+i),j&&(i=_+i),t===C)return[i,c];if(!c)return E(e);var V=n.nocase?`i`:``;try{var H=RegExp(`^`+i+`$`,V)}catch{return RegExp(`$.`)}return H._glob=e,H._src=i,H}g.makeRe=function(e,t){return new _(e,t||{}).makeRe()},_.prototype.makeRe=T;function T(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?s:t.dot?c:l,i=t.nocase?`i`:``,a=e.map(function(e){return e.map(function(e){return e===r?n:typeof e==`string`?D(e):e._src}).join(`\\/`)}).join(`|`);a=`^(?:`+a+`)$`,this.negate&&(a=`^(?!`+a+`).*$`);try{this.regexp=new RegExp(a,i)}catch{this.regexp=!1}return this.regexp}g.match=function(e,t,n){n||={};var r=new _(t,n);return e=e.filter(function(e){return r.match(e)}),r.options.nonull&&!e.length&&e.push(t),e},_.prototype.match=function(e,t){if(t===void 0&&(t=this.partial),this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;var r=this.options;n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),e=e.split(f),this.debug(this.pattern,`split`,e);var i=this.set;this.debug(this.pattern,`set`,i);var a,o;for(o=e.length-1;o>=0&&(a=e[o],!a);o--);for(o=0;o<i.length;o++){var s=i[o],c=e;if(r.matchBase&&s.length===1&&(c=[a]),this.matchOne(c,s,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},_.prototype.matchOne=function(e,t,n){var i=this.options;this.debug(`matchOne`,{this:this,file:e,pattern:t}),this.debug(`matchOne`,e.length,t.length);for(var a=0,o=0,s=e.length,c=t.length;a<s&&o<c;a++,o++){this.debug(`matchOne loop`);var l=t[o],u=e[a];if(this.debug(t,l,u),l===!1)return!1;if(l===r){this.debug(`GLOBSTAR`,[t,l,u]);var d=a,f=o+1;if(f===c){for(this.debug(`** at the end`);a<s;a++)if(e[a]===`.`||e[a]===`..`||!i.dot&&e[a].charAt(0)===`.`)return!1;return!0}for(;d<s;){var p=e[d];if(this.debug(`
89
260
  globstar while`,e,d,t,f,p),this.matchOne(e.slice(d),t.slice(f),n))return this.debug(`globstar found match!`,d,s,p),!0;if(p===`.`||p===`..`||!i.dot&&p.charAt(0)===`.`){this.debug(`dot detected!`,e,d,t,f);break}this.debug(`globstar swallow a segment, and continue`),d++}return!!(n&&(this.debug(`
90
- >>> no match, partial?`,e,d,t,f),d===s))}var m;if(typeof l==`string`?(m=u===l,this.debug(`string match`,l,u,m)):(m=u.match(l),this.debug(`pattern match`,l,u,m)),!m)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)};function E(e){return e.replace(/\\(.)/g,`$1`)}function D(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}})),Wo=d(((e,t)=>{var n=Lo(),r=h(`path`).posix.dirname,i=h(`os`).platform()===`win32`,a=`/`,o=/\\/g,s=/\\([!*?|[\](){}])/g;t.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&i&&e.indexOf(a)<0&&(e=e.replace(o,a)),c(e)&&(e+=a),e+=`a`;do e=r(e);while(l(e));return e.replace(s,`$1`)};function c(e){var t=e.slice(-1),n;switch(t){case`}`:n=`{`;break;case`]`:n=`[`;break;default:return!1}var r=e.indexOf(n);return r<0?!1:e.slice(r+1,-1).includes(a)}function l(e){return/\([^()]+$/.test(e)||e[0]===`{`||e[0]===`[`||/[^\\][{[]/.test(e)?!0:n(e)}})),Go=d(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,N=`[object Uint8ClampedArray]`,P=`[object Uint16Array]`,F=`[object Uint32Array]`,I=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,z={};z[D]=z[O]=z[k]=z[A]=z[j]=z[M]=z[N]=z[P]=z[F]=!0,z[s]=z[c]=z[T]=z[u]=z[E]=z[d]=z[f]=z[p]=z[h]=z[g]=z[v]=z[b]=z[x]=z[S]=z[w]=!1;var B=typeof global==`object`&&global&&global.Object===Object&&global,V=typeof self==`object`&&self&&self.Object===Object&&self,H=B||V||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ee=U&&typeof t==`object`&&t&&!t.nodeType&&t,W=ee&&ee.exports===U,te=W&&B.process,ne=function(){try{return ee&&ee.require&&ee.require(`util`).types||te&&te.binding&&te.binding(`util`)}catch{}}(),re=ne&&ne.isTypedArray;function ie(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function oe(e){return function(t){return e(t)}}function G(e,t){return e?.[t]}function se(e,t){return function(n){return e(t(n))}}var ce=Array.prototype,le=Function.prototype,K=Object.prototype,ue=H[`__core-js_shared__`],de=le.toString,fe=K.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=K.toString,he=de.call(Object),ge=RegExp(`^`+de.call(fe).replace(I,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),q=W?H.Buffer:void 0,_e=H.Symbol,J=H.Uint8Array,ve=q?q.allocUnsafe:void 0,Y=se(Object.getPrototypeOf,Object),ye=Object.create,be=K.propertyIsEnumerable,xe=ce.splice,Se=_e?_e.toStringTag:void 0,X=function(){try{var e=yt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ce=q?q.isBuffer:void 0,Z=Math.max,we=Date.now,Te=yt(H,`Map`),Ee=yt(Object,`create`),De=function(){function e(){}return function(t){if(!Ht(t))return{};if(ye)return ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(){this.__data__=Ee?Ee(null):{},this.size=0}function Ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function je(e){var t=this.__data__;if(Ee){var n=t[e];return n===r?void 0:n}return fe.call(t,e)?t[e]:void 0}function Me(e){var t=this.__data__;return Ee?t[e]!==void 0:fe.call(t,e)}function Ne(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&t===void 0?r:t,this}Oe.prototype.clear=ke,Oe.prototype.delete=Ae,Oe.prototype.get=je,Oe.prototype.has=Me,Oe.prototype.set=Ne;function Pe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(){this.__data__=[],this.size=0}function Ie(e){var t=this.__data__,n=et(t,e);return n<0?!1:(n==t.length-1?t.pop():xe.call(t,n,1),--this.size,!0)}function Le(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]}function Q(e){return et(this.__data__,e)>-1}function Re(e,t){var n=this.__data__,r=et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Pe.prototype.clear=Fe,Pe.prototype.delete=Ie,Pe.prototype.get=Le,Pe.prototype.has=Q,Pe.prototype.set=Re;function ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(){this.size=0,this.__data__={hash:new Oe,map:new(Te||Pe),string:new Oe}}function Ve(e){var t=vt(this,e).delete(e);return this.size-=t?1:0,t}function He(e){return vt(this,e).get(e)}function Ue(e){return vt(this,e).has(e)}function We(e,t){var n=vt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}ze.prototype.clear=Be,ze.prototype.delete=Ve,ze.prototype.get=He,ze.prototype.has=Ue,ze.prototype.set=We;function Ge(e){this.size=(this.__data__=new Pe(e)).size}function Ke(){this.__data__=new Pe,this.size=0}function qe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Je(e){return this.__data__.get(e)}function Ye(e){return this.__data__.has(e)}function Xe(e,t){var r=this.__data__;if(r instanceof Pe){var i=r.__data__;if(!Te||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ze(i)}return r.set(e,t),this.size=r.size,this}Ge.prototype.clear=Ke,Ge.prototype.delete=qe,Ge.prototype.get=Je,Ge.prototype.has=Ye,Ge.prototype.set=Xe;function Ze(e,t){var n=It(e),r=!n&&Ft(e),i=!n&&!r&&zt(e),a=!n&&!r&&!i&&Gt(e),o=n||r||i||a,s=o?ae(e.length,String):[],c=s.length;for(var l in e)(t||fe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||St(l,c)))&&s.push(l);return s}function Qe(e,t,n){(n!==void 0&&!Pt(e[t],n)||n===void 0&&!(t in e))&&tt(e,t,n)}function $e(e,t,n){var r=e[t];(!(fe.call(e,t)&&Pt(r,n))||n===void 0&&!(t in e))&&tt(e,t,n)}function et(e,t){for(var n=e.length;n--;)if(Pt(e[n][0],t))return n;return-1}function tt(e,t,n){t==`__proto__`&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nt=_t();function rt(e){return e==null?e===void 0?C:_:Se&&Se in Object(e)?bt(e):Ot(e)}function it(e){return Ut(e)&&rt(e)==s}function $(e){return!Ht(e)||Tt(e)?!1:(Bt(e)?ge:L).test(Nt(e))}function at(e){return Ut(e)&&Vt(e.length)&&!!z[rt(e)]}function ot(e){if(!Ht(e))return Dt(e);var t=Et(e),n=[];for(var r in e)r==`constructor`&&(t||!fe.call(e,r))||n.push(r);return n}function st(e,t,n,r,i){e!==t&&nt(t,function(a,o){if(i||=new Ge,Ht(a))ct(e,t,o,n,st,r,i);else{var s=r?r(At(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Qe(e,o,s)}},qt)}function ct(e,t,n,r,i,a,o){var s=At(e,n),c=At(t,n),l=o.get(c);if(l){Qe(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=It(c),p=!f&&zt(c),m=!f&&!p&&Gt(c);u=c,f||p||m?It(s)?u=s:Rt(s)?u=mt(s):p?(d=!1,u=dt(c,!0)):m?(d=!1,u=pt(c,!0)):u=[]:Wt(c)||Ft(c)?(u=s,Ft(s)?u=Kt(s):(!Ht(s)||Bt(s))&&(u=xt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Qe(e,n,u)}function lt(e,t){return jt(kt(e,t,Xt),e+``)}var ut=X?function(e,t){return X(e,`toString`,{configurable:!0,enumerable:!1,value:Yt(t),writable:!0})}:Xt;function dt(e,t){if(t)return e.slice();var n=e.length,r=ve?ve(n):new e.constructor(n);return e.copy(r),r}function ft(e){var t=new e.constructor(e.byteLength);return new J(t).set(new J(e)),t}function pt(e,t){var n=t?ft(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function ht(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?tt(n,s,c):$e(n,s,c)}return n}function gt(e){return lt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Ct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function _t(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function vt(e,t){var n=e.__data__;return wt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function yt(e,t){var n=G(e,t);return $(n)?n:void 0}function bt(e){var t=fe.call(e,Se),n=e[Se];try{e[Se]=void 0;var r=!0}catch{}var i=me.call(e);return r&&(t?e[Se]=n:delete e[Se]),i}function xt(e){return typeof e.constructor==`function`&&!Et(e)?De(Y(e)):{}}function St(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&R.test(e))&&e>-1&&e%1==0&&e<t}function Ct(e,t,n){if(!Ht(n))return!1;var r=typeof t;return(r==`number`?Lt(n)&&St(t,n.length):r==`string`&&t in n)?Pt(n[t],e):!1}function wt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Tt(e){return!!pe&&pe in e}function Et(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||K)}function Dt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Ot(e){return me.call(e)}function kt(e,t,n){return t=Z(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Z(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ie(e,this,s)}}function At(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var jt=Mt(ut);function Mt(e){var t=0,n=0;return function(){var r=we(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Nt(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}function Pt(e,t){return e===t||e!==e&&t!==t}var Ft=it(function(){return arguments}())?it:function(e){return Ut(e)&&fe.call(e,`callee`)&&!be.call(e,`callee`)},It=Array.isArray;function Lt(e){return e!=null&&Vt(e.length)&&!Bt(e)}function Rt(e){return Ut(e)&&Lt(e)}var zt=Ce||Zt;function Bt(e){if(!Ht(e))return!1;var t=rt(e);return t==p||t==m||t==l||t==y}function Vt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Ut(e){return typeof e==`object`&&!!e}function Wt(e){if(!Ut(e)||rt(e)!=v)return!1;var t=Y(e);if(t===null)return!0;var n=fe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&de.call(n)==he}var Gt=re?oe(re):at;function Kt(e){return ht(e,qt(e))}function qt(e){return Lt(e)?Ze(e,!0):ot(e)}var Jt=gt(function(e,t,n){st(e,t,n)});function Yt(e){return function(){return e}}function Xt(e){return e}function Zt(){return!1}t.exports=Jt})),Ko=d(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.URI=n.URI||{})})(e,(function(e){function t(){var e=[...arguments];if(e.length>1){e[0]=e[0].slice(0,-1);for(var t=e.length-1,n=1;n<t;++n)e[n]=e[n].slice(1,-1);return e[t]=e[t].slice(1),e.join(``)}else return e[0]}function n(e){return`(?:`+e+`)`}function r(e){return e===void 0?`undefined`:e===null?`null`:Object.prototype.toString.call(e).split(` `).pop().split(`]`).shift().toLowerCase()}function i(e){return e.toUpperCase()}function a(e){return e==null?[]:e instanceof Array?e:typeof e.length!=`number`||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e)}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r=`[A-Za-z]`,i=`[0-9]`,a=t(i,`[A-Fa-f]`),o=n(n(`%[EFef]`+a+`%`+a+a+`%`+a+a)+`|`+n(`%[89A-Fa-f]`+a+`%`+a+a)+`|`+n(`%`+a+a)),s=`[\\:\\/\\?\\#\\[\\]\\@]`,c=`[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]`,l=t(s,c),u=e?`[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`:`[]`,d=e?`[\\uE000-\\uF8FF]`:`[]`,f=t(r,i,`[\\-\\.\\_\\~]`,u),p=n(r+t(r,i,`[\\+\\-\\.]`)+`*`),m=n(n(o+`|`+t(f,c,`[\\:]`))+`*`);n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`[1-9]`+i)+`|`+i);var h=n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`0?[1-9]`+i)+`|0?0?`+i),g=n(h+`\\.`+h+`\\.`+h+`\\.`+h),_=n(a+`{1,4}`),v=n(n(_+`\\:`+_)+`|`+g),y=n([n(n(_+`\\:`)+`{6}`+v),n(`\\:\\:`+n(_+`\\:`)+`{5}`+v),n(n(_)+`?\\:\\:`+n(_+`\\:`)+`{4}`+v),n(n(n(_+`\\:`)+`{0,1}`+_)+`?\\:\\:`+n(_+`\\:`)+`{3}`+v),n(n(n(_+`\\:`)+`{0,2}`+_)+`?\\:\\:`+n(_+`\\:`)+`{2}`+v),n(n(n(_+`\\:`)+`{0,3}`+_)+`?\\:\\:`+_+`\\:`+v),n(n(n(_+`\\:`)+`{0,4}`+_)+`?\\:\\:`+v),n(n(n(_+`\\:`)+`{0,5}`+_)+`?\\:\\:`+_),n(n(n(_+`\\:`)+`{0,6}`+_)+`?\\:\\:`)].join(`|`)),b=n(n(f+`|`+o)+`+`);n(y+`\\%25`+b);var x=n(y+n(`\\%25|\\%(?!`+a+`{2})`)+b),S=n(`[vV]`+a+`+\\.`+t(f,c,`[\\:]`)+`+`),C=n(`\\[`+n(x+`|`+y+`|`+S)+`\\]`),w=n(n(o+`|`+t(f,c))+`*`),T=n(C+`|`+g+`(?!`+w+`)|`+w),E=n(i+`*`),D=n(n(m+`@`)+`?`+T+n(`\\:`+E)+`?`),O=n(o+`|`+t(f,c,`[\\:\\@]`)),k=n(O+`*`),A=n(O+`+`),j=n(n(o+`|`+t(f,c,`[\\@]`))+`+`),M=n(n(`\\/`+k)+`*`),N=n(`\\/`+n(A+M)+`?`),P=n(j+M),F=n(A+M),I=`(?!`+O+`)`;n(M+`|`+N+`|`+P+`|`+F+`|`+I);var L=n(n(O+`|`+t(`[\\/\\?]`,d))+`*`),R=n(n(O+`|[\\/\\?]`)+`*`),z=n(n(`\\/\\/`+D+M)+`|`+N+`|`+F+`|`+I),B=n(p+`\\:`+z+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`),V=n(n(n(`\\/\\/`+D+M)+`|`+N+`|`+P+`|`+I)+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`);return n(B+`|`+V),n(p+`\\:`+z+n(`\\?`+L)+`?`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+P+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`),``+n(`\\#(`+R+`)`),``+n(`(`+m+`)@`)+T+n(`\\:(`+E+`)`),{NOT_SCHEME:new RegExp(t(`[^]`,r,i,`[\\+\\-\\.]`),`g`),NOT_USERINFO:new RegExp(t(`[^\\%\\:]`,f,c),`g`),NOT_HOST:new RegExp(t(`[^\\%\\[\\]\\:]`,f,c),`g`),NOT_PATH:new RegExp(t(`[^\\%\\/\\:\\@]`,f,c),`g`),NOT_PATH_NOSCHEME:new RegExp(t(`[^\\%\\/\\@]`,f,c),`g`),NOT_QUERY:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`,d),`g`),NOT_FRAGMENT:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`),`g`),ESCAPE:new RegExp(t(`[^]`,f,c),`g`),UNRESERVED:new RegExp(f,`g`),OTHER_CHARS:new RegExp(t(`[^\\%]`,f,l),`g`),PCT_ENCODED:new RegExp(o,`g`),IPV4ADDRESS:RegExp(`^(`+g+`)$`),IPV6ADDRESS:RegExp(`^\\[?(`+y+`)`+n(n(`\\%25|\\%(?!`+a+`{2})`)+`(`+b+`)`)+`?\\]?$`)}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),d=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)},f=2147483647,p=36,m=1,h=26,g=38,_=700,v=72,y=128,b=`-`,x=/^xn--/,S=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},T=p-m,E=Math.floor,D=String.fromCharCode;function O(e){throw RangeError(w[e])}function k(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function A(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(C,`.`);var i=k(e.split(`.`),t).join(`.`);return r+i}function j(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var M=function(e){return String.fromCodePoint.apply(String,d(e))},N=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},P=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},F=function(e,t,n){var r=0;for(e=n?E(e/_):e>>1,e+=E(e/t);e>T*h>>1;r+=p)e=E(e/T);return E(r+(T+1)*e/(e+g))},I=function(e){var t=[],n=e.length,r=0,i=y,a=v,o=e.lastIndexOf(b);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&O(`not-basic`),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,u=1,d=p;;d+=p){c>=n&&O(`invalid-input`);var g=N(e.charCodeAt(c++));(g>=p||g>E((f-r)/u))&&O(`overflow`),r+=g*u;var _=d<=a?m:d>=a+h?h:d-a;if(g<_)break;var x=p-_;u>E(f/x)&&O(`overflow`),u*=x}var S=t.length+1;a=F(r-l,S,l==0),E(r/S)>f-i&&O(`overflow`),i+=E(r/S),r%=S,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[];e=j(e);var n=e.length,r=y,i=0,a=v,o=!0,s=!1,c=void 0;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=!0){var d=u.value;d<128&&t.push(D(d))}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,_=g;for(g&&t.push(b);_<n;){var x=f,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),k;!(S=(k=T.next()).done);S=!0){var A=k.value;A>=r&&A<x&&(x=A)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}var M=_+1;x-r>E((f-i)/M)&&O(`overflow`),i+=(x-r)*M,r=x;var N=!0,I=!1,L=void 0;try{for(var R=e[Symbol.iterator](),z;!(N=(z=R.next()).done);N=!0){var B=z.value;if(B<r&&++i>f&&O(`overflow`),B==r){for(var V=i,H=p;;H+=p){var U=H<=a?m:H>=a+h?h:H-a;if(V<U)break;var ee=V-U,W=p-U;t.push(D(P(U+ee%W,0))),V=E(ee/W)}t.push(D(P(V,0))),a=F(i,M,_==g),i=0,++_}}}catch(e){I=!0,L=e}finally{try{!N&&R.return&&R.return()}finally{if(I)throw L}}++i,++r}return t.join(``)},R={version:`2.1.0`,ucs2:{decode:j,encode:M},decode:I,encode:L,toASCII:function(e){return A(e,function(e){return S.test(e)?`xn--`+L(e):e})},toUnicode:function(e){return A(e,function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e})}},z={};function B(e){var t=e.charCodeAt(0),n=void 0;return n=t<16?`%0`+t.toString(16).toUpperCase():t<128?`%`+t.toString(16).toUpperCase():t<2048?`%`+(t>>6|192).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase():`%`+(t>>12|224).toString(16).toUpperCase()+`%`+(t>>6&63|128).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase(),n}function V(e){for(var t=``,n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var a=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((i&31)<<6|a&63)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function H(e,t){function n(e){var n=V(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,``),e.userinfo!==void 0&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,i)),e.host!==void 0&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,i)),e.path!==void 0&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,i)),e.query!==void 0&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,i)),e.fragment!==void 0&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,i)),e}function U(e){return e.replace(/^0*(.*)/,`$1`)||`0`}function ee(e,t){var n=u(e.match(t.IPV4ADDRESS)||[],2)[1];return n?n.split(`.`).map(U).join(`.`):e}function W(e,t){var n=u(e.match(t.IPV6ADDRESS)||[],3),r=n[1],i=n[2];if(r){for(var a=u(r.toLowerCase().split(`::`).reverse(),2),o=a[0],s=a[1],c=s?s.split(`:`).map(U):[],l=o.split(`:`).map(U),d=t.IPV4ADDRESS.test(l[l.length-1]),f=d?7:8,p=l.length-f,m=Array(f),h=0;h<f;++h)m[h]=c[h]||l[p+h]||``;d&&(m[f-1]=ee(m[f-1],t));var g=m.reduce(function(e,t,n){if(!t||t===`0`){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],_=void 0;if(g&&g.length>1){var v=m.slice(0,g.index),y=m.slice(g.index+g.length);_=v.join(`:`)+`::`+y.join(`:`)}else _=m.join(`:`);return i&&(_+=`%`+i),_}else return e}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ne=``.match(/(){0}/)[1]===void 0;function re(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n={},r=t.iri===!1?c:l;t.reference===`suffix`&&(e=(t.scheme?t.scheme+`:`:``)+`//`+e);var i=e.match(te);if(i){ne?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=e.indexOf(`@`)===-1?void 0:i[3],n.host=e.indexOf(`//`)===-1?void 0:i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=e.indexOf(`?`)===-1?void 0:i[7],n.fragment=e.indexOf(`#`)===-1?void 0:i[8],isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&=W(ee(n.host,r),r),n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference=`same-document`:n.scheme===void 0?n.reference=`relative`:n.fragment===void 0?n.reference=`absolute`:n.reference=`uri`,t.reference&&t.reference!==`suffix`&&t.reference!==n.reference&&(n.error=n.error||`URI is not a `+t.reference+` reference.`);var a=z[(t.scheme||n.scheme||``).toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)){if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=R.toASCII(n.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(e){n.error=n.error||`Host's domain name can not be converted to ASCII via punycode: `+e}H(n,c)}else H(n,r);a&&a.parse&&a.parse(n,t)}else n.error=n.error||`URI can not be parsed.`;return n}function ie(e,t){var n=t.iri===!1?c:l,r=[];return e.userinfo!==void 0&&(r.push(e.userinfo),r.push(`@`)),e.host!==void 0&&r.push(W(ee(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return`[`+t+(n?`%25`+n:``)+`]`})),(typeof e.port==`number`||typeof e.port==`string`)&&(r.push(`:`),r.push(String(e.port))),r.length?r.join(``):void 0}var ae=/^\.\.?\//,oe=/^\/\.(\/|$)/,G=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function ce(e){for(var t=[];e.length;)if(e.match(ae))e=e.replace(ae,``);else if(e.match(oe))e=e.replace(oe,`/`);else if(e.match(G))e=e.replace(G,`/`),t.pop();else if(e===`.`||e===`..`)e=``;else{var n=e.match(se);if(n){var r=n[0];e=e.slice(r.length),t.push(r)}else throw Error(`Unexpected dot segment condition`)}return t.join(``)}function le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.iri?l:c,r=[],i=z[(t.scheme||e.scheme||``).toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host&&!n.IPV6ADDRESS.test(e.host)&&(t.domainHost||i&&i.domainHost))try{e.host=t.iri?R.toUnicode(e.host):R.toASCII(e.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(n){e.error=e.error||`Host's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+n}H(e,n),t.reference!==`suffix`&&e.scheme&&(r.push(e.scheme),r.push(`:`));var a=ie(e,t);if(a!==void 0&&(t.reference!==`suffix`&&r.push(`//`),r.push(a),e.path&&e.path.charAt(0)!==`/`&&r.push(`/`)),e.path!==void 0){var o=e.path;!t.absolutePath&&(!i||!i.absolutePath)&&(o=ce(o)),a===void 0&&(o=o.replace(/^\/\//,`/%2F`)),r.push(o)}return e.query!==void 0&&(r.push(`?`),r.push(e.query)),e.fragment!==void 0&&(r.push(`#`),r.push(e.fragment)),r.join(``)}function K(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments[3],i={};return r||(e=re(le(e,n),n),t=re(le(t,n),n)),n||={},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.path?(t.path.charAt(0)===`/`?i.path=ce(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path=`/`+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:i.path=t.path,i.path=ce(i.path)),i.query=t.query):(i.path=e.path,t.query===void 0?i.query=e.query:i.query=t.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function ue(e,t,n){var r=o({scheme:`null`},n);return le(K(re(e,r),re(t,r),r,!0),r)}function de(e,t){return typeof e==`string`?e=le(re(e,t),t):r(e)===`object`&&(e=re(le(e,t),t)),e}function fe(e,t,n){return typeof e==`string`?e=le(re(e,n),n):r(e)===`object`&&(e=le(e,n)),typeof t==`string`?t=le(re(t,n),n):r(t)===`object`&&(t=le(t,n)),e===t}function pe(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:l.ESCAPE,B)}function me(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:l.PCT_ENCODED,V)}var he={scheme:`http`,domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e},serialize:function(e,t){var n=String(e.scheme).toLowerCase()===`https`;return(e.port===(n?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}},ge={scheme:`https`,domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};function q(e){return typeof e.secure==`boolean`?e.secure:String(e.scheme).toLowerCase()===`wss`}var _e={scheme:`ws`,domainHost:!0,parse:function(e,t){var n=e;return n.secure=q(n),n.resourceName=(n.path||`/`)+(n.query?`?`+n.query:``),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if((e.port===(q(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){var n=u(e.resourceName.split(`?`),2),r=n[0],i=n[1];e.path=r&&r!==`/`?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},J={scheme:`wss`,domainHost:_e.domainHost,parse:_e.parse,serialize:_e.serialize},ve={},Y=`[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`,ye=`[0-9A-Fa-f]`,be=n(n(`%[EFef]`+ye+`%`+ye+ye+`%`+ye+ye)+`|`+n(`%[89A-Fa-f]`+ye+`%`+ye+ye)+`|`+n(`%`+ye+ye)),xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Se=t(`[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]`,`[\\"\\\\]`),X=`[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]`,Ce=new RegExp(Y,`g`),Z=new RegExp(be,`g`),we=new RegExp(t(`[^]`,xe,`[\\.]`,`[\\"]`,Se),`g`),Te=new RegExp(t(`[^]`,Y,X),`g`),Ee=Te;function De(e){var t=V(e);return t.match(Ce)?t:e}var Oe={scheme:`mailto`,parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(`,`):[];if(n.path=void 0,n.query){for(var i=!1,a={},o=n.query.split(`&`),s=0,c=o.length;s<c;++s){var l=o[s].split(`=`);switch(l[0]){case`to`:for(var u=l[1].split(`,`),d=0,f=u.length;d<f;++d)r.push(u[d]);break;case`subject`:n.subject=me(l[1],t);break;case`body`:n.body=me(l[1],t);break;default:i=!0,a[me(l[0],t)]=me(l[1],t);break}}i&&(n.headers=a)}n.query=void 0;for(var p=0,m=r.length;p<m;++p){var h=r[p].split(`@`);if(h[0]=me(h[0]),t.unicodeSupport)h[1]=me(h[1],t).toLowerCase();else try{h[1]=R.toASCII(me(h[1],t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to ASCII via punycode: `+e}r[p]=h.join(`@`)}return n},serialize:function(e,t){var n=e,r=a(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf(`@`),u=c.slice(0,l).replace(Z,De).replace(Z,i).replace(we,B),d=c.slice(l+1);try{d=t.iri?R.toUnicode(d):R.toASCII(me(d,t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+e}r[o]=u+`@`+d}n.path=r.join(`,`)}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==ve[m]&&p.push(m.replace(Z,De).replace(Z,i).replace(Te,B)+`=`+f[m].replace(Z,De).replace(Z,i).replace(Ee,B));return p.length&&(n.query=p.join(`&`)),n}},ke=/^([^\:]+)\:(.*)/,Ae={scheme:`urn`,parse:function(e,t){var n=e.path&&e.path.match(ke),r=e;if(n){var i=t.scheme||r.scheme||`urn`,a=n[1].toLowerCase(),o=n[2],s=z[i+`:`+(t.nid||a)];r.nid=a,r.nss=o,r.path=void 0,s&&(r=s.parse(r,t))}else r.error=r.error||`URN can not be parsed.`;return r},serialize:function(e,t){var n=t.scheme||e.scheme||`urn`,r=e.nid,i=z[n+`:`+(t.nid||r)];i&&(e=i.serialize(e,t));var a=e,o=e.nss;return a.path=(r||t.nid)+`:`+o,a}},je=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Me={scheme:`urn:uuid`,parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!n.uuid.match(je))&&(n.error=n.error||`UUID is not valid.`),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||``).toLowerCase(),n}};z[he.scheme]=he,z[ge.scheme]=ge,z[_e.scheme]=_e,z[J.scheme]=J,z[Oe.scheme]=Oe,z[Ae.scheme]=Ae,z[Me.scheme]=Me,e.SCHEMES=z,e.pctEncChar=B,e.pctDecChars=V,e.parse=re,e.removeDotSegments=ce,e.serialize=le,e.resolveComponents=K,e.resolve=ue,e.normalize=de,e.equal=fe,e.escapeComponent=pe,e.unescapeComponent=me,Object.defineProperty(e,`__esModule`,{value:!0})}))})),qo=d(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Jo=d(((e,t)=>{t.exports=function(e){for(var t=0,n=e.length,r=0,i;r<n;)t++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return t}})),Yo=d(((e,t)=>{t.exports={copy:n,checkDataType:r,checkDataTypes:i,coerceToTypes:o,toHash:s,getProperty:u,escapeQuotes:d,equal:qo(),ucs2length:Jo(),varOccurences:f,varReplace:p,schemaHasRules:m,schemaHasRulesExcept:h,schemaUnknownRules:g,toQuotedString:_,getPathExpr:v,getPath:y,getData:S,unescapeFragment:w,unescapeJsonPointer:D,escapeFragment:T,escapeJsonPointer:E};function n(e,t){for(var n in t||={},e)t[n]=e[n];return t}function r(e,t,n,r){var i=r?` !== `:` === `,a=r?` || `:` && `,o=r?`!`:``,s=r?``:`!`;switch(e){case`null`:return t+i+`null`;case`array`:return o+`Array.isArray(`+t+`)`;case`object`:return`(`+o+t+a+`typeof `+t+i+`"object"`+a+s+`Array.isArray(`+t+`))`;case`integer`:return`(typeof `+t+i+`"number"`+a+s+`(`+t+` % 1)`+a+t+i+t+(n?a+o+`isFinite(`+t+`)`:``)+`)`;case`number`:return`(typeof `+t+i+`"`+e+`"`+(n?a+o+`isFinite(`+t+`)`:``)+`)`;default:return`typeof `+t+i+`"`+e+`"`}}function i(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i=``,a=s(e);for(var o in a.array&&a.object&&(i=a.null?`(`:`(!`+t+` || `,i+=`typeof `+t+` !== "object")`,delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?` && `:``)+r(o,t,n,!0);return i}}var a=s([`string`,`number`,`integer`,`boolean`,`null`]);function o(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var i=t[r];(a[i]||e===`array`&&i===`array`)&&(n[n.length]=i)}if(n.length)return n}else if(a[t])return[t];else if(e===`array`&&t===`array`)return[`array`]}function s(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var c=/^[a-z$_][a-z$_0-9]*$/i,l=/'|\\/g;function u(e){return typeof e==`number`?`[`+e+`]`:c.test(e)?`.`+e:`['`+d(e)+`']`}function d(e){return e.replace(l,`\\$&`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\f/g,`\\f`).replace(/\t/g,`\\t`)}function f(e,t){t+=`[^0-9]`;var n=e.match(new RegExp(t,`g`));return n?n.length:0}function p(e,t,n){return t+=`([^0-9])`,n=n.replace(/\$/g,`$$$$`),e.replace(new RegExp(t,`g`),n+`$1`)}function m(e,t){if(typeof e==`boolean`)return!e;for(var n in e)if(t[n])return!0}function h(e,t,n){if(typeof e==`boolean`)return!e&&n!=`not`;for(var r in e)if(r!=n&&t[r])return!0}function g(e,t){if(typeof e!=`boolean`){for(var n in e)if(!t[n])return n}}function _(e){return`'`+d(e)+`'`}function v(e,t,n,r){return C(e,n?`'/' + `+t+(r?``:`.replace(/~/g, '~0').replace(/\\//g, '~1')`):r?`'[' + `+t+` + ']'`:`'[\\'' + `+t+` + '\\']'`)}function y(e,t,n){return C(e,_(n?`/`+E(t):u(t)))}var b=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function S(e,t,n){var r,i,a,o;if(e===``)return`rootData`;if(e[0]==`/`){if(!b.test(e))throw Error(`Invalid JSON-pointer: `+e);i=e,a=`rootData`}else{if(o=e.match(x),!o)throw Error(`Invalid JSON-pointer: `+e);if(r=+o[1],i=o[2],i==`#`){if(r>=t)throw Error(`Cannot access property/index `+r+` levels up, current level is `+t);return n[t-r]}if(r>t)throw Error(`Cannot access data `+r+` levels up, current level is `+t);if(a=`data`+(t-r||``),!i)return a}for(var s=a,c=i.split(`/`),l=0;l<c.length;l++){var d=c[l];d&&(a+=u(D(d)),s+=` && `+a)}return s}function C(e,t){return e==`""`?t:(e+` + `+t).replace(/([^\\])' \+ '/g,`$1`)}function w(e){return D(decodeURIComponent(e))}function T(e){return encodeURIComponent(E(e))}function E(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function D(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}})),Xo=d(((e,t)=>{var n=Yo();t.exports=r;function r(e){n.copy(e,this)}})),Zo=d(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else (p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),Qo=d(((e,t)=>{var n=Ko(),r=qo(),i=Yo(),a=Xo(),o=Zo();t.exports=s,s.normalizeId=y,s.fullPath=g,s.url=b,s.ids=x,s.inlineRef=p,s.schema=c;function s(e,t,n){var r=this._refs[n];if(typeof r==`string`)if(this._refs[r])r=this._refs[r];else return s.call(this,e,t,r);if(r||=this._schemas[n],r instanceof a)return p(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i=c.call(this,t,n),o,l,u;return i&&(o=i.schema,t=i.root,u=i.baseId),o instanceof a?l=o.validate||e.call(this,o.schema,t,void 0,u):o!==void 0&&(l=p(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,u)),l}function c(e,t){var r=n.parse(t),i=_(r),o=g(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==o){var s=y(i),c=this._refs[s];if(typeof c==`string`)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else if(c=this._schemas[s],c instanceof a){if(c.validate||this._compile(c),s==y(t))return{schema:c,root:e,baseId:o};e=c}else return;if(!e.schema)return;o=g(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}function l(e,t,n){var r=c.call(this,e,t);if(r){var i=r.schema,a=r.baseId;e=r.root;var o=this._getId(i);return o&&(a=b(a,o)),d.call(this,n,a,i,e)}}var u=i.toHash([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function d(e,t,n,r){if(e.fragment=e.fragment||``,e.fragment.slice(0,1)==`/`){for(var a=e.fragment.split(`/`),o=1;o<a.length;o++){var s=a[o];if(s){if(s=i.unescapeFragment(s),n=n[s],n===void 0)break;var l;if(!u[s]&&(l=this._getId(n),l&&(t=b(t,l)),n.$ref)){var d=b(t,n.$ref),f=c.call(this,r,d);f&&(n=f.schema,r=f.root,t=f.baseId)}}}if(n!==void 0&&n!==r.schema)return{schema:n,root:r,baseId:t}}}var f=i.toHash([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`]);function p(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return m(e);if(t)return h(e)<=t}function m(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t==`object`&&!m(t))return!1}else for(var r in e)if(r==`$ref`||(t=e[r],typeof t==`object`&&!m(t)))return!1;return!0}function h(e){var t=0,n;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(n=e[r],typeof n==`object`&&(t+=h(n)),t==1/0)return 1/0}else for(var i in e){if(i==`$ref`)return 1/0;if(f[i])t++;else if(n=e[i],typeof n==`object`&&(t+=h(n)+1),t==1/0)return 1/0}return t}function g(e,t){return t!==!1&&(e=y(e)),_(n.parse(e))}function _(e){return n.serialize(e).split(`#`)[0]+`#`}var v=/#\/?$/;function y(e){return e?e.replace(v,``):``}function b(e,t){return t=y(t),n.resolve(e,t)}function x(e){var t=y(this._getId(e)),a={"":t},s={"":g(t,!1)},c={},l=this;return o(e,{allKeys:!0},function(e,t,o,u,d,f,p){if(t!==``){var m=l._getId(e),h=a[u],g=s[u]+`/`+d;if(p!==void 0&&(g+=`/`+(typeof p==`number`?p:i.escapeFragment(p))),typeof m==`string`){m=h=y(h?n.resolve(h,m):m);var _=l._refs[m];if(typeof _==`string`&&(_=l._refs[_]),_&&_.schema){if(!r(e,_.schema))throw Error(`id "`+m+`" resolves to more than one schema`)}else if(m!=y(g))if(m[0]==`#`){if(c[m]&&!r(e,c[m]))throw Error(`id "`+m+`" resolves to more than one schema`);c[m]=e}else l._refs[m]=g}a[t]=h,s[t]=g}}),c}})),$o=d(((e,t)=>{var n=Qo();t.exports={Validation:a(r),MissingRef:a(i)};function r(e){this.message=`validation failed`,this.errors=e,this.ajv=this.validation=!0}i.message=function(e,t){return`can't resolve reference `+t+` from id `+e};function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}})),es=d(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var n=typeof t.cycles==`boolean`?t.cycles:!1,r=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),i=[];return(function e(t){if(t&&t.toJSON&&typeof t.toJSON==`function`&&(t=t.toJSON()),t!==void 0){if(typeof t==`number`)return isFinite(t)?``+t:`null`;if(typeof t!=`object`)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o=`[`,a=0;a<t.length;a++)a&&(o+=`,`),o+=e(t[a])||`null`;return o+`]`}if(t===null)return`null`;if(i.indexOf(t)!==-1){if(n)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}var s=i.push(t)-1,c=Object.keys(t).sort(r&&r(t));for(o=``,a=0;a<c.length;a++){var l=c[a],u=e(t[l]);u&&(o&&(o+=`,`),o+=JSON.stringify(l)+`:`+u)}return i.splice(s,1),`{`+o+`}`}})(e)}})),ts=d(((e,t)=>{t.exports=function(e,t,n){var r=``,i=e.schema.$async===!0,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,`$ref`),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c=`unknown keyword: `+s;if(e.opts.strictKeywords===`log`)e.logger.warn(c);else throw Error(c)}}if(e.isTop&&(r+=` var validate = `,i&&(e.async=!0,r+=`async `),r+=`function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; `,o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=` `+(`/*# sourceURL=`+o+` */`)+` `)),typeof e.schema==`boolean`||!(a||e.schema.$ref)){var t=`false schema`,l=e.level,u=e.dataLevel,d=e.schema[t],f=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+`/`+t,m=!e.opts.allErrors,h,g=`data`+(u||``),_=`valid`+l;if(e.schema===!1){e.isTop?m=!0:r+=` var `+_+` = false; `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`false schema`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'boolean schema is false' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else e.isTop?i?r+=` return data; `:r+=` validate.errors = null; return true; `:r+=` var `+_+` = true; `;return e.isTop&&(r+=` }; return validate; `),r}if(e.isTop){var b=e.isTop,l=e.level=0,u=e.dataLevel=0,g=`data`;if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[``],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var x=`default is ignored in the schema root`;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}r+=` var vErrors = null; `,r+=` var errors = 0; `,r+=` if (rootData === undefined) rootData = data; `}else{var l=e.level,u=e.dataLevel,g=`data`+(u||``);if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw Error(`async schema in sync schema`);r+=` var errs_`+l+` = errors;`}var _=`valid`+l,m=!e.opts.allErrors,S=``,C=``,h,w=e.schema.type,T=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(T?w.indexOf(`null`)==-1&&(w=w.concat(`null`)):w!=`null`&&(w=[w,`null`],T=!0)),T&&w.length==1&&(w=w[0],T=!1),e.schema.$ref&&a){if(e.opts.extendRefs==`fail`)throw Error(`$ref: validation keywords used in schema at path "`+e.errSchemaPath+`" (see option extendRefs)`);e.opts.extendRefs!==!0&&(a=!1,e.logger.warn(`$ref: keywords ignored in schema at path "`+e.errSchemaPath+`"`))}if(e.schema.$comment&&e.opts.$comment&&(r+=` `+e.RULES.all.$comment.code(e,`$comment`)),w){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,w);var D=e.RULES.types[w];if(E||T||D===!0||D&&!se(D)){var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,O=T?`checkDataTypes`:`checkDataType`;if(r+=` if (`+e.util[O](w,g,e.opts.strictNumbers,!0)+`) { `,E){var k=`dataType`+l,A=`coerced`+l;r+=` var `+k+` = typeof `+g+`; var `+A+` = undefined; `,e.opts.coerceTypes==`array`&&(r+=` if (`+k+` == 'object' && Array.isArray(`+g+`) && `+g+`.length == 1) { `+g+` = `+g+`[0]; `+k+` = typeof `+g+`; if (`+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+`) `+A+` = `+g+`; } `),r+=` if (`+A+` !== undefined) ; `;var j=E;if(j)for(var M,N=-1,P=j.length-1;N<P;)M=j[N+=1],M==`string`?r+=` else if (`+k+` == 'number' || `+k+` == 'boolean') `+A+` = '' + `+g+`; else if (`+g+` === null) `+A+` = ''; `:M==`number`||M==`integer`?(r+=` else if (`+k+` == 'boolean' || `+g+` === null || (`+k+` == 'string' && `+g+` && `+g+` == +`+g+` `,M==`integer`&&(r+=` && !(`+g+` % 1)`),r+=`)) `+A+` = +`+g+`; `):M==`boolean`?r+=` else if (`+g+` === 'false' || `+g+` === 0 || `+g+` === null) `+A+` = false; else if (`+g+` === 'true' || `+g+` === 1) `+A+` = true; `:M==`null`?r+=` else if (`+g+` === '' || `+g+` === 0 || `+g+` === false) `+A+` = null; `:e.opts.coerceTypes==`array`&&M==`array`&&(r+=` else if (`+k+` == 'string' || `+k+` == 'number' || `+k+` == 'boolean' || `+g+` == null) `+A+` = [`+g+`]; `);r+=` else { `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } if (`+A+` !== undefined) { `;var F=u?`data`+(u-1||``):`parentData`,I=u?e.dataPathArr[u]:`parentDataProperty`;r+=` `+g+` = `+A+`; `,u||(r+=`if (`+F+` !== undefined)`),r+=` `+F+`[`+I+`] = `+A+`; } `}else{var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}r+=` } `}}if(e.schema.$ref&&!a)r+=` `+e.RULES.all.$ref.code(e,`$ref`)+` `,m&&(r+=` } if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`);else{var L=e.RULES;if(L){for(var D,R=-1,z=L.length-1;R<z;)if(D=L[R+=1],se(D)){if(D.type&&(r+=` if (`+e.util.checkDataType(D.type,g,e.opts.strictNumbers)+`) { `),e.opts.useDefaults){if(D.type==`object`&&e.schema.properties){var d=e.schema.properties,B=Object.keys(d);if(B)for(var V,H=-1,U=B.length-1;H<U;){V=B[H+=1];var ee=d[V];if(ee.default!==void 0){var W=g+e.util.getProperty(V);if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}else if(D.type==`array`&&Array.isArray(e.schema.items)){var te=e.schema.items;if(te){for(var ee,N=-1,ne=te.length-1;N<ne;)if(ee=te[N+=1],ee.default!==void 0){var W=g+`[`+N+`]`;if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}}var re=D.rules;if(re){for(var ie,ae=-1,oe=re.length-1;ae<oe;)if(ie=re[ae+=1],ce(ie)){var G=ie.code(e,ie.keyword,D.type);G&&(r+=` `+G+` `,m&&(S+=`}`))}}if(m&&(r+=` `+S+` `,S=``),D.type&&(r+=` } `,w&&w===D.type&&!E)){r+=` else { `;var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `}m&&(r+=` if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`)}}}m&&(r+=` `+C+` `),b?(i?(r+=` if (errors === 0) return data; `,r+=` else throw new ValidationError(vErrors); `):(r+=` validate.errors = vErrors; `,r+=` return errors === 0; `),r+=` }; return validate;`):r+=` var `+_+` = errors === errs_`+l+`;`;function se(e){for(var t=e.rules,n=0;n<t.length;n++)if(ce(t[n]))return!0}function ce(t){return e.schema[t.keyword]!==void 0||t.implements&&le(t)}function le(t){for(var n=t.implements,r=0;r<n.length;r++)if(e.schema[n[r]]!==void 0)return!0}return r}})),ns=d(((e,t)=>{var n=Qo(),r=Yo(),i=$o(),a=es(),o=ts(),s=r.ucs2length,c=qo(),l=i.Validation;t.exports=u;function u(e,t,p,y){var b=this,x=this._opts,S=[void 0],C={},w=[],T={},E=[],D={},O=[];t||={schema:e,refVal:S,refs:C};var k=d.call(this,e,t,y),A=this._compilations[k.index];if(k.compiling)return A.callValidate=F;var j=this._formats,M=this.RULES;try{var N=I(e,t,p,y);A.validate=N;var P=A.callValidate;return P&&(P.schema=N.schema,P.errors=null,P.refs=N.refs,P.refVal=N.refVal,P.root=N.root,P.$async=N.$async,x.sourceCode&&(P.source=N.source)),N}finally{f.call(this,e,t,y)}function F(){var e=A.validate,t=e.apply(this,arguments);return F.errors=e.errors,t}function I(e,a,d,f){var p=!a||a&&a.schema==e;if(a.schema!=t.schema)return u.call(b,e,a,d,f);var y=e.$async===!0,T=o({isTop:!0,schema:e,isRoot:p,baseId:f,root:a,schemaPath:``,errSchemaPath:`#`,errorPath:`""`,MissingRefError:i.MissingRef,RULES:M,validate:o,util:r,resolve:n,resolveRef:L,usePattern:H,useDefault:U,useCustomRule:ee,opts:x,formats:j,logger:b.logger,self:b});T=v(S,g)+v(w,m)+v(E,h)+v(O,_)+T,x.processCode&&(T=x.processCode(T,e));var D;try{D=Function(`self`,`RULES`,`formats`,`root`,`refVal`,`defaults`,`customRules`,`equal`,`ucs2length`,`ValidationError`,T)(b,M,j,t,S,E,O,c,s,l),S[0]=D}catch(e){throw b.logger.error(`Error compiling schema, function code:`,T),e}return D.schema=e,D.errors=null,D.refs=C,D.refVal=S,D.root=p?D:a,y&&(D.$async=!0),x.sourceCode===!0&&(D.source={code:T,patterns:w,defaults:E}),D}function L(e,r,i){r=n.url(e,r);var a=C[r],o,s;if(a!==void 0)return o=S[a],s=`refVal[`+a+`]`,V(o,s);if(!i&&t.refs){var c=t.refs[r];if(c!==void 0)return o=t.refVal[c],s=R(r,o),V(o,s)}s=R(r);var l=n.call(b,I,t,r);if(l===void 0){var d=p&&p[r];d&&(l=n.inlineRef(d,x.inlineRefs)?d:u.call(b,d,t,p,e))}if(l===void 0)z(r);else return B(r,l),V(l,s)}function R(e,t){var n=S.length;return S[n]=t,C[e]=n,`refVal`+n}function z(e){delete C[e]}function B(e,t){var n=C[e];S[n]=t}function V(e,t){return typeof e==`object`||typeof e==`boolean`?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function H(e){var t=T[e];return t===void 0&&(t=T[e]=w.length,w[t]=e),`pattern`+t}function U(e){switch(typeof e){case`boolean`:case`number`:return``+e;case`string`:return r.toQuotedString(e);case`object`:if(e===null)return`null`;var t=a(e),n=D[t];return n===void 0&&(n=D[t]=E.length,E[n]=e),`default`+n}}function ee(e,t,n,r){if(b._opts.validateSchema!==!1){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw Error(`parent schema must have all required keywords: `+i.join(`,`));var a=e.definition.validateSchema;if(a&&!a(t)){var o=`keyword schema is invalid: `+b.errorsText(a.errors);if(b._opts.validateSchema==`log`)b.logger.error(o);else throw Error(o)}}var s=e.definition.compile,c=e.definition.inline,l=e.definition.macro,u;if(s)u=s.call(b,t,n,r);else if(l)u=l.call(b,t,n,r),x.validateSchema!==!1&&b.validateSchema(u,!0);else if(c)u=c.call(b,r,e.keyword,t,n);else if(u=e.definition.validate,!u)return;if(u===void 0)throw Error(`custom keyword "`+e.keyword+`"failed to compile`);var d=O.length;return O[d]=u,{code:`customRule`+d,validate:u}}}function d(e,t,n){var r=p.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function f(e,t,n){var r=p.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function p(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function m(e,t){return`var pattern`+e+` = new RegExp(`+r.toQuotedString(t[e])+`);`}function h(e){return`var default`+e+` = defaults[`+e+`];`}function g(e,t){return t[e]===void 0?``:`var refVal`+e+` = refVal[`+e+`];`}function _(e){return`var customRule`+e+` = customRules[`+e+`];`}function v(e,t){if(!e.length)return``;for(var n=``,r=0;r<e.length;r++)n+=t(r,e);return n}})),rs=d(((e,t)=>{var n=t.exports=function(){this._cache={}};n.prototype.put=function(e,t){this._cache[e]=t},n.prototype.get=function(e){return this._cache[e]},n.prototype.del=function(e){delete this._cache[e]},n.prototype.clear=function(){this._cache={}}})),is=d(((e,t)=>{var n=Yo(),r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,s=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;t.exports=h;function h(e){return e=e==`full`?`full`:`fast`,n.copy(h[e])}h.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m},h.full={date:_,time:v,"date-time":b,uri:S,"uri-reference":c,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m};function g(e){return e%4==0&&(e%100!=0||e%400==0)}function _(e){var t=e.match(r);if(!t)return!1;var n=+t[1],a=+t[2],o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&g(n)?29:i[a])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],i=n[2],o=n[3],s=n[5];return(r<=23&&i<=59&&o<=59||r==23&&i==59&&o==60)&&(!t||s)}var y=/t|\s/i;function b(e){var t=e.split(y);return t.length==2&&_(t[0])&&v(t[1],!0)}var x=/\/|:/;function S(e){return x.test(e)&&s.test(e)}var C=/[^\\]\\Z/;function w(e){if(C.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),as=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.errSchemaPath+`/`+t,c=!e.opts.allErrors,l=`data`+(a||``),u=`valid`+i,d,f;if(o==`#`||o==`#/`)e.isRoot?(d=e.async,f=`validate`):(d=e.root.schema.$async===!0,f=`root.refVal[0]`);else{var p=e.resolveRef(e.baseId,o,e.isRoot);if(p===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs==`fail`){e.logger.error(m);var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '$ref' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(s)+` , params: { ref: '`+e.util.escapeQuotes(o)+`' } `,e.opts.messages!==!1&&(r+=` , message: 'can\\'t resolve reference `+e.util.escapeQuotes(o)+`' `),e.opts.verbose&&(r+=` , schema: `+e.util.toQuotedString(o)+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+l+` `),r+=` } `);var g=r;r=h.pop(),!e.compositeRule&&c?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c&&(r+=` if (false) { `)}else if(e.opts.missingRefs==`ignore`)e.logger.warn(m),c&&(r+=` if (true) { `);else throw new e.MissingRefError(e.baseId,o,m)}else if(p.inline){var _=e.util.copy(e);_.level++;var v=`valid`+_.level;_.schema=p.schema,_.schemaPath=``,_.errSchemaPath=o;var y=e.validate(_).replace(/validate\.schema/g,p.code);r+=` `+y+` `,c&&(r+=` if (`+v+`) { `)}else d=p.$async===!0||e.async&&p.$async!==!1,f=p.code}if(f){var h=h||[];h.push(r),r=``,e.opts.passContext?r+=` `+f+`.call(this, `:r+=` `+f+`( `,r+=` `+l+`, (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var b=a?`data`+(a-1||``):`parentData`,x=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+b+` , `+x+`, rootData) `;var S=r;if(r=h.pop(),d){if(!e.async)throw Error(`async schema referenced by sync schema`);c&&(r+=` var `+u+`; `),r+=` try { await `+S+`; `,c&&(r+=` `+u+` = true; `),r+=` } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; `,c&&(r+=` `+u+` = false; `),r+=` } `,c&&(r+=` if (`+u+`) { `)}else r+=` if (!`+S+`) { if (vErrors === null) vErrors = `+f+`.errors; else vErrors = vErrors.concat(`+f+`.errors); errors = vErrors.length; } `,c&&(r+=` else { `)}return r}})),os=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+`/`+t,s=!e.opts.allErrors,c=e.util.copy(e),l=``;c.level++;var u=`valid`+c.level,d=c.baseId,f=!0,p=i;if(p)for(var m,h=-1,g=p.length-1;h<g;)m=p[h+=1],(e.opts.strictKeywords?typeof m==`object`&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,c.schema=m,c.schemaPath=a+`[`+h+`]`,c.errSchemaPath=o+`/`+h,r+=` `+e.validate(c)+` `,c.baseId=d,s&&(r+=` if (`+u+`) { `,l+=`}`));return s&&(f?r+=` if (true) { `:r+=` `+l.slice(0,-1)+` `),r}})),ss=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level;if(o.every(function(t){return e.opts.strictKeywords?typeof t==`object`&&Object.keys(t).length>0||t===!1:e.util.schemaHasRules(t,e.RULES.all)})){var g=p.baseId;r+=` var `+f+` = errors; var `+d+` = false; `;var _=e.compositeRule;e.compositeRule=p.compositeRule=!0;var v=o;if(v)for(var y,b=-1,x=v.length-1;b<x;)y=v[b+=1],p.schema=y,p.schemaPath=s+`[`+b+`]`,p.errSchemaPath=c+`/`+b,r+=` `+e.validate(p)+` `,p.baseId=g,r+=` `+d+` = `+d+` || `+h+`; if (!`+d+`) { `,m+=`}`;e.compositeRule=p.compositeRule=_,r+=` `+m+` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'anyOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should match some schema in anyOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else l&&(r+=` if (true) { `);return r}})),cs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.errSchemaPath+`/`+t;e.opts.allErrors;var o=e.util.toQuotedString(i);return e.opts.$comment===!0?r+=` console.log(`+o+`);`:typeof e.opts.$comment==`function`&&(r+=` self._opts.$comment(`+o+`, `+e.util.toQuotedString(a)+`, validate.root.schema);`),r}})),ls=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i),f||(r+=` var schema`+i+` = validate.schema`+s+`;`),r+=`var `+d+` = equal(`+u+`, schema`+i+`); if (!`+d+`) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'const' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValue: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to constant' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),us=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId,b=e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+=`var `+f+` = errors;var `+d+`;`,b){var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+h+` = false; for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var S=u+`[`+g+`]`;p.dataPathArr[_]=g;var C=e.validate(p);p.baseId=y,e.util.varOccurences(C,v)<2?r+=` `+e.util.varReplace(C,v,S)+` `:r+=` var `+v+` = `+S+`; `+C+` `,r+=` if (`+h+`) break; } `,e.compositeRule=p.compositeRule=x,r+=` `+m+` if (!`+h+`) {`}else r+=` if (`+u+`.length == 0) {`;var w=w||[];w.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'contains' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should contain a valid item' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var T=r;return r=w.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+T+`]); `:r+=` validate.errors = [`+T+`]; return false; `:r+=` var err = `+T+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `,b&&(r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `),e.opts.allErrors&&(r+=` } `),r}})),ds=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h={},g={},_=e.opts.ownProperties;for(x in o)if(x!=`__proto__`){var v=o[x],y=Array.isArray(v)?g:h;y[x]=v}r+=`var `+d+` = errors;`;var b=e.errorPath;for(var x in r+=`var missing`+i+`;`,g)if(y=g[x],y.length){if(r+=` if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),l){r+=` && ( `;var S=y;if(S)for(var C,w=-1,T=S.length-1;w<T;){C=S[w+=1],w&&(r+=` || `);var E=e.util.getProperty(C),D=u+E;r+=` ( ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?C:E)+`) ) `}r+=`)) { `;var O=`missing`+i,k=`' + `+O+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+` + `+O);var A=A||[];A.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var j=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+j+`]); `:r+=` validate.errors = [`+j+`]; return false; `:r+=` var err = `+j+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else{r+=` ) { `;var M=y;if(M)for(var C,N=-1,P=M.length-1;N<P;){C=M[N+=1];var E=e.util.getProperty(C),k=e.util.escapeQuotes(C),D=u+E;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,C,e.opts.jsonPointers)),r+=` if ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}r+=` } `,l&&(p+=`}`,r+=` else { `)}e.errorPath=b;var F=f.baseId;for(var x in h){var v=h[x];(e.opts.strictKeywords?typeof v==`object`&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(r+=` `+m+` = true; if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),r+=`) { `,f.schema=v,f.schemaPath=s+e.util.getProperty(x),f.errSchemaPath=c+`/`+e.util.escapeFragment(x),r+=` `+e.validate(f)+` `,f.baseId=F,r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`))}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),fs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`i`+i,m=`schema`+i;f||(r+=` var `+m+` = validate.schema`+s+`;`),r+=`var `+d+`;`,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=``+d+` = false;for (var `+p+`=0; `+p+`<`+m+`.length; `+p+`++) if (equal(`+u+`, `+m+`[`+p+`])) { `+d+` = true; break; }`,f&&(r+=` } `),r+=` if (!`+d+`) { `;var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'enum' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValues: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to one of the allowed values' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),ps=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``);if(e.opts.format===!1)return l&&(r+=` if (true) { `),r;var d=e.opts.$data&&o&&o.$data,f;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=e.opts.unknownFormats,m=Array.isArray(p);if(d){var h=`format`+i,g=`isObject`+i,_=`formatType`+i;r+=` var `+h+` = formats[`+f+`]; var `+g+` = typeof `+h+` == 'object' && !(`+h+` instanceof RegExp) && `+h+`.validate; var `+_+` = `+g+` && `+h+`.type || 'string'; if (`+g+`) { `,e.async&&(r+=` var async`+i+` = `+h+`.async; `),r+=` `+h+` = `+h+`.validate; } if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` (`,p!=`ignore`&&(r+=` (`+f+` && !`+h+` `,m&&(r+=` && self._opts.unknownFormats.indexOf(`+f+`) == -1 `),r+=`) || `),r+=` (`+h+` && `+_+` == '`+n+`' && !(typeof `+h+` == 'function' ? `,e.async?r+=` (async`+i+` ? await `+h+`(`+u+`) : `+h+`(`+u+`)) `:r+=` `+h+`(`+u+`) `,r+=` : `+h+`.test(`+u+`))))) {`}else{var h=e.formats[o];if(!h){if(p==`ignore`)return e.logger.warn(`unknown format "`+o+`" ignored in schema at path "`+e.errSchemaPath+`"`),l&&(r+=` if (true) { `),r;if(m&&p.indexOf(o)>=0)return l&&(r+=` if (true) { `),r;throw Error(`unknown format "`+o+`" is used in schema at path "`+e.errSchemaPath+`"`)}var g=typeof h==`object`&&!(h instanceof RegExp)&&h.validate,_=g&&h.type||`string`;if(g){var v=h.async===!0;h=h.validate}if(_!=n)return l&&(r+=` if (true) { `),r;if(v){if(!e.async)throw Error(`async format in sync schema`);var y=`formats`+e.util.getProperty(o)+`.validate`;r+=` if (!(await `+y+`(`+u+`))) { `}else{r+=` if (! `;var y=`formats`+e.util.getProperty(o);g&&(y+=`.validate`),typeof h==`function`?r+=` `+y+`(`+u+`) `:r+=` `+y+`.test(`+u+`) `,r+=`) { `}}var b=b||[];b.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'format' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { format: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match format "`,d?r+=`' + `+f+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var x=r;return r=b.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+x+`]); `:r+=` validate.errors = [`+x+`]; return false; `:r+=` var err = `+x+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),ms=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e);p.level++;var m=`valid`+p.level,h=e.schema.then,g=e.schema.else,_=h!==void 0&&(e.opts.strictKeywords?typeof h==`object`&&Object.keys(h).length>0||h===!1:e.util.schemaHasRules(h,e.RULES.all)),v=g!==void 0&&(e.opts.strictKeywords?typeof g==`object`&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),y=p.baseId;if(_||v){var b;p.createErrors=!1,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+f+` = errors; var `+d+` = true; `;var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,r+=` `+e.validate(p)+` `,p.baseId=y,p.createErrors=!0,r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.compositeRule=p.compositeRule=x,_?(r+=` if (`+m+`) { `,p.schema=e.schema.then,p.schemaPath=e.schemaPath+`.then`,p.errSchemaPath=e.errSchemaPath+`/then`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'then'; `):b=`'then'`,r+=` } `,v&&(r+=` else { `)):r+=` if (!`+m+`) { `,v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+`.else`,p.errSchemaPath=e.errSchemaPath+`/else`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'else'; `):b=`'else'`,r+=` } `),r+=` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'if' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { failingKeyword: `+b+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+b+` + '" schema' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),hs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId;if(r+=`var `+f+` = errors;var `+d+`;`,Array.isArray(o)){var b=e.schema.additionalItems;if(b===!1){r+=` `+d+` = `+u+`.length <= `+o.length+`; `;var x=c;c=e.errSchemaPath+`/additionalItems`,r+=` if (!`+d+`) { `;var S=S||[];S.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+o.length+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have more than `+o.length+` items' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var C=r;r=S.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+C+`]); `:r+=` validate.errors = [`+C+`]; return false; `:r+=` var err = `+C+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,c=x,l&&(m+=`}`,r+=` else { `)}var w=o;if(w){for(var T,E=-1,D=w.length-1;E<D;)if(T=w[E+=1],e.opts.strictKeywords?typeof T==`object`&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all)){r+=` `+h+` = true; if (`+u+`.length > `+E+`) { `;var O=u+`[`+E+`]`;p.schema=T,p.schemaPath=s+`[`+E+`]`,p.errSchemaPath=c+`/`+E,p.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers,!0),p.dataPathArr[_]=E;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,r+=` } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}if(typeof b==`object`&&(e.opts.strictKeywords?typeof b==`object`&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))){p.schema=b,p.schemaPath=e.schemaPath+`.additionalItems`,p.errSchemaPath=e.errSchemaPath+`/additionalItems`,r+=` `+h+` = true; if (`+u+`.length > `+o.length+`) { for (var `+g+` = `+o.length+`; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` } } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}else if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` }`}return l&&(r+=` `+m+` if (`+f+` == errors) {`),r}})),gs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o;var m=t==`maximum`,h=m?`exclusiveMaximum`:`exclusiveMinimum`,g=e.schema[h],_=e.opts.$data&&g&&g.$data,v=m?`<`:`>`,y=m?`>`:`<`,u=void 0;if(!(f||typeof o==`number`||o===void 0))throw Error(t+` must be number`);if(!(_||g===void 0||typeof g==`number`||typeof g==`boolean`))throw Error(h+` must be number or boolean`);if(_){var b=e.util.getData(g.$data,a,e.dataPathArr),x=`exclusive`+i,S=`exclType`+i,C=`exclIsNumber`+i,w=`op`+i,T=`' + `+w+` + '`;r+=` var schemaExcl`+i+` = `+b+`; `,b=`schemaExcl`+i,r+=` var `+x+`; var `+S+` = typeof `+b+`; if (`+S+` != 'boolean' && `+S+` != 'undefined' && `+S+` != 'number') { `;var u=h,E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_exclusiveLimit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: '`+h+` should be boolean' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+S+` == 'number' ? ( (`+x+` = `+p+` === undefined || `+b+` `+v+`= `+p+`) ? `+d+` `+y+`= `+b+` : `+d+` `+y+` `+p+` ) : ( (`+x+` = `+b+` === true) ? `+d+` `+y+`= `+p+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { var op`+i+` = `+x+` ? '`+v+`' : '`+v+`='; `,o===void 0&&(u=h,c=e.errSchemaPath+`/`+h,p=b,f=_)}else{var C=typeof g==`number`,T=v;if(C&&f){var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` ( `+p+` === undefined || `+g+` `+v+`= `+p+` ? `+d+` `+y+`= `+g+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { `}else{C&&o===void 0?(x=!0,u=h,c=e.errSchemaPath+`/`+h,p=g,y+=`=`):(C&&(p=Math[m?`min`:`max`](g,o)),g===(C?p:!0)?(x=!0,u=h,c=e.errSchemaPath+`/`+h,y+=`=`):(x=!1,T+=`=`));var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+` `+y+` `+p+` || `+d+` !== `+d+`) { `}}u||=t;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { comparison: `+w+`, limit: `+p+`, exclusive: `+x+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be `+T+` `,f?r+=`' + `+p:r+=``+p+`'`),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;return r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),_s=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxItems`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+`.length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitItems`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxItems`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` items' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),vs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxLength`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),e.opts.unicode===!1?r+=` `+d+`.length `:r+=` ucs2length(`+d+`) `,r+=` `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitLength`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be `,t==`maxLength`?r+=`longer`:r+=`shorter`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` characters' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),ys=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxProperties`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` Object.keys(`+d+`).length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitProperties`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxProperties`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` properties' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),bs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=e.opts.$data&&o&&o.$data,f;if(d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o,!(d||typeof o==`number`))throw Error(t+` must be number`);r+=`var division`+i+`;if (`,d&&(r+=` `+f+` !== undefined && ( typeof `+f+` != 'number' || `),r+=` (division`+i+` = `+u+` / `+f+`, `,e.opts.multipleOfPrecision?r+=` Math.abs(Math.round(division`+i+`) - division`+i+`) > 1e-`+e.opts.multipleOfPrecision+` `:r+=` division`+i+` !== parseInt(division`+i+`) `,r+=` ) `,d&&(r+=` ) `),r+=` ) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'multipleOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { multipleOf: `+f+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be multiple of `,d?r+=`' + `+f:r+=``+f+`'`),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),xs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e);f.level++;var p=`valid`+f.level;if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c,r+=` var `+d+` = errors; `;var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var h;f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),r+=` `+e.validate(f)+` `,f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,r+=` if (`+p+`) { `;var g=g||[];g.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var _=r;r=g.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+_+`]); `:r+=` validate.errors = [`+_+`]; return false; `:r+=` var err = `+_+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { errors = `+d+`; if (vErrors !== null) { if (`+d+`) vErrors.length = `+d+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,l&&(r+=` if (false) { `);return r}})),Ss=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=p.baseId,_=`prevValid`+i,v=`passingSchemas`+i;r+=`var `+f+` = errors , `+_+` = false , `+d+` = false , `+v+` = null; `;var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=o;if(b)for(var x,S=-1,C=b.length-1;S<C;)x=b[S+=1],(e.opts.strictKeywords?typeof x==`object`&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+`[`+S+`]`,p.errSchemaPath=c+`/`+S,r+=` `+e.validate(p)+` `,p.baseId=g):r+=` var `+h+` = true; `,S&&(r+=` if (`+h+` && `+_+`) { `+d+` = false; `+v+` = [`+v+`, `+S+`]; } else { `,m+=`}`),r+=` if (`+h+`) { `+d+` = `+_+` = true; `+v+` = `+S+`; }`;return e.compositeRule=p.compositeRule=y,r+=``+m+`if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'oneOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { passingSchemas: `+v+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match exactly one schema in oneOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=`} else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; }`,e.opts.allErrors&&(r+=` } `),r}})),Cs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=e.opts.$data&&o&&o.$data,f;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=d?`(new RegExp(`+f+`))`:e.usePattern(o);r+=`if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` !`+p+`.test(`+u+`) ) { `;var m=m||[];m.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'pattern' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { pattern: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,d?r+=`' + `+f+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var h=r;return r=m.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+h+`]); `:r+=` validate.errors = [`+h+`]; return false; `:r+=` var err = `+h+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),ws=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h=`key`+i,g=`idx`+i,_=f.dataLevel=e.dataLevel+1,v=`data`+_,y=`dataProperties`+i,b=Object.keys(o||{}).filter(N),x=e.schema.patternProperties||{},S=Object.keys(x).filter(N),C=e.schema.additionalProperties,w=b.length||S.length,T=C===!1,E=typeof C==`object`&&Object.keys(C).length,D=e.opts.removeAdditional,O=T||E||D,k=e.opts.ownProperties,A=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length<e.opts.loopRequired)var M=e.util.toHash(j);function N(e){return e!==`__proto__`}if(r+=`var `+d+` = errors;var `+m+` = true;`,k&&(r+=` var `+y+` = undefined;`),O){if(k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,w){if(r+=` var isAdditional`+i+` = !(false `,b.length)if(b.length>8)r+=` || validate.schema`+s+`.hasOwnProperty(`+h+`) `;else{var P=b;if(P)for(var F,I=-1,L=P.length-1;I<L;)F=P[I+=1],r+=` || `+h+` == `+e.util.toQuotedString(F)+` `}if(S.length){var R=S;if(R)for(var z,B=-1,V=R.length-1;B<V;)z=R[B+=1],r+=` || `+e.usePattern(z)+`.test(`+h+`) `}r+=` ); if (isAdditional`+i+`) { `}if(D==`all`)r+=` delete `+u+`[`+h+`]; `;else{var H=e.errorPath,U=`' + `+h+` + '`;if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers)),T)if(D)r+=` delete `+u+`[`+h+`]; `;else{r+=` `+m+` = false; `;var ee=c;c=e.errSchemaPath+`/additionalProperties`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalProperties' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { additionalProperty: '`+U+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is an invalid additional property`:r+=`should NOT have additional properties`,r+=`' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,l&&(r+=` break; `)}else if(E)if(D==`failing`){r+=` var `+d+` = errors; `;var ne=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,r+=` if (!`+m+`) { errors = `+d+`; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete `+u+`[`+h+`]; } `,e.compositeRule=f.compositeRule=ne}else{f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,l&&(r+=` if (!`+m+`) break; `)}e.errorPath=H}w&&(r+=` } `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}var ae=e.opts.useDefaults&&!e.compositeRule;if(b.length){var oe=b;if(oe)for(var F,G=-1,se=oe.length-1;G<se;){F=oe[G+=1];var ce=o[F];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){var le=e.util.getProperty(F),re=u+le,K=ae&&ce.default!==void 0;f.schema=ce,f.schemaPath=s+le,f.errSchemaPath=c+`/`+e.util.escapeFragment(F),f.errorPath=e.util.getPath(e.errorPath,F,e.opts.jsonPointers),f.dataPathArr[_]=e.util.toQuotedString(F);var ie=e.validate(f);if(f.baseId=A,e.util.varOccurences(ie,v)<2){ie=e.util.varReplace(ie,v,re);var ue=re}else{var ue=v;r+=` var `+v+` = `+re+`; `}if(K)r+=` `+ie+` `;else{if(M&&M[F]){r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = false; `;var H=e.errorPath,ee=c,de=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,F,e.opts.jsonPointers)),c=e.errSchemaPath+`/required`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+de+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+de+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,e.errorPath=H,r+=` } else { `}else l?(r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = true; } else { `):(r+=` if (`+ue+` !== undefined `,k&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=` ) { `);r+=` `+ie+` } `}}l&&(r+=` if (`+m+`) { `,p+=`}`)}}if(S.length){var fe=S;if(fe)for(var z,pe=-1,me=fe.length-1;pe<me;){z=fe[pe+=1];var ce=x[z];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){f.schema=ce,f.schemaPath=e.schemaPath+`.patternProperties`+e.util.getProperty(z),f.errSchemaPath=e.errSchemaPath+`/patternProperties/`+e.util.escapeFragment(z),k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` if (`+e.usePattern(z)+`.test(`+h+`)) { `,f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,l&&(r+=` if (!`+m+`) break; `),r+=` } `,l&&(r+=` else `+m+` = true; `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}}}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),Ts=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level;if(r+=`var `+d+` = errors;`,e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c;var h=`key`+i,g=`idx`+i,_=`i`+i,v=`' + `+h+` + '`,y=`data`+(f.dataLevel=e.dataLevel+1),b=`dataProperties`+i,x=e.opts.ownProperties,S=e.baseId;x&&(r+=` var `+b+` = undefined; `),x?r+=` `+b+` = `+b+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+b+`.length; `+g+`++) { var `+h+` = `+b+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` var startErrs`+i+` = errors; `;var C=h,w=e.compositeRule;e.compositeRule=f.compositeRule=!0;var T=e.validate(f);f.baseId=S,e.util.varOccurences(T,y)<2?r+=` `+e.util.varReplace(T,y,C)+` `:r+=` var `+y+` = `+C+`; `+T+` `,e.compositeRule=f.compositeRule=w,r+=` if (!`+m+`) { for (var `+_+`=startErrs`+i+`; `+_+`<errors; `+_+`++) { vErrors[`+_+`].propertyName = `+h+`; } var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'propertyNames' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { propertyName: '`+v+`' } `,e.opts.messages!==!1&&(r+=` , message: 'property name \\'`+v+`\\' is invalid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),l&&(r+=` break; `),r+=` } }`}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),Es=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`schema`+i;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],h=o;if(h)for(var g,_=-1,v=h.length-1;_<v;){g=h[_+=1];var y=e.schema.properties[g];y&&(e.opts.strictKeywords?typeof y==`object`&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))||(m[m.length]=g)}}else var m=o;if(f||m.length){var b=e.errorPath,x=f||m.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(l)if(r+=` var missing`+i+`; `,x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),r+=` var `+d+` = true; `,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { `+d+` = `+u+`[`+p+`[`+C+`]] !== undefined `,S&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`; if (!`+d+`) break; } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else{r+=` if ( `;var O=m;if(O)for(var k,C=-1,A=O.length-1;C<A;){k=O[C+=1],C&&(r+=` || `);var j=e.util.getProperty(k),M=u+j;r+=` ( ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?k:j)+`) ) `}r+=`) { `;var w=`missing`+i,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,w,!0):b+` + `+w);var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else if(x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),f&&(r+=` if (`+p+` && !Array.isArray(`+p+`)) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (`+p+` !== undefined) { `),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { if (`+u+`[`+p+`[`+C+`]] === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } `,f&&(r+=` } `)}else{var N=m;if(N)for(var k,P=-1,F=N.length-1;P<F;){k=N[P+=1];var j=e.util.getProperty(k),T=e.util.escapeQuotes(k),M=u+j;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,k,e.opts.jsonPointers)),r+=` if ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}e.errorPath=b}else l&&(r+=` if (true) {`);return r}})),Ds=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,(o||f)&&e.opts.uniqueItems!==!1){f&&(r+=` var `+d+`; if (`+p+` === false || `+p+` === undefined) `+d+` = true; else if (typeof `+p+` != 'boolean') `+d+` = false; else { `),r+=` var i = `+u+`.length , `+d+` = true , j; if (i > 1) { `;var m=e.schema.items&&e.schema.items.type,h=Array.isArray(m);if(!m||m==`object`||m==`array`||h&&(m.indexOf(`object`)>=0||m.indexOf(`array`)>=0))r+=` outer: for (;i--;) { for (j = i; j--;) { if (equal(`+u+`[i], `+u+`[j])) { `+d+` = false; break outer; } } } `;else{r+=` var itemIndices = {}, item; for (;i--;) { var item = `+u+`[i]; `;var g=`checkDataType`+(h?`s`:``);r+=` if (`+e.util[g](m,`item`,e.opts.strictNumbers,!0)+`) continue; `,h&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=` if (typeof itemIndices[item] == 'number') { `+d+` = false; j = itemIndices[item]; break; } itemIndices[item] = i; } `}r+=` } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var _=_||[];_.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'uniqueItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { i: i, j: j } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var v=r;r=_.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+v+`]); `:r+=` validate.errors = [`+v+`]; return false; `:r+=` var err = `+v+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),Os=d(((e,t)=>{t.exports={$ref:as(),allOf:os(),anyOf:ss(),$comment:cs(),const:ls(),contains:us(),dependencies:ds(),enum:fs(),format:ps(),if:ms(),items:hs(),maximum:gs(),minimum:gs(),maxItems:_s(),minItems:_s(),maxLength:vs(),minLength:vs(),maxProperties:ys(),minProperties:ys(),multipleOf:bs(),not:xs(),oneOf:Ss(),pattern:Cs(),properties:ws(),propertyNames:Ts(),required:Es(),uniqueItems:Ds(),validate:ts()}})),ks=d(((e,t)=>{var n=Os(),r=Yo().toHash;t.exports=function(){var e=[{type:`number`,rules:[{maximum:[`exclusiveMaximum`]},{minimum:[`exclusiveMinimum`]},`multipleOf`,`format`]},{type:`string`,rules:[`maxLength`,`minLength`,`pattern`,`format`]},{type:`array`,rules:[`maxItems`,`minItems`,`items`,`contains`,`uniqueItems`]},{type:`object`,rules:[`maxProperties`,`minProperties`,`required`,`dependencies`,`propertyNames`,{properties:[`additionalProperties`,`patternProperties`]}]},{rules:[`$ref`,`const`,`enum`,`not`,`anyOf`,`oneOf`,`allOf`,`if`]}],t=[`type`,`$comment`];return e.all=r(t),e.types=r([`number`,`integer`,`string`,`array`,`object`,`boolean`,`null`]),e.forEach(function(r){r.rules=r.rules.map(function(r){var i;if(typeof r==`object`){var a=Object.keys(r)[0];i=r[a],r=a,i.forEach(function(n){t.push(n),e.all[n]=!0})}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}}),e.all.$comment={keyword:`$comment`,code:n.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=r(t.concat([`$schema`,`$id`,`id`,`$data`,`$async`,`title`,`description`,`default`,`definitions`,`examples`,`readOnly`,`writeOnly`,`contentMediaType`,`contentEncoding`,`additionalItems`,`then`,`else`])),e.custom={},e}})),As=d(((e,t)=>{var n=[`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`additionalItems`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`,`additionalProperties`,`enum`,`format`,`const`];t.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var i=t[r].split(`/`),a=e,o;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<n.length;o++){var s=n[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]})}}return e}})),js=d(((e,t)=>{var n=$o().MissingRef;t.exports=r;function r(e,t,i){var a=this;if(typeof this._opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);typeof t==`function`&&(i=t,t=void 0);var o=s(e).then(function(){var n=a._addSchema(e,void 0,t);return n.validate||c(n)});return i&&o.then(function(e){i(null,e)},i),o;function s(e){var t=e.$schema;return t&&!a.getSchema(t)?r.call(a,{$ref:t},!0):Promise.resolve()}function c(e){try{return a._compile(e)}catch(e){if(e instanceof n)return r(e);throw e}function r(n){var r=n.missingSchema;if(l(r))throw Error(`Schema `+r+` is loaded but `+n.missingRef+` cannot be resolved`);var i=a._loadingSchemas[r];return i||(i=a._loadingSchemas[r]=a._opts.loadSchema(r),i.then(o,o)),i.then(function(e){if(!l(r))return s(e).then(function(){l(r)||a.addSchema(e,r,void 0,t)})}).then(function(){return c(e)});function o(){delete a._loadingSchemas[r]}function l(e){return a._refs[e]||a._schemas[e]}}}}})),Ms=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=`valid`+i,p=`errs__`+i,m=e.opts.$data&&o&&o.$data,h;m?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,h=`schema`+i):h=o;var g=this,_=`definition`+i,v=g.definition,y=``,b,x,S,C,w;if(m&&v.$data){w=`keywordValidate`+i;var T=v.validateSchema;r+=` var `+_+` = RULES.custom['`+t+`'].definition; var `+w+` = `+_+`.validate;`}else{if(C=e.useCustomRule(g,o,e.schema,e),!C)return;h=`validate.schema`+s,w=C.code,b=v.compile,x=v.inline,S=v.macro}var E=w+`.errors`,D=`i`+i,O=`ruleErr`+i,k=v.async;if(k&&!e.async)throw Error(`async keyword in sync schema`);if(x||S||(r+=``+E+` = null;`),r+=`var `+p+` = errors;var `+f+`;`,m&&v.$data&&(y+=`}`,r+=` if (`+h+` === undefined) { `+f+` = true; } else { `,T&&(y+=`}`,r+=` `+f+` = `+_+`.validateSchema(`+h+`); if (`+f+`) { `)),x)v.statements?r+=` `+C.validate+` `:r+=` `+f+` = `+C.validate+`; `;else if(S){var A=e.util.copy(e),y=``;A.level++;var j=`valid`+A.level;A.schema=C.validate,A.schemaPath=``;var M=e.compositeRule;e.compositeRule=A.compositeRule=!0;var N=e.validate(A).replace(/validate\.schema/g,w);e.compositeRule=A.compositeRule=M,r+=` `+N}else{var P=P||[];P.push(r),r=``,r+=` `+w+`.call( `,e.opts.passContext?r+=`this`:r+=`self`,b||v.schema===!1?r+=` , `+d+` `:r+=` , `+h+` , `+d+` , validate.schema`+e.schemaPath+` `,r+=` , (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var F=a?`data`+(a-1||``):`parentData`,I=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+F+` , `+I+` , rootData ) `;var L=r;r=P.pop(),v.errors===!1?(r+=` `+f+` = `,k&&(r+=`await `),r+=``+L+`; `):k?(E=`customErrors`+i,r+=` var `+E+` = null; try { `+f+` = await `+L+`; } catch (e) { `+f+` = false; if (e instanceof ValidationError) `+E+` = e.errors; else throw e; } `):r+=` `+E+` = null; `+f+` = `+L+`; `}if(v.modifying&&(r+=` if (`+F+`) `+d+` = `+F+`[`+I+`];`),r+=``+y,v.valid)l&&(r+=` if (true) { `);else{r+=` if ( `,v.valid===void 0?(r+=` !`,S?r+=``+j:r+=``+f):r+=` `+!v.valid+` `,r+=`) { `,u=g.keyword;var P=P||[];P.push(r),r=``;var P=P||[];P.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var R=r;r=P.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+R+`]); `:r+=` validate.errors = [`+R+`]; return false; `:r+=` var err = `+R+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `;var z=r;r=P.pop(),x?v.errors?v.errors!=`full`&&(r+=` for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } `):v.errors===!1?r+=` `+z+` `:(r+=` if (`+p+` == errors) { `+z+` } else { for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } `):S?(r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `)):v.errors===!1?r+=` `+z+` `:(r+=` if (Array.isArray(`+E+`)) { if (vErrors === null) vErrors = `+E+`; else vErrors = vErrors.concat(`+E+`); errors = vErrors.length; for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; `+O+`.schemaPath = "`+c+`"; `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } else { `+z+` } `),r+=` } `,l&&(r+=` else { `)}return r}})),Ns=d(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}})),Ps=d(((e,t)=>{var n=Ns();t.exports={$id:`https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js`,definitions:{simpleTypes:n.definitions.simpleTypes},type:`object`,dependencies:{schema:[`validate`],$data:[`validate`],statements:[`inline`],valid:{not:{required:[`macro`]}}},properties:{type:n.properties.type,schema:{type:`boolean`},statements:{type:`boolean`},dependencies:{type:`array`,items:{type:`string`}},metaSchema:{type:`object`},modifying:{type:`boolean`},valid:{type:`boolean`},$data:{type:`boolean`},async:{type:`boolean`},errors:{anyOf:[{type:`boolean`},{const:`full`}]}}}})),Fs=d(((e,t)=>{var n=/^[a-z_$][a-z0-9_$-]*$/i,r=Ms(),i=Ps();t.exports={add:a,get:o,remove:s,validate:c};function a(e,t){var i=this.RULES;if(i.keywords[e])throw Error(`Keyword `+e+` is already defined`);if(!n.test(e))throw Error(`Keyword `+e+` is not a valid identifier`);if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)c(e,a[o],t);else c(e,a,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]}),t.validateSchema=this.compile(s,!0))}i.keywords[e]=i.all[e]=!0;function c(e,t,n){for(var a,o=0;o<i.length;o++){var s=i[o];if(s.type==t){a=s;break}}a||(a={type:t,rules:[]},i.push(a));var c={keyword:e,definition:n,custom:!0,code:r,implements:n.implements};a.rules.push(c),i.custom[e]=c}return this}function o(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function s(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,i=0;i<r.length;i++)if(r[i].keyword==e){r.splice(i,1);break}return this}function c(e,t){c.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(e))return!0;if(c.errors=n.errors,t)throw Error(`custom keyword definition is invalid: `+this.errorsText(n.errors));return!1}})),Is=d(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON Schema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}})),Ls=d(((e,t)=>{var n=ns(),r=Qo(),i=rs(),a=Xo(),o=es(),s=is(),c=ks(),l=As(),u=Yo();t.exports=g,g.prototype.validate=_,g.prototype.compile=v,g.prototype.addSchema=y,g.prototype.addMetaSchema=b,g.prototype.validateSchema=x,g.prototype.getSchema=C,g.prototype.removeSchema=E,g.prototype.addFormat=F,g.prototype.errorsText=P,g.prototype._addSchema=O,g.prototype._compile=k,g.prototype.compileAsync=js();var d=Fs();g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove,g.prototype.validateKeyword=d.validate;var f=$o();g.ValidationError=f.Validation,g.MissingRefError=f.MissingRef,g.$dataMetaSchema=l;var p=`http://json-schema.org/draft-07/schema`,m=[`removeAdditional`,`useDefaults`,`coerceTypes`,`strictDefaults`],h=[`/properties`];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=u.copy(e)||{},H(this),this._schemas={},this._refs={},this._fragments={},this._formats=s(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=A(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath==`property`&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=o),this._metaOpts=V(this),e.formats&&R(this),e.keywords&&z(this),I(this),typeof e.meta==`object`&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword(`nullable`,{metaSchema:{type:`boolean`}}),L(this)}function _(e,t){var n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "`+e+`"`)}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);return n.$async!==!0&&(this.errors=n.errors),i}function v(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}function y(e,t,n,i){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,n,i);return this}var o=this._getId(e);if(o!==void 0&&typeof o!=`string`)throw Error(`schema id must be string`);return t=r.normalizeId(t||o),B(this,t),this._schemas[t]=this._addSchema(e,n,i,!0),this}function b(e,t,n){return this.addSchema(e,t,n,!0),this}function x(e,t){var n=e.$schema;if(n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this._opts.defaultMeta||S(this),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i=`schema is invalid: `+this.errorsText();if(this._opts.validateSchema==`log`)this.logger.error(i);else throw Error(i)}return r}function S(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t==`object`?e._getId(t)||t:e.getSchema(p)?p:void 0,e._opts.defaultMeta}function C(e){var t=T(this,e);switch(typeof t){case`object`:return t.validate||this._compile(t);case`string`:return this.getSchema(t);case`undefined`:return w(this,e)}}function w(e,t){var i=r.schema.call(e,{schema:{}},t);if(i){var o=i.schema,s=i.root,c=i.baseId,l=n.call(e,o,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:c,validate:l}),l}}function T(e,t){return t=r.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function E(e){if(e instanceof RegExp)return D(this,this._schemas,e),D(this,this._refs,e),this;switch(typeof e){case`undefined`:return D(this,this._schemas),D(this,this._refs),this._cache.clear(),this;case`string`:var t=T(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case`object`:var n=this._opts.serialize,i=n?n(e):e;this._cache.del(i);var a=this._getId(e);a&&(a=r.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function D(e,t,n){for(var r in t){var i=t[r];!i.meta&&(!n||n.test(r))&&(e._cache.del(i.cacheKey),delete t[r])}}function O(e,t,n,i){if(typeof e!=`object`&&typeof e!=`boolean`)throw Error(`schema should be object or boolean`);var o=this._opts.serialize,s=o?o(e):e,c=this._cache.get(s);if(c)return c;i||=this._opts.addUsedSchema!==!1;var l=r.normalizeId(this._getId(e));l&&i&&B(this,l);var u=this._opts.validateSchema!==!1&&!t,d;u&&!(d=l&&l==r.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=new a({id:l,schema:e,localRefs:r.ids.call(this,e),cacheKey:s,meta:n});return l[0]!=`#`&&i&&(this._refs[l]=f),this._cache.put(s,f),u&&d&&this.validateSchema(e,!0),f}function k(e,t){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=t||a,e.schema.$async===!0&&(a.$async=!0),a;e.compiling=!0;var r;e.meta&&(r=this._opts,this._opts=this._metaOpts);var i;try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function a(){var t=e.validate,n=t.apply(this,arguments);return a.errors=t.errors,n}}function A(e){switch(e.schemaId){case`auto`:return N;case`id`:return j;default:return M}}function j(e){return e.$id&&this.logger.warn(`schema $id ignored`,e.$id),e.id}function M(e){return e.id&&this.logger.warn(`schema id ignored`,e.id),e.$id}function N(e){if(e.$id&&e.id&&e.$id!=e.id)throw Error(`schema $id is different from id`);return e.$id||e.id}function P(e,t){if(e||=this.errors,!e)return`No errors`;t||={};for(var n=t.separator===void 0?`, `:t.separator,r=t.dataVar===void 0?`data`:t.dataVar,i=``,a=0;a<e.length;a++){var o=e[a];o&&(i+=r+o.dataPath+` `+o.message+n)}return i.slice(0,-n.length)}function F(e,t){return typeof t==`string`&&(t=new RegExp(t)),this._formats[e]=t,this}function I(e){var t;if(e._opts.$data&&(t=Is(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=Ns();e._opts.$data&&(n=l(n,h)),e.addMetaSchema(n,p,!0),e._refs[`http://json-schema.org/schema`]=p}}function L(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}function R(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}function z(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}function B(e,t){if(e._schemas[t]||e._refs[t])throw Error(`schema with key or id "`+t+`" already exists`)}function V(e){for(var t=u.copy(e._opts),n=0;n<m.length;n++)delete t[m[n]];return t}function H(e){var t=e._opts.logger;if(t===!1)e.logger={log:U,warn:U,error:U};else{if(t===void 0&&(t=console),!(typeof t==`object`&&t.log&&t.warn&&t.error))throw Error(`logger must implement log, warn and error methods`);e.logger=t}}function U(){}})),Rs=d(((e,t)=>{t.exports={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamConstraints:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRBoundedReferenceSpace:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRFrame:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRPose:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,fetch:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}})),zs=d(((e,t)=>{t.exports=Rs()})),Bs=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=h(`node:util`),n=h(`node:path`),r=Ls(),i=zs();function a(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var o=a(t),s=a(n),c=a(r),l=a(i);let u=[`off`,`warn`,`error`],d=u.reduce((e,t,n)=>(e[t]=n,e),{}),f=new Set([0,1,2,`off`,`warn`,`error`]);function p(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&d[t.toLowerCase()]||0}function m(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=u[n]||u[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=u[n[0]]||u[0])})}function g(e){return p(e)===2}function _(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),f.has(t)}function v(e){return Object.keys(e).every(t=>_(e[t]))}function y(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var b={__proto__:null,getRuleSeverity:p,normalizeToStrings:m,isErrorSeverity:g,isValidSeverity:_,isEverySeverityValid:v,normalizeConfigGlobal:y};let x={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},S=new Set;function C(e,t){let n=JSON.stringify({source:e,errorCode:t});if(S.has(n))return;S.add(n);let r=s.default.relative(process.cwd(),e),i=x[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let w={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}};var T=(e={})=>{let t=new c.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(w),t._opts.defaultMeta=w.id,t};function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e,t){if(t===void 0)return e;if(!E(e)||!E(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=D(e[r],t[r]));return n}function O(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>D(e,t[n])),...t.slice(e.length)]}let k={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},A={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...k},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...k},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function j(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let M=j(l.default.es2015,l.default.es5),N={Atomics:!1,SharedArrayBuffer:!1},P={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},F={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var I=new Map(Object.entries({builtin:{globals:l.default.es5},es6:{globals:M,parserOptions:{ecmaVersion:6}},es2015:{globals:M,parserOptions:{ecmaVersion:6}},es2016:{globals:M,parserOptions:{ecmaVersion:7}},es2017:{globals:{...M,...N},parserOptions:{ecmaVersion:8}},es2018:{globals:{...M,...N},parserOptions:{ecmaVersion:9}},es2019:{globals:{...M,...N},parserOptions:{ecmaVersion:10}},es2020:{globals:{...M,...N,...P},parserOptions:{ecmaVersion:11}},es2021:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:12}},es2022:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:13}},es2023:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:14}},es2024:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:15}},browser:{globals:l.default.browser},node:{globals:l.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:l.default[`shared-node-browser`]},worker:{globals:l.default.worker},serviceworker:{globals:l.default.serviceworker},commonjs:{globals:l.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:l.default.amd},mocha:{globals:l.default.mocha},jasmine:{globals:l.default.jasmine},jest:{globals:l.default.jest},phantomjs:{globals:l.default.phantomjs},jquery:{globals:l.default.jquery},qunit:{globals:l.default.qunit},prototypejs:{globals:l.default.prototypejs},shelljs:{globals:l.default.shelljs},meteor:{globals:l.default.meteor},mongo:{globals:l.default.mongo},protractor:{globals:l.default.protractor},applescript:{globals:l.default.applescript},nashorn:{globals:l.default.nashorn},atomtest:{globals:l.default.atomtest},embertest:{globals:l.default.embertest},webextensions:{globals:l.default.webextensions},greasemonkey:{globals:l.default.greasemonkey}}));let L=T(),R=new WeakMap,z=Function.prototype,B,V={error:2,warn:1,off:0},H=new WeakSet,U=Object.freeze({type:`array`,minItems:0,maxItems:0});var ee=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...U};let t=e.meta.schema;if(t===void 0)return{...U};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...U}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?V[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${o.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!R.has(e))try{let t=this.getRuleOptionsSchema(e);t&&R.set(e,L.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=R.get(e);if(n&&(n(O(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=z){e&&Object.keys(e).forEach(e=>{if(!(n(e)||I.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=z){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{y(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(B||=L.compile(A),!B(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(B.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&C(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)H.has(i)||(H.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let W=/^@.*\//iu;function te(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function ne(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function re(e){let t=e.match(W);return t?t[0]:``}e.Legacy={environments:I,ConfigOps:b,ConfigValidator:ee,naming:{__proto__:null,normalizePackageName:te,getShorthandName:ne,getNamespaceFromTerm:re}}})),Vs=d(((e,t)=>{function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function r(e,t){if(t===void 0)return e;if(!n(e)||!n(t))return t;let i={...e,...t};for(let n of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=r(e[n],t[n]));return i}function i(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>r(e,n<t.length?t[n]:void 0)),...t.slice(e.length)]}t.exports={deepMergeArrays:i}})),Hs=d(((e,t)=>{function n(e){if([2,`2`,`error`].includes(e))return`error`;if([1,`1`,`warn`].includes(e))return`warn`;if([0,`0`,`off`].includes(e))return`off`;throw Error(`Invalid severity value: ${e}`)}function r(e){if([2,`2`,`error`].includes(e))return 2;if([1,`1`,`warn`].includes(e))return 1;if([0,`0`,`off`].includes(e))return 0;throw Error(`Invalid severity value: ${e}`)}t.exports={normalizeSeverityToString:n,normalizeSeverityToNumber:r}})),Us=d(((e,t)=>{let{normalizeSeverityToNumber:n}=Hs(),r=new Map([[0,0],[`off`,0],[1,1],[`warn`,1],[2,2],[`error`,2]]);function i(e){return typeof e==`object`&&!!e}function a(e){return i(e)&&!Array.isArray(e)}function o(e){return e===void 0}function s(e,t,n=new Map){let r=n.get(e);if(r){let e=r.get(t);if(e)return e}else r=new Map,n.set(e,r);let i={...e,...t};delete i.__proto__,r.set(t,i);for(let r of Object.keys(t)){if(r===`__proto__`||!Object.prototype.propertyIsEnumerable.call(e,r))continue;let c=e[r],l=t[r];a(c)&&a(l)?i[r]=s(c,l,n):o(l)&&(i[r]=c)}return i}function c(e){let t=Array.isArray(e)?e.slice(0):[e];return t[0]=r.get(t[0]),structuredClone(t)}function l(e){for(let t of Object.keys(e))if(typeof e[t]==`function`)return!0;return!1}var u=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-options`,this.messageData={ruleId:e,value:t}}};function d(e,t){if(typeof t!=`string`&&typeof t!=`number`&&!Array.isArray(t))throw new u(e,t)}var f=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-severity`,this.messageData={ruleId:e,value:t}}};function p(e,t){if(r.get(t)===void 0)throw new f(e,t)}function m(e){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(e))throw TypeError(`Expected string in the form "pluginName/objectName" but found "${e}".`)}function h(e){if(!i(e))throw TypeError(`Expected an object.`)}var g=class extends Error{constructor(e){super(`This appears to be in eslintrc format rather than flat config format.`),this.messageTemplate=`eslintrc-incompat`,this.messageData={key:e}}},_=class extends Error{constructor(e){super(`This appears to be in eslintrc format (array of strings) rather than flat config format (object).`),this.messageTemplate=`eslintrc-plugins`,this.messageData={plugins:e}}};let v={merge:`replace`,validate:`boolean`},y=new Set([`error`,`warn`,`off`,2,1,0]),b={merge(e,t){let r=t===void 0?e:t;return typeof r==`boolean`?r?`warn`:`off`:n(r)},validate(e){if(!(y.has(e)||typeof e==`boolean`))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.`)}},x={merge(e,t){return n(t===void 0?e:t)},validate(e){if(!y.has(e))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, or 2.`)}},S={merge(e={},t={}){return s(e,t)},validate:`object`},C={merge(e={},t={}){let n=s(e,t);for(let[r,i]of Object.entries(n))if(a(i)){if(l(i)){n[r]=t[r]??e[r];continue}n[r]={...n[r]};continue}return n},validate:`object`},w={merge:`replace`,validate:m},T={merge(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]),r={};for(let i of n)if(i!==`__proto__`){if(i in e&&i in t&&e[i]!==t[i])throw TypeError(`Cannot redefine plugin "${i}".`);r[i]=t[i]||e[i]}return r},validate(e){if(typeof e!=`object`||!e)throw TypeError(`Expected an object.`);if(Array.isArray(e))throw new _(e);for(let t of Object.keys(e))if(t!==`__proto__`&&(e[t]===null||typeof e[t]!=`object`))throw TypeError(`Key "${t}": Expected an object.`)}},E={merge:`replace`,validate(e){if(typeof e==`string`)m(e);else if(e&&typeof e==`object`){if(typeof e.preprocess!=`function`||typeof e.postprocess!=`function`)throw TypeError(`Object must have a preprocess() and a postprocess() method.`)}else throw TypeError(`Expected an object or a string.`)}},D={merge(e={},t={}){let n={...e,...t};for(let r of Object.keys(n))try{if(r===`__proto__`){delete n.__proto__;continue}if(n[r]=c(n[r]),!(r in e)||!(r in t))continue;let i=c(e[r]),a=c(t[r]);if(a.length===1){n[r]=[a[0],...i.slice(1)];continue}}catch(e){throw Error(`Key "${r}": ${e.message}`,{cause:e})}return n},validate(e){h(e);for(let t of Object.keys(e)){if(t===`__proto__`)continue;let n=e[t];d(t,n),Array.isArray(n)?p(t,n[0]):p(t,n)}}};function O(e){return{merge:`replace`,validate(){throw new g(e)}}}t.exports={flatConfigSchema:{...Object.fromEntries([`env`,`extends`,`globals`,`ignorePatterns`,`noInlineConfig`,`overrides`,`parser`,`parserOptions`,`reportUnusedDisableDirectives`,`root`].map(e=>[e,O(e)])),settings:S,linterOptions:{schema:{noInlineConfig:v,reportUnusedDisableDirectives:b,reportUnusedInlineConfigs:x}},language:w,languageOptions:C,processor:E,plugins:T,rules:D},hasMethod:l,assertIsRuleSeverity:p}})),Ws=d((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function o(e){return e=a(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function s(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function c(e){return e===47}function l(e,t=``){e instanceof URL&&(e=o(e)),i(e,t);let a=s(r(e,c),c);return t?n(a,t):a}let u=/\/+/;function d(e){if(t(e),e.length===0)return`.`}function f(e){e instanceof URL&&(e=o(e)),d(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(c(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return t===-1?c(e.charCodeAt(0))?`/`:`.`:s(e.slice(0,t),c)}function p(e){e instanceof URL&&(e=o(e)),t(e);let n=-1,r=0,i=-1,a=!0,s=0;for(let t=e.length-1;t>=0;--t){let o=e.charCodeAt(t);if(c(o)){if(!a){r=t+1;break}continue}i===-1&&(a=!1,i=t+1),o===46?n===-1?n=t:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?``:e.slice(n,i)}function m(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function h(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function g(e){return h(e),m(`/`,e)}function _(e){return t(e),e.length>0&&c(e.charCodeAt(0))}function v(e){if(t(e),e.length===0)return`.`}function y(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function b(e){e instanceof URL&&(e=o(e)),v(e);let t=c(e.charCodeAt(0)),n=c(e.charCodeAt(e.length-1));return e=y(e,!t,`/`,c),e.length===0&&!t&&(e=`.`),e.length>0&&n&&(e+=`/`),t?`/${e}`:e}function x(e,...n){if(e===void 0)return`.`;e instanceof URL&&(e=o(e)),n=e?[e,...n]:n,n.forEach(e=>t(e));let r=n.filter(e=>e.length>0).join(`/`);return r===``?`.`:b(r)}function S(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;let r=c(e.charCodeAt(0)),i;r?(n.root=`/`,i=1):i=0;let a=-1,o=0,l=-1,u=!0,d=e.length-1,f=0;for(;d>=i;--d){let t=e.charCodeAt(d);if(c(t)){if(!u){o=d+1;break}continue}l===-1&&(u=!1,l=d+1),t===46?a===-1?a=d:f!==1&&(f=1):a!==-1&&(f=-1)}return a===-1||l===-1||f===0||f===1&&a===l-1&&a===o+1?(l!==-1&&(o===0&&r?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(o,l)),n.base=n.base||`/`):(o===0&&r?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(o,a),n.base=e.slice(o,l)),n.ext=e.slice(a,l)),o>0?n.dir=s(e.slice(0,o-1),c):r&&(n.dir=`/`),n}function C(...e){let n=``,r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let a;if(i>=0)a=e[i];else{let{Deno:e}=globalThis;if(typeof e?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);a=e.cwd()}t(a),a.length!==0&&(n=`${a}/${n}`,r=c(a.charCodeAt(0)))}return n=y(n,!r,`/`,c),r?n.length>0?`/${n}`:`/`:n.length>0?n:`.`}function w(e,n){if(t(e),t(n),e===n)return``}function T(e,t){if(w(e,t),e=C(e),t=C(t),e===t)return``;let n=1,r=e.length;for(;n<r&&c(e.charCodeAt(n));++n);let i=r-n,a=1,o=t.length;for(;a<o&&c(t.charCodeAt(a));++a);let s=o-a,l=i<s?i:s,u=-1,d=0;for(;d<=l;++d){if(d===l){if(s>l){if(c(t.charCodeAt(a+d)))return t.slice(a+d+1);if(d===0)return t.slice(a+d)}else i>l&&(c(e.charCodeAt(n+d))?u=d:d===0&&(u=0));break}let r=e.charCodeAt(n+d);if(r!==t.charCodeAt(a+d))break;c(r)&&(u=d)}let f=``;for(d=n+u+1;d<=r;++d)(d===r||c(e.charCodeAt(d)))&&(f.length===0?f+=`..`:f+=`/..`);return f.length>0?f+t.slice(a+u):(a+=u,c(t.charCodeAt(a))&&++a,t.slice(a))}let E={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function D(e){return e.replaceAll(/[\s]/g,e=>E[e]??e)}function O(e){if(!_(e))throw TypeError(`Path must be absolute: received "${e}"`);let t=new URL(`file:///`);return t.pathname=D(e.replace(/%/g,`%25`).replace(/\\/g,`%5C`)),t}function k(e){return e}function A(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function j(e){return A(e,`/`)}let M=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],N=[`-`,`\\`,`]`];function P(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!e.seps.includes(t[d]);d++){if(l){l=!1,a+=(c?N:M).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=M.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=M.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let F={sep:`/+`,sepMaybe:`/*`,seps:[`/`],globstar:`(?:[^/]*(?:/|$)+)*`,wildcard:`[^/]*`,escapePrefix:`\\`};function I(e,t={}){return P(F,e,t)}function L(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function R(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return b(e);let r=u.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return b(e.replace(i,`\0`)).replace(/\0/g,`..`)}function z(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return x(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`/${e}`:r=e)}return r?R(r,{globstar:n}):`.`}e.DELIMITER=`:`,e.SEPARATOR=`/`,e.SEPARATOR_PATTERN=u,e.basename=l,e.common=j,e.dirname=f,e.extname=p,e.format=g,e.fromFileUrl=o,e.globToRegExp=I,e.isAbsolute=_,e.isGlob=L,e.join=x,e.joinGlobs=z,e.normalize=b,e.normalizeGlob=R,e.parse=S,e.relative=T,e.resolve=C,e.toFileUrl=O,e.toNamespacedPath=k})),Gs=d((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function o(e){return e===47}function s(e){return e===47||e===92}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function u(e){e=l(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function d(e,t=``){e instanceof URL&&(e=u(e)),i(e,t);let o=0;e.length>=2&&c(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(o=2);let l=a(r(e,s,o),s);return t?n(l,t):l}let f=/[\\/]+/;function p(e){if(t(e),e.length===0)return`.`}function m(e){e instanceof URL&&(e=u(e)),p(e);let t=e.length,n=-1,r=-1,i=!0,l=0,d=e.charCodeAt(0);if(t>1)if(s(d)){if(n=l=1,s(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=l=r+1)}}}}else c(d)&&e.charCodeAt(1)===58&&(n=l=2,t>2&&s(e.charCodeAt(2))&&(n=l=3));else if(s(d))return e;for(let n=t-1;n>=l;--n)if(s(e.charCodeAt(n))){if(!i){r=n;break}}else i=!1;if(r===-1){if(n===-1)return`.`;r=n}return a(e.slice(0,r),o)}function h(e){e instanceof URL&&(e=u(e)),t(e);let n=0,r=-1,i=0,a=-1,o=!0,l=0;e.length>=2&&e.charCodeAt(1)===58&&c(e.charCodeAt(0))&&(n=i=2);for(let t=e.length-1;t>=n;--t){let n=e.charCodeAt(t);if(s(n)){if(!o){i=t+1;break}continue}a===-1&&(o=!1,a=t+1),n===46?r===-1?r=t:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||a===-1||l===0||l===1&&r===a-1&&r===i+1?``:e.slice(r,a)}function g(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function _(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function v(e){return _(e),g(`\\`,e)}function y(e){t(e);let n=e.length;if(n===0)return!1;let r=e.charCodeAt(0);return s(r)?!0:!!(c(r)&&n>2&&e.charCodeAt(1)===58&&s(e.charCodeAt(2)))}function b(e){if(t(e),e.length===0)return`.`}function x(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function S(e){e instanceof URL&&(e=u(e)),b(e);let t=e.length,n=0,r,i=!1,a=e.charCodeAt(0);if(t>1)if(s(a))if(i=!0,s(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!s(e.charCodeAt(i));++i);if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&s(e.charCodeAt(i));++i);if(i<t&&i!==a){for(a=i;i<t&&!s(e.charCodeAt(i));++i);if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1;else c(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&s(e.charCodeAt(2))&&(i=!0,n=3));else if(s(a))return`\\`;let o;return o=n<t?x(e.slice(n),!i,`\\`,s):``,o.length===0&&!i&&(o=`.`),o.length>0&&s(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?o.length>0?`\\${o}`:`\\`:o:i?o.length>0?`${r}\\${o}`:`${r}\\`:r+o}function C(e,...n){if(e instanceof URL&&(e=u(e)),n=e?[e,...n]:n,n.forEach(e=>t(e)),n=n.filter(e=>e.length>0),n.length===0)return`.`;let r=!0,i=0,a=n[0];if(s(a.charCodeAt(0))){++i;let e=a.length;e>1&&s(a.charCodeAt(1))&&(++i,e>2&&(s(a.charCodeAt(2))?++i:r=!1))}let o=n.join(`\\`);if(r){for(;i<o.length&&s(o.charCodeAt(i));++i);i>=2&&(o=`\\${o.slice(i)}`)}return S(o)}function w(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``},r=e.length;if(r===0)return n;let i=0,a=e.charCodeAt(0);if(r>1){if(s(a)){if(i=1,s(e.charCodeAt(1))){let t=2,n=t;for(;t<r&&!s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&!s(e.charCodeAt(t));++t);t===r?i=t:t!==n&&(i=t+1)}}}}else if(c(a)&&e.charCodeAt(1)===58)if(i=2,r>2){if(s(e.charCodeAt(2))){if(r===3)return n.root=n.dir=e,n.base=`\\`,n;i=3}}else return n.root=n.dir=e,n}else if(s(a))return n.root=n.dir=e,n.base=`\\`,n;i>0&&(n.root=e.slice(0,i));let o=-1,l=i,u=-1,d=!0,f=e.length-1,p=0;for(;f>=i;--f){if(a=e.charCodeAt(f),s(a)){if(!d){l=f+1;break}continue}u===-1&&(d=!1,u=f+1),a===46?o===-1?o=f:p!==1&&(p=1):o!==-1&&(p=-1)}return o===-1||u===-1||p===0||p===1&&o===u-1&&o===l+1?u!==-1&&(n.base=n.name=e.slice(l,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u),n.ext=e.slice(o,u)),n.base=n.base||`\\`,l>0&&l!==i?n.dir=e.slice(0,l-1):n.dir=n.root,n}function T(...e){let n=``,r=``,i=!1;for(let a=e.length-1;a>=-1;a--){let o,{Deno:l}=globalThis;if(a>=0)o=e[a];else if(n){if(typeof l?.env?.get!=`function`||typeof l?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);o=l.cwd(),(o===void 0||o.slice(0,3).toLowerCase()!==`${n.toLowerCase()}\\`)&&(o=`${n}\\`)}else{if(typeof l?.cwd!=`function`)throw TypeError(`Resolved a drive-letter-less path without a current working directory (CWD)`);o=l.cwd()}t(o);let u=o.length;if(u===0)continue;let d=0,f=``,p=!1,m=o.charCodeAt(0);if(u>1)if(s(m))if(p=!0,s(o.charCodeAt(1))){let e=2,t=e;for(;e<u&&!s(o.charCodeAt(e));++e);if(e<u&&e!==t){let n=o.slice(t,e);for(t=e;e<u&&s(o.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!s(o.charCodeAt(e));++e);e===u?(f=`\\\\${n}\\${o.slice(t)}`,d=e):e!==t&&(f=`\\\\${n}\\${o.slice(t,e)}`,d=e)}}}else d=1;else c(m)&&o.charCodeAt(1)===58&&(f=o.slice(0,2),d=2,u>2&&s(o.charCodeAt(2))&&(p=!0,d=3));else s(m)&&(d=1,p=!0);if(!(f.length>0&&n.length>0&&f.toLowerCase()!==n.toLowerCase())&&(n.length===0&&f.length>0&&(n=f),i||=(r=`${o.slice(d)}\\${r}`,p),i&&n.length>0))break}return r=x(r,!i,`\\`,s),n+(i?`\\`:``)+r||`.`}function E(e,n){if(t(e),t(n),e===n)return``}function D(e,t){E(e,t);let n=T(e),r=T(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0,a=e.length;for(;i<a&&e.charCodeAt(i)===92;++i);for(;a-1>i&&e.charCodeAt(a-1)===92;--a);let o=a-i,s=0,c=t.length;for(;s<c&&t.charCodeAt(s)===92;++s);for(;c-1>s&&t.charCodeAt(c-1)===92;--c);let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<=u;++f){if(f===u){if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3));break}let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u&&d===-1)return r;let p=``;for(d===-1&&(d=0),f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p.length===0?p+=`..`:p+=`\\..`);return p.length>0?p+r.slice(s+d,c):(s+=d,r.charCodeAt(s)===92&&++s,r.slice(s,c))}let O={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function k(e){return e.replaceAll(/[\s]/g,e=>O[e]??e)}function A(e){if(!y(e))throw TypeError(`Path must be absolute: received "${e}"`);let[,t,n]=e.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),r=new URL(`file:///`);if(r.pathname=k(n.replace(/%/g,`%25`)),t!==void 0&&t!==`localhost`&&(r.hostname=t,!r.hostname))throw TypeError(`Invalid hostname: "${r.hostname}"`);return r}function j(e){if(typeof e!=`string`)return e;if(e.length===0)return``;let t=T(e);if(t.length>=3){if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(c(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`}return e}function M(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function N(e){return M(e,`\\`)}let P=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],F=[`-`,`\\`,`]`];function I(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!e.seps.includes(t[d]);d++){if(l){l=!1,a+=(c?F:P).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=P.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=P.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let L={sep:`(?:\\\\|/)+`,sepMaybe:`(?:\\\\|/)*`,seps:[`\\`,`/`],globstar:`(?:[^\\\\/]*(?:\\\\|/|$)+)*`,wildcard:`[^\\\\/]*`,escapePrefix:"`"};function R(e,t={}){return I(L,e,t)}function z(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function B(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return S(e);let r=f.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return S(e.replace(i,`\0`)).replace(/\0/g,`..`)}function V(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return C(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`\\${e}`:r=e)}return r?B(r,{globstar:n}):`.`}e.DELIMITER=`;`,e.SEPARATOR=`\\`,e.SEPARATOR_PATTERN=f,e.basename=d,e.common=N,e.dirname=m,e.extname=h,e.format=v,e.fromFileUrl=u,e.globToRegExp=R,e.isAbsolute=y,e.isGlob=z,e.join=C,e.joinGlobs=V,e.normalize=S,e.normalizeGlob=B,e.parse=w,e.relative=D,e.resolve=T,e.toFileUrl=A,e.toNamespacedPath=j})),Ks=d((e=>{var t=class{static overwrite(e,t){return t}static replace(e,t){return t===void 0?e:t}static assign(e,t){return Object.assign({},e,t)}},n=class{static array(e){if(!Array.isArray(e))throw TypeError(`Expected an array.`)}static boolean(e){if(typeof e!=`boolean`)throw TypeError(`Expected a Boolean.`)}static number(e){if(typeof e!=`number`)throw TypeError(`Expected a number.`)}static object(e){if(!e||typeof e!=`object`)throw TypeError(`Expected an object.`)}static"object?"(e){if(typeof e!=`object`)throw TypeError(`Expected an object or null.`)}static string(e){if(typeof e!=`string`)throw TypeError(`Expected a string.`)}static"string!"(e){if(typeof e!=`string`||e.length===0)throw TypeError(`Expected a non-empty string.`)}};function r(e,r){let i=!1;if(r.schema)if(typeof r.schema==`object`)i=!0;else throw TypeError(`Schema must be an object.`);if(typeof r.merge==`string`){if(!(r.merge in t))throw TypeError(`Definition for key "${e}" missing valid merge strategy.`)}else if(!i&&typeof r.merge!=`function`)throw TypeError(`Definition for key "${e}" must have a merge property.`);if(typeof r.validate==`string`){if(!(r.validate in n))throw TypeError(`Definition for key "${e}" missing valid validation strategy.`)}else if(!i&&typeof r.validate!=`function`)throw TypeError(`Definition for key "${e}" must have a validate() method.`)}var i=class extends Error{constructor(e){super(`Unexpected key "${e}" found.`)}},a=class extends Error{constructor(e){super(`Missing required key "${e}".`)}},o=class extends Error{constructor(e,t){super(`Key "${e}" requires keys "${t.join(`", "`)}".`)}},s=class extends Error{constructor(e,t){super(`Key "${e}": ${t.message}`,{cause:t});for(let e of Object.keys(t))e in this||(this[e]=t[e])}},c=class e{#e=new Map;#t=new Map;constructor(i){if(!i)throw Error(`Schema definitions missing.`);for(let a of Object.keys(i)){if(r(a,i[a]),typeof i[a].schema==`object`){let t=new e(i[a].schema);i[a]={...i[a],merge(e={},n={}){return t.merge(e,n)},validate(e){n.object(e),t.validate(e)}}}typeof i[a].merge==`string`&&(i[a]={...i[a],merge:t[i[a].merge]}),typeof i[a].validate==`string`&&(i[a]={...i[a],validate:n[i[a].validate]}),this.#e.set(a,i[a]),i[a].required&&this.#t.set(a,i[a])}}hasKey(e){return this.#e.has(e)}merge(...e){if(e.length<2)throw TypeError(`merge() requires at least two arguments.`);if(e.some(e=>typeof e!=`object`||!e))throw TypeError(`All arguments must be objects.`);return e.reduce((e,t)=>{this.validate(t);for(let[n,r]of this.#e)try{if(n in e||n in t){let i=r.merge.call(this,e[n],t[n]);i!==void 0&&(e[n]=i)}}catch(e){throw new s(n,e)}return e},{})}validate(e){for(let t of Object.keys(e)){if(!this.hasKey(t))throw new i(t);let n=this.#e.get(t);if(Array.isArray(n.requires)&&!n.requires.every(t=>t in e))throw new o(t,n.requires);try{n.validate.call(n,e[t])}catch(e){throw new s(t,e)}}for(let[t]of this.#t)if(!(t in e))throw new a(t)}};e.MergeStrategy=t,e.ObjectSchema=c,e.ValidationStrategy=n})),qs=d((e=>{var t=Ws(),n=Gs(),r=Uo(),i=S(),a=Ks();function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==`default`){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=o(t),c=o(n);let l={required:!1,merge(){},validate(){}},u=Object.freeze({name:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Property must be a string.`)}},basePath:l,files:l,ignores:l});function d(e){if(!Array.isArray(e))throw TypeError(`Expected value to be an array.`)}function f(e){if(d(e),e.some(e=>typeof e!=`string`&&typeof e!=`function`))throw TypeError(`Expected array to only contain strings and functions.`)}function p(e){if(!Array.isArray(e)||e.length===0)throw TypeError(`Expected value to be a non-empty array.`)}let m=Object.freeze({basePath:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Expected value to be a string.`)}},files:{required:!1,merge(){},validate(e){p(e),e.forEach(e=>{if(Array.isArray(e))f(e);else if(typeof e!=`string`&&typeof e!=`function`)throw TypeError(`Items must be a string, a function, or an array of strings and functions.`)})}},ignores:{required:!1,merge(){},validate:f}}),h=r.Minimatch,g=i(`@eslint/config-array`),_=new Map,v=new Map,y={dot:!0,allowWindowsEscape:!0},b=new Set([`array`,`function`]),x=new Set([`name`,`basePath`]),C=new a.ObjectSchema(m),w=Object.freeze({status:`external`}),T=Object.freeze({status:`ignored`}),E=Object.freeze({status:`unconfigured`}),D=/^\.\.(?:\/|$)/u;var O=class extends Error{constructor(e,t,{cause:n,message:r}){let i=r||n.message;if(super(`Config ${e}: ${i}`,{cause:n}),n)for(let e of Object.keys(n))e in this||(this[e]=n[e]);this.name=`ConfigError`,this.index=t}};function k(e){return e&&typeof e.name==`string`&&e.name?`"${e.name}"`:`(unnamed)`}function A(e,t,n){throw new O(k(e),t,{cause:n})}function j(e){return typeof e==`string`}function M(e,t){if(e===null)throw new O(k(e),t,{message:`Unexpected null config.`});if(e===void 0)throw new O(k(e),t,{message:`Unexpected undefined config.`});if(typeof e!=`object`)throw new O(k(e),t,{message:`Unexpected non-object config.`});let n={};`basePath`in e&&(n.basePath=e.basePath),`files`in e&&(n.files=e.files),`ignores`in e&&(n.ignores=e.ignores);try{C.validate(n)}catch(n){A(e,t,n)}}function N(e,t,n={}){let r=_;n.flipNegate&&(r=v);let i=r.get(t);return i||(i=new h(t,Object.assign({},y,n)),r.set(t,i)),i.match(e)}function P(e){if(j(e)){if(e.startsWith(`./`))return e.slice(2);if(e.startsWith(`!./`))return`!${e.slice(3)}`}return e}function F(e){return j(e)&&(e.startsWith(`./`)||e.startsWith(`!./`))}function I(e,t,n){if(!e)return e;let r=typeof e.basePath==`string`,i=!1;if(r&&(i=!0),!i&&Array.isArray(e.files)&&(i=e.files.some(e=>Array.isArray(e)?e.some(F):F(e))),!i&&Array.isArray(e.ignores)&&(i=e.ignores.some(F)),!i)return e;let a={...e};return r&&(n.isAbsolute(e.basePath)?a.basePath=n.toNamespacedPath(e.basePath):a.basePath=n.resolve(t,e.basePath)),Array.isArray(a.files)&&(a.files=a.files.map(e=>Array.isArray(e)?e.map(P):P(e))),Array.isArray(a.ignores)&&(a.ignores=a.ignores.map(P)),a}async function L(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);async function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);n=n(t),n.then&&(n=await n)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=await s(e),l=[];for await(let e of c)l.push(I(e,r,i));return l}function R(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);if(n=n(t),n.then)throw TypeError(`Async config functions are not supported.`)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=[];for(let t of s(e))c.push(I(t,r,i));return c}function z(e,t,n){let r=n.resolve(t,e),i=n.toNamespacedPath(r);return n.relative(t,i).replaceAll(n.SEPARATOR,`/`)}function B(e,t,n,{basePath:r,path:i}={}){let a=!1;for(let o of e){let e=n;if(o.basePath){if(e=z(i.resolve(r,n),o.basePath,i),e===``||D.test(e))continue;n.endsWith(`/`)&&(e+=`/`)}a=o.ignores.reduce((n,r)=>n?typeof r==`string`&&r.startsWith(`!`)?!N(e,r,{flipNegate:!0}):n:typeof r==`function`?r(t):r.startsWith(`!`)?!1:N(e,r),a)}return a}function V(e,t,n){function r(n){if(j(n))return N(t,n);if(typeof n==`function`)return n(e);throw TypeError(`Unexpected matcher type ${n}.`)}let i=n.files.some(e=>Array.isArray(e)?e.every(r):r(e));return i&&n.ignores&&(i=!B([{ignores:n.ignores}],e,t)),i}function H(e){if(!e.isNormalized())throw Error(`ConfigArray must be normalized to perform this operation.`)}function U(e){if(e.length>2)throw TypeError(`configTypes must be an array with at most two items.`);for(let t of e)if(!b.has(t))throw TypeError(`Unexpected config type "${t}" found. Expected one of: "object", "array", "function".`)}function ee(e){if(e.startsWith(`/`))return s;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(e))return c;throw Error(`Expected an absolute path but received "${e}"`)}let W={isNormalized:Symbol(`isNormalized`),configCache:Symbol(`configCache`),schema:Symbol(`schema`),finalizeConfig:Symbol(`finalizeConfig`),preprocessConfig:Symbol(`preprocessConfig`)},te=new WeakMap;var ne=class extends Array{#e;#t;constructor(e,{basePath:t=`/`,normalized:n=!1,schema:r,extraConfigTypes:i=[]}={}){if(super(),this[W.isNormalized]=n,this[W.schema]=new a.ObjectSchema(Object.assign({},r,u)),!j(t)||!t)throw TypeError(`basePath must be a non-empty string`);this.basePath=t,U(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[W.configCache]=new Map,te.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(e)?this.push(...e):this.push(e),this.#t=ee(t),this.#e=this.#t.toNamespacedPath(t)}static get[Symbol.species](){return Array}get files(){H(this);let e=te.get(this);if(e.files)return e.files;let t=[];for(let e of this)e.files&&e.files.forEach(e=>{t.push(e)});return e.files=t,te.set(this,e),t}get ignores(){H(this);let e=te.get(this);if(e.ignores)return e.ignores;let t=[];for(let e of this)e.ignores&&Object.keys(e).filter(e=>!x.has(e)).length===1&&t.push(e);return e.ignores=t,te.set(this,e),t}isNormalized(){return this[W.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let t=await L(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let t=R(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}[W.finalizeConfig](e){return e}[W.preprocessConfig](e){return e}getConfigWithStatus(e){H(this);let t=this[W.configCache];if(t.has(e))return t.get(e);let n=z(e,this.#e,this.#t);if(D.test(n))return g(`No config for file ${e} outside of base path`),t.set(e,w),w;if(this.isDirectoryIgnored(this.#t.dirname(e)))return g(`Ignoring ${e} based on directory pattern`),t.set(e,T),T;if(B(this.ignores,e,n,{basePath:this.#e,path:this.#t}))return g(`Ignoring ${e} based on file pattern`),t.set(e,T),T;let r=[],i=!1,a=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((t,o)=>{let s=t.basePath?z(this.#t.resolve(this.#e,e),t.basePath,this.#t):n;if(t.basePath&&D.test(s)){g(`Skipped config found for ${e} (based on config's base path: ${t.basePath}`);return}if(!t.files){if(!t.ignores){g(`Universal config found for ${e}`),r.push(o);return}if(Object.keys(t).filter(e=>!x.has(e)).length===1){g(`Skipped config found for ${e} (global ignores)`);return}if(B([{ignores:t.ignores}],e,s)){g(`Skipped config found for ${e} (based on ignores: ${t.ignores})`);return}g(`Matching config found for ${e} (based on ignores: ${t.ignores})`),r.push(o);return}let c=[],l=t.files.filter(e=>Array.isArray(e)?e.every(e=>a.test(e))?!0:(c.push(e),!1):a.test(e)?!0:(c.push(e),!1));if(l.length){if(g(`Universal files patterns found. Checking carefully.`),c.length&&V(e,s,{files:c,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o),i=!0;return}if(l.length&&V(e,s,{files:l,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o);return}return}V(e,s,t)&&(g(`Matching config found for ${e}`),r.push(o),i=!0)}),!i)return g(`No matching configs found for ${e}`),t.set(e,E),E;let o=r.toString(),s=t.get(o);if(s)return t.set(e,s),s;let c=r.reduce((e,t)=>{try{return this[W.schema].merge(e,this[t])}catch(e){A(this[t],t,e)}},{});return c=this[W.finalizeConfig](c),s=Object.freeze({config:c,status:`matched`}),t.set(e,s),t.set(o,s),s}getConfig(e){return this.getConfigWithStatus(e).config}getConfigStatus(e){return this.getConfigWithStatus(e).status}isIgnored(e){return this.isFileIgnored(e)}isFileIgnored(e){return this.getConfigStatus(e)===`ignored`}isDirectoryIgnored(e){H(this);let t=z(e,this.#e,this.#t);if(t===``)return!1;if(D.test(t))return!0;let n=te.get(this).directoryMatches;if(n.has(t))return n.get(t);let r=t.split(`/`),i=``,a;do i+=`${r.shift()}/`,a=B(this.ignores,this.#t.join(this.basePath,i),i,{basePath:this.#e,path:this.#t}),n.set(i,a);while(!a&&r.length);return n.set(t,a),a}};Object.defineProperty(e,`ObjectSchema`,{enumerable:!0,get:function(){return a.ObjectSchema}}),e.ConfigArray=ne,e.ConfigArraySymbol=W})),Js=d(((e,t)=>{t.exports={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}}})),Ys=d(((e,t)=>{let n=Ls(),r=Js();t.exports=(e={})=>{let t=new n({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(r),t._opts.defaultMeta=r.id,t}})),Xs=d(((e,t)=>{t.exports={rules:{"generator-star":[`generator-star-spacing`],"global-strict":[`strict`],"no-arrow-condition":[`no-confusing-arrow`,`no-constant-condition`],"no-comma-dangle":[`comma-dangle`],"no-empty-class":[`no-empty-character-class`],"no-empty-label":[`no-labels`],"no-extra-strict":[`strict`],"no-reserved-keys":[`quote-props`],"no-space-before-semi":[`semi-spacing`],"no-wrap-func":[`no-extra-parens`],"space-after-function-name":[`space-before-function-paren`],"space-after-keywords":[`keyword-spacing`],"space-before-function-parentheses":[`space-before-function-paren`],"space-before-keywords":[`keyword-spacing`],"space-in-brackets":[`object-curly-spacing`,`array-bracket-spacing`,`computed-property-spacing`],"space-return-throw-case":[`keyword-spacing`],"space-unary-word-ops":[`space-unary-ops`],"spaced-line-comment":[`spaced-comment`]}}})),Zs=d(((e,t)=>{let{deepMergeArrays:n}=Vs(),{flatConfigSchema:r,hasMethod:i}=Us(),{ObjectSchema:a}=qs(),o=Ys()(),s=Xs(),c=Object.freeze({type:`array`,minItems:0,maxItems:0}),l=new Map([[0,0],[1,1],[2,2],[`off`,0],[`warn`,1],[`error`,2]]),u=new WeakMap;function d({pluginName:e,ruleName:t},n){let r=e===`@`?t:`${e}/${t}`,i=`Key "rules": Key "${r}"`,a=`${i}: Could not find plugin "${e}" in configuration.`,o=a;if(n.plugins&&n.plugins[e]){let r=s.rules[t];if(e===`@`&&r)a=`${i}: Rule "${t}" was removed and replaced by "${r}".`;else{a=`${i}: Could not find "${t}" in plugin "${e}".`;for(let[e,r]of Object.entries(n.plugins))if(r.rules&&r.rules[t]){a+=` Did you mean "${e}/${t}"?`;break}}}let c=TypeError(a);throw a===o&&(c.messageTemplate=`config-plugin-missing`,c.messageData={pluginName:e,ruleId:r}),c}var f=class extends Error{constructor(e,t){super(`Error while processing options validation schema of rule '${e}': ${t.message}`,{cause:t}),this.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`}};function p(e){let t,n;return e.includes(`/`)?(t=e.startsWith(`@`)?e.slice(0,e.lastIndexOf(`/`)):e.slice(0,e.indexOf(`/`)),n=e.slice(t.length+1)):(t=`@`,n=e),{pluginName:t,ruleName:n}}function m(e,t){let{pluginName:n,ruleName:r}=p(e);return t.plugins?.[n]?.rules?.[r]}function h(e){if(!e.meta)return{...c};let t=e.meta.schema;if(t===void 0)return{...c};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...c}:t}function g(e){let t=e.split(`/`);return{objectName:t.pop(),pluginName:t.join(`/`)}}function _(e){let t=e.name;if(!t&&(!e.meta||(t=e.meta.name,!t)))return null;let n=e.version;return n||=e.meta&&e.meta.version,n?`${t}@${n}`:t}function v(e,t,n){if(typeof e==`function`){let e=TypeError(`Cannot serialize key "${t}" in "${n}": Function values are not supported.`);throw e.messageTemplate=`config-serialize-function`,e.messageData={key:t,objectKey:n},e}}function y(e,t=`languageOptions`){if(typeof e.toJSON==`function`){let n=e.toJSON();return v(n,`toJSON`,t),n}let n={};for(let[r,a]of Object.entries(e)){if(a){if(typeof a==`object`){let e=_(a);typeof a.toJSON==`function`?(n[r]=a.toJSON(),v(n[r],r,t)):e&&i(a)?n[r]=e:n[r]=y(a,r);continue}v(a,r,t)}n[r]=a}return n}function b(e,t){if(!u.has(e))try{let t=h(e);t&&u.set(e,o.compile(t))}catch(e){throw new f(t,e)}return u.get(e)}t.exports={Config:class{#e;#t;constructor(e){let{plugins:t,language:n,languageOptions:i,processor:o,...s}=e;if(new a(r).validate(e),Object.assign(this,s),!n)throw TypeError(`Key 'language' is required.`);this.plugins=t,this.language=n;let{pluginName:c,objectName:l}=g(n);if(this.#e=n,!t||!t[c]||!t[c].languages||!t[c].languages[l])throw TypeError(`Key "language": Could not find "${l}" in plugin "${c}".`);this.language=t[c].languages[l],this.language.defaultLanguageOptions??i?this.languageOptions=r.languageOptions.merge(this.language.defaultLanguageOptions,i):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(e){throw TypeError(`Key "languageOptions": ${e.message}`,{cause:e})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),o)if(this.processor=o,typeof o==`string`){let{pluginName:e,objectName:n}=g(o);if(this.#t=o,!t||!t[e]||!t[e].processors||!t[e].processors[n])throw TypeError(`Key "processor": Could not find "${n}" in plugin "${e}".`);this.processor=t[e].processors[n]}else if(typeof o==`object`)this.#t=_(o),this.processor=o;else throw TypeError(`Key 'processor' must be a string or an object.`);this.rules&&(this.#n(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw Error(`Could not serialize processor object (missing 'meta' object).`);if(!this.#e)throw Error(`Could not serialize language object (missing 'meta' object).`);return{...this,plugins:Object.entries(this.plugins).map(([e,t])=>{let n=_(t);return n?`${e}:${n}`:e}),language:this.#e,languageOptions:y(this.languageOptions),processor:this.#t}}getRuleDefinition(e){return m(e,this)}#n(){for(let[e,t]of Object.entries(this.rules)){let r=Array.isArray(t)?t:[t];r[0]=l.get(r[0]);let i=m(e,this),a=r.slice(1),o=n(i?.meta?.defaultOptions,a);o.length&&(r=[r[0],...o]),this.rules[e]=r}}validateRulesConfig(e){if(!e)throw TypeError(`Config is required for validation.`);for(let[t,n]of Object.entries(e)){if(t===`__proto__`||n[0]===0)continue;let e=m(t,this);e||d(p(t),this);let r=b(e,t);if(r&&(r(n.slice(1)),r.errors))throw Error(`Key "rules": Key "${t}":\n${r.errors.map(e=>{if(e.keyword===`additionalProperties`&&e.schema===!1&&typeof e.parentSchema?.properties==`object`&&typeof e.params?.additionalProperty==`string`){let t=Object.keys(e.parentSchema.properties).map(e=>`"${e}"`);return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n\t\tUnexpected property "${e.params.additionalProperty}". Expected properties: ${t.join(`, `)}.\n`}return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`}).join(``)}`)}}static getRuleOptionsSchema(e){return h(e)}static getRuleNumericSeverity(e){let t=Array.isArray(e)?e[0]:e;return l.has(t)?l.get(t):typeof t==`string`?l.get(t.toLowerCase())??0:0}}}})),Qs=d(((e,t)=>{let n=G(),{Config:r}=Zs();function i(e,t){return e.line-t.line||e.column-t.column}function a(e){let t=new Map;for(let n of e){let{unprocessedDirective:{parentDirective:e}}=n;t.has(e)?t.get(e).push(n):t.set(e,[n])}return[...t.values()]}function o(e,t,r){let i=t.value.trim(),a=r.text.indexOf(i,r.getRange(t.node)[0]);return e.map(e=>{let{ruleId:t}=e,r=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${n(t)}\k<quote>(?:\s*,\s*|$)`,`u`).exec(i),o=r[0],s=a+r.index,c=s+o.length,l=o.indexOf(`,`),u=o.lastIndexOf(`,`),d,f;return l===u?(d=s,f=c):(d=s+l,f=s+u),{description:`'${t}'`,fix:{range:[d,f],text:``},unprocessedDirective:e.unprocessedDirective}})}function s(e,t,n){let r=n.getRange(t),i=e.filter(e=>e.ruleId).map(e=>`'${e.ruleId}'`);return{description:i.length<=2?i.join(` or `):`${i.slice(0,i.length-1).join(`, `)}, or ${i.at(-1)}`,fix:{range:r,text:` `},unprocessedDirective:e[0].unprocessedDirective}}function c(e,t){return a(e).flatMap(e=>{let{parentDirective:n}=e[0].unprocessedDirective,r=new Set(n.ruleIds);for(let t of e)r.delete(t.ruleId);return r.size?o(e,n,t):[s(e,n.node,t)]})}function l(e){let t=new Map,n=new Set;for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===`disable`){if(t.size===0)continue;if(i.ruleId===null){for(let e of t.values())n.add(e);t.clear()}else{let e=t.get(i.ruleId);if(e)n.add(e);else{let e=t.get(null);e&&n.add(e)}}}else i.type===`enable`&&(i.ruleId===null?(t.clear(),t.set(null,i)):t.set(i.ruleId,i))}return n}function u(e){let t=[],n=new Set,{sourceCode:r}=e;for(let r of e.problems){let a=[],o=0;for(;o<e.directives.length&&i(e.directives[o],r)<=0;){let t=e.directives[o++];if(t.ruleId===null||t.ruleId===r.ruleId)switch(t.type){case`disable`:a.push(t);break;case`enable`:a=[];break}}if(a.length>0){let e=a.map(e=>({kind:`directive`,justification:e.unprocessedDirective.justification}));r.suppressions?r.suppressions=r.suppressions.concat(e):(r.suppressions=e,n.add(a.at(-1)))}t.push(r)}let a=e.directives.filter(t=>t.type===`disable`&&!n.has(t)&&!e.rulesToIgnore.has(t.ruleId)),o=new Set(e.directives.filter(t=>t.unprocessedDirective.type===`enable`&&!e.rulesToIgnore.has(t.ruleId)));if(o.size>0)for(let t of l(e.directives))o.delete(t);let s=c(a,r).concat(c(o,r)),u=e.language.columnStart===1?0:1,d=e.language.lineStart===1?0:1;return{problems:t,unusedDirectives:s.map(({description:t,fix:n,unprocessedDirective:i})=>{let{parentDirective:a,type:o,line:s,column:c}=i,l;l=o===`enable`?t?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${t}).`:`Unused eslint-enable directive (no matching eslint-disable directives were found).`:t?`Unused eslint-disable directive (no problems were reported from ${t}).`:`Unused eslint-disable directive (no problems were reported).`;let f=r.getLoc(a.node);return{ruleId:null,message:l,line:o===`disable-next-line`?f.start.line+d:s,column:o===`disable-next-line`?f.start.column+u:c,severity:e.reportUnusedDisableDirectives===`warn`?1:2,nodeType:null,...e.disableFixes?{}:{fix:n}}})}}t.exports=({language:e,sourceCode:t,directives:n,disableFixes:a,problems:o,configuredRules:s,ruleFilter:c,reportUnusedDisableDirectives:l=`off`})=>{let d=n.filter(e=>e.type===`disable`||e.type===`enable`).map(e=>Object.assign({},e,{unprocessedDirective:e})).sort(i),f=n.flatMap(e=>{switch(e.type){case`disable`:case`enable`:return[];case`disable-line`:return[{type:`disable`,line:e.line,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+1,column:0,ruleId:e.ruleId,unprocessedDirective:e}];case`disable-next-line`:return[{type:`disable`,line:e.line+1,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+2,column:0,ruleId:e.ruleId,unprocessedDirective:e}];default:throw TypeError(`Unrecognized directive type '${e.type}'`)}}).sort(i),p=s&&c?new Set(Object.keys(s).filter(e=>{let t=r.getRuleNumericSeverity(s[e]);return t===0?!1:!c({severity:t,ruleId:e})})):new Set;p.size>0&&p.add(null);let m=u({language:e,sourceCode:t,problems:o,directives:d,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p}),h=u({language:e,sourceCode:t,problems:m.problems,directives:f,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p});return l===`off`?h.problems:h.problems.concat(m.unusedDirectives).concat(h.unusedDirectives).sort(i)}})),$s=d(((e,t)=>{let n=Ua();t.exports=class{constructor(){this._rules=Object.create(null)}define(e,t){this._rules[e]=t}get(e){return typeof this._rules[e]==`string`&&this.define(e,h(this._rules[e])),this._rules[e]?this._rules[e]:n.has(e)?n.get(e):null}*[Symbol.iterator](){yield*n;for(let e of Object.keys(this._rules))yield[e,this.get(e)]}}})),ec=d(((e,t)=>{let n=S()(`eslint:source-code-fixer`);function r(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function i(e,t){return e.line-t.line||e.column-t.column}function a(){Object.freeze(this)}a.applyFixes=function(e,t,a){if(n(`Applying fixes`),a===!1)return n(`shouldFix parameter was false, not attempting fixes`),{fixed:!1,messages:t,output:e};let o=[],s=[],c=e.startsWith(``)?``:``,l=c?e.slice(1):e,u=-1/0,d=c;function f(e){let t=e.fix,n=t.range[0],r=t.range[1];return u>=n||n>r?(o.push(e),!1):((n<0&&r>=0||n===0&&t.text.startsWith(``))&&(d=``),d+=l.slice(Math.max(0,u),Math.max(0,n)),d+=t.text,u=r,!0)}if(t.forEach(e=>{Object.hasOwn(e,`fix`)&&e.fix?s.push(e):o.push(e)}),s.length){n(`Found fixes to apply`);let e=!1;for(let t of s.sort(r))typeof a!=`function`||a(t)?(f(t),e=!0):o.push(t);return d+=l.slice(Math.max(0,u)),{fixed:e,messages:o.sort(i),output:d}}return n(`No fixes to apply`),{fixed:!1,messages:t,output:c+l}},t.exports=a})),tc=d(((e,t)=>{let n=Object.freeze([]);t.exports={SourceCodeVisitor:class{#e=new Map;add(e,t){this.#e.has(e)?this.#e.get(e).push(t):this.#e.set(e,[t])}get(e){return this.#e.has(e)?this.#e.get(e):n}forEachName(e){this.#e.forEach((t,n)=>{e(n)})}callSync(e,...t){this.#e.has(e)&&this.#e.get(e).forEach(e=>e(...t))}}}})),nc=d((e=>{let{ConfigArray:t,ConfigArraySymbol:n}=qs(),{flatConfigSchema:r}=Us(),{defaultConfig:i}=No(),{Config:a}=Zs(),o=new Set([`name`,`basePath`]);function s(e,t,n){let r=`user-defined`,i=e.index;return e.index<n?r=`base`:e.index<t+n?(r=`original`,i=e.index-n):i=e.index-t-n,TypeError(`${e.message.slice(0,-1)} at ${r} index ${i}.`,{cause:e})}let c=Symbol(`originalBaseConfig`),l=Symbol(`originalLength`),u=Symbol(`baseLength`);e.FlatConfigArray=class extends t{constructor(e,{basePath:t,shouldIgnore:n=!0,baseConfig:a=i}={}){super(e,{basePath:t,schema:r}),this[l]=this.length,a[Symbol.iterator]?this.unshift(...a):this.unshift(a),this[u]=this.length-this[l],this[c]=a,Object.defineProperty(this,c,{writable:!1}),this.shouldIgnore=n,Object.defineProperty(this,`shouldIgnore`,{writable:!1})}normalize(e){return super.normalize(e).catch(e=>{throw e.name===`ConfigError`?s(e,this[l],this[u]):e})}normalizeSync(e){try{return super.normalizeSync(e)}catch(e){throw e.name===`ConfigError`?s(e,this[l],this[u]):e}}[n.preprocessConfig](e){if(!this.shouldIgnore&&!this[c].includes(e)&&e.ignores&&Object.keys(e).filter(e=>!o.has(e)).length===1){let{ignores:t,...n}=e;return n}return e}[n.finalizeConfig](e){return new a(e)}}})),rc=d(((e,t)=>{let n=new Map([[`test_only`,`Used only for testing.`],[`test_only_2`,`Used only for testing.`],[`v10_config_lookup_from_file`,"Look up `eslint.config.js` from the file being linted."],[`unstable_native_nodejs_ts_config`,`Use native Node.js to load TypeScript configuration.`]]),r=new Map([[`test_only_replaced`,{description:`Used only for testing flags that have been replaced by other flags.`,replacedBy:`test_only`}],[`test_only_enabled_by_default`,{description:`Used only for testing flags whose features have been enabled by default.`,replacedBy:null}],[`test_only_abandoned`,{description:`Used only for testing flags whose features have been abandoned.`}],[`unstable_ts_config`,{description:`Enable TypeScript configuration files.`,replacedBy:null}],[`unstable_config_lookup_from_file`,{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:`v10_config_lookup_from_file`}]]);function i({replacedBy:e}){return e===void 0?`This feature has been abandoned.`:typeof e==`string`?`This flag has been renamed '${e}' to reflect its stabilization. Please use '${e}' instead.`:`This feature is now enabled by default.`}t.exports={activeFlags:n,inactiveFlags:r,getInactivityReasonMessage:i}})),ic=d(((e,t)=>{function n(e){return typeof e==`string`?e.charCodeAt(0)===65279:e[0]===239&&e[1]===187&&e[2]===191}function r(e){return n(e)?typeof e==`string`?e.slice(1):e.slice(3):e}t.exports={VFile:class{path;physicalPath;body;rawBody;bom;constructor(e,t,{physicalPath:i}={}){this.path=e,this.physicalPath=i??e,this.bom=n(t),this.body=r(t),this.rawBody=t}}}})),ac=d(((e,t)=>{t.exports={ParserService:class{parseSync(e,t){let{language:n,languageOptions:r}=t,i=n.parse(e,{languageOptions:r});if(typeof i.then==`function`)throw Error(`Unsupported: Language parser returned a promise.`);return i.ok?{ok:!0,sourceCode:n.createSourceCode(e,i,{languageOptions:r})}:{ok:!1,errors:i.errors.map(e=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${e.message}`,line:e.line,column:e.column}))}}}}})),oc=d((e=>{e.FileContext=class{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:e,filename:t,physicalFilename:n,sourceCode:r,parserOptions:i,parserPath:a,languageOptions:o,settings:s}){this.cwd=e,this.filename=t,this.physicalFilename=n,this.sourceCode=r,this.parserOptions=i,this.parserPath=a,this.languageOptions=o,this.settings=s,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}}})),sc=d(((e,t)=>{let n=h(`node:path`),{VFile:r}=ic();t.exports={ProcessorService:class{preprocessSync(e,t){let{processor:i}=t,a;try{a=i.preprocess(e.rawBody,e.path)}catch(e){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${e.message.replace(/^line \d+:/iu,``).trim()}`,line:e.lineNumber,column:e.column,nodeType:null}]}}if(typeof a.then==`function`)throw Error(`Unsupported: Preprocessor returned a promise.`);return{ok:!0,files:a.map((t,i)=>typeof t==`string`?t:new r(n.join(e.path,`${i}_${t.filename}`),t.text,{physicalPath:e.physicalPath}))}}postprocessSync(e,t,n){let{processor:r}=n;return r.postprocess(t,e.path)}}}})),cc=d(((e,t)=>{function n(e,t){if(e===t)return!1;if(typeof e!=typeof t||Array.isArray(e)!==Array.isArray(t))return!0;if(Array.isArray(e))return e.length!==t.length||e.some((e,r)=>n(e,t[r]));if(typeof e==`object`){if(e===null||t===null)return!0;let r=Object.keys(e),i=Object.keys(t);return r.length!==i.length||r.some(r=>!Object.hasOwn(t,r)||n(e[r],t[r]))}return!0}t.exports={containsDifferentProperty:n}})),lc=d(((e,t)=>{t.exports={WarningService:class{constructor({emitWarning:e=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=e}emitCircularFixesWarning(e){this.emitWarning(`Circular fixes detected while fixing ${e}. It is likely that you have conflicting rules in your configuration.`,`ESLintCircularFixesWarning`)}emitEmptyConfigWarning(e){this.emitWarning(`Running ESLint with an empty config (from ${e}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,`ESLintEmptyConfigWarning`)}emitESLintIgnoreWarning(){this.emitWarning(`The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files`,`ESLintIgnoreWarning`)}emitESLintRCWarning(){this.emitWarning(`You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.`,`ESLintRCWarning`)}emitInactiveFlagWarning(e,t){this.emitWarning(t,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,`ESLintPoorConcurrencyWarning`)}emitESLintEnvWarning(e,t){this.emitWarning(`/* eslint-env */ comments are no longer recognized when linting with flat config and will be reported as errors as of v10.0.0. Replace them with /* global */ comments or define globals in your config file. See https://eslint.org/docs/latest/use/configure/migration-guide#eslint-env-configuration-comments for details. Found in ${e} at line ${t}.`,`ESLintEnvWarning`)}}}})),uc=d(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).esquery=r()})(e,(function(){function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||i(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
261
+ >>> no match, partial?`,e,d,t,f),d===s))}var m;if(typeof l==`string`?(m=u===l,this.debug(`string match`,l,u,m)):(m=u.match(l),this.debug(`pattern match`,l,u,m)),!m)return!1}if(a===s&&o===c)return!0;if(a===s)return n;if(o===c)return a===s-1&&e[a]===``;throw Error(`wtf?`)};function E(e){return e.replace(/\\(.)/g,`$1`)}function D(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`)}})),rs=d(((e,t)=>{var n=Xo(),r=h(`path`).posix.dirname,i=h(`os`).platform()===`win32`,a=`/`,o=/\\/g,s=/\\([!*?|[\](){}])/g;t.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&i&&e.indexOf(a)<0&&(e=e.replace(o,a)),c(e)&&(e+=a),e+=`a`;do e=r(e);while(l(e));return e.replace(s,`$1`)};function c(e){var t=e.slice(-1),n;switch(t){case`}`:n=`{`;break;case`]`:n=`[`;break;default:return!1}var r=e.indexOf(n);return r<0?!1:e.slice(r+1,-1).includes(a)}function l(e){return/\([^()]+$/.test(e)||e[0]===`{`||e[0]===`[`||/[^\\][{[]/.test(e)?!0:n(e)}})),is=d(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Undefined]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,j=`[object Int32Array]`,M=`[object Uint8Array]`,N=`[object Uint8ClampedArray]`,P=`[object Uint16Array]`,F=`[object Uint32Array]`,I=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,z={};z[D]=z[O]=z[k]=z[A]=z[j]=z[M]=z[N]=z[P]=z[F]=!0,z[s]=z[c]=z[T]=z[u]=z[E]=z[d]=z[f]=z[p]=z[h]=z[g]=z[v]=z[b]=z[x]=z[S]=z[w]=!1;var B=typeof global==`object`&&global&&global.Object===Object&&global,V=typeof self==`object`&&self&&self.Object===Object&&self,H=B||V||Function(`return this`)(),U=typeof e==`object`&&e&&!e.nodeType&&e,ee=U&&typeof t==`object`&&t&&!t.nodeType&&t,W=ee&&ee.exports===U,te=W&&B.process,ne=function(){try{return ee&&ee.require&&ee.require(`util`).types||te&&te.binding&&te.binding(`util`)}catch{}}(),re=ne&&ne.isTypedArray;function ie(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function oe(e){return function(t){return e(t)}}function G(e,t){return e?.[t]}function se(e,t){return function(n){return e(t(n))}}var ce=Array.prototype,le=Function.prototype,K=Object.prototype,ue=H[`__core-js_shared__`],de=le.toString,fe=K.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=K.toString,he=de.call(Object),ge=RegExp(`^`+de.call(fe).replace(I,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),q=W?H.Buffer:void 0,_e=H.Symbol,J=H.Uint8Array,ve=q?q.allocUnsafe:void 0,Y=se(Object.getPrototypeOf,Object),ye=Object.create,be=K.propertyIsEnumerable,xe=ce.splice,Se=_e?_e.toStringTag:void 0,X=function(){try{var e=yt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ce=q?q.isBuffer:void 0,Z=Math.max,we=Date.now,Te=yt(H,`Map`),Ee=yt(Object,`create`),De=function(){function e(){}return function(t){if(!Ht(t))return{};if(ye)return ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(){this.__data__=Ee?Ee(null):{},this.size=0}function Ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function je(e){var t=this.__data__;if(Ee){var n=t[e];return n===r?void 0:n}return fe.call(t,e)?t[e]:void 0}function Me(e){var t=this.__data__;return Ee?t[e]!==void 0:fe.call(t,e)}function Ne(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&t===void 0?r:t,this}Oe.prototype.clear=ke,Oe.prototype.delete=Ae,Oe.prototype.get=je,Oe.prototype.has=Me,Oe.prototype.set=Ne;function Pe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fe(){this.__data__=[],this.size=0}function Ie(e){var t=this.__data__,n=et(t,e);return n<0?!1:(n==t.length-1?t.pop():xe.call(t,n,1),--this.size,!0)}function Le(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]}function Q(e){return et(this.__data__,e)>-1}function Re(e,t){var n=this.__data__,r=et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Pe.prototype.clear=Fe,Pe.prototype.delete=Ie,Pe.prototype.get=Le,Pe.prototype.has=Q,Pe.prototype.set=Re;function ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(){this.size=0,this.__data__={hash:new Oe,map:new(Te||Pe),string:new Oe}}function Ve(e){var t=vt(this,e).delete(e);return this.size-=t?1:0,t}function He(e){return vt(this,e).get(e)}function Ue(e){return vt(this,e).has(e)}function We(e,t){var n=vt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}ze.prototype.clear=Be,ze.prototype.delete=Ve,ze.prototype.get=He,ze.prototype.has=Ue,ze.prototype.set=We;function Ge(e){this.size=(this.__data__=new Pe(e)).size}function Ke(){this.__data__=new Pe,this.size=0}function qe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Je(e){return this.__data__.get(e)}function Ye(e){return this.__data__.has(e)}function Xe(e,t){var r=this.__data__;if(r instanceof Pe){var i=r.__data__;if(!Te||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ze(i)}return r.set(e,t),this.size=r.size,this}Ge.prototype.clear=Ke,Ge.prototype.delete=qe,Ge.prototype.get=Je,Ge.prototype.has=Ye,Ge.prototype.set=Xe;function Ze(e,t){var n=It(e),r=!n&&Ft(e),i=!n&&!r&&zt(e),a=!n&&!r&&!i&&Gt(e),o=n||r||i||a,s=o?ae(e.length,String):[],c=s.length;for(var l in e)(t||fe.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||St(l,c)))&&s.push(l);return s}function Qe(e,t,n){(n!==void 0&&!Pt(e[t],n)||n===void 0&&!(t in e))&&tt(e,t,n)}function $e(e,t,n){var r=e[t];(!(fe.call(e,t)&&Pt(r,n))||n===void 0&&!(t in e))&&tt(e,t,n)}function et(e,t){for(var n=e.length;n--;)if(Pt(e[n][0],t))return n;return-1}function tt(e,t,n){t==`__proto__`&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nt=_t();function rt(e){return e==null?e===void 0?C:_:Se&&Se in Object(e)?bt(e):Ot(e)}function it(e){return Ut(e)&&rt(e)==s}function $(e){return!Ht(e)||Tt(e)?!1:(Bt(e)?ge:L).test(Nt(e))}function at(e){return Ut(e)&&Vt(e.length)&&!!z[rt(e)]}function ot(e){if(!Ht(e))return Dt(e);var t=Et(e),n=[];for(var r in e)r==`constructor`&&(t||!fe.call(e,r))||n.push(r);return n}function st(e,t,n,r,i){e!==t&&nt(t,function(a,o){if(i||=new Ge,Ht(a))ct(e,t,o,n,st,r,i);else{var s=r?r(At(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Qe(e,o,s)}},qt)}function ct(e,t,n,r,i,a,o){var s=At(e,n),c=At(t,n),l=o.get(c);if(l){Qe(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=It(c),p=!f&&zt(c),m=!f&&!p&&Gt(c);u=c,f||p||m?It(s)?u=s:Rt(s)?u=mt(s):p?(d=!1,u=dt(c,!0)):m?(d=!1,u=pt(c,!0)):u=[]:Wt(c)||Ft(c)?(u=s,Ft(s)?u=Kt(s):(!Ht(s)||Bt(s))&&(u=xt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Qe(e,n,u)}function lt(e,t){return jt(kt(e,t,Xt),e+``)}var ut=X?function(e,t){return X(e,`toString`,{configurable:!0,enumerable:!1,value:Yt(t),writable:!0})}:Xt;function dt(e,t){if(t)return e.slice();var n=e.length,r=ve?ve(n):new e.constructor(n);return e.copy(r),r}function ft(e){var t=new e.constructor(e.byteLength);return new J(t).set(new J(e)),t}function pt(e,t){var n=t?ft(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mt(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function ht(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?tt(n,s,c):$e(n,s,c)}return n}function gt(e){return lt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Ct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function _t(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function vt(e,t){var n=e.__data__;return wt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function yt(e,t){var n=G(e,t);return $(n)?n:void 0}function bt(e){var t=fe.call(e,Se),n=e[Se];try{e[Se]=void 0;var r=!0}catch{}var i=me.call(e);return r&&(t?e[Se]=n:delete e[Se]),i}function xt(e){return typeof e.constructor==`function`&&!Et(e)?De(Y(e)):{}}function St(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&R.test(e))&&e>-1&&e%1==0&&e<t}function Ct(e,t,n){if(!Ht(n))return!1;var r=typeof t;return(r==`number`?Lt(n)&&St(t,n.length):r==`string`&&t in n)?Pt(n[t],e):!1}function wt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Tt(e){return!!pe&&pe in e}function Et(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||K)}function Dt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Ot(e){return me.call(e)}function kt(e,t,n){return t=Z(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Z(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ie(e,this,s)}}function At(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var jt=Mt(ut);function Mt(e){var t=0,n=0;return function(){var r=we(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Nt(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}function Pt(e,t){return e===t||e!==e&&t!==t}var Ft=it(function(){return arguments}())?it:function(e){return Ut(e)&&fe.call(e,`callee`)&&!be.call(e,`callee`)},It=Array.isArray;function Lt(e){return e!=null&&Vt(e.length)&&!Bt(e)}function Rt(e){return Ut(e)&&Lt(e)}var zt=Ce||Zt;function Bt(e){if(!Ht(e))return!1;var t=rt(e);return t==p||t==m||t==l||t==y}function Vt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Ut(e){return typeof e==`object`&&!!e}function Wt(e){if(!Ut(e)||rt(e)!=v)return!1;var t=Y(e);if(t===null)return!0;var n=fe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&de.call(n)==he}var Gt=re?oe(re):at;function Kt(e){return ht(e,qt(e))}function qt(e){return Lt(e)?Ze(e,!0):ot(e)}var Jt=gt(function(e,t,n){st(e,t,n)});function Yt(e){return function(){return e}}function Xt(e){return e}function Zt(){return!1}t.exports=Jt})),as=d(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.URI=n.URI||{})})(e,(function(e){function t(){var e=[...arguments];if(e.length>1){e[0]=e[0].slice(0,-1);for(var t=e.length-1,n=1;n<t;++n)e[n]=e[n].slice(1,-1);return e[t]=e[t].slice(1),e.join(``)}else return e[0]}function n(e){return`(?:`+e+`)`}function r(e){return e===void 0?`undefined`:e===null?`null`:Object.prototype.toString.call(e).split(` `).pop().split(`]`).shift().toLowerCase()}function i(e){return e.toUpperCase()}function a(e){return e==null?[]:e instanceof Array?e:typeof e.length!=`number`||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e)}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r=`[A-Za-z]`,i=`[0-9]`,a=t(i,`[A-Fa-f]`),o=n(n(`%[EFef]`+a+`%`+a+a+`%`+a+a)+`|`+n(`%[89A-Fa-f]`+a+`%`+a+a)+`|`+n(`%`+a+a)),s=`[\\:\\/\\?\\#\\[\\]\\@]`,c=`[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]`,l=t(s,c),u=e?`[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`:`[]`,d=e?`[\\uE000-\\uF8FF]`:`[]`,f=t(r,i,`[\\-\\.\\_\\~]`,u),p=n(r+t(r,i,`[\\+\\-\\.]`)+`*`),m=n(n(o+`|`+t(f,c,`[\\:]`))+`*`);n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`[1-9]`+i)+`|`+i);var h=n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`0?[1-9]`+i)+`|0?0?`+i),g=n(h+`\\.`+h+`\\.`+h+`\\.`+h),_=n(a+`{1,4}`),v=n(n(_+`\\:`+_)+`|`+g),y=n([n(n(_+`\\:`)+`{6}`+v),n(`\\:\\:`+n(_+`\\:`)+`{5}`+v),n(n(_)+`?\\:\\:`+n(_+`\\:`)+`{4}`+v),n(n(n(_+`\\:`)+`{0,1}`+_)+`?\\:\\:`+n(_+`\\:`)+`{3}`+v),n(n(n(_+`\\:`)+`{0,2}`+_)+`?\\:\\:`+n(_+`\\:`)+`{2}`+v),n(n(n(_+`\\:`)+`{0,3}`+_)+`?\\:\\:`+_+`\\:`+v),n(n(n(_+`\\:`)+`{0,4}`+_)+`?\\:\\:`+v),n(n(n(_+`\\:`)+`{0,5}`+_)+`?\\:\\:`+_),n(n(n(_+`\\:`)+`{0,6}`+_)+`?\\:\\:`)].join(`|`)),b=n(n(f+`|`+o)+`+`);n(y+`\\%25`+b);var x=n(y+n(`\\%25|\\%(?!`+a+`{2})`)+b),S=n(`[vV]`+a+`+\\.`+t(f,c,`[\\:]`)+`+`),C=n(`\\[`+n(x+`|`+y+`|`+S)+`\\]`),w=n(n(o+`|`+t(f,c))+`*`),T=n(C+`|`+g+`(?!`+w+`)|`+w),E=n(i+`*`),D=n(n(m+`@`)+`?`+T+n(`\\:`+E)+`?`),O=n(o+`|`+t(f,c,`[\\:\\@]`)),k=n(O+`*`),A=n(O+`+`),j=n(n(o+`|`+t(f,c,`[\\@]`))+`+`),M=n(n(`\\/`+k)+`*`),N=n(`\\/`+n(A+M)+`?`),P=n(j+M),F=n(A+M),I=`(?!`+O+`)`;n(M+`|`+N+`|`+P+`|`+F+`|`+I);var L=n(n(O+`|`+t(`[\\/\\?]`,d))+`*`),R=n(n(O+`|[\\/\\?]`)+`*`),z=n(n(`\\/\\/`+D+M)+`|`+N+`|`+F+`|`+I),B=n(p+`\\:`+z+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`),V=n(n(n(`\\/\\/`+D+M)+`|`+N+`|`+P+`|`+I)+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`);return n(B+`|`+V),n(p+`\\:`+z+n(`\\?`+L)+`?`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+P+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`),``+n(`\\#(`+R+`)`),``+n(`(`+m+`)@`)+T+n(`\\:(`+E+`)`),{NOT_SCHEME:new RegExp(t(`[^]`,r,i,`[\\+\\-\\.]`),`g`),NOT_USERINFO:new RegExp(t(`[^\\%\\:]`,f,c),`g`),NOT_HOST:new RegExp(t(`[^\\%\\[\\]\\:]`,f,c),`g`),NOT_PATH:new RegExp(t(`[^\\%\\/\\:\\@]`,f,c),`g`),NOT_PATH_NOSCHEME:new RegExp(t(`[^\\%\\/\\@]`,f,c),`g`),NOT_QUERY:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`,d),`g`),NOT_FRAGMENT:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`),`g`),ESCAPE:new RegExp(t(`[^]`,f,c),`g`),UNRESERVED:new RegExp(f,`g`),OTHER_CHARS:new RegExp(t(`[^\\%]`,f,l),`g`),PCT_ENCODED:new RegExp(o,`g`),IPV4ADDRESS:RegExp(`^(`+g+`)$`),IPV6ADDRESS:RegExp(`^\\[?(`+y+`)`+n(n(`\\%25|\\%(?!`+a+`{2})`)+`(`+b+`)`)+`?\\]?$`)}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),d=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)},f=2147483647,p=36,m=1,h=26,g=38,_=700,v=72,y=128,b=`-`,x=/^xn--/,S=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},T=p-m,E=Math.floor,D=String.fromCharCode;function O(e){throw RangeError(w[e])}function k(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function A(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(C,`.`);var i=k(e.split(`.`),t).join(`.`);return r+i}function j(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var M=function(e){return String.fromCodePoint.apply(String,d(e))},N=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},P=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},F=function(e,t,n){var r=0;for(e=n?E(e/_):e>>1,e+=E(e/t);e>T*h>>1;r+=p)e=E(e/T);return E(r+(T+1)*e/(e+g))},I=function(e){var t=[],n=e.length,r=0,i=y,a=v,o=e.lastIndexOf(b);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&O(`not-basic`),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,u=1,d=p;;d+=p){c>=n&&O(`invalid-input`);var g=N(e.charCodeAt(c++));(g>=p||g>E((f-r)/u))&&O(`overflow`),r+=g*u;var _=d<=a?m:d>=a+h?h:d-a;if(g<_)break;var x=p-_;u>E(f/x)&&O(`overflow`),u*=x}var S=t.length+1;a=F(r-l,S,l==0),E(r/S)>f-i&&O(`overflow`),i+=E(r/S),r%=S,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[];e=j(e);var n=e.length,r=y,i=0,a=v,o=!0,s=!1,c=void 0;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=!0){var d=u.value;d<128&&t.push(D(d))}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,_=g;for(g&&t.push(b);_<n;){var x=f,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),k;!(S=(k=T.next()).done);S=!0){var A=k.value;A>=r&&A<x&&(x=A)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}var M=_+1;x-r>E((f-i)/M)&&O(`overflow`),i+=(x-r)*M,r=x;var N=!0,I=!1,L=void 0;try{for(var R=e[Symbol.iterator](),z;!(N=(z=R.next()).done);N=!0){var B=z.value;if(B<r&&++i>f&&O(`overflow`),B==r){for(var V=i,H=p;;H+=p){var U=H<=a?m:H>=a+h?h:H-a;if(V<U)break;var ee=V-U,W=p-U;t.push(D(P(U+ee%W,0))),V=E(ee/W)}t.push(D(P(V,0))),a=F(i,M,_==g),i=0,++_}}}catch(e){I=!0,L=e}finally{try{!N&&R.return&&R.return()}finally{if(I)throw L}}++i,++r}return t.join(``)},R={version:`2.1.0`,ucs2:{decode:j,encode:M},decode:I,encode:L,toASCII:function(e){return A(e,function(e){return S.test(e)?`xn--`+L(e):e})},toUnicode:function(e){return A(e,function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e})}},z={};function B(e){var t=e.charCodeAt(0),n=void 0;return n=t<16?`%0`+t.toString(16).toUpperCase():t<128?`%`+t.toString(16).toUpperCase():t<2048?`%`+(t>>6|192).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase():`%`+(t>>12|224).toString(16).toUpperCase()+`%`+(t>>6&63|128).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase(),n}function V(e){for(var t=``,n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var a=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((i&31)<<6|a&63)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function H(e,t){function n(e){var n=V(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,``),e.userinfo!==void 0&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,i)),e.host!==void 0&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,i)),e.path!==void 0&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,i)),e.query!==void 0&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,i)),e.fragment!==void 0&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,i)),e}function U(e){return e.replace(/^0*(.*)/,`$1`)||`0`}function ee(e,t){var n=u(e.match(t.IPV4ADDRESS)||[],2)[1];return n?n.split(`.`).map(U).join(`.`):e}function W(e,t){var n=u(e.match(t.IPV6ADDRESS)||[],3),r=n[1],i=n[2];if(r){for(var a=u(r.toLowerCase().split(`::`).reverse(),2),o=a[0],s=a[1],c=s?s.split(`:`).map(U):[],l=o.split(`:`).map(U),d=t.IPV4ADDRESS.test(l[l.length-1]),f=d?7:8,p=l.length-f,m=Array(f),h=0;h<f;++h)m[h]=c[h]||l[p+h]||``;d&&(m[f-1]=ee(m[f-1],t));var g=m.reduce(function(e,t,n){if(!t||t===`0`){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],_=void 0;if(g&&g.length>1){var v=m.slice(0,g.index),y=m.slice(g.index+g.length);_=v.join(`:`)+`::`+y.join(`:`)}else _=m.join(`:`);return i&&(_+=`%`+i),_}else return e}var te=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ne=``.match(/(){0}/)[1]===void 0;function re(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n={},r=t.iri===!1?c:l;t.reference===`suffix`&&(e=(t.scheme?t.scheme+`:`:``)+`//`+e);var i=e.match(te);if(i){ne?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=e.indexOf(`@`)===-1?void 0:i[3],n.host=e.indexOf(`//`)===-1?void 0:i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=e.indexOf(`?`)===-1?void 0:i[7],n.fragment=e.indexOf(`#`)===-1?void 0:i[8],isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&=W(ee(n.host,r),r),n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference=`same-document`:n.scheme===void 0?n.reference=`relative`:n.fragment===void 0?n.reference=`absolute`:n.reference=`uri`,t.reference&&t.reference!==`suffix`&&t.reference!==n.reference&&(n.error=n.error||`URI is not a `+t.reference+` reference.`);var a=z[(t.scheme||n.scheme||``).toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)){if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=R.toASCII(n.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(e){n.error=n.error||`Host's domain name can not be converted to ASCII via punycode: `+e}H(n,c)}else H(n,r);a&&a.parse&&a.parse(n,t)}else n.error=n.error||`URI can not be parsed.`;return n}function ie(e,t){var n=t.iri===!1?c:l,r=[];return e.userinfo!==void 0&&(r.push(e.userinfo),r.push(`@`)),e.host!==void 0&&r.push(W(ee(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return`[`+t+(n?`%25`+n:``)+`]`})),(typeof e.port==`number`||typeof e.port==`string`)&&(r.push(`:`),r.push(String(e.port))),r.length?r.join(``):void 0}var ae=/^\.\.?\//,oe=/^\/\.(\/|$)/,G=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function ce(e){for(var t=[];e.length;)if(e.match(ae))e=e.replace(ae,``);else if(e.match(oe))e=e.replace(oe,`/`);else if(e.match(G))e=e.replace(G,`/`),t.pop();else if(e===`.`||e===`..`)e=``;else{var n=e.match(se);if(n){var r=n[0];e=e.slice(r.length),t.push(r)}else throw Error(`Unexpected dot segment condition`)}return t.join(``)}function le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.iri?l:c,r=[],i=z[(t.scheme||e.scheme||``).toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host&&!n.IPV6ADDRESS.test(e.host)&&(t.domainHost||i&&i.domainHost))try{e.host=t.iri?R.toUnicode(e.host):R.toASCII(e.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(n){e.error=e.error||`Host's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+n}H(e,n),t.reference!==`suffix`&&e.scheme&&(r.push(e.scheme),r.push(`:`));var a=ie(e,t);if(a!==void 0&&(t.reference!==`suffix`&&r.push(`//`),r.push(a),e.path&&e.path.charAt(0)!==`/`&&r.push(`/`)),e.path!==void 0){var o=e.path;!t.absolutePath&&(!i||!i.absolutePath)&&(o=ce(o)),a===void 0&&(o=o.replace(/^\/\//,`/%2F`)),r.push(o)}return e.query!==void 0&&(r.push(`?`),r.push(e.query)),e.fragment!==void 0&&(r.push(`#`),r.push(e.fragment)),r.join(``)}function K(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments[3],i={};return r||(e=re(le(e,n),n),t=re(le(t,n),n)),n||={},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.path?(t.path.charAt(0)===`/`?i.path=ce(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path=`/`+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:i.path=t.path,i.path=ce(i.path)),i.query=t.query):(i.path=e.path,t.query===void 0?i.query=e.query:i.query=t.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function ue(e,t,n){var r=o({scheme:`null`},n);return le(K(re(e,r),re(t,r),r,!0),r)}function de(e,t){return typeof e==`string`?e=le(re(e,t),t):r(e)===`object`&&(e=re(le(e,t),t)),e}function fe(e,t,n){return typeof e==`string`?e=le(re(e,n),n):r(e)===`object`&&(e=le(e,n)),typeof t==`string`?t=le(re(t,n),n):r(t)===`object`&&(t=le(t,n)),e===t}function pe(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:l.ESCAPE,B)}function me(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:l.PCT_ENCODED,V)}var he={scheme:`http`,domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e},serialize:function(e,t){var n=String(e.scheme).toLowerCase()===`https`;return(e.port===(n?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}},ge={scheme:`https`,domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};function q(e){return typeof e.secure==`boolean`?e.secure:String(e.scheme).toLowerCase()===`wss`}var _e={scheme:`ws`,domainHost:!0,parse:function(e,t){var n=e;return n.secure=q(n),n.resourceName=(n.path||`/`)+(n.query?`?`+n.query:``),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if((e.port===(q(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){var n=u(e.resourceName.split(`?`),2),r=n[0],i=n[1];e.path=r&&r!==`/`?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},J={scheme:`wss`,domainHost:_e.domainHost,parse:_e.parse,serialize:_e.serialize},ve={},Y=`[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`,ye=`[0-9A-Fa-f]`,be=n(n(`%[EFef]`+ye+`%`+ye+ye+`%`+ye+ye)+`|`+n(`%[89A-Fa-f]`+ye+`%`+ye+ye)+`|`+n(`%`+ye+ye)),xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Se=t(`[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]`,`[\\"\\\\]`),X=`[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]`,Ce=new RegExp(Y,`g`),Z=new RegExp(be,`g`),we=new RegExp(t(`[^]`,xe,`[\\.]`,`[\\"]`,Se),`g`),Te=new RegExp(t(`[^]`,Y,X),`g`),Ee=Te;function De(e){var t=V(e);return t.match(Ce)?t:e}var Oe={scheme:`mailto`,parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(`,`):[];if(n.path=void 0,n.query){for(var i=!1,a={},o=n.query.split(`&`),s=0,c=o.length;s<c;++s){var l=o[s].split(`=`);switch(l[0]){case`to`:for(var u=l[1].split(`,`),d=0,f=u.length;d<f;++d)r.push(u[d]);break;case`subject`:n.subject=me(l[1],t);break;case`body`:n.body=me(l[1],t);break;default:i=!0,a[me(l[0],t)]=me(l[1],t);break}}i&&(n.headers=a)}n.query=void 0;for(var p=0,m=r.length;p<m;++p){var h=r[p].split(`@`);if(h[0]=me(h[0]),t.unicodeSupport)h[1]=me(h[1],t).toLowerCase();else try{h[1]=R.toASCII(me(h[1],t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to ASCII via punycode: `+e}r[p]=h.join(`@`)}return n},serialize:function(e,t){var n=e,r=a(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf(`@`),u=c.slice(0,l).replace(Z,De).replace(Z,i).replace(we,B),d=c.slice(l+1);try{d=t.iri?R.toUnicode(d):R.toASCII(me(d,t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+e}r[o]=u+`@`+d}n.path=r.join(`,`)}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==ve[m]&&p.push(m.replace(Z,De).replace(Z,i).replace(Te,B)+`=`+f[m].replace(Z,De).replace(Z,i).replace(Ee,B));return p.length&&(n.query=p.join(`&`)),n}},ke=/^([^\:]+)\:(.*)/,Ae={scheme:`urn`,parse:function(e,t){var n=e.path&&e.path.match(ke),r=e;if(n){var i=t.scheme||r.scheme||`urn`,a=n[1].toLowerCase(),o=n[2],s=z[i+`:`+(t.nid||a)];r.nid=a,r.nss=o,r.path=void 0,s&&(r=s.parse(r,t))}else r.error=r.error||`URN can not be parsed.`;return r},serialize:function(e,t){var n=t.scheme||e.scheme||`urn`,r=e.nid,i=z[n+`:`+(t.nid||r)];i&&(e=i.serialize(e,t));var a=e,o=e.nss;return a.path=(r||t.nid)+`:`+o,a}},je=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Me={scheme:`urn:uuid`,parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!n.uuid.match(je))&&(n.error=n.error||`UUID is not valid.`),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||``).toLowerCase(),n}};z[he.scheme]=he,z[ge.scheme]=ge,z[_e.scheme]=_e,z[J.scheme]=J,z[Oe.scheme]=Oe,z[Ae.scheme]=Ae,z[Me.scheme]=Me,e.SCHEMES=z,e.pctEncChar=B,e.pctDecChars=V,e.parse=re,e.removeDotSegments=ce,e.serialize=le,e.resolveComponents=K,e.resolve=ue,e.normalize=de,e.equal=fe,e.escapeComponent=pe,e.unescapeComponent=me,Object.defineProperty(e,`__esModule`,{value:!0})}))})),os=d(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),ss=d(((e,t)=>{t.exports=function(e){for(var t=0,n=e.length,r=0,i;r<n;)t++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return t}})),cs=d(((e,t)=>{t.exports={copy:n,checkDataType:r,checkDataTypes:i,coerceToTypes:o,toHash:s,getProperty:u,escapeQuotes:d,equal:os(),ucs2length:ss(),varOccurences:f,varReplace:p,schemaHasRules:m,schemaHasRulesExcept:h,schemaUnknownRules:g,toQuotedString:_,getPathExpr:v,getPath:y,getData:S,unescapeFragment:w,unescapeJsonPointer:D,escapeFragment:T,escapeJsonPointer:E};function n(e,t){for(var n in t||={},e)t[n]=e[n];return t}function r(e,t,n,r){var i=r?` !== `:` === `,a=r?` || `:` && `,o=r?`!`:``,s=r?``:`!`;switch(e){case`null`:return t+i+`null`;case`array`:return o+`Array.isArray(`+t+`)`;case`object`:return`(`+o+t+a+`typeof `+t+i+`"object"`+a+s+`Array.isArray(`+t+`))`;case`integer`:return`(typeof `+t+i+`"number"`+a+s+`(`+t+` % 1)`+a+t+i+t+(n?a+o+`isFinite(`+t+`)`:``)+`)`;case`number`:return`(typeof `+t+i+`"`+e+`"`+(n?a+o+`isFinite(`+t+`)`:``)+`)`;default:return`typeof `+t+i+`"`+e+`"`}}function i(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i=``,a=s(e);for(var o in a.array&&a.object&&(i=a.null?`(`:`(!`+t+` || `,i+=`typeof `+t+` !== "object")`,delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?` && `:``)+r(o,t,n,!0);return i}}var a=s([`string`,`number`,`integer`,`boolean`,`null`]);function o(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var i=t[r];(a[i]||e===`array`&&i===`array`)&&(n[n.length]=i)}if(n.length)return n}else if(a[t])return[t];else if(e===`array`&&t===`array`)return[`array`]}function s(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var c=/^[a-z$_][a-z$_0-9]*$/i,l=/'|\\/g;function u(e){return typeof e==`number`?`[`+e+`]`:c.test(e)?`.`+e:`['`+d(e)+`']`}function d(e){return e.replace(l,`\\$&`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\f/g,`\\f`).replace(/\t/g,`\\t`)}function f(e,t){t+=`[^0-9]`;var n=e.match(new RegExp(t,`g`));return n?n.length:0}function p(e,t,n){return t+=`([^0-9])`,n=n.replace(/\$/g,`$$$$`),e.replace(new RegExp(t,`g`),n+`$1`)}function m(e,t){if(typeof e==`boolean`)return!e;for(var n in e)if(t[n])return!0}function h(e,t,n){if(typeof e==`boolean`)return!e&&n!=`not`;for(var r in e)if(r!=n&&t[r])return!0}function g(e,t){if(typeof e!=`boolean`){for(var n in e)if(!t[n])return n}}function _(e){return`'`+d(e)+`'`}function v(e,t,n,r){return C(e,n?`'/' + `+t+(r?``:`.replace(/~/g, '~0').replace(/\\//g, '~1')`):r?`'[' + `+t+` + ']'`:`'[\\'' + `+t+` + '\\']'`)}function y(e,t,n){return C(e,_(n?`/`+E(t):u(t)))}var b=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function S(e,t,n){var r,i,a,o;if(e===``)return`rootData`;if(e[0]==`/`){if(!b.test(e))throw Error(`Invalid JSON-pointer: `+e);i=e,a=`rootData`}else{if(o=e.match(x),!o)throw Error(`Invalid JSON-pointer: `+e);if(r=+o[1],i=o[2],i==`#`){if(r>=t)throw Error(`Cannot access property/index `+r+` levels up, current level is `+t);return n[t-r]}if(r>t)throw Error(`Cannot access data `+r+` levels up, current level is `+t);if(a=`data`+(t-r||``),!i)return a}for(var s=a,c=i.split(`/`),l=0;l<c.length;l++){var d=c[l];d&&(a+=u(D(d)),s+=` && `+a)}return s}function C(e,t){return e==`""`?t:(e+` + `+t).replace(/([^\\])' \+ '/g,`$1`)}function w(e){return D(decodeURIComponent(e))}function T(e){return encodeURIComponent(E(e))}function E(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function D(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}})),ls=d(((e,t)=>{var n=cs();t.exports=r;function r(e){n.copy(e,this)}})),us=d(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else (p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),ds=d(((e,t)=>{var n=as(),r=os(),i=cs(),a=ls(),o=us();t.exports=s,s.normalizeId=y,s.fullPath=g,s.url=b,s.ids=x,s.inlineRef=p,s.schema=c;function s(e,t,n){var r=this._refs[n];if(typeof r==`string`)if(this._refs[r])r=this._refs[r];else return s.call(this,e,t,r);if(r||=this._schemas[n],r instanceof a)return p(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i=c.call(this,t,n),o,l,u;return i&&(o=i.schema,t=i.root,u=i.baseId),o instanceof a?l=o.validate||e.call(this,o.schema,t,void 0,u):o!==void 0&&(l=p(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,u)),l}function c(e,t){var r=n.parse(t),i=_(r),o=g(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==o){var s=y(i),c=this._refs[s];if(typeof c==`string`)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else if(c=this._schemas[s],c instanceof a){if(c.validate||this._compile(c),s==y(t))return{schema:c,root:e,baseId:o};e=c}else return;if(!e.schema)return;o=g(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}function l(e,t,n){var r=c.call(this,e,t);if(r){var i=r.schema,a=r.baseId;e=r.root;var o=this._getId(i);return o&&(a=b(a,o)),d.call(this,n,a,i,e)}}var u=i.toHash([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function d(e,t,n,r){if(e.fragment=e.fragment||``,e.fragment.slice(0,1)==`/`){for(var a=e.fragment.split(`/`),o=1;o<a.length;o++){var s=a[o];if(s){if(s=i.unescapeFragment(s),n=n[s],n===void 0)break;var l;if(!u[s]&&(l=this._getId(n),l&&(t=b(t,l)),n.$ref)){var d=b(t,n.$ref),f=c.call(this,r,d);f&&(n=f.schema,r=f.root,t=f.baseId)}}}if(n!==void 0&&n!==r.schema)return{schema:n,root:r,baseId:t}}}var f=i.toHash([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`]);function p(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return m(e);if(t)return h(e)<=t}function m(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t==`object`&&!m(t))return!1}else for(var r in e)if(r==`$ref`||(t=e[r],typeof t==`object`&&!m(t)))return!1;return!0}function h(e){var t=0,n;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(n=e[r],typeof n==`object`&&(t+=h(n)),t==1/0)return 1/0}else for(var i in e){if(i==`$ref`)return 1/0;if(f[i])t++;else if(n=e[i],typeof n==`object`&&(t+=h(n)+1),t==1/0)return 1/0}return t}function g(e,t){return t!==!1&&(e=y(e)),_(n.parse(e))}function _(e){return n.serialize(e).split(`#`)[0]+`#`}var v=/#\/?$/;function y(e){return e?e.replace(v,``):``}function b(e,t){return t=y(t),n.resolve(e,t)}function x(e){var t=y(this._getId(e)),a={"":t},s={"":g(t,!1)},c={},l=this;return o(e,{allKeys:!0},function(e,t,o,u,d,f,p){if(t!==``){var m=l._getId(e),h=a[u],g=s[u]+`/`+d;if(p!==void 0&&(g+=`/`+(typeof p==`number`?p:i.escapeFragment(p))),typeof m==`string`){m=h=y(h?n.resolve(h,m):m);var _=l._refs[m];if(typeof _==`string`&&(_=l._refs[_]),_&&_.schema){if(!r(e,_.schema))throw Error(`id "`+m+`" resolves to more than one schema`)}else if(m!=y(g))if(m[0]==`#`){if(c[m]&&!r(e,c[m]))throw Error(`id "`+m+`" resolves to more than one schema`);c[m]=e}else l._refs[m]=g}a[t]=h,s[t]=g}}),c}})),fs=d(((e,t)=>{var n=ds();t.exports={Validation:a(r),MissingRef:a(i)};function r(e){this.message=`validation failed`,this.errors=e,this.ajv=this.validation=!0}i.message=function(e,t){return`can't resolve reference `+t+` from id `+e};function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}})),ps=d(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var n=typeof t.cycles==`boolean`?t.cycles:!1,r=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),i=[];return(function e(t){if(t&&t.toJSON&&typeof t.toJSON==`function`&&(t=t.toJSON()),t!==void 0){if(typeof t==`number`)return isFinite(t)?``+t:`null`;if(typeof t!=`object`)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o=`[`,a=0;a<t.length;a++)a&&(o+=`,`),o+=e(t[a])||`null`;return o+`]`}if(t===null)return`null`;if(i.indexOf(t)!==-1){if(n)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}var s=i.push(t)-1,c=Object.keys(t).sort(r&&r(t));for(o=``,a=0;a<c.length;a++){var l=c[a],u=e(t[l]);u&&(o&&(o+=`,`),o+=JSON.stringify(l)+`:`+u)}return i.splice(s,1),`{`+o+`}`}})(e)}})),ms=d(((e,t)=>{t.exports=function(e,t,n){var r=``,i=e.schema.$async===!0,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,`$ref`),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c=`unknown keyword: `+s;if(e.opts.strictKeywords===`log`)e.logger.warn(c);else throw Error(c)}}if(e.isTop&&(r+=` var validate = `,i&&(e.async=!0,r+=`async `),r+=`function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; `,o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=` `+(`/*# sourceURL=`+o+` */`)+` `)),typeof e.schema==`boolean`||!(a||e.schema.$ref)){var t=`false schema`,l=e.level,u=e.dataLevel,d=e.schema[t],f=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+`/`+t,m=!e.opts.allErrors,h,g=`data`+(u||``),_=`valid`+l;if(e.schema===!1){e.isTop?m=!0:r+=` var `+_+` = false; `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`false schema`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'boolean schema is false' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else e.isTop?i?r+=` return data; `:r+=` validate.errors = null; return true; `:r+=` var `+_+` = true; `;return e.isTop&&(r+=` }; return validate; `),r}if(e.isTop){var b=e.isTop,l=e.level=0,u=e.dataLevel=0,g=`data`;if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[``],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var x=`default is ignored in the schema root`;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}r+=` var vErrors = null; `,r+=` var errors = 0; `,r+=` if (rootData === undefined) rootData = data; `}else{var l=e.level,u=e.dataLevel,g=`data`+(u||``);if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw Error(`async schema in sync schema`);r+=` var errs_`+l+` = errors;`}var _=`valid`+l,m=!e.opts.allErrors,S=``,C=``,h,w=e.schema.type,T=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(T?w.indexOf(`null`)==-1&&(w=w.concat(`null`)):w!=`null`&&(w=[w,`null`],T=!0)),T&&w.length==1&&(w=w[0],T=!1),e.schema.$ref&&a){if(e.opts.extendRefs==`fail`)throw Error(`$ref: validation keywords used in schema at path "`+e.errSchemaPath+`" (see option extendRefs)`);e.opts.extendRefs!==!0&&(a=!1,e.logger.warn(`$ref: keywords ignored in schema at path "`+e.errSchemaPath+`"`))}if(e.schema.$comment&&e.opts.$comment&&(r+=` `+e.RULES.all.$comment.code(e,`$comment`)),w){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,w);var D=e.RULES.types[w];if(E||T||D===!0||D&&!se(D)){var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,O=T?`checkDataTypes`:`checkDataType`;if(r+=` if (`+e.util[O](w,g,e.opts.strictNumbers,!0)+`) { `,E){var k=`dataType`+l,A=`coerced`+l;r+=` var `+k+` = typeof `+g+`; var `+A+` = undefined; `,e.opts.coerceTypes==`array`&&(r+=` if (`+k+` == 'object' && Array.isArray(`+g+`) && `+g+`.length == 1) { `+g+` = `+g+`[0]; `+k+` = typeof `+g+`; if (`+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+`) `+A+` = `+g+`; } `),r+=` if (`+A+` !== undefined) ; `;var j=E;if(j)for(var M,N=-1,P=j.length-1;N<P;)M=j[N+=1],M==`string`?r+=` else if (`+k+` == 'number' || `+k+` == 'boolean') `+A+` = '' + `+g+`; else if (`+g+` === null) `+A+` = ''; `:M==`number`||M==`integer`?(r+=` else if (`+k+` == 'boolean' || `+g+` === null || (`+k+` == 'string' && `+g+` && `+g+` == +`+g+` `,M==`integer`&&(r+=` && !(`+g+` % 1)`),r+=`)) `+A+` = +`+g+`; `):M==`boolean`?r+=` else if (`+g+` === 'false' || `+g+` === 0 || `+g+` === null) `+A+` = false; else if (`+g+` === 'true' || `+g+` === 1) `+A+` = true; `:M==`null`?r+=` else if (`+g+` === '' || `+g+` === 0 || `+g+` === false) `+A+` = null; `:e.opts.coerceTypes==`array`&&M==`array`&&(r+=` else if (`+k+` == 'string' || `+k+` == 'number' || `+k+` == 'boolean' || `+g+` == null) `+A+` = [`+g+`]; `);r+=` else { `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } if (`+A+` !== undefined) { `;var F=u?`data`+(u-1||``):`parentData`,I=u?e.dataPathArr[u]:`parentDataProperty`;r+=` `+g+` = `+A+`; `,u||(r+=`if (`+F+` !== undefined)`),r+=` `+F+`[`+I+`] = `+A+`; } `}else{var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}r+=` } `}}if(e.schema.$ref&&!a)r+=` `+e.RULES.all.$ref.code(e,`$ref`)+` `,m&&(r+=` } if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`);else{var L=e.RULES;if(L){for(var D,R=-1,z=L.length-1;R<z;)if(D=L[R+=1],se(D)){if(D.type&&(r+=` if (`+e.util.checkDataType(D.type,g,e.opts.strictNumbers)+`) { `),e.opts.useDefaults){if(D.type==`object`&&e.schema.properties){var d=e.schema.properties,B=Object.keys(d);if(B)for(var V,H=-1,U=B.length-1;H<U;){V=B[H+=1];var ee=d[V];if(ee.default!==void 0){var W=g+e.util.getProperty(V);if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}else if(D.type==`array`&&Array.isArray(e.schema.items)){var te=e.schema.items;if(te){for(var ee,N=-1,ne=te.length-1;N<ne;)if(ee=te[N+=1],ee.default!==void 0){var W=g+`[`+N+`]`;if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+W;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+W+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+W+` === null || `+W+` === '' `),r+=` ) `+W+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(ee.default)+` `:r+=` `+JSON.stringify(ee.default)+` `,r+=`; `}}}}var re=D.rules;if(re){for(var ie,ae=-1,oe=re.length-1;ae<oe;)if(ie=re[ae+=1],ce(ie)){var G=ie.code(e,ie.keyword,D.type);G&&(r+=` `+G+` `,m&&(S+=`}`))}}if(m&&(r+=` `+S+` `,S=``),D.type&&(r+=` } `,w&&w===D.type&&!E)){r+=` else { `;var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `}m&&(r+=` if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`)}}}m&&(r+=` `+C+` `),b?(i?(r+=` if (errors === 0) return data; `,r+=` else throw new ValidationError(vErrors); `):(r+=` validate.errors = vErrors; `,r+=` return errors === 0; `),r+=` }; return validate;`):r+=` var `+_+` = errors === errs_`+l+`;`;function se(e){for(var t=e.rules,n=0;n<t.length;n++)if(ce(t[n]))return!0}function ce(t){return e.schema[t.keyword]!==void 0||t.implements&&le(t)}function le(t){for(var n=t.implements,r=0;r<n.length;r++)if(e.schema[n[r]]!==void 0)return!0}return r}})),hs=d(((e,t)=>{var n=ds(),r=cs(),i=fs(),a=ps(),o=ms(),s=r.ucs2length,c=os(),l=i.Validation;t.exports=u;function u(e,t,p,y){var b=this,x=this._opts,S=[void 0],C={},w=[],T={},E=[],D={},O=[];t||={schema:e,refVal:S,refs:C};var k=d.call(this,e,t,y),A=this._compilations[k.index];if(k.compiling)return A.callValidate=F;var j=this._formats,M=this.RULES;try{var N=I(e,t,p,y);A.validate=N;var P=A.callValidate;return P&&(P.schema=N.schema,P.errors=null,P.refs=N.refs,P.refVal=N.refVal,P.root=N.root,P.$async=N.$async,x.sourceCode&&(P.source=N.source)),N}finally{f.call(this,e,t,y)}function F(){var e=A.validate,t=e.apply(this,arguments);return F.errors=e.errors,t}function I(e,a,d,f){var p=!a||a&&a.schema==e;if(a.schema!=t.schema)return u.call(b,e,a,d,f);var y=e.$async===!0,T=o({isTop:!0,schema:e,isRoot:p,baseId:f,root:a,schemaPath:``,errSchemaPath:`#`,errorPath:`""`,MissingRefError:i.MissingRef,RULES:M,validate:o,util:r,resolve:n,resolveRef:L,usePattern:H,useDefault:U,useCustomRule:ee,opts:x,formats:j,logger:b.logger,self:b});T=v(S,g)+v(w,m)+v(E,h)+v(O,_)+T,x.processCode&&(T=x.processCode(T,e));var D;try{D=Function(`self`,`RULES`,`formats`,`root`,`refVal`,`defaults`,`customRules`,`equal`,`ucs2length`,`ValidationError`,T)(b,M,j,t,S,E,O,c,s,l),S[0]=D}catch(e){throw b.logger.error(`Error compiling schema, function code:`,T),e}return D.schema=e,D.errors=null,D.refs=C,D.refVal=S,D.root=p?D:a,y&&(D.$async=!0),x.sourceCode===!0&&(D.source={code:T,patterns:w,defaults:E}),D}function L(e,r,i){r=n.url(e,r);var a=C[r],o,s;if(a!==void 0)return o=S[a],s=`refVal[`+a+`]`,V(o,s);if(!i&&t.refs){var c=t.refs[r];if(c!==void 0)return o=t.refVal[c],s=R(r,o),V(o,s)}s=R(r);var l=n.call(b,I,t,r);if(l===void 0){var d=p&&p[r];d&&(l=n.inlineRef(d,x.inlineRefs)?d:u.call(b,d,t,p,e))}if(l===void 0)z(r);else return B(r,l),V(l,s)}function R(e,t){var n=S.length;return S[n]=t,C[e]=n,`refVal`+n}function z(e){delete C[e]}function B(e,t){var n=C[e];S[n]=t}function V(e,t){return typeof e==`object`||typeof e==`boolean`?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function H(e){var t=T[e];return t===void 0&&(t=T[e]=w.length,w[t]=e),`pattern`+t}function U(e){switch(typeof e){case`boolean`:case`number`:return``+e;case`string`:return r.toQuotedString(e);case`object`:if(e===null)return`null`;var t=a(e),n=D[t];return n===void 0&&(n=D[t]=E.length,E[n]=e),`default`+n}}function ee(e,t,n,r){if(b._opts.validateSchema!==!1){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw Error(`parent schema must have all required keywords: `+i.join(`,`));var a=e.definition.validateSchema;if(a&&!a(t)){var o=`keyword schema is invalid: `+b.errorsText(a.errors);if(b._opts.validateSchema==`log`)b.logger.error(o);else throw Error(o)}}var s=e.definition.compile,c=e.definition.inline,l=e.definition.macro,u;if(s)u=s.call(b,t,n,r);else if(l)u=l.call(b,t,n,r),x.validateSchema!==!1&&b.validateSchema(u,!0);else if(c)u=c.call(b,r,e.keyword,t,n);else if(u=e.definition.validate,!u)return;if(u===void 0)throw Error(`custom keyword "`+e.keyword+`"failed to compile`);var d=O.length;return O[d]=u,{code:`customRule`+d,validate:u}}}function d(e,t,n){var r=p.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function f(e,t,n){var r=p.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function p(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function m(e,t){return`var pattern`+e+` = new RegExp(`+r.toQuotedString(t[e])+`);`}function h(e){return`var default`+e+` = defaults[`+e+`];`}function g(e,t){return t[e]===void 0?``:`var refVal`+e+` = refVal[`+e+`];`}function _(e){return`var customRule`+e+` = customRules[`+e+`];`}function v(e,t){if(!e.length)return``;for(var n=``,r=0;r<e.length;r++)n+=t(r,e);return n}})),gs=d(((e,t)=>{var n=t.exports=function(){this._cache={}};n.prototype.put=function(e,t){this._cache[e]=t},n.prototype.get=function(e){return this._cache[e]},n.prototype.del=function(e){delete this._cache[e]},n.prototype.clear=function(){this._cache={}}})),_s=d(((e,t)=>{var n=cs(),r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,s=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;t.exports=h;function h(e){return e=e==`full`?`full`:`fast`,n.copy(h[e])}h.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m},h.full={date:_,time:v,"date-time":b,uri:S,"uri-reference":c,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m};function g(e){return e%4==0&&(e%100!=0||e%400==0)}function _(e){var t=e.match(r);if(!t)return!1;var n=+t[1],a=+t[2],o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&g(n)?29:i[a])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],i=n[2],o=n[3],s=n[5];return(r<=23&&i<=59&&o<=59||r==23&&i==59&&o==60)&&(!t||s)}var y=/t|\s/i;function b(e){var t=e.split(y);return t.length==2&&_(t[0])&&v(t[1],!0)}var x=/\/|:/;function S(e){return x.test(e)&&s.test(e)}var C=/[^\\]\\Z/;function w(e){if(C.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),vs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.errSchemaPath+`/`+t,c=!e.opts.allErrors,l=`data`+(a||``),u=`valid`+i,d,f;if(o==`#`||o==`#/`)e.isRoot?(d=e.async,f=`validate`):(d=e.root.schema.$async===!0,f=`root.refVal[0]`);else{var p=e.resolveRef(e.baseId,o,e.isRoot);if(p===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs==`fail`){e.logger.error(m);var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '$ref' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(s)+` , params: { ref: '`+e.util.escapeQuotes(o)+`' } `,e.opts.messages!==!1&&(r+=` , message: 'can\\'t resolve reference `+e.util.escapeQuotes(o)+`' `),e.opts.verbose&&(r+=` , schema: `+e.util.toQuotedString(o)+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+l+` `),r+=` } `);var g=r;r=h.pop(),!e.compositeRule&&c?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c&&(r+=` if (false) { `)}else if(e.opts.missingRefs==`ignore`)e.logger.warn(m),c&&(r+=` if (true) { `);else throw new e.MissingRefError(e.baseId,o,m)}else if(p.inline){var _=e.util.copy(e);_.level++;var v=`valid`+_.level;_.schema=p.schema,_.schemaPath=``,_.errSchemaPath=o;var y=e.validate(_).replace(/validate\.schema/g,p.code);r+=` `+y+` `,c&&(r+=` if (`+v+`) { `)}else d=p.$async===!0||e.async&&p.$async!==!1,f=p.code}if(f){var h=h||[];h.push(r),r=``,e.opts.passContext?r+=` `+f+`.call(this, `:r+=` `+f+`( `,r+=` `+l+`, (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var b=a?`data`+(a-1||``):`parentData`,x=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+b+` , `+x+`, rootData) `;var S=r;if(r=h.pop(),d){if(!e.async)throw Error(`async schema referenced by sync schema`);c&&(r+=` var `+u+`; `),r+=` try { await `+S+`; `,c&&(r+=` `+u+` = true; `),r+=` } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; `,c&&(r+=` `+u+` = false; `),r+=` } `,c&&(r+=` if (`+u+`) { `)}else r+=` if (!`+S+`) { if (vErrors === null) vErrors = `+f+`.errors; else vErrors = vErrors.concat(`+f+`.errors); errors = vErrors.length; } `,c&&(r+=` else { `)}return r}})),ys=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+`/`+t,s=!e.opts.allErrors,c=e.util.copy(e),l=``;c.level++;var u=`valid`+c.level,d=c.baseId,f=!0,p=i;if(p)for(var m,h=-1,g=p.length-1;h<g;)m=p[h+=1],(e.opts.strictKeywords?typeof m==`object`&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,c.schema=m,c.schemaPath=a+`[`+h+`]`,c.errSchemaPath=o+`/`+h,r+=` `+e.validate(c)+` `,c.baseId=d,s&&(r+=` if (`+u+`) { `,l+=`}`));return s&&(f?r+=` if (true) { `:r+=` `+l.slice(0,-1)+` `),r}})),bs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level;if(o.every(function(t){return e.opts.strictKeywords?typeof t==`object`&&Object.keys(t).length>0||t===!1:e.util.schemaHasRules(t,e.RULES.all)})){var g=p.baseId;r+=` var `+f+` = errors; var `+d+` = false; `;var _=e.compositeRule;e.compositeRule=p.compositeRule=!0;var v=o;if(v)for(var y,b=-1,x=v.length-1;b<x;)y=v[b+=1],p.schema=y,p.schemaPath=s+`[`+b+`]`,p.errSchemaPath=c+`/`+b,r+=` `+e.validate(p)+` `,p.baseId=g,r+=` `+d+` = `+d+` || `+h+`; if (!`+d+`) { `,m+=`}`;e.compositeRule=p.compositeRule=_,r+=` `+m+` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'anyOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should match some schema in anyOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else l&&(r+=` if (true) { `);return r}})),xs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.errSchemaPath+`/`+t;e.opts.allErrors;var o=e.util.toQuotedString(i);return e.opts.$comment===!0?r+=` console.log(`+o+`);`:typeof e.opts.$comment==`function`&&(r+=` self._opts.$comment(`+o+`, `+e.util.toQuotedString(a)+`, validate.root.schema);`),r}})),Ss=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i),f||(r+=` var schema`+i+` = validate.schema`+s+`;`),r+=`var `+d+` = equal(`+u+`, schema`+i+`); if (!`+d+`) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'const' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValue: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to constant' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),Cs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId,b=e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+=`var `+f+` = errors;var `+d+`;`,b){var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+h+` = false; for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var S=u+`[`+g+`]`;p.dataPathArr[_]=g;var C=e.validate(p);p.baseId=y,e.util.varOccurences(C,v)<2?r+=` `+e.util.varReplace(C,v,S)+` `:r+=` var `+v+` = `+S+`; `+C+` `,r+=` if (`+h+`) break; } `,e.compositeRule=p.compositeRule=x,r+=` `+m+` if (!`+h+`) {`}else r+=` if (`+u+`.length == 0) {`;var w=w||[];w.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'contains' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should contain a valid item' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var T=r;return r=w.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+T+`]); `:r+=` validate.errors = [`+T+`]; return false; `:r+=` var err = `+T+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `,b&&(r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `),e.opts.allErrors&&(r+=` } `),r}})),ws=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h={},g={},_=e.opts.ownProperties;for(x in o)if(x!=`__proto__`){var v=o[x],y=Array.isArray(v)?g:h;y[x]=v}r+=`var `+d+` = errors;`;var b=e.errorPath;for(var x in r+=`var missing`+i+`;`,g)if(y=g[x],y.length){if(r+=` if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),l){r+=` && ( `;var S=y;if(S)for(var C,w=-1,T=S.length-1;w<T;){C=S[w+=1],w&&(r+=` || `);var E=e.util.getProperty(C),D=u+E;r+=` ( ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?C:E)+`) ) `}r+=`)) { `;var O=`missing`+i,k=`' + `+O+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+` + `+O);var A=A||[];A.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var j=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+j+`]); `:r+=` validate.errors = [`+j+`]; return false; `:r+=` var err = `+j+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else{r+=` ) { `;var M=y;if(M)for(var C,N=-1,P=M.length-1;N<P;){C=M[N+=1];var E=e.util.getProperty(C),k=e.util.escapeQuotes(C),D=u+E;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,C,e.opts.jsonPointers)),r+=` if ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}r+=` } `,l&&(p+=`}`,r+=` else { `)}e.errorPath=b;var F=f.baseId;for(var x in h){var v=h[x];(e.opts.strictKeywords?typeof v==`object`&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(r+=` `+m+` = true; if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),r+=`) { `,f.schema=v,f.schemaPath=s+e.util.getProperty(x),f.errSchemaPath=c+`/`+e.util.escapeFragment(x),r+=` `+e.validate(f)+` `,f.baseId=F,r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`))}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),Ts=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`i`+i,m=`schema`+i;f||(r+=` var `+m+` = validate.schema`+s+`;`),r+=`var `+d+`;`,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=``+d+` = false;for (var `+p+`=0; `+p+`<`+m+`.length; `+p+`++) if (equal(`+u+`, `+m+`[`+p+`])) { `+d+` = true; break; }`,f&&(r+=` } `),r+=` if (!`+d+`) { `;var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'enum' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValues: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to one of the allowed values' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),Es=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``);if(e.opts.format===!1)return l&&(r+=` if (true) { `),r;var d=e.opts.$data&&o&&o.$data,f;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=e.opts.unknownFormats,m=Array.isArray(p);if(d){var h=`format`+i,g=`isObject`+i,_=`formatType`+i;r+=` var `+h+` = formats[`+f+`]; var `+g+` = typeof `+h+` == 'object' && !(`+h+` instanceof RegExp) && `+h+`.validate; var `+_+` = `+g+` && `+h+`.type || 'string'; if (`+g+`) { `,e.async&&(r+=` var async`+i+` = `+h+`.async; `),r+=` `+h+` = `+h+`.validate; } if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` (`,p!=`ignore`&&(r+=` (`+f+` && !`+h+` `,m&&(r+=` && self._opts.unknownFormats.indexOf(`+f+`) == -1 `),r+=`) || `),r+=` (`+h+` && `+_+` == '`+n+`' && !(typeof `+h+` == 'function' ? `,e.async?r+=` (async`+i+` ? await `+h+`(`+u+`) : `+h+`(`+u+`)) `:r+=` `+h+`(`+u+`) `,r+=` : `+h+`.test(`+u+`))))) {`}else{var h=e.formats[o];if(!h){if(p==`ignore`)return e.logger.warn(`unknown format "`+o+`" ignored in schema at path "`+e.errSchemaPath+`"`),l&&(r+=` if (true) { `),r;if(m&&p.indexOf(o)>=0)return l&&(r+=` if (true) { `),r;throw Error(`unknown format "`+o+`" is used in schema at path "`+e.errSchemaPath+`"`)}var g=typeof h==`object`&&!(h instanceof RegExp)&&h.validate,_=g&&h.type||`string`;if(g){var v=h.async===!0;h=h.validate}if(_!=n)return l&&(r+=` if (true) { `),r;if(v){if(!e.async)throw Error(`async format in sync schema`);var y=`formats`+e.util.getProperty(o)+`.validate`;r+=` if (!(await `+y+`(`+u+`))) { `}else{r+=` if (! `;var y=`formats`+e.util.getProperty(o);g&&(y+=`.validate`),typeof h==`function`?r+=` `+y+`(`+u+`) `:r+=` `+y+`.test(`+u+`) `,r+=`) { `}}var b=b||[];b.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'format' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { format: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match format "`,d?r+=`' + `+f+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var x=r;return r=b.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+x+`]); `:r+=` validate.errors = [`+x+`]; return false; `:r+=` var err = `+x+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),Ds=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e);p.level++;var m=`valid`+p.level,h=e.schema.then,g=e.schema.else,_=h!==void 0&&(e.opts.strictKeywords?typeof h==`object`&&Object.keys(h).length>0||h===!1:e.util.schemaHasRules(h,e.RULES.all)),v=g!==void 0&&(e.opts.strictKeywords?typeof g==`object`&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),y=p.baseId;if(_||v){var b;p.createErrors=!1,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+f+` = errors; var `+d+` = true; `;var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,r+=` `+e.validate(p)+` `,p.baseId=y,p.createErrors=!0,r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.compositeRule=p.compositeRule=x,_?(r+=` if (`+m+`) { `,p.schema=e.schema.then,p.schemaPath=e.schemaPath+`.then`,p.errSchemaPath=e.errSchemaPath+`/then`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'then'; `):b=`'then'`,r+=` } `,v&&(r+=` else { `)):r+=` if (!`+m+`) { `,v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+`.else`,p.errSchemaPath=e.errSchemaPath+`/else`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'else'; `):b=`'else'`,r+=` } `),r+=` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'if' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { failingKeyword: `+b+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+b+` + '" schema' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),Os=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId;if(r+=`var `+f+` = errors;var `+d+`;`,Array.isArray(o)){var b=e.schema.additionalItems;if(b===!1){r+=` `+d+` = `+u+`.length <= `+o.length+`; `;var x=c;c=e.errSchemaPath+`/additionalItems`,r+=` if (!`+d+`) { `;var S=S||[];S.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+o.length+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have more than `+o.length+` items' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var C=r;r=S.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+C+`]); `:r+=` validate.errors = [`+C+`]; return false; `:r+=` var err = `+C+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,c=x,l&&(m+=`}`,r+=` else { `)}var w=o;if(w){for(var T,E=-1,D=w.length-1;E<D;)if(T=w[E+=1],e.opts.strictKeywords?typeof T==`object`&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all)){r+=` `+h+` = true; if (`+u+`.length > `+E+`) { `;var O=u+`[`+E+`]`;p.schema=T,p.schemaPath=s+`[`+E+`]`,p.errSchemaPath=c+`/`+E,p.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers,!0),p.dataPathArr[_]=E;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,r+=` } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}if(typeof b==`object`&&(e.opts.strictKeywords?typeof b==`object`&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))){p.schema=b,p.schemaPath=e.schemaPath+`.additionalItems`,p.errSchemaPath=e.errSchemaPath+`/additionalItems`,r+=` `+h+` = true; if (`+u+`.length > `+o.length+`) { for (var `+g+` = `+o.length+`; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` } } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}else if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` }`}return l&&(r+=` `+m+` if (`+f+` == errors) {`),r}})),ks=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o;var m=t==`maximum`,h=m?`exclusiveMaximum`:`exclusiveMinimum`,g=e.schema[h],_=e.opts.$data&&g&&g.$data,v=m?`<`:`>`,y=m?`>`:`<`,u=void 0;if(!(f||typeof o==`number`||o===void 0))throw Error(t+` must be number`);if(!(_||g===void 0||typeof g==`number`||typeof g==`boolean`))throw Error(h+` must be number or boolean`);if(_){var b=e.util.getData(g.$data,a,e.dataPathArr),x=`exclusive`+i,S=`exclType`+i,C=`exclIsNumber`+i,w=`op`+i,T=`' + `+w+` + '`;r+=` var schemaExcl`+i+` = `+b+`; `,b=`schemaExcl`+i,r+=` var `+x+`; var `+S+` = typeof `+b+`; if (`+S+` != 'boolean' && `+S+` != 'undefined' && `+S+` != 'number') { `;var u=h,E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_exclusiveLimit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: '`+h+` should be boolean' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+S+` == 'number' ? ( (`+x+` = `+p+` === undefined || `+b+` `+v+`= `+p+`) ? `+d+` `+y+`= `+b+` : `+d+` `+y+` `+p+` ) : ( (`+x+` = `+b+` === true) ? `+d+` `+y+`= `+p+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { var op`+i+` = `+x+` ? '`+v+`' : '`+v+`='; `,o===void 0&&(u=h,c=e.errSchemaPath+`/`+h,p=b,f=_)}else{var C=typeof g==`number`,T=v;if(C&&f){var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` ( `+p+` === undefined || `+g+` `+v+`= `+p+` ? `+d+` `+y+`= `+g+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { `}else{C&&o===void 0?(x=!0,u=h,c=e.errSchemaPath+`/`+h,p=g,y+=`=`):(C&&(p=Math[m?`min`:`max`](g,o)),g===(C?p:!0)?(x=!0,u=h,c=e.errSchemaPath+`/`+h,y+=`=`):(x=!1,T+=`=`));var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+` `+y+` `+p+` || `+d+` !== `+d+`) { `}}u||=t;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { comparison: `+w+`, limit: `+p+`, exclusive: `+x+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be `+T+` `,f?r+=`' + `+p:r+=``+p+`'`),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;return r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),As=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxItems`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+`.length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitItems`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxItems`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` items' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),js=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxLength`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),e.opts.unicode===!1?r+=` `+d+`.length `:r+=` ucs2length(`+d+`) `,r+=` `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitLength`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be `,t==`maxLength`?r+=`longer`:r+=`shorter`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` characters' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),Ms=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxProperties`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` Object.keys(`+d+`).length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitProperties`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxProperties`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` properties' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),Ns=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=e.opts.$data&&o&&o.$data,f;if(d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o,!(d||typeof o==`number`))throw Error(t+` must be number`);r+=`var division`+i+`;if (`,d&&(r+=` `+f+` !== undefined && ( typeof `+f+` != 'number' || `),r+=` (division`+i+` = `+u+` / `+f+`, `,e.opts.multipleOfPrecision?r+=` Math.abs(Math.round(division`+i+`) - division`+i+`) > 1e-`+e.opts.multipleOfPrecision+` `:r+=` division`+i+` !== parseInt(division`+i+`) `,r+=` ) `,d&&(r+=` ) `),r+=` ) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'multipleOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { multipleOf: `+f+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be multiple of `,d?r+=`' + `+f:r+=``+f+`'`),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),Ps=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e);f.level++;var p=`valid`+f.level;if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c,r+=` var `+d+` = errors; `;var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var h;f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),r+=` `+e.validate(f)+` `,f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,r+=` if (`+p+`) { `;var g=g||[];g.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var _=r;r=g.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+_+`]); `:r+=` validate.errors = [`+_+`]; return false; `:r+=` var err = `+_+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { errors = `+d+`; if (vErrors !== null) { if (`+d+`) vErrors.length = `+d+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,l&&(r+=` if (false) { `);return r}})),Fs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=p.baseId,_=`prevValid`+i,v=`passingSchemas`+i;r+=`var `+f+` = errors , `+_+` = false , `+d+` = false , `+v+` = null; `;var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=o;if(b)for(var x,S=-1,C=b.length-1;S<C;)x=b[S+=1],(e.opts.strictKeywords?typeof x==`object`&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+`[`+S+`]`,p.errSchemaPath=c+`/`+S,r+=` `+e.validate(p)+` `,p.baseId=g):r+=` var `+h+` = true; `,S&&(r+=` if (`+h+` && `+_+`) { `+d+` = false; `+v+` = [`+v+`, `+S+`]; } else { `,m+=`}`),r+=` if (`+h+`) { `+d+` = `+_+` = true; `+v+` = `+S+`; }`;return e.compositeRule=p.compositeRule=y,r+=``+m+`if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'oneOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { passingSchemas: `+v+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match exactly one schema in oneOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=`} else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; }`,e.opts.allErrors&&(r+=` } `),r}})),Is=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=e.opts.$data&&o&&o.$data,f;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=d?`(new RegExp(`+f+`))`:e.usePattern(o);r+=`if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` !`+p+`.test(`+u+`) ) { `;var m=m||[];m.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'pattern' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { pattern: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,d?r+=`' + `+f+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var h=r;return r=m.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+h+`]); `:r+=` validate.errors = [`+h+`]; return false; `:r+=` var err = `+h+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),Ls=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h=`key`+i,g=`idx`+i,_=f.dataLevel=e.dataLevel+1,v=`data`+_,y=`dataProperties`+i,b=Object.keys(o||{}).filter(N),x=e.schema.patternProperties||{},S=Object.keys(x).filter(N),C=e.schema.additionalProperties,w=b.length||S.length,T=C===!1,E=typeof C==`object`&&Object.keys(C).length,D=e.opts.removeAdditional,O=T||E||D,k=e.opts.ownProperties,A=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length<e.opts.loopRequired)var M=e.util.toHash(j);function N(e){return e!==`__proto__`}if(r+=`var `+d+` = errors;var `+m+` = true;`,k&&(r+=` var `+y+` = undefined;`),O){if(k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,w){if(r+=` var isAdditional`+i+` = !(false `,b.length)if(b.length>8)r+=` || validate.schema`+s+`.hasOwnProperty(`+h+`) `;else{var P=b;if(P)for(var F,I=-1,L=P.length-1;I<L;)F=P[I+=1],r+=` || `+h+` == `+e.util.toQuotedString(F)+` `}if(S.length){var R=S;if(R)for(var z,B=-1,V=R.length-1;B<V;)z=R[B+=1],r+=` || `+e.usePattern(z)+`.test(`+h+`) `}r+=` ); if (isAdditional`+i+`) { `}if(D==`all`)r+=` delete `+u+`[`+h+`]; `;else{var H=e.errorPath,U=`' + `+h+` + '`;if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers)),T)if(D)r+=` delete `+u+`[`+h+`]; `;else{r+=` `+m+` = false; `;var ee=c;c=e.errSchemaPath+`/additionalProperties`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalProperties' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { additionalProperty: '`+U+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is an invalid additional property`:r+=`should NOT have additional properties`,r+=`' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,l&&(r+=` break; `)}else if(E)if(D==`failing`){r+=` var `+d+` = errors; `;var ne=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,r+=` if (!`+m+`) { errors = `+d+`; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete `+u+`[`+h+`]; } `,e.compositeRule=f.compositeRule=ne}else{f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,l&&(r+=` if (!`+m+`) break; `)}e.errorPath=H}w&&(r+=` } `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}var ae=e.opts.useDefaults&&!e.compositeRule;if(b.length){var oe=b;if(oe)for(var F,G=-1,se=oe.length-1;G<se;){F=oe[G+=1];var ce=o[F];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){var le=e.util.getProperty(F),re=u+le,K=ae&&ce.default!==void 0;f.schema=ce,f.schemaPath=s+le,f.errSchemaPath=c+`/`+e.util.escapeFragment(F),f.errorPath=e.util.getPath(e.errorPath,F,e.opts.jsonPointers),f.dataPathArr[_]=e.util.toQuotedString(F);var ie=e.validate(f);if(f.baseId=A,e.util.varOccurences(ie,v)<2){ie=e.util.varReplace(ie,v,re);var ue=re}else{var ue=v;r+=` var `+v+` = `+re+`; `}if(K)r+=` `+ie+` `;else{if(M&&M[F]){r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = false; `;var H=e.errorPath,ee=c,de=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,F,e.opts.jsonPointers)),c=e.errSchemaPath+`/required`;var W=W||[];W.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+de+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+de+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var te=r;r=W.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+te+`]); `:r+=` validate.errors = [`+te+`]; return false; `:r+=` var err = `+te+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=ee,e.errorPath=H,r+=` } else { `}else l?(r+=` if ( `+ue+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = true; } else { `):(r+=` if (`+ue+` !== undefined `,k&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=` ) { `);r+=` `+ie+` } `}}l&&(r+=` if (`+m+`) { `,p+=`}`)}}if(S.length){var fe=S;if(fe)for(var z,pe=-1,me=fe.length-1;pe<me;){z=fe[pe+=1];var ce=x[z];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){f.schema=ce,f.schemaPath=e.schemaPath+`.patternProperties`+e.util.getProperty(z),f.errSchemaPath=e.errSchemaPath+`/patternProperties/`+e.util.escapeFragment(z),k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` if (`+e.usePattern(z)+`.test(`+h+`)) { `,f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var ie=e.validate(f);f.baseId=A,e.util.varOccurences(ie,v)<2?r+=` `+e.util.varReplace(ie,v,re)+` `:r+=` var `+v+` = `+re+`; `+ie+` `,l&&(r+=` if (!`+m+`) break; `),r+=` } `,l&&(r+=` else `+m+` = true; `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}}}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),Rs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level;if(r+=`var `+d+` = errors;`,e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c;var h=`key`+i,g=`idx`+i,_=`i`+i,v=`' + `+h+` + '`,y=`data`+(f.dataLevel=e.dataLevel+1),b=`dataProperties`+i,x=e.opts.ownProperties,S=e.baseId;x&&(r+=` var `+b+` = undefined; `),x?r+=` `+b+` = `+b+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+b+`.length; `+g+`++) { var `+h+` = `+b+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` var startErrs`+i+` = errors; `;var C=h,w=e.compositeRule;e.compositeRule=f.compositeRule=!0;var T=e.validate(f);f.baseId=S,e.util.varOccurences(T,y)<2?r+=` `+e.util.varReplace(T,y,C)+` `:r+=` var `+y+` = `+C+`; `+T+` `,e.compositeRule=f.compositeRule=w,r+=` if (!`+m+`) { for (var `+_+`=startErrs`+i+`; `+_+`<errors; `+_+`++) { vErrors[`+_+`].propertyName = `+h+`; } var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'propertyNames' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { propertyName: '`+v+`' } `,e.opts.messages!==!1&&(r+=` , message: 'property name \\'`+v+`\\' is invalid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),l&&(r+=` break; `),r+=` } }`}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),zs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`schema`+i;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],h=o;if(h)for(var g,_=-1,v=h.length-1;_<v;){g=h[_+=1];var y=e.schema.properties[g];y&&(e.opts.strictKeywords?typeof y==`object`&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))||(m[m.length]=g)}}else var m=o;if(f||m.length){var b=e.errorPath,x=f||m.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(l)if(r+=` var missing`+i+`; `,x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),r+=` var `+d+` = true; `,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { `+d+` = `+u+`[`+p+`[`+C+`]] !== undefined `,S&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`; if (!`+d+`) break; } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else{r+=` if ( `;var O=m;if(O)for(var k,C=-1,A=O.length-1;C<A;){k=O[C+=1],C&&(r+=` || `);var j=e.util.getProperty(k),M=u+j;r+=` ( ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?k:j)+`) ) `}r+=`) { `;var w=`missing`+i,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,w,!0):b+` + `+w);var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else if(x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),f&&(r+=` if (`+p+` && !Array.isArray(`+p+`)) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (`+p+` !== undefined) { `),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { if (`+u+`[`+p+`[`+C+`]] === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } `,f&&(r+=` } `)}else{var N=m;if(N)for(var k,P=-1,F=N.length-1;P<F;){k=N[P+=1];var j=e.util.getProperty(k),T=e.util.escapeQuotes(k),M=u+j;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,k,e.opts.jsonPointers)),r+=` if ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}e.errorPath=b}else l&&(r+=` if (true) {`);return r}})),Bs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,(o||f)&&e.opts.uniqueItems!==!1){f&&(r+=` var `+d+`; if (`+p+` === false || `+p+` === undefined) `+d+` = true; else if (typeof `+p+` != 'boolean') `+d+` = false; else { `),r+=` var i = `+u+`.length , `+d+` = true , j; if (i > 1) { `;var m=e.schema.items&&e.schema.items.type,h=Array.isArray(m);if(!m||m==`object`||m==`array`||h&&(m.indexOf(`object`)>=0||m.indexOf(`array`)>=0))r+=` outer: for (;i--;) { for (j = i; j--;) { if (equal(`+u+`[i], `+u+`[j])) { `+d+` = false; break outer; } } } `;else{r+=` var itemIndices = {}, item; for (;i--;) { var item = `+u+`[i]; `;var g=`checkDataType`+(h?`s`:``);r+=` if (`+e.util[g](m,`item`,e.opts.strictNumbers,!0)+`) continue; `,h&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=` if (typeof itemIndices[item] == 'number') { `+d+` = false; j = itemIndices[item]; break; } itemIndices[item] = i; } `}r+=` } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var _=_||[];_.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'uniqueItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { i: i, j: j } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var v=r;r=_.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+v+`]); `:r+=` validate.errors = [`+v+`]; return false; `:r+=` var err = `+v+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),Vs=d(((e,t)=>{t.exports={$ref:vs(),allOf:ys(),anyOf:bs(),$comment:xs(),const:Ss(),contains:Cs(),dependencies:ws(),enum:Ts(),format:Es(),if:Ds(),items:Os(),maximum:ks(),minimum:ks(),maxItems:As(),minItems:As(),maxLength:js(),minLength:js(),maxProperties:Ms(),minProperties:Ms(),multipleOf:Ns(),not:Ps(),oneOf:Fs(),pattern:Is(),properties:Ls(),propertyNames:Rs(),required:zs(),uniqueItems:Bs(),validate:ms()}})),Hs=d(((e,t)=>{var n=Vs(),r=cs().toHash;t.exports=function(){var e=[{type:`number`,rules:[{maximum:[`exclusiveMaximum`]},{minimum:[`exclusiveMinimum`]},`multipleOf`,`format`]},{type:`string`,rules:[`maxLength`,`minLength`,`pattern`,`format`]},{type:`array`,rules:[`maxItems`,`minItems`,`items`,`contains`,`uniqueItems`]},{type:`object`,rules:[`maxProperties`,`minProperties`,`required`,`dependencies`,`propertyNames`,{properties:[`additionalProperties`,`patternProperties`]}]},{rules:[`$ref`,`const`,`enum`,`not`,`anyOf`,`oneOf`,`allOf`,`if`]}],t=[`type`,`$comment`];return e.all=r(t),e.types=r([`number`,`integer`,`string`,`array`,`object`,`boolean`,`null`]),e.forEach(function(r){r.rules=r.rules.map(function(r){var i;if(typeof r==`object`){var a=Object.keys(r)[0];i=r[a],r=a,i.forEach(function(n){t.push(n),e.all[n]=!0})}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}}),e.all.$comment={keyword:`$comment`,code:n.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=r(t.concat([`$schema`,`$id`,`id`,`$data`,`$async`,`title`,`description`,`default`,`definitions`,`examples`,`readOnly`,`writeOnly`,`contentMediaType`,`contentEncoding`,`additionalItems`,`then`,`else`])),e.custom={},e}})),Us=d(((e,t)=>{var n=[`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`additionalItems`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`,`additionalProperties`,`enum`,`format`,`const`];t.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var i=t[r].split(`/`),a=e,o;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<n.length;o++){var s=n[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]})}}return e}})),Ws=d(((e,t)=>{var n=fs().MissingRef;t.exports=r;function r(e,t,i){var a=this;if(typeof this._opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);typeof t==`function`&&(i=t,t=void 0);var o=s(e).then(function(){var n=a._addSchema(e,void 0,t);return n.validate||c(n)});return i&&o.then(function(e){i(null,e)},i),o;function s(e){var t=e.$schema;return t&&!a.getSchema(t)?r.call(a,{$ref:t},!0):Promise.resolve()}function c(e){try{return a._compile(e)}catch(e){if(e instanceof n)return r(e);throw e}function r(n){var r=n.missingSchema;if(l(r))throw Error(`Schema `+r+` is loaded but `+n.missingRef+` cannot be resolved`);var i=a._loadingSchemas[r];return i||(i=a._loadingSchemas[r]=a._opts.loadSchema(r),i.then(o,o)),i.then(function(e){if(!l(r))return s(e).then(function(){l(r)||a.addSchema(e,r,void 0,t)})}).then(function(){return c(e)});function o(){delete a._loadingSchemas[r]}function l(e){return a._refs[e]||a._schemas[e]}}}}})),Gs=d(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=`valid`+i,p=`errs__`+i,m=e.opts.$data&&o&&o.$data,h;m?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,h=`schema`+i):h=o;var g=this,_=`definition`+i,v=g.definition,y=``,b,x,S,C,w;if(m&&v.$data){w=`keywordValidate`+i;var T=v.validateSchema;r+=` var `+_+` = RULES.custom['`+t+`'].definition; var `+w+` = `+_+`.validate;`}else{if(C=e.useCustomRule(g,o,e.schema,e),!C)return;h=`validate.schema`+s,w=C.code,b=v.compile,x=v.inline,S=v.macro}var E=w+`.errors`,D=`i`+i,O=`ruleErr`+i,k=v.async;if(k&&!e.async)throw Error(`async keyword in sync schema`);if(x||S||(r+=``+E+` = null;`),r+=`var `+p+` = errors;var `+f+`;`,m&&v.$data&&(y+=`}`,r+=` if (`+h+` === undefined) { `+f+` = true; } else { `,T&&(y+=`}`,r+=` `+f+` = `+_+`.validateSchema(`+h+`); if (`+f+`) { `)),x)v.statements?r+=` `+C.validate+` `:r+=` `+f+` = `+C.validate+`; `;else if(S){var A=e.util.copy(e),y=``;A.level++;var j=`valid`+A.level;A.schema=C.validate,A.schemaPath=``;var M=e.compositeRule;e.compositeRule=A.compositeRule=!0;var N=e.validate(A).replace(/validate\.schema/g,w);e.compositeRule=A.compositeRule=M,r+=` `+N}else{var P=P||[];P.push(r),r=``,r+=` `+w+`.call( `,e.opts.passContext?r+=`this`:r+=`self`,b||v.schema===!1?r+=` , `+d+` `:r+=` , `+h+` , `+d+` , validate.schema`+e.schemaPath+` `,r+=` , (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var F=a?`data`+(a-1||``):`parentData`,I=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+F+` , `+I+` , rootData ) `;var L=r;r=P.pop(),v.errors===!1?(r+=` `+f+` = `,k&&(r+=`await `),r+=``+L+`; `):k?(E=`customErrors`+i,r+=` var `+E+` = null; try { `+f+` = await `+L+`; } catch (e) { `+f+` = false; if (e instanceof ValidationError) `+E+` = e.errors; else throw e; } `):r+=` `+E+` = null; `+f+` = `+L+`; `}if(v.modifying&&(r+=` if (`+F+`) `+d+` = `+F+`[`+I+`];`),r+=``+y,v.valid)l&&(r+=` if (true) { `);else{r+=` if ( `,v.valid===void 0?(r+=` !`,S?r+=``+j:r+=``+f):r+=` `+!v.valid+` `,r+=`) { `,u=g.keyword;var P=P||[];P.push(r),r=``;var P=P||[];P.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var R=r;r=P.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+R+`]); `:r+=` validate.errors = [`+R+`]; return false; `:r+=` var err = `+R+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `;var z=r;r=P.pop(),x?v.errors?v.errors!=`full`&&(r+=` for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } `):v.errors===!1?r+=` `+z+` `:(r+=` if (`+p+` == errors) { `+z+` } else { for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } `):S?(r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `)):v.errors===!1?r+=` `+z+` `:(r+=` if (Array.isArray(`+E+`)) { if (vErrors === null) vErrors = `+E+`; else vErrors = vErrors.concat(`+E+`); errors = vErrors.length; for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; `+O+`.schemaPath = "`+c+`"; `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } else { `+z+` } `),r+=` } `,l&&(r+=` else { `)}return r}})),Ks=d(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}})),qs=d(((e,t)=>{var n=Ks();t.exports={$id:`https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js`,definitions:{simpleTypes:n.definitions.simpleTypes},type:`object`,dependencies:{schema:[`validate`],$data:[`validate`],statements:[`inline`],valid:{not:{required:[`macro`]}}},properties:{type:n.properties.type,schema:{type:`boolean`},statements:{type:`boolean`},dependencies:{type:`array`,items:{type:`string`}},metaSchema:{type:`object`},modifying:{type:`boolean`},valid:{type:`boolean`},$data:{type:`boolean`},async:{type:`boolean`},errors:{anyOf:[{type:`boolean`},{const:`full`}]}}}})),Js=d(((e,t)=>{var n=/^[a-z_$][a-z0-9_$-]*$/i,r=Gs(),i=qs();t.exports={add:a,get:o,remove:s,validate:c};function a(e,t){var i=this.RULES;if(i.keywords[e])throw Error(`Keyword `+e+` is already defined`);if(!n.test(e))throw Error(`Keyword `+e+` is not a valid identifier`);if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)c(e,a[o],t);else c(e,a,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]}),t.validateSchema=this.compile(s,!0))}i.keywords[e]=i.all[e]=!0;function c(e,t,n){for(var a,o=0;o<i.length;o++){var s=i[o];if(s.type==t){a=s;break}}a||(a={type:t,rules:[]},i.push(a));var c={keyword:e,definition:n,custom:!0,code:r,implements:n.implements};a.rules.push(c),i.custom[e]=c}return this}function o(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function s(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,i=0;i<r.length;i++)if(r[i].keyword==e){r.splice(i,1);break}return this}function c(e,t){c.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(e))return!0;if(c.errors=n.errors,t)throw Error(`custom keyword definition is invalid: `+this.errorsText(n.errors));return!1}})),Ys=d(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON Schema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}})),Xs=d(((e,t)=>{var n=hs(),r=ds(),i=gs(),a=ls(),o=ps(),s=_s(),c=Hs(),l=Us(),u=cs();t.exports=g,g.prototype.validate=_,g.prototype.compile=v,g.prototype.addSchema=y,g.prototype.addMetaSchema=b,g.prototype.validateSchema=x,g.prototype.getSchema=C,g.prototype.removeSchema=E,g.prototype.addFormat=F,g.prototype.errorsText=P,g.prototype._addSchema=O,g.prototype._compile=k,g.prototype.compileAsync=Ws();var d=Js();g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove,g.prototype.validateKeyword=d.validate;var f=fs();g.ValidationError=f.Validation,g.MissingRefError=f.MissingRef,g.$dataMetaSchema=l;var p=`http://json-schema.org/draft-07/schema`,m=[`removeAdditional`,`useDefaults`,`coerceTypes`,`strictDefaults`],h=[`/properties`];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=u.copy(e)||{},H(this),this._schemas={},this._refs={},this._fragments={},this._formats=s(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=A(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath==`property`&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=o),this._metaOpts=V(this),e.formats&&R(this),e.keywords&&z(this),I(this),typeof e.meta==`object`&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword(`nullable`,{metaSchema:{type:`boolean`}}),L(this)}function _(e,t){var n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "`+e+`"`)}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);return n.$async!==!0&&(this.errors=n.errors),i}function v(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}function y(e,t,n,i){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,n,i);return this}var o=this._getId(e);if(o!==void 0&&typeof o!=`string`)throw Error(`schema id must be string`);return t=r.normalizeId(t||o),B(this,t),this._schemas[t]=this._addSchema(e,n,i,!0),this}function b(e,t,n){return this.addSchema(e,t,n,!0),this}function x(e,t){var n=e.$schema;if(n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this._opts.defaultMeta||S(this),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i=`schema is invalid: `+this.errorsText();if(this._opts.validateSchema==`log`)this.logger.error(i);else throw Error(i)}return r}function S(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t==`object`?e._getId(t)||t:e.getSchema(p)?p:void 0,e._opts.defaultMeta}function C(e){var t=T(this,e);switch(typeof t){case`object`:return t.validate||this._compile(t);case`string`:return this.getSchema(t);case`undefined`:return w(this,e)}}function w(e,t){var i=r.schema.call(e,{schema:{}},t);if(i){var o=i.schema,s=i.root,c=i.baseId,l=n.call(e,o,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:c,validate:l}),l}}function T(e,t){return t=r.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function E(e){if(e instanceof RegExp)return D(this,this._schemas,e),D(this,this._refs,e),this;switch(typeof e){case`undefined`:return D(this,this._schemas),D(this,this._refs),this._cache.clear(),this;case`string`:var t=T(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case`object`:var n=this._opts.serialize,i=n?n(e):e;this._cache.del(i);var a=this._getId(e);a&&(a=r.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function D(e,t,n){for(var r in t){var i=t[r];!i.meta&&(!n||n.test(r))&&(e._cache.del(i.cacheKey),delete t[r])}}function O(e,t,n,i){if(typeof e!=`object`&&typeof e!=`boolean`)throw Error(`schema should be object or boolean`);var o=this._opts.serialize,s=o?o(e):e,c=this._cache.get(s);if(c)return c;i||=this._opts.addUsedSchema!==!1;var l=r.normalizeId(this._getId(e));l&&i&&B(this,l);var u=this._opts.validateSchema!==!1&&!t,d;u&&!(d=l&&l==r.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=new a({id:l,schema:e,localRefs:r.ids.call(this,e),cacheKey:s,meta:n});return l[0]!=`#`&&i&&(this._refs[l]=f),this._cache.put(s,f),u&&d&&this.validateSchema(e,!0),f}function k(e,t){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=t||a,e.schema.$async===!0&&(a.$async=!0),a;e.compiling=!0;var r;e.meta&&(r=this._opts,this._opts=this._metaOpts);var i;try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function a(){var t=e.validate,n=t.apply(this,arguments);return a.errors=t.errors,n}}function A(e){switch(e.schemaId){case`auto`:return N;case`id`:return j;default:return M}}function j(e){return e.$id&&this.logger.warn(`schema $id ignored`,e.$id),e.id}function M(e){return e.id&&this.logger.warn(`schema id ignored`,e.id),e.$id}function N(e){if(e.$id&&e.id&&e.$id!=e.id)throw Error(`schema $id is different from id`);return e.$id||e.id}function P(e,t){if(e||=this.errors,!e)return`No errors`;t||={};for(var n=t.separator===void 0?`, `:t.separator,r=t.dataVar===void 0?`data`:t.dataVar,i=``,a=0;a<e.length;a++){var o=e[a];o&&(i+=r+o.dataPath+` `+o.message+n)}return i.slice(0,-n.length)}function F(e,t){return typeof t==`string`&&(t=new RegExp(t)),this._formats[e]=t,this}function I(e){var t;if(e._opts.$data&&(t=Ys(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=Ks();e._opts.$data&&(n=l(n,h)),e.addMetaSchema(n,p,!0),e._refs[`http://json-schema.org/schema`]=p}}function L(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}function R(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}function z(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}function B(e,t){if(e._schemas[t]||e._refs[t])throw Error(`schema with key or id "`+t+`" already exists`)}function V(e){for(var t=u.copy(e._opts),n=0;n<m.length;n++)delete t[m[n]];return t}function H(e){var t=e._opts.logger;if(t===!1)e.logger={log:U,warn:U,error:U};else{if(t===void 0&&(t=console),!(typeof t==`object`&&t.log&&t.warn&&t.error))throw Error(`logger must implement log, warn and error methods`);e.logger=t}}function U(){}})),Zs=d(((e,t)=>{t.exports={builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamConstraints:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRBoundedReferenceSpace:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRFrame:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRPose:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,fetch:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}})),Qs=d(((e,t)=>{t.exports=Zs()})),$s=d((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=h(`node:util`),n=h(`node:path`),r=Xs(),i=Qs();function a(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var o=a(t),s=a(n),c=a(r),l=a(i);let u=[`off`,`warn`,`error`],d=u.reduce((e,t,n)=>(e[t]=n,e),{}),f=new Set([0,1,2,`off`,`warn`,`error`]);function p(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&d[t.toLowerCase()]||0}function m(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=u[n]||u[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=u[n[0]]||u[0])})}function g(e){return p(e)===2}function _(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),f.has(t)}function v(e){return Object.keys(e).every(t=>_(e[t]))}function y(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var b={__proto__:null,getRuleSeverity:p,normalizeToStrings:m,isErrorSeverity:g,isValidSeverity:_,isEverySeverityValid:v,normalizeConfigGlobal:y};let x={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},S=new Set;function C(e,t){let n=JSON.stringify({source:e,errorCode:t});if(S.has(n))return;S.add(n);let r=s.default.relative(process.cwd(),e),i=x[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let w={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}};var T=(e={})=>{let t=new c.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(w),t._opts.defaultMeta=w.id,t};function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e,t){if(t===void 0)return e;if(!E(e)||!E(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=D(e[r],t[r]));return n}function O(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>D(e,t[n])),...t.slice(e.length)]}let k={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},A={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...k},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...k},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function j(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let M=j(l.default.es2015,l.default.es5),N={Atomics:!1,SharedArrayBuffer:!1},P={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},F={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var I=new Map(Object.entries({builtin:{globals:l.default.es5},es6:{globals:M,parserOptions:{ecmaVersion:6}},es2015:{globals:M,parserOptions:{ecmaVersion:6}},es2016:{globals:M,parserOptions:{ecmaVersion:7}},es2017:{globals:{...M,...N},parserOptions:{ecmaVersion:8}},es2018:{globals:{...M,...N},parserOptions:{ecmaVersion:9}},es2019:{globals:{...M,...N},parserOptions:{ecmaVersion:10}},es2020:{globals:{...M,...N,...P},parserOptions:{ecmaVersion:11}},es2021:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:12}},es2022:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:13}},es2023:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:14}},es2024:{globals:{...M,...N,...P,...F},parserOptions:{ecmaVersion:15}},browser:{globals:l.default.browser},node:{globals:l.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:l.default[`shared-node-browser`]},worker:{globals:l.default.worker},serviceworker:{globals:l.default.serviceworker},commonjs:{globals:l.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:l.default.amd},mocha:{globals:l.default.mocha},jasmine:{globals:l.default.jasmine},jest:{globals:l.default.jest},phantomjs:{globals:l.default.phantomjs},jquery:{globals:l.default.jquery},qunit:{globals:l.default.qunit},prototypejs:{globals:l.default.prototypejs},shelljs:{globals:l.default.shelljs},meteor:{globals:l.default.meteor},mongo:{globals:l.default.mongo},protractor:{globals:l.default.protractor},applescript:{globals:l.default.applescript},nashorn:{globals:l.default.nashorn},atomtest:{globals:l.default.atomtest},embertest:{globals:l.default.embertest},webextensions:{globals:l.default.webextensions},greasemonkey:{globals:l.default.greasemonkey}}));let L=T(),R=new WeakMap,z=Function.prototype,B,V={error:2,warn:1,off:0},H=new WeakSet,U=Object.freeze({type:`array`,minItems:0,maxItems:0});var ee=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...U};let t=e.meta.schema;if(t===void 0)return{...U};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...U}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?V[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${o.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!R.has(e))try{let t=this.getRuleOptionsSchema(e);t&&R.set(e,L.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=R.get(e);if(n&&(n(O(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=z){e&&Object.keys(e).forEach(e=>{if(!(n(e)||I.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=z){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{y(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(B||=L.compile(A),!B(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(B.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&C(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)H.has(i)||(H.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let W=/^@.*\//iu;function te(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function ne(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function re(e){let t=e.match(W);return t?t[0]:``}e.Legacy={environments:I,ConfigOps:b,ConfigValidator:ee,naming:{__proto__:null,normalizePackageName:te,getShorthandName:ne,getNamespaceFromTerm:re}}})),ec=d(((e,t)=>{function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function r(e,t){if(t===void 0)return e;if(!n(e)||!n(t))return t;let i={...e,...t};for(let n of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=r(e[n],t[n]));return i}function i(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>r(e,n<t.length?t[n]:void 0)),...t.slice(e.length)]}t.exports={deepMergeArrays:i}})),tc=d(((e,t)=>{function n(e){if([2,`2`,`error`].includes(e))return`error`;if([1,`1`,`warn`].includes(e))return`warn`;if([0,`0`,`off`].includes(e))return`off`;throw Error(`Invalid severity value: ${e}`)}function r(e){if([2,`2`,`error`].includes(e))return 2;if([1,`1`,`warn`].includes(e))return 1;if([0,`0`,`off`].includes(e))return 0;throw Error(`Invalid severity value: ${e}`)}t.exports={normalizeSeverityToString:n,normalizeSeverityToNumber:r}})),nc=d(((e,t)=>{let{normalizeSeverityToNumber:n}=tc(),r=new Map([[0,0],[`off`,0],[1,1],[`warn`,1],[2,2],[`error`,2]]);function i(e){return typeof e==`object`&&!!e}function a(e){return i(e)&&!Array.isArray(e)}function o(e){return e===void 0}function s(e,t,n=new Map){let r=n.get(e);if(r){let e=r.get(t);if(e)return e}else r=new Map,n.set(e,r);let i={...e,...t};delete i.__proto__,r.set(t,i);for(let r of Object.keys(t)){if(r===`__proto__`||!Object.prototype.propertyIsEnumerable.call(e,r))continue;let c=e[r],l=t[r];a(c)&&a(l)?i[r]=s(c,l,n):o(l)&&(i[r]=c)}return i}function c(e){let t=Array.isArray(e)?e.slice(0):[e];return t[0]=r.get(t[0]),structuredClone(t)}function l(e){for(let t of Object.keys(e))if(typeof e[t]==`function`)return!0;return!1}var u=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-options`,this.messageData={ruleId:e,value:t}}};function d(e,t){if(typeof t!=`string`&&typeof t!=`number`&&!Array.isArray(t))throw new u(e,t)}var f=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-severity`,this.messageData={ruleId:e,value:t}}};function p(e,t){if(r.get(t)===void 0)throw new f(e,t)}function m(e){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(e))throw TypeError(`Expected string in the form "pluginName/objectName" but found "${e}".`)}function h(e){if(!i(e))throw TypeError(`Expected an object.`)}var g=class extends Error{constructor(e){super(`This appears to be in eslintrc format rather than flat config format.`),this.messageTemplate=`eslintrc-incompat`,this.messageData={key:e}}},_=class extends Error{constructor(e){super(`This appears to be in eslintrc format (array of strings) rather than flat config format (object).`),this.messageTemplate=`eslintrc-plugins`,this.messageData={plugins:e}}};let v={merge:`replace`,validate:`boolean`},y=new Set([`error`,`warn`,`off`,2,1,0]),b={merge(e,t){let r=t===void 0?e:t;return typeof r==`boolean`?r?`warn`:`off`:n(r)},validate(e){if(!(y.has(e)||typeof e==`boolean`))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.`)}},x={merge(e,t){return n(t===void 0?e:t)},validate(e){if(!y.has(e))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, or 2.`)}},S={merge(e={},t={}){return s(e,t)},validate:`object`},C={merge(e={},t={}){let n=s(e,t);for(let[r,i]of Object.entries(n))if(a(i)){if(l(i)){n[r]=t[r]??e[r];continue}n[r]={...n[r]};continue}return n},validate:`object`},w={merge:`replace`,validate:m},T={merge(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]),r={};for(let i of n)if(i!==`__proto__`){if(i in e&&i in t&&e[i]!==t[i])throw TypeError(`Cannot redefine plugin "${i}".`);r[i]=t[i]||e[i]}return r},validate(e){if(typeof e!=`object`||!e)throw TypeError(`Expected an object.`);if(Array.isArray(e))throw new _(e);for(let t of Object.keys(e))if(t!==`__proto__`&&(e[t]===null||typeof e[t]!=`object`))throw TypeError(`Key "${t}": Expected an object.`)}},E={merge:`replace`,validate(e){if(typeof e==`string`)m(e);else if(e&&typeof e==`object`){if(typeof e.preprocess!=`function`||typeof e.postprocess!=`function`)throw TypeError(`Object must have a preprocess() and a postprocess() method.`)}else throw TypeError(`Expected an object or a string.`)}},D={merge(e={},t={}){let n={...e,...t};for(let r of Object.keys(n))try{if(r===`__proto__`){delete n.__proto__;continue}if(n[r]=c(n[r]),!(r in e)||!(r in t))continue;let i=c(e[r]),a=c(t[r]);if(a.length===1){n[r]=[a[0],...i.slice(1)];continue}}catch(e){throw Error(`Key "${r}": ${e.message}`,{cause:e})}return n},validate(e){h(e);for(let t of Object.keys(e)){if(t===`__proto__`)continue;let n=e[t];d(t,n),Array.isArray(n)?p(t,n[0]):p(t,n)}}};function O(e){return{merge:`replace`,validate(){throw new g(e)}}}t.exports={flatConfigSchema:{...Object.fromEntries([`env`,`extends`,`globals`,`ignorePatterns`,`noInlineConfig`,`overrides`,`parser`,`parserOptions`,`reportUnusedDisableDirectives`,`root`].map(e=>[e,O(e)])),settings:S,linterOptions:{schema:{noInlineConfig:v,reportUnusedDisableDirectives:b,reportUnusedInlineConfigs:x}},language:w,languageOptions:C,processor:E,plugins:T,rules:D},hasMethod:l,assertIsRuleSeverity:p}})),rc=d((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function o(e){return e=a(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function s(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function c(e){return e===47}function l(e,t=``){e instanceof URL&&(e=o(e)),i(e,t);let a=s(r(e,c),c);return t?n(a,t):a}let u=/\/+/;function d(e){if(t(e),e.length===0)return`.`}function f(e){e instanceof URL&&(e=o(e)),d(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(c(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return t===-1?c(e.charCodeAt(0))?`/`:`.`:s(e.slice(0,t),c)}function p(e){e instanceof URL&&(e=o(e)),t(e);let n=-1,r=0,i=-1,a=!0,s=0;for(let t=e.length-1;t>=0;--t){let o=e.charCodeAt(t);if(c(o)){if(!a){r=t+1;break}continue}i===-1&&(a=!1,i=t+1),o===46?n===-1?n=t:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?``:e.slice(n,i)}function m(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function h(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function g(e){return h(e),m(`/`,e)}function _(e){return t(e),e.length>0&&c(e.charCodeAt(0))}function v(e){if(t(e),e.length===0)return`.`}function y(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function b(e){e instanceof URL&&(e=o(e)),v(e);let t=c(e.charCodeAt(0)),n=c(e.charCodeAt(e.length-1));return e=y(e,!t,`/`,c),e.length===0&&!t&&(e=`.`),e.length>0&&n&&(e+=`/`),t?`/${e}`:e}function x(e,...n){if(e===void 0)return`.`;e instanceof URL&&(e=o(e)),n=e?[e,...n]:n,n.forEach(e=>t(e));let r=n.filter(e=>e.length>0).join(`/`);return r===``?`.`:b(r)}function S(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;let r=c(e.charCodeAt(0)),i;r?(n.root=`/`,i=1):i=0;let a=-1,o=0,l=-1,u=!0,d=e.length-1,f=0;for(;d>=i;--d){let t=e.charCodeAt(d);if(c(t)){if(!u){o=d+1;break}continue}l===-1&&(u=!1,l=d+1),t===46?a===-1?a=d:f!==1&&(f=1):a!==-1&&(f=-1)}return a===-1||l===-1||f===0||f===1&&a===l-1&&a===o+1?(l!==-1&&(o===0&&r?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(o,l)),n.base=n.base||`/`):(o===0&&r?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(o,a),n.base=e.slice(o,l)),n.ext=e.slice(a,l)),o>0?n.dir=s(e.slice(0,o-1),c):r&&(n.dir=`/`),n}function C(...e){let n=``,r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let a;if(i>=0)a=e[i];else{let{Deno:e}=globalThis;if(typeof e?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);a=e.cwd()}t(a),a.length!==0&&(n=`${a}/${n}`,r=c(a.charCodeAt(0)))}return n=y(n,!r,`/`,c),r?n.length>0?`/${n}`:`/`:n.length>0?n:`.`}function w(e,n){if(t(e),t(n),e===n)return``}function T(e,t){if(w(e,t),e=C(e),t=C(t),e===t)return``;let n=1,r=e.length;for(;n<r&&c(e.charCodeAt(n));++n);let i=r-n,a=1,o=t.length;for(;a<o&&c(t.charCodeAt(a));++a);let s=o-a,l=i<s?i:s,u=-1,d=0;for(;d<=l;++d){if(d===l){if(s>l){if(c(t.charCodeAt(a+d)))return t.slice(a+d+1);if(d===0)return t.slice(a+d)}else i>l&&(c(e.charCodeAt(n+d))?u=d:d===0&&(u=0));break}let r=e.charCodeAt(n+d);if(r!==t.charCodeAt(a+d))break;c(r)&&(u=d)}let f=``;for(d=n+u+1;d<=r;++d)(d===r||c(e.charCodeAt(d)))&&(f.length===0?f+=`..`:f+=`/..`);return f.length>0?f+t.slice(a+u):(a+=u,c(t.charCodeAt(a))&&++a,t.slice(a))}let E={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function D(e){return e.replaceAll(/[\s]/g,e=>E[e]??e)}function O(e){if(!_(e))throw TypeError(`Path must be absolute: received "${e}"`);let t=new URL(`file:///`);return t.pathname=D(e.replace(/%/g,`%25`).replace(/\\/g,`%5C`)),t}function k(e){return e}function A(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function j(e){return A(e,`/`)}let M=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],N=[`-`,`\\`,`]`];function P(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!e.seps.includes(t[d]);d++){if(l){l=!1,a+=(c?N:M).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=M.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=M.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let F={sep:`/+`,sepMaybe:`/*`,seps:[`/`],globstar:`(?:[^/]*(?:/|$)+)*`,wildcard:`[^/]*`,escapePrefix:`\\`};function I(e,t={}){return P(F,e,t)}function L(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function R(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return b(e);let r=u.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return b(e.replace(i,`\0`)).replace(/\0/g,`..`)}function z(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return x(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`/${e}`:r=e)}return r?R(r,{globstar:n}):`.`}e.DELIMITER=`:`,e.SEPARATOR=`/`,e.SEPARATOR_PATTERN=u,e.basename=l,e.common=j,e.dirname=f,e.extname=p,e.format=g,e.fromFileUrl=o,e.globToRegExp=I,e.isAbsolute=_,e.isGlob=L,e.join=x,e.joinGlobs=z,e.normalize=b,e.normalizeGlob=R,e.parse=S,e.relative=T,e.resolve=C,e.toFileUrl=O,e.toNamespacedPath=k})),ic=d((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function o(e){return e===47}function s(e){return e===47||e===92}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function u(e){e=l(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function d(e,t=``){e instanceof URL&&(e=u(e)),i(e,t);let o=0;e.length>=2&&c(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(o=2);let l=a(r(e,s,o),s);return t?n(l,t):l}let f=/[\\/]+/;function p(e){if(t(e),e.length===0)return`.`}function m(e){e instanceof URL&&(e=u(e)),p(e);let t=e.length,n=-1,r=-1,i=!0,l=0,d=e.charCodeAt(0);if(t>1)if(s(d)){if(n=l=1,s(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=l=r+1)}}}}else c(d)&&e.charCodeAt(1)===58&&(n=l=2,t>2&&s(e.charCodeAt(2))&&(n=l=3));else if(s(d))return e;for(let n=t-1;n>=l;--n)if(s(e.charCodeAt(n))){if(!i){r=n;break}}else i=!1;if(r===-1){if(n===-1)return`.`;r=n}return a(e.slice(0,r),o)}function h(e){e instanceof URL&&(e=u(e)),t(e);let n=0,r=-1,i=0,a=-1,o=!0,l=0;e.length>=2&&e.charCodeAt(1)===58&&c(e.charCodeAt(0))&&(n=i=2);for(let t=e.length-1;t>=n;--t){let n=e.charCodeAt(t);if(s(n)){if(!o){i=t+1;break}continue}a===-1&&(o=!1,a=t+1),n===46?r===-1?r=t:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||a===-1||l===0||l===1&&r===a-1&&r===i+1?``:e.slice(r,a)}function g(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function _(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function v(e){return _(e),g(`\\`,e)}function y(e){t(e);let n=e.length;if(n===0)return!1;let r=e.charCodeAt(0);return s(r)?!0:!!(c(r)&&n>2&&e.charCodeAt(1)===58&&s(e.charCodeAt(2)))}function b(e){if(t(e),e.length===0)return`.`}function x(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function S(e){e instanceof URL&&(e=u(e)),b(e);let t=e.length,n=0,r,i=!1,a=e.charCodeAt(0);if(t>1)if(s(a))if(i=!0,s(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!s(e.charCodeAt(i));++i);if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&s(e.charCodeAt(i));++i);if(i<t&&i!==a){for(a=i;i<t&&!s(e.charCodeAt(i));++i);if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1;else c(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&s(e.charCodeAt(2))&&(i=!0,n=3));else if(s(a))return`\\`;let o;return o=n<t?x(e.slice(n),!i,`\\`,s):``,o.length===0&&!i&&(o=`.`),o.length>0&&s(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?o.length>0?`\\${o}`:`\\`:o:i?o.length>0?`${r}\\${o}`:`${r}\\`:r+o}function C(e,...n){if(e instanceof URL&&(e=u(e)),n=e?[e,...n]:n,n.forEach(e=>t(e)),n=n.filter(e=>e.length>0),n.length===0)return`.`;let r=!0,i=0,a=n[0];if(s(a.charCodeAt(0))){++i;let e=a.length;e>1&&s(a.charCodeAt(1))&&(++i,e>2&&(s(a.charCodeAt(2))?++i:r=!1))}let o=n.join(`\\`);if(r){for(;i<o.length&&s(o.charCodeAt(i));++i);i>=2&&(o=`\\${o.slice(i)}`)}return S(o)}function w(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``},r=e.length;if(r===0)return n;let i=0,a=e.charCodeAt(0);if(r>1){if(s(a)){if(i=1,s(e.charCodeAt(1))){let t=2,n=t;for(;t<r&&!s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&!s(e.charCodeAt(t));++t);t===r?i=t:t!==n&&(i=t+1)}}}}else if(c(a)&&e.charCodeAt(1)===58)if(i=2,r>2){if(s(e.charCodeAt(2))){if(r===3)return n.root=n.dir=e,n.base=`\\`,n;i=3}}else return n.root=n.dir=e,n}else if(s(a))return n.root=n.dir=e,n.base=`\\`,n;i>0&&(n.root=e.slice(0,i));let o=-1,l=i,u=-1,d=!0,f=e.length-1,p=0;for(;f>=i;--f){if(a=e.charCodeAt(f),s(a)){if(!d){l=f+1;break}continue}u===-1&&(d=!1,u=f+1),a===46?o===-1?o=f:p!==1&&(p=1):o!==-1&&(p=-1)}return o===-1||u===-1||p===0||p===1&&o===u-1&&o===l+1?u!==-1&&(n.base=n.name=e.slice(l,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u),n.ext=e.slice(o,u)),n.base=n.base||`\\`,l>0&&l!==i?n.dir=e.slice(0,l-1):n.dir=n.root,n}function T(...e){let n=``,r=``,i=!1;for(let a=e.length-1;a>=-1;a--){let o,{Deno:l}=globalThis;if(a>=0)o=e[a];else if(n){if(typeof l?.env?.get!=`function`||typeof l?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);o=l.cwd(),(o===void 0||o.slice(0,3).toLowerCase()!==`${n.toLowerCase()}\\`)&&(o=`${n}\\`)}else{if(typeof l?.cwd!=`function`)throw TypeError(`Resolved a drive-letter-less path without a current working directory (CWD)`);o=l.cwd()}t(o);let u=o.length;if(u===0)continue;let d=0,f=``,p=!1,m=o.charCodeAt(0);if(u>1)if(s(m))if(p=!0,s(o.charCodeAt(1))){let e=2,t=e;for(;e<u&&!s(o.charCodeAt(e));++e);if(e<u&&e!==t){let n=o.slice(t,e);for(t=e;e<u&&s(o.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!s(o.charCodeAt(e));++e);e===u?(f=`\\\\${n}\\${o.slice(t)}`,d=e):e!==t&&(f=`\\\\${n}\\${o.slice(t,e)}`,d=e)}}}else d=1;else c(m)&&o.charCodeAt(1)===58&&(f=o.slice(0,2),d=2,u>2&&s(o.charCodeAt(2))&&(p=!0,d=3));else s(m)&&(d=1,p=!0);if(!(f.length>0&&n.length>0&&f.toLowerCase()!==n.toLowerCase())&&(n.length===0&&f.length>0&&(n=f),i||=(r=`${o.slice(d)}\\${r}`,p),i&&n.length>0))break}return r=x(r,!i,`\\`,s),n+(i?`\\`:``)+r||`.`}function E(e,n){if(t(e),t(n),e===n)return``}function D(e,t){E(e,t);let n=T(e),r=T(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0,a=e.length;for(;i<a&&e.charCodeAt(i)===92;++i);for(;a-1>i&&e.charCodeAt(a-1)===92;--a);let o=a-i,s=0,c=t.length;for(;s<c&&t.charCodeAt(s)===92;++s);for(;c-1>s&&t.charCodeAt(c-1)===92;--c);let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<=u;++f){if(f===u){if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3));break}let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u&&d===-1)return r;let p=``;for(d===-1&&(d=0),f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p.length===0?p+=`..`:p+=`\\..`);return p.length>0?p+r.slice(s+d,c):(s+=d,r.charCodeAt(s)===92&&++s,r.slice(s,c))}let O={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function k(e){return e.replaceAll(/[\s]/g,e=>O[e]??e)}function A(e){if(!y(e))throw TypeError(`Path must be absolute: received "${e}"`);let[,t,n]=e.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),r=new URL(`file:///`);if(r.pathname=k(n.replace(/%/g,`%25`)),t!==void 0&&t!==`localhost`&&(r.hostname=t,!r.hostname))throw TypeError(`Invalid hostname: "${r.hostname}"`);return r}function j(e){if(typeof e!=`string`)return e;if(e.length===0)return``;let t=T(e);if(t.length>=3){if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(c(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`}return e}function M(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function N(e){return M(e,`\\`)}let P=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],F=[`-`,`\\`,`]`];function I(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!e.seps.includes(t[d]);d++){if(l){l=!1,a+=(c?F:P).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=P.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=P.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let L={sep:`(?:\\\\|/)+`,sepMaybe:`(?:\\\\|/)*`,seps:[`\\`,`/`],globstar:`(?:[^\\\\/]*(?:\\\\|/|$)+)*`,wildcard:`[^\\\\/]*`,escapePrefix:"`"};function R(e,t={}){return I(L,e,t)}function z(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function B(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return S(e);let r=f.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return S(e.replace(i,`\0`)).replace(/\0/g,`..`)}function V(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return C(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`\\${e}`:r=e)}return r?B(r,{globstar:n}):`.`}e.DELIMITER=`;`,e.SEPARATOR=`\\`,e.SEPARATOR_PATTERN=f,e.basename=d,e.common=N,e.dirname=m,e.extname=h,e.format=v,e.fromFileUrl=u,e.globToRegExp=R,e.isAbsolute=y,e.isGlob=z,e.join=C,e.joinGlobs=V,e.normalize=S,e.normalizeGlob=B,e.parse=w,e.relative=D,e.resolve=T,e.toFileUrl=A,e.toNamespacedPath=j})),ac=d((e=>{var t=class{static overwrite(e,t){return t}static replace(e,t){return t===void 0?e:t}static assign(e,t){return Object.assign({},e,t)}},n=class{static array(e){if(!Array.isArray(e))throw TypeError(`Expected an array.`)}static boolean(e){if(typeof e!=`boolean`)throw TypeError(`Expected a Boolean.`)}static number(e){if(typeof e!=`number`)throw TypeError(`Expected a number.`)}static object(e){if(!e||typeof e!=`object`)throw TypeError(`Expected an object.`)}static"object?"(e){if(typeof e!=`object`)throw TypeError(`Expected an object or null.`)}static string(e){if(typeof e!=`string`)throw TypeError(`Expected a string.`)}static"string!"(e){if(typeof e!=`string`||e.length===0)throw TypeError(`Expected a non-empty string.`)}};function r(e,r){let i=!1;if(r.schema)if(typeof r.schema==`object`)i=!0;else throw TypeError(`Schema must be an object.`);if(typeof r.merge==`string`){if(!(r.merge in t))throw TypeError(`Definition for key "${e}" missing valid merge strategy.`)}else if(!i&&typeof r.merge!=`function`)throw TypeError(`Definition for key "${e}" must have a merge property.`);if(typeof r.validate==`string`){if(!(r.validate in n))throw TypeError(`Definition for key "${e}" missing valid validation strategy.`)}else if(!i&&typeof r.validate!=`function`)throw TypeError(`Definition for key "${e}" must have a validate() method.`)}var i=class extends Error{constructor(e){super(`Unexpected key "${e}" found.`)}},a=class extends Error{constructor(e){super(`Missing required key "${e}".`)}},o=class extends Error{constructor(e,t){super(`Key "${e}" requires keys "${t.join(`", "`)}".`)}},s=class extends Error{constructor(e,t){super(`Key "${e}": ${t.message}`,{cause:t});for(let e of Object.keys(t))e in this||(this[e]=t[e])}},c=class e{#e=new Map;#t=new Map;constructor(i){if(!i)throw Error(`Schema definitions missing.`);for(let a of Object.keys(i)){if(r(a,i[a]),typeof i[a].schema==`object`){let t=new e(i[a].schema);i[a]={...i[a],merge(e={},n={}){return t.merge(e,n)},validate(e){n.object(e),t.validate(e)}}}typeof i[a].merge==`string`&&(i[a]={...i[a],merge:t[i[a].merge]}),typeof i[a].validate==`string`&&(i[a]={...i[a],validate:n[i[a].validate]}),this.#e.set(a,i[a]),i[a].required&&this.#t.set(a,i[a])}}hasKey(e){return this.#e.has(e)}merge(...e){if(e.length<2)throw TypeError(`merge() requires at least two arguments.`);if(e.some(e=>typeof e!=`object`||!e))throw TypeError(`All arguments must be objects.`);return e.reduce((e,t)=>{this.validate(t);for(let[n,r]of this.#e)try{if(n in e||n in t){let i=r.merge.call(this,e[n],t[n]);i!==void 0&&(e[n]=i)}}catch(e){throw new s(n,e)}return e},{})}validate(e){for(let t of Object.keys(e)){if(!this.hasKey(t))throw new i(t);let n=this.#e.get(t);if(Array.isArray(n.requires)&&!n.requires.every(t=>t in e))throw new o(t,n.requires);try{n.validate.call(n,e[t])}catch(e){throw new s(t,e)}}for(let[t]of this.#t)if(!(t in e))throw new a(t)}};e.MergeStrategy=t,e.ObjectSchema=c,e.ValidationStrategy=n})),oc=d((e=>{var t=rc(),n=ic(),r=ns(),i=S(),a=ac();function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==`default`){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=o(t),c=o(n);let l={required:!1,merge(){},validate(){}},u=Object.freeze({name:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Property must be a string.`)}},basePath:l,files:l,ignores:l});function d(e){if(!Array.isArray(e))throw TypeError(`Expected value to be an array.`)}function f(e){if(d(e),e.some(e=>typeof e!=`string`&&typeof e!=`function`))throw TypeError(`Expected array to only contain strings and functions.`)}function p(e){if(!Array.isArray(e)||e.length===0)throw TypeError(`Expected value to be a non-empty array.`)}let m=Object.freeze({basePath:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Expected value to be a string.`)}},files:{required:!1,merge(){},validate(e){p(e),e.forEach(e=>{if(Array.isArray(e))f(e);else if(typeof e!=`string`&&typeof e!=`function`)throw TypeError(`Items must be a string, a function, or an array of strings and functions.`)})}},ignores:{required:!1,merge(){},validate:f}}),h=r.Minimatch,g=i(`@eslint/config-array`),_=new Map,v=new Map,y={dot:!0,allowWindowsEscape:!0},b=new Set([`array`,`function`]),x=new Set([`name`,`basePath`]),C=new a.ObjectSchema(m),w=Object.freeze({status:`external`}),T=Object.freeze({status:`ignored`}),E=Object.freeze({status:`unconfigured`}),D=/^\.\.(?:\/|$)/u;var O=class extends Error{constructor(e,t,{cause:n,message:r}){let i=r||n.message;if(super(`Config ${e}: ${i}`,{cause:n}),n)for(let e of Object.keys(n))e in this||(this[e]=n[e]);this.name=`ConfigError`,this.index=t}};function k(e){return e&&typeof e.name==`string`&&e.name?`"${e.name}"`:`(unnamed)`}function A(e,t,n){throw new O(k(e),t,{cause:n})}function j(e){return typeof e==`string`}function M(e,t){if(e===null)throw new O(k(e),t,{message:`Unexpected null config.`});if(e===void 0)throw new O(k(e),t,{message:`Unexpected undefined config.`});if(typeof e!=`object`)throw new O(k(e),t,{message:`Unexpected non-object config.`});let n={};`basePath`in e&&(n.basePath=e.basePath),`files`in e&&(n.files=e.files),`ignores`in e&&(n.ignores=e.ignores);try{C.validate(n)}catch(n){A(e,t,n)}}function N(e,t,n={}){let r=_;n.flipNegate&&(r=v);let i=r.get(t);return i||(i=new h(t,Object.assign({},y,n)),r.set(t,i)),i.match(e)}function P(e){if(j(e)){if(e.startsWith(`./`))return e.slice(2);if(e.startsWith(`!./`))return`!${e.slice(3)}`}return e}function F(e){return j(e)&&(e.startsWith(`./`)||e.startsWith(`!./`))}function I(e,t,n){if(!e)return e;let r=typeof e.basePath==`string`,i=!1;if(r&&(i=!0),!i&&Array.isArray(e.files)&&(i=e.files.some(e=>Array.isArray(e)?e.some(F):F(e))),!i&&Array.isArray(e.ignores)&&(i=e.ignores.some(F)),!i)return e;let a={...e};return r&&(n.isAbsolute(e.basePath)?a.basePath=n.toNamespacedPath(e.basePath):a.basePath=n.resolve(t,e.basePath)),Array.isArray(a.files)&&(a.files=a.files.map(e=>Array.isArray(e)?e.map(P):P(e))),Array.isArray(a.ignores)&&(a.ignores=a.ignores.map(P)),a}async function L(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);async function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);n=n(t),n.then&&(n=await n)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=await s(e),l=[];for await(let e of c)l.push(I(e,r,i));return l}function R(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);if(n=n(t),n.then)throw TypeError(`Async config functions are not supported.`)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=[];for(let t of s(e))c.push(I(t,r,i));return c}function z(e,t,n){let r=n.resolve(t,e),i=n.toNamespacedPath(r);return n.relative(t,i).replaceAll(n.SEPARATOR,`/`)}function B(e,t,n,{basePath:r,path:i}={}){let a=!1;for(let o of e){let e=n;if(o.basePath){if(e=z(i.resolve(r,n),o.basePath,i),e===``||D.test(e))continue;n.endsWith(`/`)&&(e+=`/`)}a=o.ignores.reduce((n,r)=>n?typeof r==`string`&&r.startsWith(`!`)?!N(e,r,{flipNegate:!0}):n:typeof r==`function`?r(t):r.startsWith(`!`)?!1:N(e,r),a)}return a}function V(e,t,n){function r(n){if(j(n))return N(t,n);if(typeof n==`function`)return n(e);throw TypeError(`Unexpected matcher type ${n}.`)}let i=n.files.some(e=>Array.isArray(e)?e.every(r):r(e));return i&&n.ignores&&(i=!B([{ignores:n.ignores}],e,t)),i}function H(e){if(!e.isNormalized())throw Error(`ConfigArray must be normalized to perform this operation.`)}function U(e){if(e.length>2)throw TypeError(`configTypes must be an array with at most two items.`);for(let t of e)if(!b.has(t))throw TypeError(`Unexpected config type "${t}" found. Expected one of: "object", "array", "function".`)}function ee(e){if(e.startsWith(`/`))return s;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(e))return c;throw Error(`Expected an absolute path but received "${e}"`)}let W={isNormalized:Symbol(`isNormalized`),configCache:Symbol(`configCache`),schema:Symbol(`schema`),finalizeConfig:Symbol(`finalizeConfig`),preprocessConfig:Symbol(`preprocessConfig`)},te=new WeakMap;var ne=class extends Array{#e;#t;constructor(e,{basePath:t=`/`,normalized:n=!1,schema:r,extraConfigTypes:i=[]}={}){if(super(),this[W.isNormalized]=n,this[W.schema]=new a.ObjectSchema(Object.assign({},r,u)),!j(t)||!t)throw TypeError(`basePath must be a non-empty string`);this.basePath=t,U(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[W.configCache]=new Map,te.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(e)?this.push(...e):this.push(e),this.#t=ee(t),this.#e=this.#t.toNamespacedPath(t)}static get[Symbol.species](){return Array}get files(){H(this);let e=te.get(this);if(e.files)return e.files;let t=[];for(let e of this)e.files&&e.files.forEach(e=>{t.push(e)});return e.files=t,te.set(this,e),t}get ignores(){H(this);let e=te.get(this);if(e.ignores)return e.ignores;let t=[];for(let e of this)e.ignores&&Object.keys(e).filter(e=>!x.has(e)).length===1&&t.push(e);return e.ignores=t,te.set(this,e),t}isNormalized(){return this[W.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let t=await L(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let t=R(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[W.preprocessConfig].bind(this))),this.forEach(M),this[W.isNormalized]=!0,Object.freeze(this)}return this}[W.finalizeConfig](e){return e}[W.preprocessConfig](e){return e}getConfigWithStatus(e){H(this);let t=this[W.configCache];if(t.has(e))return t.get(e);let n=z(e,this.#e,this.#t);if(D.test(n))return g(`No config for file ${e} outside of base path`),t.set(e,w),w;if(this.isDirectoryIgnored(this.#t.dirname(e)))return g(`Ignoring ${e} based on directory pattern`),t.set(e,T),T;if(B(this.ignores,e,n,{basePath:this.#e,path:this.#t}))return g(`Ignoring ${e} based on file pattern`),t.set(e,T),T;let r=[],i=!1,a=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((t,o)=>{let s=t.basePath?z(this.#t.resolve(this.#e,e),t.basePath,this.#t):n;if(t.basePath&&D.test(s)){g(`Skipped config found for ${e} (based on config's base path: ${t.basePath}`);return}if(!t.files){if(!t.ignores){g(`Universal config found for ${e}`),r.push(o);return}if(Object.keys(t).filter(e=>!x.has(e)).length===1){g(`Skipped config found for ${e} (global ignores)`);return}if(B([{ignores:t.ignores}],e,s)){g(`Skipped config found for ${e} (based on ignores: ${t.ignores})`);return}g(`Matching config found for ${e} (based on ignores: ${t.ignores})`),r.push(o);return}let c=[],l=t.files.filter(e=>Array.isArray(e)?e.every(e=>a.test(e))?!0:(c.push(e),!1):a.test(e)?!0:(c.push(e),!1));if(l.length){if(g(`Universal files patterns found. Checking carefully.`),c.length&&V(e,s,{files:c,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o),i=!0;return}if(l.length&&V(e,s,{files:l,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o);return}return}V(e,s,t)&&(g(`Matching config found for ${e}`),r.push(o),i=!0)}),!i)return g(`No matching configs found for ${e}`),t.set(e,E),E;let o=r.toString(),s=t.get(o);if(s)return t.set(e,s),s;let c=r.reduce((e,t)=>{try{return this[W.schema].merge(e,this[t])}catch(e){A(this[t],t,e)}},{});return c=this[W.finalizeConfig](c),s=Object.freeze({config:c,status:`matched`}),t.set(e,s),t.set(o,s),s}getConfig(e){return this.getConfigWithStatus(e).config}getConfigStatus(e){return this.getConfigWithStatus(e).status}isIgnored(e){return this.isFileIgnored(e)}isFileIgnored(e){return this.getConfigStatus(e)===`ignored`}isDirectoryIgnored(e){H(this);let t=z(e,this.#e,this.#t);if(t===``)return!1;if(D.test(t))return!0;let n=te.get(this).directoryMatches;if(n.has(t))return n.get(t);let r=t.split(`/`),i=``,a;do i+=`${r.shift()}/`,a=B(this.ignores,this.#t.join(this.basePath,i),i,{basePath:this.#e,path:this.#t}),n.set(i,a);while(!a&&r.length);return n.set(t,a),a}};Object.defineProperty(e,`ObjectSchema`,{enumerable:!0,get:function(){return a.ObjectSchema}}),e.ConfigArray=ne,e.ConfigArraySymbol=W})),sc=d(((e,t)=>{t.exports={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}}})),cc=d(((e,t)=>{let n=Xs(),r=sc();t.exports=(e={})=>{let t=new n({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(r),t._opts.defaultMeta=r.id,t}})),lc=d(((e,t)=>{t.exports={rules:{"generator-star":[`generator-star-spacing`],"global-strict":[`strict`],"no-arrow-condition":[`no-confusing-arrow`,`no-constant-condition`],"no-comma-dangle":[`comma-dangle`],"no-empty-class":[`no-empty-character-class`],"no-empty-label":[`no-labels`],"no-extra-strict":[`strict`],"no-reserved-keys":[`quote-props`],"no-space-before-semi":[`semi-spacing`],"no-wrap-func":[`no-extra-parens`],"space-after-function-name":[`space-before-function-paren`],"space-after-keywords":[`keyword-spacing`],"space-before-function-parentheses":[`space-before-function-paren`],"space-before-keywords":[`keyword-spacing`],"space-in-brackets":[`object-curly-spacing`,`array-bracket-spacing`,`computed-property-spacing`],"space-return-throw-case":[`keyword-spacing`],"space-unary-word-ops":[`space-unary-ops`],"spaced-line-comment":[`spaced-comment`]}}})),uc=d(((e,t)=>{let{deepMergeArrays:n}=ec(),{flatConfigSchema:r,hasMethod:i}=nc(),{ObjectSchema:a}=oc(),o=cc()(),s=lc(),c=Object.freeze({type:`array`,minItems:0,maxItems:0}),l=new Map([[0,0],[1,1],[2,2],[`off`,0],[`warn`,1],[`error`,2]]),u=new WeakMap;function d({pluginName:e,ruleName:t},n){let r=e===`@`?t:`${e}/${t}`,i=`Key "rules": Key "${r}"`,a=`${i}: Could not find plugin "${e}" in configuration.`,o=a;if(n.plugins&&n.plugins[e]){let r=s.rules[t];if(e===`@`&&r)a=`${i}: Rule "${t}" was removed and replaced by "${r}".`;else{a=`${i}: Could not find "${t}" in plugin "${e}".`;for(let[e,r]of Object.entries(n.plugins))if(r.rules&&r.rules[t]){a+=` Did you mean "${e}/${t}"?`;break}}}let c=TypeError(a);throw a===o&&(c.messageTemplate=`config-plugin-missing`,c.messageData={pluginName:e,ruleId:r}),c}var f=class extends Error{constructor(e,t){super(`Error while processing options validation schema of rule '${e}': ${t.message}`,{cause:t}),this.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`}};function p(e){let t,n;return e.includes(`/`)?(t=e.startsWith(`@`)?e.slice(0,e.lastIndexOf(`/`)):e.slice(0,e.indexOf(`/`)),n=e.slice(t.length+1)):(t=`@`,n=e),{pluginName:t,ruleName:n}}function m(e,t){let{pluginName:n,ruleName:r}=p(e);return t.plugins?.[n]?.rules?.[r]}function h(e){if(!e.meta)return{...c};let t=e.meta.schema;if(t===void 0)return{...c};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...c}:t}function g(e){let t=e.split(`/`);return{objectName:t.pop(),pluginName:t.join(`/`)}}function _(e){let t=e.name;if(!t&&(!e.meta||(t=e.meta.name,!t)))return null;let n=e.version;return n||=e.meta&&e.meta.version,n?`${t}@${n}`:t}function v(e,t,n){if(typeof e==`function`){let e=TypeError(`Cannot serialize key "${t}" in "${n}": Function values are not supported.`);throw e.messageTemplate=`config-serialize-function`,e.messageData={key:t,objectKey:n},e}}function y(e,t=`languageOptions`){if(typeof e.toJSON==`function`){let n=e.toJSON();return v(n,`toJSON`,t),n}let n={};for(let[r,a]of Object.entries(e)){if(a){if(typeof a==`object`){let e=_(a);typeof a.toJSON==`function`?(n[r]=a.toJSON(),v(n[r],r,t)):e&&i(a)?n[r]=e:n[r]=y(a,r);continue}v(a,r,t)}n[r]=a}return n}function b(e,t){if(!u.has(e))try{let t=h(e);t&&u.set(e,o.compile(t))}catch(e){throw new f(t,e)}return u.get(e)}t.exports={Config:class{#e;#t;constructor(e){let{plugins:t,language:n,languageOptions:i,processor:o,...s}=e;if(new a(r).validate(e),Object.assign(this,s),!n)throw TypeError(`Key 'language' is required.`);this.plugins=t,this.language=n;let{pluginName:c,objectName:l}=g(n);if(this.#e=n,!t||!t[c]||!t[c].languages||!t[c].languages[l])throw TypeError(`Key "language": Could not find "${l}" in plugin "${c}".`);this.language=t[c].languages[l],this.language.defaultLanguageOptions??i?this.languageOptions=r.languageOptions.merge(this.language.defaultLanguageOptions,i):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(e){throw TypeError(`Key "languageOptions": ${e.message}`,{cause:e})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),o)if(this.processor=o,typeof o==`string`){let{pluginName:e,objectName:n}=g(o);if(this.#t=o,!t||!t[e]||!t[e].processors||!t[e].processors[n])throw TypeError(`Key "processor": Could not find "${n}" in plugin "${e}".`);this.processor=t[e].processors[n]}else if(typeof o==`object`)this.#t=_(o),this.processor=o;else throw TypeError(`Key 'processor' must be a string or an object.`);this.rules&&(this.#n(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw Error(`Could not serialize processor object (missing 'meta' object).`);if(!this.#e)throw Error(`Could not serialize language object (missing 'meta' object).`);return{...this,plugins:Object.entries(this.plugins).map(([e,t])=>{let n=_(t);return n?`${e}:${n}`:e}),language:this.#e,languageOptions:y(this.languageOptions),processor:this.#t}}getRuleDefinition(e){return m(e,this)}#n(){for(let[e,t]of Object.entries(this.rules)){let r=Array.isArray(t)?t:[t];r[0]=l.get(r[0]);let i=m(e,this),a=r.slice(1),o=n(i?.meta?.defaultOptions,a);o.length&&(r=[r[0],...o]),this.rules[e]=r}}validateRulesConfig(e){if(!e)throw TypeError(`Config is required for validation.`);for(let[t,n]of Object.entries(e)){if(t===`__proto__`||n[0]===0)continue;let e=m(t,this);e||d(p(t),this);let r=b(e,t);if(r&&(r(n.slice(1)),r.errors))throw Error(`Key "rules": Key "${t}":\n${r.errors.map(e=>{if(e.keyword===`additionalProperties`&&e.schema===!1&&typeof e.parentSchema?.properties==`object`&&typeof e.params?.additionalProperty==`string`){let t=Object.keys(e.parentSchema.properties).map(e=>`"${e}"`);return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n\t\tUnexpected property "${e.params.additionalProperty}". Expected properties: ${t.join(`, `)}.\n`}return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`}).join(``)}`)}}static getRuleOptionsSchema(e){return h(e)}static getRuleNumericSeverity(e){let t=Array.isArray(e)?e[0]:e;return l.has(t)?l.get(t):typeof t==`string`?l.get(t.toLowerCase())??0:0}}}})),dc=d(((e,t)=>{let n=G(),{Config:r}=uc();function i(e,t){return e.line-t.line||e.column-t.column}function a(e){let t=new Map;for(let n of e){let{unprocessedDirective:{parentDirective:e}}=n;t.has(e)?t.get(e).push(n):t.set(e,[n])}return[...t.values()]}function o(e,t,r){let i=t.value.trim(),a=r.text.indexOf(i,r.getRange(t.node)[0]);return e.map(e=>{let{ruleId:t}=e,r=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${n(t)}\k<quote>(?:\s*,\s*|$)`,`u`).exec(i),o=r[0],s=a+r.index,c=s+o.length,l=o.indexOf(`,`),u=o.lastIndexOf(`,`),d,f;return l===u?(d=s,f=c):(d=s+l,f=s+u),{description:`'${t}'`,fix:{range:[d,f],text:``},unprocessedDirective:e.unprocessedDirective}})}function s(e,t,n){let r=n.getRange(t),i=e.filter(e=>e.ruleId).map(e=>`'${e.ruleId}'`);return{description:i.length<=2?i.join(` or `):`${i.slice(0,i.length-1).join(`, `)}, or ${i.at(-1)}`,fix:{range:r,text:` `},unprocessedDirective:e[0].unprocessedDirective}}function c(e,t){return a(e).flatMap(e=>{let{parentDirective:n}=e[0].unprocessedDirective,r=new Set(n.ruleIds);for(let t of e)r.delete(t.ruleId);return r.size?o(e,n,t):[s(e,n.node,t)]})}function l(e){let t=new Map,n=new Set;for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===`disable`){if(t.size===0)continue;if(i.ruleId===null){for(let e of t.values())n.add(e);t.clear()}else{let e=t.get(i.ruleId);if(e)n.add(e);else{let e=t.get(null);e&&n.add(e)}}}else i.type===`enable`&&(i.ruleId===null?(t.clear(),t.set(null,i)):t.set(i.ruleId,i))}return n}function u(e){let t=[],n=new Set,{sourceCode:r}=e;for(let r of e.problems){let a=[],o=0;for(;o<e.directives.length&&i(e.directives[o],r)<=0;){let t=e.directives[o++];if(t.ruleId===null||t.ruleId===r.ruleId)switch(t.type){case`disable`:a.push(t);break;case`enable`:a=[];break}}if(a.length>0){let e=a.map(e=>({kind:`directive`,justification:e.unprocessedDirective.justification}));r.suppressions?r.suppressions=r.suppressions.concat(e):(r.suppressions=e,n.add(a.at(-1)))}t.push(r)}let a=e.directives.filter(t=>t.type===`disable`&&!n.has(t)&&!e.rulesToIgnore.has(t.ruleId)),o=new Set(e.directives.filter(t=>t.unprocessedDirective.type===`enable`&&!e.rulesToIgnore.has(t.ruleId)));if(o.size>0)for(let t of l(e.directives))o.delete(t);let s=c(a,r).concat(c(o,r)),u=e.language.columnStart===1?0:1,d=e.language.lineStart===1?0:1;return{problems:t,unusedDirectives:s.map(({description:t,fix:n,unprocessedDirective:i})=>{let{parentDirective:a,type:o,line:s,column:c}=i,l;l=o===`enable`?t?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${t}).`:`Unused eslint-enable directive (no matching eslint-disable directives were found).`:t?`Unused eslint-disable directive (no problems were reported from ${t}).`:`Unused eslint-disable directive (no problems were reported).`;let f=r.getLoc(a.node);return{ruleId:null,message:l,line:o===`disable-next-line`?f.start.line+d:s,column:o===`disable-next-line`?f.start.column+u:c,severity:e.reportUnusedDisableDirectives===`warn`?1:2,nodeType:null,...e.disableFixes?{}:{fix:n}}})}}t.exports=({language:e,sourceCode:t,directives:n,disableFixes:a,problems:o,configuredRules:s,ruleFilter:c,reportUnusedDisableDirectives:l=`off`})=>{let d=n.filter(e=>e.type===`disable`||e.type===`enable`).map(e=>Object.assign({},e,{unprocessedDirective:e})).sort(i),f=n.flatMap(e=>{switch(e.type){case`disable`:case`enable`:return[];case`disable-line`:return[{type:`disable`,line:e.line,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+1,column:0,ruleId:e.ruleId,unprocessedDirective:e}];case`disable-next-line`:return[{type:`disable`,line:e.line+1,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+2,column:0,ruleId:e.ruleId,unprocessedDirective:e}];default:throw TypeError(`Unrecognized directive type '${e.type}'`)}}).sort(i),p=s&&c?new Set(Object.keys(s).filter(e=>{let t=r.getRuleNumericSeverity(s[e]);return t===0?!1:!c({severity:t,ruleId:e})})):new Set;p.size>0&&p.add(null);let m=u({language:e,sourceCode:t,problems:o,directives:d,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p}),h=u({language:e,sourceCode:t,problems:m.problems,directives:f,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p});return l===`off`?h.problems:h.problems.concat(m.unusedDirectives).concat(h.unusedDirectives).sort(i)}})),fc=d(((e,t)=>{let n=Ua();t.exports=class{constructor(){this._rules=Object.create(null)}define(e,t){this._rules[e]=t}get(e){return typeof this._rules[e]==`string`&&this.define(e,h(this._rules[e])),this._rules[e]?this._rules[e]:n.has(e)?n.get(e):null}*[Symbol.iterator](){yield*n;for(let e of Object.keys(this._rules))yield[e,this.get(e)]}}})),pc=d(((e,t)=>{let n=S()(`eslint:source-code-fixer`);function r(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function i(e,t){return e.line-t.line||e.column-t.column}function a(){Object.freeze(this)}a.applyFixes=function(e,t,a){if(n(`Applying fixes`),a===!1)return n(`shouldFix parameter was false, not attempting fixes`),{fixed:!1,messages:t,output:e};let o=[],s=[],c=e.startsWith(``)?``:``,l=c?e.slice(1):e,u=-1/0,d=c;function f(e){let t=e.fix,n=t.range[0],r=t.range[1];return u>=n||n>r?(o.push(e),!1):((n<0&&r>=0||n===0&&t.text.startsWith(``))&&(d=``),d+=l.slice(Math.max(0,u),Math.max(0,n)),d+=t.text,u=r,!0)}if(t.forEach(e=>{Object.hasOwn(e,`fix`)&&e.fix?s.push(e):o.push(e)}),s.length){n(`Found fixes to apply`);let e=!1;for(let t of s.sort(r))typeof a!=`function`||a(t)?(f(t),e=!0):o.push(t);return d+=l.slice(Math.max(0,u)),{fixed:e,messages:o.sort(i),output:d}}return n(`No fixes to apply`),{fixed:!1,messages:t,output:c+l}},t.exports=a})),mc=d(((e,t)=>{let n=Object.freeze([]);t.exports={SourceCodeVisitor:class{#e=new Map;add(e,t){this.#e.has(e)?this.#e.get(e).push(t):this.#e.set(e,[t])}get(e){return this.#e.has(e)?this.#e.get(e):n}forEachName(e){this.#e.forEach((t,n)=>{e(n)})}callSync(e,...t){this.#e.has(e)&&this.#e.get(e).forEach(e=>e(...t))}}}})),hc=d((e=>{let{ConfigArray:t,ConfigArraySymbol:n}=oc(),{flatConfigSchema:r}=nc(),{defaultConfig:i}=No(),{Config:a}=uc(),o=new Set([`name`,`basePath`]);function s(e,t,n){let r=`user-defined`,i=e.index;return e.index<n?r=`base`:e.index<t+n?(r=`original`,i=e.index-n):i=e.index-t-n,TypeError(`${e.message.slice(0,-1)} at ${r} index ${i}.`,{cause:e})}let c=Symbol(`originalBaseConfig`),l=Symbol(`originalLength`),u=Symbol(`baseLength`);e.FlatConfigArray=class extends t{constructor(e,{basePath:t,shouldIgnore:n=!0,baseConfig:a=i}={}){super(e,{basePath:t,schema:r}),this[l]=this.length,a[Symbol.iterator]?this.unshift(...a):this.unshift(a),this[u]=this.length-this[l],this[c]=a,Object.defineProperty(this,c,{writable:!1}),this.shouldIgnore=n,Object.defineProperty(this,`shouldIgnore`,{writable:!1})}normalize(e){return super.normalize(e).catch(e=>{throw e.name===`ConfigError`?s(e,this[l],this[u]):e})}normalizeSync(e){try{return super.normalizeSync(e)}catch(e){throw e.name===`ConfigError`?s(e,this[l],this[u]):e}}[n.preprocessConfig](e){if(!this.shouldIgnore&&!this[c].includes(e)&&e.ignores&&Object.keys(e).filter(e=>!o.has(e)).length===1){let{ignores:t,...n}=e;return n}return e}[n.finalizeConfig](e){return new a(e)}}})),gc=d(((e,t)=>{let n=new Map([[`test_only`,`Used only for testing.`],[`test_only_2`,`Used only for testing.`],[`v10_config_lookup_from_file`,"Look up `eslint.config.js` from the file being linted."],[`unstable_native_nodejs_ts_config`,`Use native Node.js to load TypeScript configuration.`]]),r=new Map([[`test_only_replaced`,{description:`Used only for testing flags that have been replaced by other flags.`,replacedBy:`test_only`}],[`test_only_enabled_by_default`,{description:`Used only for testing flags whose features have been enabled by default.`,replacedBy:null}],[`test_only_abandoned`,{description:`Used only for testing flags whose features have been abandoned.`}],[`unstable_ts_config`,{description:`Enable TypeScript configuration files.`,replacedBy:null}],[`unstable_config_lookup_from_file`,{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:`v10_config_lookup_from_file`}]]);function i({replacedBy:e}){return e===void 0?`This feature has been abandoned.`:typeof e==`string`?`This flag has been renamed '${e}' to reflect its stabilization. Please use '${e}' instead.`:`This feature is now enabled by default.`}t.exports={activeFlags:n,inactiveFlags:r,getInactivityReasonMessage:i}})),_c=d(((e,t)=>{function n(e){return typeof e==`string`?e.charCodeAt(0)===65279:e[0]===239&&e[1]===187&&e[2]===191}function r(e){return n(e)?typeof e==`string`?e.slice(1):e.slice(3):e}t.exports={VFile:class{path;physicalPath;body;rawBody;bom;constructor(e,t,{physicalPath:i}={}){this.path=e,this.physicalPath=i??e,this.bom=n(t),this.body=r(t),this.rawBody=t}}}})),vc=d(((e,t)=>{t.exports={ParserService:class{parseSync(e,t){let{language:n,languageOptions:r}=t,i=n.parse(e,{languageOptions:r});if(typeof i.then==`function`)throw Error(`Unsupported: Language parser returned a promise.`);return i.ok?{ok:!0,sourceCode:n.createSourceCode(e,i,{languageOptions:r})}:{ok:!1,errors:i.errors.map(e=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${e.message}`,line:e.line,column:e.column}))}}}}})),yc=d((e=>{e.FileContext=class{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:e,filename:t,physicalFilename:n,sourceCode:r,parserOptions:i,parserPath:a,languageOptions:o,settings:s}){this.cwd=e,this.filename=t,this.physicalFilename=n,this.sourceCode=r,this.parserOptions=i,this.parserPath=a,this.languageOptions=o,this.settings=s,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}}})),bc=d(((e,t)=>{let n=h(`node:path`),{VFile:r}=_c();t.exports={ProcessorService:class{preprocessSync(e,t){let{processor:i}=t,a;try{a=i.preprocess(e.rawBody,e.path)}catch(e){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${e.message.replace(/^line \d+:/iu,``).trim()}`,line:e.lineNumber,column:e.column,nodeType:null}]}}if(typeof a.then==`function`)throw Error(`Unsupported: Preprocessor returned a promise.`);return{ok:!0,files:a.map((t,i)=>typeof t==`string`?t:new r(n.join(e.path,`${i}_${t.filename}`),t.text,{physicalPath:e.physicalPath}))}}postprocessSync(e,t,n){let{processor:r}=n;return r.postprocess(t,e.path)}}}})),xc=d(((e,t)=>{function n(e,t){if(e===t)return!1;if(typeof e!=typeof t||Array.isArray(e)!==Array.isArray(t))return!0;if(Array.isArray(e))return e.length!==t.length||e.some((e,r)=>n(e,t[r]));if(typeof e==`object`){if(e===null||t===null)return!0;let r=Object.keys(e),i=Object.keys(t);return r.length!==i.length||r.some(r=>!Object.hasOwn(t,r)||n(e[r],t[r]))}return!0}t.exports={containsDifferentProperty:n}})),Sc=d(((e,t)=>{t.exports={WarningService:class{constructor({emitWarning:e=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=e}emitCircularFixesWarning(e){this.emitWarning(`Circular fixes detected while fixing ${e}. It is likely that you have conflicting rules in your configuration.`,`ESLintCircularFixesWarning`)}emitEmptyConfigWarning(e){this.emitWarning(`Running ESLint with an empty config (from ${e}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,`ESLintEmptyConfigWarning`)}emitESLintIgnoreWarning(){this.emitWarning(`The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files`,`ESLintIgnoreWarning`)}emitESLintRCWarning(){this.emitWarning(`You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.`,`ESLintRCWarning`)}emitInactiveFlagWarning(e,t){this.emitWarning(t,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,`ESLintPoorConcurrencyWarning`)}emitESLintEnvWarning(e,t){this.emitWarning(`/* eslint-env */ comments are no longer recognized when linting with flat config and will be reported as errors as of v10.0.0. Replace them with /* global */ comments or define globals in your config file. See https://eslint.org/docs/latest/use/configure/migration-guide#eslint-env-configuration-comments for details. Found in ${e} at line ${t}.`,`ESLintEnvWarning`)}}}})),Cc=d(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).esquery=r()})(e,(function(){function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||i(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
91
262
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function n(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}(t)||i(t)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
92
263
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r(e){return(r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}function i(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var o=a((function(e,t){(function e(t){var n,r,i,a,o,s;function c(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]=typeof n==`object`&&n?c(n):n);return r}function l(e,t){this.parent=e,this.key=t}function u(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function d(){}function f(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function p(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function h(e,t){return new d().traverse(e,t)}function g(e,t){var n;return n=function(e,t){var n,r,i,a;for(r=e.length,i=0;r;)t(e[a=i+(n=r>>>1)])?r=n:(i=a+1,r-=n+1);return i}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n>=0&&(e.extendedRange[0]=t[n].range[1]),e}return n={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ChainExpression:`ChainExpression`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ComprehensionBlock:`ComprehensionBlock`,ComprehensionExpression:`ComprehensionExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DebuggerStatement:`DebuggerStatement`,DirectiveStatement:`DirectiveStatement`,DoWhileStatement:`DoWhileStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForInStatement:`ForInStatement`,ForOfStatement:`ForOfStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,GeneratorExpression:`GeneratorExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportExpression:`ImportExpression`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,ModuleSpecifier:`ModuleSpecifier`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,PrivateIdentifier:`PrivateIdentifier`,Program:`Program`,Property:`Property`,PropertyDefinition:`PropertyDefinition`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchStatement:`SwitchStatement`,SwitchCase:`SwitchCase`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`},i={AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AwaitExpression:[`argument`],BlockStatement:[`body`],BinaryExpression:[`left`,`right`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ComprehensionBlock:[`left`,`right`],ComprehensionExpression:[`blocks`,`filter`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExportAllDeclaration:[`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForStatement:[`init`,`test`,`update`,`body`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],GeneratorExpression:[`blocks`,`filter`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportExpression:[`source`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],Literal:[],LabeledStatement:[`label`,`body`],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],ModuleSpecifier:[],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],Super:[],SwitchStatement:[`discriminant`,`cases`],SwitchCase:[`test`,`consequent`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},r={Break:a={},Skip:o={},Remove:s={}},l.prototype.replace=function(e){this.parent[this.key]=e},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},d.prototype.path=function(){var e,t,n,r,i;function a(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a(i,this.__leavelist[e].path);return a(i,this.__current.path),i},d.prototype.type=function(){return this.current().type||this.__current.wrap},d.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},d.prototype.current=function(){return this.__current.node},d.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},d.prototype.notify=function(e){this.__state=e},d.prototype.skip=function(){this.notify(o)},d.prototype.break=function(){this.notify(a)},d.prototype.remove=function(){this.notify(s)},d.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},d.prototype.traverse=function(e,t){var n,r,i,s,c,l,d,h,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new u(e,null,null,null)),r.push(new u(null,null,null,null));n.length;)if((i=n.pop())!==y){if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(c=(s=i.node).type||i.wrap,!(_=this.__keys[c])){if(!this.__fallback)throw Error(`Unknown node type `+c+`.`);_=this.__fallback(s)}for(h=_.length;--h>=0;)if(v=s[d=_[h]]){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!m(r,v[g])){if(p(c,_[h]))i=new u(v[g],[d,g],`Property`,null);else{if(!f(v[g]))continue;i=new u(v[g],[d,g],null,null)}n.push(i)}}else if(f(v)){if(m(r,v))continue;n.push(new u(v,d,null,null))}}}}else if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return},d.prototype.replace=function(e,t){var n,r,i,c,d,m,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,m=new u(e,null,null,new l(b={root:e},`root`)),n.push(m),r.push(m);n.length;)if((m=n.pop())!==y){if((d=this.__execute(t.enter,m))!==void 0&&d!==a&&d!==o&&d!==s&&(m.ref.replace(d),m.node=d),this.__state!==s&&d!==s||(S(m),m.node=null),this.__state===a||d===a)return b.root;if((i=m.node)&&(n.push(y),r.push(m),this.__state!==o&&d!==o)){if(c=i.type||m.wrap,!(_=this.__keys[c])){if(!this.__fallback)throw Error(`Unknown node type `+c+`.`);_=this.__fallback(i)}for(h=_.length;--h>=0;)if(v=i[x=_[h]])if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(p(c,_[h]))m=new u(v[g],[x,g],`Property`,new l(v,g));else{if(!f(v[g]))continue;m=new u(v[g],[x,g],null,new l(v,g))}n.push(m)}}else f(v)&&n.push(new u(v,x,null,new l(i,x)))}}else if(m=r.pop(),(d=this.__execute(t.leave,m))!==void 0&&d!==a&&d!==o&&d!==s&&m.ref.replace(d),this.__state!==s&&d!==s||S(m),this.__state===a||d===a)return b.root;return b.root},t.Syntax=n,t.traverse=h,t.replace=function(e,t){return new d().replace(e,t)},t.attachComments=function(e,t,n){var i,a,o,s,l=[];if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(o=0,a=t.length;o<a;o+=1)(i=c(t[o])).extendedRange=[0,e.range[0]],l.push(i);e.leadingComments=l}return e}for(o=0,a=t.length;o<a;o+=1)l.push(g(c(t[o]),n));return s=0,h(e,{enter:function(e){for(var t;s<l.length&&!((t=l[s]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?r.Break:l[s].extendedRange[0]>e.range[1]?r.Skip:void 0}}),s=0,h(e,{leave:function(e){for(var t;s<l.length&&(t=l[s],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?r.Break:l[s].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=d,t.cloneEnvironment=function(){return e({})},t})(t)})),s=a((function(e){e.exports&&=function(){function e(t,n,r,i){this.message=t,this.expected=n,this.found=r,this.location=i,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),e.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t,n=``;for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?a(e.parts[t][0])+`-`+a(e.parts[t][1]):a(e.parts[t]);return`[`+(e.inverted?`^`:``)+n+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,(function(e){return`\\x0`+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return`\\x`+r(e)}))}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,(function(e){return`\\x0`+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return`\\x`+r(e)}))}return`Expected `+function(e){var t,r,i,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=(i=e[t],n[i.type](i));if(a.sort(),a.length>0){for(t=1,r=1;t<a.length;t++)a[t-1]!==a[t]&&(a[r]=a[t],r++);a.length=r}switch(a.length){case 1:return a[0];case 2:return a[0]+` or `+a[1];default:return a.slice(0,-1).join(`, `)+`, or `+a[a.length-1]}}(e)+` but `+function(e){return e?`"`+i(e)+`"`:`end of input`}(t)+` found.`},{SyntaxError:e,parse:function(t,n){n=n===void 0?{}:n;var r,i,a,o,s={},c={start:Ce},l=Ce,u=ye(` `,!1),d=/^[^ [\],():#!=><~+.]/,f=be([` `,`[`,`]`,`,`,`(`,`)`,`:`,`#`,`!`,`=`,`>`,`<`,`~`,`+`,`.`],!0,!1),p=ye(`>`,!1),m=ye(`~`,!1),h=ye(`+`,!1),g=ye(`,`,!1),_=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=ye(`!`,!1),y=ye(`*`,!1),b=ye(`#`,!1),x=ye(`[`,!1),S=ye(`]`,!1),C=/^[><!]/,w=be([`>`,`<`,`!`],!1,!1),T=ye(`=`,!1),E=function(e){return(e||``)+`=`},D=/^[><]/,O=be([`>`,`<`],!1,!1),k=ye(`.`,!1),A=function(e,t,n){return{type:`attribute`,name:e,operator:t,value:n}},j=ye(`"`,!1),M=/^[^\\"]/,N=be([`\\`,`"`],!0,!1),P=ye(`\\`,!1),F={type:`any`},I=function(e,t){return e+t},L=function(e){return{type:`literal`,value:(t=e.join(``),t.replace(/\\(.)/g,(function(e,t){switch(t){case`b`:return`\b`;case`f`:return`\f`;case`n`:return`
93
- `;case`r`:return`\r`;case`t`:return` `;case`v`:return`\v`;default:return t}})))};var t},R=ye(`'`,!1),z=/^[^\\']/,B=be([`\\`,`'`],!0,!1),V=/^[0-9]/,H=be([[`0`,`9`]],!1,!1),U=ye(`type(`,!1),ee=/^[^ )]/,W=be([` `,`)`],!0,!1),te=ye(`)`,!1),ne=/^[imsu]/,re=be([`i`,`m`,`s`,`u`],!1,!1),ie=ye(`/`,!1),ae=/^[^\]\\]/,oe=be([`]`,`\\`],!0,!1),G=/^[^\/\\[]/,se=be([`/`,`\\`,`[`],!0,!1),ce=ye(`:not(`,!1),le=ye(`:matches(`,!1),K=function(e){return{type:`matches`,selectors:e}},ue=ye(`:is(`,!1),de=ye(`:has(`,!1),fe=ye(`:first-child`,!1),pe=ye(`:last-child`,!1),me=ye(`:nth-child(`,!1),he=ye(`:nth-last-child(`,!1),ge=ye(`:`,!1),q=0,_e=[{line:1,column:1}],J=0,ve=[],Y={};if(`startRule`in n){if(!(n.startRule in c))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);l=c[n.startRule]}function ye(e,t){return{type:`literal`,text:e,ignoreCase:t}}function be(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function xe(e){var n,r=_e[e];if(r)return r;for(n=e-1;!_e[n];)n--;for(r={line:(r=_e[n]).line,column:r.column};n<e;)t.charCodeAt(n)===10?(r.line++,r.column=1):r.column++,n++;return _e[e]=r,r}function Se(e,t){var n=xe(e),r=xe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function X(e){q<J||(q>J&&(J=q,ve=[]),ve.push(e))}function Ce(){var e,t,n,r,i=36*q+0,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(t=Z())!==s&&(n=Ee())!==s&&Z()!==s?e=t=(r=n).length===1?r[0]:{type:`matches`,selectors:r}:(q=e,e=s),e===s&&(e=q,(t=Z())!==s&&(t=void 0),e=t),Y[i]={nextPos:q,result:e},e)}function Z(){var e,n,r=36*q+1,i=Y[r];if(i)return q=i.nextPos,i.result;for(e=[],t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));n!==s;)e.push(n),t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));return Y[r]={nextPos:q,result:e},e}function we(){var e,n,r,i=36*q+2,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f)),r!==s)for(;r!==s;)n.push(r),d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Te(){var e,n,r,i=36*q+3,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===62?(r=`>`,q++):(r=s,X(p)),r!==s&&Z()!==s?e=n=`child`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===126?(r=`~`,q++):(r=s,X(m)),r!==s&&Z()!==s?e=n=`sibling`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===43?(r=`+`,q++):(r=s,X(h)),r!==s&&Z()!==s?e=n=`adjacent`:(q=e,e=s)),e===s&&(e=q,t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u)),n!==s&&(r=Z())!==s?e=n=`descendant`:(q=e,e=s)))),Y[i]={nextPos:q,result:e},e)}function Ee(){var e,n,r,i,a,o,c,l,u=36*q+5,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=Oe())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function De(){var e,t,n,r,i,a=36*q+6,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(t=Te())===s&&(t=null),t!==s&&(n=Oe())!==s?(i=n,e=t=(r=t)?{type:r,left:{type:`exactNode`},right:i}:i):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}function Oe(){var e,t,n,r,i,a,o,c=36*q+7,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,(t=ke())!==s){for(n=[],r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);r!==s;)n.push(r),r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);n===s?(q=e,e=s):(o=t,e=t=n.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}function ke(){var e,n,r,i,a,o,c,l=36*q+8,u=Y[l];if(u)return q=u.nextPos,u.result;if(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n!==s){if(r=[],(i=Ae())!==s)for(;i!==s;)r.push(i),i=Ae();else r=s;r===s?(q=e,e=s):(a=n,c=(o=r).length===1?o[0]:{type:`compound`,selectors:o},a&&(c.subject=!0),e=n=c)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}function Ae(){var e,n=36*q+9,r=Y[n];return r?(q=r.nextPos,r.result):((e=function(){var e,n,r=36*q+10,i=Y[r];return i?(q=i.nextPos,i.result):(t.charCodeAt(q)===42?(n=`*`,q++):(n=s,X(y)),n!==s&&(n={type:`wildcard`,value:n}),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i=36*q+11,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===35?(n=`#`,q++):(n=s,X(b)),n===s&&(n=null),n!==s&&(r=we())!==s?e=n={type:`identifier`,value:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+12,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a=36*q+16,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+14,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o=36*q+20,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,5)===`type(`?(n=`type(`,q+=5):(n=s,X(U)),n!==s)if(Z()!==s){if(r=[],ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W)),i!==s)for(;i!==s;)r.push(i),ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n={type:`type`,value:r.join(``)},e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c=36*q+22,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===47?(n=`/`,q++):(n=s,X(ie)),n!==s){if(r=[],(i=Me())===s&&(i=Ne())===s&&(i=Pe()),i!==s)for(;i!==s;)r.push(i),(i=Me())===s&&(i=Ne())===s&&(i=Pe());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===47?(i=`/`,q++):(i=s,X(ie)),i===s?(q=e,e=s):((a=function(){var e,n,r=36*q+21,i=Y[r];if(i)return q=i.nextPos,i.result;if(e=[],ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re)),n!==s)for(;n!==s;)e.push(n),ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re));else e=s;return Y[r]={nextPos:q,result:e},e}())===s&&(a=null),a===s?(q=e,e=s):(o=a,n={type:`regexp`,value:new RegExp(r.join(``),o?o.join(``):``)},e=n)))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+13,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,C.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(w)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),e===s&&(D.test(t.charAt(q))?(e=t.charAt(q),q++):(e=s,X(O))),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o,c=36*q+17,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===34?(n=`"`,q++):(n=s,X(j)),n!==s){for(r=[],M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===34?(i=`"`,q++):(i=s,X(j)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;if(e===s)if(e=q,t.charCodeAt(q)===39?(n=`'`,q++):(n=s,X(R)),n!==s){for(r=[],z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===39?(i=`'`,q++):(i=s,X(R)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c,l=36*q+18,u=Y[l];if(u)return q=u.nextPos,u.result;for(e=q,n=q,r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));if(r===s?(q=n,n=s):(t.charCodeAt(q)===46?(i=`.`,q++):(i=s,X(k)),i===s?(q=n,n=s):n=r=[r,i]),n===s&&(n=null),n!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r===s?(q=e,e=s):(o=r,c=(a=n)?[].concat.apply([],a).join(``):``,n={type:`literal`,value:parseFloat(c+o.join(``))},e=n)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}())===s&&(i=function(){var e,t,n=36*q+19,r=Y[n];return r?(q=r.nextPos,r.result):((t=we())!==s&&(t={type:`literal`,value:t}),e=t,Y[n]={nextPos:q,result:e},e)}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&(n={type:`attribute`,name:n}),e=n)),Y[a]={nextPos:q,result:e},e)}())!==s&&Z()!==s?(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=r):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o,c,l,u=36*q+26,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,t.charCodeAt(q)===46?(n=`.`,q++):(n=s,X(k)),n!==s)if((r=we())!==s){for(i=[],a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);a!==s;)i.push(a),a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);i===s?(q=e,e=s):(l=r,n={type:`field`,name:i.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=n)}else q=e,e=s;else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a=36*q+27,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:not(`?(n=`:not(`,q+=5):(n=s,X(ce)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`not`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+28,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,9)===`:matches(`?(n=`:matches(`,q+=9):(n=s,X(le)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+29,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,4)===`:is(`?(n=`:is(`,q+=4):(n=s,X(ue)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+30,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:has(`?(n=`:has(`,q+=5):(n=s,X(de)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a,o,c,l,u=36*q+4,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=De())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`has`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+31,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,12)===`:first-child`?(n=`:first-child`,q+=12):(n=s,X(fe)),n!==s&&(n=Fe(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+32,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,11)===`:last-child`?(n=`:last-child`,q+=11):(n=s,X(pe)),n!==s&&(n=Ie(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o=36*q+33,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,11)===`:nth-child(`?(n=`:nth-child(`,q+=11):(n=s,X(me)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Fe(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a,o=36*q+34,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,16)===`:nth-last-child(`?(n=`:nth-last-child(`,q+=16):(n=s,X(he)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Ie(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i=36*q+35,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===58?(n=`:`,q++):(n=s,X(ge)),n!==s&&(r=we())!==s?e=n={type:`class`,name:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}()),Y[n]={nextPos:q,result:e},e)}function je(){var e,n,r,i,a,o,c,l,u=36*q+15,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=we())!==s){for(r=[],i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);i!==s;)r.push(i),i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);r===s?(q=e,e=s):(c=n,l=r,e=n=[].concat.apply([c],l).join(``))}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function Me(){var e,n,r,i,a=36*q+23,o=Y[a];if(o)return q=o.nextPos,o.result;if(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s){if(r=[],ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne()),i!==s)for(;i!==s;)r.push(i),ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=`[`+r.join(``)+`]`)}else q=e,e=s;return Y[a]={nextPos:q,result:e},e}function Ne(){var e,n,r,i=36*q+24,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===92?(n=`\\`,q++):(n=s,X(P)),n===s?(q=e,e=s):(t.length>q?(r=t.charAt(q),q++):(r=s,X(F)),r===s?(q=e,e=s):e=n=`\\`+r),Y[i]={nextPos:q,result:e},e)}function Pe(){var e,n,r,i=36*q+25,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se)),r!==s)for(;r!==s;)n.push(r),G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Fe(e){return{type:`nth-child`,index:{type:`literal`,value:e}}}function Ie(e){return{type:`nth-last-child`,index:{type:`literal`,value:e}}}if((r=l())!==s&&q===t.length)return r;throw r!==s&&q<t.length&&X({type:`end`}),i=ve,a=J<t.length?t.charAt(J):null,o=J<t.length?Se(J,J+1):Se(J,J),new e(e.buildMessage(i,a),i,a,o)}}}()}));function c(e,t){for(var n=0;n<t.length;++n){if(e==null)return e;e=e[t[n]]}return e}var l=typeof WeakMap==`function`?new WeakMap:null;function u(e){if(e==null)return function(){return!0};if(l!=null){var t=l.get(e);return t??(t=d(e),l.set(e,t)),t}return d(e)}function d(e){switch(e.type){case`wildcard`:return function(){return!0};case`identifier`:var t=e.value.toLowerCase();return function(e,n,r){return t===e[r&&r.nodeTypeKey||`type`].toLowerCase()};case`exactNode`:return function(e,t){return t.length===0};case`field`:var n=e.name.split(`.`);return function(e,t){return function e(t,n,r,i){for(var a=n,o=i;o<r.length;++o){if(a==null)return!1;var s=a[r[o]];if(Array.isArray(s)){for(var c=0;c<s.length;++c)if(e(t,s[c],r,o+1))return!0;return!1}a=s}return t===a}(e,t[n.length-1],n,0)};case`matches`:var i=e.selectors.map(u);return function(e,t,n){for(var r=0;r<i.length;++r)if(i[r](e,t,n))return!0;return!1};case`compound`:var a=e.selectors.map(u);return function(e,t,n){for(var r=0;r<a.length;++r)if(!a[r](e,t,n))return!1;return!0};case`not`:var s=e.selectors.map(u);return function(e,t,n){for(var r=0;r<s.length;++r)if(s[r](e,t,n))return!1;return!0};case`has`:var l=e.selectors.map(u);return function(e,t,n){var r=!1,i=[];return o.traverse(e,{enter:function(e,t){t!=null&&i.unshift(t);for(var a=0;a<l.length;++a)if(l[a](e,i,n))return r=!0,void this.break()},leave:function(){i.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||`iteration`}),r};case`child`:var d=u(e.left),f=u(e.right);return function(e,t,n){return!!(t.length>0&&f(e,t,n))&&d(t[0],t.slice(1),n)};case`descendant`:var p=u(e.left),_=u(e.right);return function(e,t,n){if(_(e,t,n)){for(var r=0,i=t.length;r<i;++r)if(p(t[r],t.slice(r+1),n))return!0}return!1};case`attribute`:var v=e.name.split(`.`);switch(e.operator){case void 0:return function(e){return c(e,v)!=null};case`=`:switch(e.value.type){case`regexp`:return function(t){var n=c(t,v);return typeof n==`string`&&e.value.value.test(n)};case`literal`:var y=`${e.value.value}`;return function(e){return y===`${c(e,v)}`};case`type`:return function(t){return e.value.value===r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`!=`:switch(e.value.type){case`regexp`:return function(t){return!e.value.value.test(c(t,v))};case`literal`:var b=`${e.value.value}`;return function(e){return b!==`${c(e,v)}`};case`type`:return function(t){return e.value.value!==r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`<=`:return function(t){return c(t,v)<=e.value.value};case`<`:return function(t){return c(t,v)<e.value.value};case`>`:return function(t){return c(t,v)>e.value.value};case`>=`:return function(t){return c(t,v)>=e.value.value}}throw Error(`Unknown operator: ${e.operator}`);case`sibling`:var x=u(e.left),S=u(e.right);return function(t,n,r){return S(t,n,r)&&m(t,x,n,`LEFT_SIDE`,r)||e.left.subject&&x(t,n,r)&&m(t,S,n,`RIGHT_SIDE`,r)};case`adjacent`:var C=u(e.left),w=u(e.right);return function(t,n,r){return w(t,n,r)&&h(t,C,n,`LEFT_SIDE`,r)||e.right.subject&&C(t,n,r)&&h(t,w,n,`RIGHT_SIDE`,r)};case`nth-child`:var T=e.index.value,E=u(e.right);return function(e,t,n){return E(e,t,n)&&g(e,t,T,n)};case`nth-last-child`:var D=-e.index.value,O=u(e.right);return function(e,t,n){return O(e,t,n)&&g(e,t,D,n)};case`class`:var k=e.name.toLowerCase();return function(t,n,r){if(r&&r.matchClass)return r.matchClass(e.name,t,n);if(r&&r.nodeTypeKey)return!1;switch(k){case`statement`:if(t.type.slice(-9)===`Statement`)return!0;case`declaration`:return t.type.slice(-11)===`Declaration`;case`pattern`:if(t.type.slice(-7)===`Pattern`)return!0;case`expression`:return t.type.slice(-10)===`Expression`||t.type.slice(-7)===`Literal`||t.type===`Identifier`&&(n.length===0||n[0].type!==`MetaProperty`)||t.type===`MetaProperty`;case`function`:return t.type===`FunctionDeclaration`||t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`}throw Error(`Unknown class name: ${e.name}`)}}throw Error(`Unknown selector type: ${e.type}`)}function f(e,t){var n=t&&t.nodeTypeKey||`type`,r=e[n];return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:o.VisitorKeys[r]?o.VisitorKeys[r]:t&&typeof t.fallback==`function`?t.fallback(e):Object.keys(e).filter((function(e){return e!==n}))}function p(e,t){var n=t&&t.nodeTypeKey||`type`;return e!==null&&r(e)===`object`&&typeof e[n]==`string`}function m(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;var d=void 0,m=void 0;i===`LEFT_SIDE`?(d=0,m=u):(d=u+1,m=l.length);for(var h=d;h<m;++h)if(p(l[h],a)&&n(l[h],r,a))return!0}}return!1}function h(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;if(i===`LEFT_SIDE`&&u>0&&p(l[u-1],a)&&n(l[u-1],r,a)||i===`RIGHT_SIDE`&&u<l.length-1&&p(l[u+1],a)&&n(l[u+1],r,a))return!0}}return!1}function g(e,n,r,i){if(r===0)return!1;var a=t(n,1)[0];if(!a)return!1;for(var o=f(a,i),s=0;s<o.length;++s){var c=a[o[s]];if(Array.isArray(c)){var l=r<0?c.length+r:r-1;if(l>=0&&l<c.length&&c[l]===e)return!0}}return!1}function _(e,t,i,a){if(t){var s=[],c=u(t),l=function e(t,i){if(t==null||r(t)!=`object`)return[];i??=t;for(var a=t.subject?[i]:[],o=Object.keys(t),s=0;s<o.length;++s){var c=o[s],l=t[c];a.push.apply(a,n(e(l,c===`left`?l:i)))}return a}(t).map(u);o.traverse(e,{enter:function(e,t){if(t!=null&&s.unshift(t),c(e,s,a))if(l.length)for(var n=0,r=l.length;n<r;++n){l[n](e,s,a)&&i(e,t,s);for(var o=0,u=s.length;o<u;++o){var d=s.slice(o+1);l[n](s[o],d,a)&&i(s[o],t,d)}}else i(e,t,s)},leave:function(){s.shift()},keys:a&&a.visitorKeys,fallback:a&&a.fallback||`iteration`})}}function v(e,t,n){var r=[];return _(e,t,(function(e){r.push(e)}),n),r}function y(e){return s.parse(e)}function b(e,t,n){return v(e,y(t),n)}return b.parse=y,b.match=v,b.traverse=_,b.matches=function(e,t,n,r){return!t||!!e&&(n||=[],u(t)(e,n,r))},b.query=b,b}))})),dc=d(((e,t)=>{let n=uc();var r=class{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(e,t,n,r,i,a){this.source=e,this.isExit=t,this.root=n,this.nodeTypes=r,this.attributeCount=i,this.identifierCount=a}compare(e){return this.attributeCount-e.attributeCount||this.identifierCount-e.identifierCount||(this.source<=e.source?-1:1)}};let i=new Map;function a(...e){return[...new Set(e.flat())]}function o(...e){if(e.length===0)return[];let t=[...new Set(e[0])];for(let n of e.slice(1))t=t.filter(e=>n.includes(e));return t}function s(e){let t=0,n=0;function r(e){switch(e.type){case`identifier`:return n++,[e.value];case`not`:return e.selectors.map(r),null;case`matches`:{let t=e.selectors.map(r);return t.every(Boolean)?a(...t):null}case`compound`:{let t=e.selectors.map(r).filter(e=>e);return t.length?o(...t):null}case`attribute`:case`field`:case`nth-child`:case`nth-last-child`:return t++,null;case`child`:case`descendant`:case`sibling`:case`adjacent`:return r(e.left),r(e.right);case`class`:return e.name===`function`?[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]:null;default:return null}}return{nodeTypes:r(e),attributeCount:t,identifierCount:n}}function c(e){return e===`*`?{type:`wildcard`,value:`*`}:/^[a-z]+$/iu.test(e)?{type:`identifier`,value:e}:null}function l(e){try{return n.parse(e)}catch(t){throw t.location&&t.location.start&&typeof t.location.start.offset==`number`?SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`,{cause:t}):t}}function u(e){if(i.has(e))return i.get(e);let t=e.replace(/:exit$/u,``),n=c(t)??l(t),{nodeTypes:a,attributeCount:o,identifierCount:u}=s(n),d=new r(e,e.endsWith(`:exit`),n,a,o,u);return i.set(e,d),d}function d(e,t,r,i){return n.matches(e,t,r,i)}t.exports={parse:u,matches:d,ESQueryParsedSelector:r}})),fc=d(((e,t)=>{let{parse:n,matches:r}=dc(),i=U();function a(e,t){return e.compare(t)}var o=class{constructor(e,t){this.visitor=e,this.esqueryOptions=t,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.forEachName(e=>{let t=n(e);if(t.nodeTypes){let e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;t.nodeTypes.forEach(n=>{e.has(n)||e.set(n,[]),e.get(n).push(t)});return}(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(e=>e.sort(a)),this.exitSelectorsByNodeType.forEach(e=>e.sort(a))}matches(e,t,n){return r(e,n.root,t,this.esqueryOptions)}calculateSelectors(e,t,n){let r=this.esqueryOptions?.nodeTypeKey||`type`,i=[],a=(n?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e[r])||[],o=n?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,s=0,c=0;for(;s<a.length||c<o.length;){let n=s<a.length,r=c<o.length,l=o[c],u=a[s],d=r&&n&&l.compare(u)<0;!n||d?(c++,this.matches(e,t,l)&&i.push(l.source)):(s++,this.matches(e,t,u)&&i.push(u.source))}return i}};t.exports={SourceCodeTraverser:class{#e;static instances=new WeakMap;constructor(e){this.#e=e}static getInstance(e){return this.instances.has(e)||this.instances.set(e,new this(e)),this.instances.get(e)}traverseSync(e,t,{steps:n}={}){let r=new o(t,{visitorKeys:e.visitorKeys??this.#e.visitorKeys,fallback:i.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),a=[];for(let i of n??e.traverse())switch(i.kind){case 1:try{i.phase===1?(r.calculateSelectors(i.target,a,!1).forEach(e=>{t.callSync(e,...i.args??[i.target])}),a.unshift(i.target)):(a.shift(),r.calculateSelectors(i.target,a,!0).forEach(e=>{t.callSync(e,...i.args??[i.target])}))}catch(e){throw e.currentNode=i.target,e}break;case 2:t.callSync(i.target,...i.args);break;default:throw Error(`Invalid traversal step found: "${i.kind}".`)}}}}})),pc=d(((e,t)=>{function n(e,t){return{range:[e,e],text:t}}t.exports={RuleFixer:class{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,t){let n=this.#e.getRange(e);return this.insertTextAfterRange(n,t)}insertTextAfterRange(e,t){return n(e[1],t)}insertTextBefore(e,t){let n=this.#e.getRange(e);return this.insertTextBeforeRange(n,t)}insertTextBeforeRange(e,t){return n(e[0],t)}replaceText(e,t){let n=this.#e.getRange(e);return this.replaceTextRange(n,t)}replaceTextRange(e,t){return{range:e,text:t}}remove(e){let t=this.#e.getRange(e);return this.removeRange(t)}removeRange(e){return{range:e,text:``}}}}})),mc=d(((e,t)=>{function n(){return/\{\{([^{}]+)\}\}/gu}function r(e,t){if(!t)return e;let r=n();return e.replace(r,(e,n)=>{let r=n.trim();return r in t?t[r]:e})}t.exports={getPlaceholderMatcher:n,interpolate:r}})),hc=d(((e,t)=>{let n=Wa(),{RuleFixer:r}=pc(),{interpolate:i}=mc(),a=Xs(),o={start:{line:1,column:0},end:{line:1,column:1}};function s({line:e,column:t,endLine:n,endColumn:r},i){let a=i.columnStart===1?0:1,o=i.lineStart===1?0:1,s=n===void 0?n:n+o,c=r===void 0?r:r+a;return{line:e+o,column:t+a,endLine:s,endColumn:c}}function c(e){return Object.hasOwn(a.rules,e)?`Rule '${e}' was removed and replaced by: ${a.rules[e].join(`, `)}`:`Definition for rule '${e}' was not found.`}function l(e,t,n){let{ruleId:r=null,loc:i=o,message:a=c(e.ruleId)}=e;return{ruleId:r,message:a,...s({line:i.start.line,column:i.start.column,endLine:i.end.line,endColumn:i.end.column},n),severity:t,nodeType:null}}function u(...e){return e.length===1?Object.assign({},e[0]):typeof e[1]==`string`?{node:e[0],message:e[1],data:e[2],fix:e[3]}:{node:e[0],loc:e[1],message:e[2],data:e[3],fix:e[4]}}function d(e){e.node?n(typeof e.node==`object`,`Node must be an object`):n(e.loc,`Node must be provided when reporting error if location is not provided`)}function f(e){return e.loc.start?e.loc:{start:e.loc,end:null}}function p(e){return e?{range:[e.range[0],e.range[1]],text:e.text}:null}function m(e){e&&n(e.range&&typeof e.range[0]==`number`&&typeof e.range[1]==`number`,`Fix has invalid range: ${JSON.stringify(e,null,2)}`)}function h(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function g(e,t){for(let t of e)m(t);if(e.length===0)return null;if(e.length===1)return p(e[0]);e.sort(h);let r=t.text,i=e[0].range[0],a=e.at(-1).range[1],o=``,s=-(2**53-1);for(let t of e)n(t.range[0]>=s,`Fix objects must not be overlapped in a report.`),t.range[0]>=0&&(o+=r.slice(Math.max(0,i,s),t.range[0])),o+=t.text,s=t.range[1];return o+=r.slice(Math.max(0,i,s),a),{range:[i,a],text:o}}function _(e,t){if(typeof e.fix!=`function`)return null;let n=new r({sourceCode:t}),i=e.fix(n);return i&&Symbol.iterator in i?g(Array.from(i),t):(m(i),p(i))}function v(e,t,n){return!e.suggest||!Array.isArray(e.suggest)?[]:e.suggest.map(e=>{let r=e.desc||n[e.messageId];return{...e,desc:i(r,e.data),fix:_(e,t)}}).filter(({fix:e})=>e)}function y(e){let{language:t}=e,n=t.columnStart===1?0:1,r=t.lineStart===1?0:1,i={ruleId:e.ruleId,severity:e.severity,message:e.message,line:e.loc.start.line+r,column:e.loc.start.column+n,nodeType:e.node&&e.node.type||null};return e.messageId&&(i.messageId=e.messageId),e.loc.end&&(i.endLine=e.loc.end.line+r,i.endColumn=e.loc.end.column+n),e.fix&&(i.fix=e.fix),e.suggestions&&e.suggestions.length>0&&(i.suggestions=e.suggestions),i}function b(e,t){e&&Array.isArray(e)&&e.forEach(e=>{if(e.messageId){let{messageId:n}=e;if(!t)throw TypeError(`context.report() called with a suggest option with a messageId '${n}', but no messages were present in the rule metadata.`);if(!t[n])throw TypeError(`context.report() called with a suggest option with a messageId '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);if(e.desc)throw TypeError(`context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.`)}else if(!e.desc)throw TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof e.fix!=`function`)throw TypeError(`context.report() called with a suggest option without a fix function. See: ${JSON.stringify(e,null,2)}`)})}function x(e,t){if(e.messageId){if(!t)throw TypeError(`context.report() called with a messageId, but no messages were present in the rule metadata.`);let n=e.messageId;if(e.message)throw TypeError(`context.report() called with a message and a messageId. Please only pass one.`);if(!t||!Object.hasOwn(t,n))throw TypeError(`context.report() called with a messageId of '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);return t[n]}if(e.message)return e.message;throw TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}t.exports={FileReport:class{messages=[];#e;#t;#n;#r;constructor({ruleMapper:e,sourceCode:t,language:n,disableFixes:r=!1}){this.#e=e,this.#t=t,this.#n=n,this.#r=r}addRuleMessage(e,t,...n){let r=u(...n),a=this.#e(e)?.meta?.messages;d(r);let o=x(r,a);return b(r.suggest,a),this.messages.push(y({ruleId:e,severity:t,node:r.node,message:i(o,r.data),messageId:r.messageId,loc:r.loc?f(r):this.#t.getLoc(r.node),fix:this.#r?null:_(r,this.#t),suggestions:this.#r?[]:v(r,this.#t,a),language:this.#n})),this.messages.at(-1)}addError(e){let t=l(e,2,this.#n);return this.messages.push(t),t}addFatal(e){let t=l(e,2,this.#n);return t.fatal=!0,this.messages.push(t),t}addWarning(e){let t=l(e,1,this.#n);return this.messages.push(t),t}},updateLocationInformation:s}})),gc=d(((e,t)=>{let n=h(`node:path`),r=Oo(),i=U(),a=oe(),o=Go(),s=C(),{Legacy:{ConfigOps:c,ConfigValidator:l,environments:u}}=Bs(),d=li(),{SourceCode:f}=Ao(),p=Qs(),{ConfigCommentParser:m}=wo(),g=$s(),_=ec(),{SourceCodeVisitor:v}=tc(),y=Fo(),{FlatConfigArray:b}=nc(),{startTime:x,endTime:w}=Po(),{assertIsRuleSeverity:T}=Us(),{normalizeSeverityToString:E,normalizeSeverityToNumber:D}=Hs(),{deepMergeArrays:O}=Vs(),k=Mo(),{activeFlags:A,inactiveFlags:j,getInactivityReasonMessage:M}=rc(),N=S()(`eslint:linter`),P=new m,F=Symbol.for(`eslint.RuleTester.parser`),{LATEST_ECMA_VERSION:I}=le(),{VFile:L}=ic(),{ParserService:R}=ac(),{FileContext:z}=oc(),{ProcessorService:B}=sc(),{containsDifferentProperty:V}=cc(),{Config:H}=Zs(),{WarningService:ee}=lc(),{SourceCodeTraverser:W}=fc(),{FileReport:te,updateLocationInformation:ne}=hc();function re(e){return e===a||e[F]===a}function ie(e,t,{exportedVariables:n,enabledGlobals:i}){for(let n of new Set([...Object.keys(t),...Object.keys(i)])){let a=t[n]===void 0?void 0:c.normalizeConfigGlobal(t[n]),o=i[n]&&i[n].value||a,s=i[n]&&i[n].comments;if(o===`off`)continue;let l=e.set.get(n);l||(l=new r.Variable(n,e),e.variables.push(l),e.set.set(n,l)),l.eslintImplicitGlobalSetting=a,l.eslintExplicitGlobal=s!==void 0,l.eslintExplicitGlobalComments=s,l.writeable=o===`writable`}Object.keys(n).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)}),e.through=e.through.filter(t=>{let n=t.identifier.name,r=e.set.get(n);return r?(t.resolved=r,r.references.push(t),!1):!0})}function ae(e){return Array.isArray(e)?e:[e]}function G(e,t,n,r,i,a,o){let s=e.rules?.[r],c=s?ae(s):[`off`],l=E(c[0]);if(l!==E(i[0]))return;let u=s?`is already configured to '${l}'`:`is not enabled so can't be turned off`,d;if(c.length===1&&i.length===1||l===`off`?d=`Unused inline config ('${r}' ${u}).`:V(i.slice(1),c.slice(1))||(d=a.length===1?`Unused inline config ('${r}' ${u}).`:`Unused inline config ('${r}' ${u} with the same options).`),d){let e=D(o),r={message:d,loc:t};e===1?n.addWarning(r):e===2&&n.addError(r)}}function se({type:e,value:t,justification:n,node:r},i,a,o,s){let c=Object.keys(P.parseListConfig(t)),l=c.length?c:[null],u=[],d={node:r,value:t,ruleIds:c};for(let t of l){let c=o.getLoc(r);if(t===null||i(t))if(e===`disable-next-line`){let{line:r,column:i}=ne(c.end,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else{let{line:r,column:i}=ne(c.start,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else s.addError({ruleId:t,loc:c})}return u}function ce(e,t,n,r,i){let a={},o=Object.create(null),s={},u=[],d=new l({builtInRules:g});return e.getInlineConfigNodes().filter(e=>e.type!==`Shebang`).forEach(l=>{let f=P.parseDirective(l.value);if(!f)return;let{label:p,value:m,justification:h}=f,g=/^eslint-disable-(?:next-)?line$/u.test(p);if(l.type===`Line`&&!g)return;let _=e.getLoc(l);if(n){let e=l.type===`Block`?`/*${p}*/`:`//${p}`;i.addWarning({ruleId:null,message:`'${e}' has no effect because you have 'noInlineConfig' setting in ${n}.`,loc:_});return}if(p===`eslint-disable-line`&&_.start.line!==_.end.line){let e=`${p} comment should not span multiple lines.`;i.addError({message:e,loc:_});return}switch(p){case`eslint-disable`:case`eslint-enable`:case`eslint-disable-next-line`:case`eslint-disable-line`:{let n=se({type:p.slice(7),value:m,justification:h,node:l},t,k,e,i);u.push(...n);break}case`exported`:Object.assign(s,P.parseListConfig(m));break;case`globals`:case`global`:for(let[e,t]of Object.entries(P.parseStringConfig(m))){let n;try{n=c.normalizeConfigGlobal(t)}catch(e){i.addError({loc:_,message:e.message});continue}o[e]?(o[e].comments.push(l),o[e].value=n):o[e]={comments:[l],value:n}}break;case`eslint`:{let e=P.parseJSONLikeConfig(m);e.ok?Object.keys(e.config).forEach(n=>{let o=t(n),s=e.config[n];if(!o){i.addError({ruleId:n,loc:_});return}if(Object.hasOwn(a,n)){i.addError({message:`Rule "${n}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:_});return}let c=ae(s);c.length===1&&r.rules&&Object.hasOwn(r.rules,n)&&(c=[c[0],...ae(r.rules[n]).slice(1)]);try{d.validateRuleOptions(o,n,c)}catch(e){if(e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw e;i.addError({ruleId:n,message:e.message,loc:_});return}a[n]=c}):i.addFatal({loc:_,message:e.error.message});break}}}),{configuredRules:a,enabledGlobals:o,exportedVariables:s,disableDirectives:u}}function K(e,t,n,r){let i=[];if(e.getDisableDirectives){let{directives:a,problems:o}=e.getDisableDirectives();Array.isArray(o)&&o.forEach(e=>r.addError(e)),a.forEach(a=>{let o=se(a,t,n,e,r);i.push(...o)})}return i}function ue(e,t){return re(e)&&t===`latest`?a.latestEcmaVersion:t>=2015?t-2009:t}function de(e){switch(e){case 3:return 3;case 5:case void 0:return 5;default:if(typeof e==`number`)return e>=2015?e:e+2009}return I}let fe=/\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;function pe(e){let t,n;for(fe.lastIndex=0;(t=fe.exec(e))!==null;)t[0].endsWith(`*/`)&&(n=Object.assign(n||{},P.parseListConfig(P.parseDirective(t[0].slice(2,-2)).value)));return n}function me(e){let t=e.split(n.sep),r=t.lastIndexOf(`<text>`);return r===-1?e:t.slice(r).join(n.sep)}function he(e,t){let n=t.linterOptions||t,r=n.noInlineConfig===!0,i=e.allowInlineConfig===!1,a=t.configNameOfNoInlineConfig?` (${t.configNameOfNoInlineConfig})`:``,o=e.reportUnusedDisableDirectives;typeof o==`boolean`&&(o=o?`error`:`off`),typeof o!=`string`&&(o=typeof n.reportUnusedDisableDirectives==`boolean`?n.reportUnusedDisableDirectives?`warn`:`off`:n.reportUnusedDisableDirectives===void 0?`off`:E(n.reportUnusedDisableDirectives));let s=n.reportUnusedInlineConfigs===void 0?`off`:E(n.reportUnusedInlineConfigs),c=e.ruleFilter;return typeof c!=`function`&&(c=()=>!0),{filename:me(e.filename||`<input>`),allowInlineConfig:!i,warnInlineConfig:r&&!i?`your config${a}`:null,reportUnusedDisableDirectives:o,reportUnusedInlineConfigs:s,disableFixes:!!e.disableFixes,stats:e.stats,ruleFilter:c}}function ge(e,t,n){let r=o(n.filter(e=>e.parserOptions).reduce((e,t)=>o(e,t.parserOptions),{}),t||{});return r.sourceType===`module`&&(r.ecmaFeatures=Object.assign({},r.ecmaFeatures,{globalReturn:!1})),r.ecmaVersion=ue(e,r.ecmaVersion),r}function q({globals:e,parser:t,parserOptions:n}){let{ecmaVersion:r,sourceType:i}=n;return{globals:e,ecmaVersion:de(r),sourceType:i,parser:t,parserOptions:n}}function _e(e,t){return Object.assign(Object.create(null),...t.filter(e=>e.globals).map(e=>e.globals),e)}function J(e,t,n){let{type:r,key:i}=t;n.times||={passes:[{}]};let a=n.fixPasses;a>n.times.passes.length-1&&n.times.passes.push({}),i?(n.times.passes[a][r]??={},n.times.passes[a][r][i]??={total:0},n.times.passes[a][r][i].total+=e):(n.times.passes[a][r]??={total:0},n.times.passes[a][r].total+=e)}function ve(e,t){return Array.isArray(e)?O(t,e.slice(1)):t??[]}function Y(e,t,n){let a=t.parserOptions.ecmaFeatures||{},o=t.ecmaVersion||5;return r.analyze(e,{ignoreEval:!0,nodejsScope:a.globalReturn,impliedStrict:a.impliedStrict,ecmaVersion:typeof o==`number`?o:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||i.KEYS,fallback:d.getKeys})}function ye(e,t){if(!e||typeof e!=`object`||typeof e.create!=`function`)throw TypeError(`Error while loading rule '${t.id}': Rule must be an object with a \`create\` method`);try{return e.create(t)}catch(e){throw e.message=`Error while loading rule '${t.id}': ${e.message}`,e}}function be(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h=new v,g=new z({cwd:l,filename:s,physicalFilename:u||s,sourceCode:e,parserOptions:{...a.parserOptions},parserPath:r,languageOptions:a,settings:o}),_=e.traverse();return Object.keys(t).forEach(e=>{let r=H.getRuleNumericSeverity(t[e]);if(r===0||d&&!d({ruleId:e,severity:r}))return;let i=n(e);if(!i){m.addError({ruleId:e});return}let a=g.extend({id:e,options:ve(t[e],c?i.meta?.defaultOptions:void 0),report(...t){let n=m.addRuleMessage(e,r,...t);if(n.fix&&!(i.meta&&i.meta.fixable))throw Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(n.suggestions&&!(i.meta&&i.meta.hasSuggestions===!0))throw i.meta&&i.meta.docs&&i.meta.docs.suggestion!==void 0?Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),o=y.enabled||f?y.time(e,ye,f)(i,a):ye(i,a),s=f?o.result:o;f&&J(o.tdiff,{type:`rules`,key:e},p);function l(t){return function(...n){try{let r=t(...n),i=f?r.result:r;return f&&J(r.tdiff,{type:`rules`,key:e},p),i}catch(t){throw t.ruleId=e,t}}}if(s==null)throw Error(`The create() function for rule '${e}' did not return an object.`);Object.keys(s).forEach(t=>{let n=y.enabled||f?y.time(e,s[t],f):s[t];h.add(t,l(n))})}),W.getInstance(i).traverseSync(e,h,{steps:_}),m}function xe(e){if(typeof e==`object`){let{hasBOM:t,text:n}=e;return(t?``:``)+n}return String(e)}function Se(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginEnvironments.get(t)||u.get(t)||null}function X(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginRules.get(t)||e.ruleMap.get(t)}function Ce(e){if(e)return e;if(typeof process==`object`)return process.cwd()}let Z=new WeakMap;function we(e){let{configType:t}=Z.get(e);if(t===`flat`)throw Error(`This method cannot be used with flat config. Add your entries directly into the config array.`)}t.exports={Linter:class{constructor({cwd:e,configType:t=`flat`,flags:n=[],warningService:r=new ee}={}){let i=[];n.forEach(e=>{if(j.has(e)){let t=j.get(e),n=`The flag '${e}' is inactive: ${M(t)}`;if(t.replacedBy===void 0)throw Error(n);typeof t.replacedBy==`string`&&i.push(t.replacedBy),r.emitInactiveFlagWarning(e,n);return}if(!A.has(e))throw Error(`Unknown flag '${e}'.`);i.push(e)}),Z.set(this,{cwd:Ce(e),flags:i,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:t,parserMap:new Map([[`espree`,a]]),ruleMap:new g,warningService:r}),this.version=s.version}static get version(){return s.version}hasFlag(e){return Z.get(this).flags.includes(e)}#e(e,t,n){let r=Z.get(this),i=t||{},o=he(n,i),s=`espree`,c=a;if(typeof i.parser==`object`&&i.parser!==null)s=i.parser.filePath,c=i.parser.definition;else if(typeof i.parser==`string`){if(!r.parserMap.has(i.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${i.parser}' was not found.`,line:0,column:0,nodeType:null}];s=i.parser,c=r.parserMap.get(i.parser)}let l=o.allowInlineConfig&&!o.warnInlineConfig?pe(e.body):{},u=Object.assign({builtin:!0},i.env,l),d=Object.keys(u).filter(e=>u[e]).map(e=>Se(r,e)).filter(e=>e),m=ge(c,i.parserOptions||{},d),h=_e(i.globals||{},d),g=i.settings||{},_=q({globals:i.globals,parser:c,parserOptions:m});if(r.lastSourceCode)r.lastSourceCode.scopeManager||(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,_)}));else{let t;o.stats&&(t=x());let n=new R().parseSync(e,{language:k,languageOptions:_});if(o.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let v=r.lastSourceCode,y=new te({ruleMapper:e=>X(r,e),language:k,sourceCode:v,disableFixes:o.disableFixes}),b=o.allowInlineConfig?ce(v,e=>X(r,e),o.warnInlineConfig,i,y):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ie(v.scopeManager.scopes[0],h,{exportedVariables:b.exportedVariables,enabledGlobals:b.enabledGlobals});let S=Object.assign({},i.rules,b.configuredRules);try{be(v,S,e=>X(r,e),s,k,_,g,o.filename,!0,r.cwd,n.physicalFilename,null,o.stats,r,y)}catch(e){if(e.message+=`\nOccurred while linting ${o.filename}`,N(`An error occurred while traversing`),N(`Filename:`,o.filename),e.currentNode){let{line:t}=v.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,m),N(`Parser Path:`,s),N(`Settings:`,g),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:k,sourceCode:v,directives:b.disableDirectives,disableFixes:o.disableFixes,problems:y.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:o.reportUnusedDisableDirectives})}_verifyWithoutProcessors(e,t,n){let r=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#e(o,t,n)}verify(e,t,n){N(`Verify`);let{configType:r,cwd:i}=Z.get(this),a=typeof n==`string`?{filename:n}:n||{},o=t??{};if(r!==`eslintrc`){let t=o;return(!Array.isArray(o)||typeof o.getConfig!=`function`)&&(t=new b(o,{basePath:i}),t.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,t,a,!0))}return typeof o.extractConfig==`function`?this._distinguishSuppressedMessages(this._verifyWithConfigArray(e,o,a)):a.preprocess||a.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(e,o,a)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(e,o,a))}_verifyWithFlatConfigArrayAndProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path||`(unnamed)`),typeof e==`string`?this._verifyWithFlatConfigArrayAndWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithFlatConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#t(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}#t(e,t,n){let r=Z.get(this),i=t||{},{settings:a={},languageOptions:o}=i,s=he(n,i);if(r.lastSourceCode)r.lastSourceCode.scopeManager===null&&(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,o)}));else{let t;s.stats&&(t=x());let n=new R().parseSync(e,i);if(s.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let c=r.lastSourceCode,l=new te({ruleMapper:e=>i.getRuleDefinition(e),language:i.language,sourceCode:c,disableFixes:s.disableFixes});c.applyLanguageOptions?.(o);let u={rules:{}};if(s.allowInlineConfig)if(s.warnInlineConfig)c.getInlineConfigNodes&&c.getInlineConfigNodes().forEach(e=>{let t=c.getLoc(e),n=c.getRange(e);l.addWarning({message:`'${c.text.slice(n[0],n[1])}' has no effect because you have 'noInlineConfig' setting in ${s.warnInlineConfig}.`,loc:t})});else{if(i.language===k)for(let e of c.getInlineConfigNodes()){let{label:t}=P.parseDirective(e.value);t===`eslint-env`&&r.warningService.emitESLintEnvWarning(s.filename,e.loc.start.line)}let e=c.applyInlineConfig?.();if(e){e.problems.forEach(e=>{l.addFatal(e)});for(let{config:t,loc:n}of e.configs)Object.keys(t.rules).forEach(e=>{let r=i.getRuleDefinition(e),a=t.rules[e];if(!r){l.addError({ruleId:e,loc:n});return}if(Object.hasOwn(u.rules,e)){l.addError({message:`Rule "${e}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:n});return}try{let t=ae(a),o=t;T(e,o[0]);let c=!0;if(o.length===1&&i.rules&&Object.hasOwn(i.rules,e))o=[o[0],...i.rules[e].slice(1)],i.rules[e][0]>0&&(c=!1);else{let e=o.slice(1),t=O(r.meta?.defaultOptions,e);t.length&&(o=[o[0],...t])}s.reportUnusedInlineConfigs!==`off`&&G(i,n,l,e,o,t,s.reportUnusedInlineConfigs),c&&i.validateRulesConfig({[e]:o}),u.rules[e]=o}catch(t){if(t.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw t;let r=t.message.slice(t.message.startsWith(`Key "rules":`)?t.message.indexOf(`:`,12)+1:t.message.indexOf(`:`)+1).trim();t.messageTemplate&&(r+=` You passed "${a}".`),l.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\t${r}\n`,loc:n})}})}}let d=s.allowInlineConfig&&!s.warnInlineConfig?K(c,e=>i.getRuleDefinition(e),i.language,l):[],m=Object.assign({},i.rules,u.rules);c.finalize?.();try{be(c,m,e=>i.getRuleDefinition(e),void 0,i.language,o,a,s.filename,!1,r.cwd,n.physicalFilename,s.ruleFilter,s.stats,r,l)}catch(e){if(e.message+=`\nOccurred while linting ${s.filename}`,N(`An error occurred while traversing`),N(`Filename:`,s.filename),e.currentNode){let{line:t}=c.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,o.parserOptions),N(`Settings:`,a),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:i.language,sourceCode:c,directives:d,disableFixes:s.disableFixes,problems:l.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:s.reportUnusedDisableDirectives,ruleFilter:s.ruleFilter,configuredRules:m})}_verifyWithFlatConfigArrayAndWithoutProcessors(e,t,n){let r=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#t(o,t,n)}_verifyWithConfigArray(e,t,n){N(`With ConfigArray: %s`,n.filename),Z.get(this).lastConfigArray=t;let r=t.extractConfig(n.filename),i=r.processor&&t.pluginProcessors.get(r.processor);if(i){N(`Apply the processor: %o`,r.processor);let{preprocess:a,postprocess:o,supportsAutofix:s}=i,c=n.disableFixes||!s;return this._verifyWithProcessor(e,r,{...n,disableFixes:c,postprocess:o,preprocess:a},t)}return this._verifyWithoutProcessors(e,r,n)}_verifyWithFlatConfigArray(e,t,n,r=!1){N(`With flat config: %s`,n.filename);let i=n.filename||`__placeholder__.js`;Z.get(this).lastConfigArray=t;let a=t.getConfig(i);if(!a)return[{ruleId:null,severity:1,message:`No matching configuration found for ${i}.`,line:0,column:0,nodeType:null}];if(a.processor){N(`Apply the processor: %o`,a.processor);let{preprocess:r,postprocess:o,supportsAutofix:s}=a.processor,c=n.disableFixes||!s;return this._verifyWithFlatConfigArrayAndProcessor(e,a,{...n,filename:i,disableFixes:c,postprocess:o,preprocess:r},t)}return r&&(n.preprocess||n.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,a,n):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,a,n)}_verifyWithProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path??`(unnamed)`),typeof e==`string`?this._verifyWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#e(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}_distinguishSuppressedMessages(e){let t=[],n=[],r=Z.get(this);for(let r of e)r.suppressions?n.push(r):t.push(r);return r.lastSuppressedMessages=n,t}getSourceCode(){return Z.get(this).lastSourceCode}getTimes(){return Z.get(this).times??{passes:[]}}getFixPassCount(){return Z.get(this).fixPasses??0}getSuppressedMessages(){return Z.get(this).lastSuppressedMessages}defineRule(e,t){we(this),Z.get(this).ruleMap.define(e,t)}defineRules(e){we(this),Object.getOwnPropertyNames(e).forEach(t=>{this.defineRule(t,e[t])})}getRules(){we(this);let{lastConfigArray:e,ruleMap:t}=Z.get(this);return new Map((function*(){yield*t,e&&(yield*e.pluginRules)})())}defineParser(e,t){we(this),Z.get(this).parserMap.set(e,t)}verifyAndFix(e,t,n){let r,i,a=!1,o=0,s=e,c,l,u=n&&n.filename||`${e.slice(0,10)}...`,d=n&&n.fix!==void 0?n.fix:!0,f=n?.stats,p=Z.get(this);f&&(delete p.times,p.fixPasses=0);do{o++;let e;f&&(e=x()),N(`Linting code for ${u} (pass ${o})`),r=this.verify(s,t,n),N(`Generating fixed text for ${u} (pass ${o})`);let m;if(f&&(m=x()),i=_.applyFixes(s,r,d),f&&(i.fixed?(J(w(m),{type:`fix`},p),p.fixPasses++):J(0,{type:`fix`},p)),r.length===1&&r[0].fatal)break;if(a||=i.fixed,c=l,l=s,s=i.output,f){e=w(e);let t=p.times.passes.length-1;p.times.passes[t].total=e}if(o>1&&s.length===c.length&&s===c){N(`Circular fixes detected after pass ${o}. Exiting fix loop.`),p.warningService.emitCircularFixesWarning(n?.filename??`text`);break}}while(i.fixed&&o<10);if(i.fixed){let e;f&&(e=x()),i.messages=this.verify(s,t,n),f&&(J(0,{type:`fix`},p),p.times.passes.at(-1).total=w(e))}return i.fixed=a,i.output=s,i}},getLinterInternalSlots(e){return Z.get(e)}}})),_c=d(((e,t)=>{let{Linter:n}=gc();t.exports={Linter:n,SourceCodeFixer:ec()}})),vc=d(((e,t)=>{let n=/^@.*\//u;function r(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function i(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function a(e){let t=e.match(n);return t?t[0]:``}t.exports={normalizePackageName:r,getShorthandName:i,getNamespaceFromTerm:a}})),yc=d((e=>{e.stringify=function e(t){if(t===void 0)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(`:base64:`+t.toString(`base64`));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t==`object`){var n=``,r=Array.isArray(t);n=r?`[`:`{`;var i=!0;for(var a in t){var o=typeof t[a]==`function`||!r&&t[a]===void 0;Object.hasOwnProperty.call(t,a)&&!o&&(i||(n+=`,`),i=!1,r?t[a]==null?n+=`null`:n+=e(t[a]):t[a]!==void 0&&(n+=e(a)+`:`+e(t[a])))}return n+=r?`]`:`}`,n}else if(typeof t==`string`)return JSON.stringify(/^:/.test(t)?`:`+t:t);else if(t===void 0)return`null`;else return JSON.stringify(t)},e.parse=function(e){return JSON.parse(e,function(e,t){return typeof t==`string`?/^:base64:/.test(t)?Buffer.from(t.substring(8),`base64`):/^:/.test(t)?t.substring(1):t:t})}})),bc=d(((e,t)=>{let n=h(`events`),r=yc(),i=e=>e.adapter||e.uri?new(h({redis:`@keyv/redis`,rediss:`@keyv/redis`,mongodb:`@keyv/mongo`,mongo:`@keyv/mongo`,sqlite:`@keyv/sqlite`,postgresql:`@keyv/postgres`,postgres:`@keyv/postgres`,mysql:`@keyv/mysql`,etcd:`@keyv/etcd`,offline:`@keyv/offline`,tiered:`@keyv/tiered`}[e.adapter||/^[^:+]*/.exec(e.uri)[0]]))(e):new Map,a=[`sqlite`,`postgres`,`mysql`,`mongo`,`redis`,`tiered`];t.exports=class extends n{constructor(e,{emitErrors:t=!0,...n}={}){if(super(),this.opts={namespace:`keyv`,serialize:r.stringify,deserialize:r.parse,...typeof e==`string`?{uri:e}:e,...n},!this.opts.store){let e={...this.opts};this.opts.store=i(e)}if(this.opts.compression){let e=this.opts.compression;this.opts.serialize=e.serialize.bind(e),this.opts.deserialize=e.deserialize.bind(e)}typeof this.opts.store.on==`function`&&t&&this.opts.store.on(`error`,e=>this.emit(`error`,e)),this.opts.store.namespace=this.opts.namespace;let a=e=>async function*(){for await(let[t,n]of typeof e==`function`?e(this.opts.store.namespace):e){let e=await this.opts.deserialize(n);if(!(this.opts.store.namespace&&!t.includes(this.opts.store.namespace))){if(typeof e.expires==`number`&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}}};typeof this.opts.store[Symbol.iterator]==`function`&&this.opts.store instanceof Map?this.iterator=a(this.opts.store):typeof this.opts.store.iterator==`function`&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return a.includes(this.opts.store.opts.dialect)||a.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(e){return e.split(`:`).splice(1).join(`:`)}get(e,t){let{store:n}=this.opts,r=Array.isArray(e),i=r?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(r&&n.getMany===void 0){let e=[];for(let r of i)e.push(Promise.resolve().then(()=>n.get(r)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(e=>{if(e!=null)return typeof e.expires==`number`&&Date.now()>e.expires?this.delete(r).then(()=>void 0):t&&t.raw?e:e.value}));return Promise.allSettled(e).then(e=>{let t=[];for(let n of e)t.push(n.value);return t})}return Promise.resolve().then(()=>r?n.getMany(i):n.get(i)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(n=>{if(n!=null)return r?n.map((n,r)=>{if(typeof n==`string`&&(n=this.opts.deserialize(n)),n!=null){if(typeof n.expires==`number`&&Date.now()>n.expires){this.delete(e[r]).then(()=>void 0);return}return t&&t.raw?n:n.value}}):typeof n.expires==`number`&&Date.now()>n.expires?this.delete(e).then(()=>void 0):t&&t.raw?n:n.value})}set(e,t,n){let r=this._getKeyPrefix(e);n===void 0&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let e=typeof n==`number`?Date.now()+n:null;return typeof t==`symbol`&&this.emit(`error`,`symbol cannot be serialized`),t={value:t,expires:e},this.opts.serialize(t)}).then(e=>i.set(r,e,n)).then(()=>!0)}delete(e){let{store:t}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(t.deleteMany===void 0){let e=[];for(let r of n)e.push(t.delete(r));return Promise.allSettled(e).then(e=>e.every(e=>e.value===!0))}return Promise.resolve().then(()=>t.deleteMany(n))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let t=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has==`function`?n.has(t):await n.get(t)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect==`function`)return e.disconnect()}}})),xc=d((e=>{let{parse:t,stringify:n}=JSON,{keys:r}=Object,i=String,a=`string`,o={},s=`object`,c=(e,t)=>t,l=e=>e instanceof i?i(e):e,u=(e,t)=>typeof t===a?new i(t):t,d=(e,t,n,a)=>{let c=[];for(let l=r(n),{length:u}=l,d=0;d<u;d++){let r=l[d],u=n[r];if(u instanceof i){let i=e[u];typeof i===s&&!t.has(i)?(t.add(i),n[r]=o,c.push({k:r,a:[e,t,i,a]})):n[r]=a.call(n,r,i)}else n[r]!==o&&(n[r]=a.call(n,r,u))}for(let{length:e}=c,t=0;t<e;t++){let{k:e,a:r}=c[t];n[e]=a.call(n,e,d.apply(null,r))}return n},f=(e,t,n)=>{let r=i(t.push(n)-1);return e.set(n,r),r},p=(e,n)=>{let r=t(e,u).map(l),i=r[0],a=n||c,o=typeof i===s&&i?d(r,new Set,i,a):i;return a.call({"":o},``,o)};e.parse=p;let m=(e,t,r)=>{let i=t&&typeof t===s?(e,n)=>e===``||-1<t.indexOf(e)?n:void 0:t||c,o=new Map,l=[],u=[],d=+f(o,l,i.call({"":e},``,e)),p=!d;for(;d<l.length;)p=!0,u[d]=n(l[d++],m,r);return`[`+u.join(`,`)+`]`;function m(e,t){if(p)return p=!p,t;let n=i.call(this,e,t);switch(typeof n){case s:if(n===null)return n;case a:return o.get(n)||f(o,l,n)}return n}};e.stringify=m,e.toJSON=e=>t(m(e)),e.fromJSON=e=>p(n(e))})),Sc=d(((e,t)=>{let n=h(`fs`),r=h(`path`),i=xc();function a(e,t){let n;try{n=o(e)}catch{n=t}return n}function o(e){return i.parse(n.readFileSync(e,{encoding:`utf8`}))}function s(e,t){n.mkdirSync(r.dirname(e),{recursive:!0}),n.writeFileSync(e,i.stringify(t))}t.exports={tryParse:a,readJSON:o,writeJSON:s}})),Cc=d(((e,t)=>{let n=h(`fs`),r=h(`path`);function i(e){if(!n.existsSync(e))return!1;try{return n.statSync(e).isDirectory()?(n.readdirSync(e).forEach(t=>{let i=r.join(e,t);n.statSync(i).isFile()&&n.unlinkSync(i)}),n.rmdirSync(e)):n.unlinkSync(e),!0}catch(t){console.error(`Error while deleting ${e}: ${t.message}`)}}t.exports={del:i}})),wc=d(((e,t)=>{V();let n=h(`path`),r=h(`fs`),i=bc(),{writeJSON:a,tryParse:o}=Sc(),{del:s}=Cc(),c={load:function(e,t){let a=this;a.keyv=new i,a.__visited={},a.__persisted={},a._pathToFile=t?n.resolve(t,e):n.resolve(z,`../.cache/`,e),r.existsSync(a._pathToFile)&&(a._persisted=o(a._pathToFile,{}))},get _persisted(){return this.__persisted},set _persisted(e){this.__persisted=e},get _visited(){return this.__visited},set _visited(e){this.__visited=e},loadFile:function(e){let t=this,r=n.dirname(e),i=n.basename(e);t.load(i,r)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,t){this._visited[e]=!0,this._persisted[e]=t},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){let e=this,t={},n=Object.keys(e._visited);n.length!==0&&(n.forEach(function(n){t[n]=e._persisted[n]}),e._visited={},e._persisted=t)},save:function(e){let t=this;!e&&t._prune(),a(t._pathToFile,t._persisted)},removeCacheFile:function(){return s(this._pathToFile)},destroy:function(){let e=this;e._visited={},e._persisted={},e.removeCacheFile()}};t.exports={load:function(e,t){return this.create(e,t)},create:function(e,t){let n=Object.create(c);return n.load(e,t),n},createFromFile:function(e){let t=Object.create(c);return t.loadFile(e),t},clearCacheById:function(e,t){return s(t?n.resolve(t,e):n.resolve(z,`../.cache/`,e))},clearAll:function(e){return s(e?n.resolve(e):n.resolve(z,`../.cache/`))}}})),Tc=d(((e,t)=>{var n=h(`path`),r=h(`crypto`);t.exports={createFromFile:function(e,t){var r=n.basename(e),i=n.dirname(e);return this.create(r,i,t)},create:function(e,t,n){var i=h(`fs`),a=wc().load(e,t),o={},s=function(){a.keys().forEach(function(e){try{i.statSync(e)}catch(t){t.code===`ENOENT`&&a.removeKey(e)}})};return s(),{cache:a,getHash:function(e){return r.createHash(`md5`).update(e).digest(`hex`)},hasFileChanged:function(e){return this.getFileDescriptor(e).changed},analyzeFiles:function(e){var t=this;e||=[];var n={changedFiles:[],notFoundFiles:[],notChangedFiles:[]};return t.normalizeEntries(e).forEach(function(e){if(e.changed){n.changedFiles.push(e.key);return}if(e.notFound){n.notFoundFiles.push(e.key);return}n.notChangedFiles.push(e.key)}),n},getFileDescriptor:function(e){var t;try{t=i.statSync(e)}catch(t){return this.removeEntry(e),{key:e,notFound:!0,err:t}}return n?this._getFileDescriptorUsingChecksum(e):this._getFileDescriptorUsingMtimeAndSize(e,t)},_getFileDescriptorUsingMtimeAndSize:function(e,t){var n=a.getKey(e),r=!!n,i=t.size,s=t.mtime.getTime(),c,l;return n?(c=s!==n.mtime,l=i!==n.size):n={size:i,mtime:s},o[e]={key:e,changed:!r||c||l,meta:n}},_getFileDescriptorUsingChecksum:function(e){var t=a.getKey(e),n=!!t,r;try{r=i.readFileSync(e)}catch{r=``}var s=!0,c=this.getHash(r);return t?s=c!==t.hash:t={hash:c},o[e]={key:e,changed:!n||s,meta:t}},getUpdatedFiles:function(e){var t=this;return e||=[],t.normalizeEntries(e).filter(function(e){return e.changed}).map(function(e){return e.key})},normalizeEntries:function(e){e||=[];var t=this;return e.map(function(e){return t.getFileDescriptor(e)})},removeEntry:function(e){delete o[e],a.removeKey(e)},deleteCacheFile:function(){a.removeCacheFile()},destroy:function(){o={},a.destroy()},_getMetaForFileUsingCheckSum:function(e){var t=i.readFileSync(e.key),n=this.getHash(t),r=Object.assign(e.meta,{hash:n});return delete r.size,delete r.mtime,r},_getMetaForFileUsingMtimeAndSize:function(e){var t=i.statSync(e.key),n=Object.assign(e.meta,{size:t.size,mtime:t.mtime.getTime()});return delete n.hash,n},reconcile:function(e){s(),e=e===void 0?!0:e;var t=o,r=Object.keys(t);if(r.length!==0){var i=this;r.forEach(function(e){var r=t[e];try{var o=n?i._getMetaForFileUsingCheckSum(r):i._getMetaForFileUsingMtimeAndSize(r);a.setKey(e,o)}catch(e){if(e.code!==`ENOENT`)throw e}}),a.save(e)}}}}}})),Ec=d(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var i=t.space||``;typeof i==`number`&&(i=Array(i+1).join(` `));var a=typeof t.cycles==`boolean`?t.cycles:!1,o=t.replacer||function(e,t){return t},s=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),c=[];return(function e(t,l,u,d){var f=i?`
94
- `+Array(d+1).join(i):``,p=i?`: `:`:`;if(u&&u.toJSON&&typeof u.toJSON==`function`&&(u=u.toJSON()),u=o.call(t,l,u),u!==void 0){if(typeof u!=`object`||!u)return JSON.stringify(u);if(n(u)){for(var m=[],h=0;h<u.length;h++){var g=e(u,h,u[h],d+1)||JSON.stringify(null);m.push(f+i+g)}return`[`+m.join(`,`)+f+`]`}else{if(c.indexOf(u)!==-1){if(a)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}else c.push(u);for(var _=r(u).sort(s&&s(u)),m=[],h=0;h<_.length;h++){var l=_[h],v=e(u,l,u[l],d+1);if(v){var y=JSON.stringify(l)+p+v;m.push(f+i+y)}}return c.splice(c.indexOf(u),1),`{`+m.join(`,`)+f+`}`}}})({"":e},``,e,0)};var n=Array.isArray||function(e){return{}.toString.call(e)===`[object Array]`},r=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}})),Dc=d(((e,t)=>{let n=h(`node:fs`),r=Tc(),i=Ec(),a=C(),o=Wa(),s=zo(),c=S()(`eslint:lint-result-cache`),l=new WeakMap,u=process&&process.version,d=[`metadata`,`content`],f=`Cache strategy must be one of: ${d.map(e=>`"${e}"`).join(`, `)}`;function p(e){return d.includes(e)}function m(e){return l.has(e)||l.set(e,s(`${a.version}_${u}_${i(e)}`)),l.get(e)}t.exports=class{constructor(e,t){o(e,`Cache file location is required`),o(t,`Cache strategy is required`),o(p(t),f),c(`Caching results to ${e}`);let n=t===`content`;c(`Using "${t}" strategy to detect changes`),this.fileEntryCache=r.create(e,void 0,n),this.cacheFileLocation=e}getCachedLintResults(e,t){let r=this.getValidCachedLintResults(e,t);if(!r)return r;let i={...r};return i.source===null&&(c(`Rereading cached result source from filesystem: ${e}`),i.source=n.readFileSync(e,`utf-8`)),i}getValidCachedLintResults(e,t){let n=this.fileEntryCache.getFileDescriptor(e);if(n.notFound)return c(`File not found on the file system: ${e}`),null;let r=m(t);return n.changed||n.meta.hashOfConfig!==r?(c(`Cache entry not found or no longer valid: ${e}`),null):n.meta.results}setCachedLintResults(e,t,n){if(n&&Object.hasOwn(n,`output`))return;let r=this.fileEntryCache.getFileDescriptor(e);if(r&&!r.notFound){c(`Updating cached result: ${e}`);let i=Object.assign({},n);Object.hasOwn(i,`source`)&&(i.source=null),r.meta.results=i,r.meta.hashOfConfig=m(t)}}reconcile(){c(`Persisting cached results: ${this.cacheFileLocation}`),this.fileEntryCache.reconcile()}}})),Oc=d(((e,t)=>{var n=class{constructor(e){this.value=e,this.next=void 0}};t.exports=class{constructor(){this.clear()}enqueue(e){let t=new n(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}})),kc=d(((e,t)=>{let n=Oc();t.exports=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new n,r=0,i=()=>{r--,t.size>0&&t.dequeue()()},a=async(e,t,...n)=>{r++;let a=(async()=>e(...n))();t(a);try{await a}catch{}i()},o=(n,i,...o)=>{t.enqueue(a.bind(null,n,i,...o)),(async()=>{await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()})()},s=(e,...t)=>new Promise(n=>{o(e,n,...t)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s}})),Ac=d(((e,t)=>{let n=kc();var r=class extends Error{constructor(e){super(),this.value=e}};let i=async(e,t)=>t(await e),a=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new r(t[0]);return!1};t.exports=async(e,t,o)=>{o={concurrency:1/0,preserveOrder:!0,...o};let s=n(o.concurrency),c=[...e].map(e=>[e,s(i,e,t)]),l=n(o.preserveOrder?1:1/0);try{await Promise.all(c.map(e=>l(a,e)))}catch(e){if(e instanceof r)return e.value;throw e}}})),jc=d(((e,t)=>{let n=h(`path`),r=h(`fs`),{promisify:i}=h(`util`),a=Ac(),o=i(r.stat),s=i(r.lstat),c={directory:`isDirectory`,file:`isFile`};function l({type:e}){if(!(e in c))throw Error(`Invalid type specified: ${e}`)}let u=(e,t)=>e===void 0||t[c[e]]();t.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},l(t);let r=t.allowSymlinks?o:s;return a(e,async e=>{try{let i=await r(n.resolve(t.cwd,e));return u(t.type,i)}catch{return!1}},t)},t.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},l(t);let i=t.allowSymlinks?r.statSync:r.lstatSync;for(let r of e)try{let e=i(n.resolve(t.cwd,r));if(u(t.type,e))return r}catch{}}})),Mc=d(((e,t)=>{let n=h(`fs`),{promisify:r}=h(`util`),i=r(n.access);t.exports=async e=>{try{return await i(e),!0}catch{return!1}},t.exports.sync=e=>{try{return n.accessSync(e),!0}catch{return!1}}})),Nc=d(((e,t)=>{let n=h(`path`),r=jc(),i=Mc(),a=Symbol(`findUp.stop`);t.exports=async(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return r(s,t);let n=await e(t.cwd);return typeof n==`string`?r([n],t):n};for(;;){let e=await c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.sync=(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=t=>{if(typeof e!=`function`)return r.sync(s,t);let n=e(t.cwd);return typeof n==`string`?r.sync([n],t):n};for(;;){let e=c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=a})),Pc=d(((e,t)=>{(()=>{var e={"./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive":function(e){function t(e){return Promise.resolve().then(function(){var t=Error(`Cannot find module '`+e+`'`);throw t.code=`MODULE_NOT_FOUND`,t})}t.keys=()=>[],t.resolve=t,t.id=`./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive`,e.exports=t}},n={};function r(t){var i=n[t];if(i!==void 0)return i.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{r.d(i,{default:()=>Gr});let e=h(`node:os`);var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},s=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,c={5:s,"5module":s+` export import`,6:s+` const class extends export import super`},l=/^in(stanceof)?$/,u=RegExp(`[`+a+`]`),d=RegExp(`[`+a+`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]`);function f(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function p(e,t){return e<65?e===36:e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&f(e,n)))}function m(e,r){return e<48?e===36:e<58||!(e<65)&&(e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==r&&(f(e,n)||f(e,t)))))}var g=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function _(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},y={startsExpr:!0},b={};function x(e,t){return t===void 0&&(t={}),t.keyword=e,b[e]=new g(e,t)}var S={num:new g(`num`,y),regexp:new g(`regexp`,y),string:new g(`string`,y),name:new g(`name`,y),privateId:new g(`privateId`,y),eof:new g(`eof`),bracketL:new g(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new g(`]`),braceL:new g(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new g(`}`),parenL:new g(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new g(`)`),comma:new g(`,`,v),semi:new g(`;`,v),colon:new g(`:`,v),dot:new g(`.`),question:new g(`?`,v),questionDot:new g(`?.`),arrow:new g(`=>`,v),template:new g(`template`),invalidTemplate:new g(`invalidTemplate`),ellipsis:new g(`...`,v),backQuote:new g("`",y),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g(`=`,{beforeExpr:!0,isAssign:!0}),assign:new g(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new g(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_(`||`,1),logicalAND:_(`&&`,2),bitwiseOR:_(`|`,3),bitwiseXOR:_(`^`,4),bitwiseAND:_(`&`,5),equality:_(`==/!=/===/!==`,6),relational:_(`</>/<=/>=`,7),bitShift:_(`<</>>/>>>`,8),plusMin:new g(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_(`%`,10),star:_(`*`,10),slash:_(`/`,10),starstar:new g(`**`,{beforeExpr:!0}),coalesce:_(`??`,1),_break:x(`break`),_case:x(`case`,v),_catch:x(`catch`),_continue:x(`continue`),_debugger:x(`debugger`),_default:x(`default`,v),_do:x(`do`,{isLoop:!0,beforeExpr:!0}),_else:x(`else`,v),_finally:x(`finally`),_for:x(`for`,{isLoop:!0}),_function:x(`function`,y),_if:x(`if`),_return:x(`return`,v),_switch:x(`switch`),_throw:x(`throw`,v),_try:x(`try`),_var:x(`var`),_const:x(`const`),_while:x(`while`,{isLoop:!0}),_with:x(`with`),_new:x(`new`,{beforeExpr:!0,startsExpr:!0}),_this:x(`this`,y),_super:x(`super`,y),_class:x(`class`,y),_extends:x(`extends`,v),_export:x(`export`),_import:x(`import`,y),_null:x(`null`,y),_true:x(`true`,y),_false:x(`false`,y),_in:x(`in`,{beforeExpr:!0,binop:7}),_instanceof:x(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:x(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(C.source,`g`);function T(e){return e===10||e===13||e===8232||e===8233}function E(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(T(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var D=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,A=k.hasOwnProperty,j=k.toString,M=Object.hasOwn||function(e,t){return A.call(e,t)},N=Array.isArray||function(e){return j.call(e)===`[object Array]`},P=Object.create(null);function F(e){return P[e]||(P[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function I(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var z=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function B(e,t){for(var n=1,r=0;;){var i=E(e,r,t);if(i<0)return new R(n,t-r);++n,r=i}}var V={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},H=!1;function U(e){var t={};for(var n in V)t[n]=e&&M(e,n)?e[n]:V[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!H&&typeof console==`object`&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
264
+ `;case`r`:return`\r`;case`t`:return` `;case`v`:return`\v`;default:return t}})))};var t},R=ye(`'`,!1),z=/^[^\\']/,B=be([`\\`,`'`],!0,!1),V=/^[0-9]/,H=be([[`0`,`9`]],!1,!1),U=ye(`type(`,!1),ee=/^[^ )]/,W=be([` `,`)`],!0,!1),te=ye(`)`,!1),ne=/^[imsu]/,re=be([`i`,`m`,`s`,`u`],!1,!1),ie=ye(`/`,!1),ae=/^[^\]\\]/,oe=be([`]`,`\\`],!0,!1),G=/^[^\/\\[]/,se=be([`/`,`\\`,`[`],!0,!1),ce=ye(`:not(`,!1),le=ye(`:matches(`,!1),K=function(e){return{type:`matches`,selectors:e}},ue=ye(`:is(`,!1),de=ye(`:has(`,!1),fe=ye(`:first-child`,!1),pe=ye(`:last-child`,!1),me=ye(`:nth-child(`,!1),he=ye(`:nth-last-child(`,!1),ge=ye(`:`,!1),q=0,_e=[{line:1,column:1}],J=0,ve=[],Y={};if(`startRule`in n){if(!(n.startRule in c))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);l=c[n.startRule]}function ye(e,t){return{type:`literal`,text:e,ignoreCase:t}}function be(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function xe(e){var n,r=_e[e];if(r)return r;for(n=e-1;!_e[n];)n--;for(r={line:(r=_e[n]).line,column:r.column};n<e;)t.charCodeAt(n)===10?(r.line++,r.column=1):r.column++,n++;return _e[e]=r,r}function Se(e,t){var n=xe(e),r=xe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function X(e){q<J||(q>J&&(J=q,ve=[]),ve.push(e))}function Ce(){var e,t,n,r,i=36*q+0,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(t=Z())!==s&&(n=Ee())!==s&&Z()!==s?e=t=(r=n).length===1?r[0]:{type:`matches`,selectors:r}:(q=e,e=s),e===s&&(e=q,(t=Z())!==s&&(t=void 0),e=t),Y[i]={nextPos:q,result:e},e)}function Z(){var e,n,r=36*q+1,i=Y[r];if(i)return q=i.nextPos,i.result;for(e=[],t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));n!==s;)e.push(n),t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u));return Y[r]={nextPos:q,result:e},e}function we(){var e,n,r,i=36*q+2,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f)),r!==s)for(;r!==s;)n.push(r),d.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(f));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Te(){var e,n,r,i=36*q+3,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===62?(r=`>`,q++):(r=s,X(p)),r!==s&&Z()!==s?e=n=`child`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===126?(r=`~`,q++):(r=s,X(m)),r!==s&&Z()!==s?e=n=`sibling`:(q=e,e=s)),e===s&&(e=q,(n=Z())===s?(q=e,e=s):(t.charCodeAt(q)===43?(r=`+`,q++):(r=s,X(h)),r!==s&&Z()!==s?e=n=`adjacent`:(q=e,e=s)),e===s&&(e=q,t.charCodeAt(q)===32?(n=` `,q++):(n=s,X(u)),n!==s&&(r=Z())!==s?e=n=`descendant`:(q=e,e=s)))),Y[i]={nextPos:q,result:e},e)}function Ee(){var e,n,r,i,a,o,c,l,u=36*q+5,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=Oe())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function De(){var e,t,n,r,i,a=36*q+6,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(t=Te())===s&&(t=null),t!==s&&(n=Oe())!==s?(i=n,e=t=(r=t)?{type:r,left:{type:`exactNode`},right:i}:i):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}function Oe(){var e,t,n,r,i,a,o,c=36*q+7,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,(t=ke())!==s){for(n=[],r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);r!==s;)n.push(r),r=q,(i=Te())!==s&&(a=ke())!==s?r=i=[i,a]:(q=r,r=s);n===s?(q=e,e=s):(o=t,e=t=n.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}function ke(){var e,n,r,i,a,o,c,l=36*q+8,u=Y[l];if(u)return q=u.nextPos,u.result;if(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n!==s){if(r=[],(i=Ae())!==s)for(;i!==s;)r.push(i),i=Ae();else r=s;r===s?(q=e,e=s):(a=n,c=(o=r).length===1?o[0]:{type:`compound`,selectors:o},a&&(c.subject=!0),e=n=c)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}function Ae(){var e,n=36*q+9,r=Y[n];return r?(q=r.nextPos,r.result):((e=function(){var e,n,r=36*q+10,i=Y[r];return i?(q=i.nextPos,i.result):(t.charCodeAt(q)===42?(n=`*`,q++):(n=s,X(y)),n!==s&&(n={type:`wildcard`,value:n}),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i=36*q+11,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===35?(n=`#`,q++):(n=s,X(b)),n===s&&(n=null),n!==s&&(r=we())!==s?e=n={type:`identifier`,value:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+12,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a=36*q+16,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+14,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===33?(n=`!`,q++):(n=s,X(v)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o=36*q+20,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,5)===`type(`?(n=`type(`,q+=5):(n=s,X(U)),n!==s)if(Z()!==s){if(r=[],ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W)),i!==s)for(;i!==s;)r.push(i),ee.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(W));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n={type:`type`,value:r.join(``)},e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c=36*q+22,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===47?(n=`/`,q++):(n=s,X(ie)),n!==s){if(r=[],(i=Me())===s&&(i=Ne())===s&&(i=Pe()),i!==s)for(;i!==s;)r.push(i),(i=Me())===s&&(i=Ne())===s&&(i=Pe());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===47?(i=`/`,q++):(i=s,X(ie)),i===s?(q=e,e=s):((a=function(){var e,n,r=36*q+21,i=Y[r];if(i)return q=i.nextPos,i.result;if(e=[],ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re)),n!==s)for(;n!==s;)e.push(n),ne.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(re));else e=s;return Y[r]={nextPos:q,result:e},e}())===s&&(a=null),a===s?(q=e,e=s):(o=a,n={type:`regexp`,value:new RegExp(r.join(``),o?o.join(``):``)},e=n)))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*q+13,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,C.test(t.charAt(q))?(n=t.charAt(q),q++):(n=s,X(w)),n===s&&(n=null),n===s?(q=e,e=s):(t.charCodeAt(q)===61?(r=`=`,q++):(r=s,X(T)),r===s?(q=e,e=s):(n=E(n),e=n)),e===s&&(D.test(t.charAt(q))?(e=t.charAt(q),q++):(e=s,X(O))),Y[i]={nextPos:q,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o,c=36*q+17,l=Y[c];if(l)return q=l.nextPos,l.result;if(e=q,t.charCodeAt(q)===34?(n=`"`,q++):(n=s,X(j)),n!==s){for(r=[],M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),M.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(N)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===34?(i=`"`,q++):(i=s,X(j)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;if(e===s)if(e=q,t.charCodeAt(q)===39?(n=`'`,q++):(n=s,X(R)),n!==s){for(r=[],z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),z.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(B)),i===s&&(i=q,t.charCodeAt(q)===92?(a=`\\`,q++):(a=s,X(P)),a===s?(q=i,i=s):(t.length>q?(o=t.charAt(q),q++):(o=s,X(F)),o===s?(q=i,i=s):(a=I(a,o),i=a)));r===s?(q=e,e=s):(t.charCodeAt(q)===39?(i=`'`,q++):(i=s,X(R)),i===s?(q=e,e=s):(n=L(r),e=n))}else q=e,e=s;return Y[c]={nextPos:q,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c,l=36*q+18,u=Y[l];if(u)return q=u.nextPos,u.result;for(e=q,n=q,r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));if(r===s?(q=n,n=s):(t.charCodeAt(q)===46?(i=`.`,q++):(i=s,X(k)),i===s?(q=n,n=s):n=r=[r,i]),n===s&&(n=null),n!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r===s?(q=e,e=s):(o=r,c=(a=n)?[].concat.apply([],a).join(``):``,n={type:`literal`,value:parseFloat(c+o.join(``))},e=n)}else q=e,e=s;return Y[l]={nextPos:q,result:e},e}())===s&&(i=function(){var e,t,n=36*q+19,r=Y[n];return r?(q=r.nextPos,r.result):((t=we())!==s&&(t={type:`literal`,value:t}),e=t,Y[n]={nextPos:q,result:e},e)}()),i===s?(q=e,e=s):(n=A(n,r,i),e=n)):(q=e,e=s),e===s&&(e=q,(n=je())!==s&&(n={type:`attribute`,name:n}),e=n)),Y[a]={nextPos:q,result:e},e)}())!==s&&Z()!==s?(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=r):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o,c,l,u=36*q+26,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,t.charCodeAt(q)===46?(n=`.`,q++):(n=s,X(k)),n!==s)if((r=we())!==s){for(i=[],a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);a!==s;)i.push(a),a=q,t.charCodeAt(q)===46?(o=`.`,q++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(q=a,a=s);i===s?(q=e,e=s):(l=r,n={type:`field`,name:i.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=n)}else q=e,e=s;else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a=36*q+27,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:not(`?(n=`:not(`,q+=5):(n=s,X(ce)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`not`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+28,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,9)===`:matches(`?(n=`:matches(`,q+=9):(n=s,X(le)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+29,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,4)===`:is(`?(n=`:is(`,q+=4):(n=s,X(ue)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):(n=K(r),e=n)):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*q+30,o=Y[a];return o?(q=o.nextPos,o.result):(e=q,t.substr(q,5)===`:has(`?(n=`:has(`,q+=5):(n=s,X(de)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a,o,c,l,u=36*q+4,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=De())!==s){for(r=[],i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));i!==s;)r.push(i),i=q,(a=Z())===s?(q=i,i=s):(t.charCodeAt(q)===44?(o=`,`,q++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(q=i,i=s));r===s?(q=e,e=s):e=n=_(n,r)}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}())!==s&&Z()!==s?(t.charCodeAt(q)===41?(i=`)`,q++):(i=s,X(te)),i===s?(q=e,e=s):e=n={type:`has`,selectors:r}):(q=e,e=s),Y[a]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+31,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,12)===`:first-child`?(n=`:first-child`,q+=12):(n=s,X(fe)),n!==s&&(n=Fe(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r=36*q+32,i=Y[r];return i?(q=i.nextPos,i.result):(t.substr(q,11)===`:last-child`?(n=`:last-child`,q+=11):(n=s,X(pe)),n!==s&&(n=Ie(1)),e=n,Y[r]={nextPos:q,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o=36*q+33,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,11)===`:nth-child(`?(n=`:nth-child(`,q+=11):(n=s,X(me)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Fe(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i,a,o=36*q+34,c=Y[o];if(c)return q=c.nextPos,c.result;if(e=q,t.substr(q,16)===`:nth-last-child(`?(n=`:nth-last-child(`,q+=16):(n=s,X(he)),n!==s)if(Z()!==s){if(r=[],V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H)),i!==s)for(;i!==s;)r.push(i),V.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(H));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(q)===41?(a=`)`,q++):(a=s,X(te)),a===s?(q=e,e=s):(n=Ie(parseInt(r.join(``),10)),e=n)):(q=e,e=s)}else q=e,e=s;else q=e,e=s;return Y[o]={nextPos:q,result:e},e}())===s&&(e=function(){var e,n,r,i=36*q+35,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===58?(n=`:`,q++):(n=s,X(ge)),n!==s&&(r=we())!==s?e=n={type:`class`,name:r}:(q=e,e=s),Y[i]={nextPos:q,result:e},e)}()),Y[n]={nextPos:q,result:e},e)}function je(){var e,n,r,i,a,o,c,l,u=36*q+15,d=Y[u];if(d)return q=d.nextPos,d.result;if(e=q,(n=we())!==s){for(r=[],i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);i!==s;)r.push(i),i=q,t.charCodeAt(q)===46?(a=`.`,q++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(q=i,i=s);r===s?(q=e,e=s):(c=n,l=r,e=n=[].concat.apply([c],l).join(``))}else q=e,e=s;return Y[u]={nextPos:q,result:e},e}function Me(){var e,n,r,i,a=36*q+23,o=Y[a];if(o)return q=o.nextPos,o.result;if(e=q,t.charCodeAt(q)===91?(n=`[`,q++):(n=s,X(x)),n!==s){if(r=[],ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne()),i!==s)for(;i!==s;)r.push(i),ae.test(t.charAt(q))?(i=t.charAt(q),q++):(i=s,X(oe)),i===s&&(i=Ne());else r=s;r===s?(q=e,e=s):(t.charCodeAt(q)===93?(i=`]`,q++):(i=s,X(S)),i===s?(q=e,e=s):e=n=`[`+r.join(``)+`]`)}else q=e,e=s;return Y[a]={nextPos:q,result:e},e}function Ne(){var e,n,r,i=36*q+24,a=Y[i];return a?(q=a.nextPos,a.result):(e=q,t.charCodeAt(q)===92?(n=`\\`,q++):(n=s,X(P)),n===s?(q=e,e=s):(t.length>q?(r=t.charAt(q),q++):(r=s,X(F)),r===s?(q=e,e=s):e=n=`\\`+r),Y[i]={nextPos:q,result:e},e)}function Pe(){var e,n,r,i=36*q+25,a=Y[i];if(a)return q=a.nextPos,a.result;if(n=[],G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se)),r!==s)for(;r!==s;)n.push(r),G.test(t.charAt(q))?(r=t.charAt(q),q++):(r=s,X(se));else n=s;return n!==s&&(n=n.join(``)),e=n,Y[i]={nextPos:q,result:e},e}function Fe(e){return{type:`nth-child`,index:{type:`literal`,value:e}}}function Ie(e){return{type:`nth-last-child`,index:{type:`literal`,value:e}}}if((r=l())!==s&&q===t.length)return r;throw r!==s&&q<t.length&&X({type:`end`}),i=ve,a=J<t.length?t.charAt(J):null,o=J<t.length?Se(J,J+1):Se(J,J),new e(e.buildMessage(i,a),i,a,o)}}}()}));function c(e,t){for(var n=0;n<t.length;++n){if(e==null)return e;e=e[t[n]]}return e}var l=typeof WeakMap==`function`?new WeakMap:null;function u(e){if(e==null)return function(){return!0};if(l!=null){var t=l.get(e);return t??(t=d(e),l.set(e,t)),t}return d(e)}function d(e){switch(e.type){case`wildcard`:return function(){return!0};case`identifier`:var t=e.value.toLowerCase();return function(e,n,r){return t===e[r&&r.nodeTypeKey||`type`].toLowerCase()};case`exactNode`:return function(e,t){return t.length===0};case`field`:var n=e.name.split(`.`);return function(e,t){return function e(t,n,r,i){for(var a=n,o=i;o<r.length;++o){if(a==null)return!1;var s=a[r[o]];if(Array.isArray(s)){for(var c=0;c<s.length;++c)if(e(t,s[c],r,o+1))return!0;return!1}a=s}return t===a}(e,t[n.length-1],n,0)};case`matches`:var i=e.selectors.map(u);return function(e,t,n){for(var r=0;r<i.length;++r)if(i[r](e,t,n))return!0;return!1};case`compound`:var a=e.selectors.map(u);return function(e,t,n){for(var r=0;r<a.length;++r)if(!a[r](e,t,n))return!1;return!0};case`not`:var s=e.selectors.map(u);return function(e,t,n){for(var r=0;r<s.length;++r)if(s[r](e,t,n))return!1;return!0};case`has`:var l=e.selectors.map(u);return function(e,t,n){var r=!1,i=[];return o.traverse(e,{enter:function(e,t){t!=null&&i.unshift(t);for(var a=0;a<l.length;++a)if(l[a](e,i,n))return r=!0,void this.break()},leave:function(){i.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||`iteration`}),r};case`child`:var d=u(e.left),f=u(e.right);return function(e,t,n){return!!(t.length>0&&f(e,t,n))&&d(t[0],t.slice(1),n)};case`descendant`:var p=u(e.left),_=u(e.right);return function(e,t,n){if(_(e,t,n)){for(var r=0,i=t.length;r<i;++r)if(p(t[r],t.slice(r+1),n))return!0}return!1};case`attribute`:var v=e.name.split(`.`);switch(e.operator){case void 0:return function(e){return c(e,v)!=null};case`=`:switch(e.value.type){case`regexp`:return function(t){var n=c(t,v);return typeof n==`string`&&e.value.value.test(n)};case`literal`:var y=`${e.value.value}`;return function(e){return y===`${c(e,v)}`};case`type`:return function(t){return e.value.value===r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`!=`:switch(e.value.type){case`regexp`:return function(t){return!e.value.value.test(c(t,v))};case`literal`:var b=`${e.value.value}`;return function(e){return b!==`${c(e,v)}`};case`type`:return function(t){return e.value.value!==r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`<=`:return function(t){return c(t,v)<=e.value.value};case`<`:return function(t){return c(t,v)<e.value.value};case`>`:return function(t){return c(t,v)>e.value.value};case`>=`:return function(t){return c(t,v)>=e.value.value}}throw Error(`Unknown operator: ${e.operator}`);case`sibling`:var x=u(e.left),S=u(e.right);return function(t,n,r){return S(t,n,r)&&m(t,x,n,`LEFT_SIDE`,r)||e.left.subject&&x(t,n,r)&&m(t,S,n,`RIGHT_SIDE`,r)};case`adjacent`:var C=u(e.left),w=u(e.right);return function(t,n,r){return w(t,n,r)&&h(t,C,n,`LEFT_SIDE`,r)||e.right.subject&&C(t,n,r)&&h(t,w,n,`RIGHT_SIDE`,r)};case`nth-child`:var T=e.index.value,E=u(e.right);return function(e,t,n){return E(e,t,n)&&g(e,t,T,n)};case`nth-last-child`:var D=-e.index.value,O=u(e.right);return function(e,t,n){return O(e,t,n)&&g(e,t,D,n)};case`class`:var k=e.name.toLowerCase();return function(t,n,r){if(r&&r.matchClass)return r.matchClass(e.name,t,n);if(r&&r.nodeTypeKey)return!1;switch(k){case`statement`:if(t.type.slice(-9)===`Statement`)return!0;case`declaration`:return t.type.slice(-11)===`Declaration`;case`pattern`:if(t.type.slice(-7)===`Pattern`)return!0;case`expression`:return t.type.slice(-10)===`Expression`||t.type.slice(-7)===`Literal`||t.type===`Identifier`&&(n.length===0||n[0].type!==`MetaProperty`)||t.type===`MetaProperty`;case`function`:return t.type===`FunctionDeclaration`||t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`}throw Error(`Unknown class name: ${e.name}`)}}throw Error(`Unknown selector type: ${e.type}`)}function f(e,t){var n=t&&t.nodeTypeKey||`type`,r=e[n];return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:o.VisitorKeys[r]?o.VisitorKeys[r]:t&&typeof t.fallback==`function`?t.fallback(e):Object.keys(e).filter((function(e){return e!==n}))}function p(e,t){var n=t&&t.nodeTypeKey||`type`;return e!==null&&r(e)===`object`&&typeof e[n]==`string`}function m(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;var d=void 0,m=void 0;i===`LEFT_SIDE`?(d=0,m=u):(d=u+1,m=l.length);for(var h=d;h<m;++h)if(p(l[h],a)&&n(l[h],r,a))return!0}}return!1}function h(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;if(i===`LEFT_SIDE`&&u>0&&p(l[u-1],a)&&n(l[u-1],r,a)||i===`RIGHT_SIDE`&&u<l.length-1&&p(l[u+1],a)&&n(l[u+1],r,a))return!0}}return!1}function g(e,n,r,i){if(r===0)return!1;var a=t(n,1)[0];if(!a)return!1;for(var o=f(a,i),s=0;s<o.length;++s){var c=a[o[s]];if(Array.isArray(c)){var l=r<0?c.length+r:r-1;if(l>=0&&l<c.length&&c[l]===e)return!0}}return!1}function _(e,t,i,a){if(t){var s=[],c=u(t),l=function e(t,i){if(t==null||r(t)!=`object`)return[];i??=t;for(var a=t.subject?[i]:[],o=Object.keys(t),s=0;s<o.length;++s){var c=o[s],l=t[c];a.push.apply(a,n(e(l,c===`left`?l:i)))}return a}(t).map(u);o.traverse(e,{enter:function(e,t){if(t!=null&&s.unshift(t),c(e,s,a))if(l.length)for(var n=0,r=l.length;n<r;++n){l[n](e,s,a)&&i(e,t,s);for(var o=0,u=s.length;o<u;++o){var d=s.slice(o+1);l[n](s[o],d,a)&&i(s[o],t,d)}}else i(e,t,s)},leave:function(){s.shift()},keys:a&&a.visitorKeys,fallback:a&&a.fallback||`iteration`})}}function v(e,t,n){var r=[];return _(e,t,(function(e){r.push(e)}),n),r}function y(e){return s.parse(e)}function b(e,t,n){return v(e,y(t),n)}return b.parse=y,b.match=v,b.traverse=_,b.matches=function(e,t,n,r){return!t||!!e&&(n||=[],u(t)(e,n,r))},b.query=b,b}))})),wc=d(((e,t)=>{let n=Cc();var r=class{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(e,t,n,r,i,a){this.source=e,this.isExit=t,this.root=n,this.nodeTypes=r,this.attributeCount=i,this.identifierCount=a}compare(e){return this.attributeCount-e.attributeCount||this.identifierCount-e.identifierCount||(this.source<=e.source?-1:1)}};let i=new Map;function a(...e){return[...new Set(e.flat())]}function o(...e){if(e.length===0)return[];let t=[...new Set(e[0])];for(let n of e.slice(1))t=t.filter(e=>n.includes(e));return t}function s(e){let t=0,n=0;function r(e){switch(e.type){case`identifier`:return n++,[e.value];case`not`:return e.selectors.map(r),null;case`matches`:{let t=e.selectors.map(r);return t.every(Boolean)?a(...t):null}case`compound`:{let t=e.selectors.map(r).filter(e=>e);return t.length?o(...t):null}case`attribute`:case`field`:case`nth-child`:case`nth-last-child`:return t++,null;case`child`:case`descendant`:case`sibling`:case`adjacent`:return r(e.left),r(e.right);case`class`:return e.name===`function`?[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]:null;default:return null}}return{nodeTypes:r(e),attributeCount:t,identifierCount:n}}function c(e){return e===`*`?{type:`wildcard`,value:`*`}:/^[a-z]+$/iu.test(e)?{type:`identifier`,value:e}:null}function l(e){try{return n.parse(e)}catch(t){throw t.location&&t.location.start&&typeof t.location.start.offset==`number`?SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`,{cause:t}):t}}function u(e){if(i.has(e))return i.get(e);let t=e.replace(/:exit$/u,``),n=c(t)??l(t),{nodeTypes:a,attributeCount:o,identifierCount:u}=s(n),d=new r(e,e.endsWith(`:exit`),n,a,o,u);return i.set(e,d),d}function d(e,t,r,i){return n.matches(e,t,r,i)}t.exports={parse:u,matches:d,ESQueryParsedSelector:r}})),Tc=d(((e,t)=>{let{parse:n,matches:r}=wc(),i=U();function a(e,t){return e.compare(t)}var o=class{constructor(e,t){this.visitor=e,this.esqueryOptions=t,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.forEachName(e=>{let t=n(e);if(t.nodeTypes){let e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;t.nodeTypes.forEach(n=>{e.has(n)||e.set(n,[]),e.get(n).push(t)});return}(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(e=>e.sort(a)),this.exitSelectorsByNodeType.forEach(e=>e.sort(a))}matches(e,t,n){return r(e,n.root,t,this.esqueryOptions)}calculateSelectors(e,t,n){let r=this.esqueryOptions?.nodeTypeKey||`type`,i=[],a=(n?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e[r])||[],o=n?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,s=0,c=0;for(;s<a.length||c<o.length;){let n=s<a.length,r=c<o.length,l=o[c],u=a[s],d=r&&n&&l.compare(u)<0;!n||d?(c++,this.matches(e,t,l)&&i.push(l.source)):(s++,this.matches(e,t,u)&&i.push(u.source))}return i}};t.exports={SourceCodeTraverser:class{#e;static instances=new WeakMap;constructor(e){this.#e=e}static getInstance(e){return this.instances.has(e)||this.instances.set(e,new this(e)),this.instances.get(e)}traverseSync(e,t,{steps:n}={}){let r=new o(t,{visitorKeys:e.visitorKeys??this.#e.visitorKeys,fallback:i.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),a=[];for(let i of n??e.traverse())switch(i.kind){case 1:try{i.phase===1?(r.calculateSelectors(i.target,a,!1).forEach(e=>{t.callSync(e,...i.args??[i.target])}),a.unshift(i.target)):(a.shift(),r.calculateSelectors(i.target,a,!0).forEach(e=>{t.callSync(e,...i.args??[i.target])}))}catch(e){throw e.currentNode=i.target,e}break;case 2:t.callSync(i.target,...i.args);break;default:throw Error(`Invalid traversal step found: "${i.kind}".`)}}}}})),Ec=d(((e,t)=>{function n(e,t){return{range:[e,e],text:t}}t.exports={RuleFixer:class{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,t){let n=this.#e.getRange(e);return this.insertTextAfterRange(n,t)}insertTextAfterRange(e,t){return n(e[1],t)}insertTextBefore(e,t){let n=this.#e.getRange(e);return this.insertTextBeforeRange(n,t)}insertTextBeforeRange(e,t){return n(e[0],t)}replaceText(e,t){let n=this.#e.getRange(e);return this.replaceTextRange(n,t)}replaceTextRange(e,t){return{range:e,text:t}}remove(e){let t=this.#e.getRange(e);return this.removeRange(t)}removeRange(e){return{range:e,text:``}}}}})),Dc=d(((e,t)=>{function n(){return/\{\{([^{}]+)\}\}/gu}function r(e,t){if(!t)return e;let r=n();return e.replace(r,(e,n)=>{let r=n.trim();return r in t?t[r]:e})}t.exports={getPlaceholderMatcher:n,interpolate:r}})),Oc=d(((e,t)=>{let n=Wa(),{RuleFixer:r}=Ec(),{interpolate:i}=Dc(),a=lc(),o={start:{line:1,column:0},end:{line:1,column:1}};function s({line:e,column:t,endLine:n,endColumn:r},i){let a=i.columnStart===1?0:1,o=i.lineStart===1?0:1,s=n===void 0?n:n+o,c=r===void 0?r:r+a;return{line:e+o,column:t+a,endLine:s,endColumn:c}}function c(e){return Object.hasOwn(a.rules,e)?`Rule '${e}' was removed and replaced by: ${a.rules[e].join(`, `)}`:`Definition for rule '${e}' was not found.`}function l(e,t,n){let{ruleId:r=null,loc:i=o,message:a=c(e.ruleId)}=e;return{ruleId:r,message:a,...s({line:i.start.line,column:i.start.column,endLine:i.end.line,endColumn:i.end.column},n),severity:t,nodeType:null}}function u(...e){return e.length===1?Object.assign({},e[0]):typeof e[1]==`string`?{node:e[0],message:e[1],data:e[2],fix:e[3]}:{node:e[0],loc:e[1],message:e[2],data:e[3],fix:e[4]}}function d(e){e.node?n(typeof e.node==`object`,`Node must be an object`):n(e.loc,`Node must be provided when reporting error if location is not provided`)}function f(e){return e.loc.start?e.loc:{start:e.loc,end:null}}function p(e){return e?{range:[e.range[0],e.range[1]],text:e.text}:null}function m(e){e&&n(e.range&&typeof e.range[0]==`number`&&typeof e.range[1]==`number`,`Fix has invalid range: ${JSON.stringify(e,null,2)}`)}function h(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function g(e,t){for(let t of e)m(t);if(e.length===0)return null;if(e.length===1)return p(e[0]);e.sort(h);let r=t.text,i=e[0].range[0],a=e.at(-1).range[1],o=``,s=-(2**53-1);for(let t of e)n(t.range[0]>=s,`Fix objects must not be overlapped in a report.`),t.range[0]>=0&&(o+=r.slice(Math.max(0,i,s),t.range[0])),o+=t.text,s=t.range[1];return o+=r.slice(Math.max(0,i,s),a),{range:[i,a],text:o}}function _(e,t){if(typeof e.fix!=`function`)return null;let n=new r({sourceCode:t}),i=e.fix(n);return i&&Symbol.iterator in i?g(Array.from(i),t):(m(i),p(i))}function v(e,t,n){return!e.suggest||!Array.isArray(e.suggest)?[]:e.suggest.map(e=>{let r=e.desc||n[e.messageId];return{...e,desc:i(r,e.data),fix:_(e,t)}}).filter(({fix:e})=>e)}function y(e){let{language:t}=e,n=t.columnStart===1?0:1,r=t.lineStart===1?0:1,i={ruleId:e.ruleId,severity:e.severity,message:e.message,line:e.loc.start.line+r,column:e.loc.start.column+n,nodeType:e.node&&e.node.type||null};return e.messageId&&(i.messageId=e.messageId),e.loc.end&&(i.endLine=e.loc.end.line+r,i.endColumn=e.loc.end.column+n),e.fix&&(i.fix=e.fix),e.suggestions&&e.suggestions.length>0&&(i.suggestions=e.suggestions),i}function b(e,t){e&&Array.isArray(e)&&e.forEach(e=>{if(e.messageId){let{messageId:n}=e;if(!t)throw TypeError(`context.report() called with a suggest option with a messageId '${n}', but no messages were present in the rule metadata.`);if(!t[n])throw TypeError(`context.report() called with a suggest option with a messageId '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);if(e.desc)throw TypeError(`context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.`)}else if(!e.desc)throw TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof e.fix!=`function`)throw TypeError(`context.report() called with a suggest option without a fix function. See: ${JSON.stringify(e,null,2)}`)})}function x(e,t){if(e.messageId){if(!t)throw TypeError(`context.report() called with a messageId, but no messages were present in the rule metadata.`);let n=e.messageId;if(e.message)throw TypeError(`context.report() called with a message and a messageId. Please only pass one.`);if(!t||!Object.hasOwn(t,n))throw TypeError(`context.report() called with a messageId of '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);return t[n]}if(e.message)return e.message;throw TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}t.exports={FileReport:class{messages=[];#e;#t;#n;#r;constructor({ruleMapper:e,sourceCode:t,language:n,disableFixes:r=!1}){this.#e=e,this.#t=t,this.#n=n,this.#r=r}addRuleMessage(e,t,...n){let r=u(...n),a=this.#e(e)?.meta?.messages;d(r);let o=x(r,a);return b(r.suggest,a),this.messages.push(y({ruleId:e,severity:t,node:r.node,message:i(o,r.data),messageId:r.messageId,loc:r.loc?f(r):this.#t.getLoc(r.node),fix:this.#r?null:_(r,this.#t),suggestions:this.#r?[]:v(r,this.#t,a),language:this.#n})),this.messages.at(-1)}addError(e){let t=l(e,2,this.#n);return this.messages.push(t),t}addFatal(e){let t=l(e,2,this.#n);return t.fatal=!0,this.messages.push(t),t}addWarning(e){let t=l(e,1,this.#n);return this.messages.push(t),t}},updateLocationInformation:s}})),kc=d(((e,t)=>{let n=h(`node:path`),r=Oo(),i=U(),a=oe(),o=is(),s=C(),{Legacy:{ConfigOps:c,ConfigValidator:l,environments:u}}=$s(),d=li(),{SourceCode:f}=Ao(),p=dc(),{ConfigCommentParser:m}=wo(),g=fc(),_=pc(),{SourceCodeVisitor:v}=mc(),y=Fo(),{FlatConfigArray:b}=hc(),{startTime:x,endTime:w}=Po(),{assertIsRuleSeverity:T}=nc(),{normalizeSeverityToString:E,normalizeSeverityToNumber:D}=tc(),{deepMergeArrays:O}=ec(),k=Mo(),{activeFlags:A,inactiveFlags:j,getInactivityReasonMessage:M}=gc(),N=S()(`eslint:linter`),P=new m,F=Symbol.for(`eslint.RuleTester.parser`),{LATEST_ECMA_VERSION:I}=le(),{VFile:L}=_c(),{ParserService:R}=vc(),{FileContext:z}=yc(),{ProcessorService:B}=bc(),{containsDifferentProperty:V}=xc(),{Config:H}=uc(),{WarningService:ee}=Sc(),{SourceCodeTraverser:W}=Tc(),{FileReport:te,updateLocationInformation:ne}=Oc();function re(e){return e===a||e[F]===a}function ie(e,t,{exportedVariables:n,enabledGlobals:i}){for(let n of new Set([...Object.keys(t),...Object.keys(i)])){let a=t[n]===void 0?void 0:c.normalizeConfigGlobal(t[n]),o=i[n]&&i[n].value||a,s=i[n]&&i[n].comments;if(o===`off`)continue;let l=e.set.get(n);l||(l=new r.Variable(n,e),e.variables.push(l),e.set.set(n,l)),l.eslintImplicitGlobalSetting=a,l.eslintExplicitGlobal=s!==void 0,l.eslintExplicitGlobalComments=s,l.writeable=o===`writable`}Object.keys(n).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)}),e.through=e.through.filter(t=>{let n=t.identifier.name,r=e.set.get(n);return r?(t.resolved=r,r.references.push(t),!1):!0})}function ae(e){return Array.isArray(e)?e:[e]}function G(e,t,n,r,i,a,o){let s=e.rules?.[r],c=s?ae(s):[`off`],l=E(c[0]);if(l!==E(i[0]))return;let u=s?`is already configured to '${l}'`:`is not enabled so can't be turned off`,d;if(c.length===1&&i.length===1||l===`off`?d=`Unused inline config ('${r}' ${u}).`:V(i.slice(1),c.slice(1))||(d=a.length===1?`Unused inline config ('${r}' ${u}).`:`Unused inline config ('${r}' ${u} with the same options).`),d){let e=D(o),r={message:d,loc:t};e===1?n.addWarning(r):e===2&&n.addError(r)}}function se({type:e,value:t,justification:n,node:r},i,a,o,s){let c=Object.keys(P.parseListConfig(t)),l=c.length?c:[null],u=[],d={node:r,value:t,ruleIds:c};for(let t of l){let c=o.getLoc(r);if(t===null||i(t))if(e===`disable-next-line`){let{line:r,column:i}=ne(c.end,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else{let{line:r,column:i}=ne(c.start,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else s.addError({ruleId:t,loc:c})}return u}function ce(e,t,n,r,i){let a={},o=Object.create(null),s={},u=[],d=new l({builtInRules:g});return e.getInlineConfigNodes().filter(e=>e.type!==`Shebang`).forEach(l=>{let f=P.parseDirective(l.value);if(!f)return;let{label:p,value:m,justification:h}=f,g=/^eslint-disable-(?:next-)?line$/u.test(p);if(l.type===`Line`&&!g)return;let _=e.getLoc(l);if(n){let e=l.type===`Block`?`/*${p}*/`:`//${p}`;i.addWarning({ruleId:null,message:`'${e}' has no effect because you have 'noInlineConfig' setting in ${n}.`,loc:_});return}if(p===`eslint-disable-line`&&_.start.line!==_.end.line){let e=`${p} comment should not span multiple lines.`;i.addError({message:e,loc:_});return}switch(p){case`eslint-disable`:case`eslint-enable`:case`eslint-disable-next-line`:case`eslint-disable-line`:{let n=se({type:p.slice(7),value:m,justification:h,node:l},t,k,e,i);u.push(...n);break}case`exported`:Object.assign(s,P.parseListConfig(m));break;case`globals`:case`global`:for(let[e,t]of Object.entries(P.parseStringConfig(m))){let n;try{n=c.normalizeConfigGlobal(t)}catch(e){i.addError({loc:_,message:e.message});continue}o[e]?(o[e].comments.push(l),o[e].value=n):o[e]={comments:[l],value:n}}break;case`eslint`:{let e=P.parseJSONLikeConfig(m);e.ok?Object.keys(e.config).forEach(n=>{let o=t(n),s=e.config[n];if(!o){i.addError({ruleId:n,loc:_});return}if(Object.hasOwn(a,n)){i.addError({message:`Rule "${n}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:_});return}let c=ae(s);c.length===1&&r.rules&&Object.hasOwn(r.rules,n)&&(c=[c[0],...ae(r.rules[n]).slice(1)]);try{d.validateRuleOptions(o,n,c)}catch(e){if(e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw e;i.addError({ruleId:n,message:e.message,loc:_});return}a[n]=c}):i.addFatal({loc:_,message:e.error.message});break}}}),{configuredRules:a,enabledGlobals:o,exportedVariables:s,disableDirectives:u}}function K(e,t,n,r){let i=[];if(e.getDisableDirectives){let{directives:a,problems:o}=e.getDisableDirectives();Array.isArray(o)&&o.forEach(e=>r.addError(e)),a.forEach(a=>{let o=se(a,t,n,e,r);i.push(...o)})}return i}function ue(e,t){return re(e)&&t===`latest`?a.latestEcmaVersion:t>=2015?t-2009:t}function de(e){switch(e){case 3:return 3;case 5:case void 0:return 5;default:if(typeof e==`number`)return e>=2015?e:e+2009}return I}let fe=/\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;function pe(e){let t,n;for(fe.lastIndex=0;(t=fe.exec(e))!==null;)t[0].endsWith(`*/`)&&(n=Object.assign(n||{},P.parseListConfig(P.parseDirective(t[0].slice(2,-2)).value)));return n}function me(e){let t=e.split(n.sep),r=t.lastIndexOf(`<text>`);return r===-1?e:t.slice(r).join(n.sep)}function he(e,t){let n=t.linterOptions||t,r=n.noInlineConfig===!0,i=e.allowInlineConfig===!1,a=t.configNameOfNoInlineConfig?` (${t.configNameOfNoInlineConfig})`:``,o=e.reportUnusedDisableDirectives;typeof o==`boolean`&&(o=o?`error`:`off`),typeof o!=`string`&&(o=typeof n.reportUnusedDisableDirectives==`boolean`?n.reportUnusedDisableDirectives?`warn`:`off`:n.reportUnusedDisableDirectives===void 0?`off`:E(n.reportUnusedDisableDirectives));let s=n.reportUnusedInlineConfigs===void 0?`off`:E(n.reportUnusedInlineConfigs),c=e.ruleFilter;return typeof c!=`function`&&(c=()=>!0),{filename:me(e.filename||`<input>`),allowInlineConfig:!i,warnInlineConfig:r&&!i?`your config${a}`:null,reportUnusedDisableDirectives:o,reportUnusedInlineConfigs:s,disableFixes:!!e.disableFixes,stats:e.stats,ruleFilter:c}}function ge(e,t,n){let r=o(n.filter(e=>e.parserOptions).reduce((e,t)=>o(e,t.parserOptions),{}),t||{});return r.sourceType===`module`&&(r.ecmaFeatures=Object.assign({},r.ecmaFeatures,{globalReturn:!1})),r.ecmaVersion=ue(e,r.ecmaVersion),r}function q({globals:e,parser:t,parserOptions:n}){let{ecmaVersion:r,sourceType:i}=n;return{globals:e,ecmaVersion:de(r),sourceType:i,parser:t,parserOptions:n}}function _e(e,t){return Object.assign(Object.create(null),...t.filter(e=>e.globals).map(e=>e.globals),e)}function J(e,t,n){let{type:r,key:i}=t;n.times||={passes:[{}]};let a=n.fixPasses;a>n.times.passes.length-1&&n.times.passes.push({}),i?(n.times.passes[a][r]??={},n.times.passes[a][r][i]??={total:0},n.times.passes[a][r][i].total+=e):(n.times.passes[a][r]??={total:0},n.times.passes[a][r].total+=e)}function ve(e,t){return Array.isArray(e)?O(t,e.slice(1)):t??[]}function Y(e,t,n){let a=t.parserOptions.ecmaFeatures||{},o=t.ecmaVersion||5;return r.analyze(e,{ignoreEval:!0,nodejsScope:a.globalReturn,impliedStrict:a.impliedStrict,ecmaVersion:typeof o==`number`?o:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||i.KEYS,fallback:d.getKeys})}function ye(e,t){if(!e||typeof e!=`object`||typeof e.create!=`function`)throw TypeError(`Error while loading rule '${t.id}': Rule must be an object with a \`create\` method`);try{return e.create(t)}catch(e){throw e.message=`Error while loading rule '${t.id}': ${e.message}`,e}}function be(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h=new v,g=new z({cwd:l,filename:s,physicalFilename:u||s,sourceCode:e,parserOptions:{...a.parserOptions},parserPath:r,languageOptions:a,settings:o}),_=e.traverse();return Object.keys(t).forEach(e=>{let r=H.getRuleNumericSeverity(t[e]);if(r===0||d&&!d({ruleId:e,severity:r}))return;let i=n(e);if(!i){m.addError({ruleId:e});return}let a=g.extend({id:e,options:ve(t[e],c?i.meta?.defaultOptions:void 0),report(...t){let n=m.addRuleMessage(e,r,...t);if(n.fix&&!(i.meta&&i.meta.fixable))throw Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(n.suggestions&&!(i.meta&&i.meta.hasSuggestions===!0))throw i.meta&&i.meta.docs&&i.meta.docs.suggestion!==void 0?Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),o=y.enabled||f?y.time(e,ye,f)(i,a):ye(i,a),s=f?o.result:o;f&&J(o.tdiff,{type:`rules`,key:e},p);function l(t){return function(...n){try{let r=t(...n),i=f?r.result:r;return f&&J(r.tdiff,{type:`rules`,key:e},p),i}catch(t){throw t.ruleId=e,t}}}if(s==null)throw Error(`The create() function for rule '${e}' did not return an object.`);Object.keys(s).forEach(t=>{let n=y.enabled||f?y.time(e,s[t],f):s[t];h.add(t,l(n))})}),W.getInstance(i).traverseSync(e,h,{steps:_}),m}function xe(e){if(typeof e==`object`){let{hasBOM:t,text:n}=e;return(t?``:``)+n}return String(e)}function Se(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginEnvironments.get(t)||u.get(t)||null}function X(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginRules.get(t)||e.ruleMap.get(t)}function Ce(e){if(e)return e;if(typeof process==`object`)return process.cwd()}let Z=new WeakMap;function we(e){let{configType:t}=Z.get(e);if(t===`flat`)throw Error(`This method cannot be used with flat config. Add your entries directly into the config array.`)}t.exports={Linter:class{constructor({cwd:e,configType:t=`flat`,flags:n=[],warningService:r=new ee}={}){let i=[];n.forEach(e=>{if(j.has(e)){let t=j.get(e),n=`The flag '${e}' is inactive: ${M(t)}`;if(t.replacedBy===void 0)throw Error(n);typeof t.replacedBy==`string`&&i.push(t.replacedBy),r.emitInactiveFlagWarning(e,n);return}if(!A.has(e))throw Error(`Unknown flag '${e}'.`);i.push(e)}),Z.set(this,{cwd:Ce(e),flags:i,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:t,parserMap:new Map([[`espree`,a]]),ruleMap:new g,warningService:r}),this.version=s.version}static get version(){return s.version}hasFlag(e){return Z.get(this).flags.includes(e)}#e(e,t,n){let r=Z.get(this),i=t||{},o=he(n,i),s=`espree`,c=a;if(typeof i.parser==`object`&&i.parser!==null)s=i.parser.filePath,c=i.parser.definition;else if(typeof i.parser==`string`){if(!r.parserMap.has(i.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${i.parser}' was not found.`,line:0,column:0,nodeType:null}];s=i.parser,c=r.parserMap.get(i.parser)}let l=o.allowInlineConfig&&!o.warnInlineConfig?pe(e.body):{},u=Object.assign({builtin:!0},i.env,l),d=Object.keys(u).filter(e=>u[e]).map(e=>Se(r,e)).filter(e=>e),m=ge(c,i.parserOptions||{},d),h=_e(i.globals||{},d),g=i.settings||{},_=q({globals:i.globals,parser:c,parserOptions:m});if(r.lastSourceCode)r.lastSourceCode.scopeManager||(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,_)}));else{let t;o.stats&&(t=x());let n=new R().parseSync(e,{language:k,languageOptions:_});if(o.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let v=r.lastSourceCode,y=new te({ruleMapper:e=>X(r,e),language:k,sourceCode:v,disableFixes:o.disableFixes}),b=o.allowInlineConfig?ce(v,e=>X(r,e),o.warnInlineConfig,i,y):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ie(v.scopeManager.scopes[0],h,{exportedVariables:b.exportedVariables,enabledGlobals:b.enabledGlobals});let S=Object.assign({},i.rules,b.configuredRules);try{be(v,S,e=>X(r,e),s,k,_,g,o.filename,!0,r.cwd,n.physicalFilename,null,o.stats,r,y)}catch(e){if(e.message+=`\nOccurred while linting ${o.filename}`,N(`An error occurred while traversing`),N(`Filename:`,o.filename),e.currentNode){let{line:t}=v.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,m),N(`Parser Path:`,s),N(`Settings:`,g),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:k,sourceCode:v,directives:b.disableDirectives,disableFixes:o.disableFixes,problems:y.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:o.reportUnusedDisableDirectives})}_verifyWithoutProcessors(e,t,n){let r=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#e(o,t,n)}verify(e,t,n){N(`Verify`);let{configType:r,cwd:i}=Z.get(this),a=typeof n==`string`?{filename:n}:n||{},o=t??{};if(r!==`eslintrc`){let t=o;return(!Array.isArray(o)||typeof o.getConfig!=`function`)&&(t=new b(o,{basePath:i}),t.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,t,a,!0))}return typeof o.extractConfig==`function`?this._distinguishSuppressedMessages(this._verifyWithConfigArray(e,o,a)):a.preprocess||a.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(e,o,a)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(e,o,a))}_verifyWithFlatConfigArrayAndProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path||`(unnamed)`),typeof e==`string`?this._verifyWithFlatConfigArrayAndWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithFlatConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#t(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}#t(e,t,n){let r=Z.get(this),i=t||{},{settings:a={},languageOptions:o}=i,s=he(n,i);if(r.lastSourceCode)r.lastSourceCode.scopeManager===null&&(r.lastSourceCode=new f({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:Y(r.lastSourceCode.ast,o)}));else{let t;s.stats&&(t=x());let n=new R().parseSync(e,i);if(s.stats&&J(w(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let c=r.lastSourceCode,l=new te({ruleMapper:e=>i.getRuleDefinition(e),language:i.language,sourceCode:c,disableFixes:s.disableFixes});c.applyLanguageOptions?.(o);let u={rules:{}};if(s.allowInlineConfig)if(s.warnInlineConfig)c.getInlineConfigNodes&&c.getInlineConfigNodes().forEach(e=>{let t=c.getLoc(e),n=c.getRange(e);l.addWarning({message:`'${c.text.slice(n[0],n[1])}' has no effect because you have 'noInlineConfig' setting in ${s.warnInlineConfig}.`,loc:t})});else{if(i.language===k)for(let e of c.getInlineConfigNodes()){let{label:t}=P.parseDirective(e.value);t===`eslint-env`&&r.warningService.emitESLintEnvWarning(s.filename,e.loc.start.line)}let e=c.applyInlineConfig?.();if(e){e.problems.forEach(e=>{l.addFatal(e)});for(let{config:t,loc:n}of e.configs)Object.keys(t.rules).forEach(e=>{let r=i.getRuleDefinition(e),a=t.rules[e];if(!r){l.addError({ruleId:e,loc:n});return}if(Object.hasOwn(u.rules,e)){l.addError({message:`Rule "${e}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:n});return}try{let t=ae(a),o=t;T(e,o[0]);let c=!0;if(o.length===1&&i.rules&&Object.hasOwn(i.rules,e))o=[o[0],...i.rules[e].slice(1)],i.rules[e][0]>0&&(c=!1);else{let e=o.slice(1),t=O(r.meta?.defaultOptions,e);t.length&&(o=[o[0],...t])}s.reportUnusedInlineConfigs!==`off`&&G(i,n,l,e,o,t,s.reportUnusedInlineConfigs),c&&i.validateRulesConfig({[e]:o}),u.rules[e]=o}catch(t){if(t.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw t;let r=t.message.slice(t.message.startsWith(`Key "rules":`)?t.message.indexOf(`:`,12)+1:t.message.indexOf(`:`)+1).trim();t.messageTemplate&&(r+=` You passed "${a}".`),l.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\t${r}\n`,loc:n})}})}}let d=s.allowInlineConfig&&!s.warnInlineConfig?K(c,e=>i.getRuleDefinition(e),i.language,l):[],m=Object.assign({},i.rules,u.rules);c.finalize?.();try{be(c,m,e=>i.getRuleDefinition(e),void 0,i.language,o,a,s.filename,!1,r.cwd,n.physicalFilename,s.ruleFilter,s.stats,r,l)}catch(e){if(e.message+=`\nOccurred while linting ${s.filename}`,N(`An error occurred while traversing`),N(`Filename:`,s.filename),e.currentNode){let{line:t}=c.getLoc(e.currentNode).start;N(`Line:`,t),e.message+=`:${t}`}throw N(`Parser Options:`,o.parserOptions),N(`Settings:`,a),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return p({language:i.language,sourceCode:c,directives:d,disableFixes:s.disableFixes,problems:l.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:s.reportUnusedDisableDirectives,ruleFilter:s.ruleFilter,configuredRules:m})}_verifyWithFlatConfigArrayAndWithoutProcessors(e,t,n){let r=Z.get(this),i=me(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new L(i,a,{physicalPath:n.physicalFilename});return this.#t(o,t,n)}_verifyWithConfigArray(e,t,n){N(`With ConfigArray: %s`,n.filename),Z.get(this).lastConfigArray=t;let r=t.extractConfig(n.filename),i=r.processor&&t.pluginProcessors.get(r.processor);if(i){N(`Apply the processor: %o`,r.processor);let{preprocess:a,postprocess:o,supportsAutofix:s}=i,c=n.disableFixes||!s;return this._verifyWithProcessor(e,r,{...n,disableFixes:c,postprocess:o,preprocess:a},t)}return this._verifyWithoutProcessors(e,r,n)}_verifyWithFlatConfigArray(e,t,n,r=!1){N(`With flat config: %s`,n.filename);let i=n.filename||`__placeholder__.js`;Z.get(this).lastConfigArray=t;let a=t.getConfig(i);if(!a)return[{ruleId:null,severity:1,message:`No matching configuration found for ${i}.`,line:0,column:0,nodeType:null}];if(a.processor){N(`Apply the processor: %o`,a.processor);let{preprocess:r,postprocess:o,supportsAutofix:s}=a.processor,c=n.disableFixes||!s;return this._verifyWithFlatConfigArrayAndProcessor(e,a,{...n,filename:i,disableFixes:c,postprocess:o,preprocess:r},t)}return r&&(n.preprocess||n.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,a,n):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,a,n)}_verifyWithProcessor(e,t,r,i){let a=Z.get(this),o=r.filename||`<input>`,s=me(o),c=r.physicalFilename||s,l=xe(e),u=new L(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new B,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=n.extname(o),{files:_}=m,v=_.map(e=>(N(`A code block was found: %o`,e.path??`(unnamed)`),typeof e==`string`?this._verifyWithoutProcessors(e,t,r):h(e.path,e.body)?i&&(l!==e.rawBody||n.extname(e.path)!==g)?(N(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithConfigArray(e.rawBody,i,{...r,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#e(e,t,{...r,filename:e.path,physicalFilename:e.physicalPath})):(N(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}_distinguishSuppressedMessages(e){let t=[],n=[],r=Z.get(this);for(let r of e)r.suppressions?n.push(r):t.push(r);return r.lastSuppressedMessages=n,t}getSourceCode(){return Z.get(this).lastSourceCode}getTimes(){return Z.get(this).times??{passes:[]}}getFixPassCount(){return Z.get(this).fixPasses??0}getSuppressedMessages(){return Z.get(this).lastSuppressedMessages}defineRule(e,t){we(this),Z.get(this).ruleMap.define(e,t)}defineRules(e){we(this),Object.getOwnPropertyNames(e).forEach(t=>{this.defineRule(t,e[t])})}getRules(){we(this);let{lastConfigArray:e,ruleMap:t}=Z.get(this);return new Map((function*(){yield*t,e&&(yield*e.pluginRules)})())}defineParser(e,t){we(this),Z.get(this).parserMap.set(e,t)}verifyAndFix(e,t,n){let r,i,a=!1,o=0,s=e,c,l,u=n&&n.filename||`${e.slice(0,10)}...`,d=n&&n.fix!==void 0?n.fix:!0,f=n?.stats,p=Z.get(this);f&&(delete p.times,p.fixPasses=0);do{o++;let e;f&&(e=x()),N(`Linting code for ${u} (pass ${o})`),r=this.verify(s,t,n),N(`Generating fixed text for ${u} (pass ${o})`);let m;if(f&&(m=x()),i=_.applyFixes(s,r,d),f&&(i.fixed?(J(w(m),{type:`fix`},p),p.fixPasses++):J(0,{type:`fix`},p)),r.length===1&&r[0].fatal)break;if(a||=i.fixed,c=l,l=s,s=i.output,f){e=w(e);let t=p.times.passes.length-1;p.times.passes[t].total=e}if(o>1&&s.length===c.length&&s===c){N(`Circular fixes detected after pass ${o}. Exiting fix loop.`),p.warningService.emitCircularFixesWarning(n?.filename??`text`);break}}while(i.fixed&&o<10);if(i.fixed){let e;f&&(e=x()),i.messages=this.verify(s,t,n),f&&(J(0,{type:`fix`},p),p.times.passes.at(-1).total=w(e))}return i.fixed=a,i.output=s,i}},getLinterInternalSlots(e){return Z.get(e)}}})),Ac=d(((e,t)=>{let{Linter:n}=kc();t.exports={Linter:n,SourceCodeFixer:pc()}})),jc=d(((e,t)=>{let n=/^@.*\//u;function r(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function i(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function a(e){let t=e.match(n);return t?t[0]:``}t.exports={normalizePackageName:r,getShorthandName:i,getNamespaceFromTerm:a}})),Mc=d((e=>{e.stringify=function e(t){if(t===void 0)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(`:base64:`+t.toString(`base64`));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t==`object`){var n=``,r=Array.isArray(t);n=r?`[`:`{`;var i=!0;for(var a in t){var o=typeof t[a]==`function`||!r&&t[a]===void 0;Object.hasOwnProperty.call(t,a)&&!o&&(i||(n+=`,`),i=!1,r?t[a]==null?n+=`null`:n+=e(t[a]):t[a]!==void 0&&(n+=e(a)+`:`+e(t[a])))}return n+=r?`]`:`}`,n}else if(typeof t==`string`)return JSON.stringify(/^:/.test(t)?`:`+t:t);else if(t===void 0)return`null`;else return JSON.stringify(t)},e.parse=function(e){return JSON.parse(e,function(e,t){return typeof t==`string`?/^:base64:/.test(t)?Buffer.from(t.substring(8),`base64`):/^:/.test(t)?t.substring(1):t:t})}})),Nc=d(((e,t)=>{let n=h(`events`),r=Mc(),i=e=>e.adapter||e.uri?new(h({redis:`@keyv/redis`,rediss:`@keyv/redis`,mongodb:`@keyv/mongo`,mongo:`@keyv/mongo`,sqlite:`@keyv/sqlite`,postgresql:`@keyv/postgres`,postgres:`@keyv/postgres`,mysql:`@keyv/mysql`,etcd:`@keyv/etcd`,offline:`@keyv/offline`,tiered:`@keyv/tiered`}[e.adapter||/^[^:+]*/.exec(e.uri)[0]]))(e):new Map,a=[`sqlite`,`postgres`,`mysql`,`mongo`,`redis`,`tiered`];t.exports=class extends n{constructor(e,{emitErrors:t=!0,...n}={}){if(super(),this.opts={namespace:`keyv`,serialize:r.stringify,deserialize:r.parse,...typeof e==`string`?{uri:e}:e,...n},!this.opts.store){let e={...this.opts};this.opts.store=i(e)}if(this.opts.compression){let e=this.opts.compression;this.opts.serialize=e.serialize.bind(e),this.opts.deserialize=e.deserialize.bind(e)}typeof this.opts.store.on==`function`&&t&&this.opts.store.on(`error`,e=>this.emit(`error`,e)),this.opts.store.namespace=this.opts.namespace;let a=e=>async function*(){for await(let[t,n]of typeof e==`function`?e(this.opts.store.namespace):e){let e=await this.opts.deserialize(n);if(!(this.opts.store.namespace&&!t.includes(this.opts.store.namespace))){if(typeof e.expires==`number`&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}}};typeof this.opts.store[Symbol.iterator]==`function`&&this.opts.store instanceof Map?this.iterator=a(this.opts.store):typeof this.opts.store.iterator==`function`&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return a.includes(this.opts.store.opts.dialect)||a.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(e){return e.split(`:`).splice(1).join(`:`)}get(e,t){let{store:n}=this.opts,r=Array.isArray(e),i=r?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(r&&n.getMany===void 0){let e=[];for(let r of i)e.push(Promise.resolve().then(()=>n.get(r)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(e=>{if(e!=null)return typeof e.expires==`number`&&Date.now()>e.expires?this.delete(r).then(()=>void 0):t&&t.raw?e:e.value}));return Promise.allSettled(e).then(e=>{let t=[];for(let n of e)t.push(n.value);return t})}return Promise.resolve().then(()=>r?n.getMany(i):n.get(i)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(n=>{if(n!=null)return r?n.map((n,r)=>{if(typeof n==`string`&&(n=this.opts.deserialize(n)),n!=null){if(typeof n.expires==`number`&&Date.now()>n.expires){this.delete(e[r]).then(()=>void 0);return}return t&&t.raw?n:n.value}}):typeof n.expires==`number`&&Date.now()>n.expires?this.delete(e).then(()=>void 0):t&&t.raw?n:n.value})}set(e,t,n){let r=this._getKeyPrefix(e);n===void 0&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let e=typeof n==`number`?Date.now()+n:null;return typeof t==`symbol`&&this.emit(`error`,`symbol cannot be serialized`),t={value:t,expires:e},this.opts.serialize(t)}).then(e=>i.set(r,e,n)).then(()=>!0)}delete(e){let{store:t}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(t.deleteMany===void 0){let e=[];for(let r of n)e.push(t.delete(r));return Promise.allSettled(e).then(e=>e.every(e=>e.value===!0))}return Promise.resolve().then(()=>t.deleteMany(n))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let t=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has==`function`?n.has(t):await n.get(t)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect==`function`)return e.disconnect()}}})),Pc=d((e=>{let{parse:t,stringify:n}=JSON,{keys:r}=Object,i=String,a=`string`,o={},s=`object`,c=(e,t)=>t,l=e=>e instanceof i?i(e):e,u=(e,t)=>typeof t===a?new i(t):t,d=(e,t,n,a)=>{let c=[];for(let l=r(n),{length:u}=l,d=0;d<u;d++){let r=l[d],u=n[r];if(u instanceof i){let i=e[u];typeof i===s&&!t.has(i)?(t.add(i),n[r]=o,c.push({k:r,a:[e,t,i,a]})):n[r]=a.call(n,r,i)}else n[r]!==o&&(n[r]=a.call(n,r,u))}for(let{length:e}=c,t=0;t<e;t++){let{k:e,a:r}=c[t];n[e]=a.call(n,e,d.apply(null,r))}return n},f=(e,t,n)=>{let r=i(t.push(n)-1);return e.set(n,r),r},p=(e,n)=>{let r=t(e,u).map(l),i=r[0],a=n||c,o=typeof i===s&&i?d(r,new Set,i,a):i;return a.call({"":o},``,o)};e.parse=p;let m=(e,t,r)=>{let i=t&&typeof t===s?(e,n)=>e===``||-1<t.indexOf(e)?n:void 0:t||c,o=new Map,l=[],u=[],d=+f(o,l,i.call({"":e},``,e)),p=!d;for(;d<l.length;)p=!0,u[d]=n(l[d++],m,r);return`[`+u.join(`,`)+`]`;function m(e,t){if(p)return p=!p,t;let n=i.call(this,e,t);switch(typeof n){case s:if(n===null)return n;case a:return o.get(n)||f(o,l,n)}return n}};e.stringify=m,e.toJSON=e=>t(m(e)),e.fromJSON=e=>p(n(e))})),Fc=d(((e,t)=>{let n=h(`fs`),r=h(`path`),i=Pc();function a(e,t){let n;try{n=o(e)}catch{n=t}return n}function o(e){return i.parse(n.readFileSync(e,{encoding:`utf8`}))}function s(e,t){n.mkdirSync(r.dirname(e),{recursive:!0}),n.writeFileSync(e,i.stringify(t))}t.exports={tryParse:a,readJSON:o,writeJSON:s}})),Ic=d(((e,t)=>{let n=h(`fs`),r=h(`path`);function i(e){if(!n.existsSync(e))return!1;try{return n.statSync(e).isDirectory()?(n.readdirSync(e).forEach(t=>{let i=r.join(e,t);n.statSync(i).isFile()&&n.unlinkSync(i)}),n.rmdirSync(e)):n.unlinkSync(e),!0}catch(t){console.error(`Error while deleting ${e}: ${t.message}`)}}t.exports={del:i}})),Lc=d(((e,t)=>{V();let n=h(`path`),r=h(`fs`),i=Nc(),{writeJSON:a,tryParse:o}=Fc(),{del:s}=Ic(),c={load:function(e,t){let a=this;a.keyv=new i,a.__visited={},a.__persisted={},a._pathToFile=t?n.resolve(t,e):n.resolve(z,`../.cache/`,e),r.existsSync(a._pathToFile)&&(a._persisted=o(a._pathToFile,{}))},get _persisted(){return this.__persisted},set _persisted(e){this.__persisted=e},get _visited(){return this.__visited},set _visited(e){this.__visited=e},loadFile:function(e){let t=this,r=n.dirname(e),i=n.basename(e);t.load(i,r)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,t){this._visited[e]=!0,this._persisted[e]=t},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){let e=this,t={},n=Object.keys(e._visited);n.length!==0&&(n.forEach(function(n){t[n]=e._persisted[n]}),e._visited={},e._persisted=t)},save:function(e){let t=this;!e&&t._prune(),a(t._pathToFile,t._persisted)},removeCacheFile:function(){return s(this._pathToFile)},destroy:function(){let e=this;e._visited={},e._persisted={},e.removeCacheFile()}};t.exports={load:function(e,t){return this.create(e,t)},create:function(e,t){let n=Object.create(c);return n.load(e,t),n},createFromFile:function(e){let t=Object.create(c);return t.loadFile(e),t},clearCacheById:function(e,t){return s(t?n.resolve(t,e):n.resolve(z,`../.cache/`,e))},clearAll:function(e){return s(e?n.resolve(e):n.resolve(z,`../.cache/`))}}})),Rc=d(((e,t)=>{var n=h(`path`),r=h(`crypto`);t.exports={createFromFile:function(e,t){var r=n.basename(e),i=n.dirname(e);return this.create(r,i,t)},create:function(e,t,n){var i=h(`fs`),a=Lc().load(e,t),o={},s=function(){a.keys().forEach(function(e){try{i.statSync(e)}catch(t){t.code===`ENOENT`&&a.removeKey(e)}})};return s(),{cache:a,getHash:function(e){return r.createHash(`md5`).update(e).digest(`hex`)},hasFileChanged:function(e){return this.getFileDescriptor(e).changed},analyzeFiles:function(e){var t=this;e||=[];var n={changedFiles:[],notFoundFiles:[],notChangedFiles:[]};return t.normalizeEntries(e).forEach(function(e){if(e.changed){n.changedFiles.push(e.key);return}if(e.notFound){n.notFoundFiles.push(e.key);return}n.notChangedFiles.push(e.key)}),n},getFileDescriptor:function(e){var t;try{t=i.statSync(e)}catch(t){return this.removeEntry(e),{key:e,notFound:!0,err:t}}return n?this._getFileDescriptorUsingChecksum(e):this._getFileDescriptorUsingMtimeAndSize(e,t)},_getFileDescriptorUsingMtimeAndSize:function(e,t){var n=a.getKey(e),r=!!n,i=t.size,s=t.mtime.getTime(),c,l;return n?(c=s!==n.mtime,l=i!==n.size):n={size:i,mtime:s},o[e]={key:e,changed:!r||c||l,meta:n}},_getFileDescriptorUsingChecksum:function(e){var t=a.getKey(e),n=!!t,r;try{r=i.readFileSync(e)}catch{r=``}var s=!0,c=this.getHash(r);return t?s=c!==t.hash:t={hash:c},o[e]={key:e,changed:!n||s,meta:t}},getUpdatedFiles:function(e){var t=this;return e||=[],t.normalizeEntries(e).filter(function(e){return e.changed}).map(function(e){return e.key})},normalizeEntries:function(e){e||=[];var t=this;return e.map(function(e){return t.getFileDescriptor(e)})},removeEntry:function(e){delete o[e],a.removeKey(e)},deleteCacheFile:function(){a.removeCacheFile()},destroy:function(){o={},a.destroy()},_getMetaForFileUsingCheckSum:function(e){var t=i.readFileSync(e.key),n=this.getHash(t),r=Object.assign(e.meta,{hash:n});return delete r.size,delete r.mtime,r},_getMetaForFileUsingMtimeAndSize:function(e){var t=i.statSync(e.key),n=Object.assign(e.meta,{size:t.size,mtime:t.mtime.getTime()});return delete n.hash,n},reconcile:function(e){s(),e=e===void 0?!0:e;var t=o,r=Object.keys(t);if(r.length!==0){var i=this;r.forEach(function(e){var r=t[e];try{var o=n?i._getMetaForFileUsingCheckSum(r):i._getMetaForFileUsingMtimeAndSize(r);a.setKey(e,o)}catch(e){if(e.code!==`ENOENT`)throw e}}),a.save(e)}}}}}})),zc=d(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var i=t.space||``;typeof i==`number`&&(i=Array(i+1).join(` `));var a=typeof t.cycles==`boolean`?t.cycles:!1,o=t.replacer||function(e,t){return t},s=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),c=[];return(function e(t,l,u,d){var f=i?`
265
+ `+Array(d+1).join(i):``,p=i?`: `:`:`;if(u&&u.toJSON&&typeof u.toJSON==`function`&&(u=u.toJSON()),u=o.call(t,l,u),u!==void 0){if(typeof u!=`object`||!u)return JSON.stringify(u);if(n(u)){for(var m=[],h=0;h<u.length;h++){var g=e(u,h,u[h],d+1)||JSON.stringify(null);m.push(f+i+g)}return`[`+m.join(`,`)+f+`]`}else{if(c.indexOf(u)!==-1){if(a)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}else c.push(u);for(var _=r(u).sort(s&&s(u)),m=[],h=0;h<_.length;h++){var l=_[h],v=e(u,l,u[l],d+1);if(v){var y=JSON.stringify(l)+p+v;m.push(f+i+y)}}return c.splice(c.indexOf(u),1),`{`+m.join(`,`)+f+`}`}}})({"":e},``,e,0)};var n=Array.isArray||function(e){return{}.toString.call(e)===`[object Array]`},r=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}})),Bc=d(((e,t)=>{let n=h(`node:fs`),r=Rc(),i=zc(),a=C(),o=Wa(),s=Qo(),c=S()(`eslint:lint-result-cache`),l=new WeakMap,u=process&&process.version,d=[`metadata`,`content`],f=`Cache strategy must be one of: ${d.map(e=>`"${e}"`).join(`, `)}`;function p(e){return d.includes(e)}function m(e){return l.has(e)||l.set(e,s(`${a.version}_${u}_${i(e)}`)),l.get(e)}t.exports=class{constructor(e,t){o(e,`Cache file location is required`),o(t,`Cache strategy is required`),o(p(t),f),c(`Caching results to ${e}`);let n=t===`content`;c(`Using "${t}" strategy to detect changes`),this.fileEntryCache=r.create(e,void 0,n),this.cacheFileLocation=e}getCachedLintResults(e,t){let r=this.getValidCachedLintResults(e,t);if(!r)return r;let i={...r};return i.source===null&&(c(`Rereading cached result source from filesystem: ${e}`),i.source=n.readFileSync(e,`utf-8`)),i}getValidCachedLintResults(e,t){let n=this.fileEntryCache.getFileDescriptor(e);if(n.notFound)return c(`File not found on the file system: ${e}`),null;let r=m(t);return n.changed||n.meta.hashOfConfig!==r?(c(`Cache entry not found or no longer valid: ${e}`),null):n.meta.results}setCachedLintResults(e,t,n){if(n&&Object.hasOwn(n,`output`))return;let r=this.fileEntryCache.getFileDescriptor(e);if(r&&!r.notFound){c(`Updating cached result: ${e}`);let i=Object.assign({},n);Object.hasOwn(i,`source`)&&(i.source=null),r.meta.results=i,r.meta.hashOfConfig=m(t)}}reconcile(){c(`Persisting cached results: ${this.cacheFileLocation}`),this.fileEntryCache.reconcile()}}})),Vc=d(((e,t)=>{var n=class{constructor(e){this.value=e,this.next=void 0}};t.exports=class{constructor(){this.clear()}enqueue(e){let t=new n(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}})),Hc=d(((e,t)=>{let n=Vc();t.exports=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new n,r=0,i=()=>{r--,t.size>0&&t.dequeue()()},a=async(e,t,...n)=>{r++;let a=(async()=>e(...n))();t(a);try{await a}catch{}i()},o=(n,i,...o)=>{t.enqueue(a.bind(null,n,i,...o)),(async()=>{await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()})()},s=(e,...t)=>new Promise(n=>{o(e,n,...t)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s}})),Uc=d(((e,t)=>{let n=Hc();var r=class extends Error{constructor(e){super(),this.value=e}};let i=async(e,t)=>t(await e),a=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new r(t[0]);return!1};t.exports=async(e,t,o)=>{o={concurrency:1/0,preserveOrder:!0,...o};let s=n(o.concurrency),c=[...e].map(e=>[e,s(i,e,t)]),l=n(o.preserveOrder?1:1/0);try{await Promise.all(c.map(e=>l(a,e)))}catch(e){if(e instanceof r)return e.value;throw e}}})),Wc=d(((e,t)=>{let n=h(`path`),r=h(`fs`),{promisify:i}=h(`util`),a=Uc(),o=i(r.stat),s=i(r.lstat),c={directory:`isDirectory`,file:`isFile`};function l({type:e}){if(!(e in c))throw Error(`Invalid type specified: ${e}`)}let u=(e,t)=>e===void 0||t[c[e]]();t.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},l(t);let r=t.allowSymlinks?o:s;return a(e,async e=>{try{let i=await r(n.resolve(t.cwd,e));return u(t.type,i)}catch{return!1}},t)},t.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},l(t);let i=t.allowSymlinks?r.statSync:r.lstatSync;for(let r of e)try{let e=i(n.resolve(t.cwd,r));if(u(t.type,e))return r}catch{}}})),Gc=d(((e,t)=>{let n=h(`fs`),{promisify:r}=h(`util`),i=r(n.access);t.exports=async e=>{try{return await i(e),!0}catch{return!1}},t.exports.sync=e=>{try{return n.accessSync(e),!0}catch{return!1}}})),Kc=d(((e,t)=>{let n=h(`path`),r=Wc(),i=Gc(),a=Symbol(`findUp.stop`);t.exports=async(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return r(s,t);let n=await e(t.cwd);return typeof n==`string`?r([n],t):n};for(;;){let e=await c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.sync=(e,t={})=>{let i=n.resolve(t.cwd||``),{root:o}=n.parse(i),s=[].concat(e),c=t=>{if(typeof e!=`function`)return r.sync(s,t);let n=e(t.cwd);return typeof n==`string`?r.sync([n],t):n};for(;;){let e=c({...t,cwd:i});if(e===a)return;if(e)return n.resolve(i,e);if(i===o)return;i=n.dirname(i)}},t.exports.exists=i,t.exports.sync.exists=i.sync,t.exports.stop=a})),qc=d(((e,t)=>{(()=>{var e={"./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive":function(e){function t(e){return Promise.resolve().then(function(){var t=Error(`Cannot find module '`+e+`'`);throw t.code=`MODULE_NOT_FOUND`,t})}t.keys=()=>[],t.resolve=t,t.id=`./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive`,e.exports=t}},n={};function r(t){var i=n[t];if(i!==void 0)return i.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{r.d(i,{default:()=>Gr});let e=h(`node:os`);var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},s=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,c={5:s,"5module":s+` export import`,6:s+` const class extends export import super`},l=/^in(stanceof)?$/,u=RegExp(`[`+a+`]`),d=RegExp(`[`+a+`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]`);function f(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function p(e,t){return e<65?e===36:e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==t&&f(e,n)))}function m(e,r){return e<48?e===36:e<58||!(e<65)&&(e<91||(e<97?e===95:e<123||(e<=65535?e>=170&&d.test(String.fromCharCode(e)):!1!==r&&(f(e,n)||f(e,t)))))}var g=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function _(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},y={startsExpr:!0},b={};function x(e,t){return t===void 0&&(t={}),t.keyword=e,b[e]=new g(e,t)}var S={num:new g(`num`,y),regexp:new g(`regexp`,y),string:new g(`string`,y),name:new g(`name`,y),privateId:new g(`privateId`,y),eof:new g(`eof`),bracketL:new g(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new g(`]`),braceL:new g(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new g(`}`),parenL:new g(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new g(`)`),comma:new g(`,`,v),semi:new g(`;`,v),colon:new g(`:`,v),dot:new g(`.`),question:new g(`?`,v),questionDot:new g(`?.`),arrow:new g(`=>`,v),template:new g(`template`),invalidTemplate:new g(`invalidTemplate`),ellipsis:new g(`...`,v),backQuote:new g("`",y),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g(`=`,{beforeExpr:!0,isAssign:!0}),assign:new g(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new g(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:_(`||`,1),logicalAND:_(`&&`,2),bitwiseOR:_(`|`,3),bitwiseXOR:_(`^`,4),bitwiseAND:_(`&`,5),equality:_(`==/!=/===/!==`,6),relational:_(`</>/<=/>=`,7),bitShift:_(`<</>>/>>>`,8),plusMin:new g(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:_(`%`,10),star:_(`*`,10),slash:_(`/`,10),starstar:new g(`**`,{beforeExpr:!0}),coalesce:_(`??`,1),_break:x(`break`),_case:x(`case`,v),_catch:x(`catch`),_continue:x(`continue`),_debugger:x(`debugger`),_default:x(`default`,v),_do:x(`do`,{isLoop:!0,beforeExpr:!0}),_else:x(`else`,v),_finally:x(`finally`),_for:x(`for`,{isLoop:!0}),_function:x(`function`,y),_if:x(`if`),_return:x(`return`,v),_switch:x(`switch`),_throw:x(`throw`,v),_try:x(`try`),_var:x(`var`),_const:x(`const`),_while:x(`while`,{isLoop:!0}),_with:x(`with`),_new:x(`new`,{beforeExpr:!0,startsExpr:!0}),_this:x(`this`,y),_super:x(`super`,y),_class:x(`class`,y),_extends:x(`extends`,v),_export:x(`export`),_import:x(`import`,y),_null:x(`null`,y),_true:x(`true`,y),_false:x(`false`,y),_in:x(`in`,{beforeExpr:!0,binop:7}),_instanceof:x(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:x(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(C.source,`g`);function T(e){return e===10||e===13||e===8232||e===8233}function E(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(T(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var D=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,A=k.hasOwnProperty,j=k.toString,M=Object.hasOwn||function(e,t){return A.call(e,t)},N=Array.isArray||function(e){return j.call(e)===`[object Array]`},P=Object.create(null);function F(e){return P[e]||(P[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function I(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var z=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function B(e,t){for(var n=1,r=0;;){var i=E(e,r,t);if(i<0)return new R(n,t-r);++n,r=i}}var V={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},H=!1;function U(e){var t={};for(var n in V)t[n]=e&&M(e,n)?e[n]:V[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!H&&typeof console==`object`&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
95
266
  Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),N(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return N(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new z(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),t}var ee=256,W=259;function te(e,t){return 2|(e?4:0)|(t?8:0)}var ne=function(e,t,n){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=F(c[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;!0!==e.allowReserved&&(r=o[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=F(r);var i=(r?r+` `:``)+o.strict;this.reservedWordsStrict=F(i),this.reservedWordsStrictBind=F(i+` `+o.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
96
267
  `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(C).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=S.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},re={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};ne.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},re.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},re.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},re.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},re.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},re.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},re.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},re.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},re.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},re.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ee)>0},ne.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},ne.parse=function(e,t){return new this(t,e).parse()},ne.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},ne.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ne.prototype,re);var ie=ne.prototype,ae=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ie.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){O.lastIndex=e,e+=O.exec(this.input)[0].length;var t=ae.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){O.lastIndex=e+t[0].length;var n=O.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||C.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,O.lastIndex=e,e+=O.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ie.eat=function(e){return this.type===e&&(this.next(),!0)},ie.isContextual=function(e){return this.type===S.name&&this.value===e&&!this.containsEsc},ie.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ie.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ie.canInsertSemicolon=function(){return this.type===S.eof||this.type===S.braceR||C.test(this.input.slice(this.lastTokEnd,this.start))},ie.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ie.semicolon=function(){this.eat(S.semi)||this.insertSemicolon()||this.unexpected()},ie.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ie.expect=function(e){this.eat(e)||this.unexpected()},ie.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var oe=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ie.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},ie.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},ie.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},ie.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var G=ne.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==S.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var se={kind:`loop`},ce={kind:`switch`};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;O.lastIndex=this.pos;var t=O.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(p(r,!0)){for(var i=n+1;m(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!l.test(a))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;O.lastIndex=this.pos;var e,t=O.exec(this.input),n=this.pos+t[0].length;return!(C.test(this.input.slice(this.pos,n))||this.input.slice(n,n+8)!==`function`||n+8!==this.input.length&&(m(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},G.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;O.lastIndex=this.pos;var n=O.exec(this.input),r=this.pos+n[0].length;if(C.test(this.input.slice(this.pos,r)))return!1;if(e){var i,a=r+5;if(this.input.slice(r,a)!==`using`||a===this.input.length||m(i=this.input.charCodeAt(a))||i>55295&&i<56320)return!1;O.lastIndex=a;var o=O.exec(this.input);if(o&&C.test(this.input.slice(a,a+o[0].length)))return!1}if(t){var s,c=r+2;if(!(this.input.slice(r,c)!==`of`||c!==this.input.length&&(m(s=this.input.charCodeAt(c))||s>55295&&s<56320)))return!1}var l=this.input.charCodeAt(r);return p(l,!0)||l===92},G.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},G.isUsing=function(e){return this.isUsingKeyword(!1,e)},G.parseStatement=function(e,t,n){var r,i=this.type,a=this.startNode();switch(this.isLet(e)&&(i=S._var,r=`let`),i){case S._break:case S._continue:return this.parseBreakContinueStatement(a,i.keyword);case S._debugger:return this.parseDebuggerStatement(a);case S._do:return this.parseDoStatement(a);case S._for:return this.parseForStatement(a);case S._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case S._class:return e&&this.unexpected(),this.parseClass(a,!0);case S._if:return this.parseIfStatement(a);case S._return:return this.parseReturnStatement(a);case S._switch:return this.parseSwitchStatement(a);case S._throw:return this.parseThrowStatement(a);case S._try:return this.parseTryStatement(a);case S._const:case S._var:return r||=this.value,e&&r!==`var`&&this.unexpected(),this.parseVarStatement(a,r);case S._while:return this.parseWhileStatement(a);case S._with:return this.parseWithStatement(a);case S.braceL:return this.parseBlock(!0,a);case S.semi:return this.parseEmptyStatement(a);case S._export:case S._import:if(this.options.ecmaVersion>10&&i===S._import){O.lastIndex=this.pos;var o=O.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),i===S._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return t&&this.options.sourceType===`script`&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(a,!1,l),this.semicolon(),this.finishNode(a,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return i===S.name&&d.type===`Identifier`&&this.eat(S.colon)?this.parseLabeledStatement(a,u,d,e):this.parseExpressionStatement(a,d)}},G.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(S.semi)||this.insertSemicolon()?e.label=null:this.type===S.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},G.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},G.parseDoStatement=function(e){return this.next(),this.labels.push(se),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(S._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(S.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(se),this.enterScope(0),this.expect(S.parenL),this.type===S.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===S._var||this.type===S._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&this.next(),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new oe,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===S._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===S._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start!==d||l||f.type!==`Identifier`||f.name!==`async`?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},G.parseForAfterInit=function(e,t,n){return(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===S._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},G.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,K|(n?0:ue),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(S._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},G.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(S.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},G.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(S.braceL),this.labels.push(ce),this.enterScope(0);for(var n=!1;this.type!==S.braceR;)if(this.type===S._case||this.type===S._default){var r=this.type===S._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(S.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},G.parseThrowStatement=function(e){return this.next(),C.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var le=[];G.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(S.parenR),e},G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===S._catch){var t=this.startNode();this.next(),this.eat(S.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(S._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},G.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(se),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},G.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===S._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},G.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(S.braceL),e&&this.enterScope(0);this.type!==S.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},G.parseFor=function(e,t){return e.init=t,this.expect(S.semi),e.test=this.type===S.semi?null:this.parseExpression(),this.expect(S.semi),e.update=this.type===S.parenR?null:this.parseExpression(),this.expect(S.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},G.parseForIn=function(e,t){var n=this.type===S._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(S.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},G.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(S.eq)?i.init=this.parseMaybeAssign(t):r||n!==`const`||this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual(`of`)?r||n!==`using`&&n!==`await using`||!(this.options.ecmaVersion>=17)||this.type===S._in||this.isContextual(`of`)?r||i.id.type===`Identifier`||t&&(this.type===S._in||this.isContextual(`of`))?i.init=null:this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):this.unexpected(),e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(S.comma))break}return e},G.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?1:2,!1)};var K=1,ue=2;function de(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type!==`MethodDefinition`||t.kind!==`get`&&t.kind!==`set`||(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):!!r||(e[n]=i,!1)}function fe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}G.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===S.star&&t&ue&&this.unexpected(),e.generator=this.eat(S.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&K&&(e.id=4&t&&this.type!==S.name?null:this.parseIdent(),!e.id||t&ue||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(te(e.async,e.generator)),t&K||(e.id=this.type===S.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&K?`FunctionDeclaration`:`FunctionExpression`)},G.parseFunctionParams=function(e){this.expect(S.parenL),e.params=this.parseBindingList(S.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},G.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(S.braceL);this.type!==S.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&de(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},G.parseClassElement=function(e){if(this.eat(S.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(S.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===S.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&(!this.isClassElementNameStart()&&this.type!==S.star||this.canInsertSemicolon()?r=`async`:a=!0),!r&&(t>=9||!a)&&this.eat(S.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===S.parenL||o!==`method`||i||a){var l=!n.static&&fe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},G.isClassElementNameStart=function(){return this.type===S.name||this.type===S.privateId||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===S.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},G.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&fe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},G.parseClassField=function(e){return fe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&fe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(S.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},G.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==S.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},G.parseClassId=function(e,t){this.type===S.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(S._extends)?this.parseExprSubscripts(null,!1):null},G.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},G.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];M(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}},G.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==S.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},G.parseExport=function(e,t){if(this.next(),this.eat(S.star))return this.parseExportAllDeclaration(e,t);if(this.eat(S._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==S.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},G.parseExportDeclaration=function(e){return this.parseStatement(null)},G.parseExportDefaultDeclaration=function(){var e;if(this.type===S._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|K,!1,e)}if(this.type===S._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},G.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),M(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},G.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},G.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},G.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},G.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},G.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(S.braceL);!this.eat(S.braceR);){if(n)n=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;t.push(this.parseExportSpecifier(e))}return t},G.parseImport=function(e){return this.next(),this.type===S.string?(e.specifiers=le,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===S.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},G.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportSpecifier`)},G.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportDefaultSpecifier`)},G.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,`ImportNamespaceSpecifier`)},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===S.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(S.comma)))return e;if(this.type===S.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(S.braceL);!this.eat(S.braceR);){if(t)t=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;e.push(this.parseImportSpecifier())}return e},G.parseWithClause=function(){var e=[];if(!this.eat(S._with))return e;this.expect(S.braceL);for(var t={},n=!0;!this.eat(S.braceR);){if(n)n=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;M(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},G.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===S.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(S.colon),this.type!==S.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===S.string){var e=this.parseLiteral(this.value);return L.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},G.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},G.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var pe=ne.prototype;pe.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type!==`RestElement`||a.argument.type!==`ArrayPattern`&&a.argument.type!==`ObjectPattern`||this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},pe.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},pe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},pe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==S.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},pe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case S.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(S.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case S.braceL:return this.parseObj(!0)}return this.parseIdent()},pe.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(S.comma),t&&this.type===S.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===S.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===S.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},pe.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},pe.parseBindingListItem=function(e){return e},pe.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(S.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},pe.checkLValSimple=function(e,t,n){t===void 0&&(t=0);var r=t!==0;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===2&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(M(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==5&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},pe.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=0),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},pe.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=0),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var me=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},he={b_stat:new me(`{`,!1),b_expr:new me(`{`,!0),b_tmpl:new me("${",!1),p_stat:new me(`(`,!1),p_expr:new me(`(`,!0),q_tmpl:new me("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new me(`function`,!1),f_expr:new me(`function`,!0),f_expr_gen:new me(`function`,!0,!1,null,!0),f_gen:new me(`function`,!1,!1,null,!0)},ge=ne.prototype;ge.initialContext=function(){return[he.b_stat]},ge.curContext=function(){return this.context[this.context.length-1]},ge.braceIsBlock=function(e){var t=this.curContext();return t===he.f_expr||t===he.f_stat||(e!==S.colon||t!==he.b_stat&&t!==he.b_expr?e===S._return||e===S.name&&this.exprAllowed?C.test(this.input.slice(this.lastTokEnd,this.start)):e===S._else||e===S.semi||e===S.eof||e===S.parenR||e===S.arrow||(e===S.braceL?t===he.b_stat:e!==S._var&&e!==S._const&&e!==S.name&&!this.exprAllowed):!t.isExpr)},ge.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},ge.updateContext=function(e){var t,n=this.type;n.keyword&&e===S.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ge.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},S.parenR.updateContext=S.braceR.updateContext=function(){if(this.context.length!==1){var e=this.context.pop();e===he.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},S.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?he.b_stat:he.b_expr),this.exprAllowed=!0},S.dollarBraceL.updateContext=function(){this.context.push(he.b_tmpl),this.exprAllowed=!0},S.parenL.updateContext=function(e){var t=e===S._if||e===S._for||e===S._with||e===S._while;this.context.push(t?he.p_stat:he.p_expr),this.exprAllowed=!0},S.incDec.updateContext=function(){},S._function.updateContext=S._class.updateContext=function(e){!e.beforeExpr||e===S._else||e===S.semi&&this.curContext()!==he.p_stat||e===S._return&&C.test(this.input.slice(this.lastTokEnd,this.start))||(e===S.colon||e===S.braceL)&&this.curContext()===he.b_stat?this.context.push(he.f_stat):this.context.push(he.f_expr),this.exprAllowed=!1},S.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},S.backQuote.updateContext=function(){this.curContext()===he.q_tmpl?this.context.pop():this.context.push(he.q_tmpl),this.exprAllowed=!1},S.star.updateContext=function(e){if(e===S._function){var t=this.context.length-1;this.context[t]===he.f_expr?this.context[t]=he.f_expr_gen:this.context[t]=he.f_gen}this.exprAllowed=!0},S.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==S.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var q=ne.prototype;function _e(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&_e(e.expression)}function J(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&J(e.expression)||e.type===`ParenthesizedExpression`&&J(e.expression)}q.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case`Identifier`:r=i.name;break;case`Literal`:r=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)r===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,`Redefinition of __proto__ property`)),t.proto=!0);else{var o=t[r=`$`+r];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(i.start,`Redefinition of property`):o=t[r]={init:!1,get:!1,set:!1},o[a]=!0}}},q.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===S.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(S.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},q.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new oe,r=!0);var s=this.start,c=this.startLoc;this.type!==S.parenL&&this.type!==S.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===S.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===S.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},q.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(S.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(S.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},q.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},q.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==S._in)&&a>r){var o=this.type===S.logicalOR||this.type===S.logicalAND,s=this.type===S.coalesce;s&&(a=S.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===S.coalesce||s&&(this.type===S.logicalOR||this.type===S.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},q.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},q.parseMaybeUnary=function(e,t,n,r){var i,a=this.start,o=this.startLoc;if(this.isContextual(`await`)&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===S.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&_e(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&J(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,i=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(t||this.type!==S.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(a,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,`UpdateExpression`)}}else (r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==S._in&&this.unexpected();return n||!this.eat(S.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,o,i,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)},q.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},q.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(S.arrow)},q.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},q.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(S.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(S.bracketL);if(l||c&&this.type!==S.parenL&&this.type!==S.backQuote||this.eat(S.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(S.bracketR)):this.type===S.privateId&&e.type!==`Super`?u.property=this.parsePrivateIdent():u.property=this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(S.parenL)){var d=new oe,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===S.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},q.parseExprAtom=function(e,t,n){this.type===S.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case S._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type!==S.parenL||this.allowDirectSuper||this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==S.dot&&this.type!==S.bracketL&&this.type!==S.parenL&&this.unexpected(),this.finishNode(r,`Super`);case S._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case S.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(S._function))return this.overrideContext(he.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(S.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===S.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(S.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case S.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case S.num:case S.string:return this.parseLiteral(this.value);case S._null:case S._true:case S._false:return(r=this.startNode()).value=this.type===S._null?null:this.type===S._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case S.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case S.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(S.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case S.braceL:return this.overrideContext(he.b_expr),this.parseObj(!1,e);case S._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case S._class:return this.parseClass(this.startNode(),!1);case S._new:return this.parseNew();case S.backQuote:return this.parseTemplate();case S._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},q.parseExprAtomDefault=function(){this.unexpected()},q.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===S.parenL&&!e)return this.parseDynamicImport(t);if(this.type===S.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(S.parenR)?e.options=null:(this.expect(S.comma),this.afterTrailingComma(S.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(S.parenR)||(this.expect(S.comma),this.afterTrailingComma(S.parenR)||this.unexpected())));else if(!this.eat(S.parenR)){var t=this.start;this.eat(S.comma)&&this.eat(S.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},q.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType===`module`||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},q.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},q.parseParenExpression=function(){this.expect(S.parenL);var e=this.parseExpression();return this.expect(S.parenR),e},q.shouldParseArrow=function(e){return!this.canInsertSemicolon()},q.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,c=this.startLoc,l=[],u=!0,d=!1,f=new oe,p=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==S.parenR;){if(u?u=!1:this.expect(S.comma),a&&this.afterTrailingComma(S.parenR,!0)){d=!0;break}if(this.type===S.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===S.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}l.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(S.parenR),e&&this.shouldParseArrow(l)&&this.eat(S.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=m,this.parseParenArrowList(r,i,l,t);l.length&&!d||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=m||this.awaitPos,l.length>1?((n=this.startNodeAt(s,c)).expressions=l,this.finishNodeAt(n,`SequenceExpression`,h,g)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(r,i);return _.expression=n,this.finishNode(_,`ParenthesizedExpression`)}return n},q.parseParenItem=function(e){return e},q.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var ve=[];q.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===S.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(S.parenL)?e.arguments=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ve,this.finishNode(e,`NewExpression`)},q.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===S.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
97
268
  `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
@@ -99,16 +270,16 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
99
270
  `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},Xe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(S.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
100
271
  `&&++this.pos;case`
101
272
  `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},Xe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
102
- `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return I(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),r===`0`&&t!==56&&t!==57||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return T(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Xe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Xe.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(m(i,r))this.pos+=i<=65535?1:2;else{if(i!==92)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?p:m)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=I(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Xe.readWord=function(){var e=this.readWord1(),t=S.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)},ne.acorn={Parser:ne,version:`8.15.0`,defaultOptions:V,Position:R,SourceLocation:z,getLineInfo:B,Node:xe,TokenType:g,tokTypes:S,keywordTypes:b,TokContext:me,tokContexts:he,isIdentifierChar:m,isIdentifierStart:p,Token:Ye,isNewLine:T,lineBreak:C,lineBreakG:w,nonASCIIwhitespace:D};let $e=h(`node:module`),et=h(`node:fs`);String.fromCharCode;let tt=/\/$|\/\?|\/#/,nt=/^\.?\//;function rt(e=``,t){return t?tt.test(e):e.endsWith(`/`)}function it(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(rt(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function $(e){return e&&e!==`/`}function at(e,...t){let n=e||``;for(let e of t.filter(e=>$(e)))if(n){let t=e.replace(nt,``);n=it(n)+t}else n=e;return n}let ot=/^[A-Za-z]:\//;function st(e=``){return e&&e.replace(/\\/g,`/`).replace(ot,e=>e.toUpperCase())}let ct=/^[/\\]{2}/,lt=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ut=/^[A-Za-z]:$/,dt=/.(\.[^./]+|\.)$/,ft=function(e){if(e.length===0)return`.`;let t=(e=st(e)).match(ct),n=_t(e),r=e[e.length-1]===`/`;return(e=gt(e,!n)).length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ut.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!_t(e)?`/${e}`:e)},pt=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n;return ft(t)};function mt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}let ht=function(...e){let t=``,n=!1;for(let r=(e=e.map(e=>st(e))).length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:mt();i&&i.length!==0&&(t=`${i}/${t}`,n=_t(i))}return t=gt(t,!n),n&&!_t(t)?`/${t}`:t.length>0?t:`.`};function gt(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else{if(o===`/`)break;o=`/`}if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}let _t=function(e){return lt.test(e)},vt=function(e){if(e===`..`)return``;let t=dt.exec(st(e));return t&&t[1]||``},yt=function(e){let t=st(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ut.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(_t(e)?`/`:`.`)},bt=function(e,t){let n=st(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},xt=h(`node:url`),St=h(`node:assert`),Ct=h(`node:process`),wt=h(`node:path`),Tt=h(`node:v8`),Et=h(`node:util`),Dt=new Set($e.builtinModules);function Ot(e){return e.replace(/\\/g,`/`)}let kt={}.hasOwnProperty,At=/^([A-Z][a-z\d]*)+$/,jt=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),Mt={};function Nt(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}let Pt=new Map,Ft;function It(e,t,n){return Pt.set(e,t),function(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Lt()&&(Error.stackTraceLimit=0);let i=new e;Lt()&&(Error.stackTraceLimit=r);let a=function(e,t,n){let r=Pt.get(e);if(St(r!==void 0,"expected `message` to be found"),typeof r==`function`)return St(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,n,t);let i=/%[dfijoOs]/g,a=0;for(;i.exec(r)!==null;)a++;return St(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`),t.length===0?r:(t.unshift(r),Reflect.apply(Et.format,null,t))}(t,n,i);return Object.defineProperties(i,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Rt(i),i.code=t,i}}(n,e)}function Lt(){try{if(Tt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):kt.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}Mt.ERR_INVALID_ARG_TYPE=It(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{St(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let r=`The `;if(e.endsWith(` argument`))r+=`${e} `;else{let t=e.includes(`.`)?`property`:`argument`;r+=`"${e}" ${t} `}r+=`must be `;let i=[],a=[],o=[];for(let e of t)St(typeof e==`string`,`All expected entries have to be of type string`),jt.has(e)?i.push(e.toLowerCase()):At.exec(e)===null?(St(e!==`object`,`The value "object" should be written as "Object"`),o.push(e)):a.push(e);if(a.length>0){let e=i.indexOf(`object`);e!==-1&&(i.slice(e,1),a.push(`Object`))}return i.length>0&&(r+=`${i.length>1?`one of type`:`of type`} ${Nt(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${Nt(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${Nt(o,`or`)}`:(o[0].toLowerCase()!==o[0]&&(r+=`an `),r+=`${o[0]}`)),r+=`. Received ${function(e){if(e==null)return String(e);if(typeof e==`function`&&e.name)return`function ${e.name}`;if(typeof e==`object`)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,Et.inspect)(e,{depth:-1})}`;let t=(0,Et.inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(n)}`,r},TypeError),Mt.ERR_INVALID_MODULE_SPECIFIER=It(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),Mt.ERR_INVALID_PACKAGE_CONFIG=It(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),Mt.ERR_INVALID_PACKAGE_TARGET=It(`ERR_INVALID_PACKAGE_TARGET`,(e,t,n,r=!1,i=void 0)=>{let a=typeof n==`string`&&!r&&n.length>0&&!n.startsWith(`./`);return t===`.`?(St(!1===r),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`):`Invalid "${r?`imports`:`exports`}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`},Error),Mt.ERR_MODULE_NOT_FOUND=It(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),Mt.ERR_NETWORK_IMPORT_DISALLOWED=It(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),Mt.ERR_PACKAGE_IMPORT_NOT_DEFINED=It(`ERR_PACKAGE_IMPORT_NOT_DEFINED`,(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:``} imported from ${n}`,TypeError),Mt.ERR_PACKAGE_PATH_NOT_EXPORTED=It(`ERR_PACKAGE_PATH_NOT_EXPORTED`,(e,t,n=void 0)=>t===`.`?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:``}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:``}`,Error),Mt.ERR_UNSUPPORTED_DIR_IMPORT=It(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),Mt.ERR_UNSUPPORTED_RESOLVE_REQUEST=It(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),Mt.ERR_UNKNOWN_FILE_EXTENSION=It(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),Mt.ERR_INVALID_ARG_VALUE=It(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=(0,Et.inspect)(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);let Rt=function(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}(function(e){let t=Lt();return t&&(Ft=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ft),e}),zt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Bt}=Mt,Vt=new Map;function Ht(e,{base:t,specifier:n}){let r=Vt.get(e);if(r)return r;let i;try{i=et.readFileSync(wt.toNamespacedPath(e),`utf8`)}catch(e){let t=e;if(t.code!==`ENOENT`)throw t}let a={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:`none`,exports:void 0,imports:void 0};if(i!==void 0){let r;try{r=JSON.parse(i)}catch(r){let i=r,a=new Bt(e,(t?`"${n}" from `:``)+(0,xt.fileURLToPath)(t||n),i.message);throw a.cause=i,a}a.exists=!0,zt.call(r,`name`)&&typeof r.name==`string`&&(a.name=r.name),zt.call(r,`main`)&&typeof r.main==`string`&&(a.main=r.main),zt.call(r,`exports`)&&(a.exports=r.exports),zt.call(r,`imports`)&&(a.imports=r.imports),!zt.call(r,`type`)||r.type!==`commonjs`&&r.type!==`module`||(a.type=r.type)}return Vt.set(e,a),a}function Ut(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=Ht((0,xt.fileURLToPath)(t),{specifier:e});if(n.exists)return n;let r=t;if(t=new URL(`../package.json`,t),t.pathname===r.pathname)break}return{pjsonPath:(0,xt.fileURLToPath)(t),exists:!1,type:`none`}}function Wt(e){return Ut(e).type}let{ERR_UNKNOWN_FILE_EXTENSION:Gt}=Mt,Kt={}.hasOwnProperty,qt={__proto__:null,".cjs":`commonjs`,".js":`module`,".json":`json`,".mjs":`module`},Jt={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return function(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?`module`:e===`application/json`?`json`:null}(t)},"file:":function(e,t,n){let r=function(e){let t=e.pathname,n=t.length;for(;n--;){let e=t.codePointAt(n);if(e===47)return``;if(e===46)return t.codePointAt(n-1)===47?``:t.slice(n)}return``}(e);if(r===`.js`){let t=Wt(e);return t===`none`?`commonjs`:t}if(r===``){let t=Wt(e);return t===`none`||t===`commonjs`?`commonjs`:`module`}let i=qt[r];if(i)return i;if(!n)throw new Gt(r,(0,xt.fileURLToPath)(e))},"http:":Yt,"https:":Yt,"node:":()=>`builtin`};function Yt(){}let Xt=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:Zt,ERR_INVALID_PACKAGE_CONFIG:Qt,ERR_INVALID_PACKAGE_TARGET:$t,ERR_MODULE_NOT_FOUND:en,ERR_PACKAGE_IMPORT_NOT_DEFINED:tn,ERR_PACKAGE_PATH_NOT_EXPORTED:nn,ERR_UNSUPPORTED_DIR_IMPORT:rn,ERR_UNSUPPORTED_RESOLVE_REQUEST:an}=Mt,on={}.hasOwnProperty,sn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,cn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,ln=/^\.|%|\\/,un=/\*/g,dn=/%2f|%5c/i,fn=new Set,pn=/[/\\]{2}/;function mn(e,t,n,r,i,a,o){if(Ct.noDeprecation)return;let s=(0,xt.fileURLToPath)(r),c=pn.exec(o?e:t)!==null;Ct.emitWarning(`Use of deprecated ${c?`double slash`:`leading or trailing slash matching`} resolving "${e}" for module request "${t}" ${t===n?``:`matched to "${n}" `}in the "${i?`imports`:`exports`}" field module resolution of the package at ${s}${a?` imported from ${(0,xt.fileURLToPath)(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function hn(e,t,n,r){if(Ct.noDeprecation||function(e,t){let n=e.protocol;return Kt.call(Jt,n)&&Jt[n](e,t,!0)||null}(e,{parentURL:n.href})!==`module`)return;let i=(0,xt.fileURLToPath)(e.href),a=(0,xt.fileURLToPath)(new xt.URL(`.`,t)),o=(0,xt.fileURLToPath)(n);r?wt.resolve(a,r)!==i&&Ct.emitWarning(`Package ${a} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`):Ct.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`)}function gn(e){try{return(0,et.statSync)(e)}catch{}}function _n(e){let t=(0,et.statSync)(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n!=null&&n}function vn(e,t,n){let r;if(t.main!==void 0){if(r=new xt.URL(t.main,e),_n(r))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r;throw new en((0,xt.fileURLToPath)(new xt.URL(`.`,e)),(0,xt.fileURLToPath)(n))}function yn(e,t,n){return new nn((0,xt.fileURLToPath)(new xt.URL(`.`,t)),e,n&&(0,xt.fileURLToPath)(n))}function bn(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new $t((0,xt.fileURLToPath)(new xt.URL(`.`,n)),e,t,r,i&&(0,xt.fileURLToPath)(i))}function xn(e,t,n,r,i,a,o,s,c){if(t!==``&&!a&&e[e.length-1]!==`/`)throw bn(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new xt.URL(e),n=!0}catch{}if(!n)return On(a?Xt.call(un,e,()=>t):e+t,r,c)}throw bn(n,e,r,o,i)}if(sn.exec(e.slice(2))!==null){if(cn.exec(e.slice(2))!==null)throw bn(n,e,r,o,i);if(!s){let s=a?n.replace(`*`,()=>t):n+t;mn(a?Xt.call(un,e,()=>t):e,s,n,r,o,i,!0)}}let l=new xt.URL(e,r),u=l.pathname,d=new xt.URL(`.`,r).pathname;if(!u.startsWith(d))throw bn(n,e,r,o,i);if(t===``)return l;if(sn.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;cn.exec(t)===null?s||mn(a?Xt.call(un,e,()=>t):e,c,n,r,o,i,!1):(function(e,t,n,r,i){throw new Zt(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${(0,xt.fileURLToPath)(n)}`,i&&(0,xt.fileURLToPath)(i))})(c,n,r,o,i)}return a?new xt.URL(Xt.call(un,l.href,()=>t)):new xt.URL(t,l)}function Sn(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function Cn(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return xn(t,n,r,e,i,a,o,s,c);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let u,d=-1;for(;++d<l.length;){let t=l[d],f;try{f=Cn(e,t,n,r,i,a,o,s,c)}catch(e){if(u=e,e.code===`ERR_INVALID_PACKAGE_TARGET`)continue;throw e}if(f!==void 0){if(f!==null)return f;u=null}}if(u==null)return null;throw u}if(typeof t==`object`&&t){let l=Object.getOwnPropertyNames(t),u=-1;for(;++u<l.length;)if(Sn(l[u]))throw new Qt((0,xt.fileURLToPath)(e),i,`"exports" cannot contain numeric property keys.`);for(u=-1;++u<l.length;){let d=l[u];if(d===`default`||c&&c.has(d)){let l=Cn(e,t[d],n,r,i,a,o,s,c);if(l===void 0)continue;return l}}return null}if(t===null)return null;throw bn(r,t,e,o,i)}function wn(e,t,n){if(Ct.noDeprecation)return;let r=(0,xt.fileURLToPath)(t);fn.has(r+`|`+e)||(fn.add(r+`|`+e),Ct.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${(0,xt.fileURLToPath)(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Tn(e,t,n,r,i){let a=n.exports;if(function(e,t,n){if(typeof e==`string`||Array.isArray(e))return!0;if(typeof e!=`object`||!e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,a=0,o=-1;for(;++o<r.length;){let e=r[o],s=e===``||e[0]!==`.`;if(a++===0)i=s;else if(i!==s)throw new Qt((0,xt.fileURLToPath)(t),n,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}(a,e,r)&&(a={".":a}),on.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=Cn(e,a[t],``,t,r,!1,!1,!1,i);if(n==null)throw yn(t,e,r);return n}let o=``,s=``,c=Object.getOwnPropertyNames(a),l=-1;for(;++l<c.length;){let n=c[l],i=n.indexOf(`*`);if(i!==-1&&t.startsWith(n.slice(0,i))){t.endsWith(`/`)&&wn(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&En(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=Cn(e,a[o],s,o,r,!0,!1,t.endsWith(`/`),i);if(n==null)throw yn(t,e,r);return n}throw yn(t,e,r)}function En(e,t){let n=e.indexOf(`*`),r=t.indexOf(`*`),i=n===-1?e.length:n+1,a=r===-1?t.length:r+1;return i>a?-1:a>i||n===-1?1:r===-1||e.length>t.length?-1:t.length>e.length?1:0}function Dn(e,t,n){if(e===`#`||e.startsWith(`#/`)||e.endsWith(`/`))throw new Zt(e,`is not a valid internal imports specifier name`,(0,xt.fileURLToPath)(t));let r,i=Ut(t);if(i.exists){r=(0,xt.pathToFileURL)(i.pjsonPath);let a=i.imports;if(a)if(on.call(a,e)&&!e.includes(`*`)){let i=Cn(r,a[e],``,e,t,!1,!0,!1,n);if(i!=null)return i}else{let i=``,o=``,s=Object.getOwnPropertyNames(a),c=-1;for(;++c<s.length;){let t=s[c],n=t.indexOf(`*`);if(n!==-1&&e.startsWith(t.slice(0,-1))){let r=t.slice(n+1);e.length>=t.length&&e.endsWith(r)&&En(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=Cn(r,a[i],o,i,t,!0,!0,!1,n);if(e!=null)return e}}}throw function(e,t,n){return new tn(e,t&&(0,xt.fileURLToPath)(new xt.URL(`.`,t)),(0,xt.fileURLToPath)(n))}(e,r,t)}function On(e,t,n){if($e.builtinModules.includes(e))return new xt.URL(`node:`+e);let{packageName:r,packageSubpath:i,isScoped:a}=function(e,t){let n=e.indexOf(`/`),r=!0,i=!1;e[0]===`@`&&(i=!0,n===-1||e.length===0?r=!1:n=e.indexOf(`/`,n+1));let a=n===-1?e:e.slice(0,n);if(ln.exec(a)!==null&&(r=!1),!r)throw new Zt(e,`is not a valid package name`,(0,xt.fileURLToPath)(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}(e,t),o=Ut(t);if(o.exists){let e=(0,xt.pathToFileURL)(o.pjsonPath);if(o.name===r&&o.exports!==void 0&&o.exports!==null)return Tn(e,i,o,t,n)}let s,c=new xt.URL(`./node_modules/`+r+`/package.json`,t),l=(0,xt.fileURLToPath)(c);do{let o=gn(l.slice(0,-13));if(!o||!o.isDirectory()){s=l,c=new xt.URL((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,c),l=(0,xt.fileURLToPath)(c);continue}let u=Ht(l,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Tn(c,i,u,t,n):i===`.`?vn(c,u,t):new xt.URL(i,c)}while(l.length!==s.length);throw new en(r,(0,xt.fileURLToPath)(t),!1)}function kn(e,t,n,r){let i=t.protocol,a=i===`data:`||i===`http:`||i===`https:`,o;if(function(e){return e!==``&&(e[0]===`/`||function(e){return e[0]===`.`&&(e.length===1||e[1]===`/`||e[1]===`.`&&(e.length===2||e[2]===`/`))}(e))}(e))try{o=new xt.URL(e,t)}catch(n){let r=new an(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Dn(e,t,n);else try{o=new xt.URL(e)}catch(r){if(a&&!$e.builtinModules.includes(e)){let n=new an(e,t);throw n.cause=r,n}o=On(e,t,n)}return St(o!==void 0,`expected to be defined`),o.protocol===`file:`?function(e,t){if(dn.exec(e.pathname)!==null)throw new Zt(e.pathname,`must not include encoded "/" or "\\" characters`,(0,xt.fileURLToPath)(t));let n;try{n=(0,xt.fileURLToPath)(e)}catch(n){let r=n;throw Object.defineProperty(r,`input`,{value:String(e)}),Object.defineProperty(r,`module`,{value:String(t)}),r}let r=gn(n.endsWith(`/`)?n.slice(-1):n);if(r&&r.isDirectory()){let r=new rn(n,(0,xt.fileURLToPath)(t));throw r.url=String(e),r}if(!r||!r.isFile()){let r=new en(n||e.pathname,t&&(0,xt.fileURLToPath)(t),!0);throw r.url=String(e),r}{let t=(0,et.realpathSync)(n),{search:r,hash:i}=e;(e=(0,xt.pathToFileURL)(t+(n.endsWith(wt.sep)?`/`:``))).search=r,e.hash=i}return e}(o,t):o}function An(e){return typeof e!=`string`||e.startsWith(`file://`)?Ot((0,xt.fileURLToPath)(e)):Ot(e)}function jn(e){return(0,xt.pathToFileURL)(An(e)).toString()}let Mn=new Set([`node`,`import`]),Nn=[`.mjs`,`.cjs`,`.js`,`.json`],Pn=new Set([`ERR_MODULE_NOT_FOUND`,`ERR_UNSUPPORTED_DIR_IMPORT`,`MODULE_NOT_FOUND`,`ERR_PACKAGE_PATH_NOT_EXPORTED`]);function Fn(e,t,n){try{return kn(e,t,n)}catch(e){if(!Pn.has(e?.code))throw e}}function In(e,t={}){if(typeof e!=`string`){if(!(e instanceof URL))throw TypeError("input must be a `string` or `URL`");e=An(e)}if(/(?:node|data|http|https):/.test(e))return e;if(Dt.has(e))return`node:`+e;if(e.startsWith(`file://`)&&(e=An(e)),_t(e))try{if((0,et.statSync)(e).isFile())return jn(e)}catch(e){if(e?.code!==`ENOENT`)throw e}let n=t.conditions?new Set(t.conditions):Mn,r=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>new URL(function(e){return typeof e!=`string`&&(e=e.toString()),/(?:node|data|http|https|file):/.test(e)?e:Dt.has(e)?`node:`+e:`file://`+encodeURI(Ot(e))}(e.toString())));r.length===0&&r.push(new URL(jn(process.cwd())));let i=[...r];for(let e of r)e.protocol===`file:`&&i.push(new URL(`./`,e),new URL(at(e.pathname,`_index.js`),e),new URL(`node_modules`,e));let a;for(let r of i){if(a=Fn(e,r,n),a)break;for(let i of[``,`/index`]){for(let o of t.extensions||Nn)if(a=Fn(at(e,i)+o,r,n),a)break;if(a)break}if(a)break}if(!a){let t=Error(`Cannot find module ${e} imported from ${i.join(`, `)}`);throw t.code=`ERR_MODULE_NOT_FOUND`,t}return jn(a)}function Ln(e,t){return In(e,t)}function Rn(e,t){return An(Ln(e,t))}let zn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Bn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function Vn(e,t={}){return t.stripComments&&(e=e.replace(Bn,``)),zn.test(e)}function Hn(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let Un=new Set([`/`,`\\`,void 0]),Wn=Symbol.for(`pathe:normalizedAlias`),Gn=/[/\\]/;function Kn(e){if(e[Wn])return e;let t=Object.fromEntries(Object.entries(e).sort(([e],[t])=>function(e,t){return t.split(`/`).length-e.split(`/`).length}(e,t)));for(let e in t)for(let n in t)n===e||e.startsWith(n)||t[e]?.startsWith(n)&&Un.has(t[e][n.length])&&(t[e]=t[n]+t[e].slice(n.length));return Object.defineProperty(t,Wn,{value:!0,enumerable:!1}),t}function qn(e=`/`){let t=e[e.length-1];return t===`/`||t===`\\`}var Jn={rE:`2.6.1`};let Yn=h(`node:crypto`);var Xn=r.n(Yn);let Zn=Object.create(null),Qn=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Zn:globalThis),$n=new Proxy(Zn,{get:(e,t)=>Qn()[t]??Zn[t],has:(e,t)=>t in Qn()||t in Zn,set:(e,t,n)=>(Qn(!0)[t]=n,!0),deleteProperty(e,t){return t?(delete Qn(!0)[t],!0):!1},ownKeys(){let e=Qn(!0);return Object.keys(e)}}),er=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,tr=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]],nr=function(){if(globalThis.process?.env)for(let e of tr){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL===`/bin/jsh`&&globalThis.process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}();nr.name;function rr(e){return!!e&&e!==`false`}let ir=globalThis.process?.platform||``;rr($n.CI)||nr.ci;let ar=rr(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);$n.DEBUG,er===`test`||$n.TEST;let or=($n.MINIMAL,/^win/i.test(ir)),sr=(/^linux/i.test(ir),/^darwin/i.test(ir),!rr($n.NO_COLOR)&&(rr($n.FORCE_COLOR)||(ar||or)&&$n.TERM),(globalThis.process?.versions?.node||``).replace(/^v/,``)||null),cr=(Number(sr?.split(`.`)[0]),globalThis.process||Object.create(null)),lr={versions:{}},ur=(new Proxy(cr,{get:(e,t)=>t===`env`?$n:t in e?e[t]:t in lr?lr[t]:void 0}),globalThis.process?.release?.name===`node`),dr=!!globalThis.Bun||!!globalThis.process?.versions?.bun,fr=!!globalThis.Deno,pr=!!globalThis.fastly,mr=[[!!globalThis.Netlify,`netlify`],[!!globalThis.EdgeRuntime,`edge-light`],[globalThis.navigator?.userAgent===`Cloudflare-Workers`,`workerd`],[pr,`fastly`],[fr,`deno`],[dr,`bun`],[ur,`node`]];(function(){let e=mr.find(e=>e[0]);e&&e[1]})();let hr=h(`node:tty`)?.WriteStream?.prototype?.hasColors?.()??!1,gr=(e,t)=>{if(!hr)return e=>e;let n=`[${e}m`,r=`[${t}m`;return e=>{let i=e+``,a=i.indexOf(r);if(a===-1)return n+i+r;let o=n,s=0,c=(t===22?r:``)+n;for(;a!==-1;)o+=i.slice(s,a)+c,s=a+r.length,a=i.indexOf(r,s);return o+=i.slice(s)+r,o}},_r=(gr(0,0),gr(1,22),gr(2,22),gr(3,23),gr(4,24),gr(53,55),gr(7,27),gr(8,28),gr(9,29),gr(30,39),gr(31,39)),vr=gr(32,39),yr=gr(33,39),br=gr(34,39),xr=(gr(35,39),gr(36,39)),Sr=(gr(37,39),gr(90,39));gr(40,49),gr(41,49),gr(42,49),gr(43,49),gr(44,49),gr(45,49),gr(46,49),gr(47,49),gr(100,49),gr(91,39),gr(92,39),gr(93,39),gr(94,39),gr(95,39),gr(96,39),gr(97,39),gr(101,49),gr(102,49),gr(103,49),gr(104,49),gr(105,49),gr(106,49),gr(107,49);function Cr(e){if(typeof e!=`string`||e.startsWith(`file://`))return!1;try{return(0,et.lstatSync)(e).isDirectory()}catch{return!1}}function wr(e,t=8){return(function(){if(Or!==void 0)return Or;try{return Or=!!Xn().getFips?.(),Or}catch{return Or=!1,Or}}()?Xn().createHash(`sha256`):Xn().createHash(`md5`)).update(e).digest(`hex`).slice(0,t)}let Tr={true:vr(`true`),false:yr(`false`),"[rebuild]":yr(`[rebuild]`),"[esm]":br(`[esm]`),"[cjs]":vr(`[cjs]`),"[import]":br(`[import]`),"[require]":vr(`[require]`),"[native]":xr(`[native]`),"[transpile]":yr(`[transpile]`),"[fallback]":_r(`[fallback]`),"[unknown]":_r(`[unknown]`),"[hit]":vr(`[hit]`),"[miss]":yr(`[miss]`),"[json]":vr(`[json]`),"[data]":vr(`[data]`)};function Er(e,...t){if(!e.opts.debug)return;let n=process.cwd();console.log(Sr([`[jiti]`,...t.map(e=>e in Tr?Tr[e]:typeof e==`string`?e.replace(n,`.`):JSON.stringify(e))].join(` `)))}function Dr(e,t){return e.opts.interopDefault?function(e){let t=typeof e;if(e===null||t!==`object`&&t!==`function`)return e;let n=e.default,r=typeof n,i=n==null,a=r===`object`||r===`function`;return i&&e instanceof Promise?e:new Proxy(e,{get(t,r,o){if(r===`__esModule`)return!0;if(r===`default`)return i?e:typeof n?.default==`function`&&e.__esModule?n.default:n;if(Reflect.has(t,r))return Reflect.get(t,r,o);if(a&&!(n instanceof Promise)){let e=Reflect.get(n,r,o);return typeof e==`function`&&(e=e.bind(n)),e}},apply:(e,t,i)=>typeof e==`function`?Reflect.apply(e,t,i):r===`function`?Reflect.apply(n,t,i):void 0})}(t):t}let Or;function kr(e,t){return!!Ar(e,t)}function Ar(e,t){let n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return t}}let jr=/\.(c|m)?j(sx?)$/,Mr=/\.(c|m)?t(sx?)$/;function Nr(e,t,n){let r,i;if(e.isNativeRe.test(t))return t;e.alias&&(t=function(e,t){let n=st(e);t=Kn(t);for(let[e,r]of Object.entries(t))if(n.startsWith(e)&&qn(n[(qn(e)?e.slice(0,-1):e).length]))return pt(r,n.slice(e.length));return n}(t,e.alias));let a=n?.parentURL||e.url;Cr(a)&&(a=pt(a,`_index.js`));let o=(n?.async?[n?.conditions,[`node`,`import`],[`node`,`require`]]:[n?.conditions,[`node`,`require`],[`node`,`import`]]).filter(Boolean);for(let n of o){try{r=Rn(t,{url:a,conditions:n,extensions:e.opts.extensions})}catch(e){i=e}if(r)return r}try{return e.nativeRequire.resolve(t,{paths:n.paths})}catch(e){i=e}for(let i of e.additionalExts)if(r=Pr(e,t+i,a,n)||Pr(e,t+`/index`+i,a,n),r||(Mr.test(e.filename)||Mr.test(e.parentModule?.filename||``)||jr.test(t))&&(r=Pr(e,t.replace(jr,`.$1t$2`),a,n),r))return r;if(!n?.try)throw i}function Pr(e,t,n,r){try{return e.nativeRequire.resolve(t,{...r,paths:[yt(An(n)),...r?.paths||[]]})}catch{}}let Fr=h(`node:perf_hooks`),Ir=h(`node:vm`);var Lr=r.n(Ir);function Rr(e,t,n){let r=e.parentCache||{};if(t.startsWith(`node:`))return zr(e,t,n.async);if(t.startsWith(`file:`))t=(0,xt.fileURLToPath)(t);else if(t.startsWith(`data:`)){if(!n.async)throw Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return Er(e,`[native]`,`[data]`,`[import]`,t),zr(e,t,!0)}if($e.builtinModules.includes(t)||t===`.pnp.js`)return zr(e,t,n.async);if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=Nr(e,t,n))&&n.try)return;if(Er(e,`[try-native]`,n.async&&e.nativeImport?`[import]`:`[require]`,t),n.async&&e.nativeImport)return e.nativeImport(t).then(n=>(!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)));{let n=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)}}catch(n){Er(e,`[try-native] Using fallback for ${t} because of an error:`,n)}let i=Nr(e,t,n);if(!i&&n.try)return;let a=vt(i);if(a===`.json`){Er(e,`[json]`,i);let t=e.nativeRequire(i);return t&&!(`default`in t)&&Object.defineProperty(t,`default`,{value:t,enumerable:!1}),t}if(a&&!e.opts.extensions.includes(a))return Er(e,`[native]`,`[unknown]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(e.isNativeRe.test(i))return Er(e,`[native]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(r[i])return Dr(e,r[i]?.exports);if(e.opts.moduleCache){let t=e.nativeRequire.cache[i];if(t?.loaded)return Dr(e,t.exports)}return Ur(e,(0,et.readFileSync)(i,`utf8`),{id:t,filename:i,ext:a,cache:r,async:n.async})}function zr(e,t,n){return n&&e.nativeImport?e.nativeImport(function(e){return or&&_t(e)?jn(e):e}(t)).then(t=>Dr(e,t)):Dr(e,e.nativeRequire(t))}function Br(e,t,n){if(!e.opts.fsCache||!t.filename)return n();let r=` /* v9-${wr(t.source,16)} */\n`,i=`${bt(yt(t.filename))}-${function(e){let t=e.split(Gn).pop();if(!t)return;let n=t.lastIndexOf(`.`);return n<=0?t:t.slice(0,n)}(t.filename)}`+(e.opts.sourceMaps?`+map`:``)+(t.interopDefault?`.i`:``)+`.${wr(t.filename)}`+(t.async?`.mjs`:`.cjs`);t.jsx&&t.filename.endsWith(`x`)&&(i+=`x`);let a=e.opts.fsCache,o=pt(a,i);if(!e.opts.rebuildFsCache&&(0,et.existsSync)(o)){let n=(0,et.readFileSync)(o,`utf8`);if(n.endsWith(r))return Er(e,`[cache]`,`[hit]`,t.filename,`~>`,o),n}Er(e,`[cache]`,`[miss]`,t.filename);let s=n();return s.includes(`__JITI_ERROR__`)||((0,et.writeFileSync)(o,s+r,`utf8`),Er(e,`[cache]`,`[store]`,t.filename,`~>`,o)),s}function Vr(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){let n=t.filename&&ht(t.filename,`../node_modules`);if(n&&(0,et.existsSync)(n))return pt(n,`.cache/jiti`);let r=(0,e.tmpdir)();if(process.env.TMPDIR&&r===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let t=process.env.TMPDIR;delete process.env.TMPDIR,r=(0,e.tmpdir)(),process.env.TMPDIR=t}return pt(r,`jiti`)}(t)),t.opts.fsCache)try{if((0,et.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,et.accessSync)(e,et.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error(`directory is not writable!`)}catch(e){Er(t,`Error creating cache directory at `,t.opts.fsCache,e),t.opts.fsCache=!1}}function Hr(e,t){let n=Br(e,t,()=>{let n=e.opts.transform({...e.opts.transformOptions,babel:{...e.opts.sourceMaps?{sourceFileName:t.filename,sourceMaps:`inline`}:{},...e.opts.transformOptions?.babel},interopDefault:e.opts.interopDefault,...t});return n.error&&e.opts.debug&&Er(e,n.error),n.code});return n.startsWith(`#!`)&&(n=`// `+n),n}function Ur(e,t,n={}){let r=n.id||(n.filename?bt(n.filename):`_jitiEval.${n.ext||(n.async?`mjs`:`js`)}`),i=n.filename||Nr(e,r,{async:n.async}),a=n.ext||vt(i),o=n.cache||e.parentCache||{},s=/\.[cm]?tsx?$/.test(a),c=a===`.mjs`||a===`.js`&&function(e){for(;e&&e!==`.`&&e!==`/`;){e=pt(e,`..`);try{let t=(0,et.readFileSync)(pt(e,`package.json`),`utf8`);try{return JSON.parse(t)}catch{}break}catch{}}}(i)?.type===`module`,l=a===`.cjs`,u=n.forceTranspile??(!l&&!(c&&n.async)&&(s||c||e.isTransformRe.test(i)||Vn(t))),d=Fr.performance.now();if(u){t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx});let r=Math.round(1e3*(Fr.performance.now()-d))/1e3;Er(e,`[transpile]`,n.async?`[esm]`:`[cjs]`,i,`(${r}ms)`)}else{if(Er(e,`[native]`,n.async?`[import]`:`[require]`,i),n.async)return Promise.resolve(zr(e,i,n.async)).catch(r=>(Er(e,`Native import error:`,r),Er(e,`[fallback]`,i),Ur(e,t,{...n,forceTranspile:!0})));try{return zr(e,i,n.async)}catch(r){Er(e,`Native require error:`,r),Er(e,`[fallback]`,i),t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx})}}let f=new $e.Module(i);f.filename=i,e.parentModule&&(f.parent=e.parentModule,Array.isArray(e.parentModule.children)&&!e.parentModule.children.includes(f)&&e.parentModule.children.push(f));let p=Gr(i,e.opts,{parentModule:f,parentCache:o,nativeImport:e.nativeImport,onError:e.onError,createRequire:e.createRequire},!0),m;f.require=p,f.path=yt(i),f.paths=$e.Module._nodeModulePaths(f.path),o[i]=f,e.opts.moduleCache&&(e.nativeRequire.cache[i]=f);let h=function(e,t){return`(${t?.async?`async `:``}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e}\n});`}(t,{async:n.async});try{m=Lr().runInThisContext(h,{filename:i,lineOffset:0,displayErrors:!1})}catch(t){t.name===`SyntaxError`&&n.async&&e.nativeImport?(Er(e,`[esm]`,`[import]`,`[fallback]`,i),m=function(e,t){let n=`data:text/javascript;base64,${Buffer.from(`export default ${e}`).toString(`base64`)}`;return(...e)=>t(n).then(t=>t.default(...e))}(h,e.nativeImport)):(e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t))}let g;try{g=m(f.exports,f.require,f,f.filename,yt(f.filename),p.import,p.esmResolve)}catch(t){e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t)}function _(){if(f.exports&&f.exports.__JITI_ERROR__){let{filename:t,line:n,column:r,code:i,message:a}=f.exports.__JITI_ERROR__,o=Error(`${i}: ${a} \n ${`${t}:${n}:${r}`}`);Error.captureStackTrace(o,Rr),e.onError(o)}return f.loaded=!0,Dr(e,f.exports)}return n.async?Promise.resolve(g).then(_):_()}let Wr=(0,e.platform)()===`win32`;function Gr(e,t={},n,r=!1){let i=r?t:function(e){let t={fsCache:kr(`JITI_FS_CACHE`,kr(`JITI_CACHE`,!0)),rebuildFsCache:kr(`JITI_REBUILD_FS_CACHE`,!1),moduleCache:kr(`JITI_MODULE_CACHE`,kr(`JITI_REQUIRE_CACHE`,!0)),debug:kr(`JITI_DEBUG`,!1),sourceMaps:kr(`JITI_SOURCE_MAPS`,!1),interopDefault:kr(`JITI_INTEROP_DEFAULT`,!0),extensions:Ar(`JITI_EXTENSIONS`,[`.js`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.mtsx`,`.ctsx`]),alias:Ar(`JITI_ALIAS`,{}),nativeModules:Ar(`JITI_NATIVE_MODULES`,[]),transformModules:Ar(`JITI_TRANSFORM_MODULES`,[]),tryNative:Ar(`JITI_TRY_NATIVE`,`Bun`in globalThis),jsx:kr(`JITI_JSX`,!1)};t.jsx&&t.extensions.push(`.jsx`,`.tsx`);let n={};return e.cache!==void 0&&(n.fsCache=e.cache),e.requireCache!==void 0&&(n.moduleCache=e.requireCache),{...t,...n,...e}}(t),a=i.alias&&Object.keys(i.alias).length>0?Kn(i.alias||{}):void 0,o=[`typescript`,`jiti`,...i.nativeModules||[]],s=RegExp(`node_modules/(${o.map(e=>Hn(e)).join(`|`)})/`),c=[...i.transformModules||[]],l=RegExp(`node_modules/(${c.map(e=>Hn(e)).join(`|`)})/`);e||=process.cwd(),!r&&Cr(e)&&(e=pt(e,`_index.js`));let u=jn(e),d=[...i.extensions].filter(e=>e!==`.js`),f=n.createRequire(Wr?e.replace(/\//g,`\\`):e),p={filename:e,url:u,opts:i,alias:a,nativeModules:o,transformModules:c,isNativeRe:s,isTransformRe:l,additionalExts:d,nativeRequire:f,onError:n.onError,parentModule:n.parentModule,parentCache:n.parentCache,nativeImport:n.nativeImport,createRequire:n.createRequire};return r||Er(p,`[init]`,...[[`version:`,Jn.rE],[`module-cache:`,i.moduleCache],[`fs-cache:`,i.fsCache],[`rebuild-fs-cache:`,i.rebuildFsCache],[`interop-defaults:`,i.interopDefault]].flat()),r||Vr(p),Object.assign(function(e){return Rr(p,e,{async:!1})},{cache:i.moduleCache?f.cache:Object.create(null),extensions:f.extensions,main:f.main,options:i,resolve:Object.assign(function(e){return Nr(p,e,{async:!1})},{paths:f.resolve.paths}),transform:e=>Hr(p,e),evalModule:(e,t)=>Ur(p,e,t),async import(e,t){let n=await Rr(p,e,{...t,async:!0});return t?.default?n?.default??n:n},esmResolve(e,t){typeof t==`string`&&(t={parentURL:t});let n=Nr(p,e,{parentURL:u,...t,async:!0});return!n||typeof n!=`string`||n.startsWith(`file://`)?n:jn(n)}})}})(),t.exports=i.default})()})),Fc=f({createJiti:()=>Rc,default:()=>Hc});function Ic(e){throw e}function Lc(...t){return Vc||=e(import.meta.url)(`../dist/babel.cjs`),Vc(...t)}function Rc(t,n={}){return n.transform||(n={...n,transform:Lc}),(0,zc.default)(t,n,{onError:Ic,nativeImport:Bc,createRequire:e})}var zc,Bc,Vc,Hc,Uc=u((()=>{zc=m(Pc(),1),Bc=e=>import(e),Hc=Rc})),Wc=d(((e,t)=>{t.exports={name:`jiti`,version:`2.6.1`,description:`Runtime typescript and ESM support for Node.js`,repository:`unjs/jiti`,license:`MIT`,type:`module`,exports:{".":{import:{types:`./lib/jiti.d.mts`,default:`./lib/jiti.mjs`},require:{types:`./lib/jiti.d.cts`,default:`./lib/jiti.cjs`}},"./register":{types:`./lib/jiti-register.d.mts`,import:`./lib/jiti-register.mjs`},"./native":{types:`./lib/jiti.d.mts`,import:`./lib/jiti-native.mjs`},"./package.json":`./package.json`},main:`./lib/jiti.cjs`,module:`./lib/jiti.mjs`,types:`./lib/jiti.d.cts`,typesVersions:{"*":{register:[`./lib/jiti-register.d.mts`],native:[`./lib/jiti.d.mts`]}},bin:{jiti:`./lib/jiti-cli.mjs`},files:[`lib`,`dist`,`register.cjs`],scripts:{bench:`node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs`,build:`pnpm clean && pnpm rspack`,clean:`rm -rf dist`,dev:`pnpm clean && pnpm rspack --watch`,jiti:`JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs`,lint:`eslint . && prettier -c src lib test stubs`,"lint:fix":`eslint --fix . && prettier -w src lib test stubs`,prepack:`pnpm build`,release:`pnpm build && pnpm test && changelogen --release --push --publish`,test:`pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native`,"test:bun":`bun --bun test test/bun`,"test:native":`pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno`,"test:native:bun":`bun --bun test test/native/bun.test.ts`,"test:native:deno":`deno test -A --no-check test/native/deno.test.ts`,"test:native:node":`node --test --experimental-strip-types test/native/node.test.ts`,"test:node-register":`JITI_JSX=1 node --test test/node-register.test.mjs`,"test:types":`tsc --noEmit`},devDependencies:{"@babel/core":`^7.28.4`,"@babel/helper-module-imports":`^7.27.1`,"@babel/helper-module-transforms":`^7.28.3`,"@babel/helper-plugin-utils":`^7.27.1`,"@babel/helper-simple-access":`^7.27.1`,"@babel/plugin-proposal-decorators":`^7.28.0`,"@babel/plugin-syntax-class-properties":`^7.12.13`,"@babel/plugin-syntax-import-assertions":`^7.27.1`,"@babel/plugin-syntax-jsx":`^7.27.1`,"@babel/plugin-transform-export-namespace-from":`^7.27.1`,"@babel/plugin-transform-react-jsx":`^7.27.1`,"@babel/plugin-transform-typescript":`^7.28.0`,"@babel/preset-typescript":`^7.27.1`,"@babel/template":`^7.27.2`,"@babel/traverse":`^7.28.4`,"@babel/types":`^7.28.4`,"@rspack/cli":`^1.5.8`,"@rspack/core":`^1.5.8`,"@types/babel__core":`^7.20.5`,"@types/babel__helper-module-imports":`^7.18.3`,"@types/babel__helper-plugin-utils":`^7.10.3`,"@types/babel__template":`^7.4.4`,"@types/babel__traverse":`^7.28.0`,"@types/node":`^24.6.1`,"@vitest/coverage-v8":`^3.2.4`,acorn:`^8.15.0`,"babel-plugin-parameter-decorator":`^1.0.16`,changelogen:`^0.6.2`,config:`^4.1.1`,consola:`^3.4.2`,defu:`^6.1.4`,destr:`^2.0.5`,"escape-string-regexp":`^5.0.0`,eslint:`^9.36.0`,"eslint-config-unjs":`^0.5.0`,"estree-walker":`^3.0.3`,etag:`^1.8.1`,"fast-glob":`^3.3.3`,"is-installed-globally":`^1.0.0`,mime:`^4.1.0`,mlly:`^1.8.0`,"moment-timezone":`^0.6.0`,"nano-jsx":`^0.2.0`,pathe:`^2.0.3`,"pkg-types":`^2.3.0`,preact:`^10.27.2`,"preact-render-to-string":`^6.6.2`,prettier:`^3.6.2`,react:`^19.1.1`,"react-dom":`^19.1.1`,"reflect-metadata":`^0.2.2`,"solid-js":`^1.9.9`,"std-env":`^3.9.0`,"terser-webpack-plugin":`^5.3.14`,tinyexec:`^1.0.1`,"ts-loader":`^9.5.4`,typescript:`^5.9.3`,vitest:`^3.2.4`,vue:`^3.5.22`,yoctocolors:`^2.1.2`,zod:`^4.1.11`},packageManager:`pnpm@10.17.1`}})),Gc=d(((e,t)=>{V();let n=h(`node:path`),r=h(`node:fs/promises`),i=Nc(),{pathToFileURL:a}=h(`node:url`),o=S()(`eslint:config-loader`),{FlatConfigArray:s}=nc(),{WarningService:c}=lc(),l=[`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`],u=new Map;function d(e){if(!e||typeof e!=`string`)throw Error(`'filePath' must be a non-empty string`)}function f(e,t){let{configFile:n}=t;if(!e&&n!==!1){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}}function p(e){let t=n.extname(e);return/^\.[mc]?ts$/u.test(t)}function m(){return!!globalThis.Bun}function g(){return!!globalThis.Deno}function _(){return[`strip`,`transform`].includes(process.features.typescript)}async function v(e,t,n){let{createJiti:r,version:i}=await x.loadJiti().catch(()=>{throw Error(`The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.`)});if(typeof r!=`function`)throw Error(`You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features.`);let a={moduleCache:!1};i.startsWith(`2.1.`)&&(a.interopDefault=!1);let o=await r(B,a).import(t.href);return u.set(e,n),o?.default??o}async function y(e,t,n){let r=await import(t.href);return u.set(e,n),r.default}async function b(e,t){o(`Loading config from ${e}`);let n=a(e);o(`Config file URL is ${n}`);let i=(await r.stat(e)).mtime.getTime();n.searchParams.append(`mtime`,i),u.get(e)!==i&&delete h.cache[e];let s=p(e),c=m(),l=g();if(s){if(t){if(_())return await y(e,n,i);throw`typescript`in process.features?Error(`The unstable_native_nodejs_ts_config flag is enabled, but native TypeScript support is not enabled in the current Node.js process. You need to either enable native TypeScript support by passing --experimental-strip-types or remove the unstable_native_nodejs_ts_config flag.`):Error(`The unstable_native_nodejs_ts_config flag is not supported in older versions of Node.js.`)}if(!l&&!c)return await v(e,n,i)}return await y(e,n,i)}var x=class e{#e=new Map;#t=new Map;#n;constructor(e){this.#n=e.warningService?e:{...e,warningService:new c}}async#r(t){if(this.#t.has(t))return this.#t.get(t);let n=e.locateConfigFileToUse({useConfigFile:this.#n.configFile,cwd:this.#n.cwd,fromDirectory:t});this.#t.set(t,n);let r=await n;return this.#t.set(t,r),r}async#i(t,n){if(this.#e.has(t))return this.#e.get(t);let r=e.calculateConfigArray(t,n,this.#n);this.#e.set(t,r);let i=await r;return this.#e.set(t,i),i}async findConfigFileForPath(e){d(e);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r}=await this.#r(t);return r}async loadConfigArrayForFile(e){return d(e),o(`Calculating config for file ${e}`),f(await this.findConfigFileForPath(e),this.#n),this.loadConfigArrayForDirectory(e)}async loadConfigArrayForDirectory(e){d(e),o(`Calculating config for directory ${e}`);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r,basePath:i}=await this.#r(t);return o(`Using config file ${r} and base path ${i}`),this.#i(r,i)}getCachedConfigArrayForFile(e){return d(e),o(`Looking up cached config for ${e}`),this.getCachedConfigArrayForPath(n.dirname(e))}getCachedConfigArrayForPath(e){d(e),o(`Looking up cached config for ${e}`);let t=n.resolve(this.#n.cwd,e);if(!this.#t.has(t))throw Error(`Could not find config file for ${e}`);let r=this.#t.get(t);if(typeof r.then==`function`)throw Error(`Config file path for ${e} has not yet been calculated or an error occurred during the calculation`);let{configFilePath:i}=r,a=this.#e.get(i);if(!a||typeof a.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return a}static async loadJiti(){let{createJiti:e}=await Promise.resolve().then(()=>(Uc(),Fc));return{createJiti:e,version:Wc().version}}static async locateConfigFileToUse({useConfigFile:e,cwd:t,fromDirectory:r=t}){let a,s=t;return typeof e==`string`?(o(`Override config file path is ${e}`),a=n.resolve(t,e),s=t):e!==!1&&(o(`Searching for eslint.config.js`),a=await i(l,{cwd:r}),a&&(s=n.dirname(a))),{configFilePath:a,basePath:s}}static async calculateConfigArray(e,t,n){let{cwd:r,baseConfig:i,ignoreEnabled:a,ignorePatterns:c,overrideConfig:l,hasUnstableNativeNodeJsTSConfigFlag:u=!1,defaultConfigs:d=[],warningService:f}=n;o(`Calculating config array from config file ${e} and base path ${t}`);let p=new s(i||[],{basePath:t,shouldIgnore:a});if(e){o(`Loading config file ${e}`);let t=await b(e,u),n=t===void 0;o(`Config file ${e} is ${n?`empty`:`not empty`}`),n||(Array.isArray(t)?t.length===0?(o(`Config file ${e} is an empty array`),n=!0):p.push(...t):typeof t==`object`&&t&&Object.keys(t).length===0?(o(`Config file ${e} is an empty object`),n=!0):p.push(t)),n&&f.emitEmptyConfigWarning(e)}return p.push(...d),c&&c.length>0&&p.push({basePath:r,ignores:c}),l&&(Array.isArray(l)?p.push(...l):p.push(l)),await p.normalize(),p}};t.exports={ConfigLoader:x,LegacyConfigLoader:class extends x{#e;#t;#n;constructor(e){let t=e.warningService?e:{...e,warningService:new c};super(t),this.#e=t}#r(){return this.#t||=x.locateConfigFileToUse({useConfigFile:this.#e.configFile,cwd:this.#e.cwd}),this.#t}async#i(e,t){return this.#n?this.#n:(this.#n=x.calculateConfigArray(e,t,this.#e),this.#n=await this.#n,this.#n)}async findConfigFileForPath(e){d(e);let{configFilePath:t}=await this.#r();return t}async loadConfigArrayForDirectory(e){d(e),o(`[Legacy]: Calculating config for ${e}`);let{configFilePath:t,basePath:n}=await this.#r();return o(`[Legacy]: Using config file ${t} and base path ${n}`),this.#i(t,n)}getCachedConfigArrayForPath(e){if(d(e),o(`[Legacy]: Looking up cached config for ${e}`),!this.#n)throw Error(`Could not find config file for ${e}`);if(typeof this.#n.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return this.#n}}}}));function Kc(e){if(!e||!(e instanceof URL)&&typeof e!=`string`)throw TypeError(`Path must be a non-empty string or URL.`)}function qc(e){if(typeof e!=`string`&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw TypeError(`File contents must be a string, ArrayBuffer, or ArrayBuffer view.`)}function Jc(e){if(e instanceof Uint8Array)return e;if(typeof e==`string`)return Xc.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw TypeError(`Invalid contents type. Expected string or ArrayBuffer.`)}var Yc,Xc,Zc,Qc,$c,el,tl,nl=u((()=>{Yc=new TextDecoder,Xc=new TextEncoder,Zc=class extends Error{constructor(e){super(`Method "${e}" does not exist on impl.`)}},Qc=class extends Error{constructor(e){super(`Method "${e}" is not supported on this impl.`)}},$c=class extends Error{constructor(){super(`Implementation already set.`)}},el=class{type;data;timestamp=Date.now();constructor(e,t){this.type=e,this.data=t}},tl=class{#e;#t;#n=new Map;constructor({impl:e}){this.#e=e,this.#t=e}#r(e,...t){for(let n of this.#n.values())n.push(new el(`call`,{methodName:e,args:t}))}logStart(e){if(!e||typeof e!=`string`)throw TypeError(`Log name must be a non-empty string.`);if(this.#n.has(e))throw Error(`Log "${e}" already exists.`);this.#n.set(e,[])}logEnd(e){if(this.#n.has(e)){let t=this.#n.get(e);return this.#n.delete(e),t}throw Error(`Log "${e}" does not exist.`)}isBaseImpl(){return this.#t===this.#e}setImpl(e){if(this.#r(`implSet`,e),this.#t!==this.#e)throw new $c;this.#t=e}resetImpl(){this.#r(`implReset`),this.#t=this.#e}#i(e){if(typeof this.#t[e]!=`function`)throw new Zc(e)}#a(e,t){if(typeof this.#t[e]!=`function`)throw new Qc(t)}#o(e,...t){return this.#r(e,...t),this.#i(e),this.#t[e](...t)}#s(e,...t){return this.#i(e),this.#t[e](...t)}#c(e,t,...n){return this.#r(t,...n),this.#a(e,t),this.#t[e](...n)}async text(e){Kc(e);let t=await this.#c(`bytes`,`text`,e);return t?Yc.decode(t):void 0}async json(e){Kc(e);let t=await this.#c(`bytes`,`json`,e);return t?JSON.parse(Yc.decode(t)):void 0}async arrayBuffer(e){return Kc(e),(await this.#c(`bytes`,`arrayBuffer`,e))?.buffer}async bytes(e){return Kc(e),this.#o(`bytes`,e)}async write(e,t){Kc(e),qc(t),this.#r(`write`,e,t);let n=Jc(t);return this.#s(`write`,e,n)}async append(e,t){Kc(e),qc(t),this.#r(`append`,e,t);let n=Jc(t);return this.#s(`append`,e,n)}async isFile(e){return Kc(e),this.#o(`isFile`,e)}async isDirectory(e){return Kc(e),this.#o(`isDirectory`,e)}async createDirectory(e){return Kc(e),this.#o(`createDirectory`,e)}async delete(e){return Kc(e),this.#o(`delete`,e)}async deleteAll(e){return Kc(e),this.#o(`deleteAll`,e)}async*list(e){Kc(e),yield*await this.#o(`list`,e)}async*walk(e,{directoryFilter:t=()=>!0,entryFilter:n=()=>!0}={}){Kc(e),this.#r(`walk`,e,{directoryFilter:t,entryFilter:n});let r=async function*(e,{directoryFilter:t,entryFilter:n,parentPath:i=``,depth:a=1}){let o;try{o=await this.#s(`list`,e)}catch(e){if(e.code===`ENOENT`)return;throw e}for await(let s of o){let o={path:s.name,depth:a,...s};i&&(o.path=`${i}/${o.path}`);let c=n(o);if(c.then&&(c=await c),c&&(yield o),s.isDirectory){let i=t(o);if(i.then&&(i=await i),!i)continue;yield*r(e instanceof URL?new URL(s.name,e.href.endsWith(`/`)?e.href:`${e.href}/`):`${e.endsWith(`/`)?e:`${e}/`}${s.name}`,{directoryFilter:t,entryFilter:n,parentPath:o.path,depth:a+1})}}}.bind(this);yield*r(e,{directoryFilter:t,entryFilter:n})}async size(e){return Kc(e),this.#o(`size`,e)}async lastModified(e){return Kc(e),this.#o(`lastModified`,e)}async copy(e,t){return Kc(e),Kc(t),this.#o(`copy`,e,t)}async copyAll(e,t){return Kc(e),Kc(t),this.#o(`copyAll`,e,t)}async move(e,t){return Kc(e),Kc(t),this.#o(`move`,e,t)}async moveAll(e,t){return Kc(e),Kc(t),this.#o(`moveAll`,e,t)}}})),rl=u((()=>{})),il=u((()=>{nl(),rl()}));function al(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function ol(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function sl(e,t){return e.age>t}function cl(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var ll,ul,dl,fl,pl,ml=u((()=>{ll=6e4,ul=100,dl=1e3,fl=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}},pl=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=ll,maxDelay:n=ul,concurrency:r=dl}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:t,promise:n,resolve:r,reject:i}){let a;try{a=e()}catch(e){return i(Error(`Synchronous error: ${e.message}`,{cause:e})),n}return!a||typeof a.then!=`function`?(i(Error(`Result is not a promise.`)),n):(this.#n++,n.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(a).then(e=>{al(`Function called successfully without retry.`),r(e)}).catch(n=>{if(!this.#o(n)){i(n);return}let a=new fl(e,n,r,i,t);al(`Function failed, queuing for retry with task ${a.id}.`),this.#e.push(a),t?.addEventListener(`abort`,()=>{al(`Task ${a.id} was aborted due to AbortSignal.`),i(t.reason)}),this.#d()}),n)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:i}=cl();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:i})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){al(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let t=Math.min(this.pending,e);for(let e=0;e<t;e++)this.#t.shift()?.();al(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,al(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},t=this.#e.shift();if(!t){al(`Queue is empty, exiting.`),this.pending&&e();return}if(sl(t,this.#r)){al(`Task ${t.id} was abandoned due to timeout.`),t.reject(t.error),e();return}if(!ol(t,this.#i)){al(`Task ${t.id} is not ready to retry, skipping.`),this.#e.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(e=>{al(`Task ${t.id} succeeded after ${t.age}ms.`),t.resolve(e)}).catch(e=>{if(!this.#o(e)){al(`Task ${t.id} failed with non-retryable error: ${e.message}.`),t.reject(e);return}t.lastAttempt=Date.now(),this.#e.push(t),al(`Task ${t.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),hl,gl,_l,vl,yl,bl=u((()=>{il(),ml(),hl=new Set([`ENFILE`,`EMFILE`]),gl=class{name;isFile;isDirectory;isSymlink;constructor(e){this.name=e.name,this.isFile=e.isFile(),this.isDirectory=e.isDirectory(),this.isSymlink=e.isSymbolicLink()}},_l=class{#e;#t;constructor({fsp:e=r}={}){this.#e=e,this.#t=new pl(e=>hl.has(e.code))}bytes(e){return this.#t.retry(()=>this.#e.readFile(e)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!==`ENOENT`)throw e})}async write(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.writeFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.writeFile(e,i))}throw r})}async append(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.appendFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.appendFile(e,i))}throw r})}isFile(e){return this.#e.stat(e).then(e=>e.isFile()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}isDirectory(e){return this.#e.stat(e).then(e=>e.isDirectory()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async createDirectory(e){await this.#e.mkdir(e,{recursive:!0})}delete(e){return this.#e.rm(e).then(()=>!0).catch(t=>{if(t.code===`ERR_FS_EISDIR`)return this.#e.rmdir(e).then(()=>!0);if(t.code===`ENOENT`)return!1;throw t})}deleteAll(e){return this.#e.rm(e,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async*list(e){let t=await this.#e.readdir(e,{withFileTypes:!0});for(let e of t)yield new gl(e)}size(e){return this.#e.stat(e).then(e=>e.size).catch(e=>{if(e.code!==`ENOENT`)throw e})}lastModified(e){return this.#e.stat(e).then(e=>e.mtime).catch(e=>{if(e.code!==`ENOENT`)throw e})}copy(e,t){return this.#e.copyFile(e,t)}async copyAll(e,r){if(await this.isFile(e))return this.copy(e,r);let i=e instanceof URL?n(e):e,a=r instanceof URL?n(r):r;await this.createDirectory(r);for await(let n of this.list(e)){let e=t.join(i,n.name),r=t.join(a,n.name);n.isDirectory?await this.copyAll(e,r):await this.copy(e,r)}}move(e,t){return this.#e.stat(e).then(n=>{if(n.isDirectory())throw Error(`EISDIR: illegal operation on a directory, move '${e}' -> '${t}'`);return this.#e.rename(e,t)})}async moveAll(e,t){return this.#e.rename(e,t)}},vl=class extends tl{constructor({fsp:e}={}){super({impl:new _l({fsp:e})})}},yl=new vl})),xl=f({Hfs:()=>tl,NodeHfs:()=>vl,NodeHfsImpl:()=>_l,hfs:()=>yl}),Sl=u((()=>{bl(),il()})),Cl=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{isMainThread:i,threadId:a}=h(`node:worker_threads`),o=r.promises,s=Lo(),c=zo(),l=Uo(),u=Wo(),{Linter:d}=_c(),{getShorthandName:f}=vc(),p=Dc(),{ConfigLoader:m,LegacyConfigLoader:g}=Gc(),_=S(),v=l.Minimatch,y={dot:!0},b=process.hrtime.bigint;_.formatters.t=e=>`${(e+500000n)/1000000n} ms`;let x=_(`eslint:eslint-helpers${i?``:`:thread-${a}`}`);var C=class extends Error{constructor(e,t){super(`No files matching '${e}' were found${t?``:` (glob was disabled)`}.`),this.messageTemplate=`file-not-found`,this.messageData={pattern:e,globDisabled:!t}}},w=class extends Error{constructor({basePath:e,unmatchedPatterns:t,patterns:n,rawPatterns:r}){super(`No files matching '${r}' in '${e}' were found.`),this.basePath=e,this.unmatchedPatterns=t,this.patterns=n,this.rawPatterns=r}},T=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-matched-files-ignored`,this.messageData={pattern:e}}};function E(e){return typeof e==`string`&&e.trim()!==``}function D(e){return Array.isArray(e)&&!!e.length&&e.every(E)}function O(e){return Array.isArray(e)&&e.every(E)}function k(e){return Number.isInteger(e)&&e>0}function A(e){return e.replace(/\\/gu,`/`)}function j(e){return s(n.sep===`\\`?A(e):e)}async function M({basePath:e,pattern:t}){let r=!1,{hfs:i}=await Promise.resolve().then(()=>(Sl(),xl)),a=new v(A(n.relative(e,t)),y);return await i.isDirectory(e)?i.walk(e,{directoryFilter(e){return!r&&a.match(e.path,!0)},entryFilter(e){return r||e.isDirectory?!1:a.match(e.path)?(r=!0,!0):!1}}).next().then(()=>r):r}async function N({basePath:e,patterns:t,rawPatterns:r,configLoader:i,errorOnUnmatchedPattern:a}){if(t.length===0)return[];let o=new Map,s=t.map((r,i)=>{let a=A(n.relative(e,r));return o.set(a,t[i]),new v(a,y)}),c=new Set([...o.keys()]),{hfs:l}=await Promise.resolve().then(()=>(Sl(),xl)),u=l.walk(e,{async directoryFilter(t){if(!s.some(e=>e.match(t.path,!0)))return!1;let r=n.resolve(e,t.path);return!(await i.loadConfigArrayForDirectory(r)).isDirectoryIgnored(r)},async entryFilter(t){let r=n.resolve(e,t.path);if(t.isDirectory)return!1;let a=(await i.loadConfigArrayForFile(r)).getConfig(r);return(c.size>0?s.reduce((e,n)=>{let r=n.match(t.path);return r&&a&&c.delete(n.pattern),r||e},!1):s.some(e=>e.match(t.path)))&&a!==void 0}}),d=[];if(await l.isDirectory(e))for await(let t of u)d.push(n.resolve(e,t.path));if(a&&c.size>0)throw new w({basePath:e,unmatchedPatterns:[...c].map(e=>o.get(e)),patterns:t,rawPatterns:r});return d}async function P({basePath:e,patterns:t,rawPatterns:n,unmatchedPatterns:r}){let i=r[0],a=n[t.indexOf(i)];throw await M({basePath:e,pattern:i})?new T(a):new C(a,!0)}async function F({searches:e,configLoader:t,errorOnUnmatchedPattern:n}){let r=[...e].map(([e,{patterns:t,rawPatterns:n}])=>({basePath:e,patterns:t,rawPatterns:n})).filter(({patterns:e})=>e.length>0),i=await Promise.allSettled(r.map(({basePath:e,patterns:r,rawPatterns:i})=>N({basePath:e,patterns:r,rawPatterns:i,configLoader:t,errorOnUnmatchedPattern:n})));for(let e=0;e<i.length;e++){let t=i[e],a=r[e];if(t.status===`fulfilled`)continue;let o=t.reason;if(!o.basePath)throw o;n&&await P({...a,unmatchedPatterns:o.unmatchedPatterns})}return i.flatMap(e=>e.value)}async function I({patterns:e,globInputPaths:t,cwd:r,configLoader:i,errorOnUnmatchedPattern:a}){let s=[],c=[],l=[],d=[],f=new Map([[r,{patterns:l,rawPatterns:[]}]]),p=e.map(e=>n.resolve(r,e)),m=await Promise.all(p.map(e=>o.stat(e).catch(()=>{}))),h=[];if(m.forEach((a,o)=>{let m=p[o],g=A(e[o]);if(a){a.isFile()&&(s.push(m),h.push(i.loadConfigArrayForFile(m))),a.isDirectory()&&(f.has(m)||f.set(m,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(m),l.push(`${A(m)}/**`),d.push(g));return}if(t&&j(g)){let e=n.resolve(r,u(g));f.has(e)||f.set(e,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(e),l.push(m),d.push(g)}else c.push(g)}),a&&c.length)throw new C(c[0],t);h.push(F({searches:f,configLoader:i,errorOnUnmatchedPattern:a}));let g=(await Promise.all(h)).at(-1);return[...new Set([...s,...g])]}function L(e){return n.join(e,`__placeholder__.js`)}function R(e){return e.severity===2}function z(e,t,r){let i;switch(r){case`external`:i=`File ignored because outside of base path.`;break;case`unconfigured`:i=`File ignored because no matching configuration was supplied.`;break;default:i=t&&n.dirname(n.relative(t,e)).split(n.sep).includes(`node_modules`)?`File ignored by default because it is located under the node_modules directory. Use ignore pattern "!**/node_modules/" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`;break}return{filePath:e,messages:[{ruleId:null,fatal:!1,severity:1,message:i,nodeType:null}],suppressedMessages:[],errorCount:0,warningCount:1,fatalErrorCount:0,fixableErrorCount:0,fixableWarningCount:0}}function B(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];r.fatal||r.severity===2?(t.errorCount++,r.fatal&&t.fatalErrorCount++,r.fix&&t.fixableErrorCount++):(t.warningCount++,r.fix&&t.fixableWarningCount++)}return t}function V(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function H(e){return Array.isArray(e)&&e.every(V)}var U=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
103
- - `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function ee({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,concurrency:o=`off`,cwd:s=process.cwd(),errorOnUnmatchedPattern:c=!0,fix:l=!1,fixTypes:u=null,flags:d=[],globInputPaths:f=!0,ignore:p=!0,ignorePatterns:m=null,overrideConfig:h=null,overrideConfigFile:g=null,plugins:_={},stats:v=!1,warnIgnored:y=!0,passOnNoPatterns:b=!1,ruleFilter:x=()=>!0,...S}){let C=[],w=Object.keys(S);if(w.length>=1&&(C.push(`Unknown options: ${w.join(`, `)}`),w.includes(`cacheFile`)&&C.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),w.includes(`configFile`)&&C.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),w.includes(`envs`)&&C.push(`'envs' has been removed.`),w.includes(`extensions`)&&C.push(`'extensions' has been removed.`),w.includes(`resolvePluginsRelativeTo`)&&C.push(`'resolvePluginsRelativeTo' has been removed.`),w.includes(`globals`)&&C.push(`'globals' has been removed. Please use the 'overrideConfig.languageOptions.globals' option instead.`),w.includes(`ignorePath`)&&C.push(`'ignorePath' has been removed.`),w.includes(`ignorePattern`)&&C.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),w.includes(`parser`)&&C.push(`'parser' has been removed. Please use the 'overrideConfig.languageOptions.parser' option instead.`),w.includes(`parserOptions`)&&C.push(`'parserOptions' has been removed. Please use the 'overrideConfig.languageOptions.parserOptions' option instead.`),w.includes(`rules`)&&C.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`),w.includes(`rulePaths`)&&C.push(`'rulePaths' has been removed. Please define your rules using plugins.`),w.includes(`reportUnusedDisableDirectives`)&&C.push(`'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.`)),typeof e!=`boolean`&&C.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&C.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&C.push(`'cache' must be a boolean.`),E(i)||C.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&C.push(`'cacheStrategy' must be any of "metadata", "content".`),o!==`off`&&o!==`auto`&&!k(o)&&C.push(`'concurrency' must be a positive integer, "auto", or "off".`),(!E(s)||!n.isAbsolute(s))&&C.push(`'cwd' must be an absolute path.`),typeof c!=`boolean`&&C.push(`'errorOnUnmatchedPattern' must be a boolean.`),typeof l!=`boolean`&&typeof l!=`function`&&C.push(`'fix' must be a boolean or a function.`),u!==null&&!H(u)&&C.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),O(d)||C.push(`'flags' must be an array of non-empty strings.`),typeof f!=`boolean`&&C.push(`'globInputPaths' must be a boolean.`),typeof p!=`boolean`&&C.push(`'ignore' must be a boolean.`),!O(m)&&m!==null&&C.push(`'ignorePatterns' must be an array of non-empty strings or null.`),typeof h!=`object`&&C.push(`'overrideConfig' must be an object or null.`),!E(g)&&g!==null&&g!==!0&&C.push(`'overrideConfigFile' must be a non-empty string, null, or true.`),typeof b!=`boolean`&&C.push(`'passOnNoPatterns' must be a boolean.`),typeof _==`object`?_!==null&&Object.keys(_).includes(``)&&C.push(`'plugins' must not include an empty string.`):C.push(`'plugins' must be an object or null.`),Array.isArray(_)&&C.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),typeof v!=`boolean`&&C.push(`'stats' must be a boolean.`),typeof y!=`boolean`&&C.push(`'warnIgnored' must be a boolean.`),typeof x!=`function`&&C.push(`'ruleFilter' must be a function.`),C.length>0)throw new U(C);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,concurrency:o,configFile:g===!0?!1:g,overrideConfig:h,cwd:n.normalize(s),errorOnUnmatchedPattern:c,fix:l,fixTypes:u,flags:[...d],globInputPaths:f,ignore:p,ignorePatterns:m,stats:v,passOnNoPatterns:b,warnIgnored:y,ruleFilter:x}}async function W(e){return(await import(e)).default}function te(e,t,{prefix:i=`.cache_`}={}){let a=n.normalize(e),o=n.resolve(t,a),s=a.slice(-1)===n.sep;function l(){return n.join(o,`${i}${c(t)}`)}let u;try{u=r.lstatSync(o)}catch{u=null}return u?u.isDirectory()||s?l():o:s?l():o}function ne({cache:e,cacheStrategy:t},n){return e?new p(n,t):null}function re(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&t.getRuleDefinition(e.ruleId);return!!(r&&r.meta&&n.has(r.meta.type))}function ie(e,t,n){if(!e||!t)return e;let r=typeof e==`function`?e:()=>!0;return e=>re(e,n,t)&&r(e)}function ae({text:e,cwd:t,filePath:r,configs:i,fix:a,allowInlineConfig:o,ruleFilter:s,stats:c,linter:l}){let u=b(),d=r||`<text>`,f=d===`<text>`?L(t):d,{fixed:p,messages:m,output:h}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:f,fix:a,ruleFilter:s,stats:c,filterCodeBlock(e){return i.getConfig(e)!==void 0}}),g={filePath:d===`<text>`?d:n.resolve(d),messages:m,suppressedMessages:l.getSuppressedMessages(),...B(m)};return p&&(g.output=h),g.errorCount+g.warningCount>0&&g.output===void 0&&(g.source=e),c&&(g.stats={times:l.getTimes(),fixPasses:l.getFixPassCount()}),x(`File "%s" linted in %t`,d,b()-u),g}async function oe(e,t,n,r,i,a,s,c){let l=t.getConfig(e),{allowInlineConfig:u,cwd:d,fix:f,fixTypes:p,ruleFilter:m,stats:h,warnIgnored:g}=n,_=p?new Set(p):null;if(!l)return g?z(e,d,t.getConfigStatus(e)):void 0;if(i){let t=i.getCachedLintResults(e,l);if(t)if(t.messages&&t.messages.length>0&&f)x(`Reprocessing cached file to allow autofix: ${e}`);else return x(`Skipping file since it hasn't changed: ${e}`),t}let v=ie(f,_,l);async function y(){let n=b(),i=await o.readFile(e,{encoding:`utf8`,signal:c?.signal}),s=b()-n;return x(`File "%s" read in %t`,e,s),a&&(a.duration+=s),c?.signal.throwIfAborted(),ae({text:i,filePath:e,configs:t,cwd:d,fix:v,allowInlineConfig:u,ruleFilter:m,stats:h,linter:r})}return(s?s.retry(y,{signal:c?.signal}):y()).catch(e=>{throw c?.abort(e),e})}function G(e){if(!process.env.ESLINT_FLAGS)return e;let t=process.env.ESLINT_FLAGS.trim().split(/\s*,\s*/gu);return Array.from(new Set([...t,...e]))}function se({cwd:e,flags:t},n){return new d({configType:`flat`,cwd:e,flags:G(t),warningService:n})}function ce(e){let t=[];if(e){let n={};for(let[t,r]of Object.entries(e))n[f(t,`eslint-plugin`)]=r;t.push({plugins:n})}return t}function le({cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignore:i,ignorePatterns:a},o,s,c){let l={cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignoreEnabled:i,ignorePatterns:a,defaultConfigs:o,hasUnstableNativeNodeJsTSConfigFlag:s.hasFlag(`unstable_native_nodejs_ts_config`),warningService:c};return s.hasFlag(`v10_config_lookup_from_file`)?new m(l):new g(l)}t.exports={createDebug:_,findFiles:I,isNonEmptyString:E,isArrayOfNonEmptyString:D,createIgnoreResult:z,isErrorMessage:R,calculateStatsPerFile:B,getPlaceholderPath:L,processOptions:ee,loadOptionsFromModule:W,getCacheFile:te,createLintResultCache:ne,getFixerForFixTypes:ie,verifyText:ae,lintFile:oe,createLinter:se,createDefaultConfigs:ce,createConfigLoader:le}})),wl=d((e=>{function t(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function n(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function r(e,t){return e.age>t}function i(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var a=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}};e.Retrier=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=6e4,maxDelay:n=100,concurrency:r=1e3}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:n,promise:r,resolve:i,reject:o}){let s;try{s=e()}catch(e){return o(Error(`Synchronous error: ${e.message}`,{cause:e})),r}return!s||typeof s.then!=`function`?(o(Error(`Result is not a promise.`)),r):(this.#n++,r.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(s).then(e=>{t(`Function called successfully without retry.`),i(e)}).catch(r=>{if(!this.#o(r)){o(r);return}let s=new a(e,r,i,o,n);t(`Function failed, queuing for retry with task ${s.id}.`),this.#e.push(s),n?.addEventListener(`abort`,()=>{t(`Task ${s.id} was aborted due to AbortSignal.`),o(n.reason)}),this.#d()}),r)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:a}=i();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:a})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){t(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let n=Math.min(this.pending,e);for(let e=0;e<n;e++)this.#t.shift()?.();t(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,t(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},i=this.#e.shift();if(!i){t(`Queue is empty, exiting.`),this.pending&&e();return}if(r(i,this.#r)){t(`Task ${i.id} was abandoned due to timeout.`),i.reject(i.error),e();return}if(!n(i,this.#i)){t(`Task ${i.id} is not ready to retry, skipping.`),this.#e.push(i),e();return}i.lastAttempt=Date.now(),Promise.resolve(i.fn()).then(e=>{t(`Task ${i.id} succeeded after ${i.age}ms.`),i.resolve(e)}).catch(e=>{if(!this.#o(e)){t(`Task ${i.id} failed with non-retryable error: ${e.message}.`),i.reject(e);return}i.lastAttempt=Date.now(),this.#e.push(i),t(`Task ${i.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),Tl=d((e=>{let t=h(`node:module`).createRequire;function n(e,n){return t(n).resolve(e)}e.resolve=n})),El=d(((e,t)=>{V();let{existsSync:n}=h(`node:fs`),r=h(`node:fs/promises`),i=h(`node:os`),a=h(`node:path`),{pathToFileURL:o}=h(`node:url`),{SHARE_ENV:s,Worker:c}=h(`node:worker_threads`),{version:l}=C(),{defaultConfig:u}=No(),d=Fo(),{createDebug:f,findFiles:p,getCacheFile:m,isNonEmptyString:g,isArrayOfNonEmptyString:_,createIgnoreResult:v,isErrorMessage:y,getPlaceholderPath:b,processOptions:x,loadOptionsFromModule:S,getFixerForFixTypes:w,verifyText:T,lintFile:E,createLinter:D,createLintResultCache:O,createDefaultConfigs:k,createConfigLoader:A}=Cl(),{Retrier:j}=wl(),{ConfigLoader:M}=Gc(),{WarningService:N}=lc(),{Config:P}=Zs(),{getShorthandName:F,getNamespaceFromTerm:I,normalizePackageName:L}=vc(),{resolve:R}=Tl(),B=process.hrtime.bigint,H=f(`eslint:eslint`),U=new WeakMap,ee=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),W=new Set([`ENFILE`,`EMFILE`]);function te(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let ne=new WeakMap;function re(e,t){let{options:{cwd:n},configLoader:r}=U.get(e),i=a.isAbsolute(t)?t:b(n),o=r.getCachedConfigArrayForFile(i).getConfig(i);if(o&&!ne.has(o)){let e=[];if(o.rules)for(let[t,n]of Object.entries(o.rules)){if(P.getRuleNumericSeverity(n)===0)continue;let r=o.getRuleDefinition(t),i=r&&r.meta;if(i&&i.deprecated){let n=typeof i.deprecated==`object`;e.push({ruleId:t,replacedBy:n?i.deprecated.replacedBy?.map(e=>`${e.plugin?.name===void 0?``:`${F(e.plugin.name,`eslint-plugin`)}/`}${e.rule?.name??``}`)??[]:i.replacedBy||[],info:n?i.deprecated:void 0})}}ne.set(o,Object.freeze(e))}return o?ne.get(o):Object.freeze([])}function ie(e,t){let n={configurable:!0,enumerable:!0,get(){return re(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function ae(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}async function oe({configFile:e,cwd:t}){let n=await new M({cwd:t,configFile:e}).findConfigFileForPath(a.join(t,`__placeholder__.js`));if(!n)throw Error(`No ESLint configuration file was found.`);return{configFilePath:n,basePath:e?t:a.dirname(n)}}function G(e){return TypeError(`Results object was not created from this ESLint instance.`,{cause:e})}function se(e,t){let n=Math.ceil(e/50);return n>t&&(n=t),n<=1&&(n=0),n}function ce(e,t,n,r){let i=e.getValidCachedLintResults(n,r);return!i||t&&i.messages&&i.messages.length>0}function le(e,t,n){let r=B(),{configLoader:i,lintResultCache:a,options:{cacheStrategy:o,fix:s}}=U.get(e),c=!a||o===`content`,l=0,u=t.length,d=0;for(let e of t){let t=se(l+u,n);if(d>=t)break;u--;let r=i.getCachedConfigArrayForFile(e).getConfig(e);r&&(c||ce(a,s,e,r))&&(l++,d=se(l,n))}return H(`%d file(s) to process counted in %t`,l,B()-r),d}function K(e,t,{availableParallelism:n}=i){let{concurrency:r}=U.get(e).options;switch(r){case`off`:return 0;case`auto`:return le(e,t,n()>>1);default:{let e=Math.min(r,t.length);return e>1?e:0}}}let ue=Symbol(`Do not check for uncloneable options.`);async function de(e,t,n,r){let i=e.length,l=Array(i),u=o(a.join(z,`./worker.js`)),f=new Uint32Array(new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT)),p=new AbortController,m=p.signal,h={env:s,workerData:{eslintOptionsOrURL:n,filePathIndexArray:f,filePaths:e}},g=1;function _(e,t){let n=B(),r=new c(u,h);r.once(`message`,t=>{let r=B()-n,i=Number(t.netLintingDuration)/Number(r);g=Math.min(g,i),d.enabled&&t.timings&&d.mergeData(t.timings);for(let e of t){let{index:t}=e;delete e.index,l[t]=e}e()}),r.once(`error`,e=>{p.abort(e),t(e)}),m.addEventListener(`abort`,()=>r.terminate())}let v=Array(t);for(let e=0;e<t;++e)v[e]=new Promise(_);try{await Promise.all(v)}catch(e){throw d.disableDisplay(),e}return g<.7&&r(),l}async function fe(e,t,n,r,i){let{configLoader:a,lintResultCache:o}=U.get(e),s=await de(t,n,r,i);return o&&s.forEach((e,n)=>{if(e){let r=t[n],i=a.getCachedConfigArrayForFile(r).getConfig(r);i&&o.setCachedLintResults(r,i,e)}}),s}async function pe(e,t){let{configLoader:n,linter:r,lintResultCache:i,options:a}=U.get(e),o=new AbortController,s=new j(e=>W.has(e.code),{concurrency:100});return await Promise.all(t.map(async e=>{let t=n.getCachedConfigArrayForFile(e),c=t.getConfig(e),l=await E(e,t,a,r,i,null,s,o);return c&&i?.setCachedLintResults(e,c,l),l}))}function me(e){try{structuredClone(e);return}catch{}let t=Object.keys(e).filter(t=>{try{structuredClone(e[t])}catch{return!0}return!1}).sort(),n=TypeError(`The ${t.length===1?`option`:`options`} ${new Intl.ListFormat(`en-US`).format(t.map(e=>`"${e}"`))} cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.`);throw n.code=`ESLINT_UNCLONEABLE_OPTIONS`,n}var he=class e{static configType=`flat`;#e;#t;constructor(e={}){let t=x(e);!e[ue]&&t.concurrency!==`off`&&(me(e),this.#t=e);let r=new N,i=D(t,r),o=m(t.cacheLocation,t.cwd),s=O(t,o),c=k(e.plugins);this.#e=A(t,c,i,r),H(`Using config loader ${this.#e.constructor.name}`),U.set(this,{options:t,linter:i,cacheFilePath:o,lintResultCache:s,defaultConfigs:c,configs:null,configLoader:this.#e,warningService:r}),n(a.resolve(t.cwd,`.eslintignore`))&&r.emitESLintIgnoreWarning()}static get version(){return l}static get defaultConfig(){return u}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);let t=new j(e=>W.has(e.code),{concurrency:100});await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&a.isAbsolute(e.filePath)}).map(e=>t.retry(()=>r.writeFile(e.filePath,e.output))))}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(y),r=e.suppressedMessages.filter(y);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static async fromOptionsModule(t){if(!(t instanceof URL))throw TypeError(`Argument must be a URL object`);let n=t.href,r={...await S(n),[ue]:!0},i=new e(r);return r.concurrency!==`off`&&(i.#t=n),i}getRulesMetaForResults(e){if(e.length===0)return{};let t=new Map,{configLoader:n,options:{cwd:r}}=U.get(this);for(let i of e){let e=i.filePath===`<text>`?b(r):i.filePath,a=i.messages.concat(i.suppressedMessages);for(let{ruleId:r}of a){if(!r)continue;let i;try{i=n.getCachedConfigArrayForFile(e)}catch(e){throw G(e)}let a=i.getConfig(e);if(!a)throw G();let o=a.getRuleDefinition(r);o&&t.set(r,o)}}return te(t)}hasFlag(e){return U.get(this).linter.hasFlag(e)}async lintFiles(e){let i=e,{cacheFilePath:a,lintResultCache:o,options:s,warningService:c}=U.get(this);if(e===``||Array.isArray(e)&&e.length===0){if(s.passOnNoPatterns)return[];i=[`.`]}else{if(!g(e)&&!_(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);typeof e==`string`&&(i=[e])}H(`Using file patterns: ${i}`);let{concurrency:l,cwd:u,globInputPaths:d,errorOnUnmatchedPattern:f}=s;if(!o&&a){H(`Deleting cache file at ${a}`);try{n(a)&&await r.unlink(a)}catch(e){if(n(a))throw e}}let m=B(),h=await p({patterns:i,cwd:u,globInputPaths:d,configLoader:this.#e,errorOnUnmatchedPattern:f});H(`%d file(s) found in %t`,h.length,B()-m);let v,y=t.exports.calculateWorkerCount(this,h);if(y){H(`Linting using ${y} worker thread(s).`);let e;e=y<=2?`disable concurrency`:l===`auto`?`disable concurrency or use a numeric concurrency setting`:`reduce or disable concurrency`,v=await fe(this,h,y,this.#t,()=>c.emitPoorConcurrencyWarning(e))}else H(`Linting in single-thread mode.`),v=await pe(this,h);o&&o.reconcile();let b=v.filter(e=>!!e);return ie(this,b)}async lintText(e,t={}){if(typeof e!=`string`)throw Error(`'code' must be a string`);if(typeof t!=`object`)throw Error(`'options' must be an object, null, or undefined`);let{filePath:n,warnIgnored:r,...i}=t||{},o=Object.keys(i);if(o.length>0)throw Error(`'options' must not include the unknown option(s): ${o.join(`, `)}`);if(n!==void 0&&!g(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`&&r!==void 0)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{linter:s,options:c}=U.get(this),{allowInlineConfig:l,cwd:u,fix:d,fixTypes:f,warnIgnored:p,ruleFilter:m,stats:h}=c,_=[],y=B(),b=f?new Set(f):null,x=a.resolve(u,n||`__placeholder__.js`),S=await this.#e.loadConfigArrayForFile(x),C=S?.getConfigStatus(x)??`unconfigured`;if(x&&C!==`matched`)(typeof r==`boolean`?r:p)&&_.push(v(x,u,C));else{let t=w(d,b,S.getConfig(x));_.push(T({text:e,filePath:x.endsWith(`__placeholder__.js`)?`<text>`:x,configs:S,cwd:u,fix:t,allowInlineConfig:l,ruleFilter:m,stats:h,linter:s}))}return H(`Linting complete in %t`,B()-y),ie(this,_)}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let t=e.replace(/\\/gu,`/`),n=I(t),{cwd:r}=U.get(this).options,i;if(!n&&t.includes(`/`))i=a.resolve(r,t);else try{i=R(L(t,`eslint-formatter`),b(r))}catch{i=a.resolve(z,`../node_modules/eslint/lib`,`cli-engine`,`formatters`,`${t}.js`)}let s;try{s=(await import(o(i))).default}catch(t){throw ee.has(e)?t.message=`The ${e} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${e}\``:t.message=`There was a problem loading formatter: ${i}\nError: ${t.message}`,t}if(typeof s!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof s}.`);let c=this;return{format(e,t){let n=null;return e.sort(ae),s(e,{...t,cwd:r,get rulesMeta(){return n||=c.getRulesMetaForResults(e),n}})}}}async calculateConfigForFile(e){if(!g(e))throw Error(`'filePath' must be a non-empty string`);let t=U.get(this).options,n=a.resolve(t.cwd,e),r=await this.#e.loadConfigArrayForFile(n);if(!r){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}return r.getConfig(n)}async findConfigFile(e){let t=U.get(this).options,n=a.join(t.cwd,`__placeholder__`);return this.#e.findConfigFileForPath(e??n).catch(()=>void 0)}async isPathIgnored(e){return await this.calculateConfigForFile(e)===void 0}};async function ge(){return process.env.ESLINT_USE_FLAT_CONFIG!==`false`}t.exports={ESLint:he,shouldUseFlatConfig:ge,locateConfigFileToUse:oe,calculateWorkerCount:K}})),Dl=d(((e,t)=>{t.exports={configFile:null,baseConfig:!1,rulePaths:[],useEslintrc:!0,envs:[],globals:[],extensions:null,ignore:!0,ignorePath:void 0,cache:!1,cacheLocation:``,cacheFile:`.eslintcache`,cacheStrategy:`metadata`,fix:!1,allowInlineConfig:!0,reportUnusedDisableDirectives:void 0,globInputPaths:!0}})),Ol=d(((e,t)=>{let n=h(`path`),r=h(`module`),i=h(`fs`),a=(e,t,a)=>{if(typeof e!=`string`)throw TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof t!=`string`)throw TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{e=i.realpathSync(e)}catch(t){if(t.code===`ENOENT`)e=n.resolve(e);else if(a)return null;else throw t}let o=n.join(e,`noop.js`),s=()=>r._resolveFilename(t,{id:o,filename:o,paths:r._nodeModulePaths(e)});if(a)try{return s()}catch{return null}return s()};t.exports=(e,t)=>a(e,t),t.exports.silent=(e,t)=>a(e,t,!0)})),kl=d(((e,t)=>{let n=()=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let t=Error().stack.slice(1);return Error.prepareStackTrace=e,t};t.exports=n,t.exports.default=n})),Al=d(((e,t)=>{let n=kl();t.exports=e=>{let t=n();if(!e)return t[2].getFileName();let r=!1;t.shift();for(let n of t){let t=n.getFileName();if(typeof t==`string`){if(t===e){r=!0;continue}if(t!==`module.js`&&r&&t!==e)return t}}}})),jl=d(((e,t)=>{V();let n=h(`path`),r=Ol(),i=Al();t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let t=i(B),a=r(t?n.dirname(t):z,e),o=h.cache[a];if(o&&o.parent){let e=o.parent.children.length;for(;e--;)o.parent.children[e].id===a&&o.parent.children.splice(e,1)}delete h.cache[a];let s=h.cache[t];return s===void 0||s.require===void 0?h(a):s.require(a)}})),Ml=d(((e,t)=>{let n=Symbol(`singleComment`),r=Symbol(`multiComment`),i=()=>``,a=(e,t,n)=>e.slice(t,n).replace(/\S/g,` `),o=(e,t)=>{let n=t-1,r=0;for(;e[n]===`\\`;)--n,r+=1;return!!(r%2)};t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);let s=t.whitespace===!1?i:a,c=!1,l=!1,u=0,d=``;for(let t=0;t<e.length;t++){let i=e[t],a=e[t+1];if(!l&&i===`"`&&(o(e,t)||(c=!c)),!c){if(!l&&i+a===`//`)d+=e.slice(u,t),u=t,l=n,t++;else if(l===n&&i+a===`\r
273
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return I(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),r===`0`&&t!==56&&t!==57||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return T(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Xe.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Xe.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(m(i,r))this.pos+=i<=65535?1:2;else{if(i!==92)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?p:m)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=I(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Xe.readWord=function(){var e=this.readWord1(),t=S.name;return this.keywords.test(e)&&(t=b[e]),this.finishToken(t,e)},ne.acorn={Parser:ne,version:`8.15.0`,defaultOptions:V,Position:R,SourceLocation:z,getLineInfo:B,Node:xe,TokenType:g,tokTypes:S,keywordTypes:b,TokContext:me,tokContexts:he,isIdentifierChar:m,isIdentifierStart:p,Token:Ye,isNewLine:T,lineBreak:C,lineBreakG:w,nonASCIIwhitespace:D};let $e=h(`node:module`),et=h(`node:fs`);String.fromCharCode;let tt=/\/$|\/\?|\/#/,nt=/^\.?\//;function rt(e=``,t){return t?tt.test(e):e.endsWith(`/`)}function it(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(rt(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function $(e){return e&&e!==`/`}function at(e,...t){let n=e||``;for(let e of t.filter(e=>$(e)))if(n){let t=e.replace(nt,``);n=it(n)+t}else n=e;return n}let ot=/^[A-Za-z]:\//;function st(e=``){return e&&e.replace(/\\/g,`/`).replace(ot,e=>e.toUpperCase())}let ct=/^[/\\]{2}/,lt=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ut=/^[A-Za-z]:$/,dt=/.(\.[^./]+|\.)$/,ft=function(e){if(e.length===0)return`.`;let t=(e=st(e)).match(ct),n=_t(e),r=e[e.length-1]===`/`;return(e=gt(e,!n)).length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ut.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!_t(e)?`/${e}`:e)},pt=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;t+=e&&r?n.slice(1):e||r?n:`/${n}`}else t+=n;return ft(t)};function mt(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}let ht=function(...e){let t=``,n=!1;for(let r=(e=e.map(e=>st(e))).length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:mt();i&&i.length!==0&&(t=`${i}/${t}`,n=_t(i))}return t=gt(t,!n),n&&!_t(t)?`/${t}`:t.length>0?t:`.`};function gt(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else{if(o===`/`)break;o=`/`}if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}let _t=function(e){return lt.test(e)},vt=function(e){if(e===`..`)return``;let t=dt.exec(st(e));return t&&t[1]||``},yt=function(e){let t=st(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ut.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(_t(e)?`/`:`.`)},bt=function(e,t){let n=st(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},xt=h(`node:url`),St=h(`node:assert`),Ct=h(`node:process`),wt=h(`node:path`),Tt=h(`node:v8`),Et=h(`node:util`),Dt=new Set($e.builtinModules);function Ot(e){return e.replace(/\\/g,`/`)}let kt={}.hasOwnProperty,At=/^([A-Z][a-z\d]*)+$/,jt=new Set([`string`,`function`,`number`,`object`,`Function`,`Object`,`boolean`,`bigint`,`symbol`]),Mt={};function Nt(e,t=`and`){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}let Pt=new Map,Ft;function It(e,t,n){return Pt.set(e,t),function(e,t){return n;function n(...n){let r=Error.stackTraceLimit;Lt()&&(Error.stackTraceLimit=0);let i=new e;Lt()&&(Error.stackTraceLimit=r);let a=function(e,t,n){let r=Pt.get(e);if(St(r!==void 0,"expected `message` to be found"),typeof r==`function`)return St(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,n,t);let i=/%[dfijoOs]/g,a=0;for(;i.exec(r)!==null;)a++;return St(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`),t.length===0?r:(t.unshift(r),Reflect.apply(Et.format,null,t))}(t,n,i);return Object.defineProperties(i,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Rt(i),i.code=t,i}}(n,e)}function Lt(){try{if(Tt.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):kt.call(e,`writable`)&&e.writable!==void 0?e.writable:e.set!==void 0}Mt.ERR_INVALID_ARG_TYPE=It(`ERR_INVALID_ARG_TYPE`,(e,t,n)=>{St(typeof e==`string`,`'name' must be a string`),Array.isArray(t)||(t=[t]);let r=`The `;if(e.endsWith(` argument`))r+=`${e} `;else{let t=e.includes(`.`)?`property`:`argument`;r+=`"${e}" ${t} `}r+=`must be `;let i=[],a=[],o=[];for(let e of t)St(typeof e==`string`,`All expected entries have to be of type string`),jt.has(e)?i.push(e.toLowerCase()):At.exec(e)===null?(St(e!==`object`,`The value "object" should be written as "Object"`),o.push(e)):a.push(e);if(a.length>0){let e=i.indexOf(`object`);e!==-1&&(i.slice(e,1),a.push(`Object`))}return i.length>0&&(r+=`${i.length>1?`one of type`:`of type`} ${Nt(i,`or`)}`,(a.length>0||o.length>0)&&(r+=` or `)),a.length>0&&(r+=`an instance of ${Nt(a,`or`)}`,o.length>0&&(r+=` or `)),o.length>0&&(o.length>1?r+=`one of ${Nt(o,`or`)}`:(o[0].toLowerCase()!==o[0]&&(r+=`an `),r+=`${o[0]}`)),r+=`. Received ${function(e){if(e==null)return String(e);if(typeof e==`function`&&e.name)return`function ${e.name}`;if(typeof e==`object`)return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,Et.inspect)(e,{depth:-1})}`;let t=(0,Et.inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}(n)}`,r},TypeError),Mt.ERR_INVALID_MODULE_SPECIFIER=It(`ERR_INVALID_MODULE_SPECIFIER`,(e,t,n=void 0)=>`Invalid module "${e}" ${t}${n?` imported from ${n}`:``}`,TypeError),Mt.ERR_INVALID_PACKAGE_CONFIG=It(`ERR_INVALID_PACKAGE_CONFIG`,(e,t,n)=>`Invalid package config ${e}${t?` while importing ${t}`:``}${n?`. ${n}`:``}`,Error),Mt.ERR_INVALID_PACKAGE_TARGET=It(`ERR_INVALID_PACKAGE_TARGET`,(e,t,n,r=!1,i=void 0)=>{let a=typeof n==`string`&&!r&&n.length>0&&!n.startsWith(`./`);return t===`.`?(St(!1===r),`Invalid "exports" main target ${JSON.stringify(n)} defined in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`):`Invalid "${r?`imports`:`exports`}" target ${JSON.stringify(n)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:``}${a?`; targets must start with "./"`:``}`},Error),Mt.ERR_MODULE_NOT_FOUND=It(`ERR_MODULE_NOT_FOUND`,(e,t,n=!1)=>`Cannot find ${n?`module`:`package`} '${e}' imported from ${t}`,Error),Mt.ERR_NETWORK_IMPORT_DISALLOWED=It(`ERR_NETWORK_IMPORT_DISALLOWED`,`import of '%s' by %s is not supported: %s`,Error),Mt.ERR_PACKAGE_IMPORT_NOT_DEFINED=It(`ERR_PACKAGE_IMPORT_NOT_DEFINED`,(e,t,n)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:``} imported from ${n}`,TypeError),Mt.ERR_PACKAGE_PATH_NOT_EXPORTED=It(`ERR_PACKAGE_PATH_NOT_EXPORTED`,(e,t,n=void 0)=>t===`.`?`No "exports" main defined in ${e}package.json${n?` imported from ${n}`:``}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${n?` imported from ${n}`:``}`,Error),Mt.ERR_UNSUPPORTED_DIR_IMPORT=It(`ERR_UNSUPPORTED_DIR_IMPORT`,`Directory import '%s' is not supported resolving ES modules imported from %s`,Error),Mt.ERR_UNSUPPORTED_RESOLVE_REQUEST=It(`ERR_UNSUPPORTED_RESOLVE_REQUEST`,`Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.`,TypeError),Mt.ERR_UNKNOWN_FILE_EXTENSION=It(`ERR_UNKNOWN_FILE_EXTENSION`,(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError),Mt.ERR_INVALID_ARG_VALUE=It(`ERR_INVALID_ARG_VALUE`,(e,t,n=`is invalid`)=>{let r=(0,Et.inspect)(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(`.`)?`property`:`argument`} '${e}' ${n}. Received ${r}`},TypeError);let Rt=function(e){let t=`__node_internal_`+e.name;return Object.defineProperty(e,`name`,{value:t}),e}(function(e){let t=Lt();return t&&(Ft=Error.stackTraceLimit,Error.stackTraceLimit=1/0),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ft),e}),zt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Bt}=Mt,Vt=new Map;function Ht(e,{base:t,specifier:n}){let r=Vt.get(e);if(r)return r;let i;try{i=et.readFileSync(wt.toNamespacedPath(e),`utf8`)}catch(e){let t=e;if(t.code!==`ENOENT`)throw t}let a={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:`none`,exports:void 0,imports:void 0};if(i!==void 0){let r;try{r=JSON.parse(i)}catch(r){let i=r,a=new Bt(e,(t?`"${n}" from `:``)+(0,xt.fileURLToPath)(t||n),i.message);throw a.cause=i,a}a.exists=!0,zt.call(r,`name`)&&typeof r.name==`string`&&(a.name=r.name),zt.call(r,`main`)&&typeof r.main==`string`&&(a.main=r.main),zt.call(r,`exports`)&&(a.exports=r.exports),zt.call(r,`imports`)&&(a.imports=r.imports),!zt.call(r,`type`)||r.type!==`commonjs`&&r.type!==`module`||(a.type=r.type)}return Vt.set(e,a),a}function Ut(e){let t=new URL(`package.json`,e);for(;!t.pathname.endsWith(`node_modules/package.json`);){let n=Ht((0,xt.fileURLToPath)(t),{specifier:e});if(n.exists)return n;let r=t;if(t=new URL(`../package.json`,t),t.pathname===r.pathname)break}return{pjsonPath:(0,xt.fileURLToPath)(t),exists:!1,type:`none`}}function Wt(e){return Ut(e).type}let{ERR_UNKNOWN_FILE_EXTENSION:Gt}=Mt,Kt={}.hasOwnProperty,qt={__proto__:null,".cjs":`commonjs`,".js":`module`,".json":`json`,".mjs":`module`},Jt={__proto__:null,"data:":function(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return function(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?`module`:e===`application/json`?`json`:null}(t)},"file:":function(e,t,n){let r=function(e){let t=e.pathname,n=t.length;for(;n--;){let e=t.codePointAt(n);if(e===47)return``;if(e===46)return t.codePointAt(n-1)===47?``:t.slice(n)}return``}(e);if(r===`.js`){let t=Wt(e);return t===`none`?`commonjs`:t}if(r===``){let t=Wt(e);return t===`none`||t===`commonjs`?`commonjs`:`module`}let i=qt[r];if(i)return i;if(!n)throw new Gt(r,(0,xt.fileURLToPath)(e))},"http:":Yt,"https:":Yt,"node:":()=>`builtin`};function Yt(){}let Xt=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:Zt,ERR_INVALID_PACKAGE_CONFIG:Qt,ERR_INVALID_PACKAGE_TARGET:$t,ERR_MODULE_NOT_FOUND:en,ERR_PACKAGE_IMPORT_NOT_DEFINED:tn,ERR_PACKAGE_PATH_NOT_EXPORTED:nn,ERR_UNSUPPORTED_DIR_IMPORT:rn,ERR_UNSUPPORTED_RESOLVE_REQUEST:an}=Mt,on={}.hasOwnProperty,sn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,cn=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,ln=/^\.|%|\\/,un=/\*/g,dn=/%2f|%5c/i,fn=new Set,pn=/[/\\]{2}/;function mn(e,t,n,r,i,a,o){if(Ct.noDeprecation)return;let s=(0,xt.fileURLToPath)(r),c=pn.exec(o?e:t)!==null;Ct.emitWarning(`Use of deprecated ${c?`double slash`:`leading or trailing slash matching`} resolving "${e}" for module request "${t}" ${t===n?``:`matched to "${n}" `}in the "${i?`imports`:`exports`}" field module resolution of the package at ${s}${a?` imported from ${(0,xt.fileURLToPath)(a)}`:``}.`,`DeprecationWarning`,`DEP0166`)}function hn(e,t,n,r){if(Ct.noDeprecation||function(e,t){let n=e.protocol;return Kt.call(Jt,n)&&Jt[n](e,t,!0)||null}(e,{parentURL:n.href})!==`module`)return;let i=(0,xt.fileURLToPath)(e.href),a=(0,xt.fileURLToPath)(new xt.URL(`.`,t)),o=(0,xt.fileURLToPath)(n);r?wt.resolve(a,r)!==i&&Ct.emitWarning(`Package ${a} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`):Ct.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,`DeprecationWarning`,`DEP0151`)}function gn(e){try{return(0,et.statSync)(e)}catch{}}function _n(e){let t=(0,et.statSync)(e,{throwIfNoEntry:!1}),n=t?t.isFile():void 0;return n!=null&&n}function vn(e,t,n){let r;if(t.main!==void 0){if(r=new xt.URL(t.main,e),_n(r))return r;let i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r}let i=[`./index.js`,`./index.json`,`./index.node`],a=-1;for(;++a<i.length&&(r=new xt.URL(i[a],e),!_n(r));)r=void 0;if(r)return hn(r,e,n,t.main),r;throw new en((0,xt.fileURLToPath)(new xt.URL(`.`,e)),(0,xt.fileURLToPath)(n))}function yn(e,t,n){return new nn((0,xt.fileURLToPath)(new xt.URL(`.`,t)),e,n&&(0,xt.fileURLToPath)(n))}function bn(e,t,n,r,i){return t=typeof t==`object`&&t?JSON.stringify(t,null,``):`${t}`,new $t((0,xt.fileURLToPath)(new xt.URL(`.`,n)),e,t,r,i&&(0,xt.fileURLToPath)(i))}function xn(e,t,n,r,i,a,o,s,c){if(t!==``&&!a&&e[e.length-1]!==`/`)throw bn(n,e,r,o,i);if(!e.startsWith(`./`)){if(o&&!e.startsWith(`../`)&&!e.startsWith(`/`)){let n=!1;try{new xt.URL(e),n=!0}catch{}if(!n)return On(a?Xt.call(un,e,()=>t):e+t,r,c)}throw bn(n,e,r,o,i)}if(sn.exec(e.slice(2))!==null){if(cn.exec(e.slice(2))!==null)throw bn(n,e,r,o,i);if(!s){let s=a?n.replace(`*`,()=>t):n+t;mn(a?Xt.call(un,e,()=>t):e,s,n,r,o,i,!0)}}let l=new xt.URL(e,r),u=l.pathname,d=new xt.URL(`.`,r).pathname;if(!u.startsWith(d))throw bn(n,e,r,o,i);if(t===``)return l;if(sn.exec(t)!==null){let c=a?n.replace(`*`,()=>t):n+t;cn.exec(t)===null?s||mn(a?Xt.call(un,e,()=>t):e,c,n,r,o,i,!1):(function(e,t,n,r,i){throw new Zt(e,`request is not a valid match in pattern "${t}" for the "${r?`imports`:`exports`}" resolution of ${(0,xt.fileURLToPath)(n)}`,i&&(0,xt.fileURLToPath)(i))})(c,n,r,o,i)}return a?new xt.URL(Xt.call(un,l.href,()=>t)):new xt.URL(t,l)}function Sn(e){let t=Number(e);return`${t}`===e&&t>=0&&t<4294967295}function Cn(e,t,n,r,i,a,o,s,c){if(typeof t==`string`)return xn(t,n,r,e,i,a,o,s,c);if(Array.isArray(t)){let l=t;if(l.length===0)return null;let u,d=-1;for(;++d<l.length;){let t=l[d],f;try{f=Cn(e,t,n,r,i,a,o,s,c)}catch(e){if(u=e,e.code===`ERR_INVALID_PACKAGE_TARGET`)continue;throw e}if(f!==void 0){if(f!==null)return f;u=null}}if(u==null)return null;throw u}if(typeof t==`object`&&t){let l=Object.getOwnPropertyNames(t),u=-1;for(;++u<l.length;)if(Sn(l[u]))throw new Qt((0,xt.fileURLToPath)(e),i,`"exports" cannot contain numeric property keys.`);for(u=-1;++u<l.length;){let d=l[u];if(d===`default`||c&&c.has(d)){let l=Cn(e,t[d],n,r,i,a,o,s,c);if(l===void 0)continue;return l}}return null}if(t===null)return null;throw bn(r,t,e,o,i)}function wn(e,t,n){if(Ct.noDeprecation)return;let r=(0,xt.fileURLToPath)(t);fn.has(r+`|`+e)||(fn.add(r+`|`+e),Ct.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${n?` imported from ${(0,xt.fileURLToPath)(n)}`:``}. Mapping specifiers ending in "/" is no longer supported.`,`DeprecationWarning`,`DEP0155`))}function Tn(e,t,n,r,i){let a=n.exports;if(function(e,t,n){if(typeof e==`string`||Array.isArray(e))return!0;if(typeof e!=`object`||!e)return!1;let r=Object.getOwnPropertyNames(e),i=!1,a=0,o=-1;for(;++o<r.length;){let e=r[o],s=e===``||e[0]!==`.`;if(a++===0)i=s;else if(i!==s)throw new Qt((0,xt.fileURLToPath)(t),n,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}(a,e,r)&&(a={".":a}),on.call(a,t)&&!t.includes(`*`)&&!t.endsWith(`/`)){let n=Cn(e,a[t],``,t,r,!1,!1,!1,i);if(n==null)throw yn(t,e,r);return n}let o=``,s=``,c=Object.getOwnPropertyNames(a),l=-1;for(;++l<c.length;){let n=c[l],i=n.indexOf(`*`);if(i!==-1&&t.startsWith(n.slice(0,i))){t.endsWith(`/`)&&wn(t,e,r);let a=n.slice(i+1);t.length>=n.length&&t.endsWith(a)&&En(o,n)===1&&n.lastIndexOf(`*`)===i&&(o=n,s=t.slice(i,t.length-a.length))}}if(o){let n=Cn(e,a[o],s,o,r,!0,!1,t.endsWith(`/`),i);if(n==null)throw yn(t,e,r);return n}throw yn(t,e,r)}function En(e,t){let n=e.indexOf(`*`),r=t.indexOf(`*`),i=n===-1?e.length:n+1,a=r===-1?t.length:r+1;return i>a?-1:a>i||n===-1?1:r===-1||e.length>t.length?-1:t.length>e.length?1:0}function Dn(e,t,n){if(e===`#`||e.startsWith(`#/`)||e.endsWith(`/`))throw new Zt(e,`is not a valid internal imports specifier name`,(0,xt.fileURLToPath)(t));let r,i=Ut(t);if(i.exists){r=(0,xt.pathToFileURL)(i.pjsonPath);let a=i.imports;if(a)if(on.call(a,e)&&!e.includes(`*`)){let i=Cn(r,a[e],``,e,t,!1,!0,!1,n);if(i!=null)return i}else{let i=``,o=``,s=Object.getOwnPropertyNames(a),c=-1;for(;++c<s.length;){let t=s[c],n=t.indexOf(`*`);if(n!==-1&&e.startsWith(t.slice(0,-1))){let r=t.slice(n+1);e.length>=t.length&&e.endsWith(r)&&En(i,t)===1&&t.lastIndexOf(`*`)===n&&(i=t,o=e.slice(n,e.length-r.length))}}if(i){let e=Cn(r,a[i],o,i,t,!0,!0,!1,n);if(e!=null)return e}}}throw function(e,t,n){return new tn(e,t&&(0,xt.fileURLToPath)(new xt.URL(`.`,t)),(0,xt.fileURLToPath)(n))}(e,r,t)}function On(e,t,n){if($e.builtinModules.includes(e))return new xt.URL(`node:`+e);let{packageName:r,packageSubpath:i,isScoped:a}=function(e,t){let n=e.indexOf(`/`),r=!0,i=!1;e[0]===`@`&&(i=!0,n===-1||e.length===0?r=!1:n=e.indexOf(`/`,n+1));let a=n===-1?e:e.slice(0,n);if(ln.exec(a)!==null&&(r=!1),!r)throw new Zt(e,`is not a valid package name`,(0,xt.fileURLToPath)(t));return{packageName:a,packageSubpath:`.`+(n===-1?``:e.slice(n)),isScoped:i}}(e,t),o=Ut(t);if(o.exists){let e=(0,xt.pathToFileURL)(o.pjsonPath);if(o.name===r&&o.exports!==void 0&&o.exports!==null)return Tn(e,i,o,t,n)}let s,c=new xt.URL(`./node_modules/`+r+`/package.json`,t),l=(0,xt.fileURLToPath)(c);do{let o=gn(l.slice(0,-13));if(!o||!o.isDirectory()){s=l,c=new xt.URL((a?`../../../../node_modules/`:`../../../node_modules/`)+r+`/package.json`,c),l=(0,xt.fileURLToPath)(c);continue}let u=Ht(l,{base:t,specifier:e});return u.exports!==void 0&&u.exports!==null?Tn(c,i,u,t,n):i===`.`?vn(c,u,t):new xt.URL(i,c)}while(l.length!==s.length);throw new en(r,(0,xt.fileURLToPath)(t),!1)}function kn(e,t,n,r){let i=t.protocol,a=i===`data:`||i===`http:`||i===`https:`,o;if(function(e){return e!==``&&(e[0]===`/`||function(e){return e[0]===`.`&&(e.length===1||e[1]===`/`||e[1]===`.`&&(e.length===2||e[2]===`/`))}(e))}(e))try{o=new xt.URL(e,t)}catch(n){let r=new an(e,t);throw r.cause=n,r}else if(i===`file:`&&e[0]===`#`)o=Dn(e,t,n);else try{o=new xt.URL(e)}catch(r){if(a&&!$e.builtinModules.includes(e)){let n=new an(e,t);throw n.cause=r,n}o=On(e,t,n)}return St(o!==void 0,`expected to be defined`),o.protocol===`file:`?function(e,t){if(dn.exec(e.pathname)!==null)throw new Zt(e.pathname,`must not include encoded "/" or "\\" characters`,(0,xt.fileURLToPath)(t));let n;try{n=(0,xt.fileURLToPath)(e)}catch(n){let r=n;throw Object.defineProperty(r,`input`,{value:String(e)}),Object.defineProperty(r,`module`,{value:String(t)}),r}let r=gn(n.endsWith(`/`)?n.slice(-1):n);if(r&&r.isDirectory()){let r=new rn(n,(0,xt.fileURLToPath)(t));throw r.url=String(e),r}if(!r||!r.isFile()){let r=new en(n||e.pathname,t&&(0,xt.fileURLToPath)(t),!0);throw r.url=String(e),r}{let t=(0,et.realpathSync)(n),{search:r,hash:i}=e;(e=(0,xt.pathToFileURL)(t+(n.endsWith(wt.sep)?`/`:``))).search=r,e.hash=i}return e}(o,t):o}function An(e){return typeof e!=`string`||e.startsWith(`file://`)?Ot((0,xt.fileURLToPath)(e)):Ot(e)}function jn(e){return(0,xt.pathToFileURL)(An(e)).toString()}let Mn=new Set([`node`,`import`]),Nn=[`.mjs`,`.cjs`,`.js`,`.json`],Pn=new Set([`ERR_MODULE_NOT_FOUND`,`ERR_UNSUPPORTED_DIR_IMPORT`,`MODULE_NOT_FOUND`,`ERR_PACKAGE_PATH_NOT_EXPORTED`]);function Fn(e,t,n){try{return kn(e,t,n)}catch(e){if(!Pn.has(e?.code))throw e}}function In(e,t={}){if(typeof e!=`string`){if(!(e instanceof URL))throw TypeError("input must be a `string` or `URL`");e=An(e)}if(/(?:node|data|http|https):/.test(e))return e;if(Dt.has(e))return`node:`+e;if(e.startsWith(`file://`)&&(e=An(e)),_t(e))try{if((0,et.statSync)(e).isFile())return jn(e)}catch(e){if(e?.code!==`ENOENT`)throw e}let n=t.conditions?new Set(t.conditions):Mn,r=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(e=>new URL(function(e){return typeof e!=`string`&&(e=e.toString()),/(?:node|data|http|https|file):/.test(e)?e:Dt.has(e)?`node:`+e:`file://`+encodeURI(Ot(e))}(e.toString())));r.length===0&&r.push(new URL(jn(process.cwd())));let i=[...r];for(let e of r)e.protocol===`file:`&&i.push(new URL(`./`,e),new URL(at(e.pathname,`_index.js`),e),new URL(`node_modules`,e));let a;for(let r of i){if(a=Fn(e,r,n),a)break;for(let i of[``,`/index`]){for(let o of t.extensions||Nn)if(a=Fn(at(e,i)+o,r,n),a)break;if(a)break}if(a)break}if(!a){let t=Error(`Cannot find module ${e} imported from ${i.join(`, `)}`);throw t.code=`ERR_MODULE_NOT_FOUND`,t}return jn(a)}function Ln(e,t){return In(e,t)}function Rn(e,t){return An(Ln(e,t))}let zn=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,Bn=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function Vn(e,t={}){return t.stripComments&&(e=e.replace(Bn,``)),zn.test(e)}function Hn(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let Un=new Set([`/`,`\\`,void 0]),Wn=Symbol.for(`pathe:normalizedAlias`),Gn=/[/\\]/;function Kn(e){if(e[Wn])return e;let t=Object.fromEntries(Object.entries(e).sort(([e],[t])=>function(e,t){return t.split(`/`).length-e.split(`/`).length}(e,t)));for(let e in t)for(let n in t)n===e||e.startsWith(n)||t[e]?.startsWith(n)&&Un.has(t[e][n.length])&&(t[e]=t[n]+t[e].slice(n.length));return Object.defineProperty(t,Wn,{value:!0,enumerable:!1}),t}function qn(e=`/`){let t=e[e.length-1];return t===`/`||t===`\\`}var Jn={rE:`2.6.1`};let Yn=h(`node:crypto`);var Xn=r.n(Yn);let Zn=Object.create(null),Qn=e=>globalThis.process?.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Zn:globalThis),$n=new Proxy(Zn,{get:(e,t)=>Qn()[t]??Zn[t],has:(e,t)=>t in Qn()||t in Zn,set:(e,t,n)=>(Qn(!0)[t]=n,!0),deleteProperty(e,t){return t?(delete Qn(!0)[t],!0):!1},ownKeys(){let e=Qn(!0);return Object.keys(e)}}),er=typeof process<`u`&&process.env&&process.env.NODE_ENV||``,tr=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]],nr=function(){if(globalThis.process?.env)for(let e of tr){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL===`/bin/jsh`&&globalThis.process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}();nr.name;function rr(e){return!!e&&e!==`false`}let ir=globalThis.process?.platform||``;rr($n.CI)||nr.ci;let ar=rr(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);$n.DEBUG,er===`test`||$n.TEST;let or=($n.MINIMAL,/^win/i.test(ir)),sr=(/^linux/i.test(ir),/^darwin/i.test(ir),!rr($n.NO_COLOR)&&(rr($n.FORCE_COLOR)||(ar||or)&&$n.TERM),(globalThis.process?.versions?.node||``).replace(/^v/,``)||null),cr=(Number(sr?.split(`.`)[0]),globalThis.process||Object.create(null)),lr={versions:{}},ur=(new Proxy(cr,{get:(e,t)=>t===`env`?$n:t in e?e[t]:t in lr?lr[t]:void 0}),globalThis.process?.release?.name===`node`),dr=!!globalThis.Bun||!!globalThis.process?.versions?.bun,fr=!!globalThis.Deno,pr=!!globalThis.fastly,mr=[[!!globalThis.Netlify,`netlify`],[!!globalThis.EdgeRuntime,`edge-light`],[globalThis.navigator?.userAgent===`Cloudflare-Workers`,`workerd`],[pr,`fastly`],[fr,`deno`],[dr,`bun`],[ur,`node`]];(function(){let e=mr.find(e=>e[0]);e&&e[1]})();let hr=h(`node:tty`)?.WriteStream?.prototype?.hasColors?.()??!1,gr=(e,t)=>{if(!hr)return e=>e;let n=`[${e}m`,r=`[${t}m`;return e=>{let i=e+``,a=i.indexOf(r);if(a===-1)return n+i+r;let o=n,s=0,c=(t===22?r:``)+n;for(;a!==-1;)o+=i.slice(s,a)+c,s=a+r.length,a=i.indexOf(r,s);return o+=i.slice(s)+r,o}},_r=(gr(0,0),gr(1,22),gr(2,22),gr(3,23),gr(4,24),gr(53,55),gr(7,27),gr(8,28),gr(9,29),gr(30,39),gr(31,39)),vr=gr(32,39),yr=gr(33,39),br=gr(34,39),xr=(gr(35,39),gr(36,39)),Sr=(gr(37,39),gr(90,39));gr(40,49),gr(41,49),gr(42,49),gr(43,49),gr(44,49),gr(45,49),gr(46,49),gr(47,49),gr(100,49),gr(91,39),gr(92,39),gr(93,39),gr(94,39),gr(95,39),gr(96,39),gr(97,39),gr(101,49),gr(102,49),gr(103,49),gr(104,49),gr(105,49),gr(106,49),gr(107,49);function Cr(e){if(typeof e!=`string`||e.startsWith(`file://`))return!1;try{return(0,et.lstatSync)(e).isDirectory()}catch{return!1}}function wr(e,t=8){return(function(){if(Or!==void 0)return Or;try{return Or=!!Xn().getFips?.(),Or}catch{return Or=!1,Or}}()?Xn().createHash(`sha256`):Xn().createHash(`md5`)).update(e).digest(`hex`).slice(0,t)}let Tr={true:vr(`true`),false:yr(`false`),"[rebuild]":yr(`[rebuild]`),"[esm]":br(`[esm]`),"[cjs]":vr(`[cjs]`),"[import]":br(`[import]`),"[require]":vr(`[require]`),"[native]":xr(`[native]`),"[transpile]":yr(`[transpile]`),"[fallback]":_r(`[fallback]`),"[unknown]":_r(`[unknown]`),"[hit]":vr(`[hit]`),"[miss]":yr(`[miss]`),"[json]":vr(`[json]`),"[data]":vr(`[data]`)};function Er(e,...t){if(!e.opts.debug)return;let n=process.cwd();console.log(Sr([`[jiti]`,...t.map(e=>e in Tr?Tr[e]:typeof e==`string`?e.replace(n,`.`):JSON.stringify(e))].join(` `)))}function Dr(e,t){return e.opts.interopDefault?function(e){let t=typeof e;if(e===null||t!==`object`&&t!==`function`)return e;let n=e.default,r=typeof n,i=n==null,a=r===`object`||r===`function`;return i&&e instanceof Promise?e:new Proxy(e,{get(t,r,o){if(r===`__esModule`)return!0;if(r===`default`)return i?e:typeof n?.default==`function`&&e.__esModule?n.default:n;if(Reflect.has(t,r))return Reflect.get(t,r,o);if(a&&!(n instanceof Promise)){let e=Reflect.get(n,r,o);return typeof e==`function`&&(e=e.bind(n)),e}},apply:(e,t,i)=>typeof e==`function`?Reflect.apply(e,t,i):r===`function`?Reflect.apply(n,t,i):void 0})}(t):t}let Or;function kr(e,t){return!!Ar(e,t)}function Ar(e,t){let n=process.env[e];if(!(e in process.env))return t;try{return JSON.parse(n)}catch{return t}}let jr=/\.(c|m)?j(sx?)$/,Mr=/\.(c|m)?t(sx?)$/;function Nr(e,t,n){let r,i;if(e.isNativeRe.test(t))return t;e.alias&&(t=function(e,t){let n=st(e);t=Kn(t);for(let[e,r]of Object.entries(t))if(n.startsWith(e)&&qn(n[(qn(e)?e.slice(0,-1):e).length]))return pt(r,n.slice(e.length));return n}(t,e.alias));let a=n?.parentURL||e.url;Cr(a)&&(a=pt(a,`_index.js`));let o=(n?.async?[n?.conditions,[`node`,`import`],[`node`,`require`]]:[n?.conditions,[`node`,`require`],[`node`,`import`]]).filter(Boolean);for(let n of o){try{r=Rn(t,{url:a,conditions:n,extensions:e.opts.extensions})}catch(e){i=e}if(r)return r}try{return e.nativeRequire.resolve(t,{paths:n.paths})}catch(e){i=e}for(let i of e.additionalExts)if(r=Pr(e,t+i,a,n)||Pr(e,t+`/index`+i,a,n),r||(Mr.test(e.filename)||Mr.test(e.parentModule?.filename||``)||jr.test(t))&&(r=Pr(e,t.replace(jr,`.$1t$2`),a,n),r))return r;if(!n?.try)throw i}function Pr(e,t,n,r){try{return e.nativeRequire.resolve(t,{...r,paths:[yt(An(n)),...r?.paths||[]]})}catch{}}let Fr=h(`node:perf_hooks`),Ir=h(`node:vm`);var Lr=r.n(Ir);function Rr(e,t,n){let r=e.parentCache||{};if(t.startsWith(`node:`))return zr(e,t,n.async);if(t.startsWith(`file:`))t=(0,xt.fileURLToPath)(t);else if(t.startsWith(`data:`)){if(!n.async)throw Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return Er(e,`[native]`,`[data]`,`[import]`,t),zr(e,t,!0)}if($e.builtinModules.includes(t)||t===`.pnp.js`)return zr(e,t,n.async);if(e.opts.tryNative&&!e.opts.transformOptions)try{if(!(t=Nr(e,t,n))&&n.try)return;if(Er(e,`[try-native]`,n.async&&e.nativeImport?`[import]`:`[require]`,t),n.async&&e.nativeImport)return e.nativeImport(t).then(n=>(!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)));{let n=e.nativeRequire(t);return!1===e.opts.moduleCache&&delete e.nativeRequire.cache[t],Dr(e,n)}}catch(n){Er(e,`[try-native] Using fallback for ${t} because of an error:`,n)}let i=Nr(e,t,n);if(!i&&n.try)return;let a=vt(i);if(a===`.json`){Er(e,`[json]`,i);let t=e.nativeRequire(i);return t&&!(`default`in t)&&Object.defineProperty(t,`default`,{value:t,enumerable:!1}),t}if(a&&!e.opts.extensions.includes(a))return Er(e,`[native]`,`[unknown]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(e.isNativeRe.test(i))return Er(e,`[native]`,n.async?`[import]`:`[require]`,i),zr(e,i,n.async);if(r[i])return Dr(e,r[i]?.exports);if(e.opts.moduleCache){let t=e.nativeRequire.cache[i];if(t?.loaded)return Dr(e,t.exports)}return Ur(e,(0,et.readFileSync)(i,`utf8`),{id:t,filename:i,ext:a,cache:r,async:n.async})}function zr(e,t,n){return n&&e.nativeImport?e.nativeImport(function(e){return or&&_t(e)?jn(e):e}(t)).then(t=>Dr(e,t)):Dr(e,e.nativeRequire(t))}function Br(e,t,n){if(!e.opts.fsCache||!t.filename)return n();let r=` /* v9-${wr(t.source,16)} */\n`,i=`${bt(yt(t.filename))}-${function(e){let t=e.split(Gn).pop();if(!t)return;let n=t.lastIndexOf(`.`);return n<=0?t:t.slice(0,n)}(t.filename)}`+(e.opts.sourceMaps?`+map`:``)+(t.interopDefault?`.i`:``)+`.${wr(t.filename)}`+(t.async?`.mjs`:`.cjs`);t.jsx&&t.filename.endsWith(`x`)&&(i+=`x`);let a=e.opts.fsCache,o=pt(a,i);if(!e.opts.rebuildFsCache&&(0,et.existsSync)(o)){let n=(0,et.readFileSync)(o,`utf8`);if(n.endsWith(r))return Er(e,`[cache]`,`[hit]`,t.filename,`~>`,o),n}Er(e,`[cache]`,`[miss]`,t.filename);let s=n();return s.includes(`__JITI_ERROR__`)||((0,et.writeFileSync)(o,s+r,`utf8`),Er(e,`[cache]`,`[store]`,t.filename,`~>`,o)),s}function Vr(t){if(!0===t.opts.fsCache&&(t.opts.fsCache=function(t){let n=t.filename&&ht(t.filename,`../node_modules`);if(n&&(0,et.existsSync)(n))return pt(n,`.cache/jiti`);let r=(0,e.tmpdir)();if(process.env.TMPDIR&&r===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let t=process.env.TMPDIR;delete process.env.TMPDIR,r=(0,e.tmpdir)(),process.env.TMPDIR=t}return pt(r,`jiti`)}(t)),t.opts.fsCache)try{if((0,et.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,et.accessSync)(e,et.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error(`directory is not writable!`)}catch(e){Er(t,`Error creating cache directory at `,t.opts.fsCache,e),t.opts.fsCache=!1}}function Hr(e,t){let n=Br(e,t,()=>{let n=e.opts.transform({...e.opts.transformOptions,babel:{...e.opts.sourceMaps?{sourceFileName:t.filename,sourceMaps:`inline`}:{},...e.opts.transformOptions?.babel},interopDefault:e.opts.interopDefault,...t});return n.error&&e.opts.debug&&Er(e,n.error),n.code});return n.startsWith(`#!`)&&(n=`// `+n),n}function Ur(e,t,n={}){let r=n.id||(n.filename?bt(n.filename):`_jitiEval.${n.ext||(n.async?`mjs`:`js`)}`),i=n.filename||Nr(e,r,{async:n.async}),a=n.ext||vt(i),o=n.cache||e.parentCache||{},s=/\.[cm]?tsx?$/.test(a),c=a===`.mjs`||a===`.js`&&function(e){for(;e&&e!==`.`&&e!==`/`;){e=pt(e,`..`);try{let t=(0,et.readFileSync)(pt(e,`package.json`),`utf8`);try{return JSON.parse(t)}catch{}break}catch{}}}(i)?.type===`module`,l=a===`.cjs`,u=n.forceTranspile??(!l&&!(c&&n.async)&&(s||c||e.isTransformRe.test(i)||Vn(t))),d=Fr.performance.now();if(u){t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx});let r=Math.round(1e3*(Fr.performance.now()-d))/1e3;Er(e,`[transpile]`,n.async?`[esm]`:`[cjs]`,i,`(${r}ms)`)}else{if(Er(e,`[native]`,n.async?`[import]`:`[require]`,i),n.async)return Promise.resolve(zr(e,i,n.async)).catch(r=>(Er(e,`Native import error:`,r),Er(e,`[fallback]`,i),Ur(e,t,{...n,forceTranspile:!0})));try{return zr(e,i,n.async)}catch(r){Er(e,`Native require error:`,r),Er(e,`[fallback]`,i),t=Hr(e,{filename:i,source:t,ts:s,async:n.async??!1,jsx:e.opts.jsx})}}let f=new $e.Module(i);f.filename=i,e.parentModule&&(f.parent=e.parentModule,Array.isArray(e.parentModule.children)&&!e.parentModule.children.includes(f)&&e.parentModule.children.push(f));let p=Gr(i,e.opts,{parentModule:f,parentCache:o,nativeImport:e.nativeImport,onError:e.onError,createRequire:e.createRequire},!0),m;f.require=p,f.path=yt(i),f.paths=$e.Module._nodeModulePaths(f.path),o[i]=f,e.opts.moduleCache&&(e.nativeRequire.cache[i]=f);let h=function(e,t){return`(${t?.async?`async `:``}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e}\n});`}(t,{async:n.async});try{m=Lr().runInThisContext(h,{filename:i,lineOffset:0,displayErrors:!1})}catch(t){t.name===`SyntaxError`&&n.async&&e.nativeImport?(Er(e,`[esm]`,`[import]`,`[fallback]`,i),m=function(e,t){let n=`data:text/javascript;base64,${Buffer.from(`export default ${e}`).toString(`base64`)}`;return(...e)=>t(n).then(t=>t.default(...e))}(h,e.nativeImport)):(e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t))}let g;try{g=m(f.exports,f.require,f,f.filename,yt(f.filename),p.import,p.esmResolve)}catch(t){e.opts.moduleCache&&delete e.nativeRequire.cache[i],e.onError(t)}function _(){if(f.exports&&f.exports.__JITI_ERROR__){let{filename:t,line:n,column:r,code:i,message:a}=f.exports.__JITI_ERROR__,o=Error(`${i}: ${a} \n ${`${t}:${n}:${r}`}`);Error.captureStackTrace(o,Rr),e.onError(o)}return f.loaded=!0,Dr(e,f.exports)}return n.async?Promise.resolve(g).then(_):_()}let Wr=(0,e.platform)()===`win32`;function Gr(e,t={},n,r=!1){let i=r?t:function(e){let t={fsCache:kr(`JITI_FS_CACHE`,kr(`JITI_CACHE`,!0)),rebuildFsCache:kr(`JITI_REBUILD_FS_CACHE`,!1),moduleCache:kr(`JITI_MODULE_CACHE`,kr(`JITI_REQUIRE_CACHE`,!0)),debug:kr(`JITI_DEBUG`,!1),sourceMaps:kr(`JITI_SOURCE_MAPS`,!1),interopDefault:kr(`JITI_INTEROP_DEFAULT`,!0),extensions:Ar(`JITI_EXTENSIONS`,[`.js`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`,`.mtsx`,`.ctsx`]),alias:Ar(`JITI_ALIAS`,{}),nativeModules:Ar(`JITI_NATIVE_MODULES`,[]),transformModules:Ar(`JITI_TRANSFORM_MODULES`,[]),tryNative:Ar(`JITI_TRY_NATIVE`,`Bun`in globalThis),jsx:kr(`JITI_JSX`,!1)};t.jsx&&t.extensions.push(`.jsx`,`.tsx`);let n={};return e.cache!==void 0&&(n.fsCache=e.cache),e.requireCache!==void 0&&(n.moduleCache=e.requireCache),{...t,...n,...e}}(t),a=i.alias&&Object.keys(i.alias).length>0?Kn(i.alias||{}):void 0,o=[`typescript`,`jiti`,...i.nativeModules||[]],s=RegExp(`node_modules/(${o.map(e=>Hn(e)).join(`|`)})/`),c=[...i.transformModules||[]],l=RegExp(`node_modules/(${c.map(e=>Hn(e)).join(`|`)})/`);e||=process.cwd(),!r&&Cr(e)&&(e=pt(e,`_index.js`));let u=jn(e),d=[...i.extensions].filter(e=>e!==`.js`),f=n.createRequire(Wr?e.replace(/\//g,`\\`):e),p={filename:e,url:u,opts:i,alias:a,nativeModules:o,transformModules:c,isNativeRe:s,isTransformRe:l,additionalExts:d,nativeRequire:f,onError:n.onError,parentModule:n.parentModule,parentCache:n.parentCache,nativeImport:n.nativeImport,createRequire:n.createRequire};return r||Er(p,`[init]`,...[[`version:`,Jn.rE],[`module-cache:`,i.moduleCache],[`fs-cache:`,i.fsCache],[`rebuild-fs-cache:`,i.rebuildFsCache],[`interop-defaults:`,i.interopDefault]].flat()),r||Vr(p),Object.assign(function(e){return Rr(p,e,{async:!1})},{cache:i.moduleCache?f.cache:Object.create(null),extensions:f.extensions,main:f.main,options:i,resolve:Object.assign(function(e){return Nr(p,e,{async:!1})},{paths:f.resolve.paths}),transform:e=>Hr(p,e),evalModule:(e,t)=>Ur(p,e,t),async import(e,t){let n=await Rr(p,e,{...t,async:!0});return t?.default?n?.default??n:n},esmResolve(e,t){typeof t==`string`&&(t={parentURL:t});let n=Nr(p,e,{parentURL:u,...t,async:!0});return!n||typeof n!=`string`||n.startsWith(`file://`)?n:jn(n)}})}})(),t.exports=i.default})()})),Jc=f({createJiti:()=>Zc,default:()=>tl});function Yc(e){throw e}function Xc(...t){return el||=e(import.meta.url)(`../dist/babel.cjs`),el(...t)}function Zc(t,n={}){return n.transform||(n={...n,transform:Xc}),(0,Qc.default)(t,n,{onError:Yc,nativeImport:$c,createRequire:e})}var Qc,$c,el,tl,nl=u((()=>{Qc=m(qc(),1),$c=e=>import(e),tl=Zc})),rl=d(((e,t)=>{t.exports={name:`jiti`,version:`2.6.1`,description:`Runtime typescript and ESM support for Node.js`,repository:`unjs/jiti`,license:`MIT`,type:`module`,exports:{".":{import:{types:`./lib/jiti.d.mts`,default:`./lib/jiti.mjs`},require:{types:`./lib/jiti.d.cts`,default:`./lib/jiti.cjs`}},"./register":{types:`./lib/jiti-register.d.mts`,import:`./lib/jiti-register.mjs`},"./native":{types:`./lib/jiti.d.mts`,import:`./lib/jiti-native.mjs`},"./package.json":`./package.json`},main:`./lib/jiti.cjs`,module:`./lib/jiti.mjs`,types:`./lib/jiti.d.cts`,typesVersions:{"*":{register:[`./lib/jiti-register.d.mts`],native:[`./lib/jiti.d.mts`]}},bin:{jiti:`./lib/jiti-cli.mjs`},files:[`lib`,`dist`,`register.cjs`],scripts:{bench:`node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs`,build:`pnpm clean && pnpm rspack`,clean:`rm -rf dist`,dev:`pnpm clean && pnpm rspack --watch`,jiti:`JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs`,lint:`eslint . && prettier -c src lib test stubs`,"lint:fix":`eslint --fix . && prettier -w src lib test stubs`,prepack:`pnpm build`,release:`pnpm build && pnpm test && changelogen --release --push --publish`,test:`pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native`,"test:bun":`bun --bun test test/bun`,"test:native":`pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno`,"test:native:bun":`bun --bun test test/native/bun.test.ts`,"test:native:deno":`deno test -A --no-check test/native/deno.test.ts`,"test:native:node":`node --test --experimental-strip-types test/native/node.test.ts`,"test:node-register":`JITI_JSX=1 node --test test/node-register.test.mjs`,"test:types":`tsc --noEmit`},devDependencies:{"@babel/core":`^7.28.4`,"@babel/helper-module-imports":`^7.27.1`,"@babel/helper-module-transforms":`^7.28.3`,"@babel/helper-plugin-utils":`^7.27.1`,"@babel/helper-simple-access":`^7.27.1`,"@babel/plugin-proposal-decorators":`^7.28.0`,"@babel/plugin-syntax-class-properties":`^7.12.13`,"@babel/plugin-syntax-import-assertions":`^7.27.1`,"@babel/plugin-syntax-jsx":`^7.27.1`,"@babel/plugin-transform-export-namespace-from":`^7.27.1`,"@babel/plugin-transform-react-jsx":`^7.27.1`,"@babel/plugin-transform-typescript":`^7.28.0`,"@babel/preset-typescript":`^7.27.1`,"@babel/template":`^7.27.2`,"@babel/traverse":`^7.28.4`,"@babel/types":`^7.28.4`,"@rspack/cli":`^1.5.8`,"@rspack/core":`^1.5.8`,"@types/babel__core":`^7.20.5`,"@types/babel__helper-module-imports":`^7.18.3`,"@types/babel__helper-plugin-utils":`^7.10.3`,"@types/babel__template":`^7.4.4`,"@types/babel__traverse":`^7.28.0`,"@types/node":`^24.6.1`,"@vitest/coverage-v8":`^3.2.4`,acorn:`^8.15.0`,"babel-plugin-parameter-decorator":`^1.0.16`,changelogen:`^0.6.2`,config:`^4.1.1`,consola:`^3.4.2`,defu:`^6.1.4`,destr:`^2.0.5`,"escape-string-regexp":`^5.0.0`,eslint:`^9.36.0`,"eslint-config-unjs":`^0.5.0`,"estree-walker":`^3.0.3`,etag:`^1.8.1`,"fast-glob":`^3.3.3`,"is-installed-globally":`^1.0.0`,mime:`^4.1.0`,mlly:`^1.8.0`,"moment-timezone":`^0.6.0`,"nano-jsx":`^0.2.0`,pathe:`^2.0.3`,"pkg-types":`^2.3.0`,preact:`^10.27.2`,"preact-render-to-string":`^6.6.2`,prettier:`^3.6.2`,react:`^19.1.1`,"react-dom":`^19.1.1`,"reflect-metadata":`^0.2.2`,"solid-js":`^1.9.9`,"std-env":`^3.9.0`,"terser-webpack-plugin":`^5.3.14`,tinyexec:`^1.0.1`,"ts-loader":`^9.5.4`,typescript:`^5.9.3`,vitest:`^3.2.4`,vue:`^3.5.22`,yoctocolors:`^2.1.2`,zod:`^4.1.11`},packageManager:`pnpm@10.17.1`}})),il=d(((e,t)=>{V();let n=h(`node:path`),r=h(`node:fs/promises`),i=Kc(),{pathToFileURL:a}=h(`node:url`),o=S()(`eslint:config-loader`),{FlatConfigArray:s}=hc(),{WarningService:c}=Sc(),l=[`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`],u=new Map;function d(e){if(!e||typeof e!=`string`)throw Error(`'filePath' must be a non-empty string`)}function f(e,t){let{configFile:n}=t;if(!e&&n!==!1){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}}function p(e){let t=n.extname(e);return/^\.[mc]?ts$/u.test(t)}function m(){return!!globalThis.Bun}function g(){return!!globalThis.Deno}function _(){return[`strip`,`transform`].includes(process.features.typescript)}async function v(e,t,n){let{createJiti:r,version:i}=await x.loadJiti().catch(()=>{throw Error(`The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.`)});if(typeof r!=`function`)throw Error(`You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features.`);let a={moduleCache:!1};i.startsWith(`2.1.`)&&(a.interopDefault=!1);let o=await r(B,a).import(t.href);return u.set(e,n),o?.default??o}async function y(e,t,n){let r=await import(t.href);return u.set(e,n),r.default}async function b(e,t){o(`Loading config from ${e}`);let n=a(e);o(`Config file URL is ${n}`);let i=(await r.stat(e)).mtime.getTime();n.searchParams.append(`mtime`,i),u.get(e)!==i&&delete h.cache[e];let s=p(e),c=m(),l=g();if(s){if(t){if(_())return await y(e,n,i);throw`typescript`in process.features?Error(`The unstable_native_nodejs_ts_config flag is enabled, but native TypeScript support is not enabled in the current Node.js process. You need to either enable native TypeScript support by passing --experimental-strip-types or remove the unstable_native_nodejs_ts_config flag.`):Error(`The unstable_native_nodejs_ts_config flag is not supported in older versions of Node.js.`)}if(!l&&!c)return await v(e,n,i)}return await y(e,n,i)}var x=class e{#e=new Map;#t=new Map;#n;constructor(e){this.#n=e.warningService?e:{...e,warningService:new c}}async#r(t){if(this.#t.has(t))return this.#t.get(t);let n=e.locateConfigFileToUse({useConfigFile:this.#n.configFile,cwd:this.#n.cwd,fromDirectory:t});this.#t.set(t,n);let r=await n;return this.#t.set(t,r),r}async#i(t,n){if(this.#e.has(t))return this.#e.get(t);let r=e.calculateConfigArray(t,n,this.#n);this.#e.set(t,r);let i=await r;return this.#e.set(t,i),i}async findConfigFileForPath(e){d(e);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r}=await this.#r(t);return r}async loadConfigArrayForFile(e){return d(e),o(`Calculating config for file ${e}`),f(await this.findConfigFileForPath(e),this.#n),this.loadConfigArrayForDirectory(e)}async loadConfigArrayForDirectory(e){d(e),o(`Calculating config for directory ${e}`);let t=n.resolve(this.#n.cwd,n.dirname(e)),{configFilePath:r,basePath:i}=await this.#r(t);return o(`Using config file ${r} and base path ${i}`),this.#i(r,i)}getCachedConfigArrayForFile(e){return d(e),o(`Looking up cached config for ${e}`),this.getCachedConfigArrayForPath(n.dirname(e))}getCachedConfigArrayForPath(e){d(e),o(`Looking up cached config for ${e}`);let t=n.resolve(this.#n.cwd,e);if(!this.#t.has(t))throw Error(`Could not find config file for ${e}`);let r=this.#t.get(t);if(typeof r.then==`function`)throw Error(`Config file path for ${e} has not yet been calculated or an error occurred during the calculation`);let{configFilePath:i}=r,a=this.#e.get(i);if(!a||typeof a.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return a}static async loadJiti(){let{createJiti:e}=await Promise.resolve().then(()=>(nl(),Jc));return{createJiti:e,version:rl().version}}static async locateConfigFileToUse({useConfigFile:e,cwd:t,fromDirectory:r=t}){let a,s=t;return typeof e==`string`?(o(`Override config file path is ${e}`),a=n.resolve(t,e),s=t):e!==!1&&(o(`Searching for eslint.config.js`),a=await i(l,{cwd:r}),a&&(s=n.dirname(a))),{configFilePath:a,basePath:s}}static async calculateConfigArray(e,t,n){let{cwd:r,baseConfig:i,ignoreEnabled:a,ignorePatterns:c,overrideConfig:l,hasUnstableNativeNodeJsTSConfigFlag:u=!1,defaultConfigs:d=[],warningService:f}=n;o(`Calculating config array from config file ${e} and base path ${t}`);let p=new s(i||[],{basePath:t,shouldIgnore:a});if(e){o(`Loading config file ${e}`);let t=await b(e,u),n=t===void 0;o(`Config file ${e} is ${n?`empty`:`not empty`}`),n||(Array.isArray(t)?t.length===0?(o(`Config file ${e} is an empty array`),n=!0):p.push(...t):typeof t==`object`&&t&&Object.keys(t).length===0?(o(`Config file ${e} is an empty object`),n=!0):p.push(t)),n&&f.emitEmptyConfigWarning(e)}return p.push(...d),c&&c.length>0&&p.push({basePath:r,ignores:c}),l&&(Array.isArray(l)?p.push(...l):p.push(l)),await p.normalize(),p}};t.exports={ConfigLoader:x,LegacyConfigLoader:class extends x{#e;#t;#n;constructor(e){let t=e.warningService?e:{...e,warningService:new c};super(t),this.#e=t}#r(){return this.#t||=x.locateConfigFileToUse({useConfigFile:this.#e.configFile,cwd:this.#e.cwd}),this.#t}async#i(e,t){return this.#n?this.#n:(this.#n=x.calculateConfigArray(e,t,this.#e),this.#n=await this.#n,this.#n)}async findConfigFileForPath(e){d(e);let{configFilePath:t}=await this.#r();return t}async loadConfigArrayForDirectory(e){d(e),o(`[Legacy]: Calculating config for ${e}`);let{configFilePath:t,basePath:n}=await this.#r();return o(`[Legacy]: Using config file ${t} and base path ${n}`),this.#i(t,n)}getCachedConfigArrayForPath(e){if(d(e),o(`[Legacy]: Looking up cached config for ${e}`),!this.#n)throw Error(`Could not find config file for ${e}`);if(typeof this.#n.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return this.#n}}}}));function al(e){if(!e||!(e instanceof URL)&&typeof e!=`string`)throw TypeError(`Path must be a non-empty string or URL.`)}function ol(e){if(typeof e!=`string`&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw TypeError(`File contents must be a string, ArrayBuffer, or ArrayBuffer view.`)}function sl(e){if(e instanceof Uint8Array)return e;if(typeof e==`string`)return ll.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw TypeError(`Invalid contents type. Expected string or ArrayBuffer.`)}var cl,ll,ul,dl,fl,pl,ml,hl=u((()=>{cl=new TextDecoder,ll=new TextEncoder,ul=class extends Error{constructor(e){super(`Method "${e}" does not exist on impl.`)}},dl=class extends Error{constructor(e){super(`Method "${e}" is not supported on this impl.`)}},fl=class extends Error{constructor(){super(`Implementation already set.`)}},pl=class{type;data;timestamp=Date.now();constructor(e,t){this.type=e,this.data=t}},ml=class{#e;#t;#n=new Map;constructor({impl:e}){this.#e=e,this.#t=e}#r(e,...t){for(let n of this.#n.values())n.push(new pl(`call`,{methodName:e,args:t}))}logStart(e){if(!e||typeof e!=`string`)throw TypeError(`Log name must be a non-empty string.`);if(this.#n.has(e))throw Error(`Log "${e}" already exists.`);this.#n.set(e,[])}logEnd(e){if(this.#n.has(e)){let t=this.#n.get(e);return this.#n.delete(e),t}throw Error(`Log "${e}" does not exist.`)}isBaseImpl(){return this.#t===this.#e}setImpl(e){if(this.#r(`implSet`,e),this.#t!==this.#e)throw new fl;this.#t=e}resetImpl(){this.#r(`implReset`),this.#t=this.#e}#i(e){if(typeof this.#t[e]!=`function`)throw new ul(e)}#a(e,t){if(typeof this.#t[e]!=`function`)throw new dl(t)}#o(e,...t){return this.#r(e,...t),this.#i(e),this.#t[e](...t)}#s(e,...t){return this.#i(e),this.#t[e](...t)}#c(e,t,...n){return this.#r(t,...n),this.#a(e,t),this.#t[e](...n)}async text(e){al(e);let t=await this.#c(`bytes`,`text`,e);return t?cl.decode(t):void 0}async json(e){al(e);let t=await this.#c(`bytes`,`json`,e);return t?JSON.parse(cl.decode(t)):void 0}async arrayBuffer(e){return al(e),(await this.#c(`bytes`,`arrayBuffer`,e))?.buffer}async bytes(e){return al(e),this.#o(`bytes`,e)}async write(e,t){al(e),ol(t),this.#r(`write`,e,t);let n=sl(t);return this.#s(`write`,e,n)}async append(e,t){al(e),ol(t),this.#r(`append`,e,t);let n=sl(t);return this.#s(`append`,e,n)}async isFile(e){return al(e),this.#o(`isFile`,e)}async isDirectory(e){return al(e),this.#o(`isDirectory`,e)}async createDirectory(e){return al(e),this.#o(`createDirectory`,e)}async delete(e){return al(e),this.#o(`delete`,e)}async deleteAll(e){return al(e),this.#o(`deleteAll`,e)}async*list(e){al(e),yield*await this.#o(`list`,e)}async*walk(e,{directoryFilter:t=()=>!0,entryFilter:n=()=>!0}={}){al(e),this.#r(`walk`,e,{directoryFilter:t,entryFilter:n});let r=async function*(e,{directoryFilter:t,entryFilter:n,parentPath:i=``,depth:a=1}){let o;try{o=await this.#s(`list`,e)}catch(e){if(e.code===`ENOENT`)return;throw e}for await(let s of o){let o={path:s.name,depth:a,...s};i&&(o.path=`${i}/${o.path}`);let c=n(o);if(c.then&&(c=await c),c&&(yield o),s.isDirectory){let i=t(o);if(i.then&&(i=await i),!i)continue;yield*r(e instanceof URL?new URL(s.name,e.href.endsWith(`/`)?e.href:`${e.href}/`):`${e.endsWith(`/`)?e:`${e}/`}${s.name}`,{directoryFilter:t,entryFilter:n,parentPath:o.path,depth:a+1})}}}.bind(this);yield*r(e,{directoryFilter:t,entryFilter:n})}async size(e){return al(e),this.#o(`size`,e)}async lastModified(e){return al(e),this.#o(`lastModified`,e)}async copy(e,t){return al(e),al(t),this.#o(`copy`,e,t)}async copyAll(e,t){return al(e),al(t),this.#o(`copyAll`,e,t)}async move(e,t){return al(e),al(t),this.#o(`move`,e,t)}async moveAll(e,t){return al(e),al(t),this.#o(`moveAll`,e,t)}}})),gl=u((()=>{})),_l=u((()=>{hl(),gl()}));function vl(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function yl(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function bl(e,t){return e.age>t}function xl(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var Sl,Cl,wl,Tl,El,Dl=u((()=>{Sl=6e4,Cl=100,wl=1e3,Tl=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}},El=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=Sl,maxDelay:n=Cl,concurrency:r=wl}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:t,promise:n,resolve:r,reject:i}){let a;try{a=e()}catch(e){return i(Error(`Synchronous error: ${e.message}`,{cause:e})),n}return!a||typeof a.then!=`function`?(i(Error(`Result is not a promise.`)),n):(this.#n++,n.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(a).then(e=>{vl(`Function called successfully without retry.`),r(e)}).catch(n=>{if(!this.#o(n)){i(n);return}let a=new Tl(e,n,r,i,t);vl(`Function failed, queuing for retry with task ${a.id}.`),this.#e.push(a),t?.addEventListener(`abort`,()=>{vl(`Task ${a.id} was aborted due to AbortSignal.`),i(t.reason)}),this.#d()}),n)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:i}=xl();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:i})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){vl(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let t=Math.min(this.pending,e);for(let e=0;e<t;e++)this.#t.shift()?.();vl(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,vl(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},t=this.#e.shift();if(!t){vl(`Queue is empty, exiting.`),this.pending&&e();return}if(bl(t,this.#r)){vl(`Task ${t.id} was abandoned due to timeout.`),t.reject(t.error),e();return}if(!yl(t,this.#i)){vl(`Task ${t.id} is not ready to retry, skipping.`),this.#e.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(e=>{vl(`Task ${t.id} succeeded after ${t.age}ms.`),t.resolve(e)}).catch(e=>{if(!this.#o(e)){vl(`Task ${t.id} failed with non-retryable error: ${e.message}.`),t.reject(e);return}t.lastAttempt=Date.now(),this.#e.push(t),vl(`Task ${t.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),Ol,kl,Al,jl,Ml,Nl=u((()=>{_l(),Dl(),Ol=new Set([`ENFILE`,`EMFILE`]),kl=class{name;isFile;isDirectory;isSymlink;constructor(e){this.name=e.name,this.isFile=e.isFile(),this.isDirectory=e.isDirectory(),this.isSymlink=e.isSymbolicLink()}},Al=class{#e;#t;constructor({fsp:e=r}={}){this.#e=e,this.#t=new El(e=>Ol.has(e.code))}bytes(e){return this.#t.retry(()=>this.#e.readFile(e)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!==`ENOENT`)throw e})}async write(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.writeFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.writeFile(e,i))}throw r})}async append(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.appendFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.appendFile(e,i))}throw r})}isFile(e){return this.#e.stat(e).then(e=>e.isFile()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}isDirectory(e){return this.#e.stat(e).then(e=>e.isDirectory()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async createDirectory(e){await this.#e.mkdir(e,{recursive:!0})}delete(e){return this.#e.rm(e).then(()=>!0).catch(t=>{if(t.code===`ERR_FS_EISDIR`)return this.#e.rmdir(e).then(()=>!0);if(t.code===`ENOENT`)return!1;throw t})}deleteAll(e){return this.#e.rm(e,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async*list(e){let t=await this.#e.readdir(e,{withFileTypes:!0});for(let e of t)yield new kl(e)}size(e){return this.#e.stat(e).then(e=>e.size).catch(e=>{if(e.code!==`ENOENT`)throw e})}lastModified(e){return this.#e.stat(e).then(e=>e.mtime).catch(e=>{if(e.code!==`ENOENT`)throw e})}copy(e,t){return this.#e.copyFile(e,t)}async copyAll(e,r){if(await this.isFile(e))return this.copy(e,r);let i=e instanceof URL?n(e):e,a=r instanceof URL?n(r):r;await this.createDirectory(r);for await(let n of this.list(e)){let e=t.join(i,n.name),r=t.join(a,n.name);n.isDirectory?await this.copyAll(e,r):await this.copy(e,r)}}move(e,t){return this.#e.stat(e).then(n=>{if(n.isDirectory())throw Error(`EISDIR: illegal operation on a directory, move '${e}' -> '${t}'`);return this.#e.rename(e,t)})}async moveAll(e,t){return this.#e.rename(e,t)}},jl=class extends ml{constructor({fsp:e}={}){super({impl:new Al({fsp:e})})}},Ml=new jl})),Pl=f({Hfs:()=>ml,NodeHfs:()=>jl,NodeHfsImpl:()=>Al,hfs:()=>Ml}),Fl=u((()=>{Nl(),_l()})),Il=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{isMainThread:i,threadId:a}=h(`node:worker_threads`),o=r.promises,s=Xo(),c=Qo(),l=ns(),u=rs(),{Linter:d}=Ac(),{getShorthandName:f}=jc(),p=Bc(),{ConfigLoader:m,LegacyConfigLoader:g}=il(),_=S(),v=l.Minimatch,y={dot:!0},b=process.hrtime.bigint;_.formatters.t=e=>`${(e+500000n)/1000000n} ms`;let x=_(`eslint:eslint-helpers${i?``:`:thread-${a}`}`);var C=class extends Error{constructor(e,t){super(`No files matching '${e}' were found${t?``:` (glob was disabled)`}.`),this.messageTemplate=`file-not-found`,this.messageData={pattern:e,globDisabled:!t}}},w=class extends Error{constructor({basePath:e,unmatchedPatterns:t,patterns:n,rawPatterns:r}){super(`No files matching '${r}' in '${e}' were found.`),this.basePath=e,this.unmatchedPatterns=t,this.patterns=n,this.rawPatterns=r}},T=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-matched-files-ignored`,this.messageData={pattern:e}}};function E(e){return typeof e==`string`&&e.trim()!==``}function D(e){return Array.isArray(e)&&!!e.length&&e.every(E)}function O(e){return Array.isArray(e)&&e.every(E)}function k(e){return Number.isInteger(e)&&e>0}function A(e){return e.replace(/\\/gu,`/`)}function j(e){return s(n.sep===`\\`?A(e):e)}async function M({basePath:e,pattern:t}){let r=!1,{hfs:i}=await Promise.resolve().then(()=>(Fl(),Pl)),a=new v(A(n.relative(e,t)),y);return await i.isDirectory(e)?i.walk(e,{directoryFilter(e){return!r&&a.match(e.path,!0)},entryFilter(e){return r||e.isDirectory?!1:a.match(e.path)?(r=!0,!0):!1}}).next().then(()=>r):r}async function N({basePath:e,patterns:t,rawPatterns:r,configLoader:i,errorOnUnmatchedPattern:a}){if(t.length===0)return[];let o=new Map,s=t.map((r,i)=>{let a=A(n.relative(e,r));return o.set(a,t[i]),new v(a,y)}),c=new Set([...o.keys()]),{hfs:l}=await Promise.resolve().then(()=>(Fl(),Pl)),u=l.walk(e,{async directoryFilter(t){if(!s.some(e=>e.match(t.path,!0)))return!1;let r=n.resolve(e,t.path);return!(await i.loadConfigArrayForDirectory(r)).isDirectoryIgnored(r)},async entryFilter(t){let r=n.resolve(e,t.path);if(t.isDirectory)return!1;let a=(await i.loadConfigArrayForFile(r)).getConfig(r);return(c.size>0?s.reduce((e,n)=>{let r=n.match(t.path);return r&&a&&c.delete(n.pattern),r||e},!1):s.some(e=>e.match(t.path)))&&a!==void 0}}),d=[];if(await l.isDirectory(e))for await(let t of u)d.push(n.resolve(e,t.path));if(a&&c.size>0)throw new w({basePath:e,unmatchedPatterns:[...c].map(e=>o.get(e)),patterns:t,rawPatterns:r});return d}async function P({basePath:e,patterns:t,rawPatterns:n,unmatchedPatterns:r}){let i=r[0],a=n[t.indexOf(i)];throw await M({basePath:e,pattern:i})?new T(a):new C(a,!0)}async function F({searches:e,configLoader:t,errorOnUnmatchedPattern:n}){let r=[...e].map(([e,{patterns:t,rawPatterns:n}])=>({basePath:e,patterns:t,rawPatterns:n})).filter(({patterns:e})=>e.length>0),i=await Promise.allSettled(r.map(({basePath:e,patterns:r,rawPatterns:i})=>N({basePath:e,patterns:r,rawPatterns:i,configLoader:t,errorOnUnmatchedPattern:n})));for(let e=0;e<i.length;e++){let t=i[e],a=r[e];if(t.status===`fulfilled`)continue;let o=t.reason;if(!o.basePath)throw o;n&&await P({...a,unmatchedPatterns:o.unmatchedPatterns})}return i.flatMap(e=>e.value)}async function I({patterns:e,globInputPaths:t,cwd:r,configLoader:i,errorOnUnmatchedPattern:a}){let s=[],c=[],l=[],d=[],f=new Map([[r,{patterns:l,rawPatterns:[]}]]),p=e.map(e=>n.resolve(r,e)),m=await Promise.all(p.map(e=>o.stat(e).catch(()=>{}))),h=[];if(m.forEach((a,o)=>{let m=p[o],g=A(e[o]);if(a){a.isFile()&&(s.push(m),h.push(i.loadConfigArrayForFile(m))),a.isDirectory()&&(f.has(m)||f.set(m,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(m),l.push(`${A(m)}/**`),d.push(g));return}if(t&&j(g)){let e=n.resolve(r,u(g));f.has(e)||f.set(e,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:d}=f.get(e),l.push(m),d.push(g)}else c.push(g)}),a&&c.length)throw new C(c[0],t);h.push(F({searches:f,configLoader:i,errorOnUnmatchedPattern:a}));let g=(await Promise.all(h)).at(-1);return[...new Set([...s,...g])]}function L(e){return n.join(e,`__placeholder__.js`)}function R(e){return e.severity===2}function z(e,t,r){let i;switch(r){case`external`:i=`File ignored because outside of base path.`;break;case`unconfigured`:i=`File ignored because no matching configuration was supplied.`;break;default:i=t&&n.dirname(n.relative(t,e)).split(n.sep).includes(`node_modules`)?`File ignored by default because it is located under the node_modules directory. Use ignore pattern "!**/node_modules/" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`;break}return{filePath:e,messages:[{ruleId:null,fatal:!1,severity:1,message:i,nodeType:null}],suppressedMessages:[],errorCount:0,warningCount:1,fatalErrorCount:0,fixableErrorCount:0,fixableWarningCount:0}}function B(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];r.fatal||r.severity===2?(t.errorCount++,r.fatal&&t.fatalErrorCount++,r.fix&&t.fixableErrorCount++):(t.warningCount++,r.fix&&t.fixableWarningCount++)}return t}function V(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function H(e){return Array.isArray(e)&&e.every(V)}var U=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
274
+ - `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function ee({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,concurrency:o=`off`,cwd:s=process.cwd(),errorOnUnmatchedPattern:c=!0,fix:l=!1,fixTypes:u=null,flags:d=[],globInputPaths:f=!0,ignore:p=!0,ignorePatterns:m=null,overrideConfig:h=null,overrideConfigFile:g=null,plugins:_={},stats:v=!1,warnIgnored:y=!0,passOnNoPatterns:b=!1,ruleFilter:x=()=>!0,...S}){let C=[],w=Object.keys(S);if(w.length>=1&&(C.push(`Unknown options: ${w.join(`, `)}`),w.includes(`cacheFile`)&&C.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),w.includes(`configFile`)&&C.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),w.includes(`envs`)&&C.push(`'envs' has been removed.`),w.includes(`extensions`)&&C.push(`'extensions' has been removed.`),w.includes(`resolvePluginsRelativeTo`)&&C.push(`'resolvePluginsRelativeTo' has been removed.`),w.includes(`globals`)&&C.push(`'globals' has been removed. Please use the 'overrideConfig.languageOptions.globals' option instead.`),w.includes(`ignorePath`)&&C.push(`'ignorePath' has been removed.`),w.includes(`ignorePattern`)&&C.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),w.includes(`parser`)&&C.push(`'parser' has been removed. Please use the 'overrideConfig.languageOptions.parser' option instead.`),w.includes(`parserOptions`)&&C.push(`'parserOptions' has been removed. Please use the 'overrideConfig.languageOptions.parserOptions' option instead.`),w.includes(`rules`)&&C.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`),w.includes(`rulePaths`)&&C.push(`'rulePaths' has been removed. Please define your rules using plugins.`),w.includes(`reportUnusedDisableDirectives`)&&C.push(`'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.`)),typeof e!=`boolean`&&C.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&C.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&C.push(`'cache' must be a boolean.`),E(i)||C.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&C.push(`'cacheStrategy' must be any of "metadata", "content".`),o!==`off`&&o!==`auto`&&!k(o)&&C.push(`'concurrency' must be a positive integer, "auto", or "off".`),(!E(s)||!n.isAbsolute(s))&&C.push(`'cwd' must be an absolute path.`),typeof c!=`boolean`&&C.push(`'errorOnUnmatchedPattern' must be a boolean.`),typeof l!=`boolean`&&typeof l!=`function`&&C.push(`'fix' must be a boolean or a function.`),u!==null&&!H(u)&&C.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),O(d)||C.push(`'flags' must be an array of non-empty strings.`),typeof f!=`boolean`&&C.push(`'globInputPaths' must be a boolean.`),typeof p!=`boolean`&&C.push(`'ignore' must be a boolean.`),!O(m)&&m!==null&&C.push(`'ignorePatterns' must be an array of non-empty strings or null.`),typeof h!=`object`&&C.push(`'overrideConfig' must be an object or null.`),!E(g)&&g!==null&&g!==!0&&C.push(`'overrideConfigFile' must be a non-empty string, null, or true.`),typeof b!=`boolean`&&C.push(`'passOnNoPatterns' must be a boolean.`),typeof _==`object`?_!==null&&Object.keys(_).includes(``)&&C.push(`'plugins' must not include an empty string.`):C.push(`'plugins' must be an object or null.`),Array.isArray(_)&&C.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),typeof v!=`boolean`&&C.push(`'stats' must be a boolean.`),typeof y!=`boolean`&&C.push(`'warnIgnored' must be a boolean.`),typeof x!=`function`&&C.push(`'ruleFilter' must be a function.`),C.length>0)throw new U(C);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,concurrency:o,configFile:g===!0?!1:g,overrideConfig:h,cwd:n.normalize(s),errorOnUnmatchedPattern:c,fix:l,fixTypes:u,flags:[...d],globInputPaths:f,ignore:p,ignorePatterns:m,stats:v,passOnNoPatterns:b,warnIgnored:y,ruleFilter:x}}async function W(e){return(await import(e)).default}function te(e,t,{prefix:i=`.cache_`}={}){let a=n.normalize(e),o=n.resolve(t,a),s=a.slice(-1)===n.sep;function l(){return n.join(o,`${i}${c(t)}`)}let u;try{u=r.lstatSync(o)}catch{u=null}return u?u.isDirectory()||s?l():o:s?l():o}function ne({cache:e,cacheStrategy:t},n){return e?new p(n,t):null}function re(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&t.getRuleDefinition(e.ruleId);return!!(r&&r.meta&&n.has(r.meta.type))}function ie(e,t,n){if(!e||!t)return e;let r=typeof e==`function`?e:()=>!0;return e=>re(e,n,t)&&r(e)}function ae({text:e,cwd:t,filePath:r,configs:i,fix:a,allowInlineConfig:o,ruleFilter:s,stats:c,linter:l}){let u=b(),d=r||`<text>`,f=d===`<text>`?L(t):d,{fixed:p,messages:m,output:h}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:f,fix:a,ruleFilter:s,stats:c,filterCodeBlock(e){return i.getConfig(e)!==void 0}}),g={filePath:d===`<text>`?d:n.resolve(d),messages:m,suppressedMessages:l.getSuppressedMessages(),...B(m)};return p&&(g.output=h),g.errorCount+g.warningCount>0&&g.output===void 0&&(g.source=e),c&&(g.stats={times:l.getTimes(),fixPasses:l.getFixPassCount()}),x(`File "%s" linted in %t`,d,b()-u),g}async function oe(e,t,n,r,i,a,s,c){let l=t.getConfig(e),{allowInlineConfig:u,cwd:d,fix:f,fixTypes:p,ruleFilter:m,stats:h,warnIgnored:g}=n,_=p?new Set(p):null;if(!l)return g?z(e,d,t.getConfigStatus(e)):void 0;if(i){let t=i.getCachedLintResults(e,l);if(t)if(t.messages&&t.messages.length>0&&f)x(`Reprocessing cached file to allow autofix: ${e}`);else return x(`Skipping file since it hasn't changed: ${e}`),t}let v=ie(f,_,l);async function y(){let n=b(),i=await o.readFile(e,{encoding:`utf8`,signal:c?.signal}),s=b()-n;return x(`File "%s" read in %t`,e,s),a&&(a.duration+=s),c?.signal.throwIfAborted(),ae({text:i,filePath:e,configs:t,cwd:d,fix:v,allowInlineConfig:u,ruleFilter:m,stats:h,linter:r})}return(s?s.retry(y,{signal:c?.signal}):y()).catch(e=>{throw c?.abort(e),e})}function G(e){if(!process.env.ESLINT_FLAGS)return e;let t=process.env.ESLINT_FLAGS.trim().split(/\s*,\s*/gu);return Array.from(new Set([...t,...e]))}function se({cwd:e,flags:t},n){return new d({configType:`flat`,cwd:e,flags:G(t),warningService:n})}function ce(e){let t=[];if(e){let n={};for(let[t,r]of Object.entries(e))n[f(t,`eslint-plugin`)]=r;t.push({plugins:n})}return t}function le({cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignore:i,ignorePatterns:a},o,s,c){let l={cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignoreEnabled:i,ignorePatterns:a,defaultConfigs:o,hasUnstableNativeNodeJsTSConfigFlag:s.hasFlag(`unstable_native_nodejs_ts_config`),warningService:c};return s.hasFlag(`v10_config_lookup_from_file`)?new m(l):new g(l)}t.exports={createDebug:_,findFiles:I,isNonEmptyString:E,isArrayOfNonEmptyString:D,createIgnoreResult:z,isErrorMessage:R,calculateStatsPerFile:B,getPlaceholderPath:L,processOptions:ee,loadOptionsFromModule:W,getCacheFile:te,createLintResultCache:ne,getFixerForFixTypes:ie,verifyText:ae,lintFile:oe,createLinter:se,createDefaultConfigs:ce,createConfigLoader:le}})),Ll=d((e=>{function t(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function n(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function r(e,t){return e.age>t}function i(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var a=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}};e.Retrier=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=6e4,maxDelay:n=100,concurrency:r=1e3}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:n,promise:r,resolve:i,reject:o}){let s;try{s=e()}catch(e){return o(Error(`Synchronous error: ${e.message}`,{cause:e})),r}return!s||typeof s.then!=`function`?(o(Error(`Result is not a promise.`)),r):(this.#n++,r.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(s).then(e=>{t(`Function called successfully without retry.`),i(e)}).catch(r=>{if(!this.#o(r)){o(r);return}let s=new a(e,r,i,o,n);t(`Function failed, queuing for retry with task ${s.id}.`),this.#e.push(s),n?.addEventListener(`abort`,()=>{t(`Task ${s.id} was aborted due to AbortSignal.`),o(n.reason)}),this.#d()}),r)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:a}=i();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:a})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){t(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let n=Math.min(this.pending,e);for(let e=0;e<n;e++)this.#t.shift()?.();t(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,t(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},i=this.#e.shift();if(!i){t(`Queue is empty, exiting.`),this.pending&&e();return}if(r(i,this.#r)){t(`Task ${i.id} was abandoned due to timeout.`),i.reject(i.error),e();return}if(!n(i,this.#i)){t(`Task ${i.id} is not ready to retry, skipping.`),this.#e.push(i),e();return}i.lastAttempt=Date.now(),Promise.resolve(i.fn()).then(e=>{t(`Task ${i.id} succeeded after ${i.age}ms.`),i.resolve(e)}).catch(e=>{if(!this.#o(e)){t(`Task ${i.id} failed with non-retryable error: ${e.message}.`),i.reject(e);return}i.lastAttempt=Date.now(),this.#e.push(i),t(`Task ${i.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),Rl=d((e=>{let t=h(`node:module`).createRequire;function n(e,n){return t(n).resolve(e)}e.resolve=n})),zl=d(((e,t)=>{V();let{existsSync:n}=h(`node:fs`),r=h(`node:fs/promises`),i=h(`node:os`),a=h(`node:path`),{pathToFileURL:o,fileURLToPath:s}=h(`node:url`),{SHARE_ENV:c,Worker:l}=h(`node:worker_threads`),{version:u}=C(),{defaultConfig:d}=No(),f=Fo(),p={stylish:Go(),html:Ko(),json:qo(),"json-with-metadata":Jo()},{createDebug:m,findFiles:g,getCacheFile:_,isNonEmptyString:v,isArrayOfNonEmptyString:y,createIgnoreResult:b,isErrorMessage:x,getPlaceholderPath:S,processOptions:w,loadOptionsFromModule:T,getFixerForFixTypes:E,verifyText:D,lintFile:O,createLinter:k,createLintResultCache:A,createDefaultConfigs:j,createConfigLoader:M}=Il(),{Retrier:N}=Ll(),{ConfigLoader:P}=il(),{WarningService:F}=Sc(),{Config:I}=uc(),{getShorthandName:L,getNamespaceFromTerm:R,normalizePackageName:B}=jc(),{resolve:H}=Rl(),U=process.hrtime.bigint,ee=m(`eslint:eslint`),W=new WeakMap,te=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),ne=new Set([`ENFILE`,`EMFILE`]);function re(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let ie=new WeakMap;function ae(e,t){let{options:{cwd:n},configLoader:r}=W.get(e),i=a.isAbsolute(t)?t:S(n),o=r.getCachedConfigArrayForFile(i).getConfig(i);if(o&&!ie.has(o)){let e=[];if(o.rules)for(let[t,n]of Object.entries(o.rules)){if(I.getRuleNumericSeverity(n)===0)continue;let r=o.getRuleDefinition(t),i=r&&r.meta;if(i&&i.deprecated){let n=typeof i.deprecated==`object`;e.push({ruleId:t,replacedBy:n?i.deprecated.replacedBy?.map(e=>`${e.plugin?.name===void 0?``:`${L(e.plugin.name,`eslint-plugin`)}/`}${e.rule?.name??``}`)??[]:i.replacedBy||[],info:n?i.deprecated:void 0})}}ie.set(o,Object.freeze(e))}return o?ie.get(o):Object.freeze([])}function oe(e,t){let n={configurable:!0,enumerable:!0,get(){return ae(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function G(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}async function se({configFile:e,cwd:t}){let n=await new P({cwd:t,configFile:e}).findConfigFileForPath(a.join(t,`__placeholder__.js`));if(!n)throw Error(`No ESLint configuration file was found.`);return{configFilePath:n,basePath:e?t:a.dirname(n)}}function ce(e){return TypeError(`Results object was not created from this ESLint instance.`,{cause:e})}function le(e,t){let n=Math.ceil(e/50);return n>t&&(n=t),n<=1&&(n=0),n}function K(e,t,n,r){let i=e.getValidCachedLintResults(n,r);return!i||t&&i.messages&&i.messages.length>0}function ue(e,t,n){let r=U(),{configLoader:i,lintResultCache:a,options:{cacheStrategy:o,fix:s}}=W.get(e),c=!a||o===`content`,l=0,u=t.length,d=0;for(let e of t){let t=le(l+u,n);if(d>=t)break;u--;let r=i.getCachedConfigArrayForFile(e).getConfig(e);r&&(c||K(a,s,e,r))&&(l++,d=le(l,n))}return ee(`%d file(s) to process counted in %t`,l,U()-r),d}function de(e,t,{availableParallelism:n}=i){let{concurrency:r}=W.get(e).options;switch(r){case`off`:return 0;case`auto`:return ue(e,t,n()>>1);default:{let e=Math.min(r,t.length);return e>1?e:0}}}let fe=Symbol(`Do not check for uncloneable options.`);async function pe(e,t,n,r){let i=e.length,s=Array(i),u=o(a.join(z,`./worker.js`)),d=new Uint32Array(new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT)),p=new AbortController,m=p.signal,h={env:c,workerData:{eslintOptionsOrURL:n,filePathIndexArray:d,filePaths:e}},g=1;function _(e,t){let n=U(),r=new l(u,h);r.once(`message`,t=>{let r=U()-n,i=Number(t.netLintingDuration)/Number(r);g=Math.min(g,i),f.enabled&&t.timings&&f.mergeData(t.timings);for(let e of t){let{index:t}=e;delete e.index,s[t]=e}e()}),r.once(`error`,e=>{p.abort(e),t(e)}),m.addEventListener(`abort`,()=>r.terminate())}let v=Array(t);for(let e=0;e<t;++e)v[e]=new Promise(_);try{await Promise.all(v)}catch(e){throw f.disableDisplay(),e}return g<.7&&r(),s}async function me(e,t,n,r,i){let{configLoader:a,lintResultCache:o}=W.get(e),s=await pe(t,n,r,i);return o&&s.forEach((e,n)=>{if(e){let r=t[n],i=a.getCachedConfigArrayForFile(r).getConfig(r);i&&o.setCachedLintResults(r,i,e)}}),s}async function he(e,t){let{configLoader:n,linter:r,lintResultCache:i,options:a}=W.get(e),o=new AbortController,s=new N(e=>ne.has(e.code),{concurrency:100});return await Promise.all(t.map(async e=>{let t=n.getCachedConfigArrayForFile(e),c=t.getConfig(e),l=await O(e,t,a,r,i,null,s,o);return c&&i?.setCachedLintResults(e,c,l),l}))}function ge(e){try{structuredClone(e);return}catch{}let t=Object.keys(e).filter(t=>{try{structuredClone(e[t])}catch{return!0}return!1}).sort(),n=TypeError(`The ${t.length===1?`option`:`options`} ${new Intl.ListFormat(`en-US`).format(t.map(e=>`"${e}"`))} cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.`);throw n.code=`ESLINT_UNCLONEABLE_OPTIONS`,n}var q=class e{static configType=`flat`;#e;#t;constructor(e={}){let t=w(e);!e[fe]&&t.concurrency!==`off`&&(ge(e),this.#t=e);let r=new F,i=k(t,r),o=_(t.cacheLocation,t.cwd),s=A(t,o),c=j(e.plugins);this.#e=M(t,c,i,r),ee(`Using config loader ${this.#e.constructor.name}`),W.set(this,{options:t,linter:i,cacheFilePath:o,lintResultCache:s,defaultConfigs:c,configs:null,configLoader:this.#e,warningService:r}),n(a.resolve(t.cwd,`.eslintignore`))&&r.emitESLintIgnoreWarning()}static get version(){return u}static get defaultConfig(){return d}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);let t=new N(e=>ne.has(e.code),{concurrency:100});await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&a.isAbsolute(e.filePath)}).map(e=>t.retry(()=>r.writeFile(e.filePath,e.output))))}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(x),r=e.suppressedMessages.filter(x);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static async fromOptionsModule(t){if(!(t instanceof URL))throw TypeError(`Argument must be a URL object`);let n=t.href,r={...await T(n),[fe]:!0},i=new e(r);return r.concurrency!==`off`&&(i.#t=n),i}getRulesMetaForResults(e){if(e.length===0)return{};let t=new Map,{configLoader:n,options:{cwd:r}}=W.get(this);for(let i of e){let e=i.filePath===`<text>`?S(r):i.filePath,a=i.messages.concat(i.suppressedMessages);for(let{ruleId:r}of a){if(!r)continue;let i;try{i=n.getCachedConfigArrayForFile(e)}catch(e){throw ce(e)}let a=i.getConfig(e);if(!a)throw ce();let o=a.getRuleDefinition(r);o&&t.set(r,o)}}return re(t)}hasFlag(e){return W.get(this).linter.hasFlag(e)}async lintFiles(e){let i=e,{cacheFilePath:a,lintResultCache:o,options:s,warningService:c}=W.get(this);if(e===``||Array.isArray(e)&&e.length===0){if(s.passOnNoPatterns)return[];i=[`.`]}else{if(!v(e)&&!y(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);typeof e==`string`&&(i=[e])}ee(`Using file patterns: ${i}`);let{concurrency:l,cwd:u,globInputPaths:d,errorOnUnmatchedPattern:f}=s;if(!o&&a){ee(`Deleting cache file at ${a}`);try{n(a)&&await r.unlink(a)}catch(e){if(n(a))throw e}}let p=U(),m=await g({patterns:i,cwd:u,globInputPaths:d,configLoader:this.#e,errorOnUnmatchedPattern:f});ee(`%d file(s) found in %t`,m.length,U()-p);let h,_=t.exports.calculateWorkerCount(this,m);if(_){ee(`Linting using ${_} worker thread(s).`);let e;e=_<=2?`disable concurrency`:l===`auto`?`disable concurrency or use a numeric concurrency setting`:`reduce or disable concurrency`,h=await me(this,m,_,this.#t,()=>c.emitPoorConcurrencyWarning(e))}else ee(`Linting in single-thread mode.`),h=await he(this,m);o&&o.reconcile();let b=h.filter(e=>!!e);return oe(this,b)}async lintText(e,t={}){if(typeof e!=`string`)throw Error(`'code' must be a string`);if(typeof t!=`object`)throw Error(`'options' must be an object, null, or undefined`);let{filePath:n,warnIgnored:r,...i}=t||{},o=Object.keys(i);if(o.length>0)throw Error(`'options' must not include the unknown option(s): ${o.join(`, `)}`);if(n!==void 0&&!v(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`&&r!==void 0)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{linter:s,options:c}=W.get(this),{allowInlineConfig:l,cwd:u,fix:d,fixTypes:f,warnIgnored:p,ruleFilter:m,stats:h}=c,g=[],_=U(),y=f?new Set(f):null,x=a.resolve(u,n||`__placeholder__.js`),S=await this.#e.loadConfigArrayForFile(x),C=S?.getConfigStatus(x)??`unconfigured`;if(x&&C!==`matched`)(typeof r==`boolean`?r:p)&&g.push(b(x,u,C));else{let t=E(d,y,S.getConfig(x));g.push(D({text:e,filePath:x.endsWith(`__placeholder__.js`)?`<text>`:x,configs:S,cwd:u,fix:t,allowInlineConfig:l,ruleFilter:m,stats:h,linter:s}))}return ee(`Linting complete in %t`,U()-_),oe(this,g)}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let t=e.replace(/\\/gu,`/`),n=R(t),{cwd:r}=W.get(this).options,i;if(!n&&t.includes(`/`))i=a.resolve(r,t);else{if(p[t]){let e=p[t];if(typeof e!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof e}.`);let n=this;return{format(t,i){let a=null;return t.sort(G),e(t,{...i,cwd:r,get rulesMeta(){return a||=n.getRulesMetaForResults(t),a}})}}}try{i=H(B(t,`eslint-formatter`),S(r))}catch{i=a.resolve(z,`../`,`cli-engine`,`formatters`,`${t}.js`)}}let s;try{s=(await import(o(i))).default}catch(t){throw te.has(e)?t.message=`The ${e} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${e}\``:t.message=`There was a problem loading formatter: ${i}\nError: ${t.message}`,t}if(typeof s!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof s}.`);let c=this;return{format(e,t){let n=null;return e.sort(G),s(e,{...t,cwd:r,get rulesMeta(){return n||=c.getRulesMetaForResults(e),n}})}}}async calculateConfigForFile(e){if(!v(e))throw Error(`'filePath' must be a non-empty string`);let t=W.get(this).options,n=a.resolve(t.cwd,e),r=await this.#e.loadConfigArrayForFile(n);if(!r){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}return r.getConfig(n)}async findConfigFile(e){let t=W.get(this).options,n=a.join(t.cwd,`__placeholder__`);return this.#e.findConfigFileForPath(e??n).catch(()=>void 0)}async isPathIgnored(e){return await this.calculateConfigForFile(e)===void 0}};async function _e(){return process.env.ESLINT_USE_FLAT_CONFIG!==`false`}t.exports={ESLint:q,shouldUseFlatConfig:_e,locateConfigFileToUse:se,calculateWorkerCount:de}})),Bl=d(((e,t)=>{t.exports={configFile:null,baseConfig:!1,rulePaths:[],useEslintrc:!0,envs:[],globals:[],extensions:null,ignore:!0,ignorePath:void 0,cache:!1,cacheLocation:``,cacheFile:`.eslintcache`,cacheStrategy:`metadata`,fix:!1,allowInlineConfig:!0,reportUnusedDisableDirectives:void 0,globInputPaths:!0}})),Vl=d(((e,t)=>{let n=h(`path`),r=h(`module`),i=h(`fs`),a=(e,t,a)=>{if(typeof e!=`string`)throw TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof t!=`string`)throw TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{e=i.realpathSync(e)}catch(t){if(t.code===`ENOENT`)e=n.resolve(e);else if(a)return null;else throw t}let o=n.join(e,`noop.js`),s=()=>r._resolveFilename(t,{id:o,filename:o,paths:r._nodeModulePaths(e)});if(a)try{return s()}catch{return null}return s()};t.exports=(e,t)=>a(e,t),t.exports.silent=(e,t)=>a(e,t,!0)})),Hl=d(((e,t)=>{let n=()=>{let e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;let t=Error().stack.slice(1);return Error.prepareStackTrace=e,t};t.exports=n,t.exports.default=n})),Ul=d(((e,t)=>{let n=Hl();t.exports=e=>{let t=n();if(!e)return t[2].getFileName();let r=!1;t.shift();for(let n of t){let t=n.getFileName();if(typeof t==`string`){if(t===e){r=!0;continue}if(t!==`module.js`&&r&&t!==e)return t}}}})),Wl=d(((e,t)=>{V();let n=h(`path`),r=Vl(),i=Ul();t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let t=i(B),a=r(t?n.dirname(t):z,e),o=h.cache[a];if(o&&o.parent){let e=o.parent.children.length;for(;e--;)o.parent.children[e].id===a&&o.parent.children.splice(e,1)}delete h.cache[a];let s=h.cache[t];return s===void 0||s.require===void 0?h(a):s.require(a)}})),Gl=d(((e,t)=>{let n=Symbol(`singleComment`),r=Symbol(`multiComment`),i=()=>``,a=(e,t,n)=>e.slice(t,n).replace(/\S/g,` `),o=(e,t)=>{let n=t-1,r=0;for(;e[n]===`\\`;)--n,r+=1;return!!(r%2)};t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof e}\``);let s=t.whitespace===!1?i:a,c=!1,l=!1,u=0,d=``;for(let t=0;t<e.length;t++){let i=e[t],a=e[t+1];if(!l&&i===`"`&&(o(e,t)||(c=!c)),!c){if(!l&&i+a===`//`)d+=e.slice(u,t),u=t,l=n,t++;else if(l===n&&i+a===`\r
104
275
  `){t++,l=!1,d+=s(e,u,t),u=t;continue}else if(l===n&&i===`
105
- `)l=!1,d+=s(e,u,t),u=t;else if(!l&&i+a===`/*`){d+=e.slice(u,t),u=t,l=r,t++;continue}else if(l===r&&i+a===`*/`){t++,l=!1,d+=s(e,u,t+1),u=t+1;continue}}}return d+(l?s(e.slice(u)):e.slice(u))}})),Nl=d((e=>{V(),Object.defineProperty(e,`__esModule`,{value:!0});var t=S(),n=h(`node:fs`),r=jl(),i=h(`node:module`),a=h(`node:path`),o=Ml(),s=h(`node:assert`),c=Pr(),l=h(`node:util`),u=Uo(),d=Ls(),f=zs(),p=h(`node:os`);function m(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var g=m(t),_=m(n),v=m(r),y=m(i),b=m(a),x=m(o),C=m(s),w=m(c),T=m(l),E=m(u),D=m(d),O=m(f),k=m(p);let A=g.default(`eslintrc:ignore-pattern`);function j(e){let t=e[0];for(let n=1;n<e.length;++n){let r=t,i=e[n];t=r.length<i.length?r:i;for(let e=0,n=0;e<r.length&&e<i.length;++e){if(r[e]!==i[e]){t=r.slice(0,n);break}r[e]===b.default.sep&&(n=e)}}let n=t||b.default.sep;return n&&n.endsWith(`:`)&&process.platform===`win32`&&(n+=b.default.sep),n}function M(e,t){let n=b.default.relative(e,t);return b.default.sep===`/`?n:n.split(b.default.sep).join(`/`)}function N(e){return e.endsWith(b.default.sep)||process.platform===`win32`&&e.endsWith(`/`)?`/`:``}let P=Object.freeze([`/**/node_modules/*`]),F=Object.freeze([`.*`,`!.eslintrc.*`,`!../`]);var I=class e{static get DefaultPatterns(){return P}static createDefaultIgnore(t){return this.createIgnore([new e(P,t)])}static createIgnore(e){A(`Create with: %o`,e);let t=j(e.map(e=>e.basePath)),n=e.flatMap(e=>e.getPatternsRelativeTo(t)),r=w.default({allowRelativePaths:!0}).add([...F,...n]),i=w.default({allowRelativePaths:!0}).add(n);return A(` processed: %o`,{basePath:t,patterns:n}),Object.assign((e,n=!1)=>{C.default(b.default.isAbsolute(e),`'filePath' should be an absolute path.`);let a=M(t,e),o=a&&a+N(e),s=o!==``&&(n?i:r).ignores(o);return A(`Check`,{filePath:e,dot:n,relativePath:o,result:s}),s},{basePath:t,patterns:n})}constructor(e,t){C.default(b.default.isAbsolute(t),`'basePath' should be an absolute path.`),this.patterns=e,this.basePath=t,this.loose=!1}getPatternsRelativeTo(e){C.default(b.default.isAbsolute(e),`'newBasePath' should be an absolute path.`);let{basePath:t,loose:n,patterns:r}=this;if(e===t)return r;let i=`/${M(e,t)}`;return r.map(e=>{let t=e.startsWith(`!`),r=t?`!`:``,a=t?e.slice(1):e;return a.startsWith(`/`)||a.startsWith(`../`)?`${r}${i}${a}`:n?e:`${r}${i}/**/${a}`})}};function L(e,t){return e.length>=t.length&&t.every((t,n)=>t===e[n])}var R=class{constructor(){this.configNameOfNoInlineConfig=``,this.env={},this.globals={},this.ignores=void 0,this.noInlineConfig=void 0,this.parser=null,this.parserOptions={},this.plugins={},this.processor=null,this.reportUnusedDisableDirectives=void 0,this.rules={},this.settings={}}toCompatibleObjectAsConfigFileContent(){let{configNameOfNoInlineConfig:e,processor:t,ignores:n,...r}=this;return r.parser=r.parser&&r.parser.filePath,r.plugins=Object.keys(r.plugins).filter(Boolean).reverse(),r.ignorePatterns=n?n.patterns:[],L(r.ignorePatterns,I.DefaultPatterns)&&(r.ignorePatterns=r.ignorePatterns.slice(I.DefaultPatterns.length)),r}};let z=new class extends WeakMap{get(e){let t=super.get(e);return t||(t={cache:new Map,envMap:null,processorMap:null,ruleMap:null},super.set(e,t)),t}};function H(e,t){let n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];(!i.criteria||t&&i.criteria.test(t))&&n.push(r)}return n}function U(e){return typeof e==`object`&&!!e}function ee(e,t){if(U(t))for(let n of Object.keys(t))n!==`__proto__`&&(U(e[n])?ee(e[n],t[n]):e[n]===void 0&&(U(t[n])?(e[n]=Array.isArray(t[n])?[]:{},ee(e[n],t[n])):t[n]!==void 0&&(e[n]=t[n])))}var W=class extends Error{constructor(e,t){super(`Plugin "${e}" was conflicted between ${t.map(e=>`"${e.importerName}"`).join(` and `)}.`),this.messageTemplate=`plugin-conflict`,this.messageData={pluginId:e,plugins:t}}};function te(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];if(r===void 0){if(i.error)throw i.error;e[n]=i}else if(i.filePath!==r.filePath)throw new W(n,[{filePath:r.filePath,importerName:r.importerName},{filePath:i.filePath,importerName:i.importerName}])}}function ne(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];r===void 0?Array.isArray(i)?e[n]=[...i]:e[n]=[i]:r.length===1&&Array.isArray(i)&&i.length>=2&&r.push(...i.slice(1))}}function re(e,t){let n=new R,r=[];for(let i of t){let t=e[i];if(!n.parser&&t.parser){if(t.parser.error)throw t.parser.error;n.parser=t.parser}!n.processor&&t.processor&&(n.processor=t.processor),n.noInlineConfig===void 0&&t.noInlineConfig!==void 0&&(n.noInlineConfig=t.noInlineConfig,n.configNameOfNoInlineConfig=t.name),n.reportUnusedDisableDirectives===void 0&&t.reportUnusedDisableDirectives!==void 0&&(n.reportUnusedDisableDirectives=t.reportUnusedDisableDirectives),t.ignorePattern&&r.push(t.ignorePattern),ee(n.env,t.env),ee(n.globals,t.globals),ee(n.parserOptions,t.parserOptions),ee(n.settings,t.settings),te(n.plugins,t.plugins),ne(n.rules,t.rules)}return r.length>0&&(n.ignores=I.createIgnore(r.reverse())),n}function ie(e,t,n){if(t){let r=e&&`${e}/`;for(let[e,i]of Object.entries(t))n.set(`${r}${e}`,i)}}function ae(e){Object.defineProperties(e,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},set:{configurable:!0,value:void 0}})}function oe(e,t){let n=new Set;t.envMap=new Map,t.processorMap=new Map,t.ruleMap=new Map;for(let r of e)if(r.plugins)for(let[e,i]of Object.entries(r.plugins)){let r=i.definition;!r||n.has(e)||(n.add(e),ie(e,r.environments,t.envMap),ie(e,r.processors,t.processorMap),ie(e,r.rules,t.ruleMap))}ae(t.envMap),ae(t.processorMap),ae(t.ruleMap)}function G(e){let t=z.get(e);return t.ruleMap||oe(e,t),t}var se=class extends Array{get pluginEnvironments(){return G(this).envMap}get pluginProcessors(){return G(this).processorMap}get pluginRules(){return G(this).ruleMap}isRoot(){for(let e=this.length-1;e>=0;--e){let t=this[e].root;if(typeof t==`boolean`)return t}return!1}extractConfig(e){let{cache:t}=z.get(this),n=H(this,e),r=n.join(`,`);return t.has(r)||t.set(r,re(this,n)),t.get(r)}isAdditionalTargetPath(e){for(let{criteria:t,type:n}of this)if(n===`config`&&t&&!t.endsWithWildcard&&t.test(e))return!0;return!1}};function ce(e){let{cache:t}=z.get(e);return Array.from(t.values())}var le=class{constructor({definition:e=null,original:t=null,error:n=null,filePath:r=null,id:i,importerName:a,importerPath:o}){this.definition=e,this.original=t,this.error=n,this.filePath=r,this.id=i,this.importerName=a,this.importerPath=o}toJSON(){let e=this[T.default.inspect.custom]();return e.error instanceof Error&&(e.error={...e.error,message:e.error.message}),e}[T.default.inspect.custom](){let{definition:e,original:t,...n}=this;return n}};let{Minimatch:K}=E.default,ue={dot:!0,matchBase:!0};function de(e){return Array.isArray(e)?e.filter(Boolean):typeof e==`string`&&e?[e]:[]}function fe(e){return e.length===0?null:e.map(e=>/^\.[/\\]/u.test(e)?new K(e.slice(2),{...ue,matchBase:!1}):new K(e,ue))}function pe({includes:e,excludes:t}){return{includes:e&&e.map(e=>e.pattern),excludes:t&&t.map(e=>e.pattern)}}var me=class e{static create(t,n,r){let i=de(t),a=de(n),o=!1;if(i.length===0)return null;for(let e of i){if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);e.endsWith(`*`)&&(o=!0)}for(let e of a)if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);return new e([{includes:fe(i),excludes:fe(a)}],r,o)}static and(t,n){return n?t?(C.default.strictEqual(t.basePath,n.basePath),new e(t.patterns.concat(n.patterns),t.basePath,t.endsWithWildcard||n.endsWithWildcard)):new e(n.patterns,n.basePath,n.endsWithWildcard):t&&new e(t.patterns,t.basePath,t.endsWithWildcard)}constructor(e,t,n=!1){this.patterns=e,this.basePath=t,this.endsWithWildcard=n}test(e){if(typeof e!=`string`||!b.default.isAbsolute(e))throw Error(`'filePath' should be an absolute path, but got ${e}.`);let t=b.default.relative(this.basePath,e);return this.patterns.every(({includes:e,excludes:n})=>(!e||e.some(e=>e.match(t)))&&(!n||!n.some(e=>e.match(t))))}toJSON(){return this.patterns.length===1?{...pe(this.patterns[0]),basePath:this.basePath}:{AND:this.patterns.map(pe),basePath:this.basePath}}[T.default.inspect.custom](){return this.toJSON()}};let he=[`off`,`warn`,`error`],ge=he.reduce((e,t,n)=>(e[t]=n,e),{}),q=new Set([0,1,2,`off`,`warn`,`error`]);function _e(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&ge[t.toLowerCase()]||0}function J(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=he[n]||he[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=he[n[0]]||he[0])})}function ve(e){return _e(e)===2}function Y(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),q.has(t)}function ye(e){return Object.keys(e).every(t=>Y(e[t]))}function be(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var xe={__proto__:null,getRuleSeverity:_e,normalizeToStrings:J,isErrorSeverity:ve,isValidSeverity:Y,isEverySeverityValid:ye,normalizeConfigGlobal:be};let Se={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},X=new Set;function Ce(e,t){let n=JSON.stringify({source:e,errorCode:t});if(X.has(n))return;X.add(n);let r=b.default.relative(process.cwd(),e),i=Se[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let Z={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}};var we=(e={})=>{let t=new D.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(Z),t._opts.defaultMeta=Z.id,t};function Te(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ee(e,t){if(t===void 0)return e;if(!Te(e)||!Te(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=Ee(e[r],t[r]));return n}function De(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>Ee(e,t[n])),...t.slice(e.length)]}let Oe={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},ke={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...Oe},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...Oe},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function Ae(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let je=Ae(O.default.es2015,O.default.es5),Me={Atomics:!1,SharedArrayBuffer:!1},Ne={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},Pe={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var Fe=new Map(Object.entries({builtin:{globals:O.default.es5},es6:{globals:je,parserOptions:{ecmaVersion:6}},es2015:{globals:je,parserOptions:{ecmaVersion:6}},es2016:{globals:je,parserOptions:{ecmaVersion:7}},es2017:{globals:{...je,...Me},parserOptions:{ecmaVersion:8}},es2018:{globals:{...je,...Me},parserOptions:{ecmaVersion:9}},es2019:{globals:{...je,...Me},parserOptions:{ecmaVersion:10}},es2020:{globals:{...je,...Me,...Ne},parserOptions:{ecmaVersion:11}},es2021:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:12}},es2022:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:13}},es2023:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:14}},es2024:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:15}},browser:{globals:O.default.browser},node:{globals:O.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:O.default[`shared-node-browser`]},worker:{globals:O.default.worker},serviceworker:{globals:O.default.serviceworker},commonjs:{globals:O.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:O.default.amd},mocha:{globals:O.default.mocha},jasmine:{globals:O.default.jasmine},jest:{globals:O.default.jest},phantomjs:{globals:O.default.phantomjs},jquery:{globals:O.default.jquery},qunit:{globals:O.default.qunit},prototypejs:{globals:O.default.prototypejs},shelljs:{globals:O.default.shelljs},meteor:{globals:O.default.meteor},mongo:{globals:O.default.mongo},protractor:{globals:O.default.protractor},applescript:{globals:O.default.applescript},nashorn:{globals:O.default.nashorn},atomtest:{globals:O.default.atomtest},embertest:{globals:O.default.embertest},webextensions:{globals:O.default.webextensions},greasemonkey:{globals:O.default.greasemonkey}}));let Ie=we(),Le=new WeakMap,Q=Function.prototype,Re,ze={error:2,warn:1,off:0},Be=new WeakSet,Ve=Object.freeze({type:`array`,minItems:0,maxItems:0});var He=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...Ve};let t=e.meta.schema;if(t===void 0)return{...Ve};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...Ve}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?ze[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${T.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!Le.has(e))try{let t=this.getRuleOptionsSchema(e);t&&Le.set(e,Ie.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=Le.get(e);if(n&&(n(De(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=Q){e&&Object.keys(e).forEach(e=>{if(!(n(e)||Fe.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=Q){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{be(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(Re||=Ie.compile(ke),!Re(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(Re.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&Ce(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)Be.has(i)||(Be.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let Ue=/^@.*\//iu;function We(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function Ge(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function Ke(e){let t=e.match(Ue);return t?t[0]:``}var qe={__proto__:null,normalizePackageName:We,getShorthandName:Ge,getNamespaceFromTerm:Ke};let Je=y.default.createRequire;function Ye(e,t){try{return Je(t).resolve(e)}catch(n){throw typeof n==`object`&&n&&n.code===`MODULE_NOT_FOUND`&&!n.requireStack&&n.message.includes(e)&&(n.message+=`\nRequire stack:\n- ${t}`),n}}var Xe={__proto__:null,resolve:Ye};let Ze=i.createRequire(h(`url`).pathToFileURL(B).toString()),Qe=g.default(`eslintrc:config-array-factory`),$e=[`.eslintrc.js`,`.eslintrc.cjs`,`.eslintrc.yaml`,`.eslintrc.yml`,`.eslintrc.json`,`.eslintrc`,`package.json`],et=new WeakMap,tt=new WeakMap;function nt(e){return/^\.{1,2}[/\\]/u.test(e)||b.default.isAbsolute(e)}function rt(e){return _.default.readFileSync(e,`utf8`).replace(/^\ufeff/u,``)}function it(e){Qe(`Loading YAML config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(rt(e))||{}}catch(t){throw Qe(`Error reading YAML file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function $(e){Qe(`Loading JSON config file: ${e}`);try{return JSON.parse(x.default(rt(e)))}catch(t){throw Qe(`Error reading JSON file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t.messageTemplate=`failed-to-read-json`,t.messageData={path:e,message:t.message},t}}function at(e){Qe(`Loading legacy config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(x.default(rt(e)))||{}}catch(t){throw Qe(`Error reading YAML file: %s
106
- %o`,e,t),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ot(e){Qe(`Loading JS config file: ${e}`);try{return v.default(e)}catch(t){throw Qe(`Error reading JavaScript file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function st(e){Qe(`Loading package.json config file: ${e}`);try{let t=$(e);if(!Object.hasOwn(t,`eslintConfig`))throw Object.assign(Error(`package.json file doesn't have 'eslintConfig' field.`),{code:`ESLINT_CONFIG_FIELD_NOT_FOUND`});return t.eslintConfig}catch(t){throw Qe(`Error reading package.json file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ct(e){Qe(`Loading .eslintignore file: ${e}`);try{return rt(e).split(/\r?\n/gu).filter(e=>e.trim()!==``&&!e.startsWith(`#`))}catch(t){throw Qe(`Error reading .eslintignore file: ${e}`),t.message=`Cannot read .eslintignore file: ${e}\nError: ${t.message}`,t}}function lt(e,t,n){return Object.assign(Error(`Failed to load config "${e}" to extend from.`),{messageTemplate:n,messageData:{configName:e,importerName:t}})}function ut(e){switch(b.default.extname(e)){case`.js`:case`.cjs`:return ot(e);case`.json`:return b.default.basename(e)===`package.json`?st(e):$(e);case`.yaml`:case`.yml`:return it(e);default:return at(e)}}function dt(e,t,n){if(Qe.enabled){let r=null;try{let{version:n=`unknown`}=Ze(Ye(`${e}/package.json`,t));r=`${e}@${n}`}catch(t){Qe(`package.json was not found:`,t.message),r=e}Qe(`Loaded: %s (%s)`,r,n)}}function ft({cwd:e,resolvePluginsRelativeTo:t},n,r,i,a){let o=i?b.default.resolve(e,i):``;return{filePath:o,matchBasePath:a&&b.default.resolve(e,a)||o&&b.default.dirname(o)||e,name:r||o&&b.default.relative(e,o)||``,pluginBasePath:t||o&&b.default.dirname(o)||e,type:n||`config`}}function pt(e){let t=tt.get(e);return t||(t={configs:e.configs||{},environments:e.environments||{},processors:e.processors||{},rules:e.rules||{}},tt.set(e,t),t)}var mt=class{constructor({additionalPluginPool:e=new Map,cwd:t=process.cwd(),resolvePluginsRelativeTo:n,builtInRules:r,resolver:i=Xe,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c}={}){et.set(this,{additionalPluginPool:e,cwd:t,resolvePluginsRelativeTo:n&&b.default.resolve(t,n),builtInRules:r,resolver:i,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c})}create(e,{basePath:t,filePath:n,name:r}={}){if(!e)return new se;let i=ft(et.get(this),`config`,r,n,t);return new se(...this._normalizeConfigData(e,i))}loadFile(e,{basePath:t,name:n}={}){let r=ft(et.get(this),`config`,n,e,t);return new se(...this._loadConfigData(r))}loadInDirectory(e,{basePath:t,name:n}={}){let r=et.get(this);for(let i of $e){let a=ft(r,`config`,n,b.default.join(e,i),t);if(_.default.existsSync(a.filePath)&&_.default.statSync(a.filePath).isFile()){let e;try{e=ut(a.filePath)}catch(e){if(!e||e.code!==`ESLINT_CONFIG_FIELD_NOT_FOUND`)throw e}if(e)return Qe(`Config file found: ${a.filePath}`),new se(...this._normalizeConfigData(e,a))}}return Qe(`Config file not found on ${e}`),new se}static getPathToConfigFileInDirectory(e){for(let t of $e){let n=b.default.join(e,t);if(_.default.existsSync(n))if(t===`package.json`)try{return st(n),n}catch{}else return n}return null}loadESLintIgnore(e){let t=et.get(this),n=ft(t,`ignore`,void 0,e,t.cwd),r=ct(n.filePath);return new se(...this._normalizeESLintIgnoreData(r,n))}loadDefaultESLintIgnore(){let e=et.get(this),t=b.default.resolve(e.cwd,`.eslintignore`),n=b.default.resolve(e.cwd,`package.json`);if(_.default.existsSync(t))return this.loadESLintIgnore(t);if(_.default.existsSync(n)){let t=$(n);if(Object.hasOwn(t,`eslintIgnore`)){if(!Array.isArray(t.eslintIgnore))throw Error(`Package.json eslintIgnore property requires an array of paths`);let r=ft(e,`ignore`,`eslintIgnore in package.json`,n,e.cwd);return new se(...this._normalizeESLintIgnoreData(t.eslintIgnore,r))}}return new se}_loadConfigData(e){return this._normalizeConfigData(ut(e.filePath),e)}*_normalizeESLintIgnoreData(e,t){let n=this._normalizeObjectConfigData({ignorePatterns:e},t);for(let e of n)e.ignorePattern&&(e.ignorePattern.loose=!0),yield e}_normalizeConfigData(e,t){return new He().validateConfigSchema(e,t.name||t.filePath),this._normalizeObjectConfigData(e,t)}*_normalizeObjectConfigData(e,t){let{files:n,excludedFiles:r,...i}=e,a=me.create(n,r,t.matchBasePath),o=this._normalizeObjectConfigDataBody(i,t);for(let e of o)e.criteria=me.and(a,e.criteria),e.criteria&&(e.root=void 0),yield e}*_normalizeObjectConfigDataBody({env:e,extends:t,globals:n,ignorePatterns:r,noInlineConfig:i,parser:a,parserOptions:o,plugins:s,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f,overrides:p=[]},m){let h=Array.isArray(t)?t:[t],g=r&&new I(Array.isArray(r)?r:[r],m.matchBasePath);for(let e of h.filter(Boolean))yield*this._loadExtends(e,m);let _=a&&this._loadParser(a,m),v=s&&this._loadPlugins(s,m);v&&(yield*this._takeFileExtensionProcessors(v,m)),yield{type:m.type,name:m.name,filePath:m.filePath,criteria:null,env:e,globals:n,ignorePattern:g,noInlineConfig:i,parser:_,parserOptions:o,plugins:v,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f};for(let e=0;e<p.length;++e)yield*this._normalizeObjectConfigData(p[e],{...m,name:`${m.name}#overrides[${e}]`})}_loadExtends(e,t){Qe(`Loading {extends:%j} relative to %s`,e,t.filePath);try{return e.startsWith(`eslint:`)?this._loadExtendedBuiltInConfig(e,t):e.startsWith(`plugin:`)?this._loadExtendedPluginConfig(e,t):this._loadExtendedShareableConfig(e,t)}catch(e){throw e.message+=`\nReferenced from: ${t.filePath||t.name}`,e}}_loadExtendedBuiltInConfig(e,t){let{eslintAllPath:n,getEslintAllConfig:r,eslintRecommendedPath:i,getEslintRecommendedConfig:a}=et.get(this);if(e===`eslint:recommended`){let n=`${t.name} » ${e}`;if(a){if(typeof a!=`function`)throw Error(`getEslintRecommendedConfig must be a function instead of '${a}'`);return this._normalizeConfigData(a(),{...t,name:n,filePath:``})}return this._loadConfigData({...t,name:n,filePath:i})}if(e===`eslint:all`){let i=`${t.name} » ${e}`;if(r){if(typeof r!=`function`)throw Error(`getEslintAllConfig must be a function instead of '${r}'`);return this._normalizeConfigData(r(),{...t,name:i,filePath:``})}return this._loadConfigData({...t,name:i,filePath:n})}throw lt(e,t.name,`extend-config-missing`)}_loadExtendedPluginConfig(e,t){let n=e.lastIndexOf(`/`);if(n===-1)throw lt(e,t.filePath,`plugin-invalid`);let r=e.slice(7,n),i=e.slice(n+1);if(nt(r))throw Error(`'extends' cannot use a file path for plugins.`);let a=this._loadPlugin(r,t),o=a.definition&&a.definition.configs[i];if(o)return this._normalizeConfigData(o,{...t,filePath:a.filePath||t.filePath,name:`${t.name} » plugin:${a.id}/${i}`});throw a.error||lt(e,t.filePath,`extend-config-missing`)}_loadExtendedShareableConfig(e,t){let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`),a;a=nt(e)?e:e.startsWith(`.`)?`./${e}`:We(e,`eslint-config`);let o;try{o=r.resolve(a,i)}catch(n){throw n&&n.code===`MODULE_NOT_FOUND`?lt(e,t.filePath,`extend-config-missing`):n}return dt(a,i,o),this._loadConfigData({...t,filePath:o,name:`${t.name} » ${a}`})}_loadPlugins(e,t){return e.reduce((e,n)=>{if(nt(n))throw Error(`Plugins array cannot includes file paths.`);let r=this._loadPlugin(n,t);return e[r.id]=r,e},{})}_loadParser(e,t){Qe(`Loading parser %j from %s`,e,t.filePath);let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`);try{let n=r.resolve(e,i);return dt(e,i,n),new le({definition:Ze(n),filePath:n,id:e,importerName:t.name,importerPath:t.filePath})}catch(n){return e===`espree`?(Qe(`Fallback espree.`),new le({definition:Ze(`espree`),filePath:Ze.resolve(`espree`),id:e,importerName:t.name,importerPath:t.filePath})):(Qe(`Failed to load parser '%s' declared in '%s'.`,e,t.name),n.message=`Failed to load parser '${e}' declared in '${t.name}': ${n.message}`,new le({error:n,id:e,importerName:t.name,importerPath:t.filePath}))}}_loadPlugin(e,t){Qe(`Loading plugin %j from %s`,e,t.filePath);let{additionalPluginPool:n,resolver:r}=et.get(this),i=We(e,`eslint-plugin`),a=Ge(i,`eslint-plugin`),o=b.default.join(t.pluginBasePath,`__placeholder__.js`);if(e.match(/\s+/u))return new le({error:Object.assign(Error(`Whitespace found in plugin name '${e}'`),{messageTemplate:`whitespace-found`,messageData:{pluginName:i}}),id:a,importerName:t.name,importerPath:t.filePath});let s=n.get(i)||n.get(a);if(s)return new le({definition:pt(s),original:s,filePath:``,id:a,importerName:t.name,importerPath:t.filePath});let c,l;try{c=r.resolve(i,o)}catch(e){l=e,l&&l.code===`MODULE_NOT_FOUND`&&(l.messageTemplate=`plugin-missing`,l.messageData={pluginName:i,resolvePluginsRelativeTo:t.pluginBasePath,importerName:t.name})}if(c)try{dt(i,o,c);let e=Date.now(),n=Ze(c);return Qe(`Plugin ${c} loaded in: ${Date.now()-e}ms`),new le({definition:pt(n),original:n,filePath:c,id:a,importerName:t.name,importerPath:t.filePath})}catch(e){l=e}return Qe(`Failed to load plugin '%s' declared in '%s'.`,e,t.name),l.message=`Failed to load plugin '${e}' declared in '${t.name}': ${l.message}`,new le({error:l,id:a,importerName:t.name,importerPath:t.filePath})}*_takeFileExtensionProcessors(e,t){for(let n of Object.keys(e)){let r=e[n]&&e[n].definition&&e[n].definition.processors;if(r)for(let e of Object.keys(r))e.startsWith(`.`)&&(yield*this._normalizeObjectConfigData({files:[`*${e}`],processor:`${n}/${e}`},{...t,type:`implicit-processor`,name:`${t.name}#processors["${n}/${e}"]`}))}}};let ht=g.default(`eslintrc:cascading-config-array-factory`),gt=new WeakMap;function _t({configArrayFactory:e,baseConfigData:t,rulePaths:n,cwd:r,loadRules:i}){let a=e.create(t,{name:`BaseConfig`});return a.unshift(e.create({ignorePatterns:I.DefaultPatterns},{name:`DefaultIgnorePattern`})[0]),n&&n.length>0&&a.push({type:`config`,name:`--rulesdir`,filePath:``,plugins:{"":new le({definition:{rules:n.reduce((e,t)=>Object.assign(e,i(t,r)),{})},filePath:``,id:``,importerName:`--rulesdir`,importerPath:``})}}),a}function vt({cliConfigData:e,configArrayFactory:t,cwd:n,ignorePath:r,specificConfigPath:i}){let a=t.create(e,{name:`CLIOptions`});return a.unshift(...r?t.loadESLintIgnore(r):t.loadDefaultESLintIgnore()),i&&a.unshift(...t.loadFile(i,{name:`--config`,basePath:n})),a}var yt=class extends Error{constructor(e){super(`No ESLint configuration found in ${e}.`),this.messageTemplate=`no-config-found`,this.messageData={directoryPath:e}}},bt=class{constructor({additionalPluginPool:e=new Map,baseConfig:t=null,cliConfig:n=null,cwd:r=process.cwd(),ignorePath:i,resolvePluginsRelativeTo:a,rulePaths:o=[],specificConfigPath:s=null,useEslintrc:c=!0,builtInRules:l=new Map,loadRules:u,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h}={}){let g=new mt({additionalPluginPool:e,cwd:r,resolvePluginsRelativeTo:a,builtInRules:l,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h});gt.set(this,{baseConfigArray:_t({baseConfigData:t,configArrayFactory:g,cwd:r,rulePaths:o,loadRules:u}),baseConfigData:t,cliConfigArray:vt({cliConfigData:n,configArrayFactory:g,cwd:r,ignorePath:i,specificConfigPath:s}),cliConfigData:n,configArrayFactory:g,configCache:new Map,cwd:r,finalizeCache:new WeakMap,ignorePath:i,rulePaths:o,specificConfigPath:s,useEslintrc:c,builtInRules:l,loadRules:u})}get cwd(){let{cwd:e}=gt.get(this);return e}getConfigArrayForFile(e,{ignoreNotFoundError:t=!1}={}){let{baseConfigArray:n,cliConfigArray:r,cwd:i}=gt.get(this);if(!e)return new se(...n,...r);let a=b.default.dirname(b.default.resolve(i,e));return ht(`Load config files for ${a}.`),this._finalizeConfigArray(this._loadConfigInAncestors(a),a,t)}setOverrideConfig(e){let t=gt.get(this);t.cliConfigData=e}clearCache(){let e=gt.get(this);e.baseConfigArray=_t(e),e.cliConfigArray=vt(e),e.configCache.clear()}_loadConfigInAncestors(e,t=!1){let{baseConfigArray:n,configArrayFactory:r,configCache:i,cwd:a,useEslintrc:o}=gt.get(this);if(!o)return n;let s=i.get(e);if(s)return ht(`Cache hit: ${e}.`),s;ht(`No cache found: ${e}.`);let c=k.default.homedir();if(e===c&&a!==c){if(ht(`Stop traversing because of considered root.`),t){let t=mt.getPathToConfigFileInDirectory(e);t&&Ce(t,`ESLINT_PERSONAL_CONFIG_SUPPRESS`)}return this._cacheConfig(e,n)}try{s=r.loadInDirectory(e)}catch(t){if(t.code===`EACCES`)return ht(`Stop traversing because of 'EACCES' error.`),this._cacheConfig(e,n);throw t}if(s.length>0&&s.isRoot())return ht(`Stop traversing because of 'root:true'.`),s.unshift(...n),this._cacheConfig(e,s);let l=b.default.dirname(e),u=l&&l!==e?this._loadConfigInAncestors(l,t||s.length>0):n;return s.length>0?s.unshift(...u):s=u,this._cacheConfig(e,s)}_cacheConfig(e,t){let{configCache:n}=gt.get(this);return Object.freeze(t),n.set(e,t),t}_finalizeConfigArray(e,t,n){let{cliConfigArray:r,configArrayFactory:i,finalizeCache:a,useEslintrc:o,builtInRules:s}=gt.get(this),c=a.get(e);if(!c){if(c=e,o&&e.every(e=>!e.filePath)&&r.every(e=>!e.filePath)){let e=k.default.homedir();ht(`Loading the config file of the home directory:`,e);let n=i.loadInDirectory(e,{name:`PersonalConfig`});n.length>0&&!t.startsWith(e)&&Ce(n.at(-1).filePath,`ESLINT_PERSONAL_CONFIG_LOAD`),c=c.concat(n)}r.length>0&&(c=c.concat(r)),new He({builtInRules:s}).validateConfigArray(c),Object.freeze(c),a.set(e,c),ht(`Configuration was determined: %o on %s`,c,t)}if(!n&&o&&c.length<=1)throw new yt(t);return c}};let xt=g.default(`eslintrc:flat-compat`),St=Symbol(`cafactory`);function Ct(e,{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n,pluginEnvironments:r,pluginProcessors:i}){let a={},o=[],s={},c={},l=[`settings`,`rules`,`processor`],u=[`globals`,`parser`,`parserOptions`],d=[`noInlineConfig`,`reportUnusedDisableDirectives`];for(let t of l)t in e&&e[t]!==void 0&&(a[t]=e[t]);for(let n of u)if(n in e&&e[n]!==void 0){if(a.languageOptions=s,n===`parser`){if(xt(`Resolving parser '${s[n]}' relative to ${t}`),e[n].error)throw e[n].error;s[n]=e[n].definition;continue}e[n]&&typeof e[n]==`object`?s[n]={...e[n]}:s[n]=e[n]}for(let t of d)t in e&&e[t]!==void 0&&(a.linterOptions=c,c[t]=e[t]);if(s.parserOptions&&(`ecmaVersion`in s.parserOptions&&(s.ecmaVersion=s.parserOptions.ecmaVersion,delete s.parserOptions.ecmaVersion),`sourceType`in s.parserOptions&&(s.sourceType=s.parserOptions.sourceType,delete s.parserOptions.sourceType),Object.keys(s.parserOptions).length===0&&delete s.parserOptions),e.criteria&&(a.files=[t=>e.criteria.test(t)]),e.plugins&&typeof e.plugins==`object`){xt(`Translating plugins: ${e.plugins}`),a.plugins={};for(let t of Object.keys(e.plugins)){xt(`Translating plugin: ${t}`),xt(`Resolving plugin '${t} relative to ${n}`);let{original:r,error:s}=e.plugins[t];if(s)throw s;if(a.plugins[t]=r,r.processors)for(let e of Object.keys(r.processors))e.startsWith(`.`)&&(xt(`Assigning processor: ${t}/${e}`),o.unshift({files:[`**/*${e}`],processor:i.get(`${t}/${e}`)}))}}if(e.env&&typeof e.env==`object`)for(let i of Object.keys(e.env))e.env[i]&&(xt(`Translating environment: ${i}`),Fe.has(i)?o.unshift(...Ct({criteria:e.criteria,...Fe.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})):r.has(i)&&o.push(...Ct({criteria:e.criteria,...r.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})));return Object.keys(a).length>0&&o.push(a),o}var wt=class{constructor({baseDirectory:e=process.cwd(),resolvePluginsRelativeTo:t=e,recommendedConfig:n,allConfig:r}={}){this.baseDirectory=e,this.resolvePluginsRelativeTo=t,this[St]=new mt({cwd:e,resolvePluginsRelativeTo:t,getEslintAllConfig(){if(!r)throw TypeError(`Missing parameter 'allConfig' in FlatCompat constructor.`);let e={...r};return delete e.name,e},getEslintRecommendedConfig(){if(!n)throw TypeError(`Missing parameter 'recommendedConfig' in FlatCompat constructor.`);let e={...n};return delete e.name,e}})}config(e){let t=this[St].create(e,{basePath:this.baseDirectory}),n=[],r=!1;return t.forEach(e=>{e.type===`config`&&(r||=e.ignorePattern,n.push(...Ct(e,{resolveConfigRelativeTo:b.default.join(this.baseDirectory,`__placeholder.js`),resolvePluginsRelativeTo:b.default.join(this.resolvePluginsRelativeTo,`__placeholder.js`),pluginEnvironments:t.pluginEnvironments,pluginProcessors:t.pluginProcessors})))}),r&&n.unshift({ignores:[e=>{let n=t.extractConfig(e);return!!n.ignores&&n.ignores(e)}]}),n}env(e){return this.config({env:e})}extends(...e){return this.config({extends:e})}plugins(...e){return this.config({plugins:e})}};let Tt={ConfigArray:se,createConfigArrayFactoryContext:ft,CascadingConfigArrayFactory:bt,ConfigArrayFactory:mt,ConfigDependency:le,ExtractedConfig:R,IgnorePattern:I,OverrideTester:me,getUsedExtractedConfigs:ce,environments:Fe,loadConfigFile:ut,ConfigOps:xe,ConfigValidator:He,ModuleResolver:Xe,naming:qe};e.FlatCompat=wt,e.Legacy=Tt})),Pl=d(((e,t)=>{t.exports={name:`@eslint/js`,version:`9.39.2`,description:`ESLint JavaScript language implementation`,funding:`https://eslint.org/donate`,main:`./src/index.js`,types:`./types/index.d.ts`,scripts:{"test:types":`tsc -p tests/types/tsconfig.json`},files:[`LICENSE`,`README.md`,`src`,`types`],publishConfig:{access:`public`},repository:{type:`git`,url:`https://github.com/eslint/eslint.git`,directory:`packages/js`},homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,keywords:[`javascript`,`eslint-plugin`,`eslint`],license:`MIT`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),Fl=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"accessor-pairs":`error`,"array-callback-return":`error`,"arrow-body-style":`error`,"block-scoped-var":`error`,camelcase:`error`,"capitalized-comments":`error`,"class-methods-use-this":`error`,complexity:`error`,"consistent-return":`error`,"consistent-this":`error`,"constructor-super":`error`,curly:`error`,"default-case":`error`,"default-case-last":`error`,"default-param-last":`error`,"dot-notation":`error`,eqeqeq:`error`,"for-direction":`error`,"func-name-matching":`error`,"func-names":`error`,"func-style":`error`,"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-denylist":`error`,"id-length":`error`,"id-match":`error`,"init-declarations":`error`,"logical-assignment-operators":`error`,"max-classes-per-file":`error`,"max-depth":`error`,"max-lines":`error`,"max-lines-per-function":`error`,"max-nested-callbacks":`error`,"max-params":`error`,"max-statements":`error`,"new-cap":`error`,"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":`error`,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-console":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":`error`,"no-else-return":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-function":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":`error`,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":`error`,"no-implicit-globals":`error`,"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":`error`,"no-inner-declarations":`error`,"no-invalid-regexp":`error`,"no-invalid-this":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":`error`,"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":`error`,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":`error`,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-octal":`error`,"no-octal-escape":`error`,"no-param-reassign":`error`,"no-plusplus":`error`,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-restricted-exports":`error`,"no-restricted-globals":`error`,"no-restricted-imports":`error`,"no-restricted-properties":`error`,"no-restricted-syntax":`error`,"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":`error`,"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":`error`,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undef-init":`error`,"no-undefined":`error`,"no-underscore-dangle":`error`,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":`error`,"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-use-before-define":`error`,"no-useless-assignment":`error`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":`error`,"no-warning-comments":`error`,"no-with":`error`,"object-shorthand":`error`,"one-var":`error`,"operator-assignment":`error`,"prefer-arrow-callback":`error`,"prefer-const":`error`,"prefer-destructuring":`error`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":`error`,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,radix:`error`,"require-atomic-updates":`error`,"require-await":`error`,"require-unicode-regexp":`error`,"require-yield":`error`,"sort-imports":`error`,"sort-keys":`error`,"sort-vars":`error`,strict:`error`,"symbol-description":`error`,"unicode-bom":`error`,"use-isnan":`error`,"valid-typeof":`error`,"vars-on-top":`error`,yoda:`error`})})})),Il=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-octal":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`})})})),Ll=d(((e,t)=>{let{name:n,version:r}=Pl();t.exports={meta:{name:n,version:r},configs:{all:Fl(),recommended:Il()}}})),Rl=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i=Wo(),a=Lo(),o=G(),{Minimatch:s}=Uo(),{Legacy:{IgnorePattern:c,CascadingConfigArrayFactory:l}}=Nl(),u=S()(`eslint:file-enumerator`),d={dot:!0,matchBase:!0},f=/(?:^\.|[/\\]\.)[^/\\.].*/u,p=new WeakMap;function m(e){return a(r.sep===`\\`?e.replace(/\\/gu,`/`):e)}function g(e){try{return n.statSync(e)}catch(e){if(e.code!==`ENOENT`)throw e;return null}}function _(e){try{return n.readdirSync(e,{withFileTypes:!0})}catch(e){if(e.code!==`ENOENT`)throw e;return[]}}function v(e){if(e){let t=e.map(e=>o(e.startsWith(`.`)?e.slice(1):e));return RegExp(`.\\.(?:${t.join(`|`)})$`,`u`)}return null}var y=class extends Error{constructor(e,t){super(`No files matching '${e}' were found${t?` (glob was disabled)`:``}.`),this.messageTemplate=`file-not-found`,this.messageData={pattern:e,globDisabled:t}}},b=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-files-ignored`,this.messageData={pattern:e}}};t.exports={FileEnumerator:class{constructor({cwd:e=process.cwd(),configArrayFactory:t=new l({cwd:e,getEslintRecommendedConfig:()=>Ll().configs.recommended,getEslintAllConfig:()=>Ll().configs.all}),extensions:n=null,globInputPaths:r=!0,errorOnUnmatchedPattern:i=!0,ignore:a=!0}={}){p.set(this,{configArrayFactory:t,cwd:e,defaultIgnores:c.createDefaultIgnore(e),extensionRegExp:v(n),globInputPaths:r,errorOnUnmatchedPattern:i,ignoreFlag:a})}isTargetPath(e,t){let{configArrayFactory:n,extensionRegExp:r}=p.get(this);return r?r.test(e):e.endsWith(`.js`)?!0:(t||n.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).isAdditionalTargetPath(e)}*iterateFiles(e){let{globInputPaths:t,errorOnUnmatchedPattern:n}=p.get(this),r=Array.isArray(e)?e:[e];u(`Start to iterate files: %o`,r);let i=new Set;for(let e of r){let r=!1,o=!1;if(e){for(let{config:t,filePath:n,flag:a}of this._iterateFiles(e))r=!0,a!==1&&(o=!0,i.has(n)||(i.add(n),yield{config:t,filePath:n,ignored:a===2}));if(n){if(!r)throw new y(e,!t&&a(e));if(!o)throw new b(e)}}}u(`Complete iterating files: ${JSON.stringify(r)}`)}_iterateFiles(e){let{cwd:t,globInputPaths:n}=p.get(this),i=r.resolve(t,e),a=f.test(e),o=g(i);return o&&o.isDirectory()?this._iterateFilesWithDirectory(i,a):o&&o.isFile()?this._iterateFilesWithFile(i):n&&m(e)?this._iterateFilesWithGlob(e,a):[]}_iterateFilesWithFile(e){u(`File: ${e}`);let{configArrayFactory:t}=p.get(this),n=t.getConfigArrayForFile(e);return[{config:n,filePath:e,flag:this._isIgnoredFile(e,{config:n,direct:!0})?2:0}]}_iterateFilesWithDirectory(e,t){return u(`Directory: ${e}`),this._iterateFilesRecursive(e,{dotfiles:t,recursive:!0,selector:null})}_iterateFilesWithGlob(e,t){u(`Glob: ${e}`);let{cwd:n}=p.get(this),a=r.resolve(n,i(e)),o=r.resolve(n,e),c=o.slice(a.length+1),l=/\*\*|\/|\\/u.test(c),f=new s(o,d);return u(`recursive? ${l}`),this._iterateFilesRecursive(a,{dotfiles:t,recursive:l,selector:f})}*_iterateFilesRecursive(e,t){u(`Enter the directory: ${e}`);let{configArrayFactory:n}=p.get(this),i=null;for(let a of _(e)){let o=r.join(e,a.name),s=a.isSymbolicLink()?g(o):a;if(s)if(s.isFile())if(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),t.selector?t.selector.match(o):this.isTargetPath(o,i)){let e=this._isIgnoredFile(o,{...t,config:i}),r=e?1:0;u(`Yield: ${a.name}${e?` but ignored`:``}`),yield{config:n.getConfigArrayForFile(o),filePath:o,flag:r}}else u(`Didn't match: ${a.name}`);else t.recursive&&s.isDirectory()&&(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),this._isIgnoredFile(o+r.sep,{...t,config:i})||(yield*this._iterateFilesRecursive(o,t)))}u(`Leave the directory: ${e}`)}_isIgnoredFile(e,{config:t,dotfiles:n=!1,direct:r=!1}){let{configArrayFactory:i,defaultIgnores:a,ignoreFlag:o}=p.get(this);return o?((t||i.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).extractConfig(e).ignores||a)(e,n):!r&&a(e,n)}}}})),zl=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i={};t.exports=function(e,t){let a=r.resolve(t,e);if(i[a])return i[a];let o=Object.create(null);return n.readdirSync(a).forEach(e=>{r.extname(e)===`.js`&&(o[e.slice(0,-3)]=h(r.join(a,e)))}),i[a]=o,o}})),Bl=d(((e,t)=>{V();let n=h(`node:fs`),r=h(`node:path`),i=Dl(),a=C(),{Legacy:{ConfigOps:o,naming:s,CascadingConfigArrayFactory:c,IgnorePattern:l,getUsedExtractedConfigs:u,ModuleResolver:d}}=Nl(),{FileEnumerator:f}=Rl(),{Linter:p}=_c(),m=Ua(),g=zl(),_=zo(),v=Dc(),y=S()(`eslint:cli-engine`),b=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),x=new Set([`directive`,`problem`,`suggestion`,`layout`]),w=new WeakMap;function T(e){for(let t of e)if(!x.has(t))throw Error(`Invalid fix type "${t}" found.`)}function E(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];r.fatal||r.severity===2?(t.errorCount++,r.fatal&&t.fatalErrorCount++,r.fix&&t.fixableErrorCount++):(t.warningCount++,r.fix&&t.fixableWarningCount++)}return t}function D(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];t.errorCount+=r.errorCount,t.fatalErrorCount+=r.fatalErrorCount,t.warningCount+=r.warningCount,t.fixableErrorCount+=r.fixableErrorCount,t.fixableWarningCount+=r.fixableWarningCount}return t}function O({text:e,cwd:t,filePath:n,config:i,fix:a,allowInlineConfig:o,reportUnusedDisableDirectives:s,fileEnumerator:c,linter:l}){let u=n||`<text>`;y(`Lint ${u}`);let d=u===`<text>`?r.join(t,u):u,{fixed:f,messages:p,output:m}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:d,fix:a,reportUnusedDisableDirectives:s,filterCodeBlock(e){return c.isTargetPath(e)}}),h={filePath:u,messages:p,suppressedMessages:l.getSuppressedMessages(),...E(p)};return f&&(h.output=m),h.errorCount+h.warningCount>0&&h.output===void 0&&(h.source=e),h}function k(e,t){let n,i=e.split(r.sep).find(e=>/^\./u.test(e)),a=t&&r.relative(t,e).startsWith(`node_modules`);return n=i?`File ignored by default. Use a negated ignore pattern (like "--ignore-pattern '!<relative/path/to/filename>'") to override.`:a?`File ignored by default. Use "--ignore-pattern '!node_modules/*'" to override.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to override.`,{filePath:r.resolve(e),messages:[{ruleId:null,fatal:!1,severity:1,message:n,nodeType:null}],suppressedMessages:[],errorCount:0,fatalErrorCount:0,warningCount:1,fixableErrorCount:0,fixableWarningCount:0}}function A(e,t){for(let n of t){let t=n.pluginRules.get(e);if(t)return t}return m.get(e)||null}function j(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&A(e.ruleId,t);return!!(r&&r.meta&&n.has(r.meta.type))}function*M(e){let t=new Set,n=e.flatMap(u);for(let r of n)for(let[n,i]of Object.entries(r.rules)){if(t.has(n)||(t.add(n),!o.getRuleSeverity(i)))continue;let r=A(n,e);r&&r.meta&&r.meta.deprecated&&(yield{ruleId:n,replacedBy:r.meta.replacedBy||[]})}}function N(e){return e.severity===2}function P(e,t){let i=r.normalize(e),a=r.resolve(t,i),o=i.slice(-1)===r.sep;function s(){return r.join(a,`.cache_${_(t)}`)}let c;try{c=n.lstatSync(a)}catch{c=null}return c?c.isDirectory()||o?s():a:o?s():a}function F(e,t,n){if(e&&!Array.isArray(e))throw Error(`${n} must be an array.`);if(e&&e.length>0)return e.reduce((e,n)=>{let[r,i]=n.split(`:`);return r!==`__proto__`&&(e[r]=i===void 0?t:i===`true`),e},{})}function I(e){let{ignorePattern:t,parser:n,parserOptions:r,plugins:i,rules:a}=e,o=F(e.envs,!0,`envs`),s=F(e.globals,!1,`globals`);return o===void 0&&s===void 0&&(t===void 0||t.length===0)&&n===void 0&&r===void 0&&i===void 0&&a===void 0?null:{env:o,globals:s,ignorePatterns:t,parser:n,parserOptions:r,plugins:i,rules:a}}function L(e){try{return n.statSync(e).isDirectory()}catch(e){if(e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return!1;throw e}}var R=class{constructor(e,{preloadedPlugins:t}={}){let n=Object.assign(Object.create(null),i,{cwd:process.cwd()},e);n.fix===void 0&&(n.fix=!1);let r=new Map;if(t)for(let[e,n]of Object.entries(t))r.set(e,n);let a=P(n.cacheLocation||n.cacheFile,n.cwd),o=new c({additionalPluginPool:r,baseConfig:n.baseConfig||null,cliConfig:I(n),cwd:n.cwd,ignorePath:n.ignorePath,resolvePluginsRelativeTo:n.resolvePluginsRelativeTo,rulePaths:n.rulePaths,specificConfigPath:n.configFile,useEslintrc:n.useEslintrc,builtInRules:m,loadRules:g,getEslintRecommendedConfig:()=>Ll().configs.recommended,getEslintAllConfig:()=>Ll().configs.all}),s=new f({configArrayFactory:o,cwd:n.cwd,extensions:n.extensions,globInputPaths:n.globInputPaths,errorOnUnmatchedPattern:n.errorOnUnmatchedPattern,ignore:n.ignore}),u=n.cache?new v(a,n.cacheStrategy):null,d=new p({cwd:n.cwd,configType:`eslintrc`}),h=[o.getConfigArrayForFile()];if(w.set(this,{additionalPluginPool:r,cacheFilePath:a,configArrayFactory:o,defaultIgnores:l.createDefaultIgnore(n.cwd),fileEnumerator:s,lastConfigArrays:h,lintResultCache:u,linter:d,options:n}),n.fix&&n.fixTypes&&n.fixTypes.length>0){y(`Using fix types ${n.fixTypes}`),T(n.fixTypes);let e=new Set(n.fixTypes),t=typeof n.fix==`function`?n.fix:()=>!0;n.fix=n=>j(n,h,e)&&t(n)}}getRules(){let{lastConfigArrays:e}=w.get(this);return new Map((function*(){yield*m;for(let t of e)yield*t.pluginRules})())}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(N),r=e.suppressedMessages.filter(N);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static outputFixes(e){e.results.filter(e=>Object.hasOwn(e,`output`)).forEach(e=>{n.writeFileSync(e.filePath,e.output)})}resolveFileGlobPatterns(e){let{options:t}=w.get(this);if(t.globInputPaths===!1)return e.filter(Boolean);let n=`/**/*.{${(t.extensions||[`.js`]).map(e=>e.replace(/^\./u,``)).join(`,`)}}`;return e.filter(Boolean).map(e=>{let i=L(r.resolve(t.cwd,e))?e.replace(/[/\\]$/u,``)+n:e;return r.normalize(i).replace(/\\/gu,`/`)})}executeOnFiles(e){let{cacheFilePath:t,fileEnumerator:r,lastConfigArrays:i,lintResultCache:a,linter:o,options:{allowInlineConfig:s,cache:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now();if(i.length=0,!c)try{n.unlinkSync(t)}catch(e){let r=e&&e.code;if(r!==`ENOENT`&&!(r===`EROFS`&&!n.existsSync(t)))throw e}for(let{config:t,filePath:c,ignored:p}of r.iterateFiles(e)){if(p){f.push(k(c,l));continue}if(i.includes(t)||i.push(t),a){let e=a.getCachedLintResults(c,t);if(e)if(e.messages&&e.messages.length>0&&u)y(`Reprocessing cached file to allow autofix: ${c}`);else{y(`Skipping file since it hasn't changed: ${c}`),f.push(e);continue}}let e=O({text:n.readFileSync(c,`utf8`),filePath:c,config:t,cwd:l,fix:u,allowInlineConfig:s,reportUnusedDisableDirectives:d,fileEnumerator:r,linter:o});f.push(e),a&&a.setCachedLintResults(c,t,e)}a&&a.reconcile(),y(`Linting complete in: ${Date.now()-p}ms`);let m;return{results:f,...D(f),get usedDeprecatedRules(){return m||=Array.from(M(i)),m}}}executeOnText(e,t,n){let{configArrayFactory:i,fileEnumerator:a,lastConfigArrays:o,linter:s,options:{allowInlineConfig:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now(),m=t&&r.resolve(l,t);if(o.length=0,m&&this.isPathIgnored(m))n&&f.push(k(m,l));else{let t=i.getConfigArrayForFile(m||`__placeholder__.js`);o.push(t),f.push(O({text:e,filePath:m,config:t,cwd:l,fix:u,allowInlineConfig:c,reportUnusedDisableDirectives:d,fileEnumerator:a,linter:s}))}y(`Linting complete in: ${Date.now()-p}ms`);let h;return{results:f,...D(f),get usedDeprecatedRules(){return h||=Array.from(M(o)),h}}}getConfigForFile(e){let{configArrayFactory:t,options:n}=w.get(this),i=r.resolve(n.cwd,e);if(L(i))throw Object.assign(Error(`'filePath' should not be a directory path.`),{messageTemplate:`print-config-with-directory-path`});return t.getConfigArrayForFile(i).extractConfig(i).toCompatibleObjectAsConfigFileContent()}isPathIgnored(e){let{configArrayFactory:t,defaultIgnores:n,options:{cwd:i,ignore:a}}=w.get(this),o=r.resolve(i,e);return a?(t.getConfigArrayForFile(o).extractConfig(o).ignores||n)(o):n(o)}getFormatter(e){let t=e||`stylish`;if(typeof t==`string`){let n=t.replace(/\\/gu,`/`),i=w.get(this),a=i?i.options.cwd:process.cwd(),o=s.getNamespaceFromTerm(n),c;if(!o&&n.includes(`/`))c=r.resolve(a,n);else try{let e=s.normalizePackageName(n,`eslint-formatter`);c=d.resolve(e,r.join(a,`__placeholder__.js`))}catch{c=r.resolve(z,`formatters`,n)}try{return h(c)}catch(t){throw b.has(e)?t.message=`The ${e} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${e}\``:t.message=`There was a problem loading formatter: ${c}\nError: ${t.message}`,t}}else return null}};R.version=a.version,R.getFormatter=R.prototype.getFormatter,t.exports={CLIEngine:R,getCLIEngineInternalSlots(e){return w.get(e)}}})),Vl=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{promisify:i}=h(`node:util`),{CLIEngine:a,getCLIEngineInternalSlots:o}=Bl(),s=Ua(),{Legacy:{ConfigOps:{getRuleSeverity:c}}}=Nl(),{version:l}=C(),u=i(r.writeFile),d=new WeakMap;function f(e){return typeof e==`string`&&e.trim()!==``}function p(e){return Array.isArray(e)&&e.length&&e.every(f)}function m(e){return Array.isArray(e)&&e.every(f)}function g(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function _(e){return Array.isArray(e)&&e.every(g)}var v=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
107
- - `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function y({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,cwd:o=process.cwd(),errorOnUnmatchedPattern:s=!0,extensions:c=null,fix:l=!1,fixTypes:u=null,flags:d,globInputPaths:p=!0,ignore:h=!0,ignorePath:g=null,overrideConfig:y=null,overrideConfigFile:b=null,plugins:x={},reportUnusedDisableDirectives:S=null,resolvePluginsRelativeTo:C=null,rulePaths:w=[],useEslintrc:T=!0,passOnNoPatterns:E=!1,...D}){let O=[],k=Object.keys(D);if(k.length>=1&&(O.push(`Unknown options: ${k.join(`, `)}`),k.includes(`cacheFile`)&&O.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),k.includes(`configFile`)&&O.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),k.includes(`envs`)&&O.push(`'envs' has been removed. Please use the 'overrideConfig.env' option instead.`),k.includes(`globals`)&&O.push(`'globals' has been removed. Please use the 'overrideConfig.globals' option instead.`),k.includes(`ignorePattern`)&&O.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),k.includes(`parser`)&&O.push(`'parser' has been removed. Please use the 'overrideConfig.parser' option instead.`),k.includes(`parserOptions`)&&O.push(`'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead.`),k.includes(`rules`)&&O.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`)),typeof e!=`boolean`&&O.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&O.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&O.push(`'cache' must be a boolean.`),f(i)||O.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&O.push(`'cacheStrategy' must be any of "metadata", "content".`),(!f(o)||!n.isAbsolute(o))&&O.push(`'cwd' must be an absolute path.`),typeof s!=`boolean`&&O.push(`'errorOnUnmatchedPattern' must be a boolean.`),!m(c)&&c!==null&&O.push(`'extensions' must be an array of non-empty strings or null.`),typeof l!=`boolean`&&typeof l!=`function`&&O.push(`'fix' must be a boolean or a function.`),u!==null&&!_(u)&&O.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),typeof p!=`boolean`&&O.push(`'globInputPaths' must be a boolean.`),typeof h!=`boolean`&&O.push(`'ignore' must be a boolean.`),!f(g)&&g!==null&&O.push(`'ignorePath' must be a non-empty string or null.`),typeof y!=`object`&&O.push(`'overrideConfig' must be an object or null.`),!f(b)&&b!==null&&O.push(`'overrideConfigFile' must be a non-empty string or null.`),typeof x==`object`?x!==null&&Object.keys(x).includes(``)&&O.push(`'plugins' must not include an empty string.`):O.push(`'plugins' must be an object or null.`),Array.isArray(x)&&O.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),S!==`error`&&S!==`warn`&&S!==`off`&&S!==null&&O.push(`'reportUnusedDisableDirectives' must be any of "error", "warn", "off", and null.`),!f(C)&&C!==null&&O.push(`'resolvePluginsRelativeTo' must be a non-empty string or null.`),m(w)||O.push(`'rulePaths' must be an array of non-empty strings.`),typeof T!=`boolean`&&O.push(`'useEslintrc' must be a boolean.`),typeof E!=`boolean`&&O.push(`'passOnNoPatterns' must be a boolean.`),O.length>0)throw new v(O);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,configFile:b,cwd:n.normalize(o),errorOnUnmatchedPattern:s,extensions:c,fix:l,fixTypes:u,flags:[],globInputPaths:p,ignore:h,ignorePath:g,reportUnusedDisableDirectives:S,resolvePluginsRelativeTo:C,rulePaths:w,useEslintrc:T,passOnNoPatterns:E}}function b(e){if(typeof e==`object`&&e){for(let t in e)if(e[t]!==void 0)return!0}return!1}function x(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let S=new WeakMap;function w(e,t){let{configArrayFactory:r,options:{cwd:i}}=o(e),a=n.isAbsolute(t)?t:n.join(i,`__placeholder__.js`),l=r.getConfigArrayForFile(a),u=l.extractConfig(a);if(!S.has(u)){let e=l.pluginRules,t=[];for(let[n,r]of Object.entries(u.rules)){if(c(r)===0)continue;let i=e.get(n)||s.get(n),a=i&&i.meta;a&&a.deprecated&&t.push({ruleId:n,replacedBy:a.replacedBy||[]})}S.set(u,Object.freeze(t))}return S.get(u)}function T(e,{results:t}){let n={configurable:!0,enumerable:!0,get(){return w(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function E(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}t.exports={LegacyESLint:class{static configType=`eslintrc`;constructor(e={}){let t=y(e),n=new a(t,{preloadedPlugins:e.plugins}),{configArrayFactory:r,lastConfigArrays:i}=o(n),s=!1;b(e.overrideConfig)&&(r.setOverrideConfig(e.overrideConfig),s=!0),s&&(r.clearCache(),i[0]=r.getConfigArrayForFile()),d.set(this,{cliEngine:n,options:t})}static get version(){return l}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&n.isAbsolute(e.filePath)}).map(e=>u(e.filePath,e.output)))}static getErrorResults(e){return a.getErrorResults(e)}getRulesMetaForResults(e){let t=new Set;for(let n of e){for(let{ruleId:e}of n.messages)t.add(e);for(let{ruleId:e}of n.suppressedMessages)t.add(e)}let{cliEngine:n}=d.get(this),r=n.getRules(),i=new Map;for(let[e,n]of r)t.has(e)&&i.set(e,n);return x(i)}hasFlag(e){return!1}async lintFiles(e){let{cliEngine:t,options:n}=d.get(this);if(n.passOnNoPatterns&&(e===``||Array.isArray(e)&&e.length===0))return[];if(!f(e)&&!p(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);return T(t,t.executeOnFiles(e))}async lintText(e,t={}){if(typeof e!=`string`)throw Error(`'code' must be a string`);if(typeof t!=`object`)throw Error(`'options' must be an object, null, or undefined`);let{filePath:n,warnIgnored:r=!1,...i}=t||{},a=Object.keys(i);if(a.length>0)throw Error(`'options' must not include the unknown option(s): ${a.join(`, `)}`);if(n!==void 0&&!f(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{cliEngine:o}=d.get(this);return T(o,o.executeOnText(e,n,r))}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let{cliEngine:t,options:n}=d.get(this),r=t.getFormatter(e);if(typeof r!=`function`)throw Error(`Formatter must be a function, but got a ${typeof r}.`);return{format(e,i){let a=null;return e.sort(E),r(e,{...i,get cwd(){return n.cwd},get rulesMeta(){return a||=x(t.getRules()),a}})}}}async calculateConfigForFile(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.getConfigForFile(e)}async isPathIgnored(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.isPathIgnored(e)}},getESLintPrivateMembers(e){return d.get(e)}}})),Hl=d(((e,t)=>{let{ESLint:n}=El(),{LegacyESLint:r}=Vl();t.exports={ESLint:n,LegacyESLint:r}})),Ul=d(((e,t)=>{var n=Array.prototype.slice,r=typeof Object.keys==`function`?Object.keys:function(e){var t=[];for(var n in e)t.push(n);return t},i=t.exports=function(e,t){return e===0&&t===0?c(e,t):e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():s(e)?s(t):typeof e!=`object`&&typeof t!=`object`?e==t:l(e,t)};function a(e){return e==null}function o(e){return Object.prototype.toString.call(e)==`[object Arguments]`}function s(e){return typeof e==`number`&&e!==e}function c(e,t){return 1/e==1/t}function l(e,t){if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(o(e))return o(t)?(e=n.call(e),t=n.call(t),i(e,t)):!1;try{var s=r(e),c=r(t),l,u}catch{return!1}if(s.length!=c.length)return!1;for(s.sort(),c.sort(),u=s.length-1;u>=0;u--)if(s[u]!=c[u])return!1;for(u=s.length-1;u>=0;u--)if(l=s[u],!i(e[l],t[l]))return!1;return!0}})),Wl=d(((e,t)=>{(function(){var n;try{n=typeof Intl<`u`&&Intl.Collator!==void 0?Intl.Collator(`generic`,{sensitivity:`base`}):null}catch{console.log(`Collator could not be initialized and wouldn't be used`)}var r=[],i=[],a={get:function(e,t,a){var o=a&&n&&a.useCollator,s=e.length,c=t.length;if(s===0)return c;if(c===0)return s;var l,u,d,f,p;for(d=0;d<c;++d)r[d]=d,i[d]=t.charCodeAt(d);r[c]=c;var m;if(o)for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=n.compare(e.charAt(d),String.fromCharCode(i[f]))===0,u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}else for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=e.charCodeAt(d)===i[f],u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}return u}};typeof define<`u`&&define!==null&&define.amd?define(function(){return a}):t!=null&&e!==void 0&&t.exports===e?t.exports=a:typeof self<`u`&&typeof self.postMessage==`function`&&typeof self.importScripts==`function`?self.Levenshtein=a:typeof window<`u`&&window!==null&&(window.Levenshtein=a)})()})),Gl=d(((e,t)=>{(function(){var e=_o(),n=e.map,r=e.sortBy,i=Wl();t.exports={closestString:function(e,t){var a,o,s;if(e.length)return a=n(function(e){var n=t.length>e.length?[t,e]:[e,t],r=n[0],a=n[1];return{string:e,distance:i.get(r,a)}})(e),o=r(function(e){return e.distance},a)[0],s=o.string,o.distance,s},nameToRaw:function(e){return e.length===1||e===`NUM`?`-`+e:`--`+e},dasherize:function(t){return/^[A-Z]/.test(t)?t:e.dasherize(t)},naturalJoin:function(e){return e.length<3?e.join(` or `):e.slice(0,-1).join(`, `)+`, or `+e[e.length-1]}}}).call(e)})),Kl=d(((e,t)=>{function n(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function r(e){return e.split(`
276
+ `)l=!1,d+=s(e,u,t),u=t;else if(!l&&i+a===`/*`){d+=e.slice(u,t),u=t,l=r,t++;continue}else if(l===r&&i+a===`*/`){t++,l=!1,d+=s(e,u,t+1),u=t+1;continue}}}return d+(l?s(e.slice(u)):e.slice(u))}})),Kl=d((e=>{V(),Object.defineProperty(e,`__esModule`,{value:!0});var t=S(),n=h(`node:fs`),r=Wl(),i=h(`node:module`),a=h(`node:path`),o=Gl(),s=h(`node:assert`),c=Pr(),l=h(`node:util`),u=ns(),d=Xs(),f=Qs(),p=h(`node:os`);function m(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var g=m(t),_=m(n),v=m(r),y=m(i),b=m(a),x=m(o),C=m(s),w=m(c),T=m(l),E=m(u),D=m(d),O=m(f),k=m(p);let A=g.default(`eslintrc:ignore-pattern`);function j(e){let t=e[0];for(let n=1;n<e.length;++n){let r=t,i=e[n];t=r.length<i.length?r:i;for(let e=0,n=0;e<r.length&&e<i.length;++e){if(r[e]!==i[e]){t=r.slice(0,n);break}r[e]===b.default.sep&&(n=e)}}let n=t||b.default.sep;return n&&n.endsWith(`:`)&&process.platform===`win32`&&(n+=b.default.sep),n}function M(e,t){let n=b.default.relative(e,t);return b.default.sep===`/`?n:n.split(b.default.sep).join(`/`)}function N(e){return e.endsWith(b.default.sep)||process.platform===`win32`&&e.endsWith(`/`)?`/`:``}let P=Object.freeze([`/**/node_modules/*`]),F=Object.freeze([`.*`,`!.eslintrc.*`,`!../`]);var I=class e{static get DefaultPatterns(){return P}static createDefaultIgnore(t){return this.createIgnore([new e(P,t)])}static createIgnore(e){A(`Create with: %o`,e);let t=j(e.map(e=>e.basePath)),n=e.flatMap(e=>e.getPatternsRelativeTo(t)),r=w.default({allowRelativePaths:!0}).add([...F,...n]),i=w.default({allowRelativePaths:!0}).add(n);return A(` processed: %o`,{basePath:t,patterns:n}),Object.assign((e,n=!1)=>{C.default(b.default.isAbsolute(e),`'filePath' should be an absolute path.`);let a=M(t,e),o=a&&a+N(e),s=o!==``&&(n?i:r).ignores(o);return A(`Check`,{filePath:e,dot:n,relativePath:o,result:s}),s},{basePath:t,patterns:n})}constructor(e,t){C.default(b.default.isAbsolute(t),`'basePath' should be an absolute path.`),this.patterns=e,this.basePath=t,this.loose=!1}getPatternsRelativeTo(e){C.default(b.default.isAbsolute(e),`'newBasePath' should be an absolute path.`);let{basePath:t,loose:n,patterns:r}=this;if(e===t)return r;let i=`/${M(e,t)}`;return r.map(e=>{let t=e.startsWith(`!`),r=t?`!`:``,a=t?e.slice(1):e;return a.startsWith(`/`)||a.startsWith(`../`)?`${r}${i}${a}`:n?e:`${r}${i}/**/${a}`})}};function L(e,t){return e.length>=t.length&&t.every((t,n)=>t===e[n])}var R=class{constructor(){this.configNameOfNoInlineConfig=``,this.env={},this.globals={},this.ignores=void 0,this.noInlineConfig=void 0,this.parser=null,this.parserOptions={},this.plugins={},this.processor=null,this.reportUnusedDisableDirectives=void 0,this.rules={},this.settings={}}toCompatibleObjectAsConfigFileContent(){let{configNameOfNoInlineConfig:e,processor:t,ignores:n,...r}=this;return r.parser=r.parser&&r.parser.filePath,r.plugins=Object.keys(r.plugins).filter(Boolean).reverse(),r.ignorePatterns=n?n.patterns:[],L(r.ignorePatterns,I.DefaultPatterns)&&(r.ignorePatterns=r.ignorePatterns.slice(I.DefaultPatterns.length)),r}};let z=new class extends WeakMap{get(e){let t=super.get(e);return t||(t={cache:new Map,envMap:null,processorMap:null,ruleMap:null},super.set(e,t)),t}};function H(e,t){let n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];(!i.criteria||t&&i.criteria.test(t))&&n.push(r)}return n}function U(e){return typeof e==`object`&&!!e}function ee(e,t){if(U(t))for(let n of Object.keys(t))n!==`__proto__`&&(U(e[n])?ee(e[n],t[n]):e[n]===void 0&&(U(t[n])?(e[n]=Array.isArray(t[n])?[]:{},ee(e[n],t[n])):t[n]!==void 0&&(e[n]=t[n])))}var W=class extends Error{constructor(e,t){super(`Plugin "${e}" was conflicted between ${t.map(e=>`"${e.importerName}"`).join(` and `)}.`),this.messageTemplate=`plugin-conflict`,this.messageData={pluginId:e,plugins:t}}};function te(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];if(r===void 0){if(i.error)throw i.error;e[n]=i}else if(i.filePath!==r.filePath)throw new W(n,[{filePath:r.filePath,importerName:r.importerName},{filePath:i.filePath,importerName:i.importerName}])}}function ne(e,t){if(U(t))for(let n of Object.keys(t)){if(n===`__proto__`)continue;let r=e[n],i=t[n];r===void 0?Array.isArray(i)?e[n]=[...i]:e[n]=[i]:r.length===1&&Array.isArray(i)&&i.length>=2&&r.push(...i.slice(1))}}function re(e,t){let n=new R,r=[];for(let i of t){let t=e[i];if(!n.parser&&t.parser){if(t.parser.error)throw t.parser.error;n.parser=t.parser}!n.processor&&t.processor&&(n.processor=t.processor),n.noInlineConfig===void 0&&t.noInlineConfig!==void 0&&(n.noInlineConfig=t.noInlineConfig,n.configNameOfNoInlineConfig=t.name),n.reportUnusedDisableDirectives===void 0&&t.reportUnusedDisableDirectives!==void 0&&(n.reportUnusedDisableDirectives=t.reportUnusedDisableDirectives),t.ignorePattern&&r.push(t.ignorePattern),ee(n.env,t.env),ee(n.globals,t.globals),ee(n.parserOptions,t.parserOptions),ee(n.settings,t.settings),te(n.plugins,t.plugins),ne(n.rules,t.rules)}return r.length>0&&(n.ignores=I.createIgnore(r.reverse())),n}function ie(e,t,n){if(t){let r=e&&`${e}/`;for(let[e,i]of Object.entries(t))n.set(`${r}${e}`,i)}}function ae(e){Object.defineProperties(e,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},set:{configurable:!0,value:void 0}})}function oe(e,t){let n=new Set;t.envMap=new Map,t.processorMap=new Map,t.ruleMap=new Map;for(let r of e)if(r.plugins)for(let[e,i]of Object.entries(r.plugins)){let r=i.definition;!r||n.has(e)||(n.add(e),ie(e,r.environments,t.envMap),ie(e,r.processors,t.processorMap),ie(e,r.rules,t.ruleMap))}ae(t.envMap),ae(t.processorMap),ae(t.ruleMap)}function G(e){let t=z.get(e);return t.ruleMap||oe(e,t),t}var se=class extends Array{get pluginEnvironments(){return G(this).envMap}get pluginProcessors(){return G(this).processorMap}get pluginRules(){return G(this).ruleMap}isRoot(){for(let e=this.length-1;e>=0;--e){let t=this[e].root;if(typeof t==`boolean`)return t}return!1}extractConfig(e){let{cache:t}=z.get(this),n=H(this,e),r=n.join(`,`);return t.has(r)||t.set(r,re(this,n)),t.get(r)}isAdditionalTargetPath(e){for(let{criteria:t,type:n}of this)if(n===`config`&&t&&!t.endsWithWildcard&&t.test(e))return!0;return!1}};function ce(e){let{cache:t}=z.get(e);return Array.from(t.values())}var le=class{constructor({definition:e=null,original:t=null,error:n=null,filePath:r=null,id:i,importerName:a,importerPath:o}){this.definition=e,this.original=t,this.error=n,this.filePath=r,this.id=i,this.importerName=a,this.importerPath=o}toJSON(){let e=this[T.default.inspect.custom]();return e.error instanceof Error&&(e.error={...e.error,message:e.error.message}),e}[T.default.inspect.custom](){let{definition:e,original:t,...n}=this;return n}};let{Minimatch:K}=E.default,ue={dot:!0,matchBase:!0};function de(e){return Array.isArray(e)?e.filter(Boolean):typeof e==`string`&&e?[e]:[]}function fe(e){return e.length===0?null:e.map(e=>/^\.[/\\]/u.test(e)?new K(e.slice(2),{...ue,matchBase:!1}):new K(e,ue))}function pe({includes:e,excludes:t}){return{includes:e&&e.map(e=>e.pattern),excludes:t&&t.map(e=>e.pattern)}}var me=class e{static create(t,n,r){let i=de(t),a=de(n),o=!1;if(i.length===0)return null;for(let e of i){if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);e.endsWith(`*`)&&(o=!0)}for(let e of a)if(b.default.isAbsolute(e)||e.includes(`..`))throw Error(`Invalid override pattern (expected relative path not containing '..'): ${e}`);return new e([{includes:fe(i),excludes:fe(a)}],r,o)}static and(t,n){return n?t?(C.default.strictEqual(t.basePath,n.basePath),new e(t.patterns.concat(n.patterns),t.basePath,t.endsWithWildcard||n.endsWithWildcard)):new e(n.patterns,n.basePath,n.endsWithWildcard):t&&new e(t.patterns,t.basePath,t.endsWithWildcard)}constructor(e,t,n=!1){this.patterns=e,this.basePath=t,this.endsWithWildcard=n}test(e){if(typeof e!=`string`||!b.default.isAbsolute(e))throw Error(`'filePath' should be an absolute path, but got ${e}.`);let t=b.default.relative(this.basePath,e);return this.patterns.every(({includes:e,excludes:n})=>(!e||e.some(e=>e.match(t)))&&(!n||!n.some(e=>e.match(t))))}toJSON(){return this.patterns.length===1?{...pe(this.patterns[0]),basePath:this.basePath}:{AND:this.patterns.map(pe),basePath:this.basePath}}[T.default.inspect.custom](){return this.toJSON()}};let he=[`off`,`warn`,`error`],ge=he.reduce((e,t,n)=>(e[t]=n,e),{}),q=new Set([0,1,2,`off`,`warn`,`error`]);function _e(e){let t=Array.isArray(e)?e[0]:e;return t===0||t===1||t===2?t:typeof t==`string`&&ge[t.toLowerCase()]||0}function J(e){e.rules&&Object.keys(e.rules).forEach(t=>{let n=e.rules[t];typeof n==`number`?e.rules[t]=he[n]||he[0]:Array.isArray(n)&&typeof n[0]==`number`&&(n[0]=he[n[0]]||he[0])})}function ve(e){return _e(e)===2}function Y(e){let t=Array.isArray(e)?e[0]:e;return typeof t==`string`&&(t=t.toLowerCase()),q.has(t)}function ye(e){return Object.keys(e).every(t=>Y(e[t]))}function be(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var xe={__proto__:null,getRuleSeverity:_e,normalizeToStrings:J,isErrorSeverity:ve,isValidSeverity:Y,isEverySeverityValid:ye,normalizeConfigGlobal:be};let Se={ESLINT_LEGACY_ECMAFEATURES:`The 'ecmaFeatures' config file property is deprecated and has no effect.`,ESLINT_PERSONAL_CONFIG_LOAD:`'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.`,ESLINT_PERSONAL_CONFIG_SUPPRESS:`'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally.`},X=new Set;function Ce(e,t){let n=JSON.stringify({source:e,errorCode:t});if(X.has(n))return;X.add(n);let r=b.default.relative(process.cwd(),e),i=Se[t];process.emitWarning(`${i} (found in "${r}")`,`DeprecationWarning`,t)}let Z={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}};var we=(e={})=>{let t=new D.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(Z),t._opts.defaultMeta=Z.id,t};function Te(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ee(e,t){if(t===void 0)return e;if(!Te(e)||!Te(t))return t;let n={...e,...t};for(let r of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=Ee(e[r],t[r]));return n}function De(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>Ee(e,t[n])),...t.slice(e.length)]}let Oe={$schema:{type:`string`},env:{type:`object`},extends:{$ref:`#/definitions/stringOrStrings`},globals:{type:`object`},overrides:{type:`array`,items:{$ref:`#/definitions/overrideConfig`},additionalItems:!1},parser:{type:[`string`,`null`]},parserOptions:{type:`object`},plugins:{type:`array`},processor:{type:`string`},rules:{type:`object`},settings:{type:`object`},noInlineConfig:{type:`boolean`},reportUnusedDisableDirectives:{type:`boolean`},ecmaFeatures:{type:`object`}},ke={definitions:{stringOrStrings:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:`string`},{type:`array`,items:{type:`string`},additionalItems:!1,minItems:1}]},objectConfig:{type:`object`,properties:{root:{type:`boolean`},ignorePatterns:{$ref:`#/definitions/stringOrStrings`},...Oe},additionalProperties:!1},overrideConfig:{type:`object`,properties:{excludedFiles:{$ref:`#/definitions/stringOrStrings`},files:{$ref:`#/definitions/stringOrStringsRequired`},...Oe},required:[`files`],additionalProperties:!1}},$ref:`#/definitions/objectConfig`};function Ae(e,t){let n={};for(let[r,i]of Object.entries(e))Object.hasOwn(t,r)||(n[r]=i);return n}let je=Ae(O.default.es2015,O.default.es5),Me={Atomics:!1,SharedArrayBuffer:!1},Ne={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},Pe={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var Fe=new Map(Object.entries({builtin:{globals:O.default.es5},es6:{globals:je,parserOptions:{ecmaVersion:6}},es2015:{globals:je,parserOptions:{ecmaVersion:6}},es2016:{globals:je,parserOptions:{ecmaVersion:7}},es2017:{globals:{...je,...Me},parserOptions:{ecmaVersion:8}},es2018:{globals:{...je,...Me},parserOptions:{ecmaVersion:9}},es2019:{globals:{...je,...Me},parserOptions:{ecmaVersion:10}},es2020:{globals:{...je,...Me,...Ne},parserOptions:{ecmaVersion:11}},es2021:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:12}},es2022:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:13}},es2023:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:14}},es2024:{globals:{...je,...Me,...Ne,...Pe},parserOptions:{ecmaVersion:15}},browser:{globals:O.default.browser},node:{globals:O.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:O.default[`shared-node-browser`]},worker:{globals:O.default.worker},serviceworker:{globals:O.default.serviceworker},commonjs:{globals:O.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:O.default.amd},mocha:{globals:O.default.mocha},jasmine:{globals:O.default.jasmine},jest:{globals:O.default.jest},phantomjs:{globals:O.default.phantomjs},jquery:{globals:O.default.jquery},qunit:{globals:O.default.qunit},prototypejs:{globals:O.default.prototypejs},shelljs:{globals:O.default.shelljs},meteor:{globals:O.default.meteor},mongo:{globals:O.default.mongo},protractor:{globals:O.default.protractor},applescript:{globals:O.default.applescript},nashorn:{globals:O.default.nashorn},atomtest:{globals:O.default.atomtest},embertest:{globals:O.default.embertest},webextensions:{globals:O.default.webextensions},greasemonkey:{globals:O.default.greasemonkey}}));let Ie=we(),Le=new WeakMap,Q=Function.prototype,Re,ze={error:2,warn:1,off:0},Be=new WeakSet,Ve=Object.freeze({type:`array`,minItems:0,maxItems:0});var He=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;if(!e.meta)return{...Ve};let t=e.meta.schema;if(t===void 0)return{...Ve};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...Ve}:t}validateRuleSeverity(e){let t=Array.isArray(e)?e[0]:e,n=typeof t==`string`?ze[t.toLowerCase()]:t;if(n===0||n===1||n===2)return n;throw Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${T.default.inspect(t).replace(/'/gu,`"`).replace(/\n/gu,``)}').\n`)}validateRuleSchema(e,t){if(!Le.has(e))try{let t=this.getRuleOptionsSchema(e);t&&Le.set(e,Ie.compile(t))}catch(e){let t=Error(e.message,{cause:e});throw t.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`,t}let n=Le.get(e);if(n&&(n(De(e.meta?.defaultOptions,t)),n.errors))throw Error(n.errors.map(e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`).join(``))}validateRuleOptions(e,t,n,r=null){try{this.validateRuleSeverity(n)!==0&&this.validateRuleSchema(e,Array.isArray(n)?n.slice(1):[])}catch(e){let n=e.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`?`Error while processing options validation schema of rule '${t}': ${e.message}`:`Configuration for rule "${t}" is invalid:\n${e.message}`;typeof r==`string`&&(n=`${r}:\n\t${n}`);let i=Error(n,{cause:e});throw e.code&&(i.code=e.code),i}}validateEnvironment(e,t,n=Q){e&&Object.keys(e).forEach(e=>{if(!(n(e)||Fe.get(e))){let n=`${t}:\n\tEnvironment key "${e}" is unknown\n`;throw Error(n)}})}validateRules(e,t,n=Q){e&&Object.keys(e).forEach(r=>{let i=n(r)||this.builtInRules.get(r)||null;this.validateRuleOptions(i,r,e[r],t)})}validateGlobals(e,t=null){e&&Object.entries(e).forEach(([e,n])=>{try{be(n)}catch(n){throw Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${n.message}`)}})}validateProcessor(e,t,n){if(e&&!n(e))throw Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map(e=>e.keyword===`additionalProperties`?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:e.keyword===`type`?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join(`/`):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${e.dataPath[0]===`.`?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`).map(e=>`\t- ${e}.\n`).join(``)}validateConfigSchema(e,t=null){if(Re||=Ie.compile(ke),!Re(e))throw Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(Re.errors)}`);Object.hasOwn(e,`ecmaFeatures`)&&Ce(t,`ESLINT_LEGACY_ECMAFEATURES`)}validate(e,t,n,r){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,n),this.validateEnvironment(e.env,t,r),this.validateGlobals(e.globals,t);for(let i of e.overrides||[])this.validateRules(i.rules,t,n),this.validateEnvironment(i.env,t,r),this.validateGlobals(e.globals,t)}validateConfigArray(e){let t=Map.prototype.get.bind(e.pluginEnvironments),n=Map.prototype.get.bind(e.pluginProcessors),r=Map.prototype.get.bind(e.pluginRules);for(let i of e)Be.has(i)||(Be.add(i),this.validateEnvironment(i.env,i.name,t),this.validateGlobals(i.globals,i.name),this.validateProcessor(i.processor,i.name,n),this.validateRules(i.rules,i.name,r))}};let Ue=/^@.*\//iu;function We(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function Ge(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function Ke(e){let t=e.match(Ue);return t?t[0]:``}var qe={__proto__:null,normalizePackageName:We,getShorthandName:Ge,getNamespaceFromTerm:Ke};let Je=y.default.createRequire;function Ye(e,t){try{return Je(t).resolve(e)}catch(n){throw typeof n==`object`&&n&&n.code===`MODULE_NOT_FOUND`&&!n.requireStack&&n.message.includes(e)&&(n.message+=`\nRequire stack:\n- ${t}`),n}}var Xe={__proto__:null,resolve:Ye};let Ze=i.createRequire(h(`url`).pathToFileURL(B).toString()),Qe=g.default(`eslintrc:config-array-factory`),$e=[`.eslintrc.js`,`.eslintrc.cjs`,`.eslintrc.yaml`,`.eslintrc.yml`,`.eslintrc.json`,`.eslintrc`,`package.json`],et=new WeakMap,tt=new WeakMap;function nt(e){return/^\.{1,2}[/\\]/u.test(e)||b.default.isAbsolute(e)}function rt(e){return _.default.readFileSync(e,`utf8`).replace(/^\ufeff/u,``)}function it(e){Qe(`Loading YAML config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(rt(e))||{}}catch(t){throw Qe(`Error reading YAML file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function $(e){Qe(`Loading JSON config file: ${e}`);try{return JSON.parse(x.default(rt(e)))}catch(t){throw Qe(`Error reading JSON file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t.messageTemplate=`failed-to-read-json`,t.messageData={path:e,message:t.message},t}}function at(e){Qe(`Loading legacy config file: ${e}`);let t=Ze(`js-yaml`);try{return t.load(x.default(rt(e)))||{}}catch(t){throw Qe(`Error reading YAML file: %s
277
+ %o`,e,t),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ot(e){Qe(`Loading JS config file: ${e}`);try{return v.default(e)}catch(t){throw Qe(`Error reading JavaScript file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function st(e){Qe(`Loading package.json config file: ${e}`);try{let t=$(e);if(!Object.hasOwn(t,`eslintConfig`))throw Object.assign(Error(`package.json file doesn't have 'eslintConfig' field.`),{code:`ESLINT_CONFIG_FIELD_NOT_FOUND`});return t.eslintConfig}catch(t){throw Qe(`Error reading package.json file: ${e}`),t.message=`Cannot read config file: ${e}\nError: ${t.message}`,t}}function ct(e){Qe(`Loading .eslintignore file: ${e}`);try{return rt(e).split(/\r?\n/gu).filter(e=>e.trim()!==``&&!e.startsWith(`#`))}catch(t){throw Qe(`Error reading .eslintignore file: ${e}`),t.message=`Cannot read .eslintignore file: ${e}\nError: ${t.message}`,t}}function lt(e,t,n){return Object.assign(Error(`Failed to load config "${e}" to extend from.`),{messageTemplate:n,messageData:{configName:e,importerName:t}})}function ut(e){switch(b.default.extname(e)){case`.js`:case`.cjs`:return ot(e);case`.json`:return b.default.basename(e)===`package.json`?st(e):$(e);case`.yaml`:case`.yml`:return it(e);default:return at(e)}}function dt(e,t,n){if(Qe.enabled){let r=null;try{let{version:n=`unknown`}=Ze(Ye(`${e}/package.json`,t));r=`${e}@${n}`}catch(t){Qe(`package.json was not found:`,t.message),r=e}Qe(`Loaded: %s (%s)`,r,n)}}function ft({cwd:e,resolvePluginsRelativeTo:t},n,r,i,a){let o=i?b.default.resolve(e,i):``;return{filePath:o,matchBasePath:a&&b.default.resolve(e,a)||o&&b.default.dirname(o)||e,name:r||o&&b.default.relative(e,o)||``,pluginBasePath:t||o&&b.default.dirname(o)||e,type:n||`config`}}function pt(e){let t=tt.get(e);return t||(t={configs:e.configs||{},environments:e.environments||{},processors:e.processors||{},rules:e.rules||{}},tt.set(e,t),t)}var mt=class{constructor({additionalPluginPool:e=new Map,cwd:t=process.cwd(),resolvePluginsRelativeTo:n,builtInRules:r,resolver:i=Xe,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c}={}){et.set(this,{additionalPluginPool:e,cwd:t,resolvePluginsRelativeTo:n&&b.default.resolve(t,n),builtInRules:r,resolver:i,eslintAllPath:a,getEslintAllConfig:o,eslintRecommendedPath:s,getEslintRecommendedConfig:c})}create(e,{basePath:t,filePath:n,name:r}={}){if(!e)return new se;let i=ft(et.get(this),`config`,r,n,t);return new se(...this._normalizeConfigData(e,i))}loadFile(e,{basePath:t,name:n}={}){let r=ft(et.get(this),`config`,n,e,t);return new se(...this._loadConfigData(r))}loadInDirectory(e,{basePath:t,name:n}={}){let r=et.get(this);for(let i of $e){let a=ft(r,`config`,n,b.default.join(e,i),t);if(_.default.existsSync(a.filePath)&&_.default.statSync(a.filePath).isFile()){let e;try{e=ut(a.filePath)}catch(e){if(!e||e.code!==`ESLINT_CONFIG_FIELD_NOT_FOUND`)throw e}if(e)return Qe(`Config file found: ${a.filePath}`),new se(...this._normalizeConfigData(e,a))}}return Qe(`Config file not found on ${e}`),new se}static getPathToConfigFileInDirectory(e){for(let t of $e){let n=b.default.join(e,t);if(_.default.existsSync(n))if(t===`package.json`)try{return st(n),n}catch{}else return n}return null}loadESLintIgnore(e){let t=et.get(this),n=ft(t,`ignore`,void 0,e,t.cwd),r=ct(n.filePath);return new se(...this._normalizeESLintIgnoreData(r,n))}loadDefaultESLintIgnore(){let e=et.get(this),t=b.default.resolve(e.cwd,`.eslintignore`),n=b.default.resolve(e.cwd,`package.json`);if(_.default.existsSync(t))return this.loadESLintIgnore(t);if(_.default.existsSync(n)){let t=$(n);if(Object.hasOwn(t,`eslintIgnore`)){if(!Array.isArray(t.eslintIgnore))throw Error(`Package.json eslintIgnore property requires an array of paths`);let r=ft(e,`ignore`,`eslintIgnore in package.json`,n,e.cwd);return new se(...this._normalizeESLintIgnoreData(t.eslintIgnore,r))}}return new se}_loadConfigData(e){return this._normalizeConfigData(ut(e.filePath),e)}*_normalizeESLintIgnoreData(e,t){let n=this._normalizeObjectConfigData({ignorePatterns:e},t);for(let e of n)e.ignorePattern&&(e.ignorePattern.loose=!0),yield e}_normalizeConfigData(e,t){return new He().validateConfigSchema(e,t.name||t.filePath),this._normalizeObjectConfigData(e,t)}*_normalizeObjectConfigData(e,t){let{files:n,excludedFiles:r,...i}=e,a=me.create(n,r,t.matchBasePath),o=this._normalizeObjectConfigDataBody(i,t);for(let e of o)e.criteria=me.and(a,e.criteria),e.criteria&&(e.root=void 0),yield e}*_normalizeObjectConfigDataBody({env:e,extends:t,globals:n,ignorePatterns:r,noInlineConfig:i,parser:a,parserOptions:o,plugins:s,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f,overrides:p=[]},m){let h=Array.isArray(t)?t:[t],g=r&&new I(Array.isArray(r)?r:[r],m.matchBasePath);for(let e of h.filter(Boolean))yield*this._loadExtends(e,m);let _=a&&this._loadParser(a,m),v=s&&this._loadPlugins(s,m);v&&(yield*this._takeFileExtensionProcessors(v,m)),yield{type:m.type,name:m.name,filePath:m.filePath,criteria:null,env:e,globals:n,ignorePattern:g,noInlineConfig:i,parser:_,parserOptions:o,plugins:v,processor:c,reportUnusedDisableDirectives:l,root:u,rules:d,settings:f};for(let e=0;e<p.length;++e)yield*this._normalizeObjectConfigData(p[e],{...m,name:`${m.name}#overrides[${e}]`})}_loadExtends(e,t){Qe(`Loading {extends:%j} relative to %s`,e,t.filePath);try{return e.startsWith(`eslint:`)?this._loadExtendedBuiltInConfig(e,t):e.startsWith(`plugin:`)?this._loadExtendedPluginConfig(e,t):this._loadExtendedShareableConfig(e,t)}catch(e){throw e.message+=`\nReferenced from: ${t.filePath||t.name}`,e}}_loadExtendedBuiltInConfig(e,t){let{eslintAllPath:n,getEslintAllConfig:r,eslintRecommendedPath:i,getEslintRecommendedConfig:a}=et.get(this);if(e===`eslint:recommended`){let n=`${t.name} » ${e}`;if(a){if(typeof a!=`function`)throw Error(`getEslintRecommendedConfig must be a function instead of '${a}'`);return this._normalizeConfigData(a(),{...t,name:n,filePath:``})}return this._loadConfigData({...t,name:n,filePath:i})}if(e===`eslint:all`){let i=`${t.name} » ${e}`;if(r){if(typeof r!=`function`)throw Error(`getEslintAllConfig must be a function instead of '${r}'`);return this._normalizeConfigData(r(),{...t,name:i,filePath:``})}return this._loadConfigData({...t,name:i,filePath:n})}throw lt(e,t.name,`extend-config-missing`)}_loadExtendedPluginConfig(e,t){let n=e.lastIndexOf(`/`);if(n===-1)throw lt(e,t.filePath,`plugin-invalid`);let r=e.slice(7,n),i=e.slice(n+1);if(nt(r))throw Error(`'extends' cannot use a file path for plugins.`);let a=this._loadPlugin(r,t),o=a.definition&&a.definition.configs[i];if(o)return this._normalizeConfigData(o,{...t,filePath:a.filePath||t.filePath,name:`${t.name} » plugin:${a.id}/${i}`});throw a.error||lt(e,t.filePath,`extend-config-missing`)}_loadExtendedShareableConfig(e,t){let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`),a;a=nt(e)?e:e.startsWith(`.`)?`./${e}`:We(e,`eslint-config`);let o;try{o=r.resolve(a,i)}catch(n){throw n&&n.code===`MODULE_NOT_FOUND`?lt(e,t.filePath,`extend-config-missing`):n}return dt(a,i,o),this._loadConfigData({...t,filePath:o,name:`${t.name} » ${a}`})}_loadPlugins(e,t){return e.reduce((e,n)=>{if(nt(n))throw Error(`Plugins array cannot includes file paths.`);let r=this._loadPlugin(n,t);return e[r.id]=r,e},{})}_loadParser(e,t){Qe(`Loading parser %j from %s`,e,t.filePath);let{cwd:n,resolver:r}=et.get(this),i=t.filePath||b.default.join(n,`__placeholder__.js`);try{let n=r.resolve(e,i);return dt(e,i,n),new le({definition:Ze(n),filePath:n,id:e,importerName:t.name,importerPath:t.filePath})}catch(n){return e===`espree`?(Qe(`Fallback espree.`),new le({definition:Ze(`espree`),filePath:Ze.resolve(`espree`),id:e,importerName:t.name,importerPath:t.filePath})):(Qe(`Failed to load parser '%s' declared in '%s'.`,e,t.name),n.message=`Failed to load parser '${e}' declared in '${t.name}': ${n.message}`,new le({error:n,id:e,importerName:t.name,importerPath:t.filePath}))}}_loadPlugin(e,t){Qe(`Loading plugin %j from %s`,e,t.filePath);let{additionalPluginPool:n,resolver:r}=et.get(this),i=We(e,`eslint-plugin`),a=Ge(i,`eslint-plugin`),o=b.default.join(t.pluginBasePath,`__placeholder__.js`);if(e.match(/\s+/u))return new le({error:Object.assign(Error(`Whitespace found in plugin name '${e}'`),{messageTemplate:`whitespace-found`,messageData:{pluginName:i}}),id:a,importerName:t.name,importerPath:t.filePath});let s=n.get(i)||n.get(a);if(s)return new le({definition:pt(s),original:s,filePath:``,id:a,importerName:t.name,importerPath:t.filePath});let c,l;try{c=r.resolve(i,o)}catch(e){l=e,l&&l.code===`MODULE_NOT_FOUND`&&(l.messageTemplate=`plugin-missing`,l.messageData={pluginName:i,resolvePluginsRelativeTo:t.pluginBasePath,importerName:t.name})}if(c)try{dt(i,o,c);let e=Date.now(),n=Ze(c);return Qe(`Plugin ${c} loaded in: ${Date.now()-e}ms`),new le({definition:pt(n),original:n,filePath:c,id:a,importerName:t.name,importerPath:t.filePath})}catch(e){l=e}return Qe(`Failed to load plugin '%s' declared in '%s'.`,e,t.name),l.message=`Failed to load plugin '${e}' declared in '${t.name}': ${l.message}`,new le({error:l,id:a,importerName:t.name,importerPath:t.filePath})}*_takeFileExtensionProcessors(e,t){for(let n of Object.keys(e)){let r=e[n]&&e[n].definition&&e[n].definition.processors;if(r)for(let e of Object.keys(r))e.startsWith(`.`)&&(yield*this._normalizeObjectConfigData({files:[`*${e}`],processor:`${n}/${e}`},{...t,type:`implicit-processor`,name:`${t.name}#processors["${n}/${e}"]`}))}}};let ht=g.default(`eslintrc:cascading-config-array-factory`),gt=new WeakMap;function _t({configArrayFactory:e,baseConfigData:t,rulePaths:n,cwd:r,loadRules:i}){let a=e.create(t,{name:`BaseConfig`});return a.unshift(e.create({ignorePatterns:I.DefaultPatterns},{name:`DefaultIgnorePattern`})[0]),n&&n.length>0&&a.push({type:`config`,name:`--rulesdir`,filePath:``,plugins:{"":new le({definition:{rules:n.reduce((e,t)=>Object.assign(e,i(t,r)),{})},filePath:``,id:``,importerName:`--rulesdir`,importerPath:``})}}),a}function vt({cliConfigData:e,configArrayFactory:t,cwd:n,ignorePath:r,specificConfigPath:i}){let a=t.create(e,{name:`CLIOptions`});return a.unshift(...r?t.loadESLintIgnore(r):t.loadDefaultESLintIgnore()),i&&a.unshift(...t.loadFile(i,{name:`--config`,basePath:n})),a}var yt=class extends Error{constructor(e){super(`No ESLint configuration found in ${e}.`),this.messageTemplate=`no-config-found`,this.messageData={directoryPath:e}}},bt=class{constructor({additionalPluginPool:e=new Map,baseConfig:t=null,cliConfig:n=null,cwd:r=process.cwd(),ignorePath:i,resolvePluginsRelativeTo:a,rulePaths:o=[],specificConfigPath:s=null,useEslintrc:c=!0,builtInRules:l=new Map,loadRules:u,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h}={}){let g=new mt({additionalPluginPool:e,cwd:r,resolvePluginsRelativeTo:a,builtInRules:l,resolver:d,eslintRecommendedPath:f,getEslintRecommendedConfig:p,eslintAllPath:m,getEslintAllConfig:h});gt.set(this,{baseConfigArray:_t({baseConfigData:t,configArrayFactory:g,cwd:r,rulePaths:o,loadRules:u}),baseConfigData:t,cliConfigArray:vt({cliConfigData:n,configArrayFactory:g,cwd:r,ignorePath:i,specificConfigPath:s}),cliConfigData:n,configArrayFactory:g,configCache:new Map,cwd:r,finalizeCache:new WeakMap,ignorePath:i,rulePaths:o,specificConfigPath:s,useEslintrc:c,builtInRules:l,loadRules:u})}get cwd(){let{cwd:e}=gt.get(this);return e}getConfigArrayForFile(e,{ignoreNotFoundError:t=!1}={}){let{baseConfigArray:n,cliConfigArray:r,cwd:i}=gt.get(this);if(!e)return new se(...n,...r);let a=b.default.dirname(b.default.resolve(i,e));return ht(`Load config files for ${a}.`),this._finalizeConfigArray(this._loadConfigInAncestors(a),a,t)}setOverrideConfig(e){let t=gt.get(this);t.cliConfigData=e}clearCache(){let e=gt.get(this);e.baseConfigArray=_t(e),e.cliConfigArray=vt(e),e.configCache.clear()}_loadConfigInAncestors(e,t=!1){let{baseConfigArray:n,configArrayFactory:r,configCache:i,cwd:a,useEslintrc:o}=gt.get(this);if(!o)return n;let s=i.get(e);if(s)return ht(`Cache hit: ${e}.`),s;ht(`No cache found: ${e}.`);let c=k.default.homedir();if(e===c&&a!==c){if(ht(`Stop traversing because of considered root.`),t){let t=mt.getPathToConfigFileInDirectory(e);t&&Ce(t,`ESLINT_PERSONAL_CONFIG_SUPPRESS`)}return this._cacheConfig(e,n)}try{s=r.loadInDirectory(e)}catch(t){if(t.code===`EACCES`)return ht(`Stop traversing because of 'EACCES' error.`),this._cacheConfig(e,n);throw t}if(s.length>0&&s.isRoot())return ht(`Stop traversing because of 'root:true'.`),s.unshift(...n),this._cacheConfig(e,s);let l=b.default.dirname(e),u=l&&l!==e?this._loadConfigInAncestors(l,t||s.length>0):n;return s.length>0?s.unshift(...u):s=u,this._cacheConfig(e,s)}_cacheConfig(e,t){let{configCache:n}=gt.get(this);return Object.freeze(t),n.set(e,t),t}_finalizeConfigArray(e,t,n){let{cliConfigArray:r,configArrayFactory:i,finalizeCache:a,useEslintrc:o,builtInRules:s}=gt.get(this),c=a.get(e);if(!c){if(c=e,o&&e.every(e=>!e.filePath)&&r.every(e=>!e.filePath)){let e=k.default.homedir();ht(`Loading the config file of the home directory:`,e);let n=i.loadInDirectory(e,{name:`PersonalConfig`});n.length>0&&!t.startsWith(e)&&Ce(n.at(-1).filePath,`ESLINT_PERSONAL_CONFIG_LOAD`),c=c.concat(n)}r.length>0&&(c=c.concat(r)),new He({builtInRules:s}).validateConfigArray(c),Object.freeze(c),a.set(e,c),ht(`Configuration was determined: %o on %s`,c,t)}if(!n&&o&&c.length<=1)throw new yt(t);return c}};let xt=g.default(`eslintrc:flat-compat`),St=Symbol(`cafactory`);function Ct(e,{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n,pluginEnvironments:r,pluginProcessors:i}){let a={},o=[],s={},c={},l=[`settings`,`rules`,`processor`],u=[`globals`,`parser`,`parserOptions`],d=[`noInlineConfig`,`reportUnusedDisableDirectives`];for(let t of l)t in e&&e[t]!==void 0&&(a[t]=e[t]);for(let n of u)if(n in e&&e[n]!==void 0){if(a.languageOptions=s,n===`parser`){if(xt(`Resolving parser '${s[n]}' relative to ${t}`),e[n].error)throw e[n].error;s[n]=e[n].definition;continue}e[n]&&typeof e[n]==`object`?s[n]={...e[n]}:s[n]=e[n]}for(let t of d)t in e&&e[t]!==void 0&&(a.linterOptions=c,c[t]=e[t]);if(s.parserOptions&&(`ecmaVersion`in s.parserOptions&&(s.ecmaVersion=s.parserOptions.ecmaVersion,delete s.parserOptions.ecmaVersion),`sourceType`in s.parserOptions&&(s.sourceType=s.parserOptions.sourceType,delete s.parserOptions.sourceType),Object.keys(s.parserOptions).length===0&&delete s.parserOptions),e.criteria&&(a.files=[t=>e.criteria.test(t)]),e.plugins&&typeof e.plugins==`object`){xt(`Translating plugins: ${e.plugins}`),a.plugins={};for(let t of Object.keys(e.plugins)){xt(`Translating plugin: ${t}`),xt(`Resolving plugin '${t} relative to ${n}`);let{original:r,error:s}=e.plugins[t];if(s)throw s;if(a.plugins[t]=r,r.processors)for(let e of Object.keys(r.processors))e.startsWith(`.`)&&(xt(`Assigning processor: ${t}/${e}`),o.unshift({files:[`**/*${e}`],processor:i.get(`${t}/${e}`)}))}}if(e.env&&typeof e.env==`object`)for(let i of Object.keys(e.env))e.env[i]&&(xt(`Translating environment: ${i}`),Fe.has(i)?o.unshift(...Ct({criteria:e.criteria,...Fe.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})):r.has(i)&&o.push(...Ct({criteria:e.criteria,...r.get(i)},{resolveConfigRelativeTo:t,resolvePluginsRelativeTo:n})));return Object.keys(a).length>0&&o.push(a),o}var wt=class{constructor({baseDirectory:e=process.cwd(),resolvePluginsRelativeTo:t=e,recommendedConfig:n,allConfig:r}={}){this.baseDirectory=e,this.resolvePluginsRelativeTo=t,this[St]=new mt({cwd:e,resolvePluginsRelativeTo:t,getEslintAllConfig(){if(!r)throw TypeError(`Missing parameter 'allConfig' in FlatCompat constructor.`);let e={...r};return delete e.name,e},getEslintRecommendedConfig(){if(!n)throw TypeError(`Missing parameter 'recommendedConfig' in FlatCompat constructor.`);let e={...n};return delete e.name,e}})}config(e){let t=this[St].create(e,{basePath:this.baseDirectory}),n=[],r=!1;return t.forEach(e=>{e.type===`config`&&(r||=e.ignorePattern,n.push(...Ct(e,{resolveConfigRelativeTo:b.default.join(this.baseDirectory,`__placeholder.js`),resolvePluginsRelativeTo:b.default.join(this.resolvePluginsRelativeTo,`__placeholder.js`),pluginEnvironments:t.pluginEnvironments,pluginProcessors:t.pluginProcessors})))}),r&&n.unshift({ignores:[e=>{let n=t.extractConfig(e);return!!n.ignores&&n.ignores(e)}]}),n}env(e){return this.config({env:e})}extends(...e){return this.config({extends:e})}plugins(...e){return this.config({plugins:e})}};let Tt={ConfigArray:se,createConfigArrayFactoryContext:ft,CascadingConfigArrayFactory:bt,ConfigArrayFactory:mt,ConfigDependency:le,ExtractedConfig:R,IgnorePattern:I,OverrideTester:me,getUsedExtractedConfigs:ce,environments:Fe,loadConfigFile:ut,ConfigOps:xe,ConfigValidator:He,ModuleResolver:Xe,naming:qe};e.FlatCompat=wt,e.Legacy=Tt})),ql=d(((e,t)=>{t.exports={name:`@eslint/js`,version:`9.39.2`,description:`ESLint JavaScript language implementation`,funding:`https://eslint.org/donate`,main:`./src/index.js`,types:`./types/index.d.ts`,scripts:{"test:types":`tsc -p tests/types/tsconfig.json`},files:[`LICENSE`,`README.md`,`src`,`types`],publishConfig:{access:`public`},repository:{type:`git`,url:`https://github.com/eslint/eslint.git`,directory:`packages/js`},homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,keywords:[`javascript`,`eslint-plugin`,`eslint`],license:`MIT`,engines:{node:`^18.18.0 || ^20.9.0 || >=21.1.0`}}})),Jl=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"accessor-pairs":`error`,"array-callback-return":`error`,"arrow-body-style":`error`,"block-scoped-var":`error`,camelcase:`error`,"capitalized-comments":`error`,"class-methods-use-this":`error`,complexity:`error`,"consistent-return":`error`,"consistent-this":`error`,"constructor-super":`error`,curly:`error`,"default-case":`error`,"default-case-last":`error`,"default-param-last":`error`,"dot-notation":`error`,eqeqeq:`error`,"for-direction":`error`,"func-name-matching":`error`,"func-names":`error`,"func-style":`error`,"getter-return":`error`,"grouped-accessor-pairs":`error`,"guard-for-in":`error`,"id-denylist":`error`,"id-length":`error`,"id-match":`error`,"init-declarations":`error`,"logical-assignment-operators":`error`,"max-classes-per-file":`error`,"max-depth":`error`,"max-lines":`error`,"max-lines-per-function":`error`,"max-nested-callbacks":`error`,"max-params":`error`,"max-statements":`error`,"new-cap":`error`,"no-alert":`error`,"no-array-constructor":`error`,"no-async-promise-executor":`error`,"no-await-in-loop":`error`,"no-bitwise":`error`,"no-caller":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-console":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-constructor-return":`error`,"no-continue":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-div-regex":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-duplicate-imports":`error`,"no-else-return":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-function":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-eq-null":`error`,"no-eval":`error`,"no-ex-assign":`error`,"no-extend-native":`error`,"no-extra-bind":`error`,"no-extra-boolean-cast":`error`,"no-extra-label":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-implicit-coercion":`error`,"no-implicit-globals":`error`,"no-implied-eval":`error`,"no-import-assign":`error`,"no-inline-comments":`error`,"no-inner-declarations":`error`,"no-invalid-regexp":`error`,"no-invalid-this":`error`,"no-irregular-whitespace":`error`,"no-iterator":`error`,"no-label-var":`error`,"no-labels":`error`,"no-lone-blocks":`error`,"no-lonely-if":`error`,"no-loop-func":`error`,"no-loss-of-precision":`error`,"no-magic-numbers":`error`,"no-misleading-character-class":`error`,"no-multi-assign":`error`,"no-multi-str":`error`,"no-negated-condition":`error`,"no-nested-ternary":`error`,"no-new":`error`,"no-new-func":`error`,"no-new-native-nonconstructor":`error`,"no-new-wrappers":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-object-constructor":`error`,"no-octal":`error`,"no-octal-escape":`error`,"no-param-reassign":`error`,"no-plusplus":`error`,"no-promise-executor-return":`error`,"no-proto":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-restricted-exports":`error`,"no-restricted-globals":`error`,"no-restricted-imports":`error`,"no-restricted-properties":`error`,"no-restricted-syntax":`error`,"no-return-assign":`error`,"no-script-url":`error`,"no-self-assign":`error`,"no-self-compare":`error`,"no-sequences":`error`,"no-setter-return":`error`,"no-shadow":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-template-curly-in-string":`error`,"no-ternary":`error`,"no-this-before-super":`error`,"no-throw-literal":`error`,"no-unassigned-vars":`error`,"no-undef":`error`,"no-undef-init":`error`,"no-undefined":`error`,"no-underscore-dangle":`error`,"no-unexpected-multiline":`error`,"no-unmodified-loop-condition":`error`,"no-unneeded-ternary":`error`,"no-unreachable":`error`,"no-unreachable-loop":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-expressions":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-use-before-define":`error`,"no-useless-assignment":`error`,"no-useless-backreference":`error`,"no-useless-call":`error`,"no-useless-catch":`error`,"no-useless-computed-key":`error`,"no-useless-concat":`error`,"no-useless-constructor":`error`,"no-useless-escape":`error`,"no-useless-rename":`error`,"no-useless-return":`error`,"no-var":`error`,"no-void":`error`,"no-warning-comments":`error`,"no-with":`error`,"object-shorthand":`error`,"one-var":`error`,"operator-assignment":`error`,"prefer-arrow-callback":`error`,"prefer-const":`error`,"prefer-destructuring":`error`,"prefer-exponentiation-operator":`error`,"prefer-named-capture-group":`error`,"prefer-numeric-literals":`error`,"prefer-object-has-own":`error`,"prefer-object-spread":`error`,"prefer-promise-reject-errors":`error`,"prefer-regex-literals":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`,"prefer-template":`error`,"preserve-caught-error":`error`,radix:`error`,"require-atomic-updates":`error`,"require-await":`error`,"require-unicode-regexp":`error`,"require-yield":`error`,"sort-imports":`error`,"sort-keys":`error`,"sort-vars":`error`,strict:`error`,"symbol-description":`error`,"unicode-bom":`error`,"use-isnan":`error`,"valid-typeof":`error`,"vars-on-top":`error`,yoda:`error`})})})),Yl=d(((e,t)=>{t.exports=Object.freeze({rules:Object.freeze({"constructor-super":`error`,"for-direction":`error`,"getter-return":`error`,"no-async-promise-executor":`error`,"no-case-declarations":`error`,"no-class-assign":`error`,"no-compare-neg-zero":`error`,"no-cond-assign":`error`,"no-const-assign":`error`,"no-constant-binary-expression":`error`,"no-constant-condition":`error`,"no-control-regex":`error`,"no-debugger":`error`,"no-delete-var":`error`,"no-dupe-args":`error`,"no-dupe-class-members":`error`,"no-dupe-else-if":`error`,"no-dupe-keys":`error`,"no-duplicate-case":`error`,"no-empty":`error`,"no-empty-character-class":`error`,"no-empty-pattern":`error`,"no-empty-static-block":`error`,"no-ex-assign":`error`,"no-extra-boolean-cast":`error`,"no-fallthrough":`error`,"no-func-assign":`error`,"no-global-assign":`error`,"no-import-assign":`error`,"no-invalid-regexp":`error`,"no-irregular-whitespace":`error`,"no-loss-of-precision":`error`,"no-misleading-character-class":`error`,"no-new-native-nonconstructor":`error`,"no-nonoctal-decimal-escape":`error`,"no-obj-calls":`error`,"no-octal":`error`,"no-prototype-builtins":`error`,"no-redeclare":`error`,"no-regex-spaces":`error`,"no-self-assign":`error`,"no-setter-return":`error`,"no-shadow-restricted-names":`error`,"no-sparse-arrays":`error`,"no-this-before-super":`error`,"no-undef":`error`,"no-unexpected-multiline":`error`,"no-unreachable":`error`,"no-unsafe-finally":`error`,"no-unsafe-negation":`error`,"no-unsafe-optional-chaining":`error`,"no-unused-labels":`error`,"no-unused-private-class-members":`error`,"no-unused-vars":`error`,"no-useless-backreference":`error`,"no-useless-catch":`error`,"no-useless-escape":`error`,"no-with":`error`,"require-yield":`error`,"use-isnan":`error`,"valid-typeof":`error`})})})),Xl=d(((e,t)=>{let{name:n,version:r}=ql();t.exports={meta:{name:n,version:r},configs:{all:Jl(),recommended:Yl()}}})),Zl=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i=rs(),a=Xo(),o=G(),{Minimatch:s}=ns(),{Legacy:{IgnorePattern:c,CascadingConfigArrayFactory:l}}=Kl(),u=S()(`eslint:file-enumerator`),d={dot:!0,matchBase:!0},f=/(?:^\.|[/\\]\.)[^/\\.].*/u,p=new WeakMap;function m(e){return a(r.sep===`\\`?e.replace(/\\/gu,`/`):e)}function g(e){try{return n.statSync(e)}catch(e){if(e.code!==`ENOENT`)throw e;return null}}function _(e){try{return n.readdirSync(e,{withFileTypes:!0})}catch(e){if(e.code!==`ENOENT`)throw e;return[]}}function v(e){if(e){let t=e.map(e=>o(e.startsWith(`.`)?e.slice(1):e));return RegExp(`.\\.(?:${t.join(`|`)})$`,`u`)}return null}var y=class extends Error{constructor(e,t){super(`No files matching '${e}' were found${t?` (glob was disabled)`:``}.`),this.messageTemplate=`file-not-found`,this.messageData={pattern:e,globDisabled:t}}},b=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-files-ignored`,this.messageData={pattern:e}}};t.exports={FileEnumerator:class{constructor({cwd:e=process.cwd(),configArrayFactory:t=new l({cwd:e,getEslintRecommendedConfig:()=>Xl().configs.recommended,getEslintAllConfig:()=>Xl().configs.all}),extensions:n=null,globInputPaths:r=!0,errorOnUnmatchedPattern:i=!0,ignore:a=!0}={}){p.set(this,{configArrayFactory:t,cwd:e,defaultIgnores:c.createDefaultIgnore(e),extensionRegExp:v(n),globInputPaths:r,errorOnUnmatchedPattern:i,ignoreFlag:a})}isTargetPath(e,t){let{configArrayFactory:n,extensionRegExp:r}=p.get(this);return r?r.test(e):e.endsWith(`.js`)?!0:(t||n.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).isAdditionalTargetPath(e)}*iterateFiles(e){let{globInputPaths:t,errorOnUnmatchedPattern:n}=p.get(this),r=Array.isArray(e)?e:[e];u(`Start to iterate files: %o`,r);let i=new Set;for(let e of r){let r=!1,o=!1;if(e){for(let{config:t,filePath:n,flag:a}of this._iterateFiles(e))r=!0,a!==1&&(o=!0,i.has(n)||(i.add(n),yield{config:t,filePath:n,ignored:a===2}));if(n){if(!r)throw new y(e,!t&&a(e));if(!o)throw new b(e)}}}u(`Complete iterating files: ${JSON.stringify(r)}`)}_iterateFiles(e){let{cwd:t,globInputPaths:n}=p.get(this),i=r.resolve(t,e),a=f.test(e),o=g(i);return o&&o.isDirectory()?this._iterateFilesWithDirectory(i,a):o&&o.isFile()?this._iterateFilesWithFile(i):n&&m(e)?this._iterateFilesWithGlob(e,a):[]}_iterateFilesWithFile(e){u(`File: ${e}`);let{configArrayFactory:t}=p.get(this),n=t.getConfigArrayForFile(e);return[{config:n,filePath:e,flag:this._isIgnoredFile(e,{config:n,direct:!0})?2:0}]}_iterateFilesWithDirectory(e,t){return u(`Directory: ${e}`),this._iterateFilesRecursive(e,{dotfiles:t,recursive:!0,selector:null})}_iterateFilesWithGlob(e,t){u(`Glob: ${e}`);let{cwd:n}=p.get(this),a=r.resolve(n,i(e)),o=r.resolve(n,e),c=o.slice(a.length+1),l=/\*\*|\/|\\/u.test(c),f=new s(o,d);return u(`recursive? ${l}`),this._iterateFilesRecursive(a,{dotfiles:t,recursive:l,selector:f})}*_iterateFilesRecursive(e,t){u(`Enter the directory: ${e}`);let{configArrayFactory:n}=p.get(this),i=null;for(let a of _(e)){let o=r.join(e,a.name),s=a.isSymbolicLink()?g(o):a;if(s)if(s.isFile())if(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),t.selector?t.selector.match(o):this.isTargetPath(o,i)){let e=this._isIgnoredFile(o,{...t,config:i}),r=e?1:0;u(`Yield: ${a.name}${e?` but ignored`:``}`),yield{config:n.getConfigArrayForFile(o),filePath:o,flag:r}}else u(`Didn't match: ${a.name}`);else t.recursive&&s.isDirectory()&&(i||=n.getConfigArrayForFile(o,{ignoreNotFoundError:!0}),this._isIgnoredFile(o+r.sep,{...t,config:i})||(yield*this._iterateFilesRecursive(o,t)))}u(`Leave the directory: ${e}`)}_isIgnoredFile(e,{config:t,dotfiles:n=!1,direct:r=!1}){let{configArrayFactory:i,defaultIgnores:a,ignoreFlag:o}=p.get(this);return o?((t||i.getConfigArrayForFile(e,{ignoreNotFoundError:!0})).extractConfig(e).ignores||a)(e,n):!r&&a(e,n)}}}})),Ql=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),i={};t.exports=function(e,t){let a=r.resolve(t,e);if(i[a])return i[a];let o=Object.create(null);return n.readdirSync(a).forEach(e=>{r.extname(e)===`.js`&&(o[e.slice(0,-3)]=h(r.join(a,e)))}),i[a]=o,o}})),$l=d(((e,t)=>{V();let n=h(`node:fs`),r=h(`node:path`),i=Bl(),a=C(),{Legacy:{ConfigOps:o,naming:s,CascadingConfigArrayFactory:c,IgnorePattern:l,getUsedExtractedConfigs:u,ModuleResolver:d}}=Kl(),{FileEnumerator:f}=Zl(),{Linter:p}=Ac(),m=Ua(),g=Ql(),_=Qo(),v=Bc(),y=S()(`eslint:cli-engine`),b=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),x=new Set([`directive`,`problem`,`suggestion`,`layout`]),w=new WeakMap;function T(e){for(let t of e)if(!x.has(t))throw Error(`Invalid fix type "${t}" found.`)}function E(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];r.fatal||r.severity===2?(t.errorCount++,r.fatal&&t.fatalErrorCount++,r.fix&&t.fixableErrorCount++):(t.warningCount++,r.fix&&t.fixableWarningCount++)}return t}function D(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];t.errorCount+=r.errorCount,t.fatalErrorCount+=r.fatalErrorCount,t.warningCount+=r.warningCount,t.fixableErrorCount+=r.fixableErrorCount,t.fixableWarningCount+=r.fixableWarningCount}return t}function O({text:e,cwd:t,filePath:n,config:i,fix:a,allowInlineConfig:o,reportUnusedDisableDirectives:s,fileEnumerator:c,linter:l}){let u=n||`<text>`;y(`Lint ${u}`);let d=u===`<text>`?r.join(t,u):u,{fixed:f,messages:p,output:m}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:d,fix:a,reportUnusedDisableDirectives:s,filterCodeBlock(e){return c.isTargetPath(e)}}),h={filePath:u,messages:p,suppressedMessages:l.getSuppressedMessages(),...E(p)};return f&&(h.output=m),h.errorCount+h.warningCount>0&&h.output===void 0&&(h.source=e),h}function k(e,t){let n,i=e.split(r.sep).find(e=>/^\./u.test(e)),a=t&&r.relative(t,e).startsWith(`node_modules`);return n=i?`File ignored by default. Use a negated ignore pattern (like "--ignore-pattern '!<relative/path/to/filename>'") to override.`:a?`File ignored by default. Use "--ignore-pattern '!node_modules/*'" to override.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to override.`,{filePath:r.resolve(e),messages:[{ruleId:null,fatal:!1,severity:1,message:n,nodeType:null}],suppressedMessages:[],errorCount:0,fatalErrorCount:0,warningCount:1,fixableErrorCount:0,fixableWarningCount:0}}function A(e,t){for(let n of t){let t=n.pluginRules.get(e);if(t)return t}return m.get(e)||null}function j(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&A(e.ruleId,t);return!!(r&&r.meta&&n.has(r.meta.type))}function*M(e){let t=new Set,n=e.flatMap(u);for(let r of n)for(let[n,i]of Object.entries(r.rules)){if(t.has(n)||(t.add(n),!o.getRuleSeverity(i)))continue;let r=A(n,e);r&&r.meta&&r.meta.deprecated&&(yield{ruleId:n,replacedBy:r.meta.replacedBy||[]})}}function N(e){return e.severity===2}function P(e,t){let i=r.normalize(e),a=r.resolve(t,i),o=i.slice(-1)===r.sep;function s(){return r.join(a,`.cache_${_(t)}`)}let c;try{c=n.lstatSync(a)}catch{c=null}return c?c.isDirectory()||o?s():a:o?s():a}function F(e,t,n){if(e&&!Array.isArray(e))throw Error(`${n} must be an array.`);if(e&&e.length>0)return e.reduce((e,n)=>{let[r,i]=n.split(`:`);return r!==`__proto__`&&(e[r]=i===void 0?t:i===`true`),e},{})}function I(e){let{ignorePattern:t,parser:n,parserOptions:r,plugins:i,rules:a}=e,o=F(e.envs,!0,`envs`),s=F(e.globals,!1,`globals`);return o===void 0&&s===void 0&&(t===void 0||t.length===0)&&n===void 0&&r===void 0&&i===void 0&&a===void 0?null:{env:o,globals:s,ignorePatterns:t,parser:n,parserOptions:r,plugins:i,rules:a}}function L(e){try{return n.statSync(e).isDirectory()}catch(e){if(e&&(e.code===`ENOENT`||e.code===`ENOTDIR`))return!1;throw e}}var R=class{constructor(e,{preloadedPlugins:t}={}){let n=Object.assign(Object.create(null),i,{cwd:process.cwd()},e);n.fix===void 0&&(n.fix=!1);let r=new Map;if(t)for(let[e,n]of Object.entries(t))r.set(e,n);let a=P(n.cacheLocation||n.cacheFile,n.cwd),o=new c({additionalPluginPool:r,baseConfig:n.baseConfig||null,cliConfig:I(n),cwd:n.cwd,ignorePath:n.ignorePath,resolvePluginsRelativeTo:n.resolvePluginsRelativeTo,rulePaths:n.rulePaths,specificConfigPath:n.configFile,useEslintrc:n.useEslintrc,builtInRules:m,loadRules:g,getEslintRecommendedConfig:()=>Xl().configs.recommended,getEslintAllConfig:()=>Xl().configs.all}),s=new f({configArrayFactory:o,cwd:n.cwd,extensions:n.extensions,globInputPaths:n.globInputPaths,errorOnUnmatchedPattern:n.errorOnUnmatchedPattern,ignore:n.ignore}),u=n.cache?new v(a,n.cacheStrategy):null,d=new p({cwd:n.cwd,configType:`eslintrc`}),h=[o.getConfigArrayForFile()];if(w.set(this,{additionalPluginPool:r,cacheFilePath:a,configArrayFactory:o,defaultIgnores:l.createDefaultIgnore(n.cwd),fileEnumerator:s,lastConfigArrays:h,lintResultCache:u,linter:d,options:n}),n.fix&&n.fixTypes&&n.fixTypes.length>0){y(`Using fix types ${n.fixTypes}`),T(n.fixTypes);let e=new Set(n.fixTypes),t=typeof n.fix==`function`?n.fix:()=>!0;n.fix=n=>j(n,h,e)&&t(n)}}getRules(){let{lastConfigArrays:e}=w.get(this);return new Map((function*(){yield*m;for(let t of e)yield*t.pluginRules})())}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(N),r=e.suppressedMessages.filter(N);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static outputFixes(e){e.results.filter(e=>Object.hasOwn(e,`output`)).forEach(e=>{n.writeFileSync(e.filePath,e.output)})}resolveFileGlobPatterns(e){let{options:t}=w.get(this);if(t.globInputPaths===!1)return e.filter(Boolean);let n=`/**/*.{${(t.extensions||[`.js`]).map(e=>e.replace(/^\./u,``)).join(`,`)}}`;return e.filter(Boolean).map(e=>{let i=L(r.resolve(t.cwd,e))?e.replace(/[/\\]$/u,``)+n:e;return r.normalize(i).replace(/\\/gu,`/`)})}executeOnFiles(e){let{cacheFilePath:t,fileEnumerator:r,lastConfigArrays:i,lintResultCache:a,linter:o,options:{allowInlineConfig:s,cache:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now();if(i.length=0,!c)try{n.unlinkSync(t)}catch(e){let r=e&&e.code;if(r!==`ENOENT`&&!(r===`EROFS`&&!n.existsSync(t)))throw e}for(let{config:t,filePath:c,ignored:p}of r.iterateFiles(e)){if(p){f.push(k(c,l));continue}if(i.includes(t)||i.push(t),a){let e=a.getCachedLintResults(c,t);if(e)if(e.messages&&e.messages.length>0&&u)y(`Reprocessing cached file to allow autofix: ${c}`);else{y(`Skipping file since it hasn't changed: ${c}`),f.push(e);continue}}let e=O({text:n.readFileSync(c,`utf8`),filePath:c,config:t,cwd:l,fix:u,allowInlineConfig:s,reportUnusedDisableDirectives:d,fileEnumerator:r,linter:o});f.push(e),a&&a.setCachedLintResults(c,t,e)}a&&a.reconcile(),y(`Linting complete in: ${Date.now()-p}ms`);let m;return{results:f,...D(f),get usedDeprecatedRules(){return m||=Array.from(M(i)),m}}}executeOnText(e,t,n){let{configArrayFactory:i,fileEnumerator:a,lastConfigArrays:o,linter:s,options:{allowInlineConfig:c,cwd:l,fix:u,reportUnusedDisableDirectives:d}}=w.get(this),f=[],p=Date.now(),m=t&&r.resolve(l,t);if(o.length=0,m&&this.isPathIgnored(m))n&&f.push(k(m,l));else{let t=i.getConfigArrayForFile(m||`__placeholder__.js`);o.push(t),f.push(O({text:e,filePath:m,config:t,cwd:l,fix:u,allowInlineConfig:c,reportUnusedDisableDirectives:d,fileEnumerator:a,linter:s}))}y(`Linting complete in: ${Date.now()-p}ms`);let h;return{results:f,...D(f),get usedDeprecatedRules(){return h||=Array.from(M(o)),h}}}getConfigForFile(e){let{configArrayFactory:t,options:n}=w.get(this),i=r.resolve(n.cwd,e);if(L(i))throw Object.assign(Error(`'filePath' should not be a directory path.`),{messageTemplate:`print-config-with-directory-path`});return t.getConfigArrayForFile(i).extractConfig(i).toCompatibleObjectAsConfigFileContent()}isPathIgnored(e){let{configArrayFactory:t,defaultIgnores:n,options:{cwd:i,ignore:a}}=w.get(this),o=r.resolve(i,e);return a?(t.getConfigArrayForFile(o).extractConfig(o).ignores||n)(o):n(o)}getFormatter(e){let t=e||`stylish`;if(typeof t==`string`){let n=t.replace(/\\/gu,`/`),i=w.get(this),a=i?i.options.cwd:process.cwd(),o=s.getNamespaceFromTerm(n),c;if(!o&&n.includes(`/`))c=r.resolve(a,n);else try{let e=s.normalizePackageName(n,`eslint-formatter`);c=d.resolve(e,r.join(a,`__placeholder__.js`))}catch{c=r.resolve(z,`formatters`,n)}try{return h(c)}catch(t){throw b.has(e)?t.message=`The ${e} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${e}\``:t.message=`There was a problem loading formatter: ${c}\nError: ${t.message}`,t}}else return null}};R.version=a.version,R.getFormatter=R.prototype.getFormatter,t.exports={CLIEngine:R,getCLIEngineInternalSlots(e){return w.get(e)}}})),eu=d(((e,t)=>{let n=h(`node:path`),r=h(`node:fs`),{promisify:i}=h(`node:util`),{CLIEngine:a,getCLIEngineInternalSlots:o}=$l(),s=Ua(),{Legacy:{ConfigOps:{getRuleSeverity:c}}}=Kl(),{version:l}=C(),u=i(r.writeFile),d=new WeakMap;function f(e){return typeof e==`string`&&e.trim()!==``}function p(e){return Array.isArray(e)&&e.length&&e.every(f)}function m(e){return Array.isArray(e)&&e.every(f)}function g(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function _(e){return Array.isArray(e)&&e.every(g)}var v=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
278
+ - `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function y({allowInlineConfig:e=!0,baseConfig:t=null,cache:r=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,cwd:o=process.cwd(),errorOnUnmatchedPattern:s=!0,extensions:c=null,fix:l=!1,fixTypes:u=null,flags:d,globInputPaths:p=!0,ignore:h=!0,ignorePath:g=null,overrideConfig:y=null,overrideConfigFile:b=null,plugins:x={},reportUnusedDisableDirectives:S=null,resolvePluginsRelativeTo:C=null,rulePaths:w=[],useEslintrc:T=!0,passOnNoPatterns:E=!1,...D}){let O=[],k=Object.keys(D);if(k.length>=1&&(O.push(`Unknown options: ${k.join(`, `)}`),k.includes(`cacheFile`)&&O.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),k.includes(`configFile`)&&O.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),k.includes(`envs`)&&O.push(`'envs' has been removed. Please use the 'overrideConfig.env' option instead.`),k.includes(`globals`)&&O.push(`'globals' has been removed. Please use the 'overrideConfig.globals' option instead.`),k.includes(`ignorePattern`)&&O.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),k.includes(`parser`)&&O.push(`'parser' has been removed. Please use the 'overrideConfig.parser' option instead.`),k.includes(`parserOptions`)&&O.push(`'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead.`),k.includes(`rules`)&&O.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`)),typeof e!=`boolean`&&O.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&O.push(`'baseConfig' must be an object or null.`),typeof r!=`boolean`&&O.push(`'cache' must be a boolean.`),f(i)||O.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&O.push(`'cacheStrategy' must be any of "metadata", "content".`),(!f(o)||!n.isAbsolute(o))&&O.push(`'cwd' must be an absolute path.`),typeof s!=`boolean`&&O.push(`'errorOnUnmatchedPattern' must be a boolean.`),!m(c)&&c!==null&&O.push(`'extensions' must be an array of non-empty strings or null.`),typeof l!=`boolean`&&typeof l!=`function`&&O.push(`'fix' must be a boolean or a function.`),u!==null&&!_(u)&&O.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),typeof p!=`boolean`&&O.push(`'globInputPaths' must be a boolean.`),typeof h!=`boolean`&&O.push(`'ignore' must be a boolean.`),!f(g)&&g!==null&&O.push(`'ignorePath' must be a non-empty string or null.`),typeof y!=`object`&&O.push(`'overrideConfig' must be an object or null.`),!f(b)&&b!==null&&O.push(`'overrideConfigFile' must be a non-empty string or null.`),typeof x==`object`?x!==null&&Object.keys(x).includes(``)&&O.push(`'plugins' must not include an empty string.`):O.push(`'plugins' must be an object or null.`),Array.isArray(x)&&O.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),S!==`error`&&S!==`warn`&&S!==`off`&&S!==null&&O.push(`'reportUnusedDisableDirectives' must be any of "error", "warn", "off", and null.`),!f(C)&&C!==null&&O.push(`'resolvePluginsRelativeTo' must be a non-empty string or null.`),m(w)||O.push(`'rulePaths' must be an array of non-empty strings.`),typeof T!=`boolean`&&O.push(`'useEslintrc' must be a boolean.`),typeof E!=`boolean`&&O.push(`'passOnNoPatterns' must be a boolean.`),O.length>0)throw new v(O);return{allowInlineConfig:e,baseConfig:t,cache:r,cacheLocation:i,cacheStrategy:a,configFile:b,cwd:n.normalize(o),errorOnUnmatchedPattern:s,extensions:c,fix:l,fixTypes:u,flags:[],globInputPaths:p,ignore:h,ignorePath:g,reportUnusedDisableDirectives:S,resolvePluginsRelativeTo:C,rulePaths:w,useEslintrc:T,passOnNoPatterns:E}}function b(e){if(typeof e==`object`&&e){for(let t in e)if(e[t]!==void 0)return!0}return!1}function x(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let S=new WeakMap;function w(e,t){let{configArrayFactory:r,options:{cwd:i}}=o(e),a=n.isAbsolute(t)?t:n.join(i,`__placeholder__.js`),l=r.getConfigArrayForFile(a),u=l.extractConfig(a);if(!S.has(u)){let e=l.pluginRules,t=[];for(let[n,r]of Object.entries(u.rules)){if(c(r)===0)continue;let i=e.get(n)||s.get(n),a=i&&i.meta;a&&a.deprecated&&t.push({ruleId:n,replacedBy:a.replacedBy||[]})}S.set(u,Object.freeze(t))}return S.get(u)}function T(e,{results:t}){let n={configurable:!0,enumerable:!0,get(){return w(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function E(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}t.exports={LegacyESLint:class{static configType=`eslintrc`;constructor(e={}){let t=y(e),n=new a(t,{preloadedPlugins:e.plugins}),{configArrayFactory:r,lastConfigArrays:i}=o(n),s=!1;b(e.overrideConfig)&&(r.setOverrideConfig(e.overrideConfig),s=!0),s&&(r.clearCache(),i[0]=r.getConfigArrayForFile()),d.set(this,{cliEngine:n,options:t})}static get version(){return l}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&n.isAbsolute(e.filePath)}).map(e=>u(e.filePath,e.output)))}static getErrorResults(e){return a.getErrorResults(e)}getRulesMetaForResults(e){let t=new Set;for(let n of e){for(let{ruleId:e}of n.messages)t.add(e);for(let{ruleId:e}of n.suppressedMessages)t.add(e)}let{cliEngine:n}=d.get(this),r=n.getRules(),i=new Map;for(let[e,n]of r)t.has(e)&&i.set(e,n);return x(i)}hasFlag(e){return!1}async lintFiles(e){let{cliEngine:t,options:n}=d.get(this);if(n.passOnNoPatterns&&(e===``||Array.isArray(e)&&e.length===0))return[];if(!f(e)&&!p(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);return T(t,t.executeOnFiles(e))}async lintText(e,t={}){if(typeof e!=`string`)throw Error(`'code' must be a string`);if(typeof t!=`object`)throw Error(`'options' must be an object, null, or undefined`);let{filePath:n,warnIgnored:r=!1,...i}=t||{},a=Object.keys(i);if(a.length>0)throw Error(`'options' must not include the unknown option(s): ${a.join(`, `)}`);if(n!==void 0&&!f(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{cliEngine:o}=d.get(this);return T(o,o.executeOnText(e,n,r))}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let{cliEngine:t,options:n}=d.get(this),r=t.getFormatter(e);if(typeof r!=`function`)throw Error(`Formatter must be a function, but got a ${typeof r}.`);return{format(e,i){let a=null;return e.sort(E),r(e,{...i,get cwd(){return n.cwd},get rulesMeta(){return a||=x(t.getRules()),a}})}}}async calculateConfigForFile(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.getConfigForFile(e)}async isPathIgnored(e){if(!f(e))throw Error(`'filePath' must be a non-empty string`);let{cliEngine:t}=d.get(this);return t.isPathIgnored(e)}},getESLintPrivateMembers(e){return d.get(e)}}})),tu=d(((e,t)=>{let{ESLint:n}=zl(),{LegacyESLint:r}=eu();t.exports={ESLint:n,LegacyESLint:r}})),nu=d(((e,t)=>{var n=Array.prototype.slice,r=typeof Object.keys==`function`?Object.keys:function(e){var t=[];for(var n in e)t.push(n);return t},i=t.exports=function(e,t){return e===0&&t===0?c(e,t):e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():s(e)?s(t):typeof e!=`object`&&typeof t!=`object`?e==t:l(e,t)};function a(e){return e==null}function o(e){return Object.prototype.toString.call(e)==`[object Arguments]`}function s(e){return typeof e==`number`&&e!==e}function c(e,t){return 1/e==1/t}function l(e,t){if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(o(e))return o(t)?(e=n.call(e),t=n.call(t),i(e,t)):!1;try{var s=r(e),c=r(t),l,u}catch{return!1}if(s.length!=c.length)return!1;for(s.sort(),c.sort(),u=s.length-1;u>=0;u--)if(s[u]!=c[u])return!1;for(u=s.length-1;u>=0;u--)if(l=s[u],!i(e[l],t[l]))return!1;return!0}})),ru=d(((e,t)=>{(function(){var n;try{n=typeof Intl<`u`&&Intl.Collator!==void 0?Intl.Collator(`generic`,{sensitivity:`base`}):null}catch{console.log(`Collator could not be initialized and wouldn't be used`)}var r=[],i=[],a={get:function(e,t,a){var o=a&&n&&a.useCollator,s=e.length,c=t.length;if(s===0)return c;if(c===0)return s;var l,u,d,f,p;for(d=0;d<c;++d)r[d]=d,i[d]=t.charCodeAt(d);r[c]=c;var m;if(o)for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=n.compare(e.charAt(d),String.fromCharCode(i[f]))===0,u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}else for(d=0;d<s;++d){for(u=d+1,f=0;f<c;++f)l=u,m=e.charCodeAt(d)===i[f],u=r[f]+(m?0:1),p=l+1,u>p&&(u=p),p=r[f+1]+1,u>p&&(u=p),r[f]=l;r[f]=u}return u}};typeof define<`u`&&define!==null&&define.amd?define(function(){return a}):t!=null&&e!==void 0&&t.exports===e?t.exports=a:typeof self<`u`&&typeof self.postMessage==`function`&&typeof self.importScripts==`function`?self.Levenshtein=a:typeof window<`u`&&window!==null&&(window.Levenshtein=a)})()})),iu=d(((e,t)=>{(function(){var e=_o(),n=e.map,r=e.sortBy,i=ru();t.exports={closestString:function(e,t){var a,o,s;if(e.length)return a=n(function(e){var n=t.length>e.length?[t,e]:[e,t],r=n[0],a=n[1];return{string:e,distance:i.get(r,a)}})(e),o=r(function(e){return e.distance},a)[0],s=o.string,o.distance,s},nameToRaw:function(e){return e.length===1||e===`NUM`?`-`+e:`--`+e},dasherize:function(t){return/^[A-Z]/.test(t)?t:e.dasherize(t)},naturalJoin:function(e){return e.length<3?e.join(` or `):e.slice(0,-1).join(`, `)+`, or `+e[e.length-1]}}}).call(e)})),au=d(((e,t)=>{function n(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function r(e){return e.split(`
108
279
  `).map(e=>n(e)).join(`
109
280
  `)}t.exports=function(e,t){if(t||={},e==null)return e;var n=t.width||50,a=typeof t.indent==`string`?t.indent:` `,o=t.newline||`
110
281
  `+a,s=typeof t.escape==`function`?t.escape:i,c=`.{1,`+n+`}`;t.cut!==!0&&(c+=`([\\s​]+|$)|[^\\s​]+?([\\s​]+|$)`);var l=new RegExp(c,`g`),u=a+(e.match(l)||[]).map(function(e){return e.slice(-1)===`
111
- `&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),ql=d(((e,t)=>{(function(){var e=_o(),n=e.id,r,i,a,o,s,c,l,u,d,f,p,m,h,g;e.find,r=e.sort,i=e.min,a=e.max,o=e.map,s=e.unlines,e=Gl(),c=e.nameToRaw,l=e.dasherize,u=e.naturalJoin,d=Kl(),f=function(e,t){var n=t===void 0?[``,e-1]:[b(` `,e),t-e-1],r=n[0],i=n[1];return function(e){return d(e,{indent:r,width:i,trim:!0})}},p=function(e,t,n){var r=e.option,i=(a=e.shortNames)??[],a,s=e.longNames??[],l=e.type,u,d,p,m,h,g,_,v,y;return e.description,u=t.aliasSeparator,d=t.typeSeparator,p=t.initialIndent,e.negateName&&(r=`no-`+r,s&&=o(function(e){return`no-`+e},s)),m=r.length===1?[r].concat(i,s):i.concat([r],s),h=o(c,m).join(u),g=h.length,_=r===`NUM`?`::`:d,v=_.length,n!=null&&!e.boolean&&p+g+v+l.length>n?(y=f(p+g+v,n),h+``+_+y(l).replace(/^\s+/,``)):h+(e.boolean?``:_+``+l)},m=function(e){e.aliasSeparator??=`, `,e.typeSeparator??=` `,e.descriptionSeparator??=` `,e.initialIndent??=2,e.secondaryIndent??=4,e.maxPadFactor??=1.5},h=function(e,t){var r=t.stdout,i=(a=t.helpStyle)??{},a;return m(i),function(t){var a=r!=null&&r.isTTY?r.columns-1:null,o=a?f(a):n,c,u,d,m,h,g,_,y,x,S,C,w,T;try{c=e(l(t))}catch(e){return u=e,u.message}return d=p(c,i),m=c.default&&!c.negateName?`
282
+ `&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),ou=d(((e,t)=>{(function(){var e=_o(),n=e.id,r,i,a,o,s,c,l,u,d,f,p,m,h,g;e.find,r=e.sort,i=e.min,a=e.max,o=e.map,s=e.unlines,e=iu(),c=e.nameToRaw,l=e.dasherize,u=e.naturalJoin,d=au(),f=function(e,t){var n=t===void 0?[``,e-1]:[b(` `,e),t-e-1],r=n[0],i=n[1];return function(e){return d(e,{indent:r,width:i,trim:!0})}},p=function(e,t,n){var r=e.option,i=(a=e.shortNames)??[],a,s=e.longNames??[],l=e.type,u,d,p,m,h,g,_,v,y;return e.description,u=t.aliasSeparator,d=t.typeSeparator,p=t.initialIndent,e.negateName&&(r=`no-`+r,s&&=o(function(e){return`no-`+e},s)),m=r.length===1?[r].concat(i,s):i.concat([r],s),h=o(c,m).join(u),g=h.length,_=r===`NUM`?`::`:d,v=_.length,n!=null&&!e.boolean&&p+g+v+l.length>n?(y=f(p+g+v,n),h+``+_+y(l).replace(/^\s+/,``)):h+(e.boolean?``:_+``+l)},m=function(e){e.aliasSeparator??=`, `,e.typeSeparator??=` `,e.descriptionSeparator??=` `,e.initialIndent??=2,e.secondaryIndent??=4,e.maxPadFactor??=1.5},h=function(e,t){var r=t.stdout,i=(a=t.helpStyle)??{},a;return m(i),function(t){var a=r!=null&&r.isTTY?r.columns-1:null,o=a?f(a):n,c,u,d,m,h,g,_,y,x,S,C,w,T;try{c=e(l(t))}catch(e){return u=e,u.message}return d=p(c,i),m=c.default&&!c.negateName?`
112
283
  default: `+c.default:``,h=c.restPositional?`Everything after this option is considered a positional argument, even if it looks like an option.`:``,g=c.longDescription||c.description&&v(c.description),_=g&&h?g+` `+h:(y=g||h)?y:``,x=`description:`,S=_?a&&_.length-1-x.length>a?`
113
284
  `+x+`
114
285
  `+o(_):`
@@ -117,12 +288,12 @@ examples:
117
288
  `+s(w):`
118
289
  example: `+w[0]):``,T=m||S||C?`
119
290
  `+b(`=`,d.length):``,d+``+T+m+S+C}},g=function(e){var t=e.options,n=e.prepend,o=e.append,c=(l=e.helpStyle)??{},l,d=e.stdout,h,g,v,x;return m(c),c.aliasSeparator,c.typeSeparator,h=c.descriptionSeparator,g=c.maxPadFactor,v=c.initialIndent,x=c.secondaryIndent,function(e){var l=e??{},m=l.showHidden,S=l.interpolate,C=d!=null&&d.isTTY?d.columns-1:null,w=[],T=function(e){return w.push(e??``)},E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,ee,W,te,ne,re,ie,ae,oe;for(n&&(T(S?y(n,S):n),T()),E=[],D=0,O=0,k=[],A=0,j=(l=t).length;A<j;++A)M=l[A],(m||!M.hidden)&&((N=M.heading)?E.push({type:`heading`,value:N}):(P=p(M,c,C),F=[],(N=M.description)!=null&&F.push(N),(N=M.enum)&&F.push(`either: `+u(N)),M.default&&!M.negateName&&F.push(`default: `+M.default),I=F.join(` - `),E.push({type:`option`,pre:P,desc:I,descLen:I.length}),L=P.length,D++,O+=L,k.push(L)));for(R=r(k),z=R[R.length-1],B=v+O/D,V=D>2?i(B*g,z):z,A=R.length-1;A>=0;--A)if(L=R[A],L<=V){H=L;break}if(U=h.length,C!=null)for(ee=0,W=0,A=0,j=E.length;A<j;++A)M=E[A],M.type===`option`&&(P=M.pre,I=M.desc,te=M.descLen,te===0?M.wrap=`none`:(L=a(H,P.length)+v+U,ne=L+te,ne>C?te/2.5>C-L?(ee++,M.wrap=`full`):(W++,M.wrap=`partial`):M.wrap=`none`));for(re=b(` `,v),ie=D>1&&ee+W*.5>D*.5,A=0,j=E.length;A<j;++A)if(ae=A,M=E[A],M.type===`heading`)ae!==0&&T(),T(M.value+`:`);else{if(P=M.pre,I=M.desc,te=M.descLen,oe=M.wrap,C!=null){if(ie||oe===`full`){oe=f(v+x,C),T(re+``+P+`
120
- `+oe(I));continue}else if(oe===`partial`){oe=f(v+U+a(H,P.length),C),T(re+``+_(P,H)+h+oe(I).replace(/^\s+/,``));continue}}T(te===0?re+``+P:re+``+_(P,H)+h+I)}return o&&(T(),T(S?y(o,S):o)),s(w)}};function _(e,t){var n=t-e.length;return e+``+b(` `,n>0?n:0)}function v(e){var t=e.charAt(0).toUpperCase(),n=e.slice(1),r=/[\.!\?]$/.test(e)?``:`.`;return t+``+n+r}function y(e,t){return e.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g,function(e,n){return t[n]??`{{`+n+`}}`})}t.exports={generateHelp:g,generateHelpForOption:h};function b(e,t){for(var n=``;t>0;(t>>=1)&&(e+=e))t&1&&(n+=e);return n}}).call(e)})),Jl=d(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S={}.toString,C=[].slice,w=Array.from||function(e){return C.call(e)};e=`0.9.4`,n=_o(),n.id,r=n.map,n.compact,i=n.any,n.groupBy,a=n.partition,o=n.chars,n.isItNaN,s=n.keys,n.Obj,c=n.camelize,l=Ul(),n=Gl(),u=n.closestString,d=n.nameToRaw,f=n.dasherize,p=n.naturalJoin,n=ql(),m=n.generateHelp,h=n.generateHelpForOption,n=xo(),g=n.parsedTypeCheck,_=n.parseType,v=Co().parsedTypeParse,y=function(e){var t,n,r={};for(t in e)n=e[t],r[c(t)]=n;return r},b=function(e){var t=`--?[a-zA-Z][-a-z-A-Z0-9]*=`,n=RegExp(`(?:`+t+`)?(?:'(?:\\\\'|[^'])+'|"(?:\\\\"|[^"])+")|[^'"\\s]+`,`g`),i=RegExp(`^(`+t+`)?['"]([\\s\\S]*)['"]$`);return r(function(e){return e.replace(i,`$1$2`)},e.match(n)||[])},x=function(e){var t={},n={},r=[],c,x,E;return S.call(e.stdout).slice(8,-1)===`Undefined`&&(e.stdout=process.stdout),e.positionalAnywhere??=!0,e.typeAliases??={},e.defaults??={},e.concatRepeatedArrays!=null&&(e.defaults.concatRepeatedArrays=e.concatRepeatedArrays),e.mergeRepeatedObjects!=null&&(e.defaults.mergeRepeatedObjects=e.mergeRepeatedObjects),c=function(i){var o,s,c,l,u,d,f,p,m,h,g,y,b,x,T,E,D,O,k,A,j,M;if(S.call(i).slice(8,-1)!==`Array`)throw Error(`No options defined.`);for(o=0,s=i.length;o<s;++o)if(c=i[o],c.heading==null){if(l=c.option,t[l]!=null)throw Error(`Option '`+l+`' already defined.`);for(u in d=e.defaults)f=d[u],c[u]??(c[u]=f);if(c.type===`Boolean`&&(c.boolean??=!0),c.parsedType==null){if(!c.type)throw Error(`No type defined for option '`+l+`'.`);try{p=(m=e.typeAliases[c.type])??c.type,c.parsedType=_(p)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing type '`+c.type+`': `+h.message)}}if(c.default)try{n[l]=v(c.parsedType,c.default)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing default value '`+c.default+`' for type '`+c.type+`': `+h.message)}if(c.enum&&!c.parsedPossiblities){for(g=[],y=c.parsedType,b=0,x=(d=c.enum).length;b<x;++b){T=d[b];try{g.push(v(y,T))}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing enum value '`+T+`' for type '`+c.type+`': `+h.message)}}c.parsedPossibilities=g}if(m=c.dependsOn)if(m.length)if(d=[].concat(c.dependsOn),E=d[0],D=C.call(d,1),O=E.toLowerCase(),D.length)if(O===`and`||O===`or`)c.dependsOn=[O].concat(w(D));else throw Error(`Option '`+l+`': If you have more than one dependency, you must specify either 'and' or 'or'`);else (d=O.toLowerCase())===`and`||d===`or`?c.dependsOn=null:c.dependsOn=[`and`,E];else c.dependsOn=null;if(c.required&&r.push(l),t[l]=c,c.concatRepeatedArrays!=null){if(k=c.concatRepeatedArrays,S.call(k).slice(8,-1)===`Boolean`)c.concatRepeatedArrays=[k,{}];else if(k.length===1)c.concatRepeatedArrays=[k[0],{}];else if(k.length!==2)throw Error(`Invalid setting for concatRepeatedArrays`)}if(c.alias||c.aliases){if(l===`NUM`)throw Error(`-NUM option can't have aliases.`);for(c.alias&&(c.aliases??=[].concat(c.alias)),b=0,x=(d=c.aliases).length;b<x;++b){if(A=d[b],t[A]!=null)throw Error(`Option '`+A+`' already defined.`);t[A]=c}d=a(N,c.aliases),j=d[0],M=d[1],c.shortNames??=j,c.longNames??=M}(!c.aliases||c.shortNames.length===0)&&c.type===`Boolean`&&c.default===`true`&&(c.negateName=!0)}function N(e){return e.length===1}},c(e.options),x=function(e){var n=t[e],r;if(n==null)throw r=u(s(t),e),Error(`Invalid option '`+d(e)+`'`+(r?` - perhaps you meant '`+d(r)+`'?`:`.`));return n},E=function(a,s){var c=(s??{}).slice,u={},m=[],h=!1,_=!1,w=null,E=function(e,t){var n=x(e),r,a,o;if(n.boolean)r=t;else{try{a=n.concatRepeatedArrays,r=a!=null&&a[0]&&a[1].oneValuePerFlag&&n.parsedType.length===1&&n.parsedType[0].structure===`array`?[v(n.parsedType[0].of,t)]:v(n.parsedType,t)}catch{throw Error(`Invalid value for option '`+e+`' - expected type `+n.type+`, received value: `+t+`.`)}if(n.enum&&!i(function(e){return l(e,r)},n.parsedPossibilities))throw Error(`Option `+e+`: '`+r+`' not one of `+p(n.enum)+`.`)}o=S.call(u[e]).slice(8,-1),u[e]==null?u[e]=r:n.concatRepeatedArrays!=null&&n.concatRepeatedArrays[0]&&o===`Array`?u[e]=u[e].concat(r):n.mergeRepeatedObjects&&o===`Object`?T(u[e],r):u[e]=r,n.restPositional&&(h=!0),n.overrideRequired&&(_=!0)},D=function(){var e,t,r;for(e in t=n)r=t[e],u[e]??(u[e]=r)},O=function(){var e,t,n,i;if(!_){for(e=0,n=(t=r).length;e<n;++e)if(i=t[e],!u[i])throw Error(`Option `+d(i)+` is required.`)}},k=function(e,t){throw Error(`The options `+d(e)+` and `+d(t)+` are mutually exclusive - you cannot use them at the same time.`)},A=function(){var t=e.mutuallyExclusive,n,r,i,a,o,s,c,l,d,f;if(t)for(n=0,r=t.length;n<r;++n)for(i=t[n],a=null,o=0,s=i.length;o<s;++o)if(c=i[o],S.call(c).slice(8,-1)===`Array`){for(l=0,d=c.length;l<d;++l)if(f=c[l],f in u)if(a!=null)k(a,f);else{a=f;break}}else c in u&&(a==null?a=c:k(a,c))},j=function(e){var t=e.dependsOn,n,r,i,a,o,s;if(!t||e.dependenciesMet)return!0;for(n=t[0],r=C.call(t,1),i=0,a=r.length;i<a;++i)if(o=r[i],s=u[o],s&&j(s)){if(n===`or`)return!0}else if(n===`and`)throw Error(`The option '`+e.option+`' did not have its dependencies met.`);if(n===`and`)return!0;throw Error(`The option '`+e.option+`' did not meet any of its dependencies.`)},M=function(){for(var e in u)j(t[e])},N=function(){if(w)throw Error(`Value for '`+w+`' of type '`+x(w).type+`' required.`)},P,F,I,L,R,z,B,V,H,U,ee,W,te,ne,re,ie,ae,oe,G,se,ce,le,K,ue,de;switch(S.call(a).slice(8,-1)){case`String`:P=b(a.slice(c??0));break;case`Array`:P=a.slice(c??2);break;case`Object`:for(F in u={},a)if(I=a[F],F!==`_`)if(L=x(f(F)),g(L.parsedType,I))u[L.option]=I;else throw Error(`Option '`+L.option+`': Invalid type for '`+I+`' - expected type '`+L.type+`'.`);return A(),M(),D(),O(),R=y(u),R._=a._||[],R;default:throw Error(`Invalid argument to 'parse': `+a+`.`)}for(z=0,B=P.length;z<B;++z)if(V=P[z],V===`--`)h=!0;else if(h)m.push(V);else if(H=V.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)){if(U=H,N(),ee=U[1].length===1,W=U[2],te=U[3]!=null,ne=U[4],te&&ne==null)throw Error(`No value for '`+W+`' specified.`);if(ee)for(re=o(W),ie=re.length,ae=0,oe=re.length;ae<oe;++ae)if(G=ae,se=re[ae],ce=x(se),le=ce.option,h)m.push(se);else if(G===ie-1)te?(K=ce.boolean?v([{type:`Boolean`}],ne):ne,E(le,K)):ce.boolean?E(le,!0):w=le;else if(ce.boolean)E(le,!0);else throw Error(`Can't set argument '`+se+`' when not last flag in a group of short flags.`);else if(ue=!1,(H=W.match(/^no-(.+)$/))?(ue=!0,de=H[1],ce=x(de)):ce=x(W),le=ce.option,ce.boolean)K=te?v([{type:`Boolean`}],ne):!0,ue?E(le,!K):E(le,K);else{if(ue)throw Error(`Only use 'no-' prefix for Boolean options, not with '`+de+`'.`);te?E(le,ne):w=le}}else if(H=V.match(/^-([0-9]+(?:\.[0-9]+)?)$/)){if(ce=t.NUM,!ce)throw Error(`No -NUM option defined.`);E(ce.option,H[1])}else w?(E(w,V),w=null):(m.push(V),e.positionalAnywhere||(h=!0));return N(),A(),M(),D(),O(),R=y(u),R._=m,R},{parse:E,parseArgv:function(e){return E(e,{slice:2})},generateHelp:m(e),generateHelpForOption:h(x,e)}},x.VERSION=e,t.exports=x;function T(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}}).call(e)})),Yl=d(((e,t)=>{let n=Jl();t.exports=function(e){let t;t=e?{option:`config-lookup`,type:`Boolean`,default:`true`,description:`Disable look up for eslint.config.js`}:{option:`eslintrc`,type:`Boolean`,default:`true`,description:`Disable use of configuration from .eslintrc.*`};let r;e||(r={option:`env`,type:`[String]`,description:`Specify environments`});let i;e&&(i={option:`inspect-config`,type:`Boolean`,description:`Open the config inspector with the current configuration`});let a;a=e?{option:`ext`,type:`[String]`,description:`Specify additional file extensions to lint`}:{option:`ext`,type:`[String]`,description:`Specify JavaScript file extensions`};let o;e||(o={option:`resolve-plugins-relative-to`,type:`path::String`,description:`A folder where plugins should be resolved from, CWD by default`});let s;e||(s={option:`rulesdir`,type:`[path::String]`,description:`Load additional rules from this directory. Deprecated: Use rules from plugins`});let c;e||(c={option:`ignore-path`,type:`path::String`,description:`Specify path of ignore file`});let l;e&&(l={option:`stats`,type:`Boolean`,default:`false`,description:`Add statistics to the lint report`});let u;e&&(u={option:`warn-ignored`,type:`Boolean`,default:`true`,description:`Suppress warnings when the file list includes ignored files`});let d;e&&(d={option:`flag`,type:`[String]`,description:`Enable a feature flag`});let f;e&&(f={option:`report-unused-inline-configs`,type:`String`,default:void 0,description:`Adds reported errors for unused eslint inline config comments`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]});let p;e&&(p={option:`mcp`,type:`Boolean`,description:`Start the ESLint MCP server`});let m;return e&&(m={option:`concurrency`,type:`Int|String`,default:`off`,description:`Number of linting threads, auto to choose automatically, off for no multithreading`}),n({prepend:`eslint [options] file.js [file.js] [dir]`,defaults:{concatRepeatedArrays:!0,mergeRepeatedObjects:!0},options:[{heading:`Basic configuration`},t,{option:`config`,alias:`c`,type:`path::String`,description:e?`Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs`:`Use this configuration, overriding .eslintrc.* config options if present`},i,r,a,{option:`global`,type:`[String]`,description:`Define global variables`},{option:`parser`,type:`String`,description:`Specify the parser to be used`},{option:`parser-options`,type:`Object`,description:`Specify parser options`},o,{heading:`Specify Rules and Plugins`},{option:`plugin`,type:`[String]`,description:`Specify plugins`},{option:`rule`,type:`Object`,description:`Specify rules`},s,{heading:`Fix Problems`},{option:`fix`,type:`Boolean`,default:!1,description:`Automatically fix problems`},{option:`fix-dry-run`,type:`Boolean`,default:!1,description:`Automatically fix problems without saving the changes to the file system`},{option:`fix-type`,type:`Array`,description:`Specify the types of fixes to apply (directive, problem, suggestion, layout)`},{heading:`Ignore Files`},c,{option:`ignore`,type:`Boolean`,default:`true`,description:`Disable use of ignore files and patterns`},{option:`ignore-pattern`,type:`[String]`,description:`Patterns of files to ignore${e?``:` (in addition to those in .eslintignore)`}`,concatRepeatedArrays:[!0,{oneValuePerFlag:!0}]},{heading:`Use stdin`},{option:`stdin`,type:`Boolean`,default:`false`,description:`Lint code provided on <STDIN>`},{option:`stdin-filename`,type:`String`,description:`Specify filename to process STDIN as`},{heading:`Handle Warnings`},{option:`quiet`,type:`Boolean`,default:`false`,description:`Report errors only`},{option:`max-warnings`,type:`Int`,default:`-1`,description:`Number of warnings to trigger nonzero exit code`},{heading:`Output`},{option:`output-file`,alias:`o`,type:`path::String`,description:`Specify file to write report to`},{option:`format`,alias:`f`,type:`String`,default:`stylish`,description:`Use a specific output format`},{option:`color`,type:`Boolean`,alias:`no-color`,description:`Force enabling/disabling of color`},{heading:`Inline configuration comments`},{option:`inline-config`,type:`Boolean`,default:`true`,description:`Prevent comments from changing config or rules`},{option:`report-unused-disable-directives`,type:`Boolean`,default:void 0,description:`Adds reported errors for unused eslint-disable and eslint-enable directives`},{option:`report-unused-disable-directives-severity`,type:`String`,default:void 0,description:`Chooses severity level for reporting unused eslint-disable and eslint-enable directives`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]},f,{heading:`Caching`},{option:`cache`,type:`Boolean`,default:`false`,description:`Only check changed files`},{option:`cache-file`,type:`path::String`,default:`.eslintcache`,description:`Path to the cache file. Deprecated: use --cache-location`},{option:`cache-location`,type:`path::String`,description:`Path to the cache file or directory`},{option:`cache-strategy`,dependsOn:[`cache`],type:`String`,default:`metadata`,enum:[`metadata`,`content`],description:`Strategy to use for detecting changed files in the cache`},{heading:`Suppressing Violations`},{option:`suppress-all`,type:`Boolean`,default:`false`,description:`Suppress all violations`},{option:`suppress-rule`,type:`[String]`,description:`Suppress specific rules`},{option:`suppressions-location`,type:`path::String`,description:`Specify the location of the suppressions file`},{option:`prune-suppressions`,type:`Boolean`,default:`false`,description:`Prune unused suppressions`},{option:`pass-on-unpruned-suppressions`,type:`Boolean`,default:`false`,description:`Ignore unused suppressions`},{heading:`Miscellaneous`},{option:`init`,type:`Boolean`,default:`false`,description:`Run config initialization wizard`},{option:`env-info`,type:`Boolean`,default:`false`,description:`Output execution environment information`},{option:`error-on-unmatched-pattern`,type:`Boolean`,default:`true`,description:`Prevent errors when pattern is unmatched`},{option:`exit-on-fatal-error`,type:`Boolean`,default:`false`,description:`Exit with exit code 2 in case of fatal error`},u,{option:`pass-on-no-patterns`,type:`Boolean`,default:!1,description:`Exit with exit code 0 in case no file patterns are passed`},{option:`debug`,type:`Boolean`,default:!1,description:`Output debugging information`},{option:`help`,alias:`h`,type:`Boolean`,description:`Show help`},{option:`version`,alias:`v`,type:`Boolean`,description:`Output the version number`},{option:`print-config`,type:`path::String`,description:`Print the configuration for the given file`},l,d,p,m].filter(e=>!!e)})}})),Xl=d(((e,t)=>{t.exports={info(...e){console.log(...e)},warn(...e){console.warn(...e)},error(...e){console.error(...e)}}})),Zl=d(((e,t)=>{let n=h(`node:path`),r=I(),i=h(`node:os`),a=Xl(),o=C();function s(){let e=new Map;function t(e,t){return!n.relative(e,t).startsWith(`..`)}function o(t,n){let i=[t,...n].join(` `);if(e.has(i))return e.get(i);let a=r.sync(t,n,{encoding:`utf8`});if(a.error)throw a.error;let o=a.stdout.trim();return e.set(i,o),o}function s(e){return e.startsWith(`v`)?e:`v${e}`}function c(e){let t=[`--version`];try{return s(o(e,t))}catch(n){throw a.error(`Error finding ${e} version running the command \`${e} ${t.join(` `)}\``),n}}function l(e,{global:n=!1}={}){let r=[`bin`,`-g`],i=[`ls`,`--depth=0`,`--json`,e];n&&i.push(`-g`);try{let e=JSON.parse(o(`npm`,i));if(Object.keys(e).length===0||!(e.dependencies&&e.dependencies.eslint))return`Not found`;let[,c]=process.argv,l;try{l=o(`npm`,r)}catch(e){throw a.error(`Error finding npm binary path when running command \`npm ${r.join(` `)}\``),e}let u=t(l,c),d=e.dependencies.eslint.version;return(n&&u||!n&&!u)&&(d+=` (Currently used)`),s(d)}catch(t){throw a.error(`Error finding ${e} version running the command \`npm ${i.join(` `)}\``),t}}return[`Environment Info:`,``,`Node version: ${process.version}`,`npm version: ${c(`npm`)}`,`Local ESLint version: ${l(`eslint`,{global:!1})}`,`Global ESLint version: ${l(`eslint`,{global:!0})}`,`Operating System: ${i.platform()} ${i.release()}`].join(`
121
- `)}function c(){return`v${o.version}`}t.exports={__esModule:!0,environment:s,version:c}})),Ql=d((e=>{let{createRequire:t}=h(`module`),{pathToFileURL:n}=h(`url`),r=new Set([`/`,`\\`]);function i(e){return r.has(e[e.length-1])?e:e+`/`}e.ModuleImporter=class{constructor(e=process.cwd()){this.cwd=i(e)}resolve(e){return t(this.cwd).resolve(e)}import(e){return import(n(this.resolve(e)).href)}}})),$l=d(((e,t)=>{let{normalizeSeverityToString:n}=Hs(),{getShorthandName:r,normalizePackageName:i}=vc(),{ModuleImporter:a}=Ql();async function o(e,t){let n={};return await Promise.all(t.map(async t=>{let a=i(t,`eslint-plugin`),o=await e.import(a);if(!(`default`in o))throw Error(`"${a}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`);let s=r(t,`eslint-plugin`);n[s]=o.default})),n}function s(e){return e.severity===2}function c(e){return e.severity===2}async function l({cache:e,cacheFile:t,cacheLocation:r,cacheStrategy:i,concurrency:l,config:u,configLookup:d,env:f,errorOnUnmatchedPattern:p,eslintrc:m,ext:h,fix:g,fixDryRun:_,fixType:v,flag:y,global:b,ignore:x,ignorePath:S,ignorePattern:C,inlineConfig:w,parser:T,parserOptions:E,plugin:D,quiet:O,reportUnusedDisableDirectives:k,reportUnusedDisableDirectivesSeverity:A,reportUnusedInlineConfigs:j,resolvePluginsRelativeTo:M,rule:N,rulesdir:P,stats:F,warnIgnored:I,passOnNoPatterns:L,maxWarnings:R},z){let B,V,H=new a;if(z===`flat`){V=typeof u==`string`?u:!d,V===!1&&(V=void 0);let e={};b&&(e.globals=b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{})),E&&(e.parserOptions=E),T&&(e.parser=await H.import(T)),B=[{...Object.keys(e).length>0?{languageOptions:e}:{},rules:N||{}}],(k||A!==void 0)&&(B[0].linterOptions={reportUnusedDisableDirectives:k?`error`:n(A)}),j!==void 0&&(B[0].linterOptions={...B[0].linterOptions,reportUnusedInlineConfigs:n(j)}),D&&(B[0].plugins=await o(H,D)),h&&B.push({files:h.map(e=>`**/*${e.startsWith(`.`)?``:`.`}${e}`)})}else V=u,B={env:f&&f.reduce((e,t)=>(e[t]=!0,e),{}),globals:b&&b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{}),ignorePatterns:C,parser:T,parserOptions:E,plugins:D,rules:N};let U={allowInlineConfig:w,cache:e,cacheLocation:r||t,cacheStrategy:i,errorOnUnmatchedPattern:p,fix:(g||_)&&(O?s:!0),fixTypes:v,ignore:x,overrideConfig:B,overrideConfigFile:V,passOnNoPatterns:L};return z===`flat`?(U.concurrency=l,U.flags=y,U.ignorePatterns=C,U.stats=F,U.warnIgnored=I,U.ruleFilter=O&&R===-1?c:()=>!0):(U.resolvePluginsRelativeTo=M,U.rulePaths=P,U.useEslintrc=m,U.extensions=h,U.ignorePath=S,(k||A!==void 0)&&(U.reportUnusedDisableDirectives=k?`error`:n(A))),U}t.exports=l})),eu=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),{calculateStatsPerFile:i}=Cl(),a=Ec();t.exports={SuppressionsService:class e{filePath=``;cwd=``;constructor({filePath:e,cwd:t}){this.filePath=e,this.cwd=t}async suppress(t,n){let r=await this.load();for(let i of t){let t=this.getRelativeFilePath(i.filePath),a=e.countViolationsByRule(i.messages);for(let e in a)n&&!n.includes(e)||(r[t]??={},r[t][e]=a[e])}return this.save(r)}async prune(e){let t=await this.load(),{unused:i}=this.applySuppressions(e,t);for(let e in i)if(t[e]){for(let n in i[e]){if(!t[e][n])continue;let r=t[e][n].count,a=i[e][n].count;r===a?delete t[e][n]:t[e][n].count-=a}Object.keys(t[e]).length===0&&delete t[e]}for(let e of Object.keys(t)){let i=r.resolve(this.cwd,e);n.existsSync(i)||delete t[e]}return this.save(t)}applySuppressions(t,n){let r=structuredClone(t),a={};for(let t of r){let r=this.getRelativeFilePath(t.filePath);if(!n[r])continue;let o=e.countViolationsByRule(t.messages),s=!1;for(let i in o){if(!n[r][i])continue;let c=n[r][i].count,l=o[i].count;l<=c&&(e.suppressMessagesByRule(t,i),s=!0),l<c&&(a[r]??={},a[r][i]??={},a[r][i].count=c-l)}for(let e in n[r])o[e]||(a[r]??={},a[r][e]=n[r][e]);s&&Object.assign(t,i(t.messages))}return{results:r,unused:a}}async load(){try{let e=await n.promises.readFile(this.filePath,`utf8`);return JSON.parse(e)}catch(e){if(e.code===`ENOENT`)return{};throw Error(`Failed to parse suppressions file at ${this.filePath}`,{cause:e})}}save(e){return n.promises.writeFile(this.filePath,a(e,{space:2}))}static countViolationsByRule(e){return e.reduce((e,t)=>(t.severity===2&&t.ruleId&&(e[t.ruleId]??={count:0},e[t.ruleId].count++),e),{})}getRelativeFilePath(e){return r.relative(this.cwd,e).split(r.sep).join(r.posix.sep)}static suppressMessagesByRule(e,t){let n=e.messages.filter(e=>e.ruleId===t);e.suppressedMessages=e.suppressedMessages.concat(n.map(e=>(e.suppressions=[{kind:`file`,justification:``}],e))),e.messages=e.messages.filter(e=>e.ruleId!==t)}}}})),tu=d(((e,t)=>{V();let n=h(`node:fs`),{mkdir:r,stat:i,writeFile:a}=h(`node:fs/promises`),o=h(`node:path`),{pathToFileURL:s}=h(`node:url`),{LegacyESLint:c}=Hl(),{ESLint:l,shouldUseFlatConfig:u,locateConfigFileToUse:d}=El(),f=Yl(),p=Xl(),m=Zl(),g=$l(),{getCacheFile:_}=Cl(),{SuppressionsService:v}=eu(),y=S()(`eslint:cli`);function b(e){let t=0,n=0,r=0;for(let i of e)t+=i.errorCount,n+=i.fatalErrorCount,r+=i.warningCount;return{errorCount:t,fatalErrorCount:n,warningCount:r}}function x(e){let t=new URL(`./shared/translate-cli-options.js`,s(B)).href,n=`import translateOptions from ${JSON.stringify(t)};\nexport default await translateOptions(${JSON.stringify(e)}, "flat");\n`;return new URL(`data:text/javascript;base64,${Buffer.from(n).toString(`base64`)}`)}async function C(e){try{return(await i(e)).isDirectory()}catch(e){if(e.code===`ENOENT`||e.code===`ENOTDIR`)return!1;throw e}}async function w(e,t,n,i,s){let c;try{c=await e.loadFormatter(n)}catch(e){return p.error(e.message),!1}let l=await c.format(t,s);if(i){let e=o.resolve(process.cwd(),i);if(await C(e))return p.error(`Cannot write to output file path, it is a directory: %s`,i),!1;try{await r(o.dirname(e),{recursive:!0}),await a(e,l)}catch(e){return p.error(`There was a problem writing the output file:
122
- %s`,e),!1}}else l&&p.info(l);return!0}function T(e){if(e===void 0||e===`auto`||e===`off`)return;let t=Number(e);if(!Number.isInteger(t)||t<1)throw Error(`Option concurrency: '${e}' is not a positive integer, 'auto' or 'off'.`)}let E={async calculateInspectConfigFlags(e){let{configFilePath:t,basePath:n}=await d({cwd:process.cwd(),configFile:e});return[`--config`,t,`--basePath`,n]},async execute(e,t,r=!0){Array.isArray(e)&&y(`CLI args: %o`,e.slice(2));let i=r&&await u();if(y(`Using flat config?`,i),r&&!i){let{WarningService:e}=lc();new e().emitESLintRCWarning()}let a=f(i),o;try{o=a.parse(e),T(o.concurrency)}catch(e){y(`Error parsing CLI options:`,e.message);let t=e.message;return i&&(t+=`
123
- You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.`),p.error(t),2}let s=o._,d=typeof t==`string`;if(o.help)return p.info(a.generateHelp()),0;if(o.version)return p.info(m.version()),0;if(o.envInfo)try{return p.info(m.environment()),0}catch(e){return y(`Error retrieving environment info`),p.error(e.message),2}if(o.printConfig){if(s.length)return p.error(`The --print-config option must be used with exactly one file name.`),2;if(d)return p.error(`The --print-config option is not available for piped-in code.`),2;let e=await(i?new l(await g(o,`flat`)):new c(await g(o))).calculateConfigForFile(o.printConfig);return p.info(JSON.stringify(e,null,` `)),0}if(o.inspectConfig){p.info(`You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file.`);try{let e=await g(o,`flat`),t=I(),n=await E.calculateInspectConfigFlags(e.overrideConfigFile);t.sync(`npx`,[`@eslint/config-inspector@latest`,...n],{encoding:`utf8`,stdio:`inherit`})}catch(e){return p.error(e),2}return 0}if(y(`Running on ${d?`text`:`files`}`),o.fix&&o.fixDryRun)return p.error(`The --fix option and the --fix-dry-run option cannot be used together.`),2;if(d&&o.fix)return p.error(`The --fix option is not available for piped-in code; use --fix-dry-run instead.`),2;if(o.fixType&&!o.fix&&!o.fixDryRun)return p.error(`The --fix-type option requires either --fix or --fix-dry-run.`),2;if(o.reportUnusedDisableDirectives&&o.reportUnusedDisableDirectivesSeverity!==void 0)return p.error(`The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.`),2;if(i&&o.ext){if(o.ext.length===0)return p.error(`The --ext option value cannot be empty.`),2;let e=o.ext.indexOf(``);if(e>=0)return p.error(`The --ext option arguments cannot be empty strings. Found an empty string at index ${e}.`),2}if(o.suppressAll&&o.suppressRule)return p.error(`The --suppress-all option and the --suppress-rule option cannot be used together.`),2;if(o.suppressAll&&o.pruneSuppressions)return p.error(`The --suppress-all option and the --prune-suppressions option cannot be used together.`),2;if(o.suppressRule&&o.pruneSuppressions)return p.error(`The --suppress-rule option and the --prune-suppressions option cannot be used together.`),2;if(d&&(o.suppressAll||o.suppressRule||o.pruneSuppressions))return p.error(`The --suppress-all, --suppress-rule, and --prune-suppressions options cannot be used with piped-in code.`),2;let h=i?l:c,S;if(o.concurrency&&o.concurrency!==`off`){let e=x(o);S=await l.fromOptionsModule(e)}else S=new h(await g(o,i?`flat`:`eslintrc`));let C;C=d?await S.lintText(t,{filePath:o.stdinFilename,warnIgnored:i?void 0:!0}):await S.lintFiles(s),o.fix&&(y(`Fix mode enabled - applying fixes`),await h.outputFixes(C));let D={};if(!d){let e=_(o.suppressionsLocation||`eslint-suppressions.json`,process.cwd(),{prefix:`suppressions_`});if(o.suppressionsLocation&&!n.existsSync(e)&&!o.suppressAll&&!o.suppressRule)return p.error("The suppressions file does not exist. Please run the command with `--suppress-all` or `--suppress-rule` to create it."),2;if(o.suppressAll||o.suppressRule||o.pruneSuppressions||n.existsSync(e)){let t=new v({filePath:e,cwd:process.cwd()});(o.suppressAll||o.suppressRule)&&await t.suppress(C,o.suppressRule),o.pruneSuppressions&&await t.prune(C);let n=t.applySuppressions(C,await t.load());C=n.results,D=n.unused}}let O=C;o.quiet&&(y(`Quiet mode enabled - filtering out warnings`),O=h.getErrorResults(O));let k=b(C),A=o.maxWarnings>=0&&k.warningCount>o.maxWarnings,j=A?{maxWarningsExceeded:{maxWarnings:o.maxWarnings,foundWarnings:k.warningCount}}:{};if(await w(S,O,o.format,o.outputFile,j)){let e=o.exitOnFatalError&&k.fatalErrorCount>0;return!k.errorCount&&A&&p.error(`ESLint found too many warnings (maximum: %s).`,o.maxWarnings),!o.passOnUnprunedSuppressions&&Object.keys(D).length>0?(p.error("There are suppressions left that do not occur anymore. Consider re-running the command with `--prune-suppressions`."),y(JSON.stringify(D,null,2)),2):e?2:k.errorCount||A?1:0}return 2}};t.exports=E})),nu=d((()=>{h(`node:module`).enableCompileCache?.(),process.argv.includes(`--debug`)&&S().enable(`eslint:*,-eslint:code-path,eslintrc:*`);function e(){return new Promise((e,t)=>{let n=``,r=``;process.stdin.setEncoding(`utf8`).on(`readable`,()=>{for(;(r=process.stdin.read())!==null;)n+=r}).on(`end`,()=>e(n)).on(`error`,t)})}function t(e){let t=h(`node:util`);if(typeof e!=`object`||!e)return String(e);if(typeof e.messageTemplate==`string`)try{return h(`../messages/${e.messageTemplate}.js`)(e.messageData||{})}catch{}return typeof e.stack==`string`?e.stack:t.format(`%o`,e)}let n=new Set,r=!1;function i(e){process.exitCode=2,r=!0;let{version:i}=C(),a=`
291
+ `+oe(I));continue}else if(oe===`partial`){oe=f(v+U+a(H,P.length),C),T(re+``+_(P,H)+h+oe(I).replace(/^\s+/,``));continue}}T(te===0?re+``+P:re+``+_(P,H)+h+I)}return o&&(T(),T(S?y(o,S):o)),s(w)}};function _(e,t){var n=t-e.length;return e+``+b(` `,n>0?n:0)}function v(e){var t=e.charAt(0).toUpperCase(),n=e.slice(1),r=/[\.!\?]$/.test(e)?``:`.`;return t+``+n+r}function y(e,t){return e.replace(/{{([a-zA-Z$_][a-zA-Z$_0-9]*)}}/g,function(e,n){return t[n]??`{{`+n+`}}`})}t.exports={generateHelp:g,generateHelpForOption:h};function b(e,t){for(var n=``;t>0;(t>>=1)&&(e+=e))t&1&&(n+=e);return n}}).call(e)})),su=d(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S={}.toString,C=[].slice,w=Array.from||function(e){return C.call(e)};e=`0.9.4`,n=_o(),n.id,r=n.map,n.compact,i=n.any,n.groupBy,a=n.partition,o=n.chars,n.isItNaN,s=n.keys,n.Obj,c=n.camelize,l=nu(),n=iu(),u=n.closestString,d=n.nameToRaw,f=n.dasherize,p=n.naturalJoin,n=ou(),m=n.generateHelp,h=n.generateHelpForOption,n=xo(),g=n.parsedTypeCheck,_=n.parseType,v=Co().parsedTypeParse,y=function(e){var t,n,r={};for(t in e)n=e[t],r[c(t)]=n;return r},b=function(e){var t=`--?[a-zA-Z][-a-z-A-Z0-9]*=`,n=RegExp(`(?:`+t+`)?(?:'(?:\\\\'|[^'])+'|"(?:\\\\"|[^"])+")|[^'"\\s]+`,`g`),i=RegExp(`^(`+t+`)?['"]([\\s\\S]*)['"]$`);return r(function(e){return e.replace(i,`$1$2`)},e.match(n)||[])},x=function(e){var t={},n={},r=[],c,x,E;return S.call(e.stdout).slice(8,-1)===`Undefined`&&(e.stdout=process.stdout),e.positionalAnywhere??=!0,e.typeAliases??={},e.defaults??={},e.concatRepeatedArrays!=null&&(e.defaults.concatRepeatedArrays=e.concatRepeatedArrays),e.mergeRepeatedObjects!=null&&(e.defaults.mergeRepeatedObjects=e.mergeRepeatedObjects),c=function(i){var o,s,c,l,u,d,f,p,m,h,g,y,b,x,T,E,D,O,k,A,j,M;if(S.call(i).slice(8,-1)!==`Array`)throw Error(`No options defined.`);for(o=0,s=i.length;o<s;++o)if(c=i[o],c.heading==null){if(l=c.option,t[l]!=null)throw Error(`Option '`+l+`' already defined.`);for(u in d=e.defaults)f=d[u],c[u]??(c[u]=f);if(c.type===`Boolean`&&(c.boolean??=!0),c.parsedType==null){if(!c.type)throw Error(`No type defined for option '`+l+`'.`);try{p=(m=e.typeAliases[c.type])??c.type,c.parsedType=_(p)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing type '`+c.type+`': `+h.message)}}if(c.default)try{n[l]=v(c.parsedType,c.default)}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing default value '`+c.default+`' for type '`+c.type+`': `+h.message)}if(c.enum&&!c.parsedPossiblities){for(g=[],y=c.parsedType,b=0,x=(d=c.enum).length;b<x;++b){T=d[b];try{g.push(v(y,T))}catch(e){throw h=e,Error(`Option '`+l+`': Error parsing enum value '`+T+`' for type '`+c.type+`': `+h.message)}}c.parsedPossibilities=g}if(m=c.dependsOn)if(m.length)if(d=[].concat(c.dependsOn),E=d[0],D=C.call(d,1),O=E.toLowerCase(),D.length)if(O===`and`||O===`or`)c.dependsOn=[O].concat(w(D));else throw Error(`Option '`+l+`': If you have more than one dependency, you must specify either 'and' or 'or'`);else (d=O.toLowerCase())===`and`||d===`or`?c.dependsOn=null:c.dependsOn=[`and`,E];else c.dependsOn=null;if(c.required&&r.push(l),t[l]=c,c.concatRepeatedArrays!=null){if(k=c.concatRepeatedArrays,S.call(k).slice(8,-1)===`Boolean`)c.concatRepeatedArrays=[k,{}];else if(k.length===1)c.concatRepeatedArrays=[k[0],{}];else if(k.length!==2)throw Error(`Invalid setting for concatRepeatedArrays`)}if(c.alias||c.aliases){if(l===`NUM`)throw Error(`-NUM option can't have aliases.`);for(c.alias&&(c.aliases??=[].concat(c.alias)),b=0,x=(d=c.aliases).length;b<x;++b){if(A=d[b],t[A]!=null)throw Error(`Option '`+A+`' already defined.`);t[A]=c}d=a(N,c.aliases),j=d[0],M=d[1],c.shortNames??=j,c.longNames??=M}(!c.aliases||c.shortNames.length===0)&&c.type===`Boolean`&&c.default===`true`&&(c.negateName=!0)}function N(e){return e.length===1}},c(e.options),x=function(e){var n=t[e],r;if(n==null)throw r=u(s(t),e),Error(`Invalid option '`+d(e)+`'`+(r?` - perhaps you meant '`+d(r)+`'?`:`.`));return n},E=function(a,s){var c=(s??{}).slice,u={},m=[],h=!1,_=!1,w=null,E=function(e,t){var n=x(e),r,a,o;if(n.boolean)r=t;else{try{a=n.concatRepeatedArrays,r=a!=null&&a[0]&&a[1].oneValuePerFlag&&n.parsedType.length===1&&n.parsedType[0].structure===`array`?[v(n.parsedType[0].of,t)]:v(n.parsedType,t)}catch{throw Error(`Invalid value for option '`+e+`' - expected type `+n.type+`, received value: `+t+`.`)}if(n.enum&&!i(function(e){return l(e,r)},n.parsedPossibilities))throw Error(`Option `+e+`: '`+r+`' not one of `+p(n.enum)+`.`)}o=S.call(u[e]).slice(8,-1),u[e]==null?u[e]=r:n.concatRepeatedArrays!=null&&n.concatRepeatedArrays[0]&&o===`Array`?u[e]=u[e].concat(r):n.mergeRepeatedObjects&&o===`Object`?T(u[e],r):u[e]=r,n.restPositional&&(h=!0),n.overrideRequired&&(_=!0)},D=function(){var e,t,r;for(e in t=n)r=t[e],u[e]??(u[e]=r)},O=function(){var e,t,n,i;if(!_){for(e=0,n=(t=r).length;e<n;++e)if(i=t[e],!u[i])throw Error(`Option `+d(i)+` is required.`)}},k=function(e,t){throw Error(`The options `+d(e)+` and `+d(t)+` are mutually exclusive - you cannot use them at the same time.`)},A=function(){var t=e.mutuallyExclusive,n,r,i,a,o,s,c,l,d,f;if(t)for(n=0,r=t.length;n<r;++n)for(i=t[n],a=null,o=0,s=i.length;o<s;++o)if(c=i[o],S.call(c).slice(8,-1)===`Array`){for(l=0,d=c.length;l<d;++l)if(f=c[l],f in u)if(a!=null)k(a,f);else{a=f;break}}else c in u&&(a==null?a=c:k(a,c))},j=function(e){var t=e.dependsOn,n,r,i,a,o,s;if(!t||e.dependenciesMet)return!0;for(n=t[0],r=C.call(t,1),i=0,a=r.length;i<a;++i)if(o=r[i],s=u[o],s&&j(s)){if(n===`or`)return!0}else if(n===`and`)throw Error(`The option '`+e.option+`' did not have its dependencies met.`);if(n===`and`)return!0;throw Error(`The option '`+e.option+`' did not meet any of its dependencies.`)},M=function(){for(var e in u)j(t[e])},N=function(){if(w)throw Error(`Value for '`+w+`' of type '`+x(w).type+`' required.`)},P,F,I,L,R,z,B,V,H,U,ee,W,te,ne,re,ie,ae,oe,G,se,ce,le,K,ue,de;switch(S.call(a).slice(8,-1)){case`String`:P=b(a.slice(c??0));break;case`Array`:P=a.slice(c??2);break;case`Object`:for(F in u={},a)if(I=a[F],F!==`_`)if(L=x(f(F)),g(L.parsedType,I))u[L.option]=I;else throw Error(`Option '`+L.option+`': Invalid type for '`+I+`' - expected type '`+L.type+`'.`);return A(),M(),D(),O(),R=y(u),R._=a._||[],R;default:throw Error(`Invalid argument to 'parse': `+a+`.`)}for(z=0,B=P.length;z<B;++z)if(V=P[z],V===`--`)h=!0;else if(h)m.push(V);else if(H=V.match(/^(--?)([a-zA-Z][-a-zA-Z0-9]*)(=)?(.*)?$/)){if(U=H,N(),ee=U[1].length===1,W=U[2],te=U[3]!=null,ne=U[4],te&&ne==null)throw Error(`No value for '`+W+`' specified.`);if(ee)for(re=o(W),ie=re.length,ae=0,oe=re.length;ae<oe;++ae)if(G=ae,se=re[ae],ce=x(se),le=ce.option,h)m.push(se);else if(G===ie-1)te?(K=ce.boolean?v([{type:`Boolean`}],ne):ne,E(le,K)):ce.boolean?E(le,!0):w=le;else if(ce.boolean)E(le,!0);else throw Error(`Can't set argument '`+se+`' when not last flag in a group of short flags.`);else if(ue=!1,(H=W.match(/^no-(.+)$/))?(ue=!0,de=H[1],ce=x(de)):ce=x(W),le=ce.option,ce.boolean)K=te?v([{type:`Boolean`}],ne):!0,ue?E(le,!K):E(le,K);else{if(ue)throw Error(`Only use 'no-' prefix for Boolean options, not with '`+de+`'.`);te?E(le,ne):w=le}}else if(H=V.match(/^-([0-9]+(?:\.[0-9]+)?)$/)){if(ce=t.NUM,!ce)throw Error(`No -NUM option defined.`);E(ce.option,H[1])}else w?(E(w,V),w=null):(m.push(V),e.positionalAnywhere||(h=!0));return N(),A(),M(),D(),O(),R=y(u),R._=m,R},{parse:E,parseArgv:function(e){return E(e,{slice:2})},generateHelp:m(e),generateHelpForOption:h(x,e)}},x.VERSION=e,t.exports=x;function T(e,t){var n={}.hasOwnProperty;for(var r in t)n.call(t,r)&&(e[r]=t[r]);return e}}).call(e)})),cu=d(((e,t)=>{let n=su();t.exports=function(e){let t;t=e?{option:`config-lookup`,type:`Boolean`,default:`true`,description:`Disable look up for eslint.config.js`}:{option:`eslintrc`,type:`Boolean`,default:`true`,description:`Disable use of configuration from .eslintrc.*`};let r;e||(r={option:`env`,type:`[String]`,description:`Specify environments`});let i;e&&(i={option:`inspect-config`,type:`Boolean`,description:`Open the config inspector with the current configuration`});let a;a=e?{option:`ext`,type:`[String]`,description:`Specify additional file extensions to lint`}:{option:`ext`,type:`[String]`,description:`Specify JavaScript file extensions`};let o;e||(o={option:`resolve-plugins-relative-to`,type:`path::String`,description:`A folder where plugins should be resolved from, CWD by default`});let s;e||(s={option:`rulesdir`,type:`[path::String]`,description:`Load additional rules from this directory. Deprecated: Use rules from plugins`});let c;e||(c={option:`ignore-path`,type:`path::String`,description:`Specify path of ignore file`});let l;e&&(l={option:`stats`,type:`Boolean`,default:`false`,description:`Add statistics to the lint report`});let u;e&&(u={option:`warn-ignored`,type:`Boolean`,default:`true`,description:`Suppress warnings when the file list includes ignored files`});let d;e&&(d={option:`flag`,type:`[String]`,description:`Enable a feature flag`});let f;e&&(f={option:`report-unused-inline-configs`,type:`String`,default:void 0,description:`Adds reported errors for unused eslint inline config comments`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]});let p;e&&(p={option:`mcp`,type:`Boolean`,description:`Start the ESLint MCP server`});let m;return e&&(m={option:`concurrency`,type:`Int|String`,default:`off`,description:`Number of linting threads, auto to choose automatically, off for no multithreading`}),n({prepend:`eslint [options] file.js [file.js] [dir]`,defaults:{concatRepeatedArrays:!0,mergeRepeatedObjects:!0},options:[{heading:`Basic configuration`},t,{option:`config`,alias:`c`,type:`path::String`,description:e?`Use this configuration instead of eslint.config.js, eslint.config.mjs, or eslint.config.cjs`:`Use this configuration, overriding .eslintrc.* config options if present`},i,r,a,{option:`global`,type:`[String]`,description:`Define global variables`},{option:`parser`,type:`String`,description:`Specify the parser to be used`},{option:`parser-options`,type:`Object`,description:`Specify parser options`},o,{heading:`Specify Rules and Plugins`},{option:`plugin`,type:`[String]`,description:`Specify plugins`},{option:`rule`,type:`Object`,description:`Specify rules`},s,{heading:`Fix Problems`},{option:`fix`,type:`Boolean`,default:!1,description:`Automatically fix problems`},{option:`fix-dry-run`,type:`Boolean`,default:!1,description:`Automatically fix problems without saving the changes to the file system`},{option:`fix-type`,type:`Array`,description:`Specify the types of fixes to apply (directive, problem, suggestion, layout)`},{heading:`Ignore Files`},c,{option:`ignore`,type:`Boolean`,default:`true`,description:`Disable use of ignore files and patterns`},{option:`ignore-pattern`,type:`[String]`,description:`Patterns of files to ignore${e?``:` (in addition to those in .eslintignore)`}`,concatRepeatedArrays:[!0,{oneValuePerFlag:!0}]},{heading:`Use stdin`},{option:`stdin`,type:`Boolean`,default:`false`,description:`Lint code provided on <STDIN>`},{option:`stdin-filename`,type:`String`,description:`Specify filename to process STDIN as`},{heading:`Handle Warnings`},{option:`quiet`,type:`Boolean`,default:`false`,description:`Report errors only`},{option:`max-warnings`,type:`Int`,default:`-1`,description:`Number of warnings to trigger nonzero exit code`},{heading:`Output`},{option:`output-file`,alias:`o`,type:`path::String`,description:`Specify file to write report to`},{option:`format`,alias:`f`,type:`String`,default:`stylish`,description:`Use a specific output format`},{option:`color`,type:`Boolean`,alias:`no-color`,description:`Force enabling/disabling of color`},{heading:`Inline configuration comments`},{option:`inline-config`,type:`Boolean`,default:`true`,description:`Prevent comments from changing config or rules`},{option:`report-unused-disable-directives`,type:`Boolean`,default:void 0,description:`Adds reported errors for unused eslint-disable and eslint-enable directives`},{option:`report-unused-disable-directives-severity`,type:`String`,default:void 0,description:`Chooses severity level for reporting unused eslint-disable and eslint-enable directives`,enum:[`off`,`warn`,`error`,`0`,`1`,`2`]},f,{heading:`Caching`},{option:`cache`,type:`Boolean`,default:`false`,description:`Only check changed files`},{option:`cache-file`,type:`path::String`,default:`.eslintcache`,description:`Path to the cache file. Deprecated: use --cache-location`},{option:`cache-location`,type:`path::String`,description:`Path to the cache file or directory`},{option:`cache-strategy`,dependsOn:[`cache`],type:`String`,default:`metadata`,enum:[`metadata`,`content`],description:`Strategy to use for detecting changed files in the cache`},{heading:`Suppressing Violations`},{option:`suppress-all`,type:`Boolean`,default:`false`,description:`Suppress all violations`},{option:`suppress-rule`,type:`[String]`,description:`Suppress specific rules`},{option:`suppressions-location`,type:`path::String`,description:`Specify the location of the suppressions file`},{option:`prune-suppressions`,type:`Boolean`,default:`false`,description:`Prune unused suppressions`},{option:`pass-on-unpruned-suppressions`,type:`Boolean`,default:`false`,description:`Ignore unused suppressions`},{heading:`Miscellaneous`},{option:`init`,type:`Boolean`,default:`false`,description:`Run config initialization wizard`},{option:`env-info`,type:`Boolean`,default:`false`,description:`Output execution environment information`},{option:`error-on-unmatched-pattern`,type:`Boolean`,default:`true`,description:`Prevent errors when pattern is unmatched`},{option:`exit-on-fatal-error`,type:`Boolean`,default:`false`,description:`Exit with exit code 2 in case of fatal error`},u,{option:`pass-on-no-patterns`,type:`Boolean`,default:!1,description:`Exit with exit code 0 in case no file patterns are passed`},{option:`debug`,type:`Boolean`,default:!1,description:`Output debugging information`},{option:`help`,alias:`h`,type:`Boolean`,description:`Show help`},{option:`version`,alias:`v`,type:`Boolean`,description:`Output the version number`},{option:`print-config`,type:`path::String`,description:`Print the configuration for the given file`},l,d,p,m].filter(e=>!!e)})}})),lu=d(((e,t)=>{t.exports={info(...e){console.log(...e)},warn(...e){console.warn(...e)},error(...e){console.error(...e)}}})),uu=d(((e,t)=>{let n=h(`node:path`),r=I(),i=h(`node:os`),a=lu(),o=C();function s(){let e=new Map;function t(e,t){return!n.relative(e,t).startsWith(`..`)}function o(t,n){let i=[t,...n].join(` `);if(e.has(i))return e.get(i);let a=r.sync(t,n,{encoding:`utf8`});if(a.error)throw a.error;let o=a.stdout.trim();return e.set(i,o),o}function s(e){return e.startsWith(`v`)?e:`v${e}`}function c(e){let t=[`--version`];try{return s(o(e,t))}catch(n){throw a.error(`Error finding ${e} version running the command \`${e} ${t.join(` `)}\``),n}}function l(e,{global:n=!1}={}){let r=[`bin`,`-g`],i=[`ls`,`--depth=0`,`--json`,e];n&&i.push(`-g`);try{let e=JSON.parse(o(`npm`,i));if(Object.keys(e).length===0||!(e.dependencies&&e.dependencies.eslint))return`Not found`;let[,c]=process.argv,l;try{l=o(`npm`,r)}catch(e){throw a.error(`Error finding npm binary path when running command \`npm ${r.join(` `)}\``),e}let u=t(l,c),d=e.dependencies.eslint.version;return(n&&u||!n&&!u)&&(d+=` (Currently used)`),s(d)}catch(t){throw a.error(`Error finding ${e} version running the command \`npm ${i.join(` `)}\``),t}}return[`Environment Info:`,``,`Node version: ${process.version}`,`npm version: ${c(`npm`)}`,`Local ESLint version: ${l(`eslint`,{global:!1})}`,`Global ESLint version: ${l(`eslint`,{global:!0})}`,`Operating System: ${i.platform()} ${i.release()}`].join(`
292
+ `)}function c(){return`v${o.version}`}t.exports={__esModule:!0,environment:s,version:c}})),du=d((e=>{let{createRequire:t}=h(`module`),{pathToFileURL:n}=h(`url`),r=new Set([`/`,`\\`]);function i(e){return r.has(e[e.length-1])?e:e+`/`}e.ModuleImporter=class{constructor(e=process.cwd()){this.cwd=i(e)}resolve(e){return t(this.cwd).resolve(e)}import(e){return import(n(this.resolve(e)).href)}}})),fu=d(((e,t)=>{let{normalizeSeverityToString:n}=tc(),{getShorthandName:r,normalizePackageName:i}=jc(),{ModuleImporter:a}=du();async function o(e,t){let n={};return await Promise.all(t.map(async t=>{let a=i(t,`eslint-plugin`),o=await e.import(a);if(!(`default`in o))throw Error(`"${a}" cannot be used with the \`--plugin\` option because its default module does not provide a \`default\` export`);let s=r(t,`eslint-plugin`);n[s]=o.default})),n}function s(e){return e.severity===2}function c(e){return e.severity===2}async function l({cache:e,cacheFile:t,cacheLocation:r,cacheStrategy:i,concurrency:l,config:u,configLookup:d,env:f,errorOnUnmatchedPattern:p,eslintrc:m,ext:h,fix:g,fixDryRun:_,fixType:v,flag:y,global:b,ignore:x,ignorePath:S,ignorePattern:C,inlineConfig:w,parser:T,parserOptions:E,plugin:D,quiet:O,reportUnusedDisableDirectives:k,reportUnusedDisableDirectivesSeverity:A,reportUnusedInlineConfigs:j,resolvePluginsRelativeTo:M,rule:N,rulesdir:P,stats:F,warnIgnored:I,passOnNoPatterns:L,maxWarnings:R},z){let B,V,H=new a;if(z===`flat`){V=typeof u==`string`?u:!d,V===!1&&(V=void 0);let e={};b&&(e.globals=b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{})),E&&(e.parserOptions=E),T&&(e.parser=await H.import(T)),B=[{...Object.keys(e).length>0?{languageOptions:e}:{},rules:N||{}}],(k||A!==void 0)&&(B[0].linterOptions={reportUnusedDisableDirectives:k?`error`:n(A)}),j!==void 0&&(B[0].linterOptions={...B[0].linterOptions,reportUnusedInlineConfigs:n(j)}),D&&(B[0].plugins=await o(H,D)),h&&B.push({files:h.map(e=>`**/*${e.startsWith(`.`)?``:`.`}${e}`)})}else V=u,B={env:f&&f.reduce((e,t)=>(e[t]=!0,e),{}),globals:b&&b.reduce((e,t)=>(t.endsWith(`:true`)?e[t.slice(0,-5)]=`writable`:e[t]=`readonly`,e),{}),ignorePatterns:C,parser:T,parserOptions:E,plugins:D,rules:N};let U={allowInlineConfig:w,cache:e,cacheLocation:r||t,cacheStrategy:i,errorOnUnmatchedPattern:p,fix:(g||_)&&(O?s:!0),fixTypes:v,ignore:x,overrideConfig:B,overrideConfigFile:V,passOnNoPatterns:L};return z===`flat`?(U.concurrency=l,U.flags=y,U.ignorePatterns=C,U.stats=F,U.warnIgnored=I,U.ruleFilter=O&&R===-1?c:()=>!0):(U.resolvePluginsRelativeTo=M,U.rulePaths=P,U.useEslintrc=m,U.extensions=h,U.ignorePath=S,(k||A!==void 0)&&(U.reportUnusedDisableDirectives=k?`error`:n(A))),U}t.exports=l})),pu=d(((e,t)=>{let n=h(`node:fs`),r=h(`node:path`),{calculateStatsPerFile:i}=Il(),a=zc();t.exports={SuppressionsService:class e{filePath=``;cwd=``;constructor({filePath:e,cwd:t}){this.filePath=e,this.cwd=t}async suppress(t,n){let r=await this.load();for(let i of t){let t=this.getRelativeFilePath(i.filePath),a=e.countViolationsByRule(i.messages);for(let e in a)n&&!n.includes(e)||(r[t]??={},r[t][e]=a[e])}return this.save(r)}async prune(e){let t=await this.load(),{unused:i}=this.applySuppressions(e,t);for(let e in i)if(t[e]){for(let n in i[e]){if(!t[e][n])continue;let r=t[e][n].count,a=i[e][n].count;r===a?delete t[e][n]:t[e][n].count-=a}Object.keys(t[e]).length===0&&delete t[e]}for(let e of Object.keys(t)){let i=r.resolve(this.cwd,e);n.existsSync(i)||delete t[e]}return this.save(t)}applySuppressions(t,n){let r=structuredClone(t),a={};for(let t of r){let r=this.getRelativeFilePath(t.filePath);if(!n[r])continue;let o=e.countViolationsByRule(t.messages),s=!1;for(let i in o){if(!n[r][i])continue;let c=n[r][i].count,l=o[i].count;l<=c&&(e.suppressMessagesByRule(t,i),s=!0),l<c&&(a[r]??={},a[r][i]??={},a[r][i].count=c-l)}for(let e in n[r])o[e]||(a[r]??={},a[r][e]=n[r][e]);s&&Object.assign(t,i(t.messages))}return{results:r,unused:a}}async load(){try{let e=await n.promises.readFile(this.filePath,`utf8`);return JSON.parse(e)}catch(e){if(e.code===`ENOENT`)return{};throw Error(`Failed to parse suppressions file at ${this.filePath}`,{cause:e})}}save(e){return n.promises.writeFile(this.filePath,a(e,{space:2}))}static countViolationsByRule(e){return e.reduce((e,t)=>(t.severity===2&&t.ruleId&&(e[t.ruleId]??={count:0},e[t.ruleId].count++),e),{})}getRelativeFilePath(e){return r.relative(this.cwd,e).split(r.sep).join(r.posix.sep)}static suppressMessagesByRule(e,t){let n=e.messages.filter(e=>e.ruleId===t);e.suppressedMessages=e.suppressedMessages.concat(n.map(e=>(e.suppressions=[{kind:`file`,justification:``}],e))),e.messages=e.messages.filter(e=>e.ruleId!==t)}}}})),mu=d(((e,t)=>{V();let n=h(`node:fs`),{mkdir:r,stat:i,writeFile:a}=h(`node:fs/promises`),o=h(`node:path`),{pathToFileURL:s}=h(`node:url`),{LegacyESLint:c}=tu(),{ESLint:l,shouldUseFlatConfig:u,locateConfigFileToUse:d}=zl(),f=cu(),p=lu(),m=uu(),g=fu(),{getCacheFile:_}=Il(),{SuppressionsService:v}=pu(),y=S()(`eslint:cli`);function b(e){let t=0,n=0,r=0;for(let i of e)t+=i.errorCount,n+=i.fatalErrorCount,r+=i.warningCount;return{errorCount:t,fatalErrorCount:n,warningCount:r}}function x(e){let t=new URL(`./shared/translate-cli-options.js`,s(B)).href,n=`import translateOptions from ${JSON.stringify(t)};\nexport default await translateOptions(${JSON.stringify(e)}, "flat");\n`;return new URL(`data:text/javascript;base64,${Buffer.from(n).toString(`base64`)}`)}async function C(e){try{return(await i(e)).isDirectory()}catch(e){if(e.code===`ENOENT`||e.code===`ENOTDIR`)return!1;throw e}}async function w(e,t,n,i,s){let c;try{c=await e.loadFormatter(n)}catch(e){return p.error(e.message),!1}let l=await c.format(t,s);if(i){let e=o.resolve(process.cwd(),i);if(await C(e))return p.error(`Cannot write to output file path, it is a directory: %s`,i),!1;try{await r(o.dirname(e),{recursive:!0}),await a(e,l)}catch(e){return p.error(`There was a problem writing the output file:
293
+ %s`,e),!1}}else l&&p.info(l);return!0}function T(e){if(e===void 0||e===`auto`||e===`off`)return;let t=Number(e);if(!Number.isInteger(t)||t<1)throw Error(`Option concurrency: '${e}' is not a positive integer, 'auto' or 'off'.`)}let E={async calculateInspectConfigFlags(e){let{configFilePath:t,basePath:n}=await d({cwd:process.cwd(),configFile:e});return[`--config`,t,`--basePath`,n]},async execute(e,t,r=!0){Array.isArray(e)&&y(`CLI args: %o`,e.slice(2));let i=r&&await u();if(y(`Using flat config?`,i),r&&!i){let{WarningService:e}=Sc();new e().emitESLintRCWarning()}let a=f(i),o;try{o=a.parse(e),T(o.concurrency)}catch(e){y(`Error parsing CLI options:`,e.message);let t=e.message;return i&&(t+=`
294
+ You're using eslint.config.js, some command line flags are no longer available. Please see https://eslint.org/docs/latest/use/command-line-interface for details.`),p.error(t),2}let s=o._,d=typeof t==`string`;if(o.help)return p.info(a.generateHelp()),0;if(o.version)return p.info(m.version()),0;if(o.envInfo)try{return p.info(m.environment()),0}catch(e){return y(`Error retrieving environment info`),p.error(e.message),2}if(o.printConfig){if(s.length)return p.error(`The --print-config option must be used with exactly one file name.`),2;if(d)return p.error(`The --print-config option is not available for piped-in code.`),2;let e=await(i?new l(await g(o,`flat`)):new c(await g(o))).calculateConfigForFile(o.printConfig);return p.info(JSON.stringify(e,null,` `)),0}if(o.inspectConfig){p.info(`You can also run this command directly using 'npx @eslint/config-inspector@latest' in the same directory as your configuration file.`);try{let e=await g(o,`flat`),t=I(),n=await E.calculateInspectConfigFlags(e.overrideConfigFile);t.sync(`npx`,[`@eslint/config-inspector@latest`,...n],{encoding:`utf8`,stdio:`inherit`})}catch(e){return p.error(e),2}return 0}if(y(`Running on ${d?`text`:`files`}`),o.fix&&o.fixDryRun)return p.error(`The --fix option and the --fix-dry-run option cannot be used together.`),2;if(d&&o.fix)return p.error(`The --fix option is not available for piped-in code; use --fix-dry-run instead.`),2;if(o.fixType&&!o.fix&&!o.fixDryRun)return p.error(`The --fix-type option requires either --fix or --fix-dry-run.`),2;if(o.reportUnusedDisableDirectives&&o.reportUnusedDisableDirectivesSeverity!==void 0)return p.error(`The --report-unused-disable-directives option and the --report-unused-disable-directives-severity option cannot be used together.`),2;if(i&&o.ext){if(o.ext.length===0)return p.error(`The --ext option value cannot be empty.`),2;let e=o.ext.indexOf(``);if(e>=0)return p.error(`The --ext option arguments cannot be empty strings. Found an empty string at index ${e}.`),2}if(o.suppressAll&&o.suppressRule)return p.error(`The --suppress-all option and the --suppress-rule option cannot be used together.`),2;if(o.suppressAll&&o.pruneSuppressions)return p.error(`The --suppress-all option and the --prune-suppressions option cannot be used together.`),2;if(o.suppressRule&&o.pruneSuppressions)return p.error(`The --suppress-rule option and the --prune-suppressions option cannot be used together.`),2;if(d&&(o.suppressAll||o.suppressRule||o.pruneSuppressions))return p.error(`The --suppress-all, --suppress-rule, and --prune-suppressions options cannot be used with piped-in code.`),2;let h=i?l:c,S;if(o.concurrency&&o.concurrency!==`off`){let e=x(o);S=await l.fromOptionsModule(e)}else S=new h(await g(o,i?`flat`:`eslintrc`));let C;C=d?await S.lintText(t,{filePath:o.stdinFilename,warnIgnored:i?void 0:!0}):await S.lintFiles(s),o.fix&&(y(`Fix mode enabled - applying fixes`),await h.outputFixes(C));let D={};if(!d){let e=_(o.suppressionsLocation||`eslint-suppressions.json`,process.cwd(),{prefix:`suppressions_`});if(o.suppressionsLocation&&!n.existsSync(e)&&!o.suppressAll&&!o.suppressRule)return p.error("The suppressions file does not exist. Please run the command with `--suppress-all` or `--suppress-rule` to create it."),2;if(o.suppressAll||o.suppressRule||o.pruneSuppressions||n.existsSync(e)){let t=new v({filePath:e,cwd:process.cwd()});(o.suppressAll||o.suppressRule)&&await t.suppress(C,o.suppressRule),o.pruneSuppressions&&await t.prune(C);let n=t.applySuppressions(C,await t.load());C=n.results,D=n.unused}}let O=C;o.quiet&&(y(`Quiet mode enabled - filtering out warnings`),O=h.getErrorResults(O));let k=b(C),A=o.maxWarnings>=0&&k.warningCount>o.maxWarnings,j=A?{maxWarningsExceeded:{maxWarnings:o.maxWarnings,foundWarnings:k.warningCount}}:{};if(await w(S,O,o.format,o.outputFile,j)){let e=o.exitOnFatalError&&k.fatalErrorCount>0;return!k.errorCount&&A&&p.error(`ESLint found too many warnings (maximum: %s).`,o.maxWarnings),!o.passOnUnprunedSuppressions&&Object.keys(D).length>0?(p.error("There are suppressions left that do not occur anymore. Consider re-running the command with `--prune-suppressions`."),y(JSON.stringify(D,null,2)),2):e?2:k.errorCount||A?1:0}return 2}};t.exports=E})),hu=d((()=>{h(`node:module`).enableCompileCache?.(),process.argv.includes(`--debug`)&&S().enable(`eslint:*,-eslint:code-path,eslintrc:*`);function e(){return new Promise((e,t)=>{let n=``,r=``;process.stdin.setEncoding(`utf8`).on(`readable`,()=>{for(;(r=process.stdin.read())!==null;)n+=r}).on(`end`,()=>e(n)).on(`error`,t)})}function t(e){let t=h(`node:util`);if(typeof e!=`object`||!e)return String(e);if(typeof e.messageTemplate==`string`)try{return h(`../messages/${e.messageTemplate}.js`)(e.messageData||{})}catch{}return typeof e.stack==`string`?e.stack:t.format(`%o`,e)}let n=new Set,r=!1;function i(e){process.exitCode=2,r=!0;let{version:i}=C(),a=`
124
295
  Oops! Something went wrong! :(
125
296
 
126
297
  ESLint: ${i}
127
298
 
128
- ${t(e)}`;n.has(a)||(console.error(a),n.add(a))}(async function(){if(process.on(`uncaughtException`,i),process.on(`unhandledRejection`,i),process.argv.includes(`--init`)){console.warn(`You can also run this command directly using 'npm init @eslint/config@latest'.`),I().sync(`npm`,[`init`,`@eslint/config@latest`],{encoding:`utf8`,stdio:`inherit`});return}if(process.argv.includes(`--mcp`)){console.warn(`You can also run this command directly using 'npx @eslint/mcp@latest'.`),I().sync(`npx`,[`@eslint/mcp@latest`],{encoding:`utf8`,stdio:`inherit`});return}let t=await tu().execute(process.argv,process.argv.includes(`--stdin`)?await e():null,!0);r||(process.exitCode=t)})().catch(i)}));export default nu();export{};
299
+ ${t(e)}`;n.has(a)||(console.error(a),n.add(a))}(async function(){if(process.on(`uncaughtException`,i),process.on(`unhandledRejection`,i),process.argv.includes(`--init`)){console.warn(`You can also run this command directly using 'npm init @eslint/config@latest'.`),I().sync(`npm`,[`init`,`@eslint/config@latest`],{encoding:`utf8`,stdio:`inherit`});return}if(process.argv.includes(`--mcp`)){console.warn(`You can also run this command directly using 'npx @eslint/mcp@latest'.`),I().sync(`npx`,[`@eslint/mcp@latest`],{encoding:`utf8`,stdio:`inherit`});return}let t=await mu().execute(process.argv,process.argv.includes(`--stdin`)?await e():null,!0);r||(process.exitCode=t)})().catch(i)}));export default hu();export{};