vzcode 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +185 -40
  2. package/dist/assets/App-C9mRI7eH.js +387 -0
  3. package/dist/assets/App-CxiKy3Rs.css +1 -0
  4. package/dist/assets/bindings_wasm_bg-IWNG_AjZ.wasm +0 -0
  5. package/dist/assets/buildWorker-N5tFTOqM.js +794 -0
  6. package/dist/assets/index-COLyIkCc.js +43 -0
  7. package/dist/assets/index-CZT-v4sH.css +1 -0
  8. package/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  9. package/dist/assets/worker-BpV7Ustv.js +223 -0
  10. package/dist/assets/worker-CLeezw6h.js +458 -0
  11. package/dist/assets/worker-DaSIYBQX.js +327 -0
  12. package/dist/cli.js +170 -99
  13. package/dist/index.html +3 -2
  14. package/dist/server/accessControl.js +104 -0
  15. package/dist/server/computeInitialDocument.js +4 -1
  16. package/dist/server/createServer.js +356 -104
  17. package/dist/server/index.js +4 -3
  18. package/dist/server/workspaceSecurity.js +115 -0
  19. package/dist/server/workspaceSync.js +141 -0
  20. package/package.json +74 -72
  21. package/src/cli.ts +203 -182
  22. package/src/client/App/index.tsx +2 -0
  23. package/src/client/App/usePending.ts +3 -1
  24. package/src/client/CodeEditor/style.scss +18 -11
  25. package/src/client/RunCodeWidget/index.tsx +1 -0
  26. package/src/client/TabList/Tab.tsx +13 -5
  27. package/src/client/TabList/style.scss +32 -5
  28. package/src/client/VZCodeContext/types.ts +6 -0
  29. package/src/client/VZCodeContext/useVZCodeState.ts +2 -0
  30. package/src/client/VZResizer/styles.scss +1 -1
  31. package/src/client/VZSidebar/AIChatWrapper.tsx +2 -0
  32. package/src/client/VZSidebar/DeleteConfirmationModal.tsx +1 -1
  33. package/src/client/VZSidebar/Item.tsx +8 -4
  34. package/src/client/VZSidebar/VisualEditor/CheckboxWidget.tsx +22 -30
  35. package/src/client/VZSidebar/VisualEditor/ColorWidget.tsx +198 -126
  36. package/src/client/VZSidebar/VisualEditor/DropdownWidget.tsx +25 -67
  37. package/src/client/VZSidebar/VisualEditor/PropertySection.tsx +41 -0
  38. package/src/client/VZSidebar/VisualEditor/SegmentedWidget.tsx +34 -0
  39. package/src/client/VZSidebar/VisualEditor/SliderWidget.tsx +60 -12
  40. package/src/client/VZSidebar/VisualEditor/VisualEditor.tsx +31 -393
  41. package/src/client/VZSidebar/VisualEditor/VisualEditorControls.tsx +478 -0
  42. package/src/client/VZSidebar/VisualEditor/colorUtils.ts +12 -0
  43. package/src/client/VZSidebar/VisualEditor/status.ts +47 -0
  44. package/src/client/VZSidebar/VisualEditor/updateConfig.ts +51 -24
  45. package/src/client/VZSidebar/VisualEditor/utils.ts +1 -1
  46. package/src/client/VZSidebar/index.tsx +55 -23
  47. package/src/client/VZSidebar/styles.scss +426 -6
  48. package/src/client/WorkspaceConflictBanner.tsx +120 -0
  49. package/src/client/index.ts +2 -0
  50. package/src/client/main.jsx +54 -12
  51. package/src/client/ui.scss +156 -4
  52. package/src/client/ui.tsx +1 -1
  53. package/src/llm-streaming-server/README.md +4 -16
  54. package/src/llm-streaming-ui/README.md +41 -2
  55. package/src/llm-streaming-ui/components/ChatInput.tsx +65 -13
  56. package/src/llm-streaming-ui/components/index.tsx +2 -0
  57. package/src/llm-streaming-ui/components/styles.scss +46 -0
  58. package/src/llm-streaming-ui/hooks/useAutoScroll.ts +1 -1
  59. package/src/llm-streaming-ui/index.ts +1 -0
  60. package/src/llm-streaming-ui/props.ts +26 -2
  61. package/src/server/accessControl.ts +151 -0
  62. package/src/server/computeInitialDocument.ts +6 -2
  63. package/src/server/createServer.ts +487 -138
  64. package/src/server/index.ts +4 -5
  65. package/src/server/workspaceSecurity.ts +160 -0
  66. package/src/server/workspaceSync.ts +203 -0
  67. package/src/types.ts +29 -27
  68. package/dist/assets/bindings_wasm_bg-9w8E-TmY.wasm +0 -0
  69. package/dist/assets/buildWorker-BZlya278.js +0 -687
  70. package/dist/assets/index-5qf102c2.css +0 -1
  71. package/dist/assets/index-dSJDl5x9.js +0 -356
  72. package/dist/assets/worker-1oQYaz-F.js +0 -342
  73. package/dist/assets/worker-BfgPD8zR.js +0 -125
  74. package/dist/assets/worker-CoJaqtpi.js +0 -436
@@ -0,0 +1,223 @@
1
+ (function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);if(!f)var f=globalThis||window;function p(e){return e&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var m=f===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:f;function h(){throw Error(`setTimeout has not been defined`)}function g(){throw Error(`clearTimeout has not been defined`)}var _=h,v=g;typeof m.setTimeout==`function`&&(_=setTimeout),typeof m.clearTimeout==`function`&&(v=clearTimeout);function y(e){if(_===setTimeout)return setTimeout(e,0);if((_===h||!_)&&setTimeout)return _=setTimeout,setTimeout(e,0);try{return _(e,0)}catch{try{return _.call(null,e,0)}catch{return _.call(this,e,0)}}}function b(e){if(v===clearTimeout)return clearTimeout(e);if((v===g||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(e);try{return v(e)}catch{try{return v.call(null,e)}catch{return v.call(this,e)}}}var x=[],S=!1,C,w=-1;function T(){S&&C&&(S=!1,C.length?x=C.concat(x):w=-1,x.length&&E())}function E(){if(!S){var e=y(T);S=!0;for(var t=x.length;t;){for(C=x,x=[];++w<t;)C&&C[w].run();w=-1,t=x.length}C=null,S=!1,b(e)}}function D(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];x.push(new O(e,t)),x.length===1&&!S&&y(E)}function O(e,t){this.fun=e,this.array=t}O.prototype.run=function(){this.fun.apply(null,this.array)};var k=`browser`,A=`browser`,j=!0,M={},N=[],P=``,F={},I={},ee={};function L(){}var R=L,te=L,z=L,ne=L,re=L,B=L,V=L;function ie(e){throw Error(`process.binding is not supported`)}function ae(){return`/`}function oe(e){throw Error(`process.chdir is not supported`)}function H(){return 0}var se=m.performance||{},ce=se.now||se.mozNow||se.msNow||se.oNow||se.webkitNow||function(){return(/* @__PURE__ */ new Date()).getTime()};function le(e){var t=ce.call(se)*.001,n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],r-=e[1],r<0&&(n--,r+=1e9)),[n,r]}var ue=/* @__PURE__ */ new Date;function de(){return(/* @__PURE__ */ new Date-ue)/1e3}var U={nextTick:D,title:k,browser:j,env:M,argv:N,version:P,versions:F,on:R,addListener:te,once:z,off:ne,removeListener:re,removeAllListeners:B,emit:V,binding:ie,cwd:ae,chdir:oe,umask:H,hrtime:le,platform:A,release:I,config:ee,uptime:de};function fe(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];i===`.`?e.splice(r,1):i===`..`?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var pe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,me=function(e){return pe.exec(e).slice(1)};function he(){for(var e=``,t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:`/`;if(typeof r!=`string`)throw TypeError(`Arguments to path.resolve must be strings`);r&&(e=r+`/`+e,t=r.charAt(0)===`/`)}return e=fe(Se(e.split(`/`),function(e){return!!e}),!t).join(`/`),(t?`/`:``)+e||`.`}function ge(e){var t=_e(e),n=J(e,-1)===`/`;return e=fe(Se(e.split(`/`),function(e){return!!e}),!t).join(`/`),!e&&!t&&(e=`.`),e&&n&&(e+=`/`),(t?`/`:``)+e}function _e(e){return e.charAt(0)===`/`}function ve(){return ge(Se(Array.prototype.slice.call(arguments,0),function(e,t){if(typeof e!=`string`)throw TypeError(`Arguments to path.join must be strings`);return e}).join(`/`))}function ye(e,t){e=he(e).substr(1),t=he(t).substr(1);function n(e){for(var t=0;t<e.length&&e[t]===``;t++);for(var n=e.length-1;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}for(var r=n(e.split(`/`)),i=n(t.split(`/`)),a=Math.min(r.length,i.length),o=a,s=0;s<a;s++)if(r[s]!==i[s]){o=s;break}for(var c=[],s=o;s<r.length;s++)c.push(`..`);return c=c.concat(i.slice(o)),c.join(`/`)}var W=`/`,be=`:`;function xe(e){var t=me(e),n=t[0],r=t[1];return!n&&!r?`.`:(r&&=r.substr(0,r.length-1),n+r)}function G(e,t){var n=me(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function K(e){return me(e)[3]}var q={extname:K,basename:G,dirname:xe,sep:W,delimiter:be,relative:ye,join:ve,isAbsolute:_e,normalize:ge,resolve:he};function Se(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var J=`ab`.substr(-1)===`b`?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)},Ce=/*@__PURE__*/ p(/* @__PURE__ */ Object.freeze({__proto__:null,basename:G,default:q,delimiter:be,dirname:xe,extname:K,isAbsolute:_e,join:ve,normalize:ge,relative:ye,resolve:he,sep:W})),Y={},we={},X;function Te(){return X||(X=1,(function(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 typeof e==`object`&&!!e&&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}else 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}else{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)})(we)),we}var Ee={},De={version:`4.3.0`},Oe;function Z(){return Oe||(Oe=1,(function(){var e=Te();function t(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function n(t,n){return(t===e.Syntax.ObjectExpression||t===e.Syntax.ObjectPattern)&&n===`properties`}function r(t,n){n||={},this.__visitor=t||this,this.__childVisitorKeys=n.childVisitorKeys?Object.assign({},e.VisitorKeys,n.childVisitorKeys):e.VisitorKeys,n.fallback===`iteration`?this.__fallback=Object.keys:typeof n.fallback==`function`&&(this.__fallback=n.fallback)}r.prototype.visitChildren=function(r){var i,a,o,s,c,l,u;if(r!=null){if(i=r.type||e.Syntax.Property,a=this.__childVisitorKeys[i],!a){if(this.__fallback)a=this.__fallback(r);else throw Error(`Unknown node type `+i+`.`)}for(o=0,s=a.length;o<s;++o)if(u=r[a[o]],u){if(Array.isArray(u))for(c=0,l=u.length;c<l;++c)u[c]&&(t(u[c])||n(i,a[o]))&&this.visit(u[c]);else t(u)&&this.visit(u)}}},r.prototype.visit=function(t){var n;t!=null&&(n=t.type||e.Syntax.Property,this.__visitor[n]?this.__visitor[n].call(this,t):this.visitChildren(t))},Ee.version=De.version,Ee.Visitor=r,Ee.visit=function(e,t,n){new r(t,n).visit(e)}})()),Ee}var ke;function Ae(){if(ke)return Y;ke=1;var e=Te(),t=Z();function n(e,t=`Assertion failed.`){if(!e)throw Error(t)}class r{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&r.WRITE)}isRead(){return!!(this.flag&r.READ)}isReadOnly(){return this.flag===r.READ}isWriteOnly(){return this.flag===r.WRITE}isReadWrite(){return this.flag===r.RW}}r.READ=1,r.WRITE=2,r.RW=3;class i{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}}i.CatchClause=`CatchClause`,i.Parameter=`Parameter`,i.FunctionName=`FunctionName`,i.ClassName=`ClassName`,i.Variable=`Variable`,i.ImportBinding=`ImportBinding`,i.ImplicitGlobalVariable=`ImplicitGlobalVariable`;class a{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}}class o extends a{constructor(e,t,n,r){super(i.Parameter,e,t,null,n,null),this.rest=r}}let{Syntax:s}=e;function c(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===s.ArrowFunctionExpression&&t.body.type!==s.BlockStatement||(r=t.type===s.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 l(e,t){e.scopes.push(t);let n=e.__nodeToScope.get(t.block);n?n.push(t):e.__nodeToScope.set(t.block,[t])}class u{constructor(e,t,n,r,i){this.type=t,this.set=/* @__PURE__ */ new Map,this.taints=/* @__PURE__ */ 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()?c(this,r,i):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,l(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()||this.type===`global`}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do t.through.push(e),t=t.upper;while(t)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef: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,a){let o;o=t.get(e),o||(o=new i(e,this),t.set(e,o),n.push(o)),a&&(o.defs.push(a),this.__addDeclaredVariablesOfNode(o,a.node),this.__addDeclaredVariablesOfNode(o,a.parent)),r&&o.identifiers.push(r)}__define(e,t){e&&e.type===s.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,n,i,a,o){if(!e||e.type!==s.Identifier&&e.type!==`JSXIdentifier`||e.name===`super`)return;let c=new r(e,this,t||r.READ,n,i,!!a,!!o);this.references.push(c),this.__left.push(c)}__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,r,i;for(n(this.__isClosed(),`Scope should be closed.`),n(e.type===s.Identifier,`Target should be identifier.`),r=0,i=this.references.length;r<i;++r)if(t=this.references[r],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}}class d extends u{constructor(e,t){super(e,`global`,null,t,!1),this.implicit={set:/* @__PURE__ */ 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 a(i.ImplicitGlobalVariable,n.pattern,n.node,null,null,null))}return super.__close(e),this.implicit.left=[...this.through],null}__defineImplicit(e,t){e&&e.type===s.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}__addVariables(e){for(let t of e)this.__defineGeneric(t,this.set,this.variables,null,null);let t=new Set(e);this.through=this.through.filter(e=>{let n=e.identifier.name;if(t.has(n)){let t=this.set.get(n);return e.resolved=t,t.references.push(e),!1}return!0}),this.implicit.variables=this.implicit.variables.filter(e=>{let n=e.name;return!t.has(n)||(this.implicit.set.delete(n),!1)}),this.implicit.left=this.implicit.left.filter(e=>!t.has(e.identifier.name))}}class f extends u{constructor(e,t,n){super(e,`module`,t,n,!1)}}class p extends u{constructor(e,t,n){super(e,`function-expression-name`,t,n,!1),this.__define(n.id,new a(i.FunctionName,n.id,n,null,null,null)),this.functionExpressionScope=!0}}class m extends u{constructor(e,t,n){super(e,`catch`,t,n,!1)}}class h extends u{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}}class g extends u{constructor(e,t,n){super(e,`block`,t,n,!1)}}class _ extends u{constructor(e,t,n){super(e,`switch`,t,n,!1)}}class v extends u{constructor(e,t,n,r){super(e,`function`,t,n,r),this.block.type!==s.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===s.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get(`arguments`);return n(e,`Always have arguments variable.`),e.tainted||e.references.length!==0}isThisMaterialized(){return!this.isStatic()||this.thisFound}__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))}}class y extends u{constructor(e,t,n){super(e,`for`,t,n,!1)}}class b extends u{constructor(e,t,n){super(e,`class`,t,n,!1)}}class x extends u{constructor(e,t,n){super(e,`class-field-initializer`,t,n,!0)}}class S extends u{constructor(e,t,n){super(e,`class-static-block`,t,n,!0)}}class C{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=/* @__PURE__ */ new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=/* @__PURE__ */ 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}addGlobals(e){this.globalScope.__addVariables(e)}attach(){}detach(){}__nestScope(e){return e instanceof d&&(n(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new d(this,e))}__nestBlockScope(e){return this.__nestScope(new g(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new v(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new y(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new m(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new h(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new b(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new x(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new S(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new _(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new f(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new p(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}}let{Syntax:w}=e;function T(e){return e.at(-1)||null}class E extends t.Visitor{static isPattern(e){let t=e.type;return t===w.Identifier||t===w.ObjectPattern||t===w.ArrayPattern||t===w.SpreadElement||t===w.RestElement||t===w.AssignmentPattern}constructor(e,t,n){super(null,e),this.rootPattern=t,this.callback=n,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let t=T(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:D}=e;function O(e,t,n,r){let i=new E(e,t,r);i.visit(t),n!=null&&i.rightHandNodes.forEach(n.visit,n)}class k extends t.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 a(i.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)}}class A extends t.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,i){let a=this.currentScope();t.forEach(t=>{a.__referencing(e,r.WRITE,t.right,n,e!==t.left,i)})}visitPattern(e,t,n){let r=t,i=n;typeof t==`function`&&(i=t,r={processRightHandNodes:!1}),O(this.options,e,r.processRightHandNodes?this:null,i)}visitFunction(e){let t,n;e.type===D.FunctionDeclaration&&this.currentScope().__define(e.id,new a(i.FunctionName,e.id,e,null,null,null)),e.type===D.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);let r=this;function s(n,i){r.currentScope().__define(n,new o(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},s);e.rest&&this.visitPattern({type:`RestElement`,argument:e.rest},t=>{this.currentScope().__define(t,new o(t,e,e.params.length,!0))}),e.body&&(e.body.type===D.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===D.ClassDeclaration&&this.currentScope().__define(e.id,new a(i.ClassName,e.id,e,null,null,null)),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new a(i.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===D.MethodDefinition;n&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===D.VariableDeclaration&&e.left.kind!==`var`&&this.scopeManager.__nestForScope(e),e.left.type===D.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,t=>{this.currentScope().__referencing(t,r.WRITE,e.right,null,!0,!0)})):this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let i=null;this.currentScope().isStrict||(i={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,i,!1),this.currentScope().__referencing(t,r.WRITE,e.right,i,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,n,i){let o=n.declarations[i],s=o.init;this.visitPattern(o.id,{processRightHandNodes:!0},(c,l)=>{e.__define(c,new a(t,c,o,n,i,n.kind)),this.referencingDefaultValue(c,l.assignments,null,!0),s&&this.currentScope().__referencing(c,r.WRITE,s,null,!l.topLevel,!0)})}AssignmentExpression(e){E.isPattern(e.left)?e.operator===`=`?this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let i=null;this.currentScope().isStrict||(i={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,i,!1),this.currentScope().__referencing(t,r.WRITE,e.right,i,!n.topLevel,!1)}):this.currentScope().__referencing(e.left,r.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 a(i.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){E.isPattern(e.argument)?this.currentScope().__referencing(e.argument,r.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===D.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===D.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,i.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){n(this.scopeManager.__isES6()&&this.scopeManager.isModule(),`ImportDeclaration should appear when the mode is ES6 and in the module context.`),new k(e,this).visit(e)}visitExportDeclaration(e){e.source||(e.declaration?this.visit(e.declaration):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 j(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:`script`,ecmaVersion:5,childVisitorKeys:null,fallback:`iteration`}}function M(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])?M(e[r],i):e[r]=M({},i):e[r]=i}return e}function N(e,t){let r=M(j(),t),i=new C(r);return new A(r,i).visit(e),n(i.__currentScope===null,`currentScope should be null.`),i}return Y.Definition=a,Y.PatternVisitor=E,Y.Reference=r,Y.Referencer=A,Y.Scope=u,Y.ScopeManager=C,Y.Variable=i,Y.analyze=N,Y.version=`9.1.2`,Y}var je={},Me;function Ne(){if(Me)return je;Me=1;let e={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],ExportAllDeclaration:[`exported`,`source`,`attributes`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`,`attributes`],ExportSpecifier:[`local`,`exported`],ExpressionStatement:[`expression`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportAttribute:[`key`,`value`],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:[`local`],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:[],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`attributes`],JSXOpeningFragment:[],JSXSpreadAttribute:[`argument`],JSXSpreadChild:[`expression`],JSXText:[],LabeledStatement:[`label`,`body`],Literal:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],StaticBlock:[`body`],Super:[],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},t=Object.keys(e);for(let n of t)Object.freeze(e[n]);Object.freeze(e);let n=/* @__PURE__ */ new Set([`parent`,`leadingComments`,`trailingComments`]);function r(e){return!n.has(e)&&e[0]!==`_`}function i(e){return Object.keys(e).filter(r)}function a(t){let n=Object.assign({},e);for(let e of Object.keys(t))if(Object.hasOwn(n,e)){let r=new Set(t[e]);for(let t of n[e])r.add(t);n[e]=Object.freeze(Array.from(r))}else n[e]=Object.freeze(Array.from(t[e]));return Object.freeze(n)}return je.KEYS=e,je.getKeys=i,je.unionWith=a,je}var Pe={version:`10.15.0`},Fe={exports:{}},Ie={exports:{}},Le,Re;function ze(){if(Re)return Le;Re=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;Le=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return o(e);if(n===`number`&&isFinite(e))return t.long?c(e):s(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function o(o){if(o=String(o),!(o.length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(s){var c=parseFloat(s[1]);switch((s[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*a;case`weeks`:case`week`:case`w`:return c*i;case`days`:case`day`:case`d`:return c*r;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*n;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*t;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*e;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function s(i){var a=Math.abs(i);return a>=r?Math.round(i/r)+`d`:a>=n?Math.round(i/n)+`h`:a>=t?Math.round(i/t)+`m`:a>=e?Math.round(i/e)+`s`:i+`ms`}function c(i){var a=Math.abs(i);return a>=r?l(i,a,r,`day`):a>=n?l(i,a,n,`hour`):a>=t?l(i,a,t,`minute`):a>=e?l(i,a,e,`second`):i+` ms`}function l(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}return Le}var Be,Ve;function He(){if(Ve)return Be;Ve=1;function e(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=ze(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(/* @__PURE__ */ new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Be=e,Be}var Ue;function We(){return Ue||(Ue=1,(function(e,t){t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=o(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=/* @__PURE__ */ `#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(t){if(t[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+t[0]+(this.useColors?`%c `:` `)+`+`+e.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;t.splice(1,0,n,`color: inherit`);let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function i(e){try{e?t.storage.setItem(`debug`,e):t.storage.removeItem(`debug`)}catch{}}function a(){let e;try{e=t.storage.getItem(`debug`)||t.storage.getItem(`DEBUG`)}catch{}return!e&&U!==void 0&&`env`in U&&(e=U.env.DEBUG),e}function o(){try{return localStorage}catch{}}e.exports=He()(t);let{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})(Ie,Ie.exports)),Ie.exports}var Ge;function Ke(){return Ge||(Ge=1,Fe.exports=We()),Fe.exports}var qe,Je;function Ye(){if(Je)return qe;Je=1;let e=/*@__PURE__*/ Ne(),t=Ke()(`eslint:traverser`);function n(){}function r(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function i(n,r){let i=n[r.type];return i||(i=e.getKeys(r),t(`Unknown node type "%s": Estimated visitor keys %j`,r.type,i)),i}class a{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(t,r){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=r.visitorKeys||e.KEYS,this._enter=r.enter||n,this._leave=r.leave||n,this._traverse(t,null)}_traverse(e,t){if(r(e)){if(this._current=e,this._skipped=!1,this._enter(e,t),!this._skipped&&!this._broken){let t=i(this._visitorKeys,e);if(t.length>=1){this._parents.push(e);for(let n=0;n<t.length&&!this._broken;++n){let r=e[t[n]];if(Array.isArray(r))for(let t=0;t<r.length&&!this._broken;++t)this._traverse(r[t],e);else this._traverse(r,e)}this._parents.pop()}}this._broken||this._leave(e,t),this._current=t}}static getKeys(t){return e.getKeys(t)}static traverse(e,t){new a().traverse(e,t)}static get DEFAULT_VISITOR_KEYS(){return e.KEYS}}return qe=a,qe}var Xe={},Ze={},Qe;function $e(){if(Qe)return Ze;Qe=1,Object.defineProperty(Ze,"__esModule",{value:!0});let e={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],ExportAllDeclaration:[`exported`,`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportExpression:[`source`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:[],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`attributes`],JSXOpeningFragment:[],JSXSpreadAttribute:[`argument`],JSXSpreadChild:[`expression`],JSXText:[],LabeledStatement:[`label`,`body`],Literal:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],StaticBlock:[`body`],Super:[],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},t=Object.keys(e);for(let n of t)Object.freeze(e[n]);Object.freeze(e);let n=/* @__PURE__ */ new Set([`parent`,`leadingComments`,`trailingComments`]);function r(e){return!n.has(e)&&e[0]!==`_`}function i(e){return Object.keys(e).filter(r)}function a(t){let n=Object.assign({},e);for(let e of Object.keys(t))if(Object.prototype.hasOwnProperty.call(n,e)){let r=new Set(t[e]);for(let t of n[e])r.add(t);n[e]=Object.freeze(Array.from(r))}else n[e]=Object.freeze(Array.from(t[e]));return Object.freeze(n)}return Ze.KEYS=e,Ze.getKeys=i,Ze.unionWith=a,Ze}var et;function tt(){return et||(et=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=$e();function n(e,t){let n=t.range[0],r=e,i=!1;do{i=!1;for(let e of r.childScopes){let t=e.block.range;if(t[0]<=n&&n<t[1]){r=e,i=!0;break}}}while(i);return r}function r(e,t){let r=``,i=e;for(typeof t==`string`?r=t:(r=t.name,i=n(i,t));i!=null;){let e=i.set.get(r);if(e!=null)return e;i=i.upper}return null}function i(e){return t=>!e(t)}function a(e,t){return e.type===`Punctuator`&&e.value===t}function o(e){return a(e,`=>`)}function s(e){return a(e,`,`)}function c(e){return a(e,`;`)}function l(e){return a(e,`:`)}function u(e){return a(e,`(`)}function d(e){return a(e,`)`)}function f(e){return a(e,`[`)}function p(e){return a(e,`]`)}function h(e){return a(e,`{`)}function g(e){return a(e,`}`)}function _(e){return[`Block`,`Line`,`Shebang`].includes(e.type)}let v=i(o),y=i(s),b=i(c),x=i(l),S=i(u),C=i(d),w=i(f),T=i(p),E=i(h),D=i(g),O=i(_);function k(e,t){return e.id?t.getTokenAfter(e.id,u):t.getFirstToken(e,u)}function A(e,t){let n=e.parent,r=null,i=null;if(e.type===`ArrowFunctionExpression`){let n=t.getTokenBefore(e.body,o);r=n.loc.start,i=n.loc.end}else n.type===`Property`||n.type===`MethodDefinition`||n.type===`PropertyDefinition`?(r=n.loc.start,i=k(e,t).loc.start):(r=e.loc.start,i=k(e,t).loc.start);return{start:{...r},end:{...i}}}let j=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:m===void 0?{}:m,M=Object.freeze(/* @__PURE__ */ new Set(/* @__PURE__ */ `Array.ArrayBuffer.BigInt.BigInt64Array.BigUint64Array.Boolean.DataView.Date.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.Float32Array.Float64Array.Function.Infinity.Int16Array.Int32Array.Int8Array.isFinite.isNaN.isPrototypeOf.JSON.Map.Math.NaN.Number.Object.parseFloat.parseInt.Promise.Proxy.Reflect.RegExp.Set.String.Symbol.Uint16Array.Uint32Array.Uint8Array.Uint8ClampedArray.undefined.unescape.WeakMap.WeakSet`.split(`.`))),N=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,typeof BigInt==`function`?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>e!==`random`).map(e=>Math[e]).filter(e=>typeof e==`function`),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>typeof e==`function`)),P=/* @__PURE__ */ new Set([Object.freeze,Object.preventExtensions,Object.seal]),F=[[Map,/* @__PURE__ */ new Set([`size`])],[RegExp,/* @__PURE__ */ new Set([`dotAll`,`flags`,`global`,`hasIndices`,`ignoreCase`,`multiline`,`source`,`sticky`,`unicode`])],[Set,/* @__PURE__ */ new Set([`size`])]];function I(e,t){let n=e;for(;(typeof n==`object`||typeof n==`function`)&&n!==null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}return null}function ee(e,t){let n=I(e,t);return n!=null&&n.get!=null}function L(e,t){let n=[];for(let r=0;r<e.length;++r){let i=e[r];if(i==null)n.length=r+1;else if(i.type===`SpreadElement`){let e=B(i.argument,t);if(e==null)return null;n.push(...e.value)}else{let e=B(i,t);if(e==null)return null;n.push(e.value)}}return n}function R(e){return e!=null&&e.defs.length===0&&M.has(e.name)&&e.name in j}function te(e){if(e.defs.length!==1)return!1;let t=e.defs[0];return!(!t.parent||t.type!==`Variable`||t.parent.kind!==`const`&&!z(e))}function z(e){let t=e.references,n=t.filter(e=>e.init).length,r=t.filter(e=>e.isReadOnly()).length;return n===1&&r+n===t.length}function ne(e,t){for(let r of e.references){let e=r.identifier;for(;e&&e.parent&&e.parent.type===`MemberExpression`;)e=e.parent;if(e&&e.parent&&(e.parent.type===`AssignmentExpression`&&e.parent.left===e||e.parent.type===`UpdateExpression`&&e.parent.argument===e||e.parent.type===`CallExpression`&&e.parent.callee===e&&e.type===`MemberExpression`&&n(V(e,t))))return!0}return!1;function n(e){if(e==null||e.value==null)return!1;let t=e.value;return t===`copyWithin`||t===`fill`||t===`pop`||t===`push`||t===`reverse`||t===`shift`||t===`sort`||t===`splice`||t===`unshift`}}let re=Object.freeze({ArrayExpression(e,t){let n=L(e.elements,t);return n==null?null:{value:n}},AssignmentExpression(e,t){return e.operator===`=`?B(e.right,t):null},BinaryExpression(e,t){if(e.operator===`in`||e.operator===`instanceof`)return null;let n=B(e.left,t),r=B(e.right,t);if(n!=null&&r!=null)switch(e.operator){case`==`:return{value:n.value==r.value};case`!=`:return{value:n.value!=r.value};case`===`:return{value:n.value===r.value};case`!==`:return{value:n.value!==r.value};case`<`:return{value:n.value<r.value};case`<=`:return{value:n.value<=r.value};case`>`:return{value:n.value>r.value};case`>=`:return{value:n.value>=r.value};case`<<`:return{value:n.value<<r.value};case`>>`:return{value:n.value>>r.value};case`>>>`:return{value:n.value>>>r.value};case`+`:return{value:n.value+r.value};case`-`:return{value:n.value-r.value};case`*`:return{value:n.value*r.value};case`/`:return{value:n.value/r.value};case`%`:return{value:n.value%r.value};case`**`:return{value:n.value**r.value};case`|`:return{value:n.value|r.value};case`^`:return{value:n.value^r.value};case`&`:return{value:n.value&r.value}}return null},CallExpression(e,t){let n=e.callee,r=L(e.arguments,t);if(r!=null){if(n.type===`MemberExpression`){if(n.property.type===`PrivateIdentifier`)return null;let i=B(n.object,t);if(i!=null){if(i.value==null&&(i.optional||e.optional))return{value:void 0,optional:!0};let a=V(n,t);if(a!=null){let e=i.value,t=a.value;if(N.has(e[t]))return{value:e[t](...r)};if(P.has(e[t]))return{value:r[0]}}}}else{let i=B(n,t);if(i!=null){if(i.value==null&&e.optional)return{value:void 0,optional:!0};let t=i.value;if(N.has(t))return{value:t(...r)};if(P.has(t))return{value:r[0]}}}}return null},ConditionalExpression(e,t){let n=B(e.test,t);return n==null?null:n.value?B(e.consequent,t):B(e.alternate,t)},ExpressionStatement(e,t){return B(e.expression,t)},Identifier(e,t){if(t!=null){let n=r(t,e);if(n!=null){if(R(n))return{value:j[n.name]};if(te(n)){let e=n.defs[0];if(e.node.id.type===`Identifier`){let r=B(e.node.init,t);return r&&typeof r.value==`object`&&r.value!==null&&ne(n,t)?null:r}}}}return null},Literal(e){let t=e;return(t.regex!=null||t.bigint!=null)&&t.value==null?null:{value:t.value}},LogicalExpression(e,t){let n=B(e.left,t);if(n!=null){if(e.operator===`||`&&n.value||e.operator===`&&`&&!n.value||e.operator===`??`&&n.value!=null)return n;let r=B(e.right,t);if(r!=null)return r}return null},MemberExpression(e,t){if(e.property.type===`PrivateIdentifier`)return null;let n=B(e.object,t);if(n!=null){if(n.value==null&&(n.optional||e.optional))return{value:void 0,optional:!0};let r=V(e,t);if(r!=null){if(!ee(n.value,r.value))return{value:n.value[r.value]};for(let[e,t]of F)if(n.value instanceof e&&t.has(r.value))return{value:n.value[r.value]}}}return null},ChainExpression(e,t){let n=B(e.expression,t);return n==null?null:{value:n.value}},NewExpression(e,t){let n=B(e.callee,t),r=L(e.arguments,t);if(n!=null&&r!=null){let e=n.value;if(N.has(e))return{value:new e(...r)}}return null},ObjectExpression(e,t){let n={};for(let r of e.properties)if(r.type===`Property`){if(r.kind!==`init`)return null;let e=V(r,t),i=B(r.value,t);if(e==null||i==null)return null;n[e.value]=i.value}else if(r.type===`SpreadElement`||r.type===`ExperimentalSpreadProperty`){let e=B(r.argument,t);if(e==null)return null;Object.assign(n,e.value)}else return null;return{value:n}},SequenceExpression(e,t){let n=e.expressions[e.expressions.length-1];return B(n,t)},TaggedTemplateExpression(e,t){let n=B(e.tag,t),r=L(e.quasi.expressions,t);if(n!=null&&r!=null){let t=n.value,i=e.quasi.quasis.map(e=>e.value.cooked);if(i.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(i,...r)}}return null},TemplateLiteral(e,t){let n=L(e.expressions,t);if(n!=null){let t=e.quasis[0].value.cooked;for(let r=0;r<n.length;++r)t+=n[r],t+=e.quasis[r+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if(e.operator===`delete`)return null;if(e.operator===`void`)return{value:void 0};let n=B(e.argument,t);if(n!=null)switch(e.operator){case`-`:return{value:-n.value};case`+`:return{value:+n.value};case`!`:return{value:!n.value};case`~`:return{value:~n.value};case`typeof`:return{value:typeof n.value}}return null},TSAsExpression(e,t){return B(e.expression,t)},TSSatisfiesExpression(e,t){return B(e.expression,t)},TSTypeAssertion(e,t){return B(e.expression,t)},TSNonNullExpression(e,t){return B(e.expression,t)},TSInstantiationExpression(e,t){return B(e.expression,t)}});function B(e,t){return e!=null&&Object.hasOwnProperty.call(re,e.type)?re[e.type](e,t):null}function V(e,t){let n=e.type===`Property`?e.key:e.property;return e.computed?B(n,t):n.type===`Identifier`?{value:n.name}:n.type===`Literal`?n.bigint?{value:n.bigint}:{value:String(n.value)}:null}function ie(e,t=null){try{return B(e,t)}catch{return null}}function ae(e,t=null){if(e&&e.type===`Literal`&&e.value===null){let t=e;if(t.regex)return`/${t.regex.pattern}/${t.regex.flags}`;if(t.bigint)return t.bigint}let n=ie(e,t);if(n)try{return String(n.value)}catch{}return null}function oe(e,t){switch(e.type){case`MemberExpression`:return e.computed?ae(e.property,t):e.property.type===`PrivateIdentifier`?null:e.property.name;case`Property`:case`MethodDefinition`:case`PropertyDefinition`:return e.computed?ae(e.key,t):e.key.type===`Literal`?String(e.key.value):e.key.type===`PrivateIdentifier`?null:e.key.name}return null}function H(e,t){let n=e.parent,r=[],i=n.type===`Property`&&n.value===e,a=n.type===`MethodDefinition`&&n.value===e,o=n.type===`PropertyDefinition`&&n.value===e;if((a||o)&&(n.static&&r.push(`static`),n.key.type===`PrivateIdentifier`&&r.push(`private`)),e.async&&r.push(`async`),e.generator&&r.push(`generator`),i||a){if(n.kind===`constructor`)return`constructor`;n.kind===`get`?r.push(`getter`):n.kind===`set`?r.push(`setter`):r.push(`method`)}else o?r.push(`method`):(e.type===`ArrowFunctionExpression`&&r.push(`arrow`),r.push(`function`));if(i||a||o){if(n.key.type===`PrivateIdentifier`)r.push(`#${n.key.name}`);else{let e=oe(n);if(e)r.push(`'${e}'`);else if(t){let e=t.getText(n.key);e.includes(`
2
+ `)||r.push(`[${e}]`)}}}else se(e)?r.push(`'${e.id.name}'`):n.type===`VariableDeclarator`&&n.id&&n.id.type===`Identifier`?r.push(`'${n.id.name}'`):(n.type===`AssignmentExpression`||n.type===`AssignmentPattern`)&&n.left&&n.left.type===`Identifier`?r.push(`'${n.left.name}'`):n.type===`ExportDefaultDeclaration`&&n.declaration===e&&r.push(`'default'`);return r.join(` `)}function se(e){return!!e.id}let ce=Object.freeze(/* @__PURE__ */ new Set([`==`,`!=`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`|`,`^`,`&`,`in`])),le=Object.freeze(/* @__PURE__ */ new Set([`-`,`+`,`!`,`~`]));function ue(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}let de=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,n){let{type:r}=e;return typeof this[r]==`function`?this[r](e,t,n):this.$visitChildren(e,t,n)},$visitChildren(e,n,r){let{type:i}=e;for(let a of r[i]||t.getKeys(e)){let t=e[a];if(Array.isArray(t)){for(let e of t)if(ue(e)&&this.$visit(e,n,r))return!0}else if(ue(t)&&this.$visit(t,n,r))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(e,t,n){return t.considerImplicitTypeConversion&&ce.has(e.operator)&&(e.left.type!==`Literal`||e.right.type!==`Literal`)?!0:this.$visitChildren(e,t,n)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(e,t,n){return t.considerGetters||t.considerImplicitTypeConversion&&e.computed&&e.property.type!==`Literal`?!0:this.$visitChildren(e,t,n)},MethodDefinition(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},NewExpression(){return!0},Property(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},PropertyDefinition(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},UnaryExpression(e,t,n){return e.operator===`delete`||t.considerImplicitTypeConversion&&le.has(e.operator)&&e.argument.type!==`Literal`?!0:this.$visitChildren(e,t,n)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function U(e,n,r={}){let{considerGetters:i=!1,considerImplicitTypeConversion:a=!1}=r;return de.$visit(e,{considerGetters:i,considerImplicitTypeConversion:a},n.visitorKeys||t.KEYS)}function fe(e,t){let n=e.parent;switch(n.type){case`CallExpression`:case`NewExpression`:return n.arguments.length===1&&n.arguments[0]===e?t.getTokenAfter(n.typeParameters||n.callee,u):null;case`DoWhileStatement`:return n.test===e?t.getTokenAfter(n.body,u):null;case`IfStatement`:case`WhileStatement`:return n.test===e?t.getFirstToken(n,1):null;case`ImportExpression`:return n.source===e?t.getFirstToken(n,1):null;case`SwitchStatement`:return n.discriminant===e?t.getFirstToken(n,1):null;case`WithStatement`:return n.object===e?t.getFirstToken(n,1):null;default:return null}}function pe(e,t,n){let r,i,a,o,s;if(typeof e==`number`){if(r=e|0,i=t,a=n,!(r>=1))throw TypeError(`'times' should be a positive integer.`)}else r=1,i=e,a=t;if(i==null||i.parent==null||i.parent.type===`CatchClause`&&i.parent.param===i)return!1;o=s=i;do o=a.getTokenBefore(o),s=a.getTokenAfter(s);while(o!=null&&s!=null&&u(o)&&d(s)&&o!==fe(i,a)&&--r>0);return r===0}let me=/\$(?:[$&`']|[1-9][0-9]?)/gu,he=/* @__PURE__ */ new WeakMap;function ge(e,t){let n=!1;for(let r=t-1;r>=0&&e.charCodeAt(r)===92;--r)n=!n;return n}function _e(e,t,n){let r=[],i=0;function a(e,n){switch(e){case`$$`:return`$`;case`$&`:return n[0];case"$`":return t.slice(0,n.index);case`$'`:return t.slice(n.index+n[0].length);default:{let t=e.slice(1);return t in n?n[t]:e}}}for(let o of e.execAll(t))r.push(t.slice(i,o.index)),r.push(n.replace(me,e=>a(e,o))),i=o.index+o[0].length;return r.push(t.slice(i)),r.join(``)}function ve(e,t,n){let r=[],i=0;for(let a of e.execAll(t))r.push(t.slice(i,a.index)),r.push(String(n(...a,a.index,a.input))),i=a.index+a[0].length;return r.push(t.slice(i)),r.join(``)}class ye{constructor(e,t={}){let{escaped:n=!1}=t;if(!(e instanceof RegExp))throw TypeError(`'pattern' should be a RegExp instance.`);if(!e.flags.includes(`g`))throw Error(`'pattern' should contains 'g' flag.`);he.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!n})}*execAll(e){let{pattern:t,escaped:n}=he.get(this),r=null,i=0;for(t.lastIndex=0;(r=t.exec(e))!=null;)(n||!ge(e,r.index))&&(i=t.lastIndex,yield r,t.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return typeof t==`function`?ve(this,String(e),t):_e(this,String(e),String(t))}}let W=/^(?:Import|Export(?:All|Default|Named))Declaration$/u;function be(e){return W.test(e.type)&&e.source!=null}let xe=Function.call.bind(Object.hasOwnProperty),G=Symbol(`read`),K=Symbol(`call`),q=Symbol(`construct`),Se=Symbol(`esm`),J={require:{[K]:!0}};function Ce(e){return e==null||e.defs.length!==0||e.references.some(e=>e.isWrite())}function Y(e){let t=e.parent;if(t)switch(t.type){case`ConditionalExpression`:return t.consequent===e||t.alternate===e;case`LogicalExpression`:return!0;case`SequenceExpression`:return t.expressions[t.expressions.length-1]===e;case`ChainExpression`:return!0;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:case`TSInstantiationExpression`:return!0;default:return!1}return!1}class we{constructor(e,t={}){let{mode:n=`strict`,globalObjectNames:r=[`global`,`globalThis`,`self`,`window`]}=t;this.variableStack=[],this.globalScope=e,this.mode=n,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let n=e[t],r=[t],i=this.globalScope.set.get(t);Ce(i)||(yield*this._iterateVariableReferences(i,r,n,!0))}for(let t of this.globalObjectNames){let n=[],r=this.globalScope.set.get(t);Ce(r)||(yield*this._iterateVariableReferences(r,n,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(J)){let n=ae(t.arguments[0]);if(n==null||!xe(e,n))continue;let r=e[n],i=[n];r[G]&&(yield{node:t,path:i,type:G,info:r[G]}),yield*this._iteratePropertyReferences(t,i,r)}}*iterateEsmReferences(e){let t=this.globalScope.block;for(let n of t.body){if(!be(n))continue;let t=n.source.value;if(!xe(e,t))continue;let r=e[t],i=[t];if(r[G]&&(yield{node:n,path:i,type:G,info:r[G]}),n.type===`ExportAllDeclaration`)for(let e of Object.keys(r)){let t=r[e];t[G]&&(yield{node:n,path:i.concat(e),type:G,info:t[G]})}else for(let e of n.specifiers){let t=xe(r,Se),n=this._iterateImportReferences(e,i,t?r:this.mode===`legacy`?{default:r,...r}:{default:r});if(t)yield*n;else for(let e of n)e.path=e.path.filter(X),(e.path.length>=2||e.type!==G)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_iterateVariableReferences(e,t,n,r){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let e=i.identifier;r&&n[G]&&(yield{node:e,path:t,type:G,info:n[G]}),yield*this._iteratePropertyReferences(e,t,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,n){let r=e;for(;Y(r);)r=r.parent;let i=r.parent;if(i.type===`MemberExpression`){if(i.object===r){let e=oe(i);if(e==null||!xe(n,e))return;t=t.concat(e);let r=n[e];r[G]&&(yield{node:i,path:t,type:G,info:r[G]}),yield*this._iteratePropertyReferences(i,t,r)}}else i.type===`CallExpression`?i.callee===r&&n[K]&&(yield{node:i,path:t,type:K,info:n[K]}):i.type===`NewExpression`?i.callee===r&&n[q]&&(yield{node:i,path:t,type:q,info:n[q]}):i.type===`AssignmentExpression`?i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n),yield*this._iteratePropertyReferences(i,t,n)):i.type===`AssignmentPattern`?i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n)):i.type===`VariableDeclarator`&&i.init===r&&(yield*this._iterateLhsReferences(i.id,t,n))}*_iterateLhsReferences(e,t,n){if(e.type===`Identifier`){let i=r(this.globalScope,e);i!=null&&(yield*this._iterateVariableReferences(i,t,n,!1))}else if(e.type===`ObjectPattern`)for(let r of e.properties){let e=oe(r);if(e==null||!xe(n,e))continue;let i=t.concat(e),a=n[e];a[G]&&(yield{node:r,path:i,type:G,info:a[G]}),yield*this._iterateLhsReferences(r.value,i,a)}else e.type===`AssignmentPattern`&&(yield*this._iterateLhsReferences(e.left,t,n))}*_iterateImportReferences(e,t,n){let i=e.type;if(i===`ImportSpecifier`||i===`ImportDefaultSpecifier`){let a=i===`ImportDefaultSpecifier`?`default`:e.imported.type===`Identifier`?e.imported.name:e.imported.value;if(!xe(n,a))return;t=t.concat(a);let o=n[a];o[G]&&(yield{node:e,path:t,type:G,info:o[G]}),yield*this._iterateVariableReferences(r(this.globalScope,e.local),t,o,!1)}else if(i===`ImportNamespaceSpecifier`)yield*this._iterateVariableReferences(r(this.globalScope,e.local),t,n,!1);else if(i===`ExportSpecifier`){let r=e.local.type===`Identifier`?e.local.name:e.local.value;if(!xe(n,r))return;t=t.concat(r);let i=n[r];i[G]&&(yield{node:e,path:t,type:G,info:i[G]})}}}we.READ=G,we.CALL=K,we.CONSTRUCT=q,we.ESM=Se;function X(e,t){return t!==1||e!=="default"}var Te={CALL:K,CONSTRUCT:q,ESM:Se,findVariable:r,getFunctionHeadLocation:A,getFunctionNameWithKind:H,getInnermostScope:n,getPropertyName:oe,getStaticValue:ie,getStringIfConstant:ae,hasSideEffect:U,isArrowToken:o,isClosingBraceToken:g,isClosingBracketToken:p,isClosingParenToken:d,isColonToken:l,isCommaToken:s,isCommentToken:_,isNotArrowToken:v,isNotClosingBraceToken:D,isNotClosingBracketToken:T,isNotClosingParenToken:C,isNotColonToken:x,isNotCommaToken:y,isNotCommentToken:O,isNotOpeningBraceToken:E,isNotOpeningBracketToken:w,isNotOpeningParenToken:S,isNotSemicolonToken:b,isOpeningBraceToken:h,isOpeningBracketToken:f,isOpeningParenToken:u,isParenthesized:pe,isSemicolonToken:c,PatternMatcher:ye,READ:G,ReferenceTracker:we};e.CALL=K,e.CONSTRUCT=q,e.ESM=Se,e.PatternMatcher=ye,e.READ=G,e.ReferenceTracker=we,e.default=Te,e.findVariable=r,e.getFunctionHeadLocation=A,e.getFunctionNameWithKind=H,e.getInnermostScope=n,e.getPropertyName=oe,e.getStaticValue=ie,e.getStringIfConstant=ae,e.hasSideEffect=U,e.isArrowToken=o,e.isClosingBraceToken=g,e.isClosingBracketToken=p,e.isClosingParenToken=d,e.isColonToken=l,e.isCommaToken=s,e.isCommentToken=_,e.isNotArrowToken=v,e.isNotClosingBraceToken=D,e.isNotClosingBracketToken=T,e.isNotClosingParenToken=C,e.isNotColonToken=x,e.isNotCommaToken=y,e.isNotCommentToken=O,e.isNotOpeningBraceToken=E,e.isNotOpeningBracketToken=w,e.isNotOpeningParenToken=S,e.isNotSemicolonToken=b,e.isOpeningBraceToken=h,e.isOpeningBracketToken=f,e.isOpeningParenToken=u,e.isParenthesized=pe,e.isSemicolonToken=c})(Xe)),Xe}var nt,rt;function Q(){if(rt)return nt;rt=1;function e(e,t=`Assertion failed.`){if(!e)throw Error(t)}return nt=e,nt}var it,at;function ot(){return at||(at=1,it=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}
3
+ /* c8 ignore next */
4
+ moveNext(){throw Error(`Not implemented.`)}}),it}var st,ct;function lt(){if(ct)return st;ct=1;function e(e,t){for(let n=0,r=e.length-1;n<=r;){let i=(n+r)/2|0;if(t<=e[i].range[0]){if(i===n)return i;r=i}else n=i+1}return e.length}function t(e,t,n){if(n===-1)return 0;if(n in t)return t[n];if(n-1 in t){let r=t[n-1],i=e[r];return i?i.range[0]>=n?r:r+1:e.length}return n===0?0:e.length}function n(e,t,n){if(n===-1)return e.length-1;if(n in t)return t[n]-1;if(n-1 in t){let r=t[n-1],i=e[r];return i?i.range[1]>n?r-1:r:e.length-1}return n===0?-1:e.length-1}return st={search:e,getFirstIndex:t,getLastIndex:n},st}var ut,dt;function ft(){if(dt)return ut;dt=1;let e=ot(),t=lt();return ut=class extends e{constructor(e,n,r,i,a){super(),this.tokens=e,this.comments=n,this.tokenIndex=t.getLastIndex(e,r,a),this.commentIndex=t.search(n,a)-1,this.border=i}moveNext(){let e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,--this.tokenIndex):t?(this.current=t,--this.commentIndex):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},ut}var pt,mt;function ht(){if(mt)return pt;mt=1;let e=ot(),{getLastIndex:t,getFirstIndex:n}=lt();return pt=class extends e{constructor(e,r,i,a,o){super(),this.tokens=e,this.index=t(e,i,o),this.indexEnd=n(e,i,a)}moveNext(){return this.index>=this.indexEnd&&(this.current=this.tokens[this.index],--this.index,!0)}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},pt}var gt,_t;function vt(){if(_t)return gt;_t=1;let e=ot();return gt=class extends e{constructor(e){super(),this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}},gt}var yt,bt;function xt(){if(bt)return yt;bt=1;let e=vt();return yt=class extends e{constructor(e,t){super(e),this.predicate=t}moveNext(){let e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}},yt}var St,Ct;function wt(){if(Ct)return St;Ct=1;let e=ot(),{getFirstIndex:t,search:n}=lt();return St=class extends e{constructor(e,r,i,a,o){super(),this.tokens=e,this.comments=r,this.tokenIndex=t(e,i,a),this.commentIndex=n(r,a),this.border=o}moveNext(){let e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,t=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!t||e.range[0]<t.range[0])?(this.current=e,this.tokenIndex+=1):t?(this.current=t,this.commentIndex+=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[1]<=this.border)}},St}var Tt,Et;function Dt(){if(Et)return Tt;Et=1;let e=ot(),{getFirstIndex:t,getLastIndex:n}=lt();return Tt=class extends e{constructor(e,r,i,a,o){super(),this.tokens=e,this.index=t(e,i,a),this.indexEnd=n(e,i,o)}moveNext(){return this.index<=this.indexEnd&&(this.current=this.tokens[this.index],this.index+=1,!0)}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}},Tt}var Ot,kt;function At(){if(kt)return Ot;kt=1;let e=vt();return Ot=class extends e{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0&&(--this.count,super.moveNext())}},Ot}var jt,Mt;function Nt(){if(Mt)return jt;Mt=1;let e=vt();return jt=class extends e{constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(--this.count,!super.moveNext())return!1;return super.moveNext()}},jt}var Pt,Ft;function It(){if(Ft)return Pt;Ft=1;let e=ft(),t=ht(),n=xt(),r=wt(),i=Dt(),a=At(),o=Nt();class s{constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,n,r,i,a){return new(a?this.TokenCommentCursor:this.TokenCursor)(e,t,n,r,i)}createCursor(e,t,r,i,s,c,l,u,d){let f=this.createBaseCursor(e,t,r,i,s,c);return l&&(f=new n(f,l)),u>=1&&(f=new o(f,u)),d>=0&&(f=new a(f,d)),f}}return Pt={forward:new s(i,r),backward:new s(t,e)},Pt}var Lt,Rt;function zt(){if(Rt)return Lt;Rt=1;let e=Dt();return Lt=class extends e{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i),this.index=Math.max(0,this.index-a),this.indexEnd=Math.min(e.length-1,this.indexEnd+o)}},Lt}var Bt,Vt;function Ht(){if(Vt)return Bt;Vt=1;let{isCommentToken:e}=/*@__PURE__*/ tt(),t=Q(),n=It(),r=Dt(),i=zt(),a=lt(),o=Symbol(`tokens`),s=Symbol(`comments`),c=Symbol(`indexMap`);function l(e,t){let n=Object.create(null),r=0,i=0,a,o;for(;r<e.length||i<t.length;){for(a=i<t.length?t[i].range[0]:2**53-1;r<e.length&&(o=e[r].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,r+=1;for(a=r<e.length?e[r].range[0]:2**53-1;i<t.length&&(o=t[i].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,i+=1}return n}function u(e,n,r,i,a,o,s){let c=!1,l=0,u=null;return typeof s==`number`?l=s|0:typeof s==`function`?u=s:s&&(c=!!s.includeComments,l=s.skip|0,u=s.filter||null),t(l>=0,`options.skip should be zero or a positive integer.`),t(!u||typeof u==`function`,`options.filter should be a function.`),e.createCursor(n,r,i,a,o,c,u,l,-1)}function d(e,n,r,i,a,o,s){let c=!1,l=0,u=!1,d=null;return typeof s==`number`?(l=s|0,u=!0):typeof s==`function`?d=s:s&&(c=!!s.includeComments,l=s.count|0,u=typeof s.count==`number`,d=s.filter||null),t(l>=0,`options.count should be zero or a positive integer.`),t(!d||typeof d==`function`,`options.filter should be a function.`),e.createCursor(n,r,i,a,o,c,d,0,u?l:-1)}function f(e,t,a,o,s,c,l){return c===void 0&&l===void 0?new r(e,t,a,o,s):typeof c==`number`||c===void 0?new i(e,t,a,o,s,c|0,l|0):d(n.forward,e,t,a,o,s,c)}function p(t){let n=[],r=t.getOneToken();for(;r&&e(r);)n.push(r),r=t.getOneToken();return n}return Bt=class{constructor(e,t){this[o]=e,this[s]=t,this[c]=l(e,t)}getTokenByRangeStart(e,t){let r=t&&t.includeComments,i=n.forward.createBaseCursor(this[o],this[s],this[c],e,-1,r).getOneToken();return i&&i.range[0]===e?i:null}getFirstToken(e,t){return u(n.forward,this[o],this[s],this[c],e.range[0],e.range[1],t).getOneToken()}getLastToken(e,t){return u(n.backward,this[o],this[s],this[c],e.range[0],e.range[1],t).getOneToken()}getTokenBefore(e,t){return u(n.backward,this[o],this[s],this[c],-1,e.range[0],t).getOneToken()}getTokenAfter(e,t){return u(n.forward,this[o],this[s],this[c],e.range[1],-1,t).getOneToken()}getFirstTokenBetween(e,t,r){return u(n.forward,this[o],this[s],this[c],e.range[1],t.range[0],r).getOneToken()}getLastTokenBetween(e,t,r){return u(n.backward,this[o],this[s],this[c],e.range[1],t.range[0],r).getOneToken()}getFirstTokens(e,t){return d(n.forward,this[o],this[s],this[c],e.range[0],e.range[1],t).getAllTokens()}getLastTokens(e,t){return d(n.backward,this[o],this[s],this[c],e.range[0],e.range[1],t).getAllTokens().reverse()}getTokensBefore(e,t){return d(n.backward,this[o],this[s],this[c],-1,e.range[0],t).getAllTokens().reverse()}getTokensAfter(e,t){return d(n.forward,this[o],this[s],this[c],e.range[1],-1,t).getAllTokens()}getFirstTokensBetween(e,t,r){return d(n.forward,this[o],this[s],this[c],e.range[1],t.range[0],r).getAllTokens()}getLastTokensBetween(e,t,r){return d(n.backward,this[o],this[s],this[c],e.range[1],t.range[0],r).getAllTokens().reverse()}getTokens(e,t,n){return f(this[o],this[s],this[c],e.range[0],e.range[1],t,n).getAllTokens()}getTokensBetween(e,t,n){return f(this[o],this[s],this[c],e.range[1],t.range[0],n,n).getAllTokens()}commentsExistBetween(e,t){let n=a.search(this[s],e.range[1]);return n<this[s].length&&this[s][n].range[1]<=t.range[0]}getCommentsBefore(e){return p(d(n.backward,this[o],this[s],this[c],-1,e.range[0],{includeComments:!0})).reverse()}getCommentsAfter(e){return p(d(n.forward,this[o],this[s],this[c],e.range[1],-1,{includeComments:!0}))}getCommentsInside(t){return this.getTokens(t,{includeComments:!0,filter:e})}},Bt}var Ut,Wt;function Gt(){if(Wt)return Ut;Wt=1;let e=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,t=/\r\n|[\r\n\u2028\u2029]/u,n=/^#!([^\r\n\u2028\u2029]*)/u;function r(){return new RegExp(t.source,`gu`)}return Ut={breakableTypePattern:e,lineBreakPattern:t,createGlobalLinebreakMatcher:r,shebangPattern:n},Ut}var Kt,qt;function Jt(){if(qt)return Kt;qt=1;let e={exports:!0,global:!1,module:!1,require:!1},t={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},n={...t,JSON:!1},r={...n,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},i={...r},a={...i,Atomics:!1,SharedArrayBuffer:!1},o={...a},s={...o},c={...s,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},l={...c,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},u={...l},d={...u},f={...d},p={...f,Float16Array:!1,Iterator:!1};return Kt={commonjs:e,es3:t,es5:n,es2015:r,es2016:i,es2017:a,es2018:o,es2019:s,es2020:c,es2021:l,es2022:u,es2023:d,es2024:f,es2025:p,es2026:{...p,AsyncDisposableStack:!1,DisposableStack:!1,SuppressedError:!1,Temporal:!1}},Kt}var Yt,Xt;function Zt(){return Xt||(Xt=1,Yt={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),Yt}var Qt,$t;function en(){if($t)return Qt;$t=1;let e=Ke()(`eslint:code-path`);
5
+ /* c8 ignore next */
6
+ function t(e){return e.id+(e.reachable?``:`!`)}function n(e,t){let n=t?`:${t}`:``;switch(e.type){case`Identifier`:return`${e.type}${n} (${e.name})`;case`Literal`:return`${e.type}${n} (${e.value})`;default:return`${e.type}${n}`}}function r(e){return e.replace(/\\/gu,String.raw`\\`).replace(/"/gu,String.raw`\"`)}return Qt={enabled:e.enabled,dump:e,dumpState:e.enabled?/* c8 ignore next */function(r,i,a){for(let e=0;e<i.currentSegments.length;++e){let t=i.currentSegments[e].internal;if(a){let e=t.nodes.length-1;e>=0&&t.nodes[e]===n(r,`enter`)?t.nodes[e]=n(r,void 0):t.nodes.push(n(r,`exit`))}else t.nodes.push(n(r,`enter`))}e(`%s) %s%s`,i.currentSegments.map(t).join(`,`),r.type,a?`:exit`:``)}:e,dumpDot:e.enabled?/* c8 ignore next */function(t){let n=`
7
+ digraph {
8
+ node[shape=box,style="rounded,filled",fillcolor=white];
9
+ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
10
+ `;t.returnedSegments.length>0&&(n+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
11
+ `),t.thrownSegments.length>0&&(n+=`thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize=true];
12
+ `);let i=Object.create(null),a=this.makeDotArrows(t,i);for(let e in i){let t=i[e];n+=`${e}[`,t.reachable?n+=`label="`:n+=`style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n`,t.internal.nodes.length>0?n+=t.internal.nodes.map(r).join(`\\n`):n+=`????`,n+=`"];
13
+ `}n+=`${a}\n`,n+=`}`,e(`DOT`,n)}:e,makeDotArrows(e,t){let n=[[e.initialSegment,0]],r=t||Object.create(null),i=e.initialSegment.id,a=`initial->${e.initialSegment.id}`;for(;n.length>0;){let e=n.pop(),t=e[0],o=e[1];if(r[t.id]&&o===0)continue;r[t.id]=t;let s=t.allNextSegments[o];s&&(i===t.id?a+=`->${s.id}`:a+=`;\n${t.id}->${s.id}`,i=s.id,n.unshift([t,1+o]),n.push([s,0]))}return e.returnedSegments.forEach(e=>{i===e.id?a+=`->final`:a+=`;\n${e.id}->final`,i=null}),e.thrownSegments.forEach(e=>{i===e.id?a+=`->thrown`:a+=`;\n${e.id}->thrown`,i=null}),`${a};`}},Qt}var tn,nn;function rn(){if(nn)return tn;nn=1;let e=en();function t(e){return e.reachable}class n{constructor(n,r,i){
14
+ /* c8 ignore start */
15
+ this.id=n,this.nextSegments=[],this.prevSegments=r.filter(t),this.allNextSegments=[],this.allPrevSegments=r,this.reachable=i,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),e.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.includes(e)}static newRoot(e){return new n(e,[],!0)}static newNext(e,r){return new n(e,n.flattenUnusedSegments(r),r.some(t))}static newUnreachable(e,t){let r=new n(e,n.flattenUnusedSegments(t),!1);return n.markUsed(r),r}static newDisconnected(e,r){return new n(e,[],r.some(t))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let t;if(e.reachable)for(t=0;t<e.allPrevSegments.length;++t){let n=e.allPrevSegments[t];n.allNextSegments.push(e),n.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){let t=/* @__PURE__ */ new Set;for(let n=0;n<e.length;++n){let r=e[n];if(!t.has(r)){if(r.internal.used)t.add(r);else for(let e=0;e<r.allPrevSegments.length;++e){let n=r.allPrevSegments[e];t.has(n)||t.add(n)}}}return[...t]}}return tn=n,tn}var an,on;function sn(){if(on)return an;on=1;let e=Q(),t=rn();function n(e){return e.reachable}function r(e,t,n,r){let i=e.segmentsList,a=t>=0?t:i.length+t,o=n>=0?n:i.length+n,s=[];for(let t=0;t<e.count;++t){let n=[];for(let e=a;e<=o;++e)n.push(i[e][t]);s.push(r(e.idGenerator.next(),n))}return s}function i(e,n){let r=n;for(;r.length>e.count;){let n=[];for(let i=0,a=Math.floor(r.length/2);i<a;++i)n.push(t.newNext(e.idGenerator.next(),[r[i],r[i+a]]));r=n}return r}class a{constructor(e,t,n){this.idGenerator=e,this.upper=t,this.count=n,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(n)}makeNext(e,n){return r(this,e,n,t.newNext)}makeUnreachable(e,n){return r(this,e,n,t.newUnreachable)}makeDisconnected(e,n){return r(this,e,n,t.newDisconnected)}add(t){e(t.length>=this.count,`${t.length} >= ${this.count}`),this.segmentsList.push(i(this,t))}replaceHead(t){e(t.length>=this.count,`${t.length} >= ${this.count}`),this.segmentsList.splice(-1,1,i(this,t))}addAll(t){e(t.count===this.count),this.segmentsList.push(...t.segmentsList)}clear(){this.segmentsList=[]}static newRoot(e){let n=new a(e,null,1);return n.add([t.newRoot(e.next())]),n}static newEmpty(e,t){return new a(e.idGenerator,e,(t?2:1)*e.count)}}return an=a,an}var cn,ln;function un(){if(ln)return cn;ln=1;let e=rn(),t=sn();class n{constructor(e,n,r,i){this.upper=e,this.breakable=n,this.label=r,this.brokenForkContext=t.newEmpty(i)}}class r{constructor(e){this.upper=e,this.choiceContextCount=0}}class i{constructor(e,n,r,i){this.upper=e,this.kind=n,this.isForkingAsResult=r,this.trueForkContext=t.newEmpty(i),this.falseForkContext=t.newEmpty(i),this.nullishForkContext=t.newEmpty(i),this.processed=!1}}class a{constructor(e,t,n,r){this.upper=e,this.type=t,this.label=n,this.brokenForkContext=r.brokenForkContext}}class o extends a{constructor(e,t,n){super(e,`WhileStatement`,t,n),this.test=void 0,this.continueDestSegments=null}}class s extends a{constructor(e,n,r,i){super(e,`DoWhileStatement`,n,r),this.test=void 0,this.entrySegments=null,this.continueForkContext=t.newEmpty(i)}}class c extends a{constructor(e,t,n){super(e,`ForStatement`,t,n),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class l extends a{constructor(e,t,n){super(e,`ForInStatement`,t,n),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class u extends a{constructor(e,t,n){super(e,`ForOfStatement`,t,n),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class d{constructor(e,t){this.upper=e,this.hasCase=t,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class f{constructor(e,n,r){this.upper=e,this.hasFinalizer=n,this.position=`try`,this.returnedForkContext=n?t.newEmpty(r):null,this.thrownForkContext=t.newEmpty(r),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function p(e,t,n,r){for(let i=0;i<r.length;++i){let a=r[i];e.push(a),t.includes(a)||n.push(a)}}function m(e,t){if(!t)return e.loopContext;let n=e.loopContext;for(;n;){if(n.label===t)return n;n=n.upper}
16
+ /* c8 ignore next */
17
+ return null}function h(e,t){let n=e.breakContext;for(;n;){if(t?n.label===t:n.breakable)return n;n=n.upper}
18
+ /* c8 ignore next */
19
+ return null}function g(e){let t=e.tryContext;for(;t;){if(t.hasFinalizer&&t.position!==`finally`)return t;t=t.upper}return e}function _(e){let t=e.tryContext;for(;t;){if(t.position===`try`||t.hasFinalizer&&t.position===`catch`)return t;t=t.upper}return e}function v(e,t){e.splice(e.indexOf(t),1)}function y(e,t){for(let n=0;n<e.length;++n){let r=e[n],i=t[n];v(r.nextSegments,i),v(r.allNextSegments,i),v(i.prevSegments,r),v(i.allPrevSegments,r)}}function b(t,n,r){let i=e.flattenUnusedSegments(n),a=e.flattenUnusedSegments(r),o=Math.min(i.length,a.length);for(let n=0;n<o;++n){let r=i[n],o=a[n];o.reachable&&r.nextSegments.push(o),r.reachable&&o.prevSegments.push(r),r.allNextSegments.push(o),o.allPrevSegments.push(r),o.allPrevSegments.length>=2&&e.markPrevSegmentAsLooped(o,r),t.notifyLooped(r,o)}}function x(e,t,n){t.processed||(t.trueForkContext.add(n),t.falseForkContext.add(n),t.nullishForkContext.add(n)),e.test!==!0&&e.brokenForkContext.addAll(t.falseForkContext),e.endOfTestSegments=t.trueForkContext.makeNext(0,-1)}class S{constructor(e,n){this.idGenerator=e,this.notifyLooped=n,this.forkContext=t.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let r=this.finalSegments,i=this.returnedForkContext,a=this.thrownForkContext;i.add=p.bind(null,i,a,r),a.add=p.bind(null,a,i,r)}get headSegments(){return this.forkContext.head}get parentForkContext(){let e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=t.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){let e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,t){this.choiceContext=new i(this.choiceContext,e,t,this.forkContext)}popChoiceContext(){let e=this.choiceContext,t=this.forkContext,n=t.head;switch(this.choiceContext=e.upper,e.kind){case`&&`:case`||`:case`??`:if(e.processed||(e.trueForkContext.add(n),e.falseForkContext.add(n),e.nullishForkContext.add(n)),e.isForkingAsResult){let t=this.choiceContext;return t.trueForkContext.addAll(e.trueForkContext),t.falseForkContext.addAll(e.falseForkContext),t.nullishForkContext.addAll(e.nullishForkContext),t.processed=!0,e}break;case`test`:e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(n)):(e.trueForkContext.clear(),e.trueForkContext.add(n));break;case`loop`:return e;
20
+ /* c8 ignore next */
21
+ default:throw Error(`unreachable`)}let r=e.trueForkContext;return r.addAll(e.falseForkContext),t.replaceHead(r.makeNext(0,-1)),e}makeLogicalRight(){let e=this.choiceContext,t=this.forkContext;if(e.processed){let n;switch(e.kind){case`&&`:n=e.trueForkContext;break;case`||`:n=e.falseForkContext;break;case`??`:n=e.nullishForkContext;break;default:throw Error(`unreachable`)}t.replaceHead(n.makeNext(0,-1)),n.clear(),e.processed=!1}else{switch(e.kind){case`&&`:e.falseForkContext.add(t.head),e.nullishForkContext.add(t.head);break;case`||`:e.trueForkContext.add(t.head);break;case`??`:e.trueForkContext.add(t.head),e.falseForkContext.add(t.head);break;default:throw Error(`unreachable`)}t.replaceHead(t.makeNext(-1,-1))}}makeIfConsequent(){let e=this.choiceContext,t=this.forkContext;e.processed||(e.trueForkContext.add(t.head),e.falseForkContext.add(t.head),e.nullishForkContext.add(t.head)),e.processed=!1,t.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let e=this.choiceContext,t=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(t.head),e.processed=!0,t.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new r(this.chainContext)}popChainContext(){let e=this.chainContext;this.chainContext=e.upper;for(let t=e.choiceContextCount;t>0;--t)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext(`??`,!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,t){this.switchContext=new d(this.switchContext,e),this.pushBreakContext(!0,t)}popSwitchContext(){let e=this.switchContext;this.switchContext=e.upper;let t=this.forkContext,n=this.popBreakContext().brokenForkContext;if(e.forkCount===0){n.empty||(n.add(t.makeNext(-1,-1)),t.replaceHead(n.makeNext(0,-1)));return}let r=t.head;this.forkBypassPath();let i=t.head;n.add(r),e.lastIsDefault||(e.defaultBodySegments?(y(e.defaultSegments,e.defaultBodySegments),b(this,i,e.defaultBodySegments)):n.add(i));for(let t=0;t<e.forkCount;++t)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(n.makeNext(0,-1))}makeSwitchCaseBody(e,t){let n=this.switchContext;if(!n.hasCase)return;let r=this.forkContext,i=this.pushForkContext();i.add(r.makeNext(0,-1)),t?(n.defaultSegments=r.head,e?n.foundEmptyDefault=!0:n.defaultBodySegments=i.head):!e&&n.foundEmptyDefault&&(n.foundEmptyDefault=!1,n.defaultBodySegments=i.head),n.lastIsDefault=t,n.forkCount+=1}pushTryContext(e){this.tryContext=new f(this.tryContext,e,this.forkContext)}popTryContext(){let e=this.tryContext;if(this.tryContext=e.upper,e.position===`catch`){this.popForkContext();return}let t=e.returnedForkContext,n=e.thrownForkContext;if(t.empty&&n.empty)return;let r=this.forkContext.head;this.forkContext=this.forkContext.upper;let i=r.slice(0,r.length/2|0),a=r.slice(r.length/2|0);t.empty||g(this).returnedForkContext.add(a),n.empty||_(this).thrownForkContext.add(a),this.forkContext.replaceHead(i),!e.lastOfTryIsReachable&&!e.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){let e=this.tryContext,n=this.forkContext,r=e.thrownForkContext;e.position=`catch`,e.thrownForkContext=t.newEmpty(n),e.lastOfTryIsReachable=n.reachable,r.add(n.head);let i=r.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(i)}makeFinallyBlock(){let t=this.tryContext,n=this.forkContext,r=t.returnedForkContext,i=t.thrownForkContext,a=n.head;if(t.position===`catch`?(this.popForkContext(),n=this.forkContext,t.lastOfCatchIsReachable=n.reachable):t.lastOfTryIsReachable=n.reachable,t.position=`finally`,r.empty&&i.empty)return;let o=n.makeNext(-1,-1);for(let t=0;t<n.count;++t){let n=[a[t]];for(let e=0;e<r.segmentsList.length;++e)n.push(r.segmentsList[e][t]);for(let e=0;e<i.segmentsList.length;++e)n.push(i.segmentsList[e][t]);o.push(e.newNext(this.idGenerator.next(),n))}this.pushForkContext(!0),this.forkContext.add(o)}makeYield(){let e=this.forkContext,t=e.head;e.reachable&&(g(this).returnedForkContext.add(t),_(this).thrownForkContext.add(t),e.replaceHead(e.makeNext(-1,-1)))}makeFirstThrowablePathInTryOrCatchBlock(){let e=this.forkContext;if(!e.reachable)return;let t=_(this);t!==this&&t.thrownForkContext.empty&&(t.position===`try`||t.position===`catch`&&t.hasFinalizer)&&(t.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,t){let n=this.forkContext,r=this.pushBreakContext(!0,t);switch(e){case`WhileStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new o(this.loopContext,t,r);break;case`DoWhileStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new s(this.loopContext,t,r,n);break;case`ForStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new c(this.loopContext,t,r);break;case`ForInStatement`:this.loopContext=new l(this.loopContext,t,r);break;case`ForOfStatement`:this.loopContext=new u(this.loopContext,t,r);break;
22
+ /* c8 ignore next */
23
+ default:throw Error(`unknown type: "${e}"`)}}popLoopContext(){let e=this.loopContext;this.loopContext=e.upper;let t=this.forkContext,n=this.popBreakContext().brokenForkContext;switch(e.type){case`WhileStatement`:case`ForStatement`:this.popChoiceContext(),b(this,t.head,e.continueDestSegments);break;case`DoWhileStatement`:{let r=this.popChoiceContext();r.processed||(r.trueForkContext.add(t.head),r.falseForkContext.add(t.head)),e.test!==!0&&n.addAll(r.falseForkContext);let i=r.trueForkContext.segmentsList;for(let t=0;t<i.length;++t)b(this,i[t],e.entrySegments);break}case`ForInStatement`:case`ForOfStatement`:n.add(t.head),b(this,t.head,e.leftSegments);break;
24
+ /* c8 ignore next */
25
+ default:throw Error(`unreachable`)}n.empty?t.replaceHead(t.makeUnreachable(-1,-1)):t.replaceHead(n.makeNext(0,-1))}makeWhileTest(e){let t=this.loopContext,n=this.forkContext,r=n.makeNext(0,-1);t.test=e,t.continueDestSegments=r,n.replaceHead(r)}makeWhileBody(){let e=this.loopContext,t=this.choiceContext,n=this.forkContext;t.processed||(t.trueForkContext.add(n.head),t.falseForkContext.add(n.head)),e.test!==!0&&e.brokenForkContext.addAll(t.falseForkContext),n.replaceHead(t.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){let e=this.loopContext,t=this.forkContext,n=t.makeNext(-1,-1);e.entrySegments=n,t.replaceHead(n)}makeDoWhileTest(e){let t=this.loopContext,n=this.forkContext;if(t.test=e,!t.continueForkContext.empty){t.continueForkContext.add(n.head);let e=t.continueForkContext.makeNext(0,-1);n.replaceHead(e)}}makeForTest(e){let t=this.loopContext,n=this.forkContext,r=n.head,i=n.makeNext(-1,-1);t.test=e,t.endOfInitSegments=r,t.continueDestSegments=t.testSegments=i,n.replaceHead(i)}makeForUpdate(){let e=this.loopContext,t=this.choiceContext,n=this.forkContext;e.testSegments?x(e,t,n.head):e.endOfInitSegments=n.head;let r=n.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=r,n.replaceHead(r)}makeForBody(){let e=this.loopContext,n=this.choiceContext,r=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=r.head,e.testSegments&&b(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?x(e,n,r.head):e.endOfInitSegments=r.head;let i=e.endOfTestSegments;if(!i){let n=t.newEmpty(r);n.add(e.endOfInitSegments),e.endOfUpdateSegments&&n.add(e.endOfUpdateSegments),i=n.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||i,r.replaceHead(i)}makeForInOfLeft(){let e=this.loopContext,t=this.forkContext,n=t.makeDisconnected(-1,-1);e.prevSegments=t.head,e.leftSegments=e.continueDestSegments=n,t.replaceHead(n)}makeForInOfRight(){let e=this.loopContext,n=this.forkContext,r=t.newEmpty(n);r.add(e.prevSegments);let i=r.makeNext(-1,-1);e.endOfLeftSegments=n.head,n.replaceHead(i)}makeForInOfBody(){let e=this.loopContext,n=this.forkContext,r=t.newEmpty(n);r.add(e.endOfLeftSegments);let i=r.makeNext(-1,-1);b(this,n.head,e.leftSegments),e.brokenForkContext.add(n.head),n.replaceHead(i)}pushBreakContext(e,t){return this.breakContext=new n(this.breakContext,e,t,this.forkContext),this.breakContext}popBreakContext(){let e=this.breakContext,t=this.forkContext;if(this.breakContext=e.upper,!e.breakable){let n=e.brokenForkContext;n.empty||(n.add(t.head),t.replaceHead(n.makeNext(0,-1)))}return e}makeBreak(e){let t=this.forkContext;if(!t.reachable)return;let n=h(this,e);
26
+ /* c8 ignore next */
27
+ n&&n.brokenForkContext.add(t.head),t.replaceHead(t.makeUnreachable(-1,-1))}makeContinue(e){let t=this.forkContext;if(!t.reachable)return;let n=m(this,e);n&&(n.continueDestSegments?(b(this,t.head,n.continueDestSegments),(n.type===`ForInStatement`||n.type===`ForOfStatement`)&&n.brokenForkContext.add(t.head)):n.continueForkContext.add(t.head)),t.replaceHead(t.makeUnreachable(-1,-1))}makeReturn(){let e=this.forkContext;e.reachable&&(g(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){let e=this.forkContext;e.reachable&&(_(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){let e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}}return cn=S,cn}var dn,fn;function pn(){if(fn)return dn;fn=1;class e{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return dn=e,dn}var mn,hn;function gn(){if(hn)return mn;hn=1;let e=un(),t=pn();class n{constructor({id:n,origin:r,upper:i,onLooped:a}){this.id=n,this.origin=r,this.upper=i,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new e(new t(`${n}_`),a)}),i&&i.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(e,t){let n,r;typeof e==`function`?(r=e,n={}):(n=e||{},r=t);let i=n.first||this.internal.initialSegment,a=n.last,o,s,c,l=null,u=/* @__PURE__ */ new Set,d=[[i,0]],f=/* @__PURE__ */ new Set,p=!1,m={skip(){f.add(l)},break(){p=!0}};function h(e){return u.has(e)||l.isLoopedPrevSegment(e)}function g(e){return f.has(e)||l.isLoopedPrevSegment(e)}for(;d.length>0;){if(o=d.at(-1),l=o[0],s=o[1],s===0){if(u.has(l)||l!==i&&l.prevSegments.length>0&&!l.prevSegments.every(h)){d.pop();continue}if(u.add(l),f.size>0&&l.prevSegments.length>0&&l.prevSegments.every(g))f.add(l);else if(r.call(this,l,m),l===a&&m.skip(),p)break}c=l.nextSegments.length-1,s<c?(o[1]+=1,d.push([l.nextSegments[s],0])):s===c?(o[0]=l.nextSegments[s],o[1]=0):d.pop()}}}return mn=n,mn}var _n,vn;function yn(){if(vn)return _n;vn=1;let e=Q(),{breakableTypePattern:t}=Gt(),n=gn(),r=rn(),i=pn(),a=en();function o(e){return!!e.test}function s(e){let t=e.parent;return t&&t.type===`PropertyDefinition`&&t.value===e}function c(e){return e===`&&`||e===`||`||e===`??`}function l(e){return e===`&&=`||e===`||=`||e===`??=`}function u(e){return e.parent.type===`LabeledStatement`?e.parent.label.name:null}function d(e){let t=e.parent;switch(t.type){case`ConditionalExpression`:case`IfStatement`:case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:return t.test===e;case`LogicalExpression`:return c(t.operator);case`AssignmentExpression`:return l(t.operator);default:return!1}}function f(e){if(e.type===`Literal`)return!!e.value}function p(e){let t=e.parent;switch(t.type){case`LabeledStatement`:case`BreakStatement`:case`ContinueStatement`:case`ArrayPattern`:case`RestElement`:case`ImportSpecifier`:case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`CatchClause`:return!1;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ClassDeclaration`:case`ClassExpression`:case`VariableDeclarator`:return t.id!==e;case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return t.key!==e||t.computed||t.shorthand;case`AssignmentPattern`:return t.key!==e;default:return!0}}function m(e,t){let i=e.codePath,o=n.getState(i),s=o.currentSegments,c=o.headSegments,l=Math.max(s.length,c.length),u,d,f;for(u=0;u<l;++u)if(d=s[u],f=c[u],d!==f&&d){let n=d.reachable?`onCodePathSegmentEnd`:`onUnreachableCodePathSegmentEnd`;a.dump(`%s %s`,n,d.id),e.emit(n,[d,t])}for(o.currentSegments=c,u=0;u<l;++u)if(d=s[u],f=c[u],d!==f&&f){let n=f.reachable?`onCodePathSegmentStart`:`onUnreachableCodePathSegmentStart`;a.dump(`%s %s`,n,f.id),r.markUsed(f),e.emit(n,[f,t])}}function h(e,t){let r=n.getState(e.codePath),i=r.currentSegments;for(let n=0;n<i.length;++n){let r=i[n],o=r.reachable?`onCodePathSegmentEnd`:`onUnreachableCodePathSegmentEnd`;a.dump(`%s %s`,o,r.id),e.emit(o,[r,t])}r.currentSegments=[]}function g(t,r){let i=t.codePath,a=n.getState(i),o=r.parent;switch(o.type){case`CallExpression`:o.optional===!0&&o.arguments.length>=1&&o.arguments[0]===r&&a.makeOptionalRight();break;case`MemberExpression`:o.optional===!0&&o.property===r&&a.makeOptionalRight();break;case`LogicalExpression`:o.right===r&&c(o.operator)&&a.makeLogicalRight();break;case`AssignmentExpression`:o.right===r&&l(o.operator)&&a.makeLogicalRight();break;case`ConditionalExpression`:case`IfStatement`:o.consequent===r?a.makeIfConsequent():o.alternate===r&&a.makeIfAlternate();break;case`SwitchCase`:o.consequent[0]===r&&a.makeSwitchCaseBody(!1,!o.test);break;case`TryStatement`:o.handler===r?a.makeCatchBlock():o.finalizer===r&&a.makeFinallyBlock();break;case`WhileStatement`:o.test===r?a.makeWhileTest(f(r)):(e(o.body===r),a.makeWhileBody());break;case`DoWhileStatement`:o.body===r?a.makeDoWhileBody():(e(o.test===r),a.makeDoWhileTest(f(r)));break;case`ForStatement`:o.test===r?a.makeForTest(f(r)):o.update===r?a.makeForUpdate():o.body===r&&a.makeForBody();break;case`ForInStatement`:case`ForOfStatement`:o.left===r?a.makeForInOfLeft():o.right===r?a.makeForInOfRight():(e(o.body===r),a.makeForInOfBody());break;case`AssignmentPattern`:o.right===r&&(a.pushForkContext(),a.forkBypassPath(),a.forkPath())}}function _(e,r){let i=e.codePath,f=i&&n.getState(i),p=r.parent;function h(t){i&&(m(e,r),a.dumpState(r,f,!1)),i=e.codePath=new n({id:e.idGenerator.next(),origin:t,upper:i,onLooped:e.onLooped}),f=n.getState(i),a.dump(`onCodePathStart %s`,i.id),e.emit(`onCodePathStart`,[i,r])}switch(s(r)&&h(`class-field-initializer`),r.type){case`Program`:h(`program`);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:h(`function`);break;case`StaticBlock`:h(`class-static-block`);break;case`ChainExpression`:f.pushChainContext();break;case`CallExpression`:r.optional===!0&&f.makeOptionalNode();break;case`MemberExpression`:r.optional===!0&&f.makeOptionalNode();break;case`LogicalExpression`:c(r.operator)&&f.pushChoiceContext(r.operator,d(r));break;case`AssignmentExpression`:l(r.operator)&&f.pushChoiceContext(r.operator.slice(0,-1),d(r));break;case`ConditionalExpression`:case`IfStatement`:f.pushChoiceContext(`test`,!1);break;case`SwitchStatement`:f.pushSwitchContext(r.cases.some(o),u(r));break;case`TryStatement`:f.pushTryContext(!!r.finalizer);break;case`SwitchCase`:p.discriminant!==r&&p.cases[0]!==r&&f.forkPath();break;case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:f.pushLoopContext(r.type,u(r));break;case`LabeledStatement`:t.test(r.body.type)||f.pushBreakContext(!1,r.label.name)}m(e,r),a.dumpState(r,f,!1)}function v(e,r){let i=e.codePath,o=n.getState(i),s=!1;switch(r.type){case`ChainExpression`:o.popChainContext();break;case`IfStatement`:case`ConditionalExpression`:o.popChoiceContext();break;case`LogicalExpression`:c(r.operator)&&o.popChoiceContext();break;case`AssignmentExpression`:l(r.operator)&&o.popChoiceContext();break;case`SwitchStatement`:o.popSwitchContext();break;case`SwitchCase`:r.consequent.length===0&&o.makeSwitchCaseBody(!0,!r.test),o.forkContext.reachable&&(s=!0);break;case`TryStatement`:o.popTryContext();break;case`BreakStatement`:m(e,r),o.makeBreak(r.label&&r.label.name),s=!0;break;case`ContinueStatement`:m(e,r),o.makeContinue(r.label&&r.label.name),s=!0;break;case`ReturnStatement`:m(e,r),o.makeReturn(),s=!0;break;case`ThrowStatement`:m(e,r),o.makeThrow(),s=!0;break;case`Identifier`:p(r)&&(o.makeFirstThrowablePathInTryOrCatchBlock(),s=!0);break;case`CallExpression`:case`ImportExpression`:case`MemberExpression`:case`NewExpression`:o.makeFirstThrowablePathInTryOrCatchBlock();break;case`YieldExpression`:o.makeYield();break;case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:o.popLoopContext();break;case`AssignmentPattern`:o.popForkContext();break;case`LabeledStatement`:t.test(r.body.type)||o.popBreakContext()}s||m(e,r),a.dumpState(r,o,!0)}function y(e,t){function r(){let r=e.codePath;n.getState(r).makeFinal(),h(e,t),a.dump(`onCodePathEnd %s`,r.id),e.emit(`onCodePathEnd`,[r,t]),a.dumpDot(r),r=e.codePath=e.codePath.upper,r&&a.dumpState(t,n.getState(r),!0)}switch(t.type){case`Program`:case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`StaticBlock`:r();break;case`CallExpression`:t.optional===!0&&t.arguments.length===0&&n.getState(e.codePath).makeOptionalRight()}s(t)&&r()}class b{constructor(e){this.original=e,this.emit=e.emit,this.codePath=null,this.idGenerator=new i(`s`),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&g(this,e),_(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,v(this,e),this.original.leaveNode(e),y(this,e),this.currentNode=null}onLooped(e,t){e.reachable&&t.reachable&&(a.dump(`onCodePathSegmentLoop %s -> %s`,e.id,t.id),this.emit(`onCodePathSegmentLoop`,[e,t,this.currentNode]))}}return _n=b,_n}var bn={},xn={exports:{}},Sn={exports:{}},Cn,wn;function Tn(){if(wn)return Cn;wn=1;var e,t,n,r,i,a,o={}.toString;e=s(function(e,t){return e.apply(null,t)}),t=function(e){return s(e)},n=s(function(e,t,n){return e(n,t)}),r=function(e){return function(t){return function(){return e(t(t)).apply(null,arguments)}}(function(t){return function(){return e(t(t)).apply(null,arguments)}})},i=s(function(e,t,n,r){return e(t(n),t(r))}),a=function(e){var t={};return function(){for(var n,r=[],i=0,a=arguments.length,s,c;i<a;++i)r.push(arguments[i]);return n=r,s=function(){var e,t,r,i=[];for(e=0,r=(t=n).length;e<r;++e)c=t[e],i.push(c+o.call(c).slice(8,-1));return i}().join(``),t[s]=s in t?t[s]:e.apply(null,n)}},Cn={curry:t,flip:n,fix:r,apply:e,over:i,memoize:a};function s(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return Cn}var En,Dn;function On(){if(Dn)return En;Dn=1;var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,R,te,z,ne,re,B,V,ie,ae,oe,H,se,ce,le,ue,de,U,fe,pe,me,he,ge,_e,ve,ye,W,be,xe,G,K,q,Se={}.toString;e=J(function(e,t){for(var n=0,r=t.length,i;n<r;++n)i=t[n],e(i);return t}),t=J(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],a.push(e(i));return a}),n=function(e){var t,n,r,i=[];for(t=0,n=e.length;t<n;++t)r=e[t],r&&i.push(r);return i},r=J(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],e(i)&&a.push(i);return a}),i=J(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],e(i)||a.push(i);return a}),a=J(function(e,t){var n=xe(e,t),r=t.slice();return n!=null&&r.splice(n,1),r}),o=J(function(e,t){for(var n=[],r=[],i=0,a=t.length,o;i<a;++i)o=t[i],(e(o)?n:r).push(o);return[n,r]}),s=J(function(e,t){for(var n=0,r=t.length,i;n<r;++n)if(i=t[n],e(i))return i}),c=l=function(e){return e[0]},u=function(e){if(e.length)return e.slice(1)},d=function(e){return e[e.length-1]},f=function(e){if(e.length)return e.slice(0,-1)},p=function(e){return!e.length},m=function(e){return e.concat().reverse()},h=function(e){for(var t=[],n=0,r=e.length,i;n<r;++n)i=e[n],Ce(i,t)||t.push(i);return t},g=J(function(e,t){var n,r,i,a,o,s=[];for(n=[],r=0,i=t.length;r<i;++r)a=t[r],o=e(a),Ce(o,n)||(n.push(o),s.push(a));return s}),_=v=J(function(e,t,n){for(var r=0,i=n.length,a;r<i;++r)a=n[r],t=e(t,a);return t}),y=b=J(function(e,t){return _(e,t[0],t.slice(1))}),x=J(function(e,t,n){for(var r=n.length-1,i;r>=0;--r)i=n[r],t=e(i,t);return t}),S=J(function(e,t){return x(e,t[t.length-1],t.slice(0,-1))}),C=J(function(e,t){for(var n=[],r=t,i;(i=e(r))!=null;)n.push(i[0]),r=i[1];return n}),w=function(e){return[].concat.apply([],e)},T=J(function(e,t){var n;return[].concat.apply([],function(){var r,i,a,o=[];for(r=0,a=(i=t).length;r<a;++r)n=i[r],o.push(e(n));return o}())}),E=function(e){var t;return[].concat.apply([],function(){var n,r,i,a=[];for(n=0,i=(r=e).length;n<i;++n)t=r[n],Se.call(t).slice(8,-1)===`Array`?a.push(E(t)):a.push(t);return a}())},D=function(e){for(var t,n=[],r=1,i=arguments.length,a,o,s,c,l,u;r<i;++r)n.push(arguments[r]);t=n,a=[];outer:for(r=0,o=e.length;r<o;++r){for(s=e[r],c=0,l=t.length;c<l;++c)if(u=t[c],Ce(s,u))continue outer;a.push(s)}return a},O=function(e){for(var t,n=[],r=1,i=arguments.length,a,o,s,c,l,u;r<i;++r)n.push(arguments[r]);t=n,a=[];outer:for(r=0,o=e.length;r<o;++r){for(s=e[r],c=0,l=t.length;c<l;++c)if(u=t[c],!Ce(s,u))continue outer;a.push(s)}return a},k=function(){for(var e,t=[],n=0,r=arguments.length,i,a,o,s,c,l;n<r;++n)t.push(arguments[n]);for(e=t,i=[],n=0,a=e.length;n<a;++n)for(o=e[n],s=0,c=o.length;s<c;++s)l=o[s],Ce(l,i)||i.push(l);return i},A=J(function(e,t){for(var n={},r=0,i=t.length,a,o;r<i;++r)a=t[r],o=e(a),o in n?n[o]+=1:n[o]=1;return n}),j=J(function(e,t){for(var n={},r=0,i=t.length,a,o;r<i;++r)a=t[r],o=e(a),o in n?n[o].push(a):n[o]=[a];return n}),M=function(e){for(var t=0,n=e.length,r;t<n;++t)if(r=e[t],!r)return!1;return!0},N=function(e){for(var t=0,n=e.length,r;t<n;++t)if(r=e[t],r)return!0;return!1},P=J(function(e,t){for(var n=0,r=t.length,i;n<r;++n)if(i=t[n],e(i))return!0;return!1}),F=J(function(e,t){for(var n=0,r=t.length,i;n<r;++n)if(i=t[n],!e(i))return!1;return!0}),I=function(e){return e.concat().sort(function(e,t){return e>t?1:e<t?-1:0})},ee=J(function(e,t){return t.concat().sort(e)}),L=J(function(e,t){return t.concat().sort(function(t,n){return e(t)>e(n)?1:e(t)<e(n)?-1:0})}),R=function(e){for(var t=0,n=0,r=e.length,i;n<r;++n)i=e[n],t+=i;return t},te=function(e){for(var t=1,n=0,r=e.length,i;n<r;++n)i=e[n],t*=i;return t},z=ne=function(e){for(var t=0,n=0,r=e.length,i;n<r;++n)i=e[n],t+=i;return t/e.length},re=function(e){for(var t=e[0],n=0,r,i=(r=e.slice(1)).length,a;n<i;++n)a=r[n],a>t&&(t=a);return t},B=function(e){for(var t=e[0],n=0,r,i=(r=e.slice(1)).length,a;n<i;++n)a=r[n],a<t&&(t=a);return t},V=J(function(e,t){for(var n=t[0],r=0,i,a=(i=t.slice(1)).length,o;r<a;++r)o=i[r],e(o)>e(n)&&(n=o);return n}),ie=J(function(e,t){for(var n=t[0],r=0,i,a=(i=t.slice(1)).length,o;r<a;++r)o=i[r],e(o)<e(n)&&(n=o);return n}),ae=oe=J(function(e,t,n){var r=t,i;return[t].concat(function(){var t,a,o,s=[];for(t=0,o=(a=n).length;t<o;++t)i=a[t],s.push(r=e(r,i));return s}())}),H=se=J(function(e,t){if(t.length)return ae(e,t[0],t.slice(1))}),ce=J(function(e,t,n){return n=n.concat().reverse(),ae(e,t,n).reverse()}),le=J(function(e,t){if(t.length)return t=t.concat().reverse(),ae(e,t[0],t.slice(1)).reverse()}),ue=J(function(e,t,n){return n.slice(e,t)}),de=J(function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)}),U=J(function(e,t){return e<=0?t:t.slice(e)}),fe=J(function(e,t){return[de(e,t),U(e,t)]}),pe=J(function(e,t){var n=t.length,r;if(!n)return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(0,r)}),me=J(function(e,t){var n=t.length,r;if(!n)return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(r)}),he=J(function(e,t){return[pe(e,t),me(e,t)]}),ge=J(function(e,t){return he(Y(e,we),t)}),_e=J(function(e,t){for(var n=[],r=t.length,i=0,a=e.length,o,s;i<a&&(o=i,s=e[i],o!==r);++i)n.push([s,t[o]]);return n}),ve=J(function(e,t,n){for(var r=[],i=n.length,a=0,o=t.length,s,c;a<o&&(s=a,c=t[a],s!==i);++a)r.push(e(c,n[s]));return r}),ye=function(){var e,t,n,r,i,a,o,s,c,l,u,d=[];for(t=[],n=0,r=arguments.length;n<r;++n)t.push(arguments[n]);for(e=t,i=void 0,n=0,a=e.length;n<a;++n)o=e[n],i<=(s=o.length)||(i=s);for(n=0;n<i;++n){for(c=n,l=[],u=0,a=e.length;u<a;++u)o=e[u],l.push(o[c]);d.push(l)}return d},W=function(e){var t,n,r,i,a,o,s,c,l,u=[];for(n=[],r=1,i=arguments.length;r<i;++r)n.push(arguments[r]);for(t=n,a=void 0,r=0,o=t.length;r<o;++r)s=t[r],a<=(c=s.length)||(a=c);for(r=0;r<a;++r)l=r,u.push(e.apply(null,d()));return u;function d(){var e,n,r,i=[];for(e=0,r=(n=t).length;e<r;++e)s=n[e],i.push(s[l]);return i}},be=J(function(e,t){return e<0?t[t.length+e]:t[e]}),xe=J(function(e,t){for(var n=0,r=t.length,i,a;n<r;++n)if(i=n,a=t[n],a===e)return i}),G=J(function(e,t){var n,r,i,a,o=[];for(n=0,r=t.length;n<r;++n)i=n,a=t[n],a===e&&o.push(i);return o}),K=J(function(e,t){for(var n=0,r=t.length,i,a;n<r;++n)if(i=n,a=t[n],e(a))return i}),q=J(function(e,t){var n,r,i,a,o=[];for(n=0,r=t.length;n<r;++n)i=n,a=t[n],e(a)&&o.push(i);return o}),En={each:e,map:t,filter:r,compact:n,reject:i,remove:a,partition:o,find:s,head:c,first:l,tail:u,last:d,initial:f,empty:p,reverse:m,difference:D,intersection:O,union:k,countBy:A,groupBy:j,fold:_,fold1:y,foldl:v,foldl1:b,foldr:x,foldr1:S,unfoldr:C,andList:M,orList:N,any:P,all:F,unique:h,uniqueBy:g,sort:I,sortWith:ee,sortBy:L,sum:R,product:te,mean:z,average:ne,concat:w,concatMap:T,flatten:E,maximum:re,minimum:B,maximumBy:V,minimumBy:ie,scan:ae,scan1:H,scanl:oe,scanl1:se,scanr:ce,scanr1:le,slice:ue,take:de,drop:U,splitAt:fe,takeWhile:pe,dropWhile:me,span:he,breakList:ge,zip:_e,zipWith:ve,zipAll:ye,zipAllWith:W,at:be,elemIndex:xe,elemIndices:G,findIndex:K,findIndices:q};function J(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}function Ce(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}function Y(){var e=arguments;return function(){var t,n=e[0].apply(this,arguments);for(t=1;t<e.length;++t)n=e[t](n);return n}}function we(e){return!e}return En}var kn,An;function jn(){if(An)return kn;An=1,kn={values:function(e){var t,n,r=[];for(t in e)n=e[t],r.push(n);return r},keys:function(e){var t,n=[];for(t in e)n.push(t);return n},pairsToObj:function(e){var t,n,r,i={};for(t=0,n=e.length;t<n;++t)r=e[t],i[r[0]]=r[1];return i},objToPairs:function(e){var t,n,r=[];for(t in e)n=e[t],r.push([t,n]);return r},listsToObj:e(function(e,t){var n,r,i,a,o={};for(n=0,r=e.length;n<r;++n)i=n,a=e[n],o[a]=t[i];return o}),objToLists:function(e){var t=[],n=[],r,i;for(r in e)i=e[r],t.push(r),n.push(i);return[t,n]},empty:function(e){for(var t in e)return!1;return!0},each:e(function(e,t){var n,r;for(n in t)r=t[n],e(r);return t}),map:e(function(e,t){var n,r,i={};for(n in t)r=t[n],i[n]=e(r);return i}),filter:e(function(e,t){var n,r,i={};for(n in t)r=t[n],e(r)&&(i[n]=r);return i}),compact:function(e){var t,n,r={};for(t in e)n=e[t],n&&(r[t]=n);return r},reject:e(function(e,t){var n,r,i={};for(n in t)r=t[n],e(r)||(i[n]=r);return i}),partition:e(function(e,t){var n={},r={},i,a;for(i in t)a=t[i],(e(a)?n:r)[i]=a;return[n,r]}),find:e(function(e,t){var n,r;for(n in t)if(r=t[n],e(r))return r})};function e(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return kn}var Mn,Nn;function Pn(){if(Nn)return Mn;Nn=1,Mn={split:e(function(e,t){return t.split(e)}),join:e(function(e,t){return t.join(e)}),lines:function(e){return e.length?e.split(`
28
+ `):[]},unlines:function(e){return e.join(`
29
+ `)},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:e(function(e,t){for(var n=``,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 e(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return Mn}var Fn,In;function Ln(){if(In)return Fn;In=1;var e=j(function(e,t){return e>t?e:t}),t=j(function(e,t){return e<t?e:t}),n=function(e){return-e},r=Math.abs,i=function(e){return e<0?-1:+(e>0)},a=j(function(e,t){return~~(e/t)}),o=j(function(e,t){return e%t}),s=j(function(e,t){return Math.floor(e/t)}),c=j(function(e,t){var n;return(e%(n=t)+n)%n}),l=(function(e){return 1/e}),u=Math.PI,d=u*2,f=Math.exp,p=Math.sqrt,m=Math.log,h=j(function(e,t){return e**+t}),g=Math.sin,_=Math.tan,v=Math.cos,y=Math.asin,b=Math.acos,x=Math.atan,S=j(function(e,t){return Math.atan2(e,t)}),C=function(e){return~~e},w=Math.round,T=Math.ceil,E=Math.floor,D=function(e){return e!==e},O=function(e){return e%2==0},k=function(e){return e%2!=0},A=j(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});Fn={max:e,min:t,negate:n,abs:r,signum:i,quot:a,rem:o,div:s,mod:c,recip:l,pi:u,tau:d,exp:f,sqrt:p,ln:m,pow:h,sin:g,tan:_,cos:v,acos:b,asin:y,atan:x,atan2:S,truncate:C,round:w,ceiling:T,floor:E,isItNaN:D,even:O,odd:k,gcd:A,lcm:j(function(e,t){return Math.abs(Math.floor(e/A(e,t)*t))})};function j(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return Fn}var Rn,zn;function Bn(){if(zn)return Rn;zn=1;var e,t,n,r,i,a,o,s,c,l={}.toString;e=Tn(),t=On(),n=jn(),r=Pn(),i=Ln(),a=function(e){return e},o=u(function(e,t){return l.call(t).slice(8,-1)===e}),s=u(function(e,t){var n,r=[];for(n=0;n<e;++n)r.push(t);return r}),r.empty=t.empty,r.slice=t.slice,r.take=t.take,r.drop=t.drop,r.splitAt=t.splitAt,r.takeWhile=t.takeWhile,r.dropWhile=t.dropWhile,r.span=t.span,r.breakStr=t.breakList,c={Func:e,List:t,Obj:n,Str:r,Num:i,id:a,isType:o,replicate:s},c.each=t.each,c.map=t.map,c.filter=t.filter,c.compact=t.compact,c.reject=t.reject,c.partition=t.partition,c.find=t.find,c.head=t.head,c.first=t.first,c.tail=t.tail,c.last=t.last,c.initial=t.initial,c.empty=t.empty,c.reverse=t.reverse,c.difference=t.difference,c.intersection=t.intersection,c.union=t.union,c.countBy=t.countBy,c.groupBy=t.groupBy,c.fold=t.fold,c.foldl=t.foldl,c.fold1=t.fold1,c.foldl1=t.foldl1,c.foldr=t.foldr,c.foldr1=t.foldr1,c.unfoldr=t.unfoldr,c.andList=t.andList,c.orList=t.orList,c.any=t.any,c.all=t.all,c.unique=t.unique,c.uniqueBy=t.uniqueBy,c.sort=t.sort,c.sortWith=t.sortWith,c.sortBy=t.sortBy,c.sum=t.sum,c.product=t.product,c.mean=t.mean,c.average=t.average,c.concat=t.concat,c.concatMap=t.concatMap,c.flatten=t.flatten,c.maximum=t.maximum,c.minimum=t.minimum,c.maximumBy=t.maximumBy,c.minimumBy=t.minimumBy,c.scan=t.scan,c.scanl=t.scanl,c.scan1=t.scan1,c.scanl1=t.scanl1,c.scanr=t.scanr,c.scanr1=t.scanr1,c.slice=t.slice,c.take=t.take,c.drop=t.drop,c.splitAt=t.splitAt,c.takeWhile=t.takeWhile,c.dropWhile=t.dropWhile,c.span=t.span,c.breakList=t.breakList,c.zip=t.zip,c.zipWith=t.zipWith,c.zipAll=t.zipAll,c.zipAllWith=t.zipAllWith,c.at=t.at,c.elemIndex=t.elemIndex,c.elemIndices=t.elemIndices,c.findIndex=t.findIndex,c.findIndices=t.findIndices,c.apply=e.apply,c.curry=e.curry,c.flip=e.flip,c.fix=e.fix,c.over=e.over,c.split=r.split,c.join=r.join,c.lines=r.lines,c.unlines=r.unlines,c.words=r.words,c.unwords=r.unwords,c.chars=r.chars,c.unchars=r.unchars,c.repeat=r.repeat,c.capitalize=r.capitalize,c.camelize=r.camelize,c.dasherize=r.dasherize,c.values=n.values,c.keys=n.keys,c.pairsToObj=n.pairsToObj,c.objToPairs=n.objToPairs,c.listsToObj=n.listsToObj,c.objToLists=n.objToLists,c.max=i.max,c.min=i.min,c.negate=i.negate,c.abs=i.abs,c.signum=i.signum,c.quot=i.quot,c.rem=i.rem,c.div=i.div,c.mod=i.mod,c.recip=i.recip,c.pi=i.pi,c.tau=i.tau,c.exp=i.exp,c.sqrt=i.sqrt,c.ln=i.ln,c.pow=i.pow,c.sin=i.sin,c.tan=i.tan,c.cos=i.cos,c.acos=i.acos,c.asin=i.asin,c.atan=i.atan,c.atan2=i.atan2,c.truncate=i.truncate,c.round=i.round,c.ceiling=i.ceiling,c.floor=i.floor,c.isItNaN=i.isItNaN,c.even=i.even,c.odd=i.odd,c.gcd=i.gcd,c.lcm=i.lcm,c.VERSION=`1.2.1`,Rn=c;function u(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return Rn}var Vn;function Hn(){return Vn||(Vn=1,(function(){var e=Bn().reject,t,n;function r(e,t){if(e[0]===t)return e.shift();throw Error(`Expected '`+t+`', but got '`+e[0]+`' instead in `+JSON.stringify(e)+`.`)}function i(e,t){if(e[0]===t)return e.shift()}function a(e,t,n){var a=t[0],o=t[1],s,c;for(n&&r(e,a),s=[],c=`,`+(n?o:``);e.length&&n&&e[0]!==o;)s.push(u(e,c)),i(e,`,`);return n&&r(e,o),s}function o(e,t){return a(e,[`[`,`]`],t)}function s(e,t){return a(e,[`(`,`)`],t)}function c(e,t){var n,a,o;for(t&&r(e,`{`),n={},a=`,`+(t?`}`:``);e.length&&(!t||e[0]!==`}`);)o=l(e,`:`),r(e,`:`),n[o]=u(e,a),i(e,`,`);return t&&r(e,`}`),n}function l(e,t){var n;for(t??=``,n=``;e.length&&t.indexOf(e[0])===-1;)n+=e.shift();return n}function u(e,t){switch(e[0]){case`[`:return o(e,!0);case`(`:return s(e,!0);case`{`:return c(e,!0);default:return l(e,t)}}function d(e,t,n){var r=t[0],i=r.type,a=r.structure,l=e.concat(),d,f,p,m;return!n.explicit&&t.length===1&&(!i&&a||i===`Array`||i===`Object`)?(d=a===`array`||i===`Array`?o(e,e[0]===`[`):a===`tuple`?s(e,e[0]===`(`):c(e,e[0]===`{`),f=e.length?u(a===`array`||i===`Array`?(p=l,p.unshift(`[`),p.push(`]`),p):(m=l,m.unshift(`(`),m.push(`)`),m)):d):f=u(e),f}t=`\\[\\]\\(\\)}{:,`,n=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+t+`])|([^\\s`+t+`](?:\\s*[^\\s`+t+`]+)*)|\\s*`),Sn.exports=function(t,r,i){var a,o;if(i??={},!i.explicit&&t.length===1&&t[0].type===`String`)return r;if(a=e(f,r.split(n)),o=d(a,t,i),!o)throw Error(`Error parsing '`+r+`'.`);return o};function f(e){return!e}}).call(this)),Sn.exports}var Un={exports:{}},Wn={exports:{}},Gn={exports:{}},Kn;function qn(){return Kn||(Kn=1,(function(){var e=/[\$\w]+/,t;function n(e){var t=e[0];if(t==null)throw Error(`Unexpected end of input.`);return t}function r(t){var r=n(t);if(!e.test(r))throw Error(`Expected text, got '`+r+`' instead.`);return t.shift()}function i(e,t){var r=n(e);if(r!==t)throw Error(`Expected '`+t+`', got '`+r+`' instead.`);return e.shift()}function a(e,t){return e[0]===t?e.shift():null}function o(e){var t;if(i(e,`[`),n(e)===`]`)throw Error(`Must specify type of Array - eg. [Type], got [] instead.`);return t=f(e),i(e,`]`),{structure:`array`,of:t}}function s(e){var t=[];if(i(e,`(`),n(e)===`)`)throw Error(`Tuple must be of at least length 1 - eg. (Type), got () instead.`);for(;t.push(f(e)),a(e,`,`),n(e)!==`)`;);return i(e,`)`),{structure:`tuple`,of:t}}function c(e){var t={},r,o,s,c;for(i(e,`{`),r=!1;;){if(a(e,`...`)){r=!0;break}if(o=l(e),s=o[0],c=o[1],t[s]=c,a(e,`,`),n(e)===`}`)break}return i(e,`}`),{structure:`fields`,of:t,subset:r}}function l(e){var t=r(e),n;return i(e,`:`),n=f(e),[t,n]}function u(e){switch(e[0]){case`[`:return o(e);case`(`:return s(e);case`{`:return c(e)}}function d(t){var a=n(t),o=a===`*`,s,c;if(o||e.test(a))return s=o?i(t,`*`):r(t),c=u(t),c?(c.type=s,c):{type:s};if(c=u(t),!c)throw Error(`Unexpected character: `+a);return c}function f(e){var t,r,i,o,s,c;if(n(e)===`::`)throw Error(`No comment before comment separator '::' found.`);for(t=e[1],t!=null&&t===`::`&&(e.shift(),e.shift()),r=[],i={},n(e)===`Maybe`&&(e.shift(),r=[{type:`Undefined`},{type:`Null`}],i={Undefined:!0,Null:!0});o=d(e),s=o.type,c=o.structure,i[s]||r.push(o),c??(i[s]=!0),a(e,`|`););return r}t=RegExp(`\\.\\.\\.|::|->|`+e.source+`|\\S`,`g`),Gn.exports=function(e){var n,r;if(!e.length)throw Error(`No type specified.`);if(n=e.match(t)||[],p(`->`,n))throw Error(`Function types are not supported. To validate that something is a function, you may use 'Function'.`);try{return f(n)}catch(t){throw r=t,Error(r.message+` - Remaining tokens: `+JSON.stringify(n)+` - Initial input: '`+e+`'`)}};function p(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}}).call(this)),Gn.exports}var Jn={exports:{}},Yn;function Xn(){return Yn||(Yn=1,(function(){var e,t,n,r,i,a,o={}.toString;e=Bn(),t=e.any,n=e.all,r=e.isItNaN,i={Number:{typeOf:`Number`,validate:function(e){return!r(e)}},NaN:{typeOf:`Number`,validate:r},Int:{typeOf:`Number`,validate:function(e){return!r(e)&&e%1==0}},Float:{typeOf:`Number`,validate:function(e){return!r(e)}},Date:{typeOf:`Date`,validate:function(e){return!r(e.getTime())}}},a={array:`Array`,tuple:`Array`};function s(e,t,r){return n(function(e){return f(e,t.of,r)},e)}function c(e,t,n){for(var r=0,i=0,a,o=(a=t.of).length,s;i<o;++i){if(s=a[i],!f(e[r],s,n))return!1;r++}return e.length<=r}function l(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],!f(e[s],l,n))return!1;r[s]&&o++}return t.subset||i===o}function u(e,t,n){if(!(e instanceof Object))return!1;switch(t.structure){case`fields`:return l(e,t,n);case`array`:return s(e,t,n);case`tuple`:return c(e,t,n)}}function d(e,t,n){var r=t.type,s=t.structure,c,l;if(r)return r===`*`||(c=n.customTypes[r]||i[r],c?(c.typeOf===void 0||c.typeOf===o.call(e).slice(8,-1))&&c.validate(e):r===o.call(e).slice(8,-1)&&(!s||u(e,t,n)));if(s)return(l=a[s])&&l!==o.call(e).slice(8,-1)?!1:u(e,t,n);throw Error(`No type defined. Input: `+e+`.`)}function f(e,n,r){if(o.call(n).slice(8,-1)!==`Array`)throw Error(`Types must be in an array. Input: `+e+`.`);return t(function(t){return d(e,t,r)},n)}Jn.exports=function(e,t,n){return n??={},n.customTypes??(n.customTypes={}),f(t,e,n)}}).call(this)),Jn.exports}var Zn;function Qn(){return Zn||(Zn=1,(function(){var e=`0.4.0`,t=qn(),n=Xn();Wn.exports={VERSION:e,typeCheck:function(e,r,i){return n(t(e),r,i)},parsedTypeCheck:n,parseType:t}}).call(this)),Wn.exports}var $n;function er(){return $n||($n=1,(function(){var e,t,n={}.toString;e=Qn().parsedTypeCheck,t={"*":function(e,t){switch(n.call(e).slice(8,-1)){case`Array`:return o(e,{type:`Array`},t);case`Object`:return o(e,{type:`Object`},t);default:return{type:`Just`,value:s(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 r(e,{of:[{type:`*`}]},t)},Object:function(e,t){return a(e,{of:{}},t)},String:function(e){var t,r;return n.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`
30
+ `;case`r`:return`\r`;case`t`:return` `;case`u`:return JSON.parse(`"`+e+`"`);default:return n}})},(r=e.match(/^'([\s\S]*)'$/))?{type:`Just`,value:t(r[1],`'`)}:(r=e.match(/^"([\s\S]*)"$/))?{type:`Just`,value:t(r[1],`"`)}:{type:`Just`,value:e}):{type:`Nothing`}}};function r(e,t,r){var i,a;return n.call(e).slice(8,-1)===`Array`?(i=t.of,{type:`Just`,value:function(){var t,n,o,c=[];for(t=0,o=(n=e).length;t<o;++t)a=n[t],c.push(s(a,i,r));return c}()}):{type:`Nothing`}}function i(e,t,r){var i,a,o,c,l,u,d;if(n.call(e).slice(8,-1)!==`Array`)return{type:`Nothing`};for(i=[],a=0,o=0,l=(c=t.of).length;o<l;++o)u=c[o],d=s(e[a],u,r),n.call(d).slice(8,-1)!==`Undefined`&&i.push(d),a++;return e.length<=a?{type:`Just`,value:i}:{type:`Nothing`}}function a(e,t,r){var i,a,o;return n.call(e).slice(8,-1)===`Object`?(i=t.of,{type:`Just`,value:function(){var t,n={};for(a in t=e)o=t[a],n[s(a,[{type:`String`}],r)]=s(o,i[a]||[{type:`*`}],r);return n}()}):{type:`Nothing`}}function o(e,n,o){var c=n.type,l=n.structure,u;if(c){if(u=o.customTypes[c]?.cast||t[c],!u)throw Error(`Type not defined: `+c+`.`);return u(e,o,s)}switch(l){case`array`:return r(e,n,o);case`tuple`:return i(e,n,o);case`fields`:return a(e,n,o)}}function s(t,n,r){for(var i=0,a=n.length,s,c,l,u;i<a;++i)if(s=n[i],c=o(t,s,r),l=c.type,u=c.value,l!==`Nothing`&&e([s],u,{customTypes:r.customTypes}))return u;throw Error(`Value `+JSON.stringify(t)+` does not type check against `+JSON.stringify(n)+`.`)}Un.exports=function(e,t,n){return!n.explicit&&t.length===1&&t[0].type===`String`?e:s(e,t,n)}}).call(this)),Un.exports}var tr;function nr(){return tr||(tr=1,(function(){var e=Hn(),t=er(),n=Qn().parseType,r=`0.4.1`,i=function(n,r,i){return i??={},i.explicit??(i.explicit=!1),i.customTypes??(i.customTypes={}),t(e(n,r,i),n,i)};xn.exports={VERSION:r,parse:function(e,t,r){return i(n(e),t,r)},parsedTypeParse:i}}).call(this)),xn.exports}var rr;function ir(){if(rr)return bn;rr=1;var e=nr();let t=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=/* @__PURE__ */ new Set([0,1,2,`off`,`warn`,`error`]);function r(e){let t=Array.isArray(e)?e[0]:e;return n.has(t)}function i(e){return Object.values(e).every(r)}class a{label=``;value=``;justification=``;constructor(e,t,n){this.label=e,this.value=t,this.justification=n}}class o{parseStringConfig(e){let t=Object.create(null);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(t){try{let n=e.parse(`Object`,t)||{};if(i(n))return{ok:!0,config:n}}catch{}let n=t.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=Object.create(null);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:n,justificationPart:r}=this.#e(e),i=t.exec(n);if(!i)return;let o=i[1],s=n.slice(i.index+o.length);return new a(o,s.trim(),r)}}function s(e){return`loc`in e}function c(e){return`position`in e}function l(e){return`range`in e}function u(e){return`position`in e}function d(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}class f{type=`visit`;kind=1;target;phase;args;constructor({target:e,phase:t,args:n}){this.target=e,this.phase=t,this.args=n}}class p{type=`call`;kind=2;target;args;constructor({target:e,args:t}){this.target=e,this.args=t}}class m{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}}class h{#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(s(e))return e.loc;if(c(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:d(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(l(e))return e.range;if(u(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.`)}}return bn.CallMethodStep=p,bn.ConfigCommentParser=o,bn.Directive=m,bn.TextSourceCodeBase=h,bn.VisitNodeStep=f,bn}var ar,or;function sr(){if(or)return ar;or=1;let e=Ht(),t=Gt(),n=Ye(),r=Jt(),{directivesPattern:i}=Zt(),a=yn(),{ConfigCommentParser:o,VisitNodeStep:s,CallMethodStep:c,Directive:l}=ir(),u=new o;function d(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 f(e){switch(e){case 3:return r.es3;case 5:return r.es5;default:return e<2015?r[`es${e+2009}`]:r[`es${e}`]}}function p(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 m(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 h(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 g(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}let _=/* @__PURE__ */ new WeakMap,v=/* @__PURE__ */ new WeakMap;function y(e){let t=v.get(e);return t||(t=Object.keys(e).filter(t=>e[t]!==`off`),v.set(e,t)),t}function b(e,t=Object.create(null),n=Object.create(null)){let r=t,i;if(Object.keys(n).length===0)i=y(t);else{r={__proto__:null,...t};for(let[e,t]of Object.entries(n))r[e]=t.value;i=Object.keys(r).filter(e=>r[e]!==`off`)}e.addGlobals(i);let a=e.scopes[0];for(let e of i){let i=a.set.get(e);i.eslintImplicitGlobalSetting=t[e],i.eslintExplicitGlobal=!!n[e],i.eslintExplicitGlobalComments=n[e]?.comments,i.writeable=r[e]===`writable`}}function x(e,t){Object.keys(t).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)})}let S=Symbol(`caches`);class C extends e{#e;constructor(e,r){let i,a,o,s,c,l;typeof e==`string`?(i=e,o=r,a=!1):typeof e==`object`&&e&&(i=e.text,o=e.ast,a=e.hasBOM,s=e.parserServices,c=e.scopeManager,l=e.visitorKeys),d(o),super(o.tokens,o.comments),this[S]=/* @__PURE__ */ new Map([[`scopes`,/* @__PURE__ */ new WeakMap],[`vars`,/* @__PURE__ */ new Map],[`configNodes`,void 0],[`isGlobalReference`,/* @__PURE__ */ new WeakMap]]),this.isESTree=o.type===`Program`;let u=i.charCodeAt(0)===65279;this.hasBOM=u||!!a,this.text=u?i.slice(1):i,this.ast=o,this.parserServices=s||{},this.scopeManager=c||null,this.visitorKeys=l||n.DEFAULT_VISITOR_KEYS;let f=this.text.match(t.shebangPattern);f&&o.comments.length&&o.comments[0].value===f[1]&&(o.comments[0].type=`Shebang`),this.tokensAndComments=p(o.tokens,o.comments),this.lines=[],this.lineStartIndices=[0];let m=t.createGlobalLinebreakMatcher(),h;for(;h=m.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),h.index)),this.lineStartIndices.push(h.index+h[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(t.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}getNodeByRangeIndex(e){let t=null;return n.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){if(h(e,t))return!1;let[n,r]=e.range[1]<=t.range[0]?[e,t]:[t,e],i=this.getLastToken(n)||n,a=this.getFirstToken(r)||r,o=i;for(;o!==a;){let e=this.getTokenAfter(o,{includeComments:!0});if(o.range[1]!==e.range[0])return!0;o=e}return!1}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:g(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[S].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[S].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[S].get(`configNodes`);return e||(e=this.ast.comments.filter(e=>{if(e.type===`Shebang`)return!1;let t=u.parseDirective(e.value);return!t||!i.test(t.label)?!1:e.type!==`Line`||!!/^eslint-disable-(?:next-)?line$/u.test(t.label)}),this[S].set(`configNodes`,e),e)}getDisableDirectives(){let e=this[S].get(`disableDirectives`);if(e)return e;let t=[],n=[];this.getInlineConfigNodes().forEach(e=>{let{label:r,value:i,justification:a}=u.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})}else 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 l({type:t,node:e,value:i,justification:a}))}}}});let r={problems:t,directives:n};return this[S].set(`disableDirectives`,r),r}applyLanguageOptions(e){let t=_.get(e);if(!t){t=Object.assign(Object.create(null),f(e.ecmaVersion),e.sourceType===`commonjs`?r.commonjs:void 0,e.globals);for(let[e,n]of Object.entries(t))t[e]=m(n);_.set(e,t)}this[S].get(`vars`).set(`configGlobals`,t)}applyInlineConfig(){let e=[],t=[],n=Object.create(null),r=Object.create(null);this.getInlineConfigNodes().forEach(i=>{let{label:a,value:o}=u.parseDirective(i.value);switch(a){case`exported`:Object.assign(n,u.parseListConfig(o));break;case`globals`:case`global`:for(let[t,n]of Object.entries(u.parseStringConfig(o))){let a;try{a=m(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=u.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}case`eslint-env`:e.push({ruleId:null,loc:i.loc,message:`/* eslint-env */ comments are no longer supported.`})}});let i=this[S].get(`vars`);return i.set(`inlineGlobals`,r),i.set(`exportedVariables`,n),{configs:t,problems:e}}finalize(){let e=this[S].get(`vars`),t=e.get(`configGlobals`),n=e.get(`inlineGlobals`),r=e.get(`exportedVariables`),i=this.scopeManager.scopes[0];b(this.scopeManager,t,n),r&&x(i,r)}traverse(){if(this.#e)return this.#e;let e=this.#e=[],t={enterNode(t){e.push(new s({target:t,phase:1,args:[t]}))},leaveNode(t){e.push(new s({target:t,phase:2,args:[t]}))},emit(t,n){e.push(new c({target:t,args:n}))}};return this.isESTree&&(t=new a(t)),n.traverse(this.ast,{enter(e,n){e.parent=n,t.enterNode(e)},leave(e){t.leaveNode(e)},visitorKeys:this.visitorKeys}),e}}return ar=C,ar}var cr,lr;function ur(){return lr||(lr=1,cr={SourceCode:sr()}),cr}var dr,fr;function pr(){return fr||(fr=1,dr=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}),dr}var mr,hr;function gr(){if(hr)return mr;hr=1;function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function t(n,r){if(r===void 0)return n;if(!e(n)||!e(r))return r;let i={...n,...r};for(let e of Object.keys(r))Object.prototype.propertyIsEnumerable.call(n,e)&&(i[e]=t(n[e],r[e]));return i}function n(e,n){return!e||!n?n||e||[]:[...e.map((e,r)=>t(e,r<n.length?n[r]:void 0)),...n.slice(e.length)]}return mr={deepMergeArrays:n},mr}var _r,vr;function yr(){if(vr)return _r;vr=1;function e(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 t(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}`)}return _r={normalizeSeverityToString:e,normalizeSeverityToNumber:t},_r}var br,xr;function Sr(){if(xr)return br;xr=1;let{normalizeSeverityToNumber:e}=yr(),t=/* @__PURE__ */ new Map([[0,0],[`off`,0],[1,1],[`warn`,1],[2,2],[`error`,2]]);function n(e){return typeof e==`object`&&!!e}function r(e){return n(e)&&!Array.isArray(e)}function i(e){return e===void 0}function a(e,t,n=/* @__PURE__ */ new Map){let o=n.get(e);if(o){let e=o.get(t);if(e)return e}else o=/* @__PURE__ */ new Map,n.set(e,o);let s={...e,...t};delete s.__proto__,o.set(t,s);for(let o of Object.keys(t)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(e,o))continue;let c=e[o],l=t[o];r(c)&&r(l)?s[o]=a(c,l,n):i(l)&&(s[o]=c)}return s}function o(e){let n=Array.isArray(e)?e.slice(0):[e];return n[0]=t.get(n[0]),structuredClone(n)}function s(e){for(let t of Object.keys(e))if(typeof e[t]==`function`)return!0;return!1}class c 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 l(e,t){if(typeof t!=`string`&&typeof t!=`number`&&!Array.isArray(t))throw new c(e,t)}class u 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 d(e,n){if(t.get(n)===void 0)throw new u(e,n)}function f(e,t){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(e))throw TypeError(`Expected string in the form "pluginName/${t}" but found "${e}".`)}function p(e){if(!n(e))throw TypeError(`Expected an object.`)}class m 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 h 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 g={merge:`replace`,validate:`boolean`},_=/* @__PURE__ */ new Set([`error`,`warn`,`off`,2,1,0]),v={merge(t,n){let r=n===void 0?t:n;return typeof r==`boolean`?r?`warn`:`off`:e(r)},validate(e){if(!(_.has(e)||typeof e==`boolean`))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.`)}},y={merge(t,n){return e(n===void 0?t:n)},validate(e){if(!_.has(e))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, or 2.`)}},b={merge(e={},t={}){return a(e,t)},validate:`object`},x={merge(e={},t={}){let n=a(e,t);for(let[i,a]of Object.entries(n))if(r(a)){if(s(a)){n[i]=t[i]??e[i];continue}n[i]={...n[i]};continue}return n},validate:`object`},S={merge:`replace`,validate(e){f(e,`languageName`)}},C={merge(e={},t={}){let n=/* @__PURE__ */ 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 h(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.`)}},w={merge:`replace`,validate(e){if(typeof e==`string`)f(e,`processorName`);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.`)}},T={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]=o(n[r]),!(r in e)||!(r in t))continue;let i=o(e[r]),a=o(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){p(e);for(let t of Object.keys(e)){if(t===`__proto__`)continue;let n=e[t];l(t,n),Array.isArray(n)?d(t,n[0]):d(t,n)}}};function E(e){return{merge:`replace`,validate(){throw new m(e)}}}return br={flatConfigSchema:{...Object.fromEntries([`env`,`extends`,`globals`,`ignorePatterns`,`noInlineConfig`,`overrides`,`parser`,`parserOptions`,`reportUnusedDisableDirectives`,`root`].map(e=>[e,E(e)])),settings:b,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:v,reportUnusedInlineConfigs:y}},language:S,languageOptions:x,processor:w,plugins:C,rules:T},hasMethod:s,assertIsRuleSeverity:d},br}var Cr={},wr={},Tr;function Er(){if(Tr)return wr;Tr=1;function e(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function t(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 n(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 r(t,n){if(e(t),t.length===0)return t;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function i(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 a(e){return e=i(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function o(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 s(e){return e===47}function c(e,i=``){e instanceof URL&&(e=a(e)),r(e,i);let c=o(n(e,s),s);return i?t(c,i):c}let l=/\/+/;function u(t){if(e(t),t.length===0)return`.`}function d(e){e instanceof URL&&(e=a(e)),u(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(s(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return t===-1?s(e.charCodeAt(0))?`/`:`.`:o(e.slice(0,t),s)}function f(t){t instanceof URL&&(t=a(t)),e(t);let n=-1,r=0,i=-1,o=!0,c=0;for(let e=t.length-1;e>=0;--e){let a=t.charCodeAt(e);if(s(a)){if(!o){r=e+1;break}}else i===-1&&(o=!1,i=e+1),a===46?n===-1?n=e:c!==1&&(c=1):n!==-1&&(c=-1)}return n===-1||i===-1||c===0||c===1&&n===i-1&&n===r+1?``:t.slice(n,i)}function p(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 m(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function h(e){return m(e),p(`/`,e)}function g(t){return e(t),t.length>0&&s(t.charCodeAt(0))}function _(t){if(e(t),t.length===0)return`.`}function v(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}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 y(e){e instanceof URL&&(e=a(e)),_(e);let t=s(e.charCodeAt(0)),n=s(e.charCodeAt(e.length-1));return e=v(e,!t,`/`,s),e.length===0&&!t&&(e=`.`),e.length>0&&n&&(e+=`/`),t?`/${e}`:e}function b(t,...n){if(t===void 0)return`.`;t instanceof URL&&(t=a(t)),n=t?[t,...n]:n,n.forEach(t=>e(t));let r=n.filter(e=>e.length>0).join(`/`);return r===``?`.`:y(r)}function x(t){e(t);let n={root:``,dir:``,base:``,ext:``,name:``};if(t.length===0)return n;let r=s(t.charCodeAt(0)),i;r?(n.root=`/`,i=1):i=0;let a=-1,c=0,l=-1,u=!0,d=t.length-1,f=0;for(;d>=i;--d){let e=t.charCodeAt(d);if(s(e)){if(!u){c=d+1;break}}else l===-1&&(u=!1,l=d+1),e===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===c+1?(l!==-1&&(n.base=n.name=c===0&&r?t.slice(1,l):t.slice(c,l)),n.base=n.base||`/`):(c===0&&r?(n.name=t.slice(1,a),n.base=t.slice(1,l)):(n.name=t.slice(c,a),n.base=t.slice(c,l)),n.ext=t.slice(a,l)),c>0?n.dir=o(t.slice(0,c-1),s):r&&(n.dir=`/`),n}function S(e){let t=globalThis,n=t.process?.cwd??t.Deno?.cwd;if(typeof n!=`function`)throw TypeError(e);return n()}function C(...t){let n=``,r=!1;for(let i=t.length-1;i>=-1&&!r;i--){let a;a=i>=0?t[i]:S(`Resolved a relative path without a current working directory (CWD)`),e(a),a.length!==0&&(n=`${a}/${n}`,r=s(a.charCodeAt(0)))}return n=v(n,!r,`/`,s),r?n.length>0?`/${n}`:`/`:n.length>0?n:`.`}function w(t,n){if(e(t),e(n),t===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&&s(e.charCodeAt(n));++n);let i=r-n,a=1,o=t.length;for(;a<o&&s(t.charCodeAt(a));++a);let c=o-a,l=i<c?i:c,u=-1,d=0;for(;d<=l;++d){if(d===l){if(c>l){if(s(t.charCodeAt(a+d)))return t.slice(a+d+1);if(d===0)return t.slice(a+d)}else i>l&&(s(e.charCodeAt(n+d))?u=d:d===0&&(u=0));break}let r=e.charCodeAt(n+d);if(r!==t.charCodeAt(a+d))break;s(r)&&(u=d)}let f=``;for(d=n+u+1;d<=r;++d)(d===r||s(e.charCodeAt(d)))&&(f.length===0?f+=`..`:f+=`/..`);return f.length>0?f+t.slice(a+u):(a+=u,s(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(!g(e))throw TypeError(`Path must be absolute: received "${e}"`);let t=new URL(`file:///`);return t.pathname=D(e.replace(/^\/+/,`/`).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])&&s.length===0);d++)if(l)l=!1,a+=(c?N:M).includes(t[d])?`\\${t[d]}`:t[d];else if(t[d]===e.escapePrefix)l=!0;else{if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}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+=`]`;else if(c)a+=t[d];else if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t)}else if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`)a+=`|`;else if(t[d]===`+`&&n&&t[d+1]===`(`)d++,s.push(`+`),a+=`(?:`;else if(t[d]===`@`&&n&&t[d+1]===`(`)d++,s.push(`@`),a+=`(?:`;else if(t[d]===`?`)n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;else if(t[d]===`!`&&n&&t[d+1]===`(`)d++,s.push(`!`),a+=`(?!`;else if(t[d]===`{`)s.push(`BRACE`),a+=`(?:`;else if(t[d]===`}`&&s[s.length-1]===`BRACE`)s.pop(),a+=`)`;else if(t[d]===`,`&&s[s.length-1]===`BRACE`)a+=`|`;else 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}}else 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 ee(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 L(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return y(e);let r=l.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return y(e.replace(i,`\0`)).replace(/\0/g,`..`)}function R(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return b(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`/${e}`:r=e)}return r?L(r,{globstar:n}):`.`}return wr.DELIMITER=`:`,wr.SEPARATOR=`/`,wr.SEPARATOR_PATTERN=l,wr.basename=c,wr.common=j,wr.dirname=d,wr.extname=f,wr.format=h,wr.fromFileUrl=a,wr.globToRegExp=I,wr.isAbsolute=g,wr.isGlob=ee,wr.join=b,wr.joinGlobs=R,wr.normalize=y,wr.normalizeGlob=L,wr.parse=x,wr.relative=T,wr.resolve=C,wr.toFileUrl=O,wr.toNamespacedPath=k,wr}var Dr={},Or;function kr(){if(Or)return Dr;Or=1;function e(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function t(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 n(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 r(t,n){if(e(t),t.length===0)return t;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function i(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 a(e){return e===47}function o(e){return e===47||e===92}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function c(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 l(e){e=c(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 u(e,a=``){e instanceof URL&&(e=l(e)),r(e,a);let c=0;e.length>=2&&s(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(c=2);let u=i(n(e,o,c),o);return a?t(u,a):u}let d=/[\\/]+/;function f(t){if(e(t),t.length===0)return`.`}function p(e){e instanceof URL&&(e=l(e)),f(e);let t=e.length,n=-1,r=-1,c=!0,u=0,d=e.charCodeAt(0);if(t>1){if(o(d)){if(n=u=1,o(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!o(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&o(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!o(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=u=r+1)}}}}else s(d)&&e.charCodeAt(1)===58&&(n=u=2,t>2&&o(e.charCodeAt(2))&&(n=u=3))}else if(o(d))return e;for(let n=t-1;n>=u;--n)if(o(e.charCodeAt(n))){if(!c){r=n;break}}else c=!1;if(r===-1){if(n===-1)return`.`;r=n}return i(e.slice(0,r),a)}function m(t){t instanceof URL&&(t=l(t)),e(t);let n=0,r=-1,i=0,a=-1,c=!0,u=0;t.length>=2&&t.charCodeAt(1)===58&&s(t.charCodeAt(0))&&(n=i=2);for(let e=t.length-1;e>=n;--e){let n=t.charCodeAt(e);if(o(n)){if(!c){i=e+1;break}}else a===-1&&(c=!1,a=e+1),n===46?r===-1?r=e:u!==1&&(u=1):r!==-1&&(u=-1)}return r===-1||a===-1||u===0||u===1&&r===a-1&&r===i+1?``:t.slice(r,a)}function h(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 g(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function _(e){return g(e),h(`\\`,e)}function v(t){e(t);let n=t.length;if(n===0)return!1;let r=t.charCodeAt(0);return!!(o(r)||s(r)&&n>2&&t.charCodeAt(1)===58&&o(t.charCodeAt(2)))}function y(t){if(e(t),t.length===0)return`.`}function b(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}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 x(e){e instanceof URL&&(e=l(e)),y(e);let t=e.length,n=0,r,i=!1,a=e.charCodeAt(0);if(t>1){if(o(a)){if(i=!0,o(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!o(e.charCodeAt(i));++i);if(i<t&&i!==a){let s=e.slice(a,i);for(a=i;i<t&&o(e.charCodeAt(i));++i);if(i<t&&i!==a){for(a=i;i<t&&!o(e.charCodeAt(i));++i);if(i===t)return`\\\\${s}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${s}\\${e.slice(a,i)}`,n=i)}}}else n=1}else s(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&o(e.charCodeAt(2))&&(i=!0,n=3))}else if(o(a))return`\\`;let c;return c=n<t?b(e.slice(n),!i,`\\`,o):``,c.length===0&&!i&&(c=`.`),c.length>0&&o(e.charCodeAt(t-1))&&(c+=`\\`),r===void 0?i?c.length>0?`\\${c}`:`\\`:c:i?c.length>0?`${r}\\${c}`:`${r}\\`:r+c}function S(t,...n){if(t instanceof URL&&(t=l(t)),n=t?[t,...n]:n,n.forEach(t=>e(t)),n=n.filter(e=>e.length>0),n.length===0)return`.`;let r=!0,i=0,a=n[0];if(o(a.charCodeAt(0))){++i;let e=a.length;e>1&&o(a.charCodeAt(1))&&(++i,e>2&&(o(a.charCodeAt(2))?++i:r=!1))}let s=n.join(`\\`);if(r){for(;i<s.length&&o(s.charCodeAt(i));++i);i>=2&&(s=`\\${s.slice(i)}`)}return x(s)}function C(t){e(t);let n={root:``,dir:``,base:``,ext:``,name:``},r=t.length;if(r===0)return n;let i=0,a=t.charCodeAt(0);if(r>1){if(o(a)){if(i=1,o(t.charCodeAt(1))){let e=2,n=e;for(;e<r&&!o(t.charCodeAt(e));++e);if(e<r&&e!==n){for(n=e;e<r&&o(t.charCodeAt(e));++e);if(e<r&&e!==n){for(n=e;e<r&&!o(t.charCodeAt(e));++e);e===r?i=e:e!==n&&(i=e+1)}}}}else if(s(a)&&t.charCodeAt(1)===58){if(i=2,r>2){if(o(t.charCodeAt(2))){if(r===3)return n.root=n.dir=t,n.base=`\\`,n;i=3}}else return n.root=n.dir=t,n}}else if(o(a))return n.root=n.dir=t,n.base=`\\`,n;i>0&&(n.root=t.slice(0,i));let c=-1,l=i,u=-1,d=!0,f=t.length-1,p=0;for(;f>=i;--f)if(a=t.charCodeAt(f),o(a)){if(!d){l=f+1;break}}else u===-1&&(d=!1,u=f+1),a===46?c===-1?c=f:p!==1&&(p=1):c!==-1&&(p=-1);return c===-1||u===-1||p===0||p===1&&c===u-1&&c===l+1?u!==-1&&(n.base=n.name=t.slice(l,u)):(n.name=t.slice(l,c),n.base=t.slice(l,u),n.ext=t.slice(c,u)),n.base=n.base||`\\`,n.dir=l>0&&l!==i?t.slice(0,l-1):n.root,n}function w(e){let t=globalThis,n=t.process?.cwd??t.Deno?.cwd;if(typeof n!=`function`)throw TypeError(e);return n()}function T(...t){let n=``,r=``,i=!1;for(let a=t.length-1;a>=-1;a--){let c;a>=0?c=t[a]:n?(c=w(`Resolved a relative path without a current working directory (CWD)`),(c===void 0||c.slice(0,3).toLowerCase()!==`${n.toLowerCase()}\\`)&&(c=`${n}\\`)):c=w(`Resolved a drive-letter-less path without a current working directory (CWD)`),e(c);let l=c.length;if(l===0)continue;let u=0,d=``,f=!1,p=c.charCodeAt(0);if(l>1){if(o(p)){if(f=!0,o(c.charCodeAt(1))){let e=2,t=e;for(;e<l&&!o(c.charCodeAt(e));++e);if(e<l&&e!==t){let n=c.slice(t,e);for(t=e;e<l&&o(c.charCodeAt(e));++e);if(e<l&&e!==t){for(t=e;e<l&&!o(c.charCodeAt(e));++e);e===l?(d=`\\\\${n}\\${c.slice(t)}`,u=e):e!==t&&(d=`\\\\${n}\\${c.slice(t,e)}`,u=e)}}}else u=1}else s(p)&&c.charCodeAt(1)===58&&(d=c.slice(0,2),u=2,l>2&&o(c.charCodeAt(2))&&(f=!0,u=3))}else o(p)&&(u=1,f=!0);if(!(d.length>0&&n.length>0&&d.toLowerCase()!==n.toLowerCase())&&(n.length===0&&d.length>0&&(n=d),i||=(r=`${c.slice(u)}\\${r}`,f),i&&n.length>0))break}return r=b(r,!i,`\\`,o),n+(i?`\\`:``)+r||`.`}function E(t,n){if(e(t),e(n),t===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(!v(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(s(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])&&s.length===0);d++)if(l)l=!1,a+=(c?F:P).includes(t[d])?`\\${t[d]}`:t[d];else if(t[d]===e.escapePrefix)l=!0;else{if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}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+=`]`;else if(c)a+=t[d];else if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t)}else if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`)a+=`|`;else if(t[d]===`+`&&n&&t[d+1]===`(`)d++,s.push(`+`),a+=`(?:`;else if(t[d]===`@`&&n&&t[d+1]===`(`)d++,s.push(`@`),a+=`(?:`;else if(t[d]===`?`)n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;else if(t[d]===`!`&&n&&t[d+1]===`(`)d++,s.push(`!`),a+=`(?!`;else if(t[d]===`{`)s.push(`BRACE`),a+=`(?:`;else if(t[d]===`}`&&s[s.length-1]===`BRACE`)s.pop(),a+=`)`;else if(t[d]===`,`&&s[s.length-1]===`BRACE`)a+=`|`;else 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}}else 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 ee={sep:`(?:\\\\|/)+`,sepMaybe:`(?:\\\\|/)*`,seps:[`\\`,`/`],globstar:`(?:[^\\\\/]*(?:\\\\|/|$)+)*`,wildcard:`[^\\\\/]*`,escapePrefix:"`"};function L(e,t={}){return I(ee,e,t)}function R(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 te(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return x(e);let r=d.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return x(e.replace(i,`\0`)).replace(/\0/g,`..`)}function z(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return S(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`\\${e}`:r=e)}return r?te(r,{globstar:n}):`.`}return Dr.DELIMITER=`;`,Dr.SEPARATOR=`\\`,Dr.SEPARATOR_PATTERN=d,Dr.basename=u,Dr.common=N,Dr.dirname=p,Dr.extname=m,Dr.format=_,Dr.fromFileUrl=l,Dr.globToRegExp=L,Dr.isAbsolute=v,Dr.isGlob=R,Dr.join=S,Dr.joinGlobs=z,Dr.normalize=x,Dr.normalizeGlob=te,Dr.parse=C,Dr.relative=D,Dr.resolve=T,Dr.toFileUrl=A,Dr.toNamespacedPath=j,Dr}var Ar={},jr={},Mr={},Nr;function Pr(){return Nr||(Nr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};let t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let 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;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}})(Mr)),Mr}var Fr;function Ir(){return Fr||(Fr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANSION_MAX_STEPS=e.EXPANSION_MAX_REWRITES=e.EXPANSION_MAX_DEPTH=e.EXPANSION_MAX_LENGTH=e.EXPANSION_MAX=void 0,e.expand=E;let t=Pr(),n=`\0SLASH`+Math.random().toFixed(16)+`\0`,r=`\0OPEN`+Math.random().toFixed(16)+`\0`,i=`\0CLOSE`+Math.random().toFixed(16)+`\0`,a=`\0COMMA`+Math.random().toFixed(16)+`\0`,o=`\0PERIOD`+Math.random().toFixed(16)+`\0`,s=new RegExp(n,`g`),c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=/\\\\/g,p=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\\./g;e.EXPANSION_MAX=1e5,e.EXPANSION_MAX_LENGTH=4e6,e.EXPANSION_MAX_DEPTH=1e3,e.EXPANSION_MAX_REWRITES=1e3,e.EXPANSION_MAX_STEPS=2e7;function _(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function v(e){return e.replace(f,n).replace(p,r).replace(m,i).replace(h,a).replace(g,o)}function y(e){return e.replace(s,`\\`).replace(c,`{`).replace(l,`}`).replace(u,`,`).replace(d,`.`)}function b(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function x(e,n,r){if(r.remaining<0)return;let i=(0,t.range)(`{`,`}`,n),a=i!==void 0&&n.indexOf(`{`)<i[0];if(r.remaining-=i&&!a?i[1]+1:e.length,!(!i||r.remaining<0))return{end:i[1],pre:e.slice(0,i[0]),body:e.slice(i[0]+1,i[1]),post:e.slice(i[1]+1),unmatched:a}}function S(e,t){t.remaining-=e.length;let n=[];for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);r===123?n.push(t):r===125&&n.length&&n.pop()}let r=``,i=0;for(let t=0;t<n.length;t++){let a=n[t];r+=e.slice(i,a)+`\0`,i=a+1}return r+e.slice(i)}function C(e,t){if(t.remaining-=e.length,t.remaining<0)return!1;let n=!1;for(let t=e.length-1;t>=0;t--){let r=e.charCodeAt(t);if(r===125)n=!0;else if(r===10||r===13||r===8232||r===8233)n=!1;else if(r===44&&n&&e.charCodeAt(t+1)!==44)return!0}return!1}function w(e,t){let n=[],r=``;for(;;){let i=x(e,e,t);if(t.remaining<0)return;if(!i){let t=e.split(`,`);return t[0]=r+t[0],b(n,t),n}let{pre:a,body:o,post:s}=i,c=a.split(`,`);if(c[0]=r+c[0],c[c.length-1]+=`{`+o+`}`,!s.length)return b(n,c),n;r=c.pop(),b(n,c),e=s}}function T(e,t){return e===void 0||isNaN(e)?t:e}function E(t,n={}){if(!t)return[];let r=T(n.max,e.EXPANSION_MAX),i=T(n.maxLength,e.EXPANSION_MAX_LENGTH),a=T(n.maxDepth,e.EXPANSION_MAX_DEPTH),o=T(n.maxRewrites,e.EXPANSION_MAX_REWRITES),s=T(n.maxSteps,e.EXPANSION_MAX_STEPS);return t.slice(0,2)===`{}`&&(t=`\\{\\}`+t.slice(2)),N(v(t),r,i,a,0,o,{remaining:s},!0).map(y)}function D(e){return`{`+e+`}`}function O(e){return/^-?0\d/.test(e)}function k(e,t){return e<=t}function A(e,t){return e>=t}function j(e,t,n,r,i,a,o){let s=[],c=0,l;outer:for(let o=0;o<e.length;o++){let u=e[o]+t,d=n;a&&!u&&(l||=n.filter(e=>e),d=l);for(let e=0;e<d.length;e++){if(s.length>=r)break outer;let t=u+d[e];if(c+t.length>i)break outer;s.push(t),c+=t.length}}return o.remaining-=s.length,s}function M(e,t,n,r,i){let a=e.split(/\.\./),o=[];
31
+ /* c8 ignore start */
32
+ if(a[0]===void 0||a[1]===void 0)return o;
33
+ /* c8 ignore stop */
34
+ let s=_(a[0]),c=_(a[1]),l=Math.max(a[0].length,a[1].length),u=a.length===3&&a[2]!==void 0?Math.max(Math.abs(_(a[2])),1):1,d=k;c<s&&(u*=-1,d=A);let f=a.some(O),p=f?l:1,m=0;for(let e=s;d(e,c)&&o.length<n;e+=u){if(i.remaining-=p,i.remaining<0)return;let n;if(t)n=String.fromCharCode(e),n===`\\`&&(n=``);else if(n=String(e),f){let t=l-n.length;if(t>0){let r=Array(t+1).join(`0`);n=e<0?`-`+r+n.slice(1):r+n}}if(m+n.length>r)break;o.push(n),m+=n.length}return o}function N(e,t,n,r,a,o,s,c){if(s.remaining-=16,a>r)return[e];let l=[``],u=0,d=!1,f=!0,p=e;for(;;){let m=x(e,p,s);if(!m)return j(l,e,[``],t,n,d,s);m.unmatched&&(p=S(p,s));let h=m.pre,g=()=>j(l,h+`{`+m.body+`}`+m.post,[``],t,n,d,s);if(/\$$/.test(h)){if(l=j(l,h+`{`+m.body+`}`,[``],t,n,d&&!m.post.length,s),f=!1,!m.post.length)break;e=m.post,p=p.slice(m.end+1);continue}let _=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),y=_||v,b=m.body.indexOf(`,`)>=0;if(!y&&!b){if(u<o&&C(m.post,s)){u++,e=m.pre+`{`+m.body+i+m.post,p=p.slice(0,m.end)+i+p.slice(m.end+1),c=!0;continue}return g()}f&&=(d=c&&!y,!1);let T;if(y){if(T=M(m.body,v,t,n,s),!T)return g()}else{let i=w(m.body,s);if(!i)return g();if(i.length===1&&i[0]!==void 0){if(i=N(i[0],t,n,r,a+1,o,s,!1).map(D),s.remaining<0)return g();
35
+ /* c8 ignore start */
36
+ if(i.length===1){let r=j(l,h+i[0],[``],t,n,d&&!m.post.length,s);if(s.remaining<0)return g();if(l=r,!m.post.length)break;e=m.post,p=p.slice(m.end+1);continue}}let c=d&&!m.post.length&&!h;for(let e=0;c&&e<l.length;e++)l[e]&&(c=!1);T=[];let u=0;outer:for(let e=0;e<i.length;e++){let l=N(i[e],t,n,r,a+1,o,s,!1);if(s.remaining<0)return g();for(let e=0;e<l.length;e++){let r=l[e];if(!c||r){if(T.length>=t||u+r.length>n)break outer;T.push(r),u+=r.length}}}}let E=j(l,h,T,t,n,d&&!m.post.length,s);if(s.remaining<0)return g();if(l=E,!m.post.length)break;e=m.post,p=p.slice(m.end+1)}return l}})(jr)),jr}var Lr={},Rr={},zr;function Br(){if(zr)return Rr;zr=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.numericRange=void 0;let e=(e,t)=>e===t?{t:`lit`,ch:String(e)}:{t:`class`,re:RegExp(`^[${e}-${t}]$`)},t=(t,n)=>n.map(n=>[e(t,t),...n]),n=(r,i)=>{if(!r)return[[]];let a=+r[0],o=+i[0],s=r.slice(1),c=i.slice(1);if(a===o)return t(a,n(s,c));let l=`0`.repeat(s.length),u=`9`.repeat(s.length),d=[];s!==l&&d.push(...t(a++,n(s,u)));let f=c===u?[]:t(o--,n(l,c));return a<=o&&d.push([e(a,o),...Array.from(s,()=>e(0,9))]),d.push(...f),d},r=(e,t,r)=>{if(r)return n(String(e).padStart(r,`0`),String(t).padStart(r,`0`));let i=[];for(let r=String(e).length;r<=String(t).length;r++){let a=Math.max(e,r===1?0:10**(r-1)),o=Math.min(t,10**r-1);i.push(...n(String(a),String(o)))}return i};return Rr.numericRange=(e,t)=>{let n=Number(e),i=Number(t);if(!Number.isSafeInteger(n)||!Number.isSafeInteger(i))return;n>i&&([n,i]=[i,n]);let a=/^-?0\d/.test(e)||/^-?0\d/.test(t)?Math.max(e.length,t.length):0,o=[];if(n<0){let e=r(Math.max(-i,1),-n,a&&a-1);o.push(...e.map(e=>[{t:`lit`,ch:`-`},...e]))}return i>=0&&o.push(...r(Math.max(n,0),i,a)),o},Rr}var Vr={},Hr;function Ur(){if(Hr)return Vr;Hr=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.parseClass=void 0;let e={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`],"[:alpha:]":[`\\p{L}\\p{Nl}`],"[:ascii:]":[`\\x00-\\x7f`],"[:blank:]":[`\\p{Zs}\\t`],"[:cntrl:]":[`\\p{Cc}`],"[:digit:]":[`\\p{Nd}`],"[:graph:]":[`\\p{Z}\\p{C}`,!0],"[:lower:]":[`\\p{Ll}`],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}\\p{S}`],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`],"[:upper:]":[`\\p{Lu}`],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`],"[:xdigit:]":[`A-Fa-f0-9`]},t=e=>e.replace(/[[\]\\-]/g,`\\$&`),n=/$./;return Vr.parseClass=(r,i,a=!1,o)=>{let s=e=>{let t=o?e.normalize(o):e;return[...t].length===1?t:e},c=i;
37
+ /* c8 ignore start */
38
+ if(r.charAt(c)!==`[`)throw Error(`not in a brace expression`);
39
+ /* c8 ignore stop */
40
+ let l=[],u=[],d=c+1,f=!1,p=!1,m=!1,h=c,g=``;WHILE:for(;d<r.length;){let i=String.fromCodePoint(r.codePointAt(d));if((i===`!`||i===`^`)&&d===c+1){m=!0,d++;continue}if(i===`]`&&f&&!p){h=d+1;break}if(f=!0,i===`\\`&&!p){p=!0,d++;continue}if(i===`[`&&!p){for(let[t,[i,a]]of Object.entries(e))if(r.startsWith(t,d)){if(g)return[n,r.length-c];d+=t.length,a?u.push(i):l.push(i);continue WHILE}}p=!1;let a=s(i);g?(a.codePointAt(0)>g.codePointAt(0)?l.push(t(g)+`-`+t(a)):a===g&&l.push(t(a)),g=``,d+=i.length):r.startsWith(`-]`,d+i.length)?(l.push(t(a+`-`)),d+=i.length+1):r.startsWith(`-`,d+i.length)?(g=a,d+=i.length+1):(l.push(t(a)),d+=i.length)}if(h<d)return[n,0];if(!l.length&&!u.length)return[n,r.length-c];let _=`[`+(m?`^`:``)+l.join(``)+`]`,v=`[`+(m?``:`^`)+u.join(``)+`]`,y=`^`+(l.length&&u.length?`(`+_+`|`+v+`)`:l.length?_:v);return[new RegExp(y,a?`iu`:`u`),h-c]},Vr}var Wr;function Gr(){if(Wr)return Lr;Wr=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.Matcher=void 0;let e=Br(),t=Ur(),n={t:`match`,id:0},r=e=>({t:`lit`,ch:e}),i=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,`\\$&`),a=e=>RegExp(`^${i(e)}$`,`iu`),o=/* @__PURE__ */ new Map,s=e=>{let t=o.get(e);return t||(t=a(e),o.size>=1e3&&o.clear(),o.set(e,t)),t},c=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let n=t.charCodeAt(0);if(n>=128)return e.re.test(t);let r=e.ascii??=/* @__PURE__ */ new Uint8Array(128);return r[n]||=e.re.test(t)?1:2,r[n]===1},l=(n,i,a,o,s)=>{let c=[];for(let l=0;l<n.length;){let u=String.fromCodePoint(n.codePointAt(l));if(s){let t=u===`\\`&&n.startsWith(s,l+1)?1:0;if(t||u===s){let r=l+t+s.length,i=n.indexOf(s,r),a=/^(-?\d+)\.\.(-?\d+)$/.exec(n.slice(r,i)),o=i!==-1&&a&&(0,e.numericRange)(a[1],a[2]);if(o){c.push({t:`ext`,type:`@`,alts:o}),l=i+s.length;continue}}}if(u===`\\`){let e=n.codePointAt(l+1),t=e===void 0?u:String.fromCodePoint(e);c.push(r(t)),l+=1+t.length}else{if(u===`[`){let[e,r]=(0,t.parseClass)(n,l,i,o);if(r){c.push({t:`class`,re:e}),l+=r;continue}}!a&&`!?+*@`.includes(u)&&n[l+1]===`(`?(c.push({t:`open`,type:u}),l+=2):(c.push(!a&&u===`|`?{t:`bar`}:!a&&u===`)`?{t:`close`}:u===`*`?{t:`star`}:u===`?`?{t:`any`}:r(u)),l+=u.length)}}return c},u=e=>{let t=/* @__PURE__ */ new Map,n=[];return e.forEach((e,r)=>{e.t===`open`?n.push(r):e.t===`close`&&n.length&&t.set(n.pop(),r)}),t},d=(e,t,n,i,a)=>{let o=[],s=[o];for(let c=n;c<i;c++){let n=e[c],i=t.get(c);if(n.t===`open`&&i!==void 0){let r=d(e,t,c+1,i,!1);o.push({t:`ext`,type:n.type,alts:r}),c=i}else n.t===`bar`&&!a?s.push(o=[]):n.t===`open`?o.push(r(n.type),r(`(`)):n.t===`bar`?o.push(r(`|`)):n.t===`close`?o.push(r(`)`)):o.push(n)}return s},f=(e,t)=>{let n=[],i=``,a=()=>{for(let e of i.normalize(t))n.push(r(e));i=``};for(let r of e)r.t===`lit`?i+=r.ch:(a(),n.push(r.t===`ext`?{...r,alts:r.alts.map(e=>f(e,t))}:r));return a(),n},p=(e,t)=>{let r=1,i=e=>({t:`split`,id:r++,out:e}),a=(e,t)=>e.reduceRight((e,t)=>o(t,e),t),o=(e,o)=>{switch(e.t){case`lit`:let n=t?s(e.ch):void 0;return{t:`lit`,id:r++,ch:e.ch,re:n,next:o};case`any`:case`star`:return{t:e.t,id:r++,next:o};case`class`:return{t:`class`,id:r++,re:e.re,next:o}}let c=t=>e.alts.map(e=>a(e,t));switch(e.type){case`@`:return i(c(o));case`?`:return i([o,...c(o)]);case`!`:return{t:`neg`,id:r++,sub:i(c(n)),next:o}}let l=i([]),u=i(c(l));return l.out.push(o,u),e.type===`*`?l:u};return[a(e,n),r]},m=e=>{let t=[],n=/* @__PURE__ */ new Set,r=e=>e.t===`match`?`match`:String(e.id),i=(e,a)=>{if(e.t===`match`||n.has(e))return;n.add(e);let o=n=>t.push(`${a}${e.id}: ${n}`);switch(e.t){case`split`:o(`split -> ${e.out.map(r).join(`, `)}`);for(let t of e.out)i(t,a);return;case`neg`:return o(`!(${r(e.sub)}) -> ${r(e.next)}`),i(e.sub,a+` `),i(e.next,a);case`lit`:o(`${JSON.stringify(e.ch)} -> ${r(e.next)}`);break;case`class`:o(`${e.re} -> ${r(e.next)}`);break;default:o(`${e.t===`any`?`?`:`*`} -> ${r(e.next)}`)}i(e.next,a)};return i(e,``),[`start -> ${r(e)}`,...t].join(`
41
+ `)};class h{gen;threads=[];match=!1;runs=[];ids=[];constructor(e){this.gen=e}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}}let g=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((e,n)=>e!==t.ids[n])?!1:e.runs.every(e=>t.runs.some(t=>t.neg===e.neg&&g(t.state,e.state))),_=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0});class v{dots;dotStart;#e;constructor(e,t,n){this.dots=e,this.dotStart=t,this.#e=n}state(){return new h(++this.#e.gen)}done(e){return e.ids=e.threads.map(e=>e.id).sort((e,t)=>e-t),e.match&&e.ids.unshift(n.id),e}#t(e,t){let{seen:n}=this.#e;return n[t.id]!==e.gen&&(n[t.id]=e.gen,!0)}#n(e,t){let{has:n}=this.#e;return n[t.id]!==e.gen&&(n[t.id]=e.gen,e.threads.push(t),!0)}restricted(e,t){return t&&(this.dots||this.dotStart&&e===0)}add(e,t,n,r){switch(t.t){case`split`:if(!this.#t(e,t))return;for(let i of t.out)this.add(e,i,n,r);return;case`neg`:if(!this.#t(e,t))return;let i=this.state();return this.add(i,t.sub,n,!1),this.done(i),this.addRun(e,{t:`run`,neg:t,state:i},n,r);case`star`:if(this.restricted(n,r))return;this.#n(e,t)&&this.add(e,t.next,n,r);return;case`match`:e.match=!0;return;default:this.#n(e,t)}}addRun(e,t,n,r){for(let n of e.runs)if(n.neg===t.neg&&g(n.state,t.state))return;e.runs.push(t),t.state.match||this.add(e,t.neg.next,n,r)}step(e,t,n,r){let i=this.state();for(let a of e.threads)switch(a.t){case`lit`:c(a,t)&&this.add(i,a.next,n+1,r);break;case`any`:this.restricted(n,r)||this.add(i,a.next,n+1,r);break;case`class`:!this.restricted(n,r)&&a.re.test(t)&&this.add(i,a.next,n+1,r);break;case`star`:this.restricted(n,r)||this.add(i,a,n+1,r)}if(!this.restricted(n,r))for(let a of e.runs){if(a.state.dead){this.addRun(i,a,n+1,r);continue}let e=this.step(a.state,t,n,!1);this.addRun(i,{t:`run`,neg:a.neg,state:e},n+1,r)}return this.done(i)}}let y=e=>{let t=e.ids.join();return e.runs.length?`${t}|${e.runs.map(e=>`${e.neg.id}(${y(e.state)})`).sort().join(`|`)}`:t};class b{#e;#t=/* @__PURE__ */ new Map;#n=0;#r;#i;#a;#o;constructor(e,t){this.#e=e,this.#a=new v(!1,!1,t),this.#o=new v(!1,!0,t)}#s(e){return{state:e,match:e.match,dead:e.dead,next:/* @__PURE__ */ new Map}}#c(e){let t=y(e),n=this.#t.get(t);if(n)return n;this.#n>262144&&this.#l();let r=this.#s(e);return this.#t.set(t,r),this.#n+=t.length+1,r}#l(){this.#t.clear(),this.#n=0,this.#r=void 0,this.#i=void 0}start(e){if(e){if(this.#i)return this.#i;let e=this.#o.state();return this.#o.add(e,this.#e,0,!0),this.#i=this.#s(this.#o.done(e))}if(this.#r)return this.#r;let t=this.#a.state();return this.#a.add(t,this.#e,0,!0),this.#r=this.#c(this.#a.done(t))}next(e,t){let n=t.charCodeAt(0),r=n<128?void 0:e.next.get(t);if(r)return r;let i=e===this.#i?this.#c(this.#o.step(e.state,t,0,!0)):this.#c(this.#a.step(e.state,t,1,!0));return n<128?(e.ascii||(e.ascii=Array(128),this.#n+=128),e.ascii[n]=i):e.next.set(t,i),this.#n++,i}}let x=e=>{let t=[];for(let n=e;n.t!==`match`;n=n.next){if(n.t===`split`||n.t===`neg`)return;t.push(n)}return t},S=(e,t,n,r)=>{let i=0,a=n,o=-1,s=0;for(;a<r;){let n=e[i];if(n?.t===`star`){o=i++,s=a;continue}let r=t[a];if(n&&(n.t===`any`||n.t===`lit`&&c(n,r)||n.t===`class`&&n.re.test(r)))i++,a++;else{if(o===-1)return!1;i=o+1,a=++s}}for(;e[i]?.t===`star`;)i++;return i===e.length},C=e=>{let t=0,n=0;for(let r of e){let[e,i]=w(r);t+=e,n+=i}return[t,n]},w=e=>{if(e.t===`star`)return[0,1/0];if(e.t!==`ext`)return[1,1];if(e.type===`!`)return[0,1/0];let t=e.alts.map(C),n=Math.min(...t.map(e=>e[0])),r=Math.max(...t.map(e=>e[1])),i=r===0?0:1/0;return e.type===`@`?[n,r]:e.type===`?`?[0,r]:e.type===`*`?[0,i]:[n,i]},T=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!c(e[r],t[n+r]))return!1;return!0},E=/[/\ud800-\udfff]/,D=/[\ud800-\udfff]/,O=e=>D.test(e)?[...e]:e,k=e=>{if(e.includes(`/`))throw Error(`can only match a single path portion, got: `+e)};class A{pattern;options;#e;#t;#n;#r;#i;#a=!1;#o;#s;#c=!1;#l=0;#u=1/0;#d=[];#f=[];#p;#m;#h=!1;#g;#_;constructor(e,t={}){if(e.includes(`/`))throw Error(`can only match a single path portion, got pattern: `+e);this.pattern=e,this.options=t;let{nocase:n=!1,noext:r=!1,normalize:i}=t;this.#_=i===!0?`NFC`:i||void 0;let a=/^[?*+@]\(\)$/.test(e),o=l(e,n,r||a,this.#_,t.rangeMark),[c]=d(o,u(o),0,o.length,!0);this.#_&&(c=f(c,this.#_));let[m,h]=p(c,n);if(this.#e=m,this.#t=h,c.every(e=>e.t===`lit`))this.#i=c.map(e=>e.ch).join(``),this.#a=n;else{let e=e=>e.t===`lit`?n?{ch:e.ch,re:s(e.ch)}:{ch:e.ch}:void 0;for(let t of c){let n=e(t);if(!n)break;this.#d.push(n)}for(let t=c.length-1;t>=0;t--){let n=e(c[t]);if(!n)break;this.#f.unshift(n)}this.#h=!!(this.#d.length||this.#f.length),n||(this.#p=this.#d.map(e=>e.ch).join(``),this.#m=this.#f.map(e=>e.ch).join(``)),this.#s=x(this.#e)?.slice(this.#d.length,-this.#f.length||void 0),this.#c=!!this.#s?.every(e=>e.t===`star`||e.t===`any`);let[t,r]=C(c);this.#l=t,this.#u=r}}test(e){return this.#_?(k(e),this.#v(e.normalize(this.#_))):E.test(e)?(k(e),this.#v(e,[...e])):this.#v(e,e)}testUnchecked(e){return this.#v(this.#_?e.normalize(this.#_):e)}#v(e,t){if(this.#i!==void 0)return this.#a?(this.#o??=a(this.#i)).test(e):e===this.#i;let n=this.#l,r=this.#u;if(t===void 0){let i=e.length,a=i+1>>1;if(i<n||a>r)return!1;(a<n||i>r)&&(t=O(e))}if(t!==void 0&&(t.length<n||t.length>r))return!1;let i=this.#d.length;if(this.#h){if(this.#p!==void 0&&this.#m!==void 0){if(!e.startsWith(this.#p)||!e.endsWith(this.#m))return!1}else{t??=O(e);let n=t.length-this.#f.length;if(!T(this.#d,t,0)||!T(this.#f,t,n))return!1}}let o=!this.options.dot&&e.startsWith(`.`);if(this.#s){if(e===`.`||e===`..`||o&&!i)return!1;if(this.#c)return!0;t??=O(e);let n=t.length-this.#f.length;return S(this.#s,t,i,n)}if(t??=O(e),e===`.`||e===`..`){this.#n??=_(this.#t);let e=this.#r??=new v(!0,!1,this.#n),n=e.state();e.add(n,this.#e,0,!0);let r=e.done(n);for(let n=0;n<t.length;n++)r=e.step(r,t[n],n,!0);return r.match}this.#n??=_(this.#t);let s=this.#g??=new b(this.#e,this.#n),c=s.start(o),l=t===e;for(let n=0;n<t.length;n++){if(c.dead)return!1;let r=l?e.charCodeAt(n):t[n].charCodeAt(0);c=c.ascii?.[r]??s.next(c,t[n])}return c.match}toString(){return m(this.#e)}}return Lr.Matcher=A,Lr}var Kr={},qr;function Jr(){return qr||(qr=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.assertValidPattern=void 0,Kr.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)}),Kr}var Yr={},Xr;function Zr(){return Xr||(Xr=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.escape=void 0,Yr.escape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>{let r=n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),i=r.charAt(0);return i===`#`?(t?`[#]`:`\\#`)+r.slice(1):i===`!`?(t?`@(!)`:`\\!`)+r.slice(1):r}),Yr}var Qr={},$r;function ei(){return $r||($r=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0,e.unescape=(t,{windowsPathsNoEscape:n=!1,magicalBraces:r=!0}={})=>n&&t.startsWith(`@(!)`)?`!`+(0,e.unescape)(t.slice(4),{windowsPathsNoEscape:n,magicalBraces:r}):r?n?t.replace(/\[([^/\\])\]/g,`$1`):t.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):n?t.replace(/\[([^/\\{}])\]/g,`$1`):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`)})(Qr)),Qr}var ti;function ni(){return ti||(ti=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.Minimatch=e.match=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;let t=Ir(),n=Gr(),r=Jr(),i=Zr(),a=ei(),o=1e5,s=`allowWindowsEscape`;e.minimatch=(e,t,n)=>((0,r.assertValidPattern)(t),!n?.nocomment&&t.charAt(0)===`#`?!1:v(t,n).match(e));let c=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=0,d=0,f=4096,p=e=>{let t=e.pattern.length;for(let n of e.globSet)if(t+=n.length+1,t>f)break;return t},m=e=>e===void 0?0:e?2:1,h=new Map(Object.keys({nobrace:0,nocomment:0,nonegate:0,noglobstar:0,noext:0,nonull:0,partial:0,dot:0,nocase:0,nocaseMagicOnly:0,magicalBraces:0,matchBase:0,flipNegate:0,preserveMultipleSlashes:0,windowsNoMagicRoot:0}).map((e,t)=>[e,24*3**t])),g=e=>{let t=0,n=!1;for(let r in e){let i=e[r];switch(r){case`windowsPathsNoEscape`:i&&(n=!0);break;case s:i===!1&&(n=!0);break;case`platform`:{let n=i||y;if(n===y)break;if(n===`darwin`)t+=3;else if(n===`win32`)t+=6;else if(n===`linux`)t+=9;else return JSON.stringify(e);break}case`optimizationLevel`:if(i===void 0)break;t+=i>=2?1:i>=1?0:2;break;case`braceExpandMax`:if(i!==void 0&&i!==o)return JSON.stringify(e);break;case`maxGlobstarRecursion`:if(i!==void 0&&i!==200)return JSON.stringify(e);break;case`normalize`:if(i!==void 0)return JSON.stringify(e);break;default:t+=(h.get(r)??0)*m(i)}}return n?t+12:t},_=e=>{let t={};for(let n in e)t[n]=e[n];return t},v=(e,t)=>{let n=t?g(t):0,r=c.get(n)?.get(e);if(r)return r;r=l.get(n)?.get(e)??new re(e,_(t));let i=p(r);if(i>f)return r;(u>=256||d+i>32768)&&(l=c,c=/* @__PURE__ */ new Map,u=0,d=0);let a=c.get(n);return a||c.set(n,a=/* @__PURE__ */ new Map),a.set(e,r),u++,d+=i,r},y=typeof U==`object`&&U?U.env?.__MINIMATCH_TESTING_PLATFORM__||U.platform:`posix`,b={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=y===`win32`?b.win32.sep:b.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR,e.filter=(e,t)=>{let n;return r=>(n??=v(e,t)).match(r)},e.minimatch.filter=e.filter;let x=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,x(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,x(t,n))}static defaults(e){return n.defaults(x(t,e)).Minimatch}},unescape:(e,r={})=>n.unescape(e,x(t,r)),escape:(e,r={})=>n.escape(e,x(t,r)),filter:(e,r={})=>n.filter(e,x(t,r)),defaults:e=>n.defaults(x(t,e)),braceExpand:(e,r={})=>n.braceExpand(e,x(t,r)),match:(e,r,i={})=>n.match(e,r,x(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,n={})=>{if((0,r.assertValidPattern)(e),n.nobrace||!/\{(?:(?!\{).)*\}/.test(e))return[e];let i=e.replace(/\\\\/g,`\\\\\\\\`);return(n.windowsPathsNoEscape||n[s]===!1)&&(i=i.replace(/\[([{}])\]/g,`[\\$1]`)),(0,t.expand)(i,{max:n.braceExpandMax})},e.minimatch.braceExpand=e.braceExpand;let S=/(?<![\\$])\{(-?\d+)\.\.(-?\d+)\}/g;e.match=(e,t,n={})=>{let r=new re(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;let C=/[?*]|[+@!]\(.*?\)|\[|\]/,w=(e,t)=>{let n=t+1;(e.charAt(n)===`!`||e.charAt(n)===`^`)&&n++;let r=!1;for(;n<e.length;n++){let t=e.charAt(n);if(t===`]`&&r)return n;r=!0,t===`\\`&&n++}return-1},T=(e,t)=>{if(!t&&(e===`+()`||e===`@()`))return e;let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`)n+=e.charAt(++r)||i;else if(i===`*`||i===`?`)return;else if(i===`[`){let t=w(e,r);if(t===-1){n+=i;continue}let a=e.slice(r+1,t);if(a.startsWith(`\\`)&&(a=a.slice(1)),[...a].length!==1||`!^`.includes(e.charAt(r+1)))return;n+=a,r=t}else if(!t&&`+@!`.includes(i)&&e.charAt(r+1)===`(`&&e.includes(`)`,r+2))return;else n+=i}return n},E=e=>{let t=0;for(let n=0;n<e.length-1;n++){let r=e.charAt(n);r===`\\`?n++:`+@!?*`.includes(r)&&e.charAt(n+1)===`(`&&(t++,n++)}return t},D=e=>{if(E(e)>256)throw TypeError(`pattern has too many extglobs`)},O=e=>{if(/^[?*+@]\(\)$/.test(e)||e.includes(`[:`))return!1;let t=0;for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r===`\\`){if(++n===e.length)return!1}else if(r===`[`){let t=w(e,n);t!==-1&&(n=t)}else if(`+@!?*`.includes(r)&&e.charAt(n+1)===`(`)t++,n++;else if(r===`)`){if(!t--)return!1}else if(r===`|`&&!t)return!1}return!t},k,A,j=(e,t)=>typeof e==`string`?t===e:t!==``&&e.testUnchecked(t),M=(e,t,n,r,i)=>j(e,t)?n:r!==void 0&&j(e,r)?i:-1,N=e=>e===`.`||e===`..`,P=e=>typeof e==`string`&&/^[a-z]:$/i.test(e),F=e=>typeof e==`string`&&/^unc$/i.test(e),I=t=>{if(t[0]!==``||t[1]!==``)return-1;let n=t[2]===`?`?F(t[3])?4:-1:2,r=t[n],i=t[n+1];return n!==-1&&r!==void 0&&r!==``&&r!==e.GLOBSTAR&&i!==void 0&&i!==``&&i!==e.GLOBSTAR?n:-1},ee=(e,t)=>!N(e)&&(t||!e.startsWith(`.`)),L=(e,t,n,r,i)=>{for(let a=t;a<n;){if(e.charCodeAt(a)===46){if(!r)return!0;let t=e.charCodeAt(a+1)===46?a+2:a+1;if(t>=n||R(e.charCodeAt(t),i))return!0}let t=te(e,a,i);if(t===-1)return!1;for(a=t+1;a<n&&R(e.charCodeAt(a),i);)a++}return!1},R=(e,t)=>t===`/`?e===47:t===`\\`?e===92:e===47||e===92,te=(e,t,n)=>{if(n!==`both`)return e.indexOf(n,t);let r=e.indexOf(`/`,t),i=e.indexOf(`\\`,t);return r===-1?i:i===-1?r:Math.min(r,i)},z=(e,t,n)=>n===`both`?Math.max(e.lastIndexOf(`/`,t),e.lastIndexOf(`\\`,t)):e.lastIndexOf(n,t),ne={};class re{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;#e;#t;#n;#r;#i=[];#a=[];#o=[];#s=/* @__PURE__ */ new Map;#c=!1;#l;#u=/* @__PURE__ */ new WeakMap;constructor(t,n={}){(0,r.assertValidPattern)(t),n||={},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=t,this.platform=n.platform||y,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):n.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.#e=!this.preserveMultipleSlashes,this.#n=(n.optimizationLevel??1)>=2;let i=n.normalize;this.#r=i===!0?`NFC`:i||void 0,this.make();let a=this.set.map(e=>this.#f(e));this.#o=this.set.map((e,t)=>this.#e&&e.length-1>a[t]),this.#i=this.set.map((e,t)=>{let n=this.#o[t]?e.length-1:e.length,r=e.slice(a[t]+1,n).filter(e=>typeof e==`string`&&!!e);return[...new Set(r)]}),this.#t=this.#i.some(e=>e.length),this.#a=this.set.map((t,r)=>{let[i,o,s]=t;if(this.#o[r]&&t.length===2&&i===e.GLOBSTAR&&o!==e.GLOBSTAR)return`tail`;if(this.#o[r]&&n.matchBase&&t.length===1&&i!==e.GLOBSTAR&&i!==``)return`base`;if(this.#e&&a[r]===-1){if(t.length===3&&i===e.GLOBSTAR&&s===e.GLOBSTAR&&o!==e.GLOBSTAR&&o!==``&&this.maxGlobstarRecursion>0)return`mid`;if(t.length===2&&o===e.GLOBSTAR&&i!==e.GLOBSTAR&&i!==``)return`head`}})}#d(e){return this.#r?e.normalize(this.#r):e}#f(e){if(!this.isWindows)return-1;if(P(e[0]))return 0;if(e[0]===``&&e[1]===``&&e[2]===`?`&&P(e[3]))return 3;let t=I(e);return t===-1?-1:t+1}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.#T())];let n=this.globSet.map(e=>this.#E(e));this.globParts=this.preprocess(n),this.#c=!0;let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[2]===`?`&&F(e[3])?6:4,n=e[0]===``&&e[1]===``&&(e[2]===`?`||!C.test(e[2]))&&e.slice(3,t).every(e=>!C.test(e)),r=/^[a-z]:/i.test(e[0]);if(n)return[...e.slice(0,t).map(e=>this.#d(e)),...e.slice(t).map(e=>this.parse(e))];if(r)return[this.#d(e[0]),...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&(P(t[3])||F(this.globParts[e][3]))&&(F(this.globParts[e][3])&&(t[3]=`UNC`),t[2]=`?`)}t.noext||this.mergeRows(),this.#c=!1,this.set.forEach((e,t)=>{for(let n=0;n<e.length;n++)e[n]===ne&&(e[n]=this.parse(this.globParts[t][n]))})}mergeRows(){let e=!0;for(;e;){if(e=!1,this.set.length<2)return;let t=this.#p(),r=Math.max(0,...this.set.map(e=>e.length));for(let i=0;i<r;i++){let r=/* @__PURE__ */ new Map,a=this.set.length+1;this.set.forEach((e,o)=>{if(!(e[i]instanceof n.Matcher||e[i]===ne)||!O(this.globParts[o][i]))return;let{pre:s,suf:c}=t[o],l=s[i]*a+c[i+1],u=r.get(l);u?u.push(o):r.set(l,[o])});let o=/* @__PURE__ */ new Set;for(let e of r.values()){if(e.length<2)continue;let[t,...n]=e,r=`@(${e.map(e=>this.globParts[e][i]).join(`|`)})`;if(!(E(r)>256)){this.globParts[t][i]=r,this.set[t][i]=this.parse(r);for(let e of n)o.add(e)}}if(o.size){if(e=!0,this.set=this.set.filter((e,t)=>!o.has(t)),this.globParts=this.globParts.filter((e,t)=>!o.has(t)),this.set.length<2)return;t=this.#p()}}}}#p(){let e=/* @__PURE__ */ new Map,t=this.globParts.map(t=>t.map(t=>{let n=e.get(t);return n===void 0&&e.set(t,n=e.size),n})),n=e.size,r=Math.max(0,...t.map(e=>e.length)),i=t.map(e=>({pre:[0],suf:Array(e.length+1).fill(0)}));for(let e=0;e<r;e++){let r=/* @__PURE__ */ new Map;t.forEach((t,a)=>{if(e>=t.length)return;let{pre:o}=i[a],s=o[e]*n+t[e],c=r.get(s);c===void 0&&r.set(s,c=r.size+1),o.push(c)})}for(let e=r-1;e>=0;e--){let r=/* @__PURE__ */ new Map;t.forEach((t,a)=>{if(e>=t.length)return;let{suf:o}=i[a],s=o[e+1]*n+t[e],c=r.get(s);c===void 0&&r.set(s,c=r.size+1),o[e]=c})}return i}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>{let t=this.#f(e)+1;return e=e.reduce((e,n)=>{let r=e[e.length-1];return n===`**`&&r===`**`?e:n===`..`&&e.length>t&&r&&r!==`..`&&r!==`.`&&r!==`**`?(e.pop(),e):(e.push(n),e)},[]),e.length===0?[``]:e})}#m(t){let n=!this.isWindows||!t.includes(`\\`)?`/`:t.includes(`/`)?`both`:`\\`,r=this.#e?0:-1,i=``,a=0,o,s=0,c=!!this.options.dot;ROWS:for(let l=0;l<this.set.length;l++){let u=this.set[l],d=u[u.length-1],f=r!==-1&&this.#o[l]&&d!==e.GLOBSTAR;if(f&&r===0){let e=z(t,t.length,n);if(a=e+1,i=t.slice(a),i===``&&e>=0){let r=e;for(;r>0&&R(t.charCodeAt(r-1),n);)r--;s=r===0?0:z(t,r-1,n)+1,o=t.slice(s,r)}let c=this.#n&&(N(i)||i===``&&o!==void 0&&N(o));r=c?-1:1,f=!c}let p=-1;if(f&&typeof d==`string`&&(p=M(d,i,a,o,s),p===-1))continue;if(this.#t){for(let e of this.#i[l])if(!t.includes(e))continue ROWS}if(f&&typeof d==`object`&&(p=M(d,i,a,o,s),p===-1))continue;let m=this.#a[l];if(m===`base`&&f)return`yes`;if(m===`tail`&&f){if(this.#n&&L(t,0,p,!0,n))return`maybe`;if(!L(t,0,p,c,n))return`yes`}else if(m===`mid`||m===`head`){let e=this.#g(t,u,m===`head`,c,n);if(e!==`no`)return e}else return`maybe`}return`no`}#h(e,t,n){let r=!!this.options.dot,i=e.length;if(n===`head`){if(i<2||!j(t[0],e[0]))return!1;for(let t=1;t<i;t++)if(!ee(e[t],r))return!1;return!0}let a=t[1];if(n===`tail`){let t=i-1;if(!j(a,e[t])&&(e[t]!==``||i===1||!j(a,e[--t])))return!1;for(let n=0;n<t;n++)if(!ee(e[n],r))return!1;return!0}for(let t=0;t<i;t++){if(j(a,e[t])&&t+1<i){let n=t+1;for(;n<i&&ee(e[n],r);)n++;if(n===i)return!0}if(!ee(e[t],r))return!1}return!1}#g(e,t,n,r,i){if(this.#n&&L(e,0,e.length,!0,i))return`maybe`;let a=t[+!n],o=0;for(let t=te(e,o,i);t!==-1;t=te(e,o,i)){let s=t+1;for(;s<e.length&&R(e.charCodeAt(s),i);)s++;if((typeof a==`string`?t-o===a.length&&e.startsWith(a,o):t>o&&a.testUnchecked(e.slice(o,t)))&&!L(e,s,e.length,r,i))return`yes`;if(n||L(e,o,s,r,i))return`no`;o=s}return`no`}#_(e){let t=k;return t?.f===e&&t.isWindows===this.isWindows&&t.preserveMultipleSlashes===this.preserveMultipleSlashes&&t.normalize===this.#r?t:void 0}#v(e){let{isWindows:t,preserveMultipleSlashes:n}=this,r=this.#E(t?e.split(`\\`).join(`/`):e),i=this.#r;return i&&(r=r.map(e=>e.normalize(i))),k={f:e,isWindows:t,preserveMultipleSlashes:n,normalize:i,parts:r},k}#y(e){let t=[...e],n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let e=1;e<t.length-1;e++){let r=t[e];e===1&&r===``&&t[0]===``||r!==`.`&&r!==``||(n=!0,t.splice(e,1),e--)}t[0]===`.`&&t.length===2&&(t[1]===`.`||t[1]===``)&&(n=!0,t.pop())}let e=this.#f(t)+1,r=e;for(;(r=t.indexOf(`..`,r+1))!==-1;){let i=t[r-1];i&&i!==`.`&&i!==`..`&&i!==`**`&&(n=!0,t.splice(r-1,2),r=Math.max(r-2,e))}}while(n);return t.length===0?[``]:t}firstPhasePreProcess(e){let{braceExpandMax:t=o}=this.options,n=0,r=!1;do{r=!1;for(let i of e){let a=-1;for(;(a=i.indexOf(`**`,a+1))!==-1;){let o=a;for(;i[o+1]===`**`;)o++;o>a&&i.splice(a+1,o-a);let s=i[a+1],c=i[a+2],l=i[a+3];if(s!==`..`||!c||c===`.`||c===`..`||!l||l===`.`||l===`..`)continue;let u=i.length-1;if(e.length>=t||n+u>1e6)throw RangeError(`optimizationLevel 2: too many patterns from '**/..'`);r=!0,i.splice(a,1);let d=i.slice(0);d[a]=`**`,n+=u,e.push(d),a--}if(!this.preserveMultipleSlashes){for(let e=1;e<i.length-1;e++){let t=i[e];e===1&&t===``&&i[0]===``||t!==`.`&&t!==``||(r=!0,i.splice(e,1),e--)}i[0]===`.`&&i.length===2&&(i[1]===`.`||i[1]===``)&&(r=!0,i.pop())}let o=this.#f(i)+1,s=o;for(;(s=i.indexOf(`..`,s+1))!==-1;){let e=i[s-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){r=!0;let e=s===1&&i[s+1]===`**`?[`.`]:[];i.splice(s-1,2,...e),i.length===0&&i.push(``),s=Math.max(s-2,o)}}}}while(r);return e}secondPhasePreProcess(e){let t=/* @__PURE__ */ new Set,n=e.filter(e=>{let n=e.join(`/`);return!t.has(n)&&(t.add(n),!0)}),r=/* @__PURE__ */ new Map;for(let e of n){let t=[];for(let n=0;n<e.length;n++)e[n]===`*`&&t.push(n);t.length&&r.set(t.join(`,`),t)}if(!r.size||n.length*r.size>1e5)return n;let{dot:i}=this.options;return n.filter(e=>{for(let n of r.values()){if(n[n.length-1]>=e.length)continue;let r=[...e],a=!0,o=!1;for(let t of n){let n=e[t];if(n!==`*`){if(!n||n===`**`||!i&&n.startsWith(`.`)){a=!1;break}r[t]=`*`,o=!0}}if(a&&o&&t.has(r.join(`/`)))return!1}return!0})}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}#b(t,n,r,i){let a=0,o=0,s=this.isWindows?I(n):-1,c=s===-1?-1:I(r);if(c!==-1){let e=r[c],t=r[c+1];typeof e!=`string`||typeof t!=`string`?(a=s,o=c):n[s].toLowerCase()===e.toLowerCase()&&n[s+1].toLowerCase()===t.toLowerCase()&&(a=s+2,o=c+2)}else if(this.isWindows){let e=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),n=!e&&t[0]===``&&t[1]===``&&t[2]===`?`&&/^[a-z]:$/i.test(t[3]),i=typeof r[0]==`string`&&/^[a-z]:$/i.test(r[0]),s=!i&&r[0]===``&&r[1]===``&&r[2]===`?`&&typeof r[3]==`string`&&/^[a-z]:$/i.test(r[3]),c=n?3:e?0:void 0,l=s?3:i?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[e,n]=[t[c],r[l]];e.toLowerCase()===n.toLowerCase()&&(o=l+1,a=c+1)}}return t=n,r.includes(e.GLOBSTAR)?this.#x(t,r,i,a,o):this.#w(t,r,i,a,o)}#x(e,t,n,r,i){let{head:a,body:o,tail:s,segments:c}=this.#S(t,n,i);if(a.length){let t=r+a.length;if(!this.#w(e,a,n,r,0,t))return!1;r+=a.length,i+=a.length}let l=0;if(s.length){if(s.length+r>e.length)return!1;let t=e.length-s.length;if(this.#w(e,s,n,t,0))l=s.length;else{if(e[e.length-1]!==``||r+s.length===e.length||(t--,!this.#w(e,s,n,t,0)))return!1;l=s.length+1}}if(!o.length){let t=!!l;for(let n=r;n<e.length-l;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}return!!this.#C(e,c,e.length-l,r,0,n,0,!!l,/* @__PURE__ */ new Set)}#S(t,n,r){let i=this.#u.get(t);i||(i=[],this.#u.set(t,i));let a=r*2+ +!!n,o=i[a];if(o)return o;let s=t.indexOf(e.GLOBSTAR,r),c=t.lastIndexOf(e.GLOBSTAR),l=t.slice(r,s),u=t.slice(s+1,n?void 0:c),d=n?[]:t.slice(c+1),f=[[[],0]],p=f[0],m=0,h=[0];for(let t of u)t===e.GLOBSTAR?(h.push(m),p=[[],0],f.push(p)):(p[0].push(t),m++);f.forEach((e,t)=>{e[1]=m-h[t]});let g={head:l,body:u,tail:d,segments:f};return i[a]=g,g}#C(e,t,n,r,i,a,o,s,c){let l=t[i];if(!l){if(a)return r>=n||r===n-1&&e[r]===``;for(let t=r;t<n;t++){s=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return s}let[u,d]=l,f=a?n:n-d;for(;r<=f;){let l=i*(e.length+1)+r;if(c.has(l))return!1;if(c.add(l),this.#w(e,u,a,r,0,r+u.length)&&o<this.maxGlobstarRecursion){let l=this.#C(e,t,n,r+u.length,i+1,a,o+1,s,c);if(l!==!1)return l}if(r===f)break;let d=e[r];if(d===`.`||d===`..`||!this.options.dot&&d.startsWith(`.`))return!1;r++}return a||null}#w(t,n,r,i,a,o=t.length){let s,c,l,u;for(s=i,c=a,u=Math.min(o,t.length),l=n.length;s<u&&c<l;s++,c++){let r=n[c],i=t[s];
42
+ /* c8 ignore stop */
43
+ if(r===!1||r===e.GLOBSTAR||!j(r,i))return!1}if(s===u&&c===l)return!0;if(s===u)return r;if(c===l)return s===u-1&&t[s]===``;throw Error(`wtf?`)
44
+ /* c8 ignore stop */
45
+ }braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}#T(){let{pattern:t}=this;if(this.options.nobrace)return this.braceExpand();let n=57344;for(;t.includes(String.fromCharCode(n));)if(++n>63743)return this.braceExpand();let r=String.fromCharCode(n),i=!1,a=t.replace(S,(e,t,n)=>{let a=Number(t),o=Number(n);return!Number.isSafeInteger(a)||!Number.isSafeInteger(o)||Math.abs(a-o)+1<100?e:(i=!0,`${r}${t}..${n}${r}`)});if(!i)return this.braceExpand();let o=(0,e.braceExpand)(a,this.options);for(let e of o)for(let t of e.split(`/`)){let e=t.indexOf(`[`);if(e!==-1&&e<t.lastIndexOf(r))return this.braceExpand()}return this.#l=r,o}parse(t){(0,r.assertValidPattern)(t);let i=this.options;if(t===`**`)return e.GLOBSTAR;if(t===``)return``;let{nocase:a,nocaseMagicOnly:o,noext:s=!1,dot:c,normalize:l}=i,u=this.#l,d=u&&t.includes(u)?void 0:T(t,s);if(d!==void 0&&(!a||o||t.toUpperCase()===t.toLowerCase()))return this.#d(d);if(this.#c)return ne;let f=this.#s.get(t);return f||(s||D(t),f=new n.Matcher(t,{nocase:a,noext:s,dot:c,normalize:l,...u&&{rangeMark:u}}),this.#s.set(t,f)),f}#E(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options,r=this.#_(e);if(!r){if(!t&&!this.#r&&(this.#e||this.#t)&&A!==e){A=e;let t=this.#m(e);if(t===`no`)return!n.flipNegate&&this.negate;if(t===`yes`)return n.flipNegate?!0:!this.negate}r=this.#v(e)}let i=r.parts,a=this.#n?r.resolved??=this.#y(i):i,o=this.set,s=i[i.length-1];if(!s)for(let e=i.length-2;!s&&e>=0;e--)s=i[e];for(let e=0;e<o.length;e++){let r=o[e],c=t?void 0:this.#a[e];if(c===`base`?j(r[0],s):c?this.#h(a,r,c):n.matchBase&&r.length===1?this.#b([s],[s],r,t):this.#b(i,a,r,t))return n.flipNegate?!0:!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}}e.Minimatch=re;
46
+ /* c8 ignore start */
47
+ var B=Zr();Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return B.escape}});var V=ei();Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return V.unescape}}),e.minimatch.Minimatch=re,e.minimatch.escape=i.escape,e.minimatch.unescape=a.unescape})(Ar)),Ar}var ri={},ii;function ai(){if(ii)return ri;ii=1;class e{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)}}class t{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 n(n,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 e))throw TypeError(`Definition for key "${n}" missing valid merge strategy.`)}else if(!i&&typeof r.merge!=`function`)throw TypeError(`Definition for key "${n}" must have a merge property.`);if(typeof r.validate==`string`){if(!(r.validate in t))throw TypeError(`Definition for key "${n}" missing valid validation strategy.`)}else if(!i&&typeof r.validate!=`function`)throw TypeError(`Definition for key "${n}" must have a validate() method.`)}class r extends Error{constructor(e){super(`Unexpected key "${e}" found.`)}}class i extends Error{constructor(e){super(`Missing required key "${e}".`)}}class a extends Error{constructor(e,t){super(`Key "${e}" requires keys "${t.join(`", "`)}".`)}}class o 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])}}class s{#e=/* @__PURE__ */ new Map;#t=/* @__PURE__ */ new Map;constructor(r){if(!r)throw Error(`Schema definitions missing.`);for(let i of Object.keys(r)){let a=r[i];n(i,a);let o=a;if(typeof o.schema==`object`){let e=new s(o.schema);o={...o,merge(t={},n={}){return e.merge(t,n)},validate(n){t.object(n),e.validate(n)}}}typeof o.merge==`string`&&(o={...o,merge:e[o.merge]}),typeof o.validate==`string`&&(o={...o,validate:t[o.validate]}),this.#e.set(i,o),o.required&&this.#t.set(i,o)}}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 o(n,e)}return e},{})}validate(e){for(let t of Object.keys(e)){if(!this.hasKey(t))throw new r(t);let n=this.#e.get(t);if(Array.isArray(n.requires)&&!n.requires.every(t=>t in e))throw new a(t,n.requires);try{n.validate.call(n,e[t])}catch(e){throw new o(t,e)}}for(let[t]of this.#t)if(!(t in e))throw new i(t)}}return ri.MergeStrategy=e,ri.ObjectSchema=s,ri.ValidationStrategy=t,ri}var oi;function si(){return oi||(oi=1,(function(e){var t=Er(),n=kr(),r=ni(),i=Ke(),a=ai();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=/*#__PURE__*/ o(t),c=/*#__PURE__*/ 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=i(`@eslint/config-array`),g=/* @__PURE__ */ new Map,_=/* @__PURE__ */ new Map,v={dot:!0},y={dot:!0,flipNegate:!0},b=/^[\w.-]+$/u,x=/^\*([\w.-]+)$/u,S=/* @__PURE__ */ new Set([`array`,`function`]),C=/* @__PURE__ */ new Set([`name`,`basePath`]),w=new a.ObjectSchema(m),T=Object.freeze({status:`external`}),E=Object.freeze({status:`ignored`}),D=Object.freeze({status:`unconfigured`}),O=/^\.\.(?:\/|$)/u,k=/\/\/|\/\.{1,2}(?:\/|$)/u,A=/^\*$|^!|\/\*{1,2}$/u,j=/* @__PURE__ */ new WeakMap;class M 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 N(e){return e&&typeof e.name==`string`&&e.name?`"${e.name}"`:`(unnamed)`}function P(e,t,n){let r=N(e);throw new M(r,t,{cause:n})}function F(e){return typeof e==`string`}function I(e,t){if(e===null)throw new M(N(e),t,{message:`Unexpected null config.`});if(e===void 0)throw new M(N(e),t,{message:`Unexpected undefined config.`});if(typeof e!=`object`)throw new M(N(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{w.validate(n)}catch(n){P(e,t,n)}}function ee(e){let t={matcher:e,prefix:null,suffix:null};if(e.negate||e.comment||e.empty||e.pattern.includes(`..`))return t;let n=e.pattern.split(`/`);if(n.length>1&&n.at(-1)===``&&n.pop(),n.includes(`.`))return t;let r=``,i=0;for(;i<n.length&&b.test(n[i]);)r+=`${n[i]}/`,i++;if(r!==``&&(t.prefix=r),i<n.length){let e=x.exec(n.at(-1));e&&(t.suffix=e[1])}return t}function L(e,t){let{prefix:n,suffix:r}=e;return n!==null&&!t.startsWith(n)&&(t.length!==n.length-1||!n.startsWith(t))?!1:r!==null&&!t.endsWith(r)?t.charCodeAt(t.length-1)===47&&t.endsWith(r,t.length-1):!0}function R(e,t,n=!1){let i=n?_:g,a=i.get(t);return a===void 0&&(a=ee(new r.Minimatch(t,n?y:v)),i.set(t,a)),L(a,e)?a.matcher.match(e):!1}function te(e){if(F(e)){if(e.startsWith(`./`))return e.slice(2);if(e.startsWith(`!./`))return`!${e.slice(3)}`}return e}function z(e){return F(e)&&(e.startsWith(`./`)||e.startsWith(`!./`))}function ne(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(z):z(e))),!i&&Array.isArray(e.ignores)&&(i=e.ignores.some(z)),!i)return e;let a={...e};return r&&(a.basePath=n.isAbsolute(e.basePath)?n.toNamespacedPath(e.basePath):n.resolve(t,e.basePath)),Array.isArray(a.files)&&(a.files=a.files.map(e=>Array.isArray(e)?e.map(te):te(e))),Array.isArray(a.ignores)&&(a.ignores=a.ignores.map(te)),a}async function re(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=s(e),l=[];for await(let e of c)l.push(ne(e,r,i));return l}function B(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(ne(t,r,i));return c}function V(e,t){let n=e.length,r=t.length,i=n<r?n:r,a=0,o=1;for(;o<i;o++){let n=e.charCodeAt(o);if(n!==t.charCodeAt(o))break;n===47&&(a=o)}o===r&&e.charCodeAt(o)===47&&(a=o);let s=`..`;for(let t=a+1;t<n;t++)e.charCodeAt(t)===47&&(s+=`/..`);return a+1<r?`${s}/${t.slice(a+1)}`:s}function ie(e,t){if(e.charCodeAt(0)!==47||k.test(e))return;let n=e.length;if(n>1&&e.charCodeAt(n-1)===47&&n--,t===`/`)return e.slice(1,n);let r=t.length;if(!(t.charCodeAt(r-1)===47||k.test(t))){if(e.startsWith(t)){if(n===r)return``;if(e.charCodeAt(r)===47)return e.slice(r+1,n)}return V(t,n===e.length?e:e.slice(0,n))}}function ae(e,t,n){if(n===s){let n=ie(e,t);if(n!==void 0)return n}let r=n.resolve(t,e),i=n.toNamespacedPath(r);return n.relative(t,i).replaceAll(n.SEPARATOR,`/`)}function oe(e,t,n,r){let i=r;for(let r=0;r<e.length;r++){let a=e[r];i?typeof a==`string`&&a.charCodeAt(0)===33&&(i=!R(n,a,!0)):i=typeof a==`function`?a(t):a.charCodeAt(0)!==33&&R(n,a)}return i}function H(e,t,n,{basePath:r,path:i}={}){let a=!1,o=null;for(let c of e){let e=n;if(c.basePath){if(o===null&&(o=i===s?`${r===`/`?``:r}/${n}`:i.resolve(r,n)),e=ae(o,c.basePath,i),e===``||O.test(e))continue;n.endsWith(`/`)&&(e+=`/`)}a=oe(c.ignores,t,e,a)}return a}function se(e,t,n){if(F(n))return R(t,n);if(typeof n==`function`)return n(e);throw TypeError(`Unexpected matcher type ${n}.`)}function ce(e,t,n,r){let i=!1;for(let r=0;r<n.length;r++){let a=n[r];if(Array.isArray(a)){let n=!0;for(let r=0;r<a.length;r++)if(!se(e,t,a[r])){n=!1;break}if(n){i=!0;break}}else if(se(e,t,a)){i=!0;break}}return i&&r&&(i=!oe(r,e,t,!1)),i}function le(e){let t={isGlobalIgnores:!1,universalFiles:null,nonUniversalFiles:null};if(e.files){let n=[],r=[];for(let t of e.files)Array.isArray(t)?t.every(e=>A.test(e))?n.push(t):r.push(t):A.test(t)?n.push(t):r.push(t);t.universalFiles=n,t.nonUniversalFiles=r}else if(e.ignores){let n=0;for(let t of Object.keys(e))C.has(t)||n++;t.isGlobalIgnores=n===1}return t}function ue(e){let t=j.get(e);return t===void 0&&(t=le(e),j.set(e,t)),t}function de(e){if(!e.isNormalized())throw Error(`ConfigArray must be normalized to perform this operation.`)}function U(e){if(!Array.isArray(e))throw TypeError(`extraConfigTypes must be an array.`);if(e.length>2)throw TypeError(`extraConfigTypes must contain at most two items.`);for(let t of e)if(!S.has(t))throw TypeError(`Unexpected config type "${t}" in extraConfigTypes. Expected one of: "array", "function".`)}function fe(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 pe={isNormalized:Symbol(`isNormalized`),configCache:Symbol(`configCache`),schema:Symbol(`schema`),finalizeConfig:Symbol(`finalizeConfig`),preprocessConfig:Symbol(`preprocessConfig`)},me=/* @__PURE__ */ new WeakMap;class he extends Array{#e;#t;constructor(e,{basePath:t=`/`,normalized:n=!1,schema:r,extraConfigTypes:i=[]}={}){if(super(),this[pe.isNormalized]=n,this[pe.schema]=new a.ObjectSchema(Object.assign({},r,u)),!F(t)||!t)throw TypeError(`basePath must be a non-empty string`);this.basePath=t,U(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[pe.configCache]=/* @__PURE__ */ new Map,me.set(this,{explicitMatches:/* @__PURE__ */ new Map,directoryMatches:/* @__PURE__ */ new Map,files:void 0,ignores:void 0}),Array.isArray(e)?this.push(...e):this.push(e),this.#t=fe(t),this.#e=this.#t.toNamespacedPath(t)}static get[Symbol.species](){return Array}get files(){de(this);let e=me.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,me.set(this,e),t}get ignores(){de(this);let e=me.get(this);if(e.ignores)return e.ignores;let t=[];for(let e of this)e.ignores&&ue(e).isGlobalIgnores&&t.push(e);return e.ignores=t,me.set(this,e),t}isNormalized(){return this[pe.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let t=await re(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[pe.preprocessConfig].bind(this))),this.forEach(I),this[pe.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let t=B(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[pe.preprocessConfig].bind(this))),this.forEach(I),this[pe.isNormalized]=!0,Object.freeze(this)}return this}[pe.finalizeConfig](e){return e}[pe.preprocessConfig](e){return e}getConfigWithStatus(e){de(this);let t=this[pe.configCache],n=t.get(e);if(n)return n;let r=ae(e,this.#e,this.#t);if(O.test(r))return h(`No config for file %s outside of base path`,e),t.set(e,T),T;if(this.isDirectoryIgnored(this.#t.dirname(e)))return h(`Ignoring %s based on directory pattern`,e),t.set(e,E),E;if(H(this.ignores,e,r,{basePath:this.#e,path:this.#t}))return h(`Ignoring %s based on file pattern`,e),t.set(e,E),E;let i=[],a=!1,o=null;for(let t=0;t<this.length;t++){let n=this[t],c=r;if(n.basePath&&(o===null&&(o=this.#t===s?`${this.#e===`/`?``:this.#e}/${r}`:this.#t.resolve(this.#e,e)),c=ae(o,n.basePath,this.#t),O.test(c))){h(`Skipped config found for %s (based on config's base path: %s)`,e,n.basePath);continue}if(!n.files){if(!n.ignores){h(`Universal config found for %s`,e),i.push(t);continue}if(ue(n).isGlobalIgnores){h(`Skipped config found for %s (global ignores)`,e);continue}if(oe(n.ignores,e,c,!1)){h(`Skipped config found for %s (based on ignores: %s)`,e,n.ignores);continue}h(`Matching config found for %s (based on ignores: %s)`,e,n.ignores),i.push(t);continue}let{universalFiles:l,nonUniversalFiles:u}=ue(n);if(l.length){if(h(`Universal files patterns found. Checking carefully.`),u.length&&ce(e,c,u,n.ignores)){h(`Matching config found for %s`,e),i.push(t),a=!0;continue}if(ce(e,c,l,n.ignores)){h(`Matching config found for %s`,e),i.push(t);continue}}else ce(e,c,n.files,n.ignores)&&(h(`Matching config found for %s`,e),i.push(t),a=!0)}if(!a)return h(`No matching configs found for %s`,e),t.set(e,D),D;let c=i.toString(),l=t.get(c);if(l)return t.set(e,l),l;let u=i.reduce((e,t)=>{try{return this[pe.schema].merge(e,this[t])}catch(e){P(this[t],t,e)}},{});return u=this[pe.finalizeConfig](u),l=Object.freeze({config:u,status:`matched`}),t.set(e,l),t.set(c,l),l}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){de(this);let t=ae(e,this.#e,this.#t);if(t===``)return!1;if(O.test(t))return!0;let n=me.get(this).directoryMatches;if(n.has(t))return n.get(t);let r=t.split(`/`),i=r.length,a=0,o=``,s;do o+=`${r[a++]}/`,s=n.get(o),s===void 0&&(s=H(this.ignores,this.#t.join(this.basePath,o),o,{basePath:this.#e,path:this.#t}),n.set(o,s));while(!s&&a<i);return n.set(t,s),s}}Object.defineProperty(e,"ObjectSchema",{enumerable:!0,get:function(){return a.ObjectSchema}}),e.ConfigArray=he,e.ConfigArraySymbol=pe})(Cr)),Cr}var ci={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`]}},li={exports:{}},ui
48
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
49
+ ;function di(){return ui||(ui=1,(function(e,t){(function(e,n){n(t)})(this,(function(e){function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i<r;++i)t[i]=t[i].slice(1,-1);return t[r]=t[r].slice(1),t.join(``)}return t[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);n(r+t(r,i,`[\\+\\-\\.]`)+`*`),n(n(o+`|`+t(f,c,`[\\:]`))+`*`);var p=n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`0?[1-9]`+i)+`|0?0?`+i),m=n(p+`\\.`+p+`\\.`+p+`\\.`+p),h=n(a+`{1,4}`),g=n(n(h+`\\:`+h)+`|`+m),_=n([n(n(h+`\\:`)+`{6}`+g),n(`\\:\\:`+n(h+`\\:`)+`{5}`+g),n(n(h)+`?\\:\\:`+n(h+`\\:`)+`{4}`+g),n(n(n(h+`\\:`)+`{0,1}`+h)+`?\\:\\:`+n(h+`\\:`)+`{3}`+g),n(n(n(h+`\\:`)+`{0,2}`+h)+`?\\:\\:`+n(h+`\\:`)+`{2}`+g),n(n(n(h+`\\:`)+`{0,3}`+h)+`?\\:\\:`+h+`\\:`+g),n(n(n(h+`\\:`)+`{0,4}`+h)+`?\\:\\:`+g),n(n(n(h+`\\:`)+`{0,5}`+h)+`?\\:\\:`+h),n(n(n(h+`\\:`)+`{0,6}`+h)+`?\\:\\:`)].join(`|`)),v=n(n(f+`|`+o)+`+`);n(`[vV]`+a+`+\\.`+t(f,c,`[\\:]`)+`+`),n(n(o+`|`+t(f,c))+`*`);var y=n(o+`|`+t(f,c,`[\\:\\@]`));return n(n(o+`|`+t(f,c,`[\\@]`))+`+`),n(n(y+`|`+t(`[\\/\\?]`,d))+`*`),{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(`^(`+m+`)$`),IPV6ADDRESS:RegExp(`^\\[?(`+_+`)`+n(n(`\\%25|\\%(?!`+a+`{2})`)+`(`+v+`)`)+`?\\]?$`)}}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}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)},ee=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,ee=void 0;try{for(var L=e[Symbol.iterator](),R;!(N=(R=L.next()).done);N=!0){var te=R.value;if(te<r&&++i>f&&O(`overflow`),te==r){for(var z=i,ne=p;;ne+=p){var re=ne<=a?m:ne>=a+h?h:ne-a;if(z<re)break;var B=z-re,V=p-re;t.push(D(P(re+B%V,0))),z=E(B/V)}t.push(D(P(z,0))),a=F(i,M,_==g),i=0,++_}}}catch(e){I=!0,ee=e}finally{try{!N&&L.return&&L.return()}finally{if(I)throw ee}}++i,++r}return t.join(``)},L={version:`2.1.0`,ucs2:{decode:j,encode:M},decode:I,encode:ee,toASCII:function(e){return A(e,function(e){return S.test(e)?`xn--`+ee(e):e})},toUnicode:function(e){return A(e,function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e})}},R={};function te(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 z(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 ne(e,t){function n(e){var n=z(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,te).replace(t.PCT_ENCODED,i)),e.host!==void 0&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,te).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,te).replace(t.PCT_ENCODED,i)),e.query!==void 0&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,te).replace(t.PCT_ENCODED,i)),e.fragment!==void 0&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,te).replace(t.PCT_ENCODED,i)),e}function re(e){return e.replace(/^0*(.*)/,`$1`)||`0`}function B(e,t){var n=u(e.match(t.IPV4ADDRESS)||[],2)[1];return n?n.split(`.`).map(re).join(`.`):e}function V(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(re):[],l=o.split(`:`).map(re),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]=B(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),_}return e}var ie=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ae=``.match(/(){0}/)[1]===void 0;function oe(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(ie);if(i){ae?(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&&=V(B(n.host,r),r),n.reference=n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?`same-document`:n.scheme===void 0?`relative`:n.fragment===void 0?`absolute`:`uri`,t.reference&&t.reference!==`suffix`&&t.reference!==n.reference&&(n.error=n.error||`URI is not a `+t.reference+` reference.`);var a=R[(t.scheme||n.scheme||``).toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)){if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=L.toASCII(n.host.replace(r.PCT_ENCODED,z).toLowerCase())}catch(e){n.error=n.error||`Host's domain name can not be converted to ASCII via punycode: `+e}ne(n,c)}else ne(n,r);a&&a.parse&&a.parse(n,t)}else n.error=n.error||`URI can not be parsed.`;return n}function H(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(V(B(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 se=/^\.\.?\//,ce=/^\/\.(\/|$)/,le=/^\/\.\.(\/|$)/,ue=/^\/?(?:.|\n)*?(?=\/|$)/;function de(e){for(var t=[];e.length;)if(e.match(se))e=e.replace(se,``);else if(e.match(ce))e=e.replace(ce,`/`);else if(e.match(le))e=e.replace(le,`/`),t.pop();else if(e===`.`||e===`..`)e=``;else{var n=e.match(ue);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 U(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.iri?l:c,r=[],i=R[(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?L.toUnicode(e.host):L.toASCII(e.host.replace(n.PCT_ENCODED,z).toLowerCase())}catch(n){e.error=e.error||`Host's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+n}ne(e,n),t.reference!==`suffix`&&e.scheme&&(r.push(e.scheme),r.push(`:`));var a=H(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=de(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 fe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments[3],i={};return r||(e=oe(U(e,n),n),t=oe(U(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=de(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=de(t.path||``),i.query=t.query):(t.path?(t.path.charAt(0)===`/`?i.path=de(t.path):(i.path=(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?`/`+t.path:e.path?e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:t.path,i.path=de(i.path)),i.query=t.query):(i.path=e.path,i.query=t.query===void 0?e.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 pe(e,t,n){var r=o({scheme:`null`},n);return U(fe(oe(e,r),oe(t,r),r,!0),r)}function me(e,t){return typeof e==`string`?e=U(oe(e,t),t):r(e)===`object`&&(e=oe(U(e,t),t)),e}function he(e,t,n){return typeof e==`string`?e=U(oe(e,n),n):r(e)===`object`&&(e=U(e,n)),typeof t==`string`?t=U(oe(t,n),n):r(t)===`object`&&(t=U(t,n)),e===t}function ge(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:l.ESCAPE,te)}function _e(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:l.PCT_ENCODED,z)}var ve={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}},ye={scheme:`https`,domainHost:ve.domainHost,parse:ve.parse,serialize:ve.serialize};function W(e){return typeof e.secure==`boolean`?e.secure:String(e.scheme).toLowerCase()===`wss`}var be={scheme:`ws`,domainHost:!0,parse:function(e,t){var n=e;return n.secure=W(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===(W(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}},xe={scheme:`wss`,domainHost:be.domainHost,parse:be.parse,serialize:be.serialize},G={},K=`[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`,q=`[0-9A-Fa-f]`,Se=n(n(`%[EFef]`+q+`%`+q+q+`%`+q+q)+`|`+n(`%[89A-Fa-f]`+q+`%`+q+q)+`|`+n(`%`+q+q)),J="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ce=t(`[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]`,`[\\"\\\\]`),Y=`[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]`,we=new RegExp(K,`g`),X=new RegExp(Se,`g`),Te=new RegExp(t(`[^]`,J,`[\\.]`,`[\\"]`,Ce),`g`),Ee=new RegExp(t(`[^]`,K,Y),`g`),De=Ee;function Oe(e){var t=z(e);return t.match(we)?t:e}var Z={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=_e(l[1],t);break;case`body`:n.body=_e(l[1],t);break;default:i=!0,a[_e(l[0],t)]=_e(l[1],t)}}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]=_e(h[0]),t.unicodeSupport)h[1]=_e(h[1],t).toLowerCase();else try{h[1]=L.toASCII(_e(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(X,Oe).replace(X,i).replace(Te,te),d=c.slice(l+1);try{d=t.iri?L.toUnicode(d):L.toASCII(_e(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]!==G[m]&&p.push(m.replace(X,Oe).replace(X,i).replace(Ee,te)+`=`+f[m].replace(X,Oe).replace(X,i).replace(De,te));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=R[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=R[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}};R[ve.scheme]=ve,R[ye.scheme]=ye,R[be.scheme]=be,R[xe.scheme]=xe,R[Z.scheme]=Z,R[Ae.scheme]=Ae,R[Me.scheme]=Me,e.SCHEMES=R,e.pctEncChar=te,e.pctDecChars=z,e.parse=oe,e.removeDotSegments=de,e.serialize=U,e.resolveComponents=fe,e.resolve=pe,e.normalize=me,e.equal=he,e.escapeComponent=ge,e.unescapeComponent=_e,Object.defineProperty(e,"__esModule",{value:!0})}))})(li,li.exports)),li.exports}var fi,pi;function mi(){return pi||(pi=1,fi=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}),fi}var hi,gi;function _i(){return gi||(gi=1,hi=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}),hi}var vi,yi;function bi(){if(yi)return vi;yi=1,vi={copy:e,checkDataType:t,checkDataTypes:n,coerceToTypes:i,toHash:a,getProperty:c,escapeQuotes:l,equal:mi(),ucs2length:_i(),varOccurences:u,varReplace:d,schemaHasRules:f,schemaHasRulesExcept:p,schemaUnknownRules:m,toQuotedString:h,getPathExpr:g,getPath:_,getData:b,unescapeFragment:S,unescapeJsonPointer:T,escapeFragment:C,escapeJsonPointer:w};function e(e,t){for(var n in t||={},e)t[n]=e[n];return t}function t(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 n(e,n,r){switch(e.length){case 1:return t(e[0],n,r,!0);default:var i=``,o=a(e);for(var s in o.array&&o.object&&(i=o.null?`(`:`(!`+n+` || `,i+=`typeof `+n+` !== "object")`,delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)i+=(i?` && `:``)+t(s,n,r,!0);return i}}var r=a([`string`,`number`,`integer`,`boolean`,`null`]);function i(e,t){if(Array.isArray(t)){for(var n=[],i=0;i<t.length;i++){var a=t[i];(r[a]||e===`array`&&a===`array`)&&(n[n.length]=a)}if(n.length)return n}else if(r[t])return[t];else if(e===`array`&&t===`array`)return[`array`]}function a(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return typeof e==`number`?`[`+e+`]`:o.test(e)?`.`+e:`['`+l(e)+`']`}function l(e){return e.replace(s,`\\$&`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\f/g,`\\f`).replace(/\t/g,`\\t`)}function u(e,t){t+=`[^0-9]`;var n=e.match(new RegExp(t,`g`));return n?n.length:0}function d(e,t,n){return t+=`([^0-9])`,n=n.replace(/\$/g,`$$$$`),e.replace(new RegExp(t,`g`),n+`$1`)}function f(e,t){if(typeof e==`boolean`)return!e;for(var n in e)if(t[n])return!0}function p(e,t,n){if(typeof e==`boolean`)return!e&&n!=`not`;for(var r in e)if(r!=n&&t[r])return!0}function m(e,t){if(typeof e!=`boolean`){for(var n in e)if(!t[n])return n}}function h(e){return`'`+l(e)+`'`}function g(e,t,n,r){return x(e,n?`'/' + `+t+(r?``:`.replace(/~/g, '~0').replace(/\\//g, '~1')`):r?`'[' + `+t+` + ']'`:`'[\\'' + `+t+` + '\\']'`)}function _(e,t,n){return x(e,h(n?`/`+w(t):c(t)))}var v=/^\/(?:[^~]|~0|~1)*$/,y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function b(e,t,n){var r,i,a,o;if(e===``)return`rootData`;if(e[0]==`/`){if(!v.test(e))throw Error(`Invalid JSON-pointer: `+e);i=e,a=`rootData`}else{if(o=e.match(y),!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,l=i.split(`/`),u=0;u<l.length;u++){var d=l[u];d&&(a+=c(T(d)),s+=` && `+a)}return s}function x(e,t){return e==`""`?t:(e+` + `+t).replace(/([^\\])' \+ '/g,`$1`)}function S(e){return T(decodeURIComponent(e))}function C(e){return encodeURIComponent(w(e))}function w(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function T(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}return vi}var xi,Si;function Ci(){if(Si)return xi;Si=1;var e=bi();xi=t;function t(t){e.copy(t,this)}return xi}var wi={exports:{}},Ti;function Ei(){if(Ti)return wi.exports;Ti=1;var e=wi.exports=function(e,n,r){typeof n==`function`&&(r=n,n={}),r=n.cb||r;var i=typeof r==`function`?r:r.pre||function(){},a=r.post||function(){};t(n,i,a,e,``,e)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(r,i,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in i(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in e.arrayKeywords)for(var h=0;h<m.length;h++)t(r,i,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in e.propsKeywords){if(m&&typeof m==`object`)for(var g in m)t(r,i,a,m[g],s+`/`+p+`/`+n(g),c,s,p,o,g)}else(p in e.keywords||r.allKeys&&!(p in e.skipKeywords))&&t(r,i,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function n(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}return wi.exports}var Di,Oi;function ki(){if(Oi)return Di;Oi=1;var e=di(),t=mi(),n=bi(),r=Ci(),i=Ei();Di=a,a.normalizeId=_,a.fullPath=m,a.url=v,a.ids=y,a.inlineRef=d,a.schema=o;function a(e,t,n){var i=this._refs[n];if(typeof i==`string`){if(this._refs[i])i=this._refs[i];else return a.call(this,e,t,i)}if(i||=this._schemas[n],i instanceof r)return d(i.schema,this._opts.inlineRefs)?i.schema:i.validate||this._compile(i);var s=o.call(this,t,n),c,l,u;return s&&(c=s.schema,t=s.root,u=s.baseId),c instanceof r?l=c.validate||e.call(this,c.schema,t,void 0,u):c!==void 0&&(l=d(c,this._opts.inlineRefs)?c:e.call(this,c,t,void 0,u)),l}function o(t,n){var i=e.parse(n),a=h(i),o=m(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==o){var c=_(a),u=this._refs[c];if(typeof u==`string`)return s.call(this,t,u,i);if(u instanceof r)u.validate||this._compile(u),t=u;else if(u=this._schemas[c],u instanceof r){if(u.validate||this._compile(u),c==_(n))return{schema:u,root:t,baseId:o};t=u}else return;if(!t.schema)return;o=m(this._getId(t.schema))}return l.call(this,i,o,t.schema,t)}function s(e,t,n){var r=o.call(this,e,t);if(r){var i=r.schema,a=r.baseId;e=r.root;var s=this._getId(i);return s&&(a=v(a,s)),l.call(this,n,a,i,e)}}var c=n.toHash([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function l(e,t,r,i){if(e.fragment=e.fragment||``,e.fragment.slice(0,1)==`/`){for(var a=e.fragment.split(`/`),s=1;s<a.length;s++){var l=a[s];if(l){if(l=n.unescapeFragment(l),r=r[l],r===void 0)break;var u;if(!c[l]&&(u=this._getId(r),u&&(t=v(t,u)),r.$ref)){var d=v(t,r.$ref),f=o.call(this,i,d);f&&(r=f.schema,i=f.root,t=f.baseId)}}}if(r!==void 0&&r!==i.schema)return{schema:r,root:i,baseId:t}}}var u=n.toHash([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`]);function d(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return f(e);if(t)return p(e)<=t}function f(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t==`object`&&!f(t))return!1}else for(var r in e)if(r==`$ref`||(t=e[r],typeof t==`object`&&!f(t)))return!1;return!0}function p(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+=p(n)),t==1/0)return 1/0}else for(var i in e){if(i==`$ref`)return 1/0;if(u[i])t++;else if(n=e[i],typeof n==`object`&&(t+=p(n)+1),t==1/0)return 1/0}return t}function m(t,n){return n!==!1&&(t=_(t)),h(e.parse(t))}function h(t){return e.serialize(t).split(`#`)[0]+`#`}var g=/#\/?$/;function _(e){return e?e.replace(g,``):``}function v(t,n){return n=_(n),e.resolve(t,n)}function y(r){var a=_(this._getId(r)),o={"":a},s={"":m(a,!1)},c={},l=this;return i(r,{allKeys:!0},function(r,i,a,u,d,f,p){if(i!==``){var m=l._getId(r),h=o[u],g=s[u]+`/`+d;if(p!==void 0&&(g+=`/`+(typeof p==`number`?p:n.escapeFragment(p))),typeof m==`string`){m=h=_(h?e.resolve(h,m):m);var v=l._refs[m];if(typeof v==`string`&&(v=l._refs[v]),v&&v.schema){if(!t(r,v.schema))throw Error(`id "`+m+`" resolves to more than one schema`)}else if(m!=_(g)){if(m[0]==`#`){if(c[m]&&!t(r,c[m]))throw Error(`id "`+m+`" resolves to more than one schema`);c[m]=r}else l._refs[m]=g}}o[i]=h,s[i]=g}}),c}return Di}var Ai,ji;function Mi(){if(ji)return Ai;ji=1;var e=ki();Ai={Validation:r(t),MissingRef:r(n)};function t(e){this.message=`validation failed`,this.errors=e,this.ajv=this.validation=!0}n.message=function(e,t){return`can't resolve reference `+t+` from id `+e};function n(t,r,i){this.message=i||n.message(t,r),this.missingRef=e.url(t,r),this.missingSchema=e.normalizeId(e.fullPath(this.missingRef))}function r(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}return Ai}var Ni,Pi;function Fi(){return Pi||(Pi=1,Ni=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var n=typeof t.cycles==`boolean`&&t.cycles,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)}),Ni}var Ii,Li;function Ri(){return Li||(Li=1,Ii=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?
50
+ /* istanbul ignore if */
51
+ 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?r+=i?` return data; `:` 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&&!ue(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: '`,r+=T?``+w.join(`,`):``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,r+=T?``+w.join(`,`):``+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?
52
+ /* istanbul ignore if */
53
+ 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: '`,r+=T?``+w.join(`,`):``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,r+=T?``+w.join(`,`):``+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?
54
+ /* istanbul ignore if */
55
+ 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 === `,r+=b?`0`:`errs_`+l,r+=`) { `,C+=`}`);else{var ee=e.RULES;if(ee){for(var D,L=-1,R=ee.length-1;L<R;)if(D=ee[L+=1],ue(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,te=Object.keys(d);if(te)for(var z,ne=-1,re=te.length-1;ne<re;){z=te[ne+=1];var B=d[z];if(B.default!==void 0){var V=g+e.util.getProperty(z);if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+V;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+V+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+V+` === null || `+V+` === '' `),r+=` ) `+V+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(B.default)+` `:r+=` `+JSON.stringify(B.default)+` `,r+=`; `}}}else if(D.type==`array`&&Array.isArray(e.schema.items)){var ie=e.schema.items;if(ie){for(var B,N=-1,ae=ie.length-1;N<ae;)if(B=ie[N+=1],B.default!==void 0){var V=g+`[`+N+`]`;if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+V;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+V+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+V+` === null || `+V+` === '' `),r+=` ) `+V+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(B.default)+` `:r+=` `+JSON.stringify(B.default)+` `,r+=`; `}}}}var oe=D.rules;if(oe){for(var H,se=-1,ce=oe.length-1;se<ce;)if(H=oe[se+=1],de(H)){var le=H.code(e,H.keyword,D.type);le&&(r+=` `+le+` `,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: '`,r+=T?``+w.join(`,`):``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,r+=T?``+w.join(`,`):``+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?
56
+ /* istanbul ignore if */
57
+ 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 === `,r+=b?`0`:`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 ue(e){for(var t=e.rules,n=0;n<t.length;n++)if(de(t[n]))return!0}function de(t){return e.schema[t.keyword]!==void 0||t.implements&&U(t)}function U(t){for(var n=t.implements,r=0;r<n.length;r++)if(e.schema[n[r]]!==void 0)return!0}return r}),Ii}var zi,Bi;function Vi(){if(Bi)return zi;Bi=1;var e=ki(),t=bi(),n=Mi(),r=Fi(),i=Ri(),a=t.ucs2length,o=mi(),s=n.Validation;zi=c;function c(d,g,_,v){var y=this,b=this._opts,x=[void 0],S={},C=[],w={},T=[],E={},D=[];function O(e,n){var r=b.regExp?`regExp`:`new RegExp`;return`var pattern`+e+` = `+r+`(`+t.toQuotedString(n[e])+`);`}g||={schema:d,refVal:x,refs:S};var k=l.call(this,d,g,v),A=this._compilations[k.index];if(k.compiling)return A.callValidate=F;var j=this._formats,M=this.RULES;try{var N=I(d,g,_,v);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,b.sourceCode&&(P.source=N.source)),N}finally{u.call(this,d,g,v)}function F(){var e=A.validate,t=e.apply(this,arguments);return F.errors=e.errors,t}function I(r,l,u,d){var _=!l||l&&l.schema==r;if(l.schema!=g.schema)return c.call(y,r,l,u,d);var v=r.$async===!0,w=i({isTop:!0,schema:r,isRoot:_,baseId:d,root:l,schemaPath:``,errSchemaPath:`#`,errorPath:`""`,MissingRefError:n.MissingRef,RULES:M,validate:i,util:t,resolve:e,resolveRef:ee,usePattern:ne,useDefault:re,useCustomRule:B,opts:b,formats:j,logger:y.logger,self:y});w=h(x,p)+h(C,O)+h(T,f)+h(D,m)+w,b.processCode&&(w=b.processCode(w,r));var E;try{E=Function(`self`,`RULES`,`formats`,`root`,`refVal`,`defaults`,`customRules`,`equal`,`ucs2length`,`ValidationError`,`regExp`,w)(y,M,j,g,x,T,D,o,a,s,b.regExp),x[0]=E}catch(e){throw y.logger.error(`Error compiling schema, function code:`,w),e}return E.schema=r,E.errors=null,E.refs=S,E.refVal=x,E.root=_?E:l,v&&(E.$async=!0),b.sourceCode===!0&&(E.source={code:w,patterns:C,defaults:T}),E}function ee(t,n,r){n=e.url(t,n);var i=S[n],a,o;if(i!==void 0)return a=x[i],o=`refVal[`+i+`]`,z(a,o);if(!r&&g.refs){var s=g.refs[n];if(s!==void 0)return a=g.refVal[s],o=L(n,a),z(a,o)}o=L(n);var l=e.call(y,I,g,n);if(l===void 0){var u=_&&_[n];u&&(l=e.inlineRef(u,b.inlineRefs)?u:c.call(y,u,g,_,t))}if(l===void 0)R(n);else return te(n,l),z(l,o)}function L(e,t){var n=x.length;return x[n]=t,S[e]=n,`refVal`+n}function R(e){delete S[e]}function te(e,t){var n=S[e];x[n]=t}function z(e,t){return typeof e==`object`||typeof e==`boolean`?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function ne(e){var t=w[e];return t===void 0&&(t=w[e]=C.length,C[t]=e),`pattern`+t}function re(e){switch(typeof e){case`boolean`:case`number`:return``+e;case`string`:return t.toQuotedString(e);case`object`:if(e===null)return`null`;var n=r(e),i=E[n];return i===void 0&&(i=E[n]=T.length,T[i]=e),`default`+i}}function B(e,t,n,r){if(y._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: `+y.errorsText(a.errors);if(y._opts.validateSchema==`log`)y.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(y,t,n,r);else if(l)u=l.call(y,t,n,r),b.validateSchema!==!1&&y.validateSchema(u,!0);else if(c)u=c.call(y,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=D.length;return D[d]=u,{code:`customRule`+d,validate:u}}}function l(e,t,n){var r=d.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 u(e,t,n){var r=d.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function d(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 f(e){return`var default`+e+` = defaults[`+e+`];`}function p(e,t){return t[e]===void 0?``:`var refVal`+e+` = refVal[`+e+`];`}function m(e){return`var customRule`+e+` = customRules[`+e+`];`}function h(e,t){if(!e.length)return``;for(var n=``,r=0;r<e.length;r++)n+=t(r,e);return n}return zi}var Hi={exports:{}},Ui;function Wi(){if(Ui)return Hi.exports;Ui=1;var e=Hi.exports=function(){this._cache={}};return e.prototype.put=function(e,t){this._cache[e]=t},e.prototype.get=function(e){return this._cache[e]},e.prototype.del=function(e){delete this._cache[e]},e.prototype.clear=function(){this._cache={}},Hi.exports}var Gi,Ki;function qi(){if(Ki)return Gi;Ki=1;var e=bi(),t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,i=/^(?=.{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,a=/^(?:[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,o=/^(?:[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,s=/^(?:(?:[^\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,c=/^(?:(?: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,l=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,u=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Gi=p;function p(t){return t=t==`full`?`full`:`fast`,e.copy(p[t])}p.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":s,url:c,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:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:S,uuid:l,"json-pointer":u,"json-pointer-uri-fragment":d,"relative-json-pointer":f},p.full={date:h,time:g,"date-time":v,uri:b,"uri-reference":o,"uri-template":s,url:c,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:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:S,uuid:l,"json-pointer":u,"json-pointer-uri-fragment":d,"relative-json-pointer":f};function m(e){return e%4==0&&(e%100!=0||e%400==0)}function h(e){var r=e.match(t);if(!r)return!1;var i=+r[1],a=+r[2],o=+r[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&m(i)?29:n[a])}function g(e,t){var n=e.match(r);if(!n)return!1;var i=n[1],a=n[2],o=n[3],s=n[5];return(i<=23&&a<=59&&o<=59||i==23&&a==59&&o==60)&&(!t||s)}var _=/t|\s/i;function v(e){var t=e.split(_);return t.length==2&&h(t[0])&&g(t[1],!0)}var y=/\/|:/;function b(e){return y.test(e)&&a.test(e)}var x=/[^\\]\\Z/;function S(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}return Gi}var Ji,Yi;function Xi(){return Yi||(Yi=1,Ji=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?
58
+ /* istanbul ignore if */
59
+ 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}),Ji}var Zi,Qi;function $i(){return Qi||(Qi=1,Zi=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&&(r+=f?` if (true) { `:` `+l.slice(0,-1)+` `),r}),Zi}var ea,ta;function na(){return ta||(ta=1,ea=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&&
60
+ /* istanbul ignore if */
61
+ (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}),ea}var ra,ia;function aa(){return ia||(ia=1,ra=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}),ra}var oa,sa;function ca(){return sa||(sa=1,oa=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)+`; `),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?
62
+ /* istanbul ignore if */
63
+ 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}),oa}var la,ua;function da(){return ua||(ua=1,la=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?
64
+ /* istanbul ignore if */
65
+ 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}),la}var fa,pa;function ma(){return pa||(pa=1,fa=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?
66
+ /* istanbul ignore if */
67
+ 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}),fa}var ha,ga;function _a(){return ga||(ga=1,ha=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)+`; `);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?
68
+ /* istanbul ignore if */
69
+ 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}),ha}var va,ya;function ba(){return ya||(ya=1,va=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`),r+=typeof h==`function`?` `+y+`(`+u+`) `:` `+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: `,r+=d?``+f:``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match format "`,r+=d?`' + `+f+` + '`:``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,r+=d?`validate.schema`+s:``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var x=r;return r=b.pop(),!e.compositeRule&&l?
70
+ /* istanbul ignore if */
71
+ 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}),va}var xa,Sa;function Ca(){return Sa||(Sa=1,xa=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&&
72
+ /* istanbul ignore if */
73
+ (e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}),xa}var wa,Ta;function Ea(){return Ta||(Ta=1,wa=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?
74
+ /* istanbul ignore if */
75
+ 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}),wa}var Da,Oa;function ka(){return Oa||(Oa=1,Da=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?
76
+ /* istanbul ignore if */
77
+ 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)?(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+` `,r+=f?`' + `+p:``+p+`'`),e.opts.verbose&&(r+=` , schema: `,r+=f?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;return r=E.pop(),!e.compositeRule&&l?
78
+ /* istanbul ignore if */
79
+ 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}),Da}var Aa,ja;function Ma(){return ja||(ja=1,Aa=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 `,r+=t==`maxItems`?`more`:`fewer`,r+=` than `,r+=f?`' + `+p+` + '`:``+o,r+=` items' `),e.opts.verbose&&(r+=` , schema: `,r+=f?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?
80
+ /* istanbul ignore if */
81
+ 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}),Aa}var Na,Pa;function Fa(){return Pa||(Pa=1,Na=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 `,r+=t==`maxLength`?`longer`:`shorter`,r+=` than `,r+=f?`' + `+p+` + '`:``+o,r+=` characters' `),e.opts.verbose&&(r+=` , schema: `,r+=f?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?
82
+ /* istanbul ignore if */
83
+ 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}),Na}var Ia,La;function Ra(){return La||(La=1,Ia=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 `,r+=t==`maxProperties`?`more`:`fewer`,r+=` than `,r+=f?`' + `+p+` + '`:``+o,r+=` properties' `),e.opts.verbose&&(r+=` , schema: `,r+=f?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?
84
+ /* istanbul ignore if */
85
+ 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}),Ia}var za,Ba;function Va(){return Ba||(Ba=1,za=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 `,r+=d?`' + `+f:``+f+`'`),e.opts.verbose&&(r+=` , schema: `,r+=d?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?
86
+ /* istanbul ignore if */
87
+ 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}),za}var Ha,Ua;function Wa(){return Ua||(Ua=1,Ha=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?
88
+ /* istanbul ignore if */
89
+ 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}),Ha}var Ga,Ka;function qa(){return Ka||(Ka=1,Ga=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&&
90
+ /* istanbul ignore if */
91
+ (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}),Ga}var Ja,Ya;function Xa(){return Ya||(Ya=1,Ja=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;f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o;var m=e.opts.regExp?`regExp`:`new RegExp`;if(f)r+=` var `+d+` = true; try { `+d+` = `+m+`(`+p+`).test(`+u+`); } catch(e) { `+d+` = false; } if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'string') || `),r+=` !`+d+`) {`;else{var h=e.usePattern(o);r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'string') || `),r+=` !`+h+`.test(`+u+`) ) {`}var g=g||[];g.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'pattern' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { pattern: `,r+=f?``+p:``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,r+=f?`' + `+p+` + '`:``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,r+=f?`validate.schema`+s:``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var _=r;return r=g.pop(),!e.compositeRule&&l?
92
+ /* istanbul ignore if */
93
+ 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+=`} `,l&&(r+=` else { `),r}),Ja}var Za,Qa;function $a(){return Qa||(Qa=1,Za=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(r+=k?` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:` 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,ee=P.length-1;I<ee;)F=P[I+=1],r+=` || `+h+` == `+e.util.toQuotedString(F)+` `}}if(S.length){var L=S;if(L)for(var R,te=-1,z=L.length-1;te<z;)R=L[te+=1],r+=` || `+e.usePattern(R)+`.test(`+h+`) `}r+=` ); if (isAdditional`+i+`) { `}if(D==`all`)r+=` delete `+u+`[`+h+`]; `;else{var ne=e.errorPath,re=`' + `+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 B=c;c=e.errSchemaPath+`/additionalProperties`;var V=V||[];V.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalProperties' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { additionalProperty: '`+re+`' } `,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 ie=r;r=V.pop(),!e.compositeRule&&l?
94
+ /* istanbul ignore if */
95
+ e.async?r+=` throw new ValidationError([`+ie+`]); `:r+=` validate.errors = [`+ie+`]; return false; `:r+=` var err = `+ie+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=B,l&&(r+=` break; `)}}else if(E){if(D==`failing`){r+=` var `+d+` = errors; `;var ae=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 oe=u+`[`+h+`]`;f.dataPathArr[_]=h;var H=e.validate(f);f.baseId=A,e.util.varOccurences(H,v)<2?r+=` `+e.util.varReplace(H,v,oe)+` `:r+=` var `+v+` = `+oe+`; `+H+` `,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=ae}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 oe=u+`[`+h+`]`;f.dataPathArr[_]=h;var H=e.validate(f);f.baseId=A,e.util.varOccurences(H,v)<2?r+=` `+e.util.varReplace(H,v,oe)+` `:r+=` var `+v+` = `+oe+`; `+H+` `,l&&(r+=` if (!`+m+`) break; `)}}e.errorPath=ne}w&&(r+=` } `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}var se=e.opts.useDefaults&&!e.compositeRule;if(b.length){var ce=b;if(ce)for(var F,le=-1,ue=ce.length-1;le<ue;){F=ce[le+=1];var de=o[F];if(e.opts.strictKeywords?typeof de==`object`&&Object.keys(de).length>0||de===!1:e.util.schemaHasRules(de,e.RULES.all)){var U=e.util.getProperty(F),oe=u+U,fe=se&&de.default!==void 0;f.schema=de,f.schemaPath=s+U,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 H=e.validate(f);if(f.baseId=A,e.util.varOccurences(H,v)<2){H=e.util.varReplace(H,v,oe);var pe=oe}else{var pe=v;r+=` var `+v+` = `+oe+`; `}if(fe)r+=` `+H+` `;else{if(M&&M[F]){r+=` if ( `+pe+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = false; `;var ne=e.errorPath,B=c,me=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ne,F,e.opts.jsonPointers)),c=e.errSchemaPath+`/required`;var V=V||[];V.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+me+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+me+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var ie=r;r=V.pop(),!e.compositeRule&&l?
96
+ /* istanbul ignore if */
97
+ e.async?r+=` throw new ValidationError([`+ie+`]); `:r+=` validate.errors = [`+ie+`]; return false; `:r+=` var err = `+ie+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=B,e.errorPath=ne,r+=` } else { `}else l?(r+=` if ( `+pe+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = true; } else { `):(r+=` if (`+pe+` !== undefined `,k&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=` ) { `);r+=` `+H+` } `}}l&&(r+=` if (`+m+`) { `,p+=`}`)}}if(S.length){var he=S;if(he)for(var R,ge=-1,_e=he.length-1;ge<_e;){R=he[ge+=1];var de=x[R];if(e.opts.strictKeywords?typeof de==`object`&&Object.keys(de).length>0||de===!1:e.util.schemaHasRules(de,e.RULES.all)){f.schema=de,f.schemaPath=e.schemaPath+`.patternProperties`+e.util.getProperty(R),f.errSchemaPath=e.errSchemaPath+`/patternProperties/`+e.util.escapeFragment(R),r+=k?` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:` for (var `+h+` in `+u+`) { `,r+=` if (`+e.usePattern(R)+`.test(`+h+`)) { `,f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var oe=u+`[`+h+`]`;f.dataPathArr[_]=h;var H=e.validate(f);f.baseId=A,e.util.varOccurences(H,v)<2?r+=` `+e.util.varReplace(H,v,oe)+` `:r+=` var `+v+` = `+oe+`; `+H+` `,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}),Za}var eo,to;function no(){return to||(to=1,eo=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; `),r+=x?` `+b+` = `+b+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+b+`.length; `+g+`++) { var `+h+` = `+b+`[`+g+`]; `:` 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&&
98
+ /* istanbul ignore if */
99
+ (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}),eo}var ro,io;function ao(){return io||(io=1,ro=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)+`; `);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?
100
+ /* istanbul ignore if */
101
+ 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?
102
+ /* istanbul ignore if */
103
+ 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}),ro}var oo,so;function co(){return so||(so=1,oo=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: `,r+=f?`validate.schema`+s:``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var v=r;r=_.pop(),!e.compositeRule&&l?
104
+ /* istanbul ignore if */
105
+ 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}),oo}var lo,uo;function fo(){return uo||(uo=1,lo={$ref:Xi(),allOf:$i(),anyOf:na(),$comment:aa(),const:ca(),contains:da(),dependencies:ma(),enum:_a(),format:ba(),if:Ca(),items:Ea(),maximum:ka(),minimum:ka(),maxItems:Ma(),minItems:Ma(),maxLength:Fa(),minLength:Fa(),maxProperties:Ra(),minProperties:Ra(),multipleOf:Va(),not:Wa(),oneOf:qa(),pattern:Xa(),properties:$a(),propertyNames:no(),required:ao(),uniqueItems:co(),validate:Ri()}),lo}var po,mo;function ho(){if(mo)return po;mo=1;var e=fo(),t=bi().toHash;return po=function(){var n=[{type:`number`,rules:[{maximum:[`exclusiveMaximum`]},{minimum:[`exclusiveMinimum`]},`multipleOf`,`format`]},{type:`string`,rules:[`maxLength`,`minLength`,`pattern`,`format`]},{type:`array`,rules:[`maxItems`,`minItems`,`items`,`contains`,`uniqueItems`]},{type:`object`,rules:[`maxProperties`,`minProperties`,`required`,`dependencies`,`propertyNames`,{properties:[`additionalProperties`,`patternProperties`]}]},{rules:[`$ref`,`const`,`enum`,`not`,`anyOf`,`oneOf`,`allOf`,`if`]}],r=[`type`,`$comment`];return n.all=t(r),n.types=t([`number`,`integer`,`string`,`array`,`object`,`boolean`,`null`]),n.forEach(function(t){t.rules=t.rules.map(function(t){var i;if(typeof t==`object`){var a=Object.keys(t)[0];i=t[a],t=a,i.forEach(function(e){r.push(e),n.all[e]=!0})}return r.push(t),n.all[t]={keyword:t,code:e[t],implements:i}}),n.all.$comment={keyword:`$comment`,code:e.$comment},t.type&&(n.types[t.type]=t)}),n.keywords=t(r.concat([`$schema`,`$id`,`id`,`$data`,`$async`,`title`,`description`,`default`,`definitions`,`examples`,`readOnly`,`writeOnly`,`contentMediaType`,`contentEncoding`,`additionalItems`,`then`,`else`])),n.custom={},n},po}var go,_o;function vo(){if(_o)return go;_o=1;var e=[`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`additionalItems`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`,`additionalProperties`,`enum`,`format`,`const`];return go=function(t,n){for(var r=0;r<n.length;r++){t=JSON.parse(JSON.stringify(t));for(var i=n[r].split(`/`),a=t,o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<e.length;o++){var s=e[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]})}}return t},go}var yo,bo;function xo(){if(bo)return yo;bo=1;var e=Mi().MissingRef;yo=t;function t(n,r,i){var a=this;if(typeof this._opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);typeof r==`function`&&(i=r,r=void 0);var o=s(n).then(function(){var e=a._addSchema(n,void 0,r);return e.validate||c(e)});return i&&o.then(function(e){i(null,e)},i),o;function s(e){var n=e.$schema;return n&&!a.getSchema(n)?t.call(a,{$ref:n},!0):Promise.resolve()}function c(t){try{return a._compile(t)}catch(t){if(t instanceof e)return n(t);throw t}function n(e){var n=e.missingSchema;if(l(n))throw Error(`Schema `+n+` is loaded but `+e.missingRef+` cannot be resolved`);var i=a._loadingSchemas[n];return i||(i=a._loadingSchemas[n]=a._opts.loadSchema(n),i.then(o,o)),i.then(function(e){if(!l(n))return s(e).then(function(){l(n)||a.addSchema(e,n,void 0,r)})}).then(function(){return c(t)});function o(){delete a._loadingSchemas[n]}function l(e){return a._refs[e]||a._schemas[e]}}}}return yo}var So,Co;function wo(){return Co||(Co=1,So=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 ee=r;r=P.pop(),v.errors===!1?(r+=` `+f+` = `,k&&(r+=`await `),r+=``+ee+`; `):k?(E=`customErrors`+i,r+=` var `+E+` = null; try { `+f+` = await `+ee+`; } catch (e) { `+f+` = false; if (e instanceof ValidationError) `+E+` = e.errors; else throw e; } `):r+=` `+E+` = null; `+f+` = `+ee+`; `}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+=` !`,r+=S?``+j:``+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 L=r;r=P.pop(),!e.compositeRule&&l?
106
+ /* istanbul ignore if */
107
+ e.async?r+=` throw new ValidationError([`+L+`]); `:r+=` validate.errors = [`+L+`]; return false; `:r+=` var err = `+L+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `;var R=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+=` `+R+` `:(r+=` if (`+p+` == errors) { `+R+` } 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&&
108
+ /* istanbul ignore if */
109
+ (e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `)):v.errors===!1?r+=` `+R+` `:(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 { `+R+` } `),r+=` } `,l&&(r+=` else { `)}return r}),So}var To={$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},Eo,Do;function Oo(){if(Do)return Eo;Do=1;var e=To;return Eo={$id:`https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js`,definitions:{simpleTypes:e.definitions.simpleTypes},type:`object`,dependencies:{schema:[`validate`],$data:[`validate`],statements:[`inline`],valid:{not:{required:[`macro`]}}},properties:{type:e.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`}]}}},Eo}var ko,Ao;function jo(){if(Ao)return ko;Ao=1;var e=/^[a-z_$][a-z0-9_$-]*$/i,t=wo(),n=Oo();ko={add:r,get:i,remove:a,validate:o};function r(n,r){var i=this.RULES;if(i.keywords[n])throw Error(`Keyword `+n+` is already defined`);if(!e.test(n))throw Error(`Keyword `+n+` is not a valid identifier`);if(r){this.validateKeyword(r,!0);var a=r.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)c(n,a[o],r);else c(n,a,r);var s=r.metaSchema;s&&(r.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]}),r.validateSchema=this.compile(s,!0))}i.keywords[n]=i.all[n]=!0;function c(e,n,r){for(var a,o=0;o<i.length;o++){var s=i[o];if(s.type==n){a=s;break}}a||(a={type:n,rules:[]},i.push(a));var c={keyword:e,definition:r,custom:!0,code:t,implements:r.implements};a.rules.push(c),i.custom[e]=c}return this}function i(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function a(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 o(e,t){o.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(n,!0);if(r(e))return!0;if(o.errors=r.errors,t)throw Error(`custom keyword definition is invalid: `+this.errorsText(r.errors));return!1}return ko}var Mo={$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},No,Po;function Fo(){if(Po)return No;Po=1;var e=Vi(),t=ki(),n=Wi(),r=Ci(),i=Fi(),a=qi(),o=ho(),s=vo(),c=bi();No=m,m.prototype.validate=h,m.prototype.compile=g,m.prototype.addSchema=_,m.prototype.addMetaSchema=v,m.prototype.validateSchema=y,m.prototype.getSchema=x,m.prototype.removeSchema=w,m.prototype.addFormat=N,m.prototype.errorsText=M,m.prototype._addSchema=E,m.prototype._compile=D,m.prototype.compileAsync=xo();var l=jo();m.prototype.addKeyword=l.add,m.prototype.getKeyword=l.get,m.prototype.removeKeyword=l.remove,m.prototype.validateKeyword=l.validate;var u=Mi();m.ValidationError=u.Validation,m.MissingRefError=u.MissingRef,m.$dataMetaSchema=s;var d=`http://json-schema.org/draft-07/schema`,f=[`removeAdditional`,`useDefaults`,`coerceTypes`,`strictDefaults`],p=[`/properties`];function m(e){if(!(this instanceof m))return new m(e);e=this._opts=c.copy(e)||{},te(this),this._schemas={},this._refs={},this._fragments={},this._formats=a(e.format),this._cache=e.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=o(),this._getId=O(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath==`property`&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=i),this._metaOpts=R(this),e.formats&&I(this),e.keywords&&ee(this),P(this),typeof e.meta==`object`&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword(`nullable`,{metaSchema:{type:`boolean`}}),F(this)}function h(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 g(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}function _(e,n,r,i){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,r,i);return this}var o=this._getId(e);if(o!==void 0&&typeof o!=`string`)throw Error(`schema id must be string`);return n=t.normalizeId(n||o),L(this,n),this._schemas[n]=this._addSchema(e,r,i,!0),this}function v(e,t,n){return this.addSchema(e,t,n,!0),this}function y(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||b(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 b(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t==`object`?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}function x(e){var t=C(this,e);switch(typeof t){case`object`:return t.validate||this._compile(t);case`string`:return this.getSchema(t);case`undefined`:return S(this,e)}}function S(n,i){var a=t.schema.call(n,{schema:{}},i);if(a){var o=a.schema,s=a.root,c=a.baseId,l=e.call(n,o,s,void 0,c);return n._fragments[i]=new r({ref:i,fragment:!0,schema:o,root:s,baseId:c,validate:l}),l}}function C(e,n){return n=t.normalizeId(n),e._schemas[n]||e._refs[n]||e._fragments[n]}function w(e){if(e instanceof RegExp)return T(this,this._schemas,e),T(this,this._refs,e),this;switch(typeof e){case`undefined`:return T(this,this._schemas),T(this,this._refs),this._cache.clear(),this;case`string`:var n=C(this,e);return n&&this._cache.del(n.cacheKey),delete this._schemas[e],delete this._refs[e],this;case`object`:var r=this._opts.serialize,i=r?r(e):e;this._cache.del(i);var a=this._getId(e);a&&(a=t.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function T(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 E(e,n,i,a){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;a||=this._opts.addUsedSchema!==!1;var l=t.normalizeId(this._getId(e));l&&a&&L(this,l);var u=this._opts.validateSchema!==!1&&!n,d;u&&!(d=l&&l==t.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=new r({id:l,schema:e,localRefs:t.ids.call(this,e),cacheKey:s,meta:i});return l[0]!=`#`&&a&&(this._refs[l]=f),this._cache.put(s,f),u&&d&&this.validateSchema(e,!0),f}function D(t,n){if(t.compiling)return t.validate=a,a.schema=t.schema,a.errors=null,a.root=n||a,t.schema.$async===!0&&(a.$async=!0),a;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var i;try{i=e.call(this,t.schema,n,t.localRefs)}catch(e){throw delete t.validate,e}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=i,t.refs=i.refs,t.refVal=i.refVal,t.root=i.root,i;function a(){var e=t.validate,n=e.apply(this,arguments);return a.errors=e.errors,n}}function O(e){switch(e.schemaId){case`auto`:return j;case`id`:return k;default:return A}}function k(e){return e.$id&&this.logger.warn(`schema $id ignored`,e.$id),e.id}function A(e){return e.id&&this.logger.warn(`schema id ignored`,e.id),e.$id}function j(e){if(e.$id&&e.id&&e.$id!=e.id)throw Error(`schema $id is different from id`);return e.$id||e.id}function M(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 N(e,t){return typeof t==`string`&&(t=new RegExp(t)),this._formats[e]=t,this}function P(e){var t;if(e._opts.$data&&(t=Mo,e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=To;e._opts.$data&&(n=s(n,p)),e.addMetaSchema(n,d,!0),e._refs[`http://json-schema.org/schema`]=d}}function F(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 I(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}function ee(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}function L(e,t){if(e._schemas[t]||e._refs[t])throw Error(`schema with key or id "`+t+`" already exists`)}function R(e){for(var t=c.copy(e._opts),n=0;n<f.length;n++)delete t[f[n]];return t}function te(e){var t=e._opts.logger;if(t===!1)e.logger={log:z,warn:z,error:z};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 z(){}return No}var Io={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:{}},Lo,Ro;function zo(){if(Ro)return Lo;Ro=1;let e=Fo(),t=Io;return Lo=(n={})=>{let r=new e({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...n});return r.addMetaSchema(t),r._opts.defaultMeta=t.id,r},Lo}var Bo,Vo;function Ho(){if(Vo)return Bo;Vo=1;let{deepMergeArrays:e}=gr(),{flatConfigSchema:t,hasMethod:n}=Sr(),{ObjectSchema:r}=si(),i=ci,a=Object.freeze({type:`array`,minItems:0,maxItems:0}),o=/* @__PURE__ */ new Map([[0,0],[1,1],[2,2],[`off`,0],[`warn`,1],[`error`,2]]),s=/* @__PURE__ */ new WeakMap,c;function l(){return c||=zo()(),c}function u({pluginName:e,ruleName:t},n){let r=e===`@`?t:`${e}/${t}`,a=`Key "rules": Key "${r}"`,o=`${a}: Could not find plugin "${e}" in configuration.`,s=o;if(n.plugins&&n.plugins[e]){let r=i.rules[t];if(e===`@`&&r)o=`${a}: Rule "${t}" was removed and replaced by "${r}".`;else{o=`${a}: Could not find "${t}" in plugin "${e}".`;for(let[e,r]of Object.entries(n.plugins))if(r.rules&&r.rules[t]){o+=` Did you mean "${e}/${t}"?`;break}}}let c=TypeError(o);throw o===s&&(c.messageTemplate=`config-plugin-missing`,c.messageData={pluginName:e,ruleId:r}),c}class d 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 f(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 p(e,t){let{pluginName:n,ruleName:r}=f(e);return t.plugins?.[n]?.rules?.[r]}function m(e){if(!e.meta)return{...a};let t=e.meta.schema;if(t===void 0)return{...a};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}:{...a}:t}function h(e){let t=e.split(`/`);return{objectName:t.pop(),pluginName:t.join(`/`)}}function g(e){return e.startsWith(`@/`)?`js/${e.slice(2)}`:e}function _(e,t,n){if(!e)return!0;let{objectName:r}=h(t);for(let i of e){if(typeof i!=`string`)continue;if(i===`*`||i===t)return!0;let{pluginName:e,objectName:a}=h(i);if(a===`*`){if(n.includes(e))return!0}else if(n.includes(e)&&a===r)return!0}return!1}function v(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 y(e,t,n){if(typeof e==`function`){let e=/* @__PURE__ */ 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 b(e,t=`languageOptions`){if(typeof e.toJSON==`function`){let n=e.toJSON();return y(n,`toJSON`,t),n}let r={};for(let[i,a]of Object.entries(e)){if(a){if(typeof a==`object`){let e=v(a);typeof a.toJSON==`function`?(r[i]=a.toJSON(),y(r[i],i,t)):r[i]=e&&n(a)?e:b(a,i);continue}y(a,i,t)}r[i]=a}return r}function x(e,t){if(!s.has(e))try{let t=m(e);t&&s.set(e,l().compile(t))}catch(e){throw new d(t,e)}return s.get(e)}class S{#e;#t;#n=/* @__PURE__ */ new Map;constructor(e){let{plugins:n,language:i,languageOptions:a,processor:o,...s}=e;if(new r(t).validate(e),Object.assign(this,s),!i)throw TypeError(`Key 'language' is required.`);this.plugins=n,this.language=i;let{pluginName:c,objectName:l}=h(i);if(this.#e=i,!n||!n[c]||!n[c].languages||!n[c].languages[l])throw TypeError(`Key "language": Could not find "${l}" in plugin "${c}".`);this.language=n[c].languages[l],this.languageOptions=this.language.defaultLanguageOptions??a?t.languageOptions.merge(this.language.defaultLanguageOptions,a):{};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:t}=h(o);if(this.#t=o,!n||!n[e]||!n[e].processors||!n[e].processors[t])throw TypeError(`Key "processor": Could not find "${t}" in plugin "${e}".`);this.processor=n[e].processors[t]}else if(typeof o==`object`)this.#t=v(o),this.processor=o;else throw TypeError(`Key 'processor' must be a string or an object.`)}this.rules&&(this.#r(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw 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=v(t);return n?`${e}:${n}`:e}),language:this.#e,languageOptions:b(this.languageOptions),processor:this.#t}}getRuleDefinition(e){if(this.#n.has(e))return this.#n.get(e);let t=p(e,this);return this.#n.set(e,t),t}#r(){for(let[t,n]of Object.entries(this.rules)){let r=Array.isArray(n)?n:[n];r[0]=o.get(r[0]);let i=this.getRuleDefinition(t),a=r.slice(1),s=e(i?.meta?.defaultOptions,a);s.length&&(r=[r[0],...s]),this.rules[t]=r}}validateRulesConfig(e){if(!e)throw TypeError(`Config is required for validation.`);let t=g(this.#e),{pluginName:n}=h(t),r=this.plugins[n]??(n===`js`?this.plugins[`@`]:void 0),i=r?.meta?.namespace?[n,r.meta.namespace]:[n],a=[];for(let[n,r]of Object.entries(e)){if(n===`__proto__`||r[0]===0)continue;let e=this.getRuleDefinition(n);if(e||u(f(n),this),e.meta?.languages!==void 0){if(!Array.isArray(e.meta.languages))throw TypeError(`Key "rules": Key "${n}": Key "meta": Key "languages": Expected an array.`);for(let t of e.meta.languages)if(typeof t!=`string`)throw TypeError(`Key "rules": Key "${n}": Key "meta": Key "languages": Expected each element to be a string.`)}_(e.meta?.languages,t,i)||a.push(n);let o=x(e,n);if(o&&(o(r.slice(1)),o.errors))throw Error(`Key "rules": Key "${n}":\n${o.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(``)}`)}if(a.length>0){let e=/* @__PURE__ */ TypeError(`Key "rules": The following rules do not support the language "${t}":\n${a.map(e=>`\t- "${e}"`).join(`
110
+ `)}`);throw e.messageTemplate=`rule-unsupported-language`,e.messageData={ruleIds:a,language:t},e}}static getRuleOptionsSchema(e){return m(e)}static getRuleNumericSeverity(e){let t=Array.isArray(e)?e[0]:e;return o.has(t)?o.get(t):typeof t==`string`?o.get(t.toLowerCase())??0:0}}return Bo={Config:S},Bo}var Uo,Wo;function Go(){if(Wo)return Uo;Wo=1;let e=pr(),{Config:t}=Ho();function n(e,t){return e.line-t.line||e.column-t.column}function r(e){let t=/* @__PURE__ */ 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 i(t,n,r){let i=n.value.trim(),a=r.text.indexOf(i,r.getRange(n.node)[0]);return t.map(t=>{let{ruleId:n}=t,r=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${e(n)}\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:`'${n}'`,fix:{range:[d,f],text:``},unprocessedDirective:t.unprocessedDirective}})}function a(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 o(e,t){return r(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?i(e,n,t):[a(e,n.node,t)]})}function s(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ 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 c(e){if(e.directives.length===0)return{problems:e.problems.slice(),unusedDirectives:[]};let t=[],r=/* @__PURE__ */ new Set,{sourceCode:i}=e;for(let i of e.problems){let a=[],o=0;for(;o<e.directives.length&&n(e.directives[o],i)<=0;){let t=e.directives[o++];if(t.ruleId===null||t.ruleId===i.ruleId)switch(t.type){case`disable`:a.push(t);break;case`enable`:a=[]}}if(a.length>0){let e=a.map(e=>({kind:`directive`,justification:e.unprocessedDirective.justification}));i.suppressions?i.suppressions=i.suppressions.concat(e):(i.suppressions=e,r.add(a.at(-1)))}t.push(i)}let a=e.directives.filter(t=>t.type===`disable`&&!r.has(t)&&!e.rulesToIgnore.has(t.ruleId)),c=new Set(e.directives.filter(t=>t.unprocessedDirective.type===`enable`&&!e.rulesToIgnore.has(t.ruleId)));if(c.size>0)for(let t of s(e.directives))c.delete(t);let l=o(a,i).concat(o(c,i)),u=e.language.columnStart===1?0:1,d=e.language.lineStart===1?0:1;return{problems:t,unusedDirectives:l.map(({description:t,fix:n,unprocessedDirective:r})=>{let{parentDirective:a,type:o,line:s,column:c}=r,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=i.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,...e.disableFixes?{}:{fix:n}}})}}return Uo=({language:e,sourceCode:r,directives:i,disableFixes:a,problems:o,configuredRules:s,ruleFilter:l,reportUnusedDisableDirectives:u=`off`})=>{let d=i.filter(e=>e.type===`disable`||e.type===`enable`).map(e=>Object.assign({},e,{unprocessedDirective:e})).sort(n),f=i.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(n),p=s&&l?new Set(Object.keys(s).filter(e=>{let n=t.getRuleNumericSeverity(s[e]);return n!==0&&!l({severity:n,ruleId:e})})):/* @__PURE__ */ new Set;p.size>0&&p.add(null);let m=c({language:e,sourceCode:r,problems:o,directives:d,disableFixes:a,reportUnusedDisableDirectives:u,rulesToIgnore:p}),h=c({language:e,sourceCode:r,problems:m.problems,directives:f,disableFixes:a,reportUnusedDisableDirectives:u,rulesToIgnore:p});return u===`off`?h.problems:h.problems.concat(m.unusedDirectives).concat(h.unusedDirectives).sort(n)},Uo}var Ko,qo;function Jo(){if(qo)return Ko;qo=1;let e=Ke()(`eslint:source-code-fixer`);function t(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function n(e,t){return e.line-t.line||e.column-t.column}function r(){Object.freeze(this)}return r.applyFixes=function(r,i,a){if(e(`Applying fixes`),a===!1)return e(`shouldFix parameter was false, not attempting fixes`),{fixed:!1,messages:i,output:r};let o=[],s=[],c=r.startsWith(``)?``:``,l=c?r.slice(1):r,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(i.forEach(e=>{Object.hasOwn(e,`fix`)&&e.fix?s.push(e):o.push(e)}),s.length){e(`Found fixes to apply`);let r=!1;for(let e of s.sort(t))typeof a!=`function`||a(e)?(f(e),r=!0):o.push(e);return d+=l.slice(Math.max(0,u)),{fixed:r,messages:o.sort(n),output:d}}return e(`No fixes to apply`),{fixed:!1,messages:i,output:c+l}},Ko=r,Ko}var Yo,Xo;function Zo(){if(Xo)return Yo;Xo=1;let e=Object.freeze([]),t=/* @__PURE__ */ new WeakMap;function n(e){return t.get(e)}function r(e,n){t.set(e,n)}function i(e,t){e!==null&&(typeof e==`object`||typeof e==`function`)&&(e.ruleId=t)}function a(e,n){let r=t.get(n);r!==void 0&&i(e,r)}class o{#e=/* @__PURE__ */ new Map;add(e,t){let n=this.#e.get(e);n?n.push(t):this.#e.set(e,[t])}get(t){return this.#e.get(t)??e}forEachName(e){this.#e.forEach((t,n)=>{e(n)})}callSync(e,...t){let n=this.#e.get(e);if(n){if(t.length===1){let e=t[0];for(let t=0;t<n.length;t++){let r=n[t];try{r(e)}catch(e){throw a(e,r),e}}}else for(let e=0;e<n.length;e++){let r=n[e];try{r(...t)}catch(e){throw a(e,r),e}}}}}return Yo={SourceCodeVisitor:o,getListenerRuleId:n,setListenerRuleId:r,attachRuleId:i},Yo}var Qo,$o;function es(){if($o)return Qo;$o=1;function e(){return U.hrtime()}function t(e){let t=U.hrtime(e);return t[0]*1e3+t[1]/1e6}return Qo={startTime:e,endTime:t},Qo}var ts,ns;function rs(){if(ns)return ts;ns=1;let{startTime:e,endTime:t}=es(),n=!!U.env.TIMING;function r(){if(typeof U.env.TIMING!=`string`)return 10;if(U.env.TIMING.toLowerCase()===`all`)return 1/0;let e=Number.parseInt(U.env.TIMING,10);return e>10?e:10}return ts=(function(){let i=Object.create(null);function a(r,a,o){return function(...s){let c=e(),l=a(...s),u=t(c);return n&&(i[r]===void 0&&(i[r]=0),i[r]+=u),o?{result:l,tdiff:u}:l}}function o(){return{...i}}function s(e){for(let[t,n]of Object.entries(e))i[t]===void 0&&(i[t]=0),i[t]+=n}function c(){}return{time:a,enabled:n,getListSize:r,getData:o,mergeData:s,disableDisplay:c}})(),ts}var is={},as={},os,ss;function cs(){if(ss)return os;ss=1;let e=Ke()(`eslint:rules`);class t extends Map{constructor(n){let r=n.length;super(e.enabled?n.map(([t,n])=>{let i=null;return[t,()=>(i||=(e(`Loading rule %o (remaining=%d)`,t,--r),n()),i)]}):n),Object.defineProperty(t.prototype,"set",{configurable:!0,value:void 0})}get(e){let t=super.get(e);return t&&t()}*values(){for(let e of super.values())yield e()}*entries(){for(let[e,t]of super.entries())yield[e,t()]}forEach(e,t){for(let[n,r]of super.entries())e.call(t,r(),n,this)}}return Object.defineProperties(t.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:t.prototype.entries}}),os={LazyLoadingRuleMap:t},os}var ls={exports:{}},us={},ds={exports:{}},fs;function ps(){return fs||(fs=1,(function(){function e(e){if(e==null)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`CallExpression`:case`ConditionalExpression`:case`FunctionExpression`:case`Identifier`:case`Literal`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`ObjectExpression`:case`SequenceExpression`:case`ThisExpression`:case`UnaryExpression`:case`UpdateExpression`:return!0}return!1}function t(e){if(e==null)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:return!0}return!1}function n(e){if(e==null)return!1;switch(e.type){case`BlockStatement`:case`BreakStatement`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`ForInStatement`:case`ForStatement`:case`IfStatement`:case`LabeledStatement`:case`ReturnStatement`:case`SwitchStatement`:case`ThrowStatement`:case`TryStatement`:case`VariableDeclaration`:case`WhileStatement`:case`WithStatement`:return!0}return!1}function r(e){return n(e)||e!=null&&e.type===`FunctionDeclaration`}function i(e){switch(e.type){case`IfStatement`:return e.alternate==null?e.consequent:e.alternate;case`LabeledStatement`:case`ForStatement`:case`ForInStatement`:case`WhileStatement`:case`WithStatement`:return e.body}return null}function a(e){var t;if(e.type!==`IfStatement`||e.alternate==null)return!1;t=e.consequent;do{if(t.type===`IfStatement`&&t.alternate==null)return!0;t=i(t)}while(t);return!1}ds.exports={isExpression:e,isStatement:n,isIterationStatement:t,isSourceElement:r,isProblematicIfStatement:a,trailingStatement:i}})()),ds.exports}var ms={exports:{}},hs;function gs(){return hs||(hs=1,(function(){var e,t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},n,r,i,a;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function o(e){return 48<=e&&e<=57}function s(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function c(e){return e>=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function l(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function u(e){return e===10||e===13||e===8232||e===8233}function d(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r=Array(128),a=0;a<128;++a)r[a]=a>=97&&a<=122||a>=65&&a<=90||a===36||a===95;for(i=Array(128),a=0;a<128;++a)i[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===36||a===95;function f(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(d(e))}function p(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(d(e))}function m(t){return t<128?r[t]:e.NonAsciiIdentifierStart.test(d(t))}function h(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(d(t))}ms.exports={isDecimalDigit:o,isHexDigit:s,isOctalDigit:c,isWhiteSpace:l,isLineTerminator:u,isIdentifierStartES5:f,isIdentifierPartES5:p,isIdentifierStartES6:m,isIdentifierPartES6:h}})()),ms.exports}var _s={exports:{}},vs;function ys(){return vs||(vs=1,(function(){var e=gs();function t(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`let`:return!0;default:return!1}}function n(e,t){return!t&&e===`yield`?!1:r(e,t)}function r(e,n){if(n&&t(e))return!0;switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e==="default"||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}}function i(e,t){return e===`null`||e===`true`||e===`false`||n(e,t)}function a(e,t){return e===`null`||e===`true`||e===`false`||r(e,t)}function o(e){return e===`eval`||e===`arguments`}function s(t){var n,r,i;if(t.length===0||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function c(e,t){return(e-55296)*1024+(t-56320)+65536}function l(t){var n,r,i,a,o;if(t.length===0)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(i=t.charCodeAt(n),55296<=i&&i<=56319){if(++n,n>=r||(a=t.charCodeAt(n),!(56320<=a&&a<=57343)))return!1;i=c(i,a)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function u(e,t){return s(e)&&!i(e,t)}function d(e,t){return l(e)&&!a(e,t)}_s.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:o,isIdentifierNameES5:s,isIdentifierNameES6:l,isIdentifierES5:u,isIdentifierES6:d}})()),_s.exports}var bs;function xs(){return bs||(bs=1,(function(){us.ast=ps(),us.code=gs(),us.keyword=ys()})()),us}var Ss={},Cs={exports:{}},ws;function Ts(){return ws||(ws=1,(function(e,t){(function(e,n){n(t)})(this,(function(e){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,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,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,233,0,3,0,8,1,6,0,475,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,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],r=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=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 h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e){return e===10||e===13||e===8232||e===8233}function w(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(C(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var T=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,E=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,O=D.hasOwnProperty,k=D.toString,A=Object.hasOwn||(function(e,t){return O.call(e,t)}),j=Array.isArray||(function(e){return k.call(e)===`[object Array]`}),M=Object.create(null);function N(e){return M[e]||(M[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var F=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var ee=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function L(e,t){for(var n=1,r=0;;){var i=w(e,r,t);if(i<0)return new I(n,t-r);++n,r=i}}var R={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},te=!1;function z(e){var t={};for(var n in R)t[n]=e&&A(e,n)?e[n]:R[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!te&&typeof console==`object`&&console.warn&&(te=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
111
+ 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),j(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(j(t.onComment)&&(t.onComment=ne(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function ne(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 ee(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var re=1,B=2,V=4,ie=8,ae=16,oe=32,H=64,se=128,ce=256,le=512,ue=1024,de=re|B|ce;function U(e,t){return B|(e?V:0)|(t?ie:0)}var fe=0,pe=1,me=2,he=3,ge=4,_e=5,ve=function(e,t,n){this.options=e=z(e),this.sourceFile=e.sourceFile,this.keywords=N(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=N(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=N(i),this.reservedWordsStrictBind=N(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
112
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.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(this.options.sourceType===`commonjs`?B:re),this.regexpState=null,this.privateNameStack=[]},ye={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ve.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ye.inFunction.get=function(){return(this.currentVarScope().flags&B)>0},ye.inGenerator.get=function(){return(this.currentVarScope().flags&ie)>0},ye.inAsync.get=function(){return(this.currentVarScope().flags&V)>0},ye.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ce|le))return!1;if(t&B)return(t&V)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ye.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&re)},ye.allowSuper.get=function(){return(this.currentThisScope().flags&H)>0||this.options.allowSuperOutsideMethod},ye.allowDirectSuper.get=function(){return(this.currentThisScope().flags&se)>0},ye.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ye.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ce|le)||t&B&&!(t&ae))return!0}return!1},ye.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&ue||!this.inModule&&e&re)},ye.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ce)>0},ve.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},ve.parse=function(e,t){return new this(t,e).parse()},ve.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},ve.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ve.prototype,ye);var W=ve.prototype,be=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;W.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=be.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){E.lastIndex=e+t[0].length;var n=E.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,E.lastIndex=e,e+=E.exec(this.input)[0].length,this.input[e]===`;`&&e++}},W.eat=function(e){return this.type===e&&(this.next(),!0)},W.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},W.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},W.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},W.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},W.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},W.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},W.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},W.expect=function(e){this.eat(e)||this.unexpected()},W.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var xe=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};W.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`)}},W.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`)},W.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`)},W.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var G=ve.prototype;G.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==b.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===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var K={kind:`loop`},q={kind:`switch`};G.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;E.lastIndex=this.pos;var t=E.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(f(r)){var i=n;do n+=r<=65535?1:2;while(p(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!c.test(a))return!0}return!1},G.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;E.lastIndex=this.pos;var e=E.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.fullCharCodeAt(t+8))||n===92))},G.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;E.lastIndex=this.pos;var n=E.exec(this.input),r=this.pos+n[0].length;if(x.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||p(a=this.fullCharCodeAt(i))||a===92)return!1;E.lastIndex=i;var o=E.exec(this.input);if(r=i+o[0].length,o&&x.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!f(s)&&s!==92)return!1;var l=r;do r+=s<=65535?1:2;while(p(s=this.fullCharCodeAt(r)));if(s===92)return!0;var u=this.input.slice(l,r);return!(c.test(u)||t&&u===`of`)},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=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){E.lastIndex=this.pos;var o=E.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,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'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===b.name&&d.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},G.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.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(K),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.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(K),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._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.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new xe,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),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===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._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,J|(n?0:Ce),!1,t)},G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},G.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},G.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(q),this.enterScope(ue);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._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(b.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(),x.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 Se=[];G.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?oe:0),this.checkLValPattern(e,t?ge:me),this.expect(b.parenR),e},G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.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(b._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(K),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===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}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(b.braceL),e&&this.enterScope(0);this.type!==b.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(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},G.parseForIn=function(e,t){var n=this.type===b._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(b.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(b.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==b._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(b.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`?pe:me,!1)};var J=1,Ce=2,Y=4;G.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Ce&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&J&&(e.id=t&Y&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Ce)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?pe:me:he));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(e.async,e.generator)),t&J||(e.id=this.type===b.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&J?`FunctionDeclaration`:`FunctionExpression`)},G.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.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(b.braceL);this.type!==b.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`&&we(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(b.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(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.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===b.parenL||o!==`method`||i||a){var l=!n.static&&X(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===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},G.parseClassElementName=function(e){this.type===b.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&&X(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 X(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&X(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)?(this.enterScope(le|H),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(ce|H);this.type!==b.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===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,me,!1)):(t===!0&&this.unexpected(),e.id=null)},G.parseClassSuper=function(e){e.superClass=this.eat(b._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];A(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function we(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?!0:(e[n]=i,!1)}function X(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}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!==b.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(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._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!==b.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===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,J|Y,!1,e)}if(this.type===b._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),A(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(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},G.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=Se,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.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,me),this.finishNode(e,`ImportSpecifier`)},G.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,me),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,me),this.finishNode(e,`ImportNamespaceSpecifier`)},G.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},G.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},n=!0;!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;A(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===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},G.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return F.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 Te=ve.prototype;Te.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},Te.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},Te.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Te.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Te.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Te.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(b.comma),t&&this.type===b.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},Te.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Te.parseBindingListItem=function(e){return e},Te.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Te.checkLValSimple=function(e,t,n){t===void 0&&(t=fe);var r=t!==fe;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===me&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(A(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==_e&&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`)}},Te.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=fe),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)}},Te.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=fe),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 Ee=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},De={b_stat:new Ee(`{`,!1),b_expr:new Ee(`{`,!0),b_tmpl:new Ee("${",!1),p_stat:new Ee(`(`,!1),p_expr:new Ee(`(`,!0),q_tmpl:new Ee("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ee(`function`,!1),f_expr:new Ee(`function`,!0),f_expr_gen:new Ee(`function`,!0,!1,null,!0),f_gen:new Ee(`function`,!1,!1,null,!0)},Oe=ve.prototype;Oe.initialContext=function(){return[De.b_stat]},Oe.curContext=function(){return this.context[this.context.length-1]},Oe.braceIsBlock=function(e){var t=this.curContext();return t===De.f_expr||t===De.f_stat?!0:e===b.colon&&(t===De.b_stat||t===De.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===De.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Oe.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},Oe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Oe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===De.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?De.b_stat:De.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(De.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?De.p_stat:De.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===De.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==De.b_stat)?this.context.push(De.f_expr):this.context.push(De.f_stat),this.exprAllowed=!1},b.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===De.q_tmpl?this.context.pop():this.context.push(De.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===De.f_expr?this.context[t]=De.f_expr_gen:this.context[t]=De.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Z=ve.prototype;Z.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=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},Z.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},Z.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 xe,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.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===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.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},Z.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(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},Z.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)},Z.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.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===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.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},Z.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`)},Z.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.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`&&ke(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ae(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function ke(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&ke(e.expression)}function Ae(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ae(e.expression)||e.type===`ParenthesizedExpression`&&Ae(e.expression)}Z.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},Z.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}},Z.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},Z.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},Z.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new xe,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.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===b.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},Z.parseExprAtom=function(e,t,n){this.type===b.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(r,`Super`);case b._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case b.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(b._function))return this.overrideContext(De.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===b.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case b.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return r=this.startNode(),r.value=this.type===b._null?null:this.type===b._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case b.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 b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case b.braceL:return this.overrideContext(De.b_expr),this.parseObj(!1,e);case b._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},Z.parseExprAtomDefault=function(){this.unexpected()},Z.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.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()},Z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},Z.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`)},Z.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`)},Z.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},Z.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Z.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new xe,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},Z.parseParenItem=function(e){return e},Z.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var je=[];Z.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===b.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),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):je,this.finishNode(e,`NewExpression`)},Z.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
113
+ `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
114
+ `),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},Z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},Z.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},Z.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},Z.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},Z.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},Z.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},Z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},Z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Z.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t,r.generator)|H|(n?se:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},Z.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(U(n,!1)|ae),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},Z.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,_e),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},Z.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},Z.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,pe,t?null:n)}},Z.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},Z.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&de)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},Z.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},Z.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,e.name!==`class`&&e.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=b.name):this.unexpected(),e},Z.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},Z.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},Z.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var Me=ve.prototype;Me.raise=function(e,t){var n=L(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Me.raiseRecoverable=Me.raise,Me.curPosition=function(){if(this.options.locations)return new I(this.curLine,this.pos-this.lineStart)};var Ne=ve.prototype,Pe=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Ne.enterScope=function(e){this.scopeStack.push(new Pe(e))},Ne.exitScope=function(){this.scopeStack.pop()},Ne.treatFunctionsAsVarInScope=function(e){return e.flags&B||!this.inModule&&e.flags&re},Ne.declareName=function(e,t,n){var r=!1;if(t===me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&re&&delete this.undefinedExports[e]}else if(t===ge)this.currentScope().lexical.push(e);else if(t===he){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&oe&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&re&&delete this.undefinedExports[e],s.flags&de)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Ne.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Ne.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ne.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(de|le|ce))return t}},Ne.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(de|le|ce)&&!(t.flags&ae))return t}};var Fe=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new ee(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ie=ve.prototype;Ie.startNode=function(){return new Fe(this,this.start,this.startLoc)},Ie.startNodeAt=function(e,t){return new Fe(this,e,t)};function Le(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ie.finishNode=function(e,t){return Le.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ie.finishNodeAt=function(e,t,n,r){return Le.call(this,e,t,n,r)},Ie.copyNode=function(e){var t=new Fe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Re=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,ze=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Be=ze+` Extended_Pictographic`,Ve=Be,He=Ve+` EBase EComp EMod EPres ExtPict`,Ue=He,We={9:ze,10:Be,11:Ve,12:He,13:Ue,14:Ue},Ge={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},Ke=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,qe=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,Je=qe+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Ye=Je+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Xe=Ye+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Ze=Xe+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Qe={9:qe,10:Je,11:Ye,12:Xe,13:Ze,14:Ze+` `+Re},$e={};function et(e){var t=$e[e]={binary:N(We[e]+` `+Ke),binaryOfStrings:N(Ge[e]),nonBinary:{General_Category:N(Ke),Script:N(Qe[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var tt=0,nt=[9,10,11,12,13,14];tt<nt.length;tt+=1){var rt=nt[tt];et(rt)}var Q=ve.prototype,it=function(e,t){this.parent=e,this.base=t||this};it.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},it.prototype.sibling=function(){return new it(this.parent,this.base)};var at=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=$e[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};at.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},at.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},at.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},at.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},at.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},at.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},at.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},at.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},at.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},Q.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function ot(e){for(var t in e)return!0;return!1}Q.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&ot(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Q.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},Q.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new it(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},Q.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Q.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},Q.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Q.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},Q.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Q.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},Q.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Q.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Q.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},Q.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},Q.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&st(n);)t+=P(n),e.advance();return t};function st(e){return e===105||e===109||e===115}Q.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Q.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Q.regexp_eatSyntaxCharacter=function(e){var t=e.current();return ct(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ct(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Q.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!ct(n);)e.advance();return e.pos!==t},Q.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},Q.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Q.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},Q.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},Q.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),lt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function lt(e){return f(e,!0)||e===36||e===95}Q.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),ut(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ut(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}Q.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Q.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Q.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},Q.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Q.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Q.regexp_eatZero=function(e){return e.current()===48&&!St(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Q.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},Q.regexp_eatControlLetter=function(e){var t=e.current();return dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function dt(e){return e>=65&&e<=90||e>=97&&e<=122}Q.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ft(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function ft(e){return e>=0&&e<=1114111}Q.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},Q.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var pt=0,mt=1,ht=2;Q.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(gt(t))return e.lastIntValue=-1,e.advance(),mt;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===ht&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return pt};function gt(e){return e===100||e===68||e===115||e===83||e===119||e===87}Q.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),mt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return pt},Q.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Q.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return mt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return ht;e.raise(`Invalid property name`)},Q.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;_t(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function _t(e){return dt(e)||e===95}Q.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;vt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function vt(e){return _t(e)||St(e)}Q.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Q.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===ht&&e.raise(`Negated character class may contain strings`),!0}return!1},Q.regexp_classContents=function(e){return e.current()===93?mt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),mt)},Q.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},Q.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Tt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Q.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Q.regexp_classSetExpression=function(e){var t=mt,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===ht&&(t=ht);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==ht&&(t=mt):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===ht&&(t=ht)}},Q.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},Q.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?mt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Q.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===ht&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},Q.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},Q.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===ht&&(t=ht);return t},Q.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?mt:ht},Q.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&yt(n)||bt(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function yt(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function bt(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}Q.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return xt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function xt(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}Q.regexp_eatClassControlLetter=function(e){var t=e.current();return St(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},Q.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},Q.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;St(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function St(e){return e>=48&&e<=57}Q.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ct(n=e.current());)e.lastIntValue=16*e.lastIntValue+wt(n),e.advance();return e.pos!==t};function Ct(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function wt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Q.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},Q.regexp_eatOctalDigit=function(e){var t=e.current();return Tt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Tt(e){return e>=48&&e<=55}Q.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Ct(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+wt(i),e.advance()}return!0};var Et=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ee(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Dt=ve.prototype;Dt.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Et(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Dt.getToken=function(){return this.next(),new Et(this)},typeof Symbol<`u`&&(Dt[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),Dt.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Dt.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Dt.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},Dt.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Dt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=w(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Dt.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Dt.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&T.test(String.fromCharCode(e)))++this.pos;else break loop}}},Dt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Dt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},Dt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},Dt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},Dt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},Dt.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},Dt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},Dt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},Dt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},Dt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},Dt.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+P(t)+`'`)},Dt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+P(e)+`'`)},Dt.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Dt.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new at(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},Dt.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function Ot(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function kt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Dt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=kt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},Dt.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=kt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Ot(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},Dt.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Dt.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var At={};Dt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===At)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Dt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw At;this.raise(e,t)},Dt.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
115
+ `;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Dt.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(b.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
116
+ `&&++this.pos;case`
117
+ `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},Dt.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
118
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(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 C(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},Dt.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Dt.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(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){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?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=P(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Dt.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var jt=`8.16.0`;ve.acorn={Parser:ve,version:jt,defaultOptions:R,Position:I,SourceLocation:ee,getLineInfo:L,Node:Fe,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Ee,tokContexts:De,isIdentifierChar:p,isIdentifierStart:f,Token:Et,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:T};function Mt(e,t){return ve.parse(e,t)}function Nt(e,t,n){return ve.parseExpressionAt(e,t,n)}function Pt(e,t){return ve.tokenizer(e,t)}e.Node=Fe,e.Parser=ve,e.Position=I,e.SourceLocation=ee,e.TokContext=Ee,e.Token=Et,e.TokenType=m,e.defaultOptions=R,e.getLineInfo=L,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=T,e.parse=Mt,e.parseExpressionAt=Nt,e.tokContexts=De,e.tokTypes=b,e.tokenizer=Pt,e.version=jt}))})(Cs,Cs.exports)),Cs.exports}var Es={exports:{}},Ds,Os;function ks(){return Os||(Os=1,Ds={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}),Ds}var As;function js(){return As||(As=1,(function(e){let t=ks(),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=/* @__PURE__ */ new WeakMap;function a(e){e=e.Parser.acorn||e;let t=i.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,a=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new a(`jsxName`),jsxText:new a(`jsxText`,{beforeExpr:!0}),jsxTagStart:new a(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new a(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},i.set(e,t)}return t}function o(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return o(e.object)+`.`+o(e.property)}e.exports=function(e){return e||={},function(t){return s({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(Ts()).tokTypes},configurable:!0,enumerable:!0});function s(e,i){let s=i.acorn||Ts(),c=a(s),l=s.tokTypes,u=c.tokTypes,d=s.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=s.isNewLine,g=s.isIdentifierStart,_=s.isIdentifierChar;return class extends i{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
119
+ `:`\r
120
+ `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,i=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),n.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),r.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=t[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(a.name)!==o(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+o(i.name)+`>`)}let s=i.name?`Element`:`Fragment`;return n[`opening`+s]=i,n[`closing`+s]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+s)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}})(Es)),Es.exports}var Ms={},Ns;function Ps(){if(Ns)return Ms;Ns=1;let e={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],ExportAllDeclaration:[`exported`,`source`,`attributes`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`,`attributes`],ExportSpecifier:[`local`,`exported`],ExpressionStatement:[`expression`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportAttribute:[`key`,`value`],ImportDeclaration:[`specifiers`,`source`,`attributes`],ImportDefaultSpecifier:[`local`],ImportExpression:[`source`,`options`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:[],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`attributes`],JSXOpeningFragment:[],JSXSpreadAttribute:[`argument`],JSXSpreadChild:[`expression`],JSXText:[],LabeledStatement:[`label`,`body`],Literal:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],StaticBlock:[`body`],Super:[],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},t=Object.keys(e);for(let n of t)Object.freeze(e[n]);Object.freeze(e);let n=/* @__PURE__ */ new Set([`parent`,`leadingComments`,`trailingComments`]);function r(e){return!n.has(e)&&e[0]!==`_`}function i(e){return Object.keys(e).filter(r)}function a(t){let n=Object.assign({},e);for(let e of Object.keys(t))if(Object.hasOwn(n,e)){let r=new Set(t[e]);for(let t of n[e])r.add(t);n[e]=Object.freeze(Array.from(r))}else n[e]=Object.freeze(Array.from(t[e]));return Object.freeze(n)}return Ms.KEYS=e,Ms.getKeys=i,Ms.unionWith=a,Ms}var Fs;function Is(){return Fs||(Fs=1,(function(e){var t=Ts(),n=js(),r=/*@__PURE__*/ Ps();function i(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 a=/*#__PURE__*/ i(t);let o={Boolean:`Boolean`,Identifier:`Identifier`,PrivateIdentifier:`PrivateIdentifier`,Keyword:`Keyword`,Null:`Null`,Numeric:`Numeric`,Punctuator:`Punctuator`,String:`String`,RegularExpression:`RegularExpression`,Template:`Template`,JSXIdentifier:`JSXIdentifier`,JSXText:`JSXText`};function s(e,t){let n=e[0],r=e.at(-1),i={type:o.Template,value:t.slice(n.start,r.end)};return n.loc&&(i.loc={start:n.loc.start,end:r.loc.end}),n.range&&(i.start=n.range[0],i.end=r.range[1],i.range=[i.start,i.end]),i}class c{constructor(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}translate(e,t){let n=e.type,r=this._acornTokTypes,i=e;if(n===r.name)i.type=o.Identifier,`value`in e&&e.value===`static`&&(i.type=o.Keyword),t.ecmaVersion>5&&`value`in e&&(e.value===`yield`||e.value===`let`)&&(i.type=o.Keyword);else if(n===r.privateId)i.type=o.PrivateIdentifier;else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||`binop`in n&&n.binop&&!n.keyword||`isAssign`in n&&n.isAssign)i.type=o.Punctuator,i.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)i.type=o.JSXIdentifier;else if(n.label===`jsxText`||n===r.jsxAttrValueToken)i.type=o.JSXText;else if(n.keyword)i.type=n.keyword===`true`||n.keyword===`false`?o.Boolean:n.keyword===`null`?o.Null:o.Keyword;else if(n===r.num)i.type=o.Numeric,i.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,i.type=o.JSXText):i.type=o.String,i.value=this._code.slice(e.start,e.end);else if(n===r.regexp){i.type=o.RegularExpression;let t=`value`in e&&e.value;i.regex={flags:t.flags,pattern:t.pattern},i.value=`/${t.pattern}/${t.flags}`}return i}onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,a=()=>{r.push(s(this._tokens,this._code)),this._tokens=[]};e.type===n.eof?this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)):e.type===n.backQuote?(this._curlyBrace&&=(r.push(this.translate(this._curlyBrace,t)),null),i.push(e),i.length>1&&a()):e.type===n.dollarBraceL?(i.push(e),a()):e.type===n.braceR?(this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e):e.type===n.template||e.type===n.invalidTemplate?(this._curlyBrace&&=(i.push(this._curlyBrace),null),i.push(e)):(this._curlyBrace&&=(r.push(this.translate(this._curlyBrace,t)),null),r.push(this.translate(e,t)))}}let l=[3,5,6,7,8,9,10,11,12,13,14,15,16,17],u=l.at(-1);function d(){return u}function f(){return[...l]}function p(e=5){let t=e===`latest`?d():e;if(typeof t!=`number`)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!l.includes(t))throw Error(`Invalid ecmaVersion.`);return t}function m(e=`script`){if(e===`script`||e===`module`||e===`commonjs`)return e;throw Error(`Invalid sourceType.`)}function h(e){let t=p(e.ecmaVersion),n=m(e.sourceType),r=e.range===!0,i=e.loc===!0;if(t!==3&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(e.allowReserved!==void 0&&typeof e.allowReserved!=`boolean`)throw Error("`allowReserved`, when present, must be `true` or `false`");let a=t===3?e.allowReserved||`never`:!1,o=e.ecmaFeatures||{},s=e.sourceType===`commonjs`||!!o.globalReturn;if(n===`module`&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:i,allowReserved:a,allowReturnOutsideFunction:s})}let g=Symbol(`espree's internal state`),_=Symbol(`espree's esprimaFinishNode`);function v(e,t,n,r,i,a,o){let s;s=e?`Block`:o.slice(n,n+2)===`#!`?`Hashbang`:`Line`;let c={type:s,value:t};return typeof n==`number`&&(c.start=n,c.end=r,c.range=[n,r]),typeof i==`object`&&(c.loc={start:i,end:a}),c}var y=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){typeof e==`object`&&e||(e={}),typeof n!=`string`&&!(n instanceof String)&&(n=String(n));let r=e.sourceType,i=h(e),a=i.ecmaFeatures||{},o=i.tokens===!0?new c(t,n):null,s={originalSourceType:r||i.sourceType,tokens:o?[]:null,comments:i.comment===!0?[]:null,impliedStrict:a.impliedStrict===!0&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){o&&o.onToken(e,s),e.type!==t.eof&&(s.lastToken=e)},onComment(e,t,r,i,a,o){if(s.comments){let c=v(e,t,r,i,a,o,n);s.comments.push(c)}}},n),this[g]=s}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[g],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(e,t){let n=super.finishNode(e,t);return this[_](n)}finishNodeAt(e,t,n,r){let i=super.finishNodeAt(e,t,n,r);return this[_](i)}parse(){let e=this[g],t=super.parse();return t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),this[g].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[g].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){let r=e.acorn.getLineInfo(this.input,t),i=SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t=`Unexpected token`;if(e!=null){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
121
+ `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let n=super.jsx_readString(e);return this.type===t.string&&(this[g].jsxAttrValueToken=!0),n}[_](e){return e.type===`TemplateElement`&&this[g].templateElements.push(e),e.type.includes(`Function`)&&!(`generator`in e)&&(e.generator=!1),e}}};let b={_regular:null,_jsx:null,get regular(){if(this._regular===null){let e=y();this._regular=a.Parser.extend(e)}return this._regular},get jsx(){if(this._jsx===null){let e=y(),t=n();this._jsx=a.Parser.extend(t,e)}return this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function x(e,t){let n=b.get(t);return t&&t.tokens===!0||(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}function S(e,t){return new(b.get(t))(t,e).parse()}let C=/* #__PURE__ */ (function(){let e,t={};for(e in typeof Object.create==`function`&&(t=Object.create(null)),r.KEYS)Object.hasOwn(r.KEYS,e)&&(t[e]=e);return typeof Object.freeze==`function`&&Object.freeze(t),t})(),w=/* #__PURE__ */ d(),T=/* #__PURE__ */ f();Object.defineProperty(e,"VisitorKeys",{enumerable:!0,get:function(){return r.KEYS}}),e.Syntax=C,e.latestEcmaVersion=w,e.name=`espree`,e.parse=S,e.supportedEcmaVersions=T,e.tokenize=x,e.version=`11.2.0`})(Ss)),Ss}var Ls,Rs;function zs(){return Rs||(Rs=1,Ls={LATEST_ECMA_VERSION:2026}),Ls}var Bs;function $(){return Bs||(Bs=1,(function(e){let{KEYS:t}=/*@__PURE__*/ Ne(),n=xs(),r=/*@__PURE__*/ Is(),i=pr(),{breakableTypePattern:a,createGlobalLinebreakMatcher:o,lineBreakPattern:s,shebangPattern:c}=Gt(),l=Jt(),{LATEST_ECMA_VERSION:u}=zs(),d=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,f=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,p=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,m=/Array$/u,h=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,_=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,v=/^(?:eslint[- ]|(?:globals?|exported) )/u,y=/* @__PURE__ */ new Set([`\r
122
+ `,`\r`,`
123
+ `,`\u2028`,`\u2029`]),b=/* @__PURE__ */ new Set([`Program`,`BlockStatement`,`StaticBlock`,`SwitchCase`]),x=/* @__PURE__ */ new Set([`let`,`const`,`using`,`await using`]),S=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,C=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,w=/* @__PURE__ */ new Set([`&&=`,`||=`,`??=`]),T=l[`es${u}`];function E(e,t,n){let r=e.identifier,i=t===0||n[t-1].identifier!==r;return r&&e.init===!1&&e.isWrite()&&i}function D(e){let[t]=e;return t!==t.toLocaleLowerCase()}function O(e){return e.id&&D(e.id.name)}function k(e){for(let t=e;t;t=t.parent)if(d.test(t.type))return t;return null}function A(e){return!!(e&&d.test(e.type))}function j(e){return!!(e&&f.test(e.type))}function M(e){for(let t=e;t&&!A(t);t=t.parent)if(j(t))return!0;return!1}function N(e){return e.type===`Literal`&&e.value===null&&!e.regex&&!e.bigint}function P(e){return N(e)||e.type===`Identifier`&&e.name===`undefined`||e.type===`UnaryExpression`&&e.operator===`void`}function F(e){return e.parent.type===`CallExpression`&&e.parent.callee===e}function I(e){switch(e.type){case`Literal`:if(e.value===null){if(N(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}else return String(e.value);break;case`TemplateLiteral`:if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0].value.cooked}return null}function ee(e){let t;switch(e&&e.type){case`ChainExpression`:return ee(e.expression);case`Property`:case`PropertyDefinition`:case`MethodDefinition`:case`TSPropertySignature`:case`TSMethodSignature`:t=e.key;break;case`MemberExpression`:t=e.property}return t?t.type===`Identifier`&&!e.computed?t.name:I(t):null}function L(e){return e&&e.type===`ChainExpression`?e.expression:e}function R(e){let t=e;for(;t.type===`TSAsExpression`||t.type===`TSSatisfiesExpression`||t.type===`TSTypeAssertion`||t.type===`TSNonNullExpression`;)t=t.expression;return t}function te(e){let t=e;for(;(t.parent.type===`TSAsExpression`||t.parent.type===`TSSatisfiesExpression`||t.parent.type===`TSTypeAssertion`||t.parent.type===`TSNonNullExpression`||t.parent.type===`TSInstantiationExpression`)&&t.parent.expression===t;)t=t.parent;return t}function z(e,t){return typeof t==`string`?e===t:t.test(e)}function ne(e,t){return e.type===`Identifier`&&z(e.name,t)}function re(e,t,n){let r=L(e);if(r.type!==`MemberExpression`||t&&!ne(r.object,t))return!1;if(n){let e=ee(r);if(typeof e!=`string`||!z(e,n))return!1}return!0}function B(e,t){return e.regex||t.regex?!!(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value}function V(e,t,n=!1){if(e.type!==t.type)return e.type===`ChainExpression`?V(e.expression,t,n):t.type===`ChainExpression`&&V(e,t.expression,n);switch(e.type){case`Super`:case`ThisExpression`:return!0;case`Identifier`:case`PrivateIdentifier`:return e.name===t.name;case`Literal`:return B(e,t);case`ChainExpression`:return V(e.expression,t.expression,n);case`MemberExpression`:if(!n){let r=ee(e);if(r!==null)return V(e.object,t.object,n)&&r===ee(t)}return e.computed===t.computed&&V(e.object,t.object,n)&&V(e.property,t.property,n);default:return!1}}function ie(e){return re(e,`Reflect`,`apply`)}function ae(e){return re(e,m,`from`)}function oe(e){return re(e,`Array`,`fromAsync`)}function H(e){return re(e,null,p)}function se(e,t,n,r,i){let a=e.parent;return a.type===`CallExpression`&&a.arguments[i]===e&&re(a.callee,n,r)&&t.isGlobalReference(L(a.callee).object)}function ce(e,t){if(se(e,t,`Object`,`defineProperty`,2)||se(e,t,`Reflect`,`defineProperty`,2))return!0;let n=e.parent;if(n.type===`Property`&&n.value===e){let e=n.parent;if(e.type===`ObjectExpression`&&(se(e,t,`Object`,`create`,1)||se(e,t,`Object`,`defineProperties`,1)))return!0}return!1}function le(e){return t=>!e(t)}function ue(e,t){let n=e.getTokenBefore(t),r=e.getTokenAfter(t);return!!(n&&r)&&n.value===`(`&&n.range[1]<=t.range[0]&&r.value===`)`&&r.range[0]>=t.range[1]}function de(e){return e.value===`=`&&e.type===`Punctuator`}function U(e){return e.value===`=>`&&e.type===`Punctuator`}function fe(e){return e.value===`,`&&e.type===`Punctuator`}function pe(e){return e.value===`.`&&e.type===`Punctuator`}function me(e){return e.value===`?.`&&e.type===`Punctuator`}function he(e){return e.value===`;`&&e.type===`Punctuator`}function ge(e){return e.value===`:`&&e.type===`Punctuator`}function _e(e){return e.value===`(`&&e.type===`Punctuator`}function ve(e){return e.value===`)`&&e.type===`Punctuator`}function ye(e){return e.value===`[`&&e.type===`Punctuator`}function W(e){return e.value===`]`&&e.type===`Punctuator`}function be(e){return e.value===`{`&&e.type===`Punctuator`}function xe(e){return e.value===`}`&&e.type===`Punctuator`}function G(e){return e.type===`Line`||e.type===`Block`||e.type===`Shebang`}function K(e){return e.type===`Keyword`}function q(e){return e.type===`ExportDefaultDeclaration`||e.type===`ExportNamedDeclaration`||e.type===`ExportAllDeclaration`}function Se(e,t){let n=t.getTokenBefore(e,{includeComments:!0});return n&&n.type===`Block`&&n.value.charAt(0)===`*`&&e.loc.start.line-n.loc.end.line<=1?n:null}function J(e,t){let n=e.parent;switch(e.type){case`ClassDeclaration`:case`FunctionDeclaration`:return Se(q(n)?n:e,t);case`ClassExpression`:return Se(n.parent,t);case`ArrowFunctionExpression`:case`FunctionExpression`:if(n.type!==`CallExpression`&&n.type!==`NewExpression`){for(;!t.getCommentsBefore(n).length&&!/Function/u.test(n.type)&&n.type!==`MethodDefinition`&&n.type!==`Property`&&(n=n.parent,n););if(n&&n.type!==`FunctionDeclaration`&&n.type!==`Program`)return Se(n,t)}return Se(e,t);default:return null}}function Ce(e,t){let n=J(e,t);return n&&g.test(n.value)?!0:t.getCommentsBefore(e).some(e=>g.test(e.value))}function Y(e,t){if(e.type===`ArrowFunctionExpression`&&e.params.length===1){let n=t.getFirstToken(e.params[0]),r=t.getTokenBefore(n);return _e(r)?r:n}return e.id?t.getTokenAfter(e.id,_e):t.getFirstToken(e,_e)}function we(e,t,n){let r=n.getTokens(e),i=n.getTokens(t);if(r.length!==i.length)return!1;for(let e=0;e<r.length;++e)if(r[e].type!==i[e].type||r[e].value!==i[e].value)return!1;return!0}function X(e){return e.type===`LogicalExpression`&&(e.operator===`&&`||e.operator===`||`)}function Te(e){return e.type===`LogicalExpression`&&e.operator===`??`}function Ee(e,t){return X(e)&&Te(t)||Te(e)&&X(t)}function De(e){return w.has(e)}function Oe(e,t){return e.test?t.getTokenAfter(e.test,ge):t.getFirstToken(e,1)}function Z(e){return e.type===`Identifier`?e.name:e.value}function ke(e){return e.value===null?e.raw===`null`?!1:typeof e.regex==`object`||null:!!e.value}function Ae(e,t){switch(e.type){case`Literal`:return t===`||`&&ke(e)===!0||t===`&&`&&ke(e)===!1;case`UnaryExpression`:return t===`&&`&&e.operator===`void`;case`LogicalExpression`:return t===e.operator&&(Ae(e.left,t)||Ae(e.right,t));case`AssignmentExpression`:return[`||=`,`&&=`].includes(e.operator)&&t===e.operator.slice(0,-1)&&Ae(e.right,t)}return!1}function je(e,t){let n=e.references.find(e=>e.identifier===t);return!!(n&&n.resolved&&n.resolved.scope.type===`global`&&n.resolved.defs.length===0)}function Me(e,t,n){if(!t)return!0;switch(t.type){case`Literal`:case`ArrowFunctionExpression`:case`FunctionExpression`:return!0;case`ClassExpression`:case`ObjectExpression`:return!0;case`TemplateLiteral`:return n&&t.quasis.some(e=>e.value.cooked.length)||t.expressions.every(t=>Me(e,t,!1));case`ArrayExpression`:return n?!0:t.elements.every(t=>Me(e,t,!1));case`UnaryExpression`:return t.operator===`void`||t.operator===`typeof`&&n?!0:t.operator===`!`?Me(e,t.argument,!0):Me(e,t.argument,!1);case`BinaryExpression`:return Me(e,t.left,!1)&&Me(e,t.right,!1)&&t.operator!==`in`;case`LogicalExpression`:{let r=Me(e,t.left,n),i=Me(e,t.right,n),a=r&&Ae(t.left,t.operator),o=n&&i&&Ae(t.right,t.operator);return r&&i||a||o}case`NewExpression`:return n;case`AssignmentExpression`:return t.operator===`=`?Me(e,t.right,n):[`||=`,`&&=`].includes(t.operator)&&n?Ae(t.right,t.operator.slice(0,-1)):!1;case`SequenceExpression`:return Me(e,t.expressions.at(-1),n);case`SpreadElement`:return Me(e,t.argument,n);case`CallExpression`:return t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&(t.arguments.length===0||Me(e,t.arguments[0],!0))?je(e,t.callee):!1;case`Identifier`:return t.name===`undefined`&&je(e,t)}return!1}function Pe(e){if(e.type!==`ExpressionStatement`)return!1;let t=e.parent;return t.type===`Program`||t.type===`TSModuleBlock`||t.type===`BlockStatement`&&A(t.parent)}function Fe(e){return e.type===`ExpressionStatement`&&typeof e.directive==`string`}function Ie(e){let t=e.range[0],n=e;for(;(n=n.parent)&&n.range[0]===t;)if(n.type===`ExpressionStatement`)return!0;return!1}function Le(e){return e.type===`Punctuator`&&(e.value===`[`||e.value===`*`)||(e.type===`Identifier`||e.type===`Keyword`)&&(e.value===`in`||e.value===`instanceof`)}let Re;{let e=/* @__PURE__ */ new Set([`BreakStatement`,`ContinueStatement`]),t=/* @__PURE__ */ new Set([`ExportAllDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`]),n=/* @__PURE__ */ new Set([`Identifier`,`Keyword`]),r={__proto__:null,break:`BreakStatement`,continue:`ContinueStatement`,debugger:`DebuggerStatement`,do:`DoWhileStatement`,else:`IfStatement`,return:`ReturnStatement`,yield:`YieldExpression`},i=/* @__PURE__ */ new Set([`:`,`;`,`{`,`=>`,`++`,`--`]),a=/* @__PURE__ */ new Set([`DoWhileStatement`,`ForInStatement`,`ForOfStatement`,`ForStatement`,`IfStatement`,`WhileStatement`,`WithStatement`]),o=/* @__PURE__ */ new Set([`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAliasDeclaration`,`TSTypeAnnotation`]);function ze(e){for(let t=e;;){let{parent:e}=t;if(!e)break;if(o.has(e.type)&&t===e.typeAnnotation)return!0;t=e}return!1}Re=function(s,c){let l=s.getTokenBefore(c);if(!l||l.type===`Punctuator`&&i.has(l.value))return!1;let u=s.getNodeByRangeIndex(l.range[0]);if(u.parent.type===`PropertyDefinition`&&u.parent.key===u||u.type===`PropertyDefinition`&&W(l)||u.type===`TSDeclareFunction`||u.parent.type===`TSImportEqualsDeclaration`||u.parent.parent?.type===`TSImportEqualsDeclaration`||o.has(u.type)||ze(u))return!1;if(ve(l))return!a.has(u.type);if(xe(l))return u.type===`BlockStatement`&&u.parent.type===`FunctionExpression`&&u.parent.parent.type!==`MethodDefinition`||u.type===`ClassBody`&&u.parent.type===`ClassExpression`||u.type===`ObjectExpression`;if(n.has(l.type)){if(u.parent.type===`VariableDeclarator`&&!u.parent.init||e.has(u.parent.type))return!1;let t=l.value,n=r[t];return u.type!==n}return l.type!==`String`||!t.has(u.parent.type)}}function Be(e){let{parent:t}=e;if(t.type===`ImportAttribute`&&t.key===e)return!0;if(t.type===`Property`&&!t.computed&&(t.key===e||t.value===e&&t.shorthand&&!t.method)&&t.parent.type===`ObjectExpression`){let e=t.parent,n=e.parent;if(n.type===`ImportExpression`&&n.options===e)return!0;if(n.type===`Property`&&n.value===e)return Be(n.key)}return!1}e.exports={COMMENTS_IGNORE_PATTERN:_,LINEBREAKS:y,LINEBREAK_MATCHER:s,SHEBANG_MATCHER:c,STATEMENT_LIST_PARENTS:b,ECMASCRIPT_GLOBALS:T,isTokenOnSameLine(e,t){return e.loc.end.line===t.loc.start.line},isNullOrUndefined:P,isCallee:F,isES5Constructor:O,getUpperFunction:k,isFunction:A,isLoop:j,isInLoop:M,isArrayFromMethod:ae,isArrayFromAsyncMethod:oe,isPropertyDescriptor:ce,isParenthesised:ue,createGlobalLinebreakMatcher:o,equalTokens:we,isArrowToken:U,isClosingBraceToken:xe,isClosingBracketToken:W,isClosingParenToken:ve,isColonToken:ge,isCommaToken:fe,isCommentToken:G,isDotToken:pe,isQuestionDotToken:me,isKeywordToken:K,isNotClosingBraceToken:le(xe),isNotClosingBracketToken:le(W),isNotClosingParenToken:le(ve),isNotColonToken:le(ge),isNotCommaToken:le(fe),isNotDotToken:le(pe),isNotQuestionDotToken:le(me),isNotOpeningBraceToken:le(be),isNotOpeningBracketToken:le(ye),isNotOpeningParenToken:le(_e),isNotSemicolonToken:le(he),isOpeningBraceToken:be,isOpeningBracketToken:ye,isOpeningParenToken:_e,isSemicolonToken:he,isEqToken:de,isStringLiteral(e){return e.type===`Literal`&&typeof e.value==`string`||e.type===`TemplateLiteral`},isBreakableStatement(e){return a.test(e.type)},getModifyingReferences(e){return e.filter(E)},isSurroundedBy(e,t){return e[0]===t&&e.at(-1)===t},isDirectiveComment(e){let t=e.value.trim();return e.type===`Line`&&t.startsWith(`eslint-`)||e.type===`Block`&&v.test(t)},getTrailingStatement:n.ast.trailingStatement,getVariableByName(e,t){let n=e;for(;n;){let e=n.set.get(t);if(e)return e;n=n.upper}return null},isDefaultThisBinding(e,t,{capIsConstructor:n=!0}={}){if(e.parent.type===`PropertyDefinition`&&e.parent.value===e||e.type===`StaticBlock`||(e.type===`FunctionDeclaration`||e.type===`FunctionExpression`)&&e.params.some(e=>e.type===`Identifier`&&e.name===`this`)||n&&O(e)||Ce(e,t))return!1;let r=e.id===null,i=e;for(;i;){let e=i.parent;switch(e.type){case`LogicalExpression`:case`ConditionalExpression`:case`ChainExpression`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:case`TSInstantiationExpression`:i=e;break;case`ReturnStatement`:{let t=k(e);if(t===null)return!0;let n=te(t);if(!F(n))return!0;i=n.parent;break}case`ArrowFunctionExpression`:{if(i!==e.body)return!0;let t=te(e);if(!F(t))return!0;i=t.parent;break}case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return e.value!==i;case`AssignmentExpression`:case`AssignmentPattern`:{let t=R(e.left);return!(t.type===`MemberExpression`||n&&r&&t.type===`Identifier`&&D(t.name))}case`VariableDeclarator`:return!(n&&r&&e.init===i&&e.id.type===`Identifier`&&D(e.id.name));case`MemberExpression`:if(e.object===i&&re(e,null,h)){let t=e.parent.type===`ChainExpression`?e.parent:e;return!(F(t)&&t.parent.arguments.length>=1&&!P(R(t.parent.arguments[0])))}return!0;case`CallExpression`:return ie(e.callee)?e.arguments.length!==3||e.arguments[0]!==i||P(R(e.arguments[1])):ae(e.callee)||oe(e.callee)?e.arguments.length!==3||e.arguments[1]!==i||P(R(e.arguments[2])):!H(e.callee)||e.arguments.length!==2||e.arguments[0]!==i||P(R(e.arguments[1]));default:return!0}}
124
+ /* c8 ignore next */
125
+ return!0},getPrecedence(e){switch(e.type){case`SequenceExpression`:return 0;case`AssignmentExpression`:case`ArrowFunctionExpression`:case`YieldExpression`:return 1;case`ConditionalExpression`:return 3;case`LogicalExpression`:switch(e.operator){case`||`:case`??`:return 4;case`&&`:return 5}case`BinaryExpression`:switch(e.operator){case`|`:return 6;case`^`:return 7;case`&`:return 8;case`==`:case`!=`:case`===`:case`!==`:return 9;case`<`:case`<=`:case`>`:case`>=`:case`in`:case`instanceof`:return 10;case`<<`:case`>>`:case`>>>`:return 11;case`+`:case`-`:return 12;case`*`:case`/`:case`%`:return 13;case`**`:return 15}case`UnaryExpression`:case`AwaitExpression`:return 16;case`UpdateExpression`:return 17;case`CallExpression`:case`ChainExpression`:case`ImportExpression`:return 18;case`NewExpression`:return 19;default:return e.type in t?20:-1}},isEmptyBlock(e){return!!(e&&e.type===`BlockStatement`&&e.body.length===0)},isEmptyFunction(t){return A(t)&&e.exports.isEmptyBlock(t.body)},getDirectivePrologue(e){let t=[];if(e.type===`Program`||e.type===`FunctionDeclaration`||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`){let n=e.type===`Program`?e.body:e.body.body;for(let e of n)if(e.type===`ExpressionStatement`&&e.expression.type===`Literal`)t.push(e);else break}return t},isDecimalInteger(e){return e.type===`Literal`&&typeof e.value==`number`&&S.test(e.raw)},isDecimalIntegerNumericToken(e){return e.type===`Numeric`&&S.test(e.value)},getFunctionNameWithKind(e){let t=e.parent,n=[];if((t.type===`MethodDefinition`||t.type===`PropertyDefinition`||e.type===`TSPropertySignature`||e.type===`TSMethodSignature`)&&(t.static&&n.push(`static`),!t.computed&&t.key?.type===`PrivateIdentifier`&&n.push(`private`)),e.async&&n.push(`async`),e.generator&&n.push(`generator`),t.type===`Property`||t.type===`MethodDefinition`){if(t.kind===`constructor`)return`constructor`;t.kind===`get`?n.push(`getter`):t.kind===`set`?n.push(`setter`):n.push(`method`)}else e.type===`TSMethodSignature`?e.kind===`get`?n.push(`getter`):e.kind===`set`?n.push(`setter`):n.push(`method`):t.type===`PropertyDefinition`?n.push(`method`):(e.type===`ArrowFunctionExpression`&&n.push(`arrow`),n.push(`function`));if(t.type===`Property`||t.type===`MethodDefinition`||t.type===`PropertyDefinition`){if(!t.computed&&t.key.type===`PrivateIdentifier`)n.push(`#${t.key.name}`);else{let r=ee(t);r===null?e.id&&n.push(`'${e.id.name}'`):n.push(`'${r}'`)}}else e.type===`TSMethodSignature`?n.push(`'${ee(e)}'`):e.id&&n.push(`'${e.id.name}'`);return n.join(` `)},getFunctionHeadLoc(e,t){let n=e.parent,r,i;if(n.type===`Property`||n.type===`MethodDefinition`||n.type===`PropertyDefinition`||n.type===`TSPropertySignature`||n.type===`TSMethodSignature`)r=n.loc.start,i=Y(e,t).loc.start;else if(e.type===`ArrowFunctionExpression`){let n=t.getTokenBefore(e.body,U);r=n.loc.start,i=n.loc.end}else if(e.type===`TSFunctionType`){let n=t.getTokenBefore(e.returnType.typeAnnotation,U);r=n.loc.start,i=n.loc.end}else r=e.loc.start,i=Y(e,t).loc.start;return{start:Object.assign({},r),end:Object.assign({},i)}},getNextLocation(e,{line:t,column:n}){return n<e.lines[t-1].length?{line:t,column:n+1}:t<e.lines.length?{line:t+1,column:0}:null},getParenthesisedText(e,t){let n=e.getFirstToken(t),r=e.getLastToken(t);for(;e.getTokenBefore(n)&&e.getTokenBefore(n).type===`Punctuator`&&e.getTokenBefore(n).value===`(`&&e.getTokenAfter(r)&&e.getTokenAfter(r).type===`Punctuator`&&e.getTokenAfter(r).value===`)`;)n=e.getTokenBefore(n),r=e.getTokenAfter(r);return e.getText().slice(n.range[0],r.range[1])},couldBeError(t){switch(t.type){case`Identifier`:case`CallExpression`:case`NewExpression`:case`MemberExpression`:case`TaggedTemplateExpression`:case`YieldExpression`:case`AwaitExpression`:case`ChainExpression`:return!0;case`AssignmentExpression`:return[`=`,`&&=`].includes(t.operator)?e.exports.couldBeError(t.right):[`||=`,`??=`].includes(t.operator)?e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right):!1;case`SequenceExpression`:{let n=t.expressions;return n.length!==0&&e.exports.couldBeError(n.at(-1))}case`LogicalExpression`:return t.operator===`&&`?e.exports.couldBeError(t.right):e.exports.couldBeError(t.left)||e.exports.couldBeError(t.right);case`ConditionalExpression`:return e.exports.couldBeError(t.consequent)||e.exports.couldBeError(t.alternate);default:return!1}},isNumericLiteral(e){return e.type===`Literal`&&(typeof e.value==`number`||!!e.bigint)},canTokensBeAdjacent(e,t){let n={ecmaVersion:r.latestEcmaVersion,comment:!0,range:!0},i;if(typeof e==`string`){let t;try{t=r.tokenize(e,n)}catch{return!1}let a=t.comments;if(i=t.at(-1),a.length){let e=a.at(-1);(!i||e.range[0]>i.range[0])&&(i=e)}}else i=e;if(i.type===`Shebang`||i.type===`Hashbang`)return!1;let a;if(typeof t==`string`){let e;try{e=r.tokenize(t,n)}catch{return!1}let i=e.comments;if(a=e[0],i.length){let e=i[0];(!a||e.range[0]<a.range[0])&&(a=e)}}else a=t;if(i.type===`Punctuator`||a.type===`Punctuator`){if(i.type===`Punctuator`&&a.type===`Punctuator`){let e=/* @__PURE__ */ new Set([`+`,`++`]),t=/* @__PURE__ */ new Set([`-`,`--`]);return!(e.has(i.value)&&e.has(a.value)||t.has(i.value)&&t.has(a.value))}return i.type===`Punctuator`&&i.value===`/`?![`Block`,`Line`,`RegularExpression`].includes(a.type):!0}return!!(i.type===`String`||a.type===`String`||i.type===`Template`||a.type===`Template`||i.type!==`Numeric`&&a.type===`Numeric`&&a.value.startsWith(`.`)||i.type===`Block`||a.type===`Block`||a.type===`Line`||a.type===`PrivateIdentifier`)},getNameLocationInGlobalDirectiveComment(e,t,n){let r=RegExp(`[\\s,]${i(n)}(?:$|[\\s,:])`,`gu`);r.lastIndex=t.value.indexOf(`global`)+6;let a=r.exec(t.value),o=e.getLocFromIndex(t.range[0]+2+(a?a.index+1:0));return{start:o,end:{line:o.line,column:o.column+(a?n.length:1)}}},hasOctalOrNonOctalDecimalEscapeSequence(e){return C.test(e)},isStaticTemplateLiteral(e){return e.type===`TemplateLiteral`&&e.expressions.length===0},areBracesNecessary(e,t){function n(e){return e.type===`VariableDeclaration`?x.has(e.kind):e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`}function r(e){return e.value===`else`&&e.type===`Keyword`}function i(e){let n=t.getTokenAfter(e);return!!n&&r(n)}function a(e){switch(e.type){case`IfStatement`:return!e.alternate||a(e.alternate);case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:case`LabeledStatement`:case`WithStatement`:case`WhileStatement`:return a(e.body);default:return!1}}let o=e.body[0];return n(o)||a(o)&&i(e)},isReferenceToGlobalVariable:je,isLogicalExpression:X,isCoalesceExpression:Te,isMixedLogicalAndCoalesceExpressions:Ee,isNullLiteral:N,getStaticStringValue:I,getStaticPropertyName:ee,skipChainExpression:L,isSpecificId:ne,isSpecificMemberAccess:re,equalLiteralValue:B,isSameReference:V,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:Oe,getModuleExportName:Z,isConstant:Me,isTopLevelExpressionStatement:Pe,isDirective:Fe,isStartOfExpressionStatement:Ie,canContinueExpressionInClassBody:Le,needsPrecedingSemicolon:Re,isImportAttributeKey:Be,getOpeningParenOfParams:Y}})(ls)),ls.exports}var Vs,Hs;function Us(){if(Hs)return Vs;Hs=1;let e=$();function t(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||r.value!==i.value)return!1}return!0}function n(e,n){return typeof e==`string`&&typeof n==`string`?e===n:Array.isArray(e)&&Array.isArray(n)?t(e,n):!1}function r(e){return e.kind===`get`||e.kind===`set`}return Vs={meta:{type:`suggestion`,defaultOptions:[{enforceForTSTypes:!1,enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:`Enforce getter and setter pairs in objects and classes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/accessor-pairs`},schema:[{type:`object`,properties:{getWithoutSet:{type:`boolean`},setWithoutGet:{type:`boolean`},enforceForClassMembers:{type:`boolean`},enforceForTSTypes:{type:`boolean`}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:`Getter is not present in property descriptor.`,missingSetterInPropertyDescriptor:`Setter is not present in property descriptor.`,missingGetterInObjectLiteral:`Getter is not present for {{ name }}.`,missingSetterInObjectLiteral:`Setter is not present for {{ name }}.`,missingGetterInClass:`Getter is not present for class {{ name }}.`,missingSetterInClass:`Setter is not present for class {{ name }}.`,missingGetterInType:`Getter is not present for type {{ name }}.`,missingSetterInType:`Setter is not present for type {{ name }}.`}},create(t){let[{getWithoutSet:i,setWithoutGet:a,enforceForClassMembers:o,enforceForTSTypes:s}]=t.options,c=t.sourceCode;function l(n,r){n.type===`Property`?t.report({node:n,messageId:`${r}InObjectLiteral`,loc:e.getFunctionHeadLoc(n.value,c),data:{name:e.getFunctionNameWithKind(n.value)}}):n.type===`MethodDefinition`?t.report({node:n,messageId:`${r}InClass`,loc:e.getFunctionHeadLoc(n.value,c),data:{name:e.getFunctionNameWithKind(n.value)}}):n.type===`TSMethodSignature`?t.report({node:n,messageId:`${r}InType`,loc:e.getFunctionHeadLoc(n,c),data:{name:e.getFunctionNameWithKind(n)}}):t.report({node:n,messageId:`${r}InPropertyDescriptor`})}function u(e,t){for(let n of e)l(n,t)}function d(t){let o=[],s=!1;for(let i=0;i<t.length;i++){let a=t[i];if(r(a)){let t=e.getStaticPropertyName(a),r=t===null?c.getTokens(a.key):t;for(let e=0;e<o.length;e++){let t=o[e];if(n(t.key,r)){t.getters.push(...a.kind===`get`?[a]:[]),t.setters.push(...a.kind===`set`?[a]:[]),s=!0;break}}s||o.push({key:r,getters:a.kind===`get`?[a]:[],setters:a.kind===`set`?[a]:[]}),s=!1}}for(let{getters:e,setters:t}of o)a&&t.length&&!e.length&&u(t,`missingGetter`),i&&e.length&&!t.length&&u(e,`missingSetter`)}function f(e){d(e.properties.filter(e=>e.type===`Property`))}function p(t){let n=new Set(t.properties.filter(e=>e.type===`Property`&&e.kind===`init`).map(t=>e.getStaticPropertyName(t))),r=n.has(`get`),o=n.has(`set`);a&&o&&!r&&l(t,`missingGetter`),i&&r&&!o&&l(t,`missingSetter`)}function m(t){f(t),e.isPropertyDescriptor(t,c)&&p(t)}function h(e){let t=e.body.filter(e=>e.type===`MethodDefinition`);d(t.filter(e=>e.static)),d(t.filter(e=>!e.static))}function g(e){d((e.type===`TSTypeLiteral`?e.members:e.body).filter(e=>e.type===`TSMethodSignature`))}let _={};return(a||i)&&(_.ObjectExpression=m,o&&(_.ClassBody=h),s&&(_[`TSTypeLiteral, TSInterfaceBody`]=g)),_}},Vs}var Ws,Gs;function Ks(){if(Gs)return Ws;Gs=1;let e=$();return Ws={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-bracket-newline`,url:`https://eslint.style/rules/array-bracket-newline`}}]},type:`layout`,docs:{description:`Enforce linebreaks after opening and before closing array brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-bracket-newline`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`,`consistent`]},{type:`object`,properties:{multiline:{type:`boolean`},minItems:{type:[`integer`,`null`],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:`There should be no linebreak after '['.`,unexpectedClosingLinebreak:`There should be no linebreak before ']'.`,missingOpeningLinebreak:`A linebreak is required after '['.`,missingClosingLinebreak:`A linebreak is required before ']'.`}},create(t){let n=t.sourceCode;function r(e){let t=!1,n=!1,r;return e?e===`consistent`?(t=!0,r=1/0):e===`always`||e.minItems===0?r=0:e===`never`?r=1/0:(n=!!e.multiline,r=e.minItems||1/0):(t=!1,n=!0,r=1/0),{consistent:t,multiline:n,minItems:r}}function i(e){let t=r(e);return{ArrayExpression:t,ArrayPattern:t}}function a(r,i){t.report({node:r,loc:i.loc,messageId:`unexpectedOpeningLinebreak`,fix(t){let r=n.getTokenAfter(i,{includeComments:!0});return e.isCommentToken(r)?null:t.removeRange([i.range[1],r.range[0]])}})}function o(r,i){t.report({node:r,loc:i.loc,messageId:`unexpectedClosingLinebreak`,fix(t){let r=n.getTokenBefore(i,{includeComments:!0});return e.isCommentToken(r)?null:t.removeRange([r.range[1],i.range[0]])}})}function s(e,n){t.report({node:e,loc:n.loc,messageId:`missingOpeningLinebreak`,fix(e){return e.insertTextAfter(n,`
126
+ `)}})}function c(e,n){t.report({node:e,loc:n.loc,messageId:`missingClosingLinebreak`,fix(e){return e.insertTextBefore(n,`
127
+ `)}})}function l(r){let l=r.elements,u=i(t.options[0])[r.type],d=n.getFirstToken(r),f=n.getLastToken(r),p=n.getTokenAfter(d,{includeComments:!0}),m=n.getTokenBefore(f,{includeComments:!0}),h=n.getTokenAfter(d),g=n.getTokenBefore(f);l.length>=u.minItems||u.multiline&&l.length>0&&p.loc.start.line!==m.loc.end.line||l.length===0&&p.type===`Block`&&p.loc.start.line!==m.loc.end.line&&p===m||u.consistent&&d.loc.end.line!==h.loc.start.line?(e.isTokenOnSameLine(d,h)&&s(r,d),e.isTokenOnSameLine(g,f)&&c(r,f)):(e.isTokenOnSameLine(d,h)||a(r,d),e.isTokenOnSameLine(g,f)||o(r,f))}return{ArrayPattern:l,ArrayExpression:l}}},Ws}var qs,Js;function Ys(){if(Js)return qs;Js=1;let e=$();return qs={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-bracket-spacing`,url:`https://eslint.style/rules/array-bracket-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside array brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-bracket-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{singleValue:{type:`boolean`},objectsInArrays:{type:`boolean`},arraysInArrays:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:`There should be no space after '{{tokenValue}}'.`,unexpectedSpaceBefore:`There should be no space before '{{tokenValue}}'.`,missingSpaceAfter:`A space is required after '{{tokenValue}}'.`,missingSpaceBefore:`A space is required before '{{tokenValue}}'.`}},create(t){let n=t.options[0]===`always`,r=t.sourceCode;function i(e){return t.options[1]?t.options[1][e]===!n:!1}let a={spaced:n,singleElementException:i(`singleValue`),objectsInArraysException:i(`objectsInArrays`),arraysInArraysException:i(`arraysInArrays`)};function o(e,n){let i=r.getTokenAfter(n);t.report({node:e,loc:{start:n.loc.end,end:i.loc.start},messageId:`unexpectedSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.removeRange([n.range[1],i.range[0]])}})}function s(e,n){let i=r.getTokenBefore(n);t.report({node:e,loc:{start:i.loc.end,end:n.loc.start},messageId:`unexpectedSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.removeRange([i.range[1],n.range[0]])}})}function c(e,n){t.report({node:e,loc:n.loc,messageId:`missingSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function l(e,n){t.report({node:e,loc:n.loc,messageId:`missingSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function u(e){return e&&(e.type===`ObjectExpression`||e.type===`ObjectPattern`)}function d(e){return e&&(e.type===`ArrayExpression`||e.type===`ArrayPattern`)}function f(t){if(a.spaced&&t.elements.length===0)return;let n=r.getFirstToken(t),i=r.getFirstToken(t,1),f=t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),p=r.getTokenBefore(f),m=t.elements[0],h=t.elements.at(-1),g=a.objectsInArraysException&&u(m)||a.arraysInArraysException&&d(m)||a.singleElementException&&t.elements.length===1?!a.spaced:a.spaced,_=a.objectsInArraysException&&u(h)||a.arraysInArraysException&&d(h)||a.singleElementException&&t.elements.length===1?!a.spaced:a.spaced;e.isTokenOnSameLine(n,i)&&(g&&!r.isSpaceBetween(n,i)&&c(t,n),!g&&r.isSpaceBetween(n,i)&&o(t,n)),n!==p&&e.isTokenOnSameLine(p,f)&&(_&&!r.isSpaceBetween(p,f)&&l(t,f),!_&&r.isSpaceBetween(p,f)&&s(t,f))}return{ArrayPattern:f,ArrayExpression:f}}},qs}var Xs,Zs;function Qs(){if(Zs)return Xs;Zs=1;function e(e){for(let t of e)if(t.reachable)return!0;return!1}return Xs={isAnySegmentReachable:e},Xs}var $s,ec;function tc(){if(ec)return $s;ec=1;let e=$(),{isAnySegmentReachable:t}=Qs(),n=/^(?:Arrow)?FunctionExpression$/u,r=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function i(t){return e.isSpecificMemberAccess(t,null,r)}function a(e){return[`from`,`fromAsync`,`of`,`isArray`].includes(e)?`Array.${e}`:`Array.prototype.${e}`}function o(t){if(t.generator)return null;let n=t;for(;n;){let r=n.parent;switch(r.type){case`LogicalExpression`:case`ConditionalExpression`:case`ChainExpression`:n=r;break;case`ReturnStatement`:{let t=e.getUpperFunction(r);if(t===null||!e.isCallee(t))return null;n=t.parent;break}case`CallExpression`:if(!t.async){if(e.isArrayFromMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===n)return`from`;if(i(r.callee)&&r.arguments.length>=1&&r.arguments[0]===n)return e.getStaticPropertyName(r.callee)}return e.isArrayFromAsyncMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===n?`fromAsync`:null;default:return null}}
128
+ /* c8 ignore next */
129
+ return null}function s(e){return e.type===`UnaryExpression`&&e.operator===`void`}function c(t,n,r){let i=e.getPrecedence(n)<e.getPrecedence({type:`UnaryExpression`,operator:`void`})&&!e.isParenthesised(t,n),a=t.getTokenBefore(n,n.parent.type===`ArrowFunctionExpression`?e.isArrowToken:e=>e.type===`Keyword`&&e.value===`return`),o=t.getTokenAfter(a),s=a.value===`return`&&a.range[1]===o.range[0];return[r.insertTextBefore(o,`${s?` `:``}void ${i?`(`:``}`),r.insertTextAfter(n,i?`)`:``)]}function l(t,n,r){let i=t.getTokenBefore(n.body,e.isArrowToken),a=t.getTokenAfter(i),o=t.getLastToken(n);return[r.insertTextBefore(a,`{`),r.insertTextAfter(o,`}`)]}return $s={meta:{type:`problem`,defaultOptions:[{allowImplicit:!1,checkForEach:!1,allowVoid:!1}],docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:`https://eslint.org/docs/latest/rules/array-callback-return`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowImplicit:{type:`boolean`},checkForEach:{type:`boolean`},allowVoid:{type:`boolean`}},additionalProperties:!1}],messages:{expectedAtEnd:`{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.`,expectedInside:`{{arrayMethodName}}() expects a return value from {{name}}.`,expectedReturnValue:`{{arrayMethodName}}() expects a return value from {{name}}.`,expectedNoReturnValue:`{{arrayMethodName}}() expects no useless return value from {{name}}.`,wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(r){let[i]=r.options,u=r.sourceCode,d={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function f(n){if(!d.shouldCheck)return;let o={messageId:``,suggest:[]};if(d.arrayMethodName===`forEach`){if(i.checkForEach&&n.type===`ArrowFunctionExpression`&&n.expression){if(i.allowVoid){if(s(n.body))return;o.messageId=`expectedNoReturnValue`,o.suggest=[{messageId:`wrapBraces`,fix(e){return l(u,n,e)}},{messageId:`prependVoid`,fix(e){return c(u,n.body,e)}}]}else o.messageId=`expectedNoReturnValue`,o.suggest=[{messageId:`wrapBraces`,fix(e){return l(u,n,e)}}]}}else n.body.type===`BlockStatement`&&t(d.currentSegments)&&(o.messageId=d.hasReturn?`expectedAtEnd`:`expectedInside`);if(o.messageId){let t=e.getFunctionNameWithKind(n);r.report({node:n,loc:e.getFunctionHeadLoc(n,u),messageId:o.messageId,data:{name:t,arrayMethodName:a(d.arrayMethodName)},suggest:o.suggest.length===0?null:o.suggest})}}return{onCodePathStart(e,t){let r=null;n.test(t.type)&&(r=o(t)),d={arrayMethodName:r,upper:d,codePath:e,hasReturn:!1,shouldCheck:!!r,node:t,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(){d=d.upper},onUnreachableCodePathSegmentStart(e){d.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){d.currentSegments.delete(e)},onCodePathSegmentStart(e){d.currentSegments.add(e)},onCodePathSegmentEnd(e){d.currentSegments.delete(e)},ReturnStatement(t){if(!d.shouldCheck)return;d.hasReturn=!0;let n={messageId:``,suggest:[]};if(d.arrayMethodName===`forEach`){if(i.checkForEach&&t.argument){if(i.allowVoid){if(s(t.argument))return;n.messageId=`expectedNoReturnValue`,n.suggest=[{messageId:`prependVoid`,fix(e){return c(u,t.argument,e)}}]}else n.messageId=`expectedNoReturnValue`}}else!i.allowImplicit&&!t.argument&&(n.messageId=`expectedReturnValue`);n.messageId&&r.report({node:t,messageId:n.messageId,data:{name:e.getFunctionNameWithKind(d.node),arrayMethodName:a(d.arrayMethodName)},suggest:n.suggest.length===0?null:n.suggest})},"FunctionExpression:exit":f,"ArrowFunctionExpression:exit":f}}},$s}var nc,rc;function ic(){if(rc)return nc;rc=1;let e=$();return nc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-element-newline`,url:`https://eslint.style/rules/array-element-newline`}}]},type:`layout`,docs:{description:`Enforce line breaks after each array element`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-element-newline`},fixable:`whitespace`,schema:{definitions:{basicConfig:{oneOf:[{enum:[`always`,`never`,`consistent`]},{type:`object`,properties:{multiline:{type:`boolean`},minItems:{type:[`integer`,`null`],minimum:0}},additionalProperties:!1}]}},type:`array`,items:[{oneOf:[{$ref:`#/definitions/basicConfig`},{type:`object`,properties:{ArrayExpression:{$ref:`#/definitions/basicConfig`},ArrayPattern:{$ref:`#/definitions/basicConfig`}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:`There should be no linebreak here.`,missingLineBreak:`There should be a linebreak after this element.`}},create(t){let n=t.sourceCode;function r(e){let t=!1,n=!1,r,i=e||`always`;return i===`always`||i.minItems===0?r=0:i===`never`?r=1/0:i===`consistent`?(t=!0,r=1/0):(n=!!i.multiline,r=i.minItems||1/0),{consistent:t,multiline:n,minItems:r}}function i(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,n;return e.ArrayExpression&&(t=r(e.ArrayExpression)),e.ArrayPattern&&(n=r(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:n}}let t=r(e);return{ArrayExpression:t,ArrayPattern:t}}function a(r){let i=n.getTokenBefore(r,{includeComments:!0});t.report({loc:{start:i.loc.end,end:r.loc.start},messageId:`unexpectedLineBreak`,fix(t){if(e.isCommentToken(i))return null;if(!e.isTokenOnSameLine(i,r))return t.replaceTextRange([i.range[1],r.range[0]],` `);let a=n.getTokenBefore(i,{includeComments:!0});return e.isCommentToken(a)?null:t.replaceTextRange([a.range[1],i.range[0]],``)}})}function o(e){let r=n.getTokenBefore(e,{includeComments:!0});t.report({loc:{start:r.loc.end,end:e.loc.start},messageId:`missingLineBreak`,fix(t){return t.replaceTextRange([r.range[1],e.range[0]],`
130
+ `)}})}function s(r){let s=r.elements,c=i(t.options[0])[r.type];if(!c)return;let l=!1;c.multiline&&(l=s.filter(e=>e!==null).some(e=>e.loc.start.line!==e.loc.end.line));let u=0;for(let t=0;t<r.elements.length;t++){let i=r.elements[t],a=s[t-1];if(t===0||i===null||a===null)continue;let o=n.getFirstTokenBetween(a,i,e.isCommaToken),c=n.getTokenBefore(o),l=n.getTokenAfter(o);e.isTokenOnSameLine(c,l)||u++}let d=s.length>=c.minItems||c.multiline&&l||c.consistent&&u>0&&u<r.elements.length;s.forEach((t,r)=>{let i=s[r-1];if(r===0||t===null||i===null)return;let c=n.getFirstTokenBetween(i,t,e.isCommaToken),l=n.getTokenBefore(c),u=n.getTokenAfter(c);d?e.isTokenOnSameLine(l,u)&&o(u):e.isTokenOnSameLine(l,u)||a(u)})}return{ArrayPattern:s,ArrayExpression:s}}},nc}var ac,oc;function sc(){if(oc)return ac;oc=1;let e=$();return ac={meta:{type:`suggestion`,defaultOptions:[`as-needed`],docs:{description:`Require braces around arrow function bodies`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/arrow-body-style`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`never`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`as-needed`]},{type:`object`,properties:{requireReturnForObjectLiteral:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:`code`,messages:{unexpectedOtherBlock:`Unexpected block statement surrounding arrow body.`,unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:`Expected block statement surrounding arrow body.`}},create(t){let n=t.options,r=n[0]===`always`,i=n[0]===`as-needed`,a=n[0]===`never`,o=n[1]&&n[1].requireReturnForObjectLiteral,s=t.sourceCode,c=null;function l(e){return e&&e.type===`Punctuator`&&/^[([/`+-]/u.test(e.value)}function u(t){let n=t;for(;!e.isParenthesised(s,n);)n=n.parent;return s.getTokenAfter(n)}function d(e){return e&&e.parent?e.parent.type===`ForStatement`&&e.parent.init===e||d(e.parent):!1}function f(n){let f=n.body;if(f.type===`BlockStatement`){let r=f.body;if(r.length!==1&&!a||i&&o&&r[0].type===`ReturnStatement`&&r[0].argument&&r[0].argument.type===`ObjectExpression`)return;if(a||i&&r[0].type===`ReturnStatement`){let i;i=r.length===0?`unexpectedEmptyBlock`:r.length>1||r[0].type!==`ReturnStatement`?`unexpectedOtherBlock`:r[0].argument===null?`unexpectedSingleBlock`:e.isOpeningBraceToken(s.getFirstToken(r[0],{skip:1}))?`unexpectedObjectBlock`:`unexpectedSingleBlock`,t.report({node:n,loc:f.loc,messageId:i,fix(t){let i=[];if(r.length!==1||r[0].type!==`ReturnStatement`||!r[0].argument||l(s.getTokenAfter(f)))return i;let a=s.getFirstToken(f),o=s.getLastToken(f),u=s.getFirstToken(r[0],1),p=s.getLastToken(r[0]);return s.commentsExistBetween(a,u)||s.commentsExistBetween(p,o)?i.push(t.remove(a),t.remove(o),t.remove(s.getTokenAfter(a))):i.push(t.removeRange([a.range[0],u.range[0]]),t.removeRange([p.range[1],o.range[1]])),(e.isOpeningBraceToken(u)||r[0].argument.type===`SequenceExpression`||c.hasInOperator&&d(n))&&(e.isParenthesised(s,r[0].argument)||i.push(t.insertTextBefore(u,`(`),t.insertTextAfter(p,`)`))),e.isSemicolonToken(p)&&i.push(t.remove(p)),i}})}}else(r||i&&o&&f.type===`ObjectExpression`)&&t.report({node:n,loc:f.loc,messageId:`expectedBlock`,fix(t){let r=[],i=s.getTokenBefore(f,e.isArrowToken),[a,o]=s.getTokensAfter(i,{count:2}),c=s.getLastToken(n),l=null;if(e.isOpeningParenToken(a)&&e.isOpeningBraceToken(o)){let e=s.getNodeByRangeIndex(o.range[0]);e.type===`ObjectExpression`&&(l=e)}if(l){let n=a,i=o;e.isTokenOnSameLine(n,i)?r.push(t.replaceText(n,`{return `)):r.push(t.replaceText(n,`{`),t.insertTextBefore(i,`return `)),r.push(t.remove(u(l))),r.push(t.insertTextAfter(c,`}`))}else r.push(t.insertTextBefore(a,`{return `)),r.push(t.insertTextAfter(c,`}`));return r}})}return{"BinaryExpression[operator='in']"(){let e=c;for(;e;)e.hasInOperator=!0,e=e.upper},ArrowFunctionExpression(){c={upper:c,hasInOperator:!1}},"ArrowFunctionExpression:exit"(e){f(e),c=c.upper}}}},ac}var cc,lc;function uc(){if(lc)return cc;lc=1;let e=$();function t(e){return e.body.type===`BlockStatement`}return cc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`arrow-parens`,url:`https://eslint.style/rules/arrow-parens`}}]},type:`layout`,docs:{description:`Require parentheses around arrow function arguments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/arrow-parens`},fixable:`code`,schema:[{enum:[`always`,`as-needed`]},{type:`object`,properties:{requireForBlockBody:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{unexpectedParens:`Unexpected parentheses around single function argument.`,expectedParens:`Expected parentheses around arrow function argument.`,unexpectedParensInline:`Unexpected parentheses around single function argument having a body with no curly braces.`,expectedParensBlock:`Expected parentheses around arrow function argument having a body with curly braces.`}},create(n){let r=n.options[0]===`as-needed`,i=r&&n.options[1]&&n.options[1].requireForBlockBody===!0,a=n.sourceCode;function o(t){let n=a.getTokenBefore(t.params[0]);return n&&e.isOpeningParenToken(n)&&t.range[0]<=n.range[0]?n:null}function s(t){return a.getTokenAfter(t.params[0],e.isClosingParenToken)}function c(e,t){return a.commentsExistBetween(t,s(e))}function l(e,t){let n=+!!e.async;return a.getFirstToken(e,{skip:n})!==t}return{"ArrowFunctionExpression[params.length=1]"(u){let d=!r||i&&t(u),f=o(u),p=f!==null,[m]=u.params;d&&!p&&n.report({node:u,messageId:i?`expectedParensBlock`:`expectedParens`,loc:m.loc,*fix(e){yield e.insertTextBefore(m,`(`),yield e.insertTextAfter(m,`)`)}}),d||!p||m.type!==`Identifier`||m.typeAnnotation||u.returnType||c(u,f)||l(u,f)||n.report({node:u,messageId:i?`unexpectedParensInline`:`unexpectedParens`,loc:m.loc,*fix(t){let n=a.getTokenBefore(f),r=s(u);n&&n.range[1]===f.range[0]&&!e.canTokensBeAdjacent(n,a.getFirstToken(m))&&(yield t.insertTextBefore(f,` `)),yield t.removeRange([f.range[0],m.range[0]]),yield t.removeRange([m.range[1],r.range[1]])}})}}}},cc}var dc,fc;function pc(){if(fc)return dc;fc=1;let e=$();return dc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`arrow-spacing`,url:`https://eslint.style/rules/arrow-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after the arrow in arrow functions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/arrow-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!0},after:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{expectedBefore:`Missing space before =>.`,unexpectedBefore:`Unexpected space before =>.`,expectedAfter:`Missing space after =>.`,unexpectedAfter:`Unexpected space after =>.`}},create(t){let n=Object.assign({},t.options[0]);n.before=n.before!==!1,n.after=n.after!==!1;let r=t.sourceCode;function i(t){let n=r.getTokenBefore(t.body,e.isArrowToken);return{before:r.getTokenBefore(n),arrow:n,after:r.getTokenAfter(n)}}function a(e){return{before:e.arrow.range[0]-e.before.range[1],after:e.after.range[0]-e.arrow.range[1]}}function o(e){let r=i(e),o=a(r);n.before?o.before===0&&t.report({node:r.before,messageId:`expectedBefore`,fix(e){return e.insertTextBefore(r.arrow,` `)}}):o.before>0&&t.report({node:r.before,messageId:`unexpectedBefore`,fix(e){return e.removeRange([r.before.range[1],r.arrow.range[0]])}}),n.after?o.after===0&&t.report({node:r.after,messageId:`expectedAfter`,fix(e){return e.insertTextAfter(r.arrow,` `)}}):o.after>0&&t.report({node:r.after,messageId:`unexpectedAfter`,fix(e){return e.removeRange([r.arrow.range[1],r.after.range[0]])}})}return{ArrowFunctionExpression:o}}},dc}var mc,hc;function gc(){return hc||(hc=1,mc={meta:{type:`suggestion`,docs:{description:`Enforce the use of variables within the scope they are defined`,recommended:!1,url:`https://eslint.org/docs/latest/rules/block-scoped-var`},schema:[],messages:{outOfScope:`'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context.`}},create(e){let t=[],n=e.sourceCode;function r(e){t.push(e.range)}function i(){t.pop()}function a(t,n){let r=t.identifier,i=n.name.loc.start;e.report({node:r,messageId:`outOfScope`,data:{name:r.name,definitionLine:i.line,definitionColumn:i.column+1}})}function o(e){if(e.kind!==`var`)return;let r=t.at(-1);function i(e){let t=e.identifier.range;return t[0]<r[0]||t[1]>r[1]}let o=n.getDeclaredVariables(e);for(let t=0;t<o.length;++t)o[t].references.filter(i).forEach(n=>a(n,o[t].defs.find(t=>t.parent===e)))}return{Program(e){t=[e.range]},BlockStatement:r,"BlockStatement:exit":i,ForStatement:r,"ForStatement:exit":i,ForInStatement:r,"ForInStatement:exit":i,ForOfStatement:r,"ForOfStatement:exit":i,SwitchStatement:r,"SwitchStatement:exit":i,CatchClause:r,"CatchClause:exit":i,StaticBlock:r,"StaticBlock:exit":i,VariableDeclaration:o}}}),mc}var _c,vc;function yc(){if(vc)return _c;vc=1;let e=$();return _c={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`block-spacing`,url:`https://eslint.style/rules/block-spacing`}}]},type:`layout`,docs:{description:`Disallow or enforce spaces inside of blocks after opening block and before closing block`,recommended:!1,url:`https://eslint.org/docs/latest/rules/block-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{missing:`Requires a space {{location}} '{{token}}'.`,extra:`Unexpected space(s) {{location}} '{{token}}'.`}},create(t){let n=t.options[0]!==`never`,r=n?`missing`:`extra`,i=t.sourceCode;function a(e){return e.type===`SwitchStatement`?e.cases.length>0?i.getTokenBefore(e.cases[0]):i.getLastToken(e,1):e.type===`StaticBlock`?i.getFirstToken(e,{skip:1}):i.getFirstToken(e)}function o(t,r){return!e.isTokenOnSameLine(t,r)||i.isSpaceBetween(t,r)===n}function s(e){let s=a(e),c=i.getLastToken(e),l=i.getTokenAfter(s,{includeComments:!0}),u=i.getTokenBefore(c,{includeComments:!0});if(s.type===`Punctuator`&&s.value===`{`&&c.type===`Punctuator`&&c.value===`}`&&l!==c&&(n||l.type!==`Line`)){if(!o(s,l)){let i=s.loc;r===`extra`&&(i={start:s.loc.end,end:l.loc.start}),t.report({node:e,loc:i,messageId:r,data:{location:`after`,token:s.value},fix(e){return n?e.insertTextBefore(l,` `):e.removeRange([s.range[1],l.range[0]])}})}if(!o(u,c)){let i=c.loc;r===`extra`&&(i={start:u.loc.end,end:c.loc.start}),t.report({node:e,loc:i,messageId:r,data:{location:`before`,token:c.value},fix(e){return n?e.insertTextAfter(u,` `):e.removeRange([u.range[1],c.range[0]])}})}}}return{BlockStatement:s,StaticBlock:s,SwitchStatement:s}}},_c}var bc,xc;function Sc(){if(xc)return bc;xc=1;let e=$();return bc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`brace-style`,url:`https://eslint.style/rules/brace-style`}}]},type:`layout`,docs:{description:`Enforce consistent brace style for blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/brace-style`},schema:[{enum:[`1tbs`,`stroustrup`,`allman`]},{type:`object`,properties:{allowSingleLine:{type:`boolean`,default:!1}},additionalProperties:!1}],fixable:`whitespace`,messages:{nextLineOpen:`Opening curly brace does not appear on the same line as controlling statement.`,sameLineOpen:`Opening curly brace appears on the same line as controlling statement.`,blockSameLine:`Statement inside of curly braces should be on next line.`,nextLineClose:`Closing curly brace does not appear on the same line as the subsequent block.`,singleLineClose:`Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.`,sameLineClose:`Closing curly brace appears on the same line as the subsequent block.`}},create(t){let n=t.options[0]||`1tbs`,r=t.options[1]||{},i=t.sourceCode;function a(e,t){let n=[e.range[1],t.range[0]];return i.text.slice(n[0],n[1]).trim()?null:e=>e.replaceTextRange(n,` `)}function o(o,s){let c=i.getTokenBefore(o),l=i.getTokenAfter(o),u=i.getTokenBefore(s),d=r.allowSingleLine&&e.isTokenOnSameLine(o,s);n!==`allman`&&!e.isTokenOnSameLine(c,o)&&t.report({node:o,messageId:`nextLineOpen`,fix:a(c,o)}),n===`allman`&&e.isTokenOnSameLine(c,o)&&!d&&t.report({node:o,messageId:`sameLineOpen`,fix:e=>e.insertTextBefore(o,`
131
+ `)}),e.isTokenOnSameLine(o,l)&&l!==s&&!d&&t.report({node:o,messageId:`blockSameLine`,fix:e=>e.insertTextAfter(o,`
132
+ `)}),u!==o&&!d&&e.isTokenOnSameLine(u,s)&&t.report({node:s,messageId:`singleLineClose`,fix:e=>e.insertTextBefore(s,`
133
+ `)})}function s(r){let o=i.getTokenAfter(r);n===`1tbs`&&!e.isTokenOnSameLine(r,o)&&t.report({node:r,messageId:`nextLineClose`,fix:a(r,o)}),n!==`1tbs`&&e.isTokenOnSameLine(r,o)&&t.report({node:r,messageId:`sameLineClose`,fix:e=>e.insertTextAfter(r,`
134
+ `)})}return{BlockStatement(t){e.STATEMENT_LIST_PARENTS.has(t.parent.type)||o(i.getFirstToken(t),i.getLastToken(t))},StaticBlock(e){o(i.getFirstToken(e,{skip:1}),i.getLastToken(e))},ClassBody(e){o(i.getFirstToken(e),i.getLastToken(e))},SwitchStatement(e){let t=i.getLastToken(e);o(i.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){e.consequent.type===`BlockStatement`&&e.alternate&&s(i.getLastToken(e.consequent))},TryStatement(e){s(i.getLastToken(e.block)),e.handler&&e.finalizer&&s(i.getLastToken(e.handler.body))}}}},bc}var Cc,wc;function Tc(){return wc||(wc=1,Cc={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`callback-return`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md`}}]},type:`suggestion`,docs:{description:"Require `return` statements after callbacks",recommended:!1,url:`https://eslint.org/docs/latest/rules/callback-return`},schema:[{type:`array`,items:{type:`string`}}],messages:{missingReturn:`Expected return with your callback function.`}},create(e){let t=e.options[0]||[`callback`,`cb`,`next`],n=e.sourceCode;function r(e,t){return e.parent?t.includes(e.parent.type)?e.parent:r(e.parent,t):null}function i(e){if(e.type===`Identifier`)return!0;if(e.type===`MemberExpression`){if(e.object.type===`Identifier`)return!0;if(e.object.type===`MemberExpression`)return i(e.object)}return!1}function a(e){return i(e.callee)&&t.includes(n.getText(e.callee))}function o(e,t){return!t||t.type!==`ExpressionStatement`?!1:t.expression===e||(t.expression.type===`BinaryExpression`||t.expression.type===`LogicalExpression`)&&t.expression.right===e}return{CallExpression(t){if(!a(t))return;let n=r(t,[`BlockStatement`,`ReturnStatement`,`ArrowFunctionExpression`])||{};if(n.type!==`ReturnStatement`&&n.type!==`ArrowFunctionExpression`){if(n.type===`BlockStatement`){let e=n.body.at(-1);if(o(t,e)){let e=n.parent.type;if(e===`FunctionExpression`||e===`FunctionDeclaration`||e===`ArrowFunctionExpression`)return}if(e.type===`ReturnStatement`&&o(t,n.body.at(-2)))return}r(t,[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`])&&e.report({node:t,messageId:`missingReturn`})}}}}}),Cc}var Ec,Dc;function Oc(){if(Dc)return Ec;Dc=1;let e=$();return Ec={meta:{type:`suggestion`,defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:`always`}],docs:{description:`Enforce camelcase naming convention`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/camelcase`},schema:[{type:`object`,properties:{ignoreDestructuring:{type:`boolean`},ignoreImports:{type:`boolean`},ignoreGlobals:{type:`boolean`},properties:{enum:[`always`,`never`]},allow:{type:`array`,items:{type:`string`},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:`Identifier '{{name}}' is not in camel case.`,notCamelCasePrivate:`#{{name}} is not in camel case.`}},create(t){let[{allow:n,ignoreDestructuring:r,ignoreGlobals:i,ignoreImports:a,properties:o}]=t.options,s=t.sourceCode,c=/* @__PURE__ */ new Set;function l(e){let t=e.replace(/^_+|_+$/gu,``);return t.includes(`_`)&&t!==t.toUpperCase()}function u(e){return n.some(t=>e===t||e.match(new RegExp(t,`u`)))}function d(e){return!l(e)||u(e)}function f(e){let t=e.parent;switch(t.type){case`AssignmentExpression`:case`AssignmentPattern`:return t.left===e;case`Property`:return t.parent.type===`ObjectPattern`&&t.value===e;case`ArrayPattern`:case`RestElement`:return!0;default:return!1}}function p(t){let n=t.name,r=t.parent.type===`AssignmentPattern`?t.parent:t,i=r.parent;switch(i.type){case`Property`:return(i.parent.type===`ObjectPattern`||i.parent.type===`ObjectExpression`)&&i.value===r&&!i.computed&&i.key.type===`Identifier`&&i.key.name===n;case`ImportSpecifier`:return i.local===t&&e.getModuleExportName(i.imported)===n;default:return!1}}function m(e){c.has(e.range[0])||(c.add(e.range[0]),t.report({node:e,messageId:e.type===`PrivateIdentifier`?`notCamelCasePrivate`:`notCamelCase`,data:{name:e.name}}))}function h(t){t.parent.type===`CallExpression`||t.parent.type===`NewExpression`||t.parent.type===`AssignmentPattern`&&t.parent.right===t||r&&p(t)||e.isImportAttributeKey(t)||m(t)}return{Program(t){let n=s.getScope(t);if(!i){for(let e of n.variables)if(!(e.identifiers.length>0||d(e.name)))for(let t of e.references)h(t.identifier)}for(let t of n.through){let n=t.identifier;d(n.name)||e.isImportAttributeKey(n)||h(n)}},[[`VariableDeclaration`,`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`,`ClassDeclaration`,`ClassExpression`,`CatchClause`]](e){for(let t of s.getDeclaredVariables(e)){if(d(t.name))continue;let e=t.identifiers[0];r&&p(e)||m(e);for(let e of t.references)e.init||h(e.identifier)}},[[`ObjectExpression > Property[computed!=true] > Identifier.key`,`MethodDefinition[computed!=true] > Identifier.key`,`PropertyDefinition[computed!=true] > Identifier.key`,`MethodDefinition > PrivateIdentifier.key`,`PropertyDefinition > PrivateIdentifier.key`]](t){o===`never`||e.isImportAttributeKey(t)||d(t.name)||m(t)},"MemberExpression[computed!=true] > Identifier.property"(e){o!==`never`&&f(e.parent)&&!d(e.name)&&m(e)},ImportDeclaration(e){for(let t of s.getDeclaredVariables(e)){if(d(t.name))continue;let e=t.identifiers[0];a&&p(e)||m(e);for(let e of t.references)h(e.identifier)}},[[`ExportAllDeclaration > Identifier.exported`,`ExportSpecifier > Identifier.exported`]](e){d(e.name)||m(e)},[[`LabeledStatement > Identifier.label`,`BreakStatement > Identifier.label`,`ContinueStatement > Identifier.label`]](e){d(e.name)||m(e)}}}},Ec}var kc,Ac;function jc(){if(Ac)return kc;Ac=1;let e=/\p{L}/u;function t(t){return e.test(t)}return kc={LETTER_PATTERN:e,containsLetter:t},kc}var Mc,Nc;function Pc(){if(Nc)return Mc;Nc=1;let e=$(),{LETTER_PATTERN:t,containsLetter:n}=jc(),r=e.COMMENTS_IGNORE_PATTERN,i=/\s/gu,a=/^\s*[^:/?#\s]+:\/\/[^?#]/u,o={type:`object`,properties:{ignorePattern:{type:`string`},ignoreInlineComments:{type:`boolean`},ignoreConsecutiveComments:{type:`boolean`}},additionalProperties:!1},s={ignorePattern:``,ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function c(e,t){return Object.assign({},s,e[t]||e)}function l(e={}){return{Line:c(e,`line`),Block:c(e,`block`)}}function u(e){Object.keys(e).forEach(t=>{let n=e[t].ignorePattern;if(n){let r=RegExp(`^\\s*(?:${n})`,`u`);e[t].ignorePatternRegExp=r}})}return Mc={meta:{type:`suggestion`,docs:{description:`Enforce or disallow capitalization of the first letter of a comment`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/capitalized-comments`},fixable:`code`,schema:[{enum:[`always`,`never`]},{oneOf:[o,{type:`object`,properties:{line:o,block:o},additionalProperties:!1}]}],defaultOptions:[`always`],messages:{unexpectedLowercaseComment:`Comments should not begin with a lowercase character.`,unexpectedUppercaseComment:`Comments should not begin with an uppercase character.`}},create(e){let o=e.options[0],s=l(e.options[1]),c=e.sourceCode;u(s);function d(e){let t=c.getTokenBefore(e,{includeComments:!0}),n=c.getTokenAfter(e,{includeComments:!0});return!!(t&&n&&e.loc.start.line===t.loc.end.line&&e.loc.end.line===n.loc.start.line)}function f(e){let t=c.getTokenBefore(e,{includeComments:!0});return!!(t&&[`Block`,`Line`].includes(t.type))}function p(e,t){if(r.test(e.value))return!0;let s=e.value.replace(/\*/gu,``);if(t.ignorePatternRegExp&&t.ignorePatternRegExp.test(s)||t.ignoreInlineComments&&d(e)||t.ignoreConsecutiveComments&&f(e)||a.test(s))return!0;let c=s.replace(i,``);if(c.length===0)return!0;let[l]=c;if(!n(l))return!0;let u=l!==l.toLocaleLowerCase(),p=l!==l.toLocaleUpperCase();return!(o===`always`&&p||o===`never`&&u)}function m(n){let r=s[n.type];if(!p(n,r)){let r=o===`always`?`unexpectedLowercaseComment`:`unexpectedUppercaseComment`;e.report({node:null,loc:n.loc,messageId:r,fix(e){let r=n.value.match(t),i=r[0],a=n.range[0]+r.index+2;return e.replaceTextRange([a,a+i.length],o===`always`?i.toLocaleUpperCase():i.toLocaleLowerCase())}})}}return{Program(){c.getAllComments().filter(e=>e.type!==`Shebang`).forEach(m)}}}},Mc}var Fc,Ic;function Lc(){if(Ic)return Fc;Ic=1;let e=$();return Fc={meta:{type:`suggestion`,defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/class-methods-use-this`},schema:[{type:`object`,properties:{exceptMethods:{type:`array`,items:{type:`string`}},enforceForClassFields:{type:`boolean`},ignoreOverrideMethods:{type:`boolean`},ignoreClassesWithImplements:{enum:[`all`,`public-fields`]}},additionalProperties:!1}],messages:{missingThis:`Expected 'this' to be used by class {{name}}.`}},create(t){let[n]=t.options,{enforceForClassFields:r,ignoreOverrideMethods:i,ignoreClassesWithImplements:a}=n,o=new Set(n.exceptMethods),s=[];function c(){s.push(!1)}function l(){return s.pop()}function u(){c()}function d(e){switch(e.type){case`MethodDefinition`:return!e.static&&e.kind!==`constructor`;case`AccessorProperty`:case`PropertyDefinition`:return!e.static&&r;default:return!1}}function f(e){let t=e.parent.parent;return(t?.type===`ClassDeclaration`||t?.type===`ClassExpression`)&&t.implements?.length>0}function p(t){if(d(t)){if(i&&t.override||a&&f(t)&&(a===`all`||a===`public-fields`&&t.key.type!==`PrivateIdentifier`&&(!t.accessibility||t.accessibility===`public`)))return!1;if(t.computed)return!0;let n=t.key.type===`PrivateIdentifier`?`#`:``,r=t.key.type===`Literal`?e.getStaticStringValue(t.key):t.key.name||``;return!o.has(n+r)}return!1}function m(n){let r=l();p(n.parent)&&!r&&t.report({node:n,loc:e.getFunctionHeadLoc(n,t.sourceCode),messageId:`missingThis`,data:{name:e.getFunctionNameWithKind(n)}})}function h(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:u,"FunctionDeclaration:exit":m,FunctionExpression:u,"FunctionExpression:exit":m,"AccessorProperty > *.key:exit":c,"AccessorProperty:exit":l,"PropertyDefinition > *.key:exit":c,"PropertyDefinition:exit":l,StaticBlock:c,"StaticBlock:exit":l,ThisExpression:h,Super:h,...r&&{"AccessorProperty > ArrowFunctionExpression.value":u,"AccessorProperty > ArrowFunctionExpression.value:exit":m,"PropertyDefinition > ArrowFunctionExpression.value":u,"PropertyDefinition > ArrowFunctionExpression.value:exit":m}}}},Fc}var Rc,zc;function Bc(){if(zc)return Rc;zc=1;let e=$(),t=Object.freeze({arrays:`never`,objects:`never`,imports:`never`,exports:`never`,functions:`never`});function n(e){return e.type!==`RestElement`&&e.type!==`RestProperty`&&e.type!==`ExperimentalRestProperty`}function r(e,n){return typeof e==`string`?{arrays:e,objects:e,imports:e,exports:e,functions:n<2017?`ignore`:e}:typeof e==`object`&&e?{arrays:e.arrays||t.arrays,objects:e.objects||t.objects,imports:e.imports||t.imports,exports:e.exports||t.exports,functions:e.functions||t.functions}:t}return Rc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-dangle`,url:`https://eslint.style/rules/comma-dangle`}}]},type:`layout`,docs:{description:`Require or disallow trailing commas`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-dangle`},fixable:`code`,schema:{definitions:{value:{enum:[`always-multiline`,`always`,`never`,`only-multiline`]},valueWithIgnore:{enum:[`always-multiline`,`always`,`ignore`,`never`,`only-multiline`]}},type:`array`,items:[{oneOf:[{$ref:`#/definitions/value`},{type:`object`,properties:{arrays:{$ref:`#/definitions/valueWithIgnore`},objects:{$ref:`#/definitions/valueWithIgnore`},imports:{$ref:`#/definitions/valueWithIgnore`},exports:{$ref:`#/definitions/valueWithIgnore`},functions:{$ref:`#/definitions/valueWithIgnore`}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:`Unexpected trailing comma.`,missing:`Missing trailing comma.`}},create(t){let i=r(t.options[0],t.languageOptions.ecmaVersion),a=t.sourceCode;function o(e){function t(e){return e.at(-1)}switch(e.type){case`ObjectExpression`:case`ObjectPattern`:return t(e.properties);case`ArrayExpression`:case`ArrayPattern`:return t(e.elements);case`ImportDeclaration`:case`ExportNamedDeclaration`:return t(e.specifiers);case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:return t(e.params);case`CallExpression`:case`NewExpression`:return t(e.arguments);default:return null}}function s(t,n){switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`CallExpression`:case`NewExpression`:return a.getLastToken(t,1);default:{let t=a.getTokenAfter(n);return e.isCommaToken(t)?t:a.getLastToken(n)}}}function c(e){let t=o(e);if(!t)return!1;let n=s(e,t);return a.getTokenAfter(n).loc.end.line!==n.loc.end.line}function l(n){let r=o(n);if(!r||n.type===`ImportDeclaration`&&r.type!==`ImportSpecifier`)return;let i=s(n,r);e.isCommaToken(i)&&t.report({node:r,loc:i.loc,messageId:`unexpected`,*fix(e){yield e.remove(i),yield e.insertTextBefore(a.getTokenBefore(i),``),yield e.insertTextAfter(a.getTokenAfter(i),``)}})}function u(r){let i=o(r);if(!i||r.type===`ImportDeclaration`&&i.type!==`ImportSpecifier`)return;if(!n(i)){l(r);return}let c=s(r,i);c.value!==`,`&&t.report({node:i,loc:{start:c.loc.end,end:e.getNextLocation(a,c.loc.end)},messageId:`missing`,*fix(e){yield e.insertTextAfter(c,`,`),yield e.insertTextBefore(c,``),yield e.insertTextAfter(a.getTokenAfter(c),``)}})}function d(e){c(e)?u(e):l(e)}function f(e){c(e)||l(e)}let p={always:u,"always-multiline":d,"only-multiline":f,never:l,ignore(){}};return{ObjectExpression:p[i.objects],ObjectPattern:p[i.objects],ArrayExpression:p[i.arrays],ArrayPattern:p[i.arrays],ImportDeclaration:p[i.imports],ExportNamedDeclaration:p[i.exports],FunctionDeclaration:p[i.functions],FunctionExpression:p[i.functions],ArrowFunctionExpression:p[i.functions],CallExpression:p[i.functions],NewExpression:p[i.functions]}}},Rc}var Vc,Hc;function Uc(){if(Hc)return Vc;Hc=1;let e=$();return Vc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-spacing`,url:`https://eslint.style/rules/comma-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after commas`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!1},after:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{missing:`A space is required {{loc}} ','.`,unexpected:`There should be no space {{loc}} ','.`}},create(t){let n=t.sourceCode,r=n.tokensAndComments,i={before:t.options[0]?t.options[0].before:!1,after:!t.options[0]||t.options[0].after},a=[];function o(e,n,r){t.report({node:e,fix(t){if(i[n])return n===`before`?t.insertTextBefore(e,` `):t.insertTextAfter(e,` `);let a,o;return n===`before`?(a=r.range[1],o=e.range[0]):(a=e.range[1],o=r.range[0]),t.replaceTextRange([a,o],``)},messageId:i[n]?`missing`:`unexpected`,data:{loc:n}})}function s(t){let r=n.getFirstToken(t);t.elements.forEach(t=>{let i;t===null?(i=n.getTokenAfter(r),e.isCommaToken(i)&&a.push(i)):i=n.getTokenAfter(t),r=i})}return{"Program:exit"(){r.forEach((t,s)=>{if(!e.isCommaToken(t))return;let c=r[s-1],l=r[s+1];c&&!e.isCommaToken(c)&&!a.includes(t)&&e.isTokenOnSameLine(c,t)&&i.before!==n.isSpaceBetween(c,t)&&o(t,`before`,c),!l||e.isCommaToken(l)||e.isClosingParenToken(l)||e.isClosingBracketToken(l)||e.isClosingBraceToken(l)||!i.after&&l.type===`Line`||!e.isTokenOnSameLine(t,l)||i.after===n.isSpaceBetween(t,l)||o(t,`after`,l)})},ArrayExpression:s,ArrayPattern:s}}},Vc}var Wc,Gc;function Kc(){if(Gc)return Wc;Gc=1;let e=$();return Wc={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-style`,url:`https://eslint.style/rules/comma-style`}}]},type:`layout`,docs:{description:`Enforce consistent comma style`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-style`},fixable:`code`,schema:[{enum:[`first`,`last`]},{type:`object`,properties:{exceptions:{type:`object`,additionalProperties:{type:`boolean`}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:`Bad line breaking before and after ','.`,expectedCommaFirst:`',' should be placed first.`,expectedCommaLast:`',' should be placed last.`}},create(t){let n=t.options[0]||`last`,r=t.sourceCode,i={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(t.options.length===2&&Object.hasOwn(t.options[1],`exceptions`)){let e=Object.keys(t.options[1].exceptions);for(let n=0;n<e.length;n++)i[e[n]]=t.options[1].exceptions[e[n]]}function a(t,n){switch(t){case`between`:return`,${n.replace(e.LINEBREAK_MATCHER,``)}`;case`first`:return`${n},`;case`last`:return`,${n}`;default:return``}}function o(e,t,n,i){let o=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],i.range[0]),s=[t.range[1],i.range[0]];return function(t){return t.replaceTextRange(s,a(e,o))}}function s(i,a,s,c){if(!(e.isTokenOnSameLine(a,s)&&e.isTokenOnSameLine(i,a))){if(!e.isTokenOnSameLine(a,s)&&!e.isTokenOnSameLine(i,a)){let l=r.getCommentsAfter(a)[0],u=l&&l.type===`Block`&&e.isTokenOnSameLine(a,l)?n:`between`;t.report({node:c,loc:a.loc,messageId:`unexpectedLineBeforeAndAfterComma`,fix:o(u,i,a,s)})}else n===`first`&&!e.isTokenOnSameLine(a,s)?t.report({node:c,loc:a.loc,messageId:`expectedCommaFirst`,fix:o(n,i,a,s)}):n===`last`&&e.isTokenOnSameLine(a,s)&&t.report({node:c,loc:a.loc,messageId:`expectedCommaLast`,fix:o(n,i,a,s)})}}function c(t,n){let i=t[n],a=t.type===`ArrayExpression`||t.type===`ArrayPattern`;if(i.length>1||a){let n=r.getFirstToken(t);if(i.forEach(t=>{let i=t?r.getTokenBefore(t):n,a=t?r.getFirstToken(t):r.getTokenAfter(i),o=t||a;if(e.isCommaToken(i)&&s(n,i,a,o),t){let i=r.getTokenAfter(t,e.isNotClosingParenToken);n=i?r.getTokenBefore(i):r.ast.tokens.at(-1)}else n=a}),a){let n=r.getLastToken(t),i=r.getTokenBefore(n);e.isCommaToken(i)&&s(r.getTokenBefore(i),i,n,n)}}}let l={};return i.VariableDeclaration||(l.VariableDeclaration=function(e){c(e,`declarations`)}),i.ObjectExpression||(l.ObjectExpression=function(e){c(e,`properties`)}),i.ObjectPattern||(l.ObjectPattern=function(e){c(e,`properties`)}),i.ArrayExpression||(l.ArrayExpression=function(e){c(e,`elements`)}),i.ArrayPattern||(l.ArrayPattern=function(e){c(e,`elements`)}),i.FunctionDeclaration||(l.FunctionDeclaration=function(e){c(e,`params`)}),i.FunctionExpression||(l.FunctionExpression=function(e){c(e,`params`)}),i.ArrowFunctionExpression||(l.ArrowFunctionExpression=function(e){c(e,`params`)}),i.CallExpression||(l.CallExpression=function(e){c(e,`arguments`)}),i.ImportDeclaration||(l.ImportDeclaration=function(e){c(e,`specifiers`)}),i.NewExpression||(l.NewExpression=function(e){c(e,`arguments`)}),l}},Wc}var qc,Jc;function Yc(){if(Jc)return qc;Jc=1;let e=/^[\u0000-\u007f]*$/u,t;function n(e){return e.length<=1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}function r(n){if(e.test(n))return n.length;t??=new Intl.Segmenter(`en-US`);let r=0;for(let e of t.segment(n))r++;return r}return qc={upperCaseFirst:n,getGraphemeCount:r},qc}var Xc,Zc;function Qc(){if(Zc)return Xc;Zc=1;let e=$(),{upperCaseFirst:t}=Yc();return Xc={meta:{type:`suggestion`,defaultOptions:[20],docs:{description:`Enforce a maximum cyclomatic complexity allowed in a program`,recommended:!1,url:`https://eslint.org/docs/latest/rules/complexity`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0},variant:{enum:[`classic`,`modified`]}},additionalProperties:!1}]}],messages:{complex:`{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}.`}},create(n){let r=n.sourceCode,i=n.options[0],a=20,o=`classic`;typeof i==`object`?((Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))&&(a=i.maximum||i.max),Object.hasOwn(i,`variant`)&&(o=i.variant)):typeof i==`number`&&(a=i);let s=o===`modified`,c=[];function l(){c[c.length-1]++}return{onCodePathStart(){c.push(1)},CatchClause:l,ConditionalExpression:l,LogicalExpression:l,ForStatement:l,ForInStatement:l,ForOfStatement:l,IfStatement:l,WhileStatement:l,DoWhileStatement:l,AssignmentPattern:l,"SwitchCase[test]":()=>s||l(),SwitchStatement:()=>s&&l(),AssignmentExpression(t){e.isLogicalAssignmentOperator(t.operator)&&l()},MemberExpression(e){e.optional===!0&&l()},CallExpression(e){e.optional===!0&&l()},onCodePathEnd(i,o){let s=c.pop();if((i.origin===`function`||i.origin===`class-field-initializer`||i.origin===`class-static-block`)&&s>a){let c,l=o.loc;i.origin===`class-field-initializer`?c=`class field initializer`:i.origin===`class-static-block`?(c=`class static block`,l=r.getFirstToken(o).loc):(c=e.getFunctionNameWithKind(o),l=e.getFunctionHeadLoc(o,r)),n.report({node:o,loc:l,messageId:`complex`,data:{name:t(c),complexity:s,max:a}})}}}}},Xc}var $c,el;function tl(){if(el)return $c;el=1;let e=$();return $c={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`computed-property-spacing`,url:`https://eslint.style/rules/computed-property-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside computed property brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/computed-property-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{enforceForClassMembers:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:`There should be no space before '{{tokenValue}}'.`,unexpectedSpaceAfter:`There should be no space after '{{tokenValue}}'.`,missingSpaceBefore:`A space is required before '{{tokenValue}}'.`,missingSpaceAfter:`A space is required after '{{tokenValue}}'.`}},create(t){let n=t.sourceCode,r=t.options[0]===`always`,i=!t.options[1]||t.options[1].enforceForClassMembers;function a(e,n,r){t.report({node:e,loc:{start:n.loc.end,end:r.loc.start},messageId:`unexpectedSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.removeRange([n.range[1],r.range[0]])}})}function o(e,n,r){t.report({node:e,loc:{start:r.loc.end,end:n.loc.start},messageId:`unexpectedSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.removeRange([r.range[1],n.range[0]])}})}function s(e,n){t.report({node:e,loc:n.loc,messageId:`missingSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function c(e,n){t.report({node:e,loc:n.loc,messageId:`missingSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function l(t){return function(i){if(!i.computed)return;let l=i[t],u=n.getTokenBefore(l,e.isOpeningBracketToken),d=n.getTokenAfter(u,{includeComments:!0}),f=n.getTokenAfter(l,e.isClosingBracketToken),p=n.getTokenBefore(f,{includeComments:!0});e.isTokenOnSameLine(u,d)&&(r?!n.isSpaceBetween(u,d)&&e.isTokenOnSameLine(u,d)&&s(i,u):n.isSpaceBetween(u,d)&&a(i,u,d)),e.isTokenOnSameLine(p,f)&&(r?!n.isSpaceBetween(p,f)&&e.isTokenOnSameLine(p,f)&&c(i,f):n.isSpaceBetween(p,f)&&o(i,f,p))}}let u={Property:l(`key`),MemberExpression:l(`property`)};return i&&(u.MethodDefinition=u.PropertyDefinition=u.Property),u}},$c}var nl,rl;function il(){if(rl)return nl;rl=1;let e=$(),{upperCaseFirst:t}=Yc(),{isAnySegmentReachable:n}=Qs();function r(e){return e.type===`FunctionExpression`&&e.parent&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}return nl={meta:{type:`suggestion`,docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:`https://eslint.org/docs/latest/rules/consistent-return`},schema:[{type:`object`,properties:{treatUndefinedAsUnspecified:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:`Expected to return a value at the end of {{name}}.`,missingReturnValue:`{{name}} expected a return value.`,unexpectedReturnValue:`{{name}} expected no return value.`}},create(i){let[{treatUndefinedAsUnspecified:a}]=i.options,o=null;function s(t){let a,s;o.hasReturnValue&&n(o.currentSegments)&&!e.isES5Constructor(t)&&!r(t)&&(t.type===`Program`?(a={line:1,column:0},s=`program`):a=t.type===`ArrowFunctionExpression`?i.sourceCode.getTokenBefore(t.body,e.isArrowToken).loc:t.parent.type===`MethodDefinition`||t.parent.type===`Property`&&t.parent.method?t.parent.key.loc:(t.id||i.sourceCode.getFirstToken(t)).loc,s||=e.getFunctionNameWithKind(t),i.report({node:t,loc:a,messageId:`missingReturn`,data:{name:s}}))}return{onCodePathStart(e,t){o={upper:o,codePath:e,hasReturn:!1,hasReturnValue:!1,messageId:``,node:t,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(){o=o.upper},onUnreachableCodePathSegmentStart(e){o.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){o.currentSegments.delete(e)},onCodePathSegmentStart(e){o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},ReturnStatement(n){let r=n.argument,s=!!r;a&&s&&(s=!e.isSpecificId(r,`undefined`)&&r.operator!==`void`),o.hasReturn?o.hasReturnValue!==s&&i.report({node:n,messageId:o.messageId,data:o.data}):(o.hasReturn=!0,o.hasReturnValue=s,o.messageId=s?`missingReturnValue`:`unexpectedReturnValue`,o.data={name:o.node.type===`Program`?`Program`:t(e.getFunctionNameWithKind(o.node))})},"Program:exit":s,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}},nl}var al,ol;function sl(){return ol||(ol=1,al={meta:{type:`suggestion`,docs:{description:`Enforce consistent naming when capturing the current execution context`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/consistent-this`},schema:{type:`array`,items:{type:`string`,minLength:1},uniqueItems:!0},defaultOptions:[`that`],messages:{aliasNotAssignedToThis:`Designated alias '{{name}}' is not assigned to 'this'.`,unexpectedAlias:`Unexpected alias '{{name}}' for 'this'.`}},create(e){let t=e.options,n=e.sourceCode;function r(t,n){e.report({node:t,messageId:`aliasNotAssignedToThis`,data:{name:n}})}function i(n,i,a){let o=a.type===`ThisExpression`;t.includes(i)?(!o||n.operator&&n.operator!==`=`)&&r(n,i):o&&e.report({node:n,messageId:`unexpectedAlias`,data:{name:i}})}function a(e,t){let n=t.set.get(e);n&&(n.defs.some(e=>e.node.type===`VariableDeclarator`&&e.node.init!==null)||n.references.some(e=>{let n=e.writeExpr;return e.from===t&&n&&n.type===`ThisExpression`&&n.parent.operator===`=`})||n.defs.map(e=>e.node).forEach(t=>{r(t,e)}))}function o(e){let r=n.getScope(e),i=e.type===`Program`&&e.sourceType===`module`?r.childScopes[0]:null;t.forEach(e=>{a(e,r),i&&a(e,i)})}return{"Program:exit":o,"FunctionExpression:exit":o,"FunctionDeclaration:exit":o,VariableDeclarator(e){let t=e.id,n=t.type===`ArrayPattern`||t.type===`ObjectPattern`;e.init!==null&&!n&&i(e,t.name,e.init)},AssignmentExpression(e){e.left.type===`Identifier`&&i(e,e.left.name,e.right)}}}}),al}var cl,ll;function ul(){if(ll)return cl;ll=1;function e(e){return e.type===`FunctionExpression`&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}function t(e){if(!e)return!1;switch(e.type){case`ClassExpression`:case`FunctionExpression`:case`ThisExpression`:case`MemberExpression`:case`CallExpression`:case`NewExpression`:case`ChainExpression`:case`YieldExpression`:case`TaggedTemplateExpression`:case`MetaProperty`:return!0;case`Identifier`:return e.name!==`undefined`;case`AssignmentExpression`:return[`=`,`&&=`].includes(e.operator)?t(e.right):[`||=`,`??=`].includes(e.operator)?t(e.left)||t(e.right):!1;case`LogicalExpression`:return e.operator===`&&`?t(e.right):t(e.left)||t(e.right);case`ConditionalExpression`:return t(e.alternate)||t(e.consequent);case`SequenceExpression`:return t(e.expressions.at(-1));default:return!1}}class n{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return cl={meta:{type:`problem`,docs:{description:"Require `super()` calls in constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/constructor-super`},schema:[],messages:{missingSome:`Lacked a call of 'super()' in some code paths.`,missingAll:`Expected to call 'super()'.`,duplicate:`Unexpected duplicate 'super()'.`,badSuper:`Unexpected 'super()' because 'super' is not a constructor.`}},create(r){let i=null,a=Object.create(null);function o(e){return e.reachable&&a[e.id].calledInSomePaths}function s(e){return!!a[e.id]}function c(e){return e.reachable&&a[e.id].calledInEveryPaths}return{onCodePathStart(n,r){if(e(r)){let e=r.parent.parent.parent.superClass;i={upper:i,isConstructor:!0,hasExtends:!!e,superIsConstructor:t(e),codePath:n,currentSegments:/* @__PURE__ */ new Set}}else i={upper:i,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:n,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(e,t){let n=i.hasExtends;if(i=i.upper,!n)return;let a=e.returnedSegments,s=a.every(c),l=a.some(o);s||r.report({messageId:l?`missingSome`:`missingAll`,node:t.parent})},onCodePathSegmentStart(e,t){if(i.currentSegments.add(e),!(i.isConstructor&&i.hasExtends))return;let r=a[e.id]=new n,l=e.prevSegments.filter(s);l.length>0&&(r.calledInSomePaths=l.some(o),r.calledInEveryPaths=l.every(c)),t.parent&&t.parent.type===`ForStatement`&&t.parent.update===t&&(r.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(e){i.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){i.currentSegments.delete(e)},onCodePathSegmentEnd(e){i.currentSegments.delete(e)},onCodePathSegmentLoop(e,t){i.isConstructor&&i.hasExtends&&i.codePath.traverseSegments({first:t,last:e},(e,t)=>{let n=a[e.id];if(!n){t.skip();return}let i=e.prevSegments.filter(s),l=i.some(o),u=i.every(c);if(n.calledInSomePaths||=l,n.calledInEveryPaths||=u,l){let e=n.validNodes;n.validNodes=[];for(let t=0;t<e.length;++t){let n=e[t];r.report({messageId:`duplicate`,node:n})}}})},"CallExpression:exit"(e){if(!(i.isConstructor&&i.hasExtends)||e.callee.type!==`Super`)return;let t=i.currentSegments,n=!1,o=null;for(let e of t)e.reachable&&(o=a[e.id],n||=o.calledInSomePaths,o.calledInSomePaths=o.calledInEveryPaths=!0);o&&(n?r.report({messageId:`duplicate`,node:e}):i.superIsConstructor?o.validNodes.push(e):r.report({messageId:`badSuper`,node:e}))},ReturnStatement(e){if(!(i.isConstructor&&i.hasExtends)||!e.argument)return;let t=i.currentSegments;for(let e of t)if(e.reachable){let t=a[e.id];t.calledInSomePaths=t.calledInEveryPaths=!0}}}}},cl}var dl,fl;function pl(){if(fl)return dl;fl=1;let e=$();return dl={meta:{type:`suggestion`,docs:{description:`Enforce consistent brace style for all control statements`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/curly`},schema:{anyOf:[{type:`array`,items:[{enum:[`all`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`multi`,`multi-line`,`multi-or-nest`]},{enum:[`consistent`]}],minItems:0,maxItems:2}]},defaultOptions:[`all`],fixable:`code`,messages:{missingCurlyAfter:`Expected { after '{{name}}'.`,missingCurlyAfterCondition:`Expected { after '{{name}}' condition.`,unexpectedCurlyAfter:`Unnecessary { after '{{name}}'.`,unexpectedCurlyAfterCondition:`Unnecessary { after '{{name}}' condition.`}},create(t){let n=t.options[0]===`multi`,r=t.options[0]===`multi-line`,i=t.options[0]===`multi-or-nest`,a=t.options[1]===`consistent`,o=t.sourceCode;function s(t){let n=o.getTokenBefore(t),r=o.getLastToken(t),i=e.isSemicolonToken(r)?o.getTokenBefore(r):r;return n.loc.start.line===i.loc.end.line}function c(t){if(t.type===`EmptyStatement`)return!0;let n=o.getFirstToken(t),r=o.getLastToken(t),i=e.isSemicolonToken(r)?o.getTokenBefore(r):r;return n.loc.start.line===i.loc.end.line}function l(t){let n=o.getTokenBefore(t),r=o.getTokenAfter(t),i=o.getNodeByRangeIndex(n.range[0]);return e.isSemicolonToken(n)||!r||i.type===`BlockStatement`&&i.parent.type!==`FunctionExpression`&&i.parent.type!==`ArrowFunctionExpression`?!1:!!(n.loc.end.line===r.loc.start.line||/^[([/`+-]/u.test(r.value)||n.type===`Punctuator`&&(n.value===`++`||n.value===`--`))}function u(a,u,d,f){let p=u.type===`BlockStatement`,m=null;if(p&&(u.body.length!==1||e.areBracesNecessary(u,o)))m=!0;else if(n)m=!1;else if(r)s(u)||(m=!0);else if(i){if(p){let e=u.body[0],t=o.getCommentsBefore(e);m=!c(e)||t.length>0}else m=!c(u)}else m=!0;return{actual:p,expected:m,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?t.report({node:a,loc:u.loc,messageId:f&&f.condition?`missingCurlyAfterCondition`:`missingCurlyAfter`,data:{name:d},fix:e=>e.replaceText(u,`{${o.getText(u)}}`)}):t.report({node:a,loc:u.loc,messageId:f&&f.condition?`unexpectedCurlyAfterCondition`:`unexpectedCurlyAfter`,data:{name:d},fix(t){let n=o.getTokenBefore(u),r=n.range[1]===u.range[0]&&!e.canTokensBeAdjacent(n,o.getFirstToken(u,{skip:1})),i=o.getFirstToken(u),a=o.getLastToken(u),s=o.getTokenBefore(a);if(l(a))return null;let c=o.getText().slice(i.range[1],s.range[0])+o.getText(s)+o.getText().slice(s.range[1],a.range[0]);return t.replaceText(u,(r?` `:``)+c)}}))}}}function d(e){let t=[];for(let n=e;n;n=n.alternate)if(t.push(u(n,n.consequent,`if`,{condition:!0})),n.alternate&&n.alternate.type!==`IfStatement`){t.push(u(n,n.alternate,`else`));break}if(a){let e=t.some(e=>e.expected===null?e.actual:e.expected);t.forEach(t=>{t.expected=e})}return t}return{IfStatement(e){let t=e.parent;(t.type!==`IfStatement`||t.alternate!==e)&&d(e).forEach(e=>{e.check()})},WhileStatement(e){u(e,e.body,`while`,{condition:!0}).check()},DoWhileStatement(e){u(e,e.body,`do`).check()},ForStatement(e){u(e,e.body,`for`,{condition:!0}).check()},ForInStatement(e){u(e,e.body,`for-in`).check()},ForOfStatement(e){u(e,e.body,`for-of`).check()}}}},dl}var ml,hl;function gl(){if(hl)return ml;hl=1;let{isClosingParenToken:e}=$(),t=/^no default$/iu;return ml={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/default-case`},schema:[{type:`object`,properties:{commentPattern:{type:`string`}},additionalProperties:!1}],messages:{missingDefaultCase:`Expected a default case.`}},create(n){let[r]=n.options,i=r.commentPattern?new RegExp(r.commentPattern,`u`):t,a=n.sourceCode;function o(e){return e.at(-1)}return{SwitchStatement(t){if(t.cases.length&&!t.cases.some(e=>e.test===null)){let r,s=o(t.cases),c=a.getCommentsAfter(s);c.length&&(r=o(c)),r&&i.test(r.value.trim())||n.report({node:t,loc:{start:t.loc.start,end:a.getTokenBefore(t.cases[0],e).loc.end},messageId:`missingDefaultCase`})}}}}},ml}var _l,vl;function yl(){return vl||(vl=1,_l={meta:{type:`suggestion`,docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:`https://eslint.org/docs/latest/rules/default-case-last`},schema:[],messages:{notLast:`Default clause should be the last clause.`}},create(e){return{SwitchStatement(t){let n=t.cases,r=n.findIndex(e=>e.test===null);if(r!==-1&&r!==n.length-1){let t=n[r];e.report({node:t,messageId:`notLast`})}}}}}),_l}var bl,xl;function Sl(){if(xl)return bl;xl=1;function e(e){return!(e.type===`AssignmentPattern`||e.type===`RestElement`||e.optional)}return bl={meta:{type:`suggestion`,docs:{description:`Enforce default parameters to be last`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/default-param-last`},schema:[],messages:{shouldBeLast:`Default parameters should be last.`}},create(t){function n(n){let r=!1;for(let i=n.params.length-1;i>=0;--i){let a=n.params[i];e(a.type===`TSParameterProperty`?a.parameter:a)?r=!0:r&&t.report({node:a,messageId:`shouldBeLast`})}}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n}}},bl}var Cl,wl;function Tl(){if(wl)return Cl;wl=1;let e=$();return Cl={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`dot-location`,url:`https://eslint.style/rules/dot-location`}}]},type:`layout`,docs:{description:`Enforce consistent newlines before and after dots`,recommended:!1,url:`https://eslint.org/docs/latest/rules/dot-location`},schema:[{enum:[`object`,`property`]}],fixable:`code`,messages:{expectedDotAfterObject:`Expected dot to be on same line as object.`,expectedDotBeforeProperty:`Expected dot to be on same line as property.`}},create(t){let n=t.options[0],r=n===`object`||!n,i=t.sourceCode;function a(n){let a=n.property,o=i.getTokenBefore(a);if(r){let r=i.getTokenBefore(o);e.isTokenOnSameLine(r,o)||t.report({node:n,loc:o.loc,messageId:`expectedDotAfterObject`,*fix(t){o.value.startsWith(`.`)&&e.isDecimalIntegerNumericToken(r)?yield t.insertTextAfter(r,` ${o.value}`):yield t.insertTextAfter(r,o.value),yield t.remove(o)}})}else e.isTokenOnSameLine(o,a)||t.report({node:n,loc:o.loc,messageId:`expectedDotBeforeProperty`,*fix(e){yield e.remove(o),yield e.insertTextBefore(a,o.value)}})}function o(e){e.computed||a(e)}return{MemberExpression:o}}},Cl}var El,Dl;function Ol(){return Dl||(Dl=1,El=/* @__PURE__ */ `abstract.boolean.break.byte.case.catch.char.class.const.continue.debugger.default.delete.do.double.else.enum.export.extends.false.final.finally.float.for.function.goto.if.implements.import.in.instanceof.int.interface.long.native.new.null.package.private.protected.public.return.short.static.super.switch.synchronized.this.throw.throws.transient.true.try.typeof.var.void.volatile.while.with`.split(`.`)),El}var kl,Al;function jl(){if(Al)return kl;Al=1;let e=$(),t=Ol(),n=/^[a-zA-Z_$][\w$]*$/u,r=/* @__PURE__ */ new Set([`string`,`boolean`]);return kl={meta:{type:`suggestion`,defaultOptions:[{allowKeywords:!0,allowPattern:``}],docs:{description:`Enforce dot notation whenever possible`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/dot-notation`},schema:[{type:`object`,properties:{allowKeywords:{type:`boolean`},allowPattern:{type:`string`}},additionalProperties:!1}],fixable:`code`,messages:{useDot:`[{{key}}] is better written in dot notation.`,useBrackets:`.{{key}} is a syntax error.`}},create(i){let[a]=i.options,o=a.allowKeywords,s=i.sourceCode,c;a.allowPattern&&(c=new RegExp(a.allowPattern,`u`));function l(r,a){if(n.test(a)&&(o||!t.includes(String(a)))&&!(c&&c.test(a))){let t=r.property.type===`Literal`?JSON.stringify(a):`\`${a}\``;i.report({node:r.property,messageId:`useDot`,data:{key:t},*fix(t){let n=s.getTokenAfter(r.object,e.isOpeningBracketToken),i=s.getLastToken(r),o=s.getTokenAfter(r);s.commentsExistBetween(n,i)||(r.optional||(yield t.insertTextBefore(n,e.isDecimalInteger(r.object)?` .`:`.`)),yield t.replaceTextRange([n.range[0],i.range[1]],String(a)),o&&i.range[1]===o.range[0]&&!e.canTokensBeAdjacent(String(a),o)&&(yield t.insertTextAfter(r,` `)))}})}}return{MemberExpression(n){n.computed&&n.property.type===`Literal`&&(r.has(typeof n.property.value)||e.isNullLiteral(n.property))&&l(n,n.property.value),n.computed&&e.isStaticTemplateLiteral(n.property)&&l(n,n.property.quasis[0].value.cooked),!o&&!n.computed&&n.property.type===`Identifier`&&t.includes(String(n.property.name))&&i.report({node:n.property,messageId:`useBrackets`,data:{key:n.property.name},*fix(e){let t=s.getTokenBefore(n.property);n.object.type===`Identifier`&&n.object.name===`let`&&!n.optional||s.commentsExistBetween(t,n.property)||(n.optional||(yield e.remove(t)),yield e.replaceText(n.property,`["${n.property.name}"]`))}})}}}},kl}var Ml,Nl;function Pl(){return Nl||(Nl=1,Ml={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`eol-last`,url:`https://eslint.style/rules/eol-last`}}]},type:`layout`,docs:{description:`Require or disallow newline at the end of files`,recommended:!1,url:`https://eslint.org/docs/latest/rules/eol-last`},fixable:`whitespace`,schema:[{enum:[`always`,`never`,`unix`,`windows`]}],messages:{missing:`Newline required at end of file but not found.`,unexpected:`Newline not allowed at end of file.`}},create(e){return{Program:function(t){let n=e.sourceCode,r=n.getText(),i={column:n.lines.at(-1).length,line:n.lines.length},a=r.endsWith(`
135
+ `);if(!r.length)return;let o=e.options[0]||`always`,s=!1;if(o===`unix`&&(o=`always`),o===`windows`&&(o=`always`,s=!0),o===`always`&&!a)e.report({node:t,loc:i,messageId:`missing`,fix(e){return e.insertTextAfterRange([0,r.length],s?`\r
136
+ `:`
137
+ `)}});else if(o===`never`&&a){let r=n.lines.at(-2);e.report({node:t,loc:{start:{line:n.lines.length-1,column:r.length},end:{line:n.lines.length,column:0}},messageId:`unexpected`,fix(e){let t=/(?:\r?\n)+$/u.exec(n.text).index,r=n.text.length;return e.replaceTextRange([t,r],``)}})}}}}}),Ml}var Fl,Il;function Ll(){if(Il)return Fl;Il=1;let e=$();return Fl={meta:{type:`suggestion`,hasSuggestions:!0,docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:`https://eslint.org/docs/latest/rules/eqeqeq`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{null:{enum:[`always`,`never`,`ignore`]}},additionalProperties:!1}],additionalItems:!1},{type:`array`,items:[{enum:[`smart`,`allow-null`]}],additionalItems:!1}]},defaultOptions:[`always`],fixable:`code`,messages:{unexpected:`Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.`,replaceOperator:`Use '{{expectedOperator}}' instead of '{{actualOperator}}'.`}},create(t){let n=t.options[0],r=t.options[1]||{},i=t.sourceCode,a=n===`always`?r.null||`always`:`ignore`,o=a===`always`,s=a===`never`;function c(e){return e.type===`UnaryExpression`&&e.operator===`typeof`}function l(e){return c(e.left)||c(e.right)}function u(t){return t.type===`Literal`?typeof t.value:e.isStaticTemplateLiteral(t)?`string`:null}function d(e){let t=u(e.left);return t!==null&&t===u(e.right)}function f(t){return e.isNullLiteral(t.right)||e.isNullLiteral(t.left)}function p(e,n){let r=i.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator),a={node:e,loc:r.loc,messageId:`unexpected`,data:{expectedOperator:n,actualOperator:e.operator}};l(e)||d(e)?t.report({...a,fix(e){return e.replaceText(r,n)}}):t.report({...a,suggest:[{messageId:`replaceOperator`,data:{expectedOperator:n,actualOperator:e.operator},fix:e=>e.replaceText(r,n)}]})}return{BinaryExpression(e){let t=f(e);e.operator!==`==`&&e.operator!==`!=`?s&&t&&(e.operator===`===`||e.operator===`!==`)&&p(e,e.operator.slice(0,-1)):n===`smart`&&(l(e)||d(e)||t)||(o||!t)&&p(e,`${e.operator}=`)}}}},Fl}var Rl,zl;function Bl(){if(zl)return Rl;zl=1;let{getStaticValue:e}=/*@__PURE__*/ tt();return Rl={meta:{type:`problem`,docs:{description:"Enforce `for` loop update clause moving the counter in the right direction",recommended:!0,url:`https://eslint.org/docs/latest/rules/for-direction`},fixable:null,schema:[],messages:{incorrectDirection:`The update clause in this loop moves the variable in the wrong direction.`}},create(t){let{sourceCode:n}=t;function r(e){t.report({loc:{start:e.loc.start,end:n.getTokenBefore(e.body).loc.end},messageId:`incorrectDirection`})}function i(t,r){let i=e(t.right,n.getScope(t));return i&&[`bigint`,`boolean`,`number`].includes(typeof i.value)?r*(Math.sign(Number(i.value))||0):0}function a(e,t){if(e.argument.type===`Identifier`&&e.argument.name===t){if(e.operator===`++`)return 1;if(e.operator===`--`)return-1}return 0}function o(e,t){if(e.left.name===t){if(e.operator===`+=`)return i(e,1);if(e.operator===`-=`)return i(e,-1)}return 0}function s(e,t){return e.type===`SequenceExpression`?e.expressions.flatMap(e=>s(e,t)):e.type===`UpdateExpression`&&e.argument.type===`Identifier`&&e.argument.name===t||e.type===`AssignmentExpression`&&e.left.type===`Identifier`&&e.left.name===t?[e]:[]}function c(e,t){return e.type===`UpdateExpression`?a(e,t):e.type===`AssignmentExpression`?o(e,t):0}return{ForStatement(e){if(e.test&&e.test.type===`BinaryExpression`&&e.update)for(let t of[`left`,`right`]){if(e.test[t].type!==`Identifier`)continue;let n=e.test[t].name,i=e.test.operator,a=e.update,o;if(i===`<`||i===`<=`)o=t===`left`?-1:1;else if(i===`>`||i===`>=`)o=t===`left`?1:-1;else return;let l=s(a,n);l.length===1&&c(l[0],n)===o&&r(e)}}}}},Rl}var Vl,Hl;function Ul(){if(Hl)return Vl;Hl=1;let e=$();return Vl={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-spacing`,url:`https://eslint.style/rules/function-call-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing between function identifiers and their invocations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/func-call-spacing`},fixable:`whitespace`,schema:{anyOf:[{type:`array`,items:[{enum:[`never`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{allowNewlines:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:`Unexpected whitespace between function name and paren.`,unexpectedNewline:`Unexpected newline between function name and paren.`,missing:`Missing space between function name and paren.`}},create(t){let n=t.options[0]!==`always`,r=!n&&t.options[1]&&t.options[1].allowNewlines,i=t.sourceCode,a=i.getText();function o(o,s,c){let l=a.slice(s.range[1],c.range[0]).replace(/\/\*.*?\*\//gu,``),u=/\s/u.test(l),d=u&&e.LINEBREAK_MATCHER.test(l);n&&u?t.report({node:o,loc:{start:s.loc.end,end:{line:c.loc.start.line,column:c.loc.start.column-1}},messageId:`unexpectedWhitespace`,fix(e){return i.commentsExistBetween(s,c)?null:o.optional?e.replaceTextRange([s.range[1],c.range[0]],`?.`):d?null:e.removeRange([s.range[1],c.range[0]])}}):!n&&!u?t.report({node:o,loc:{start:{line:s.loc.end.line,column:s.loc.end.column-1},end:c.loc.start},messageId:`missing`,fix(e){return o.optional?null:e.insertTextBefore(c,` `)}}):!n&&!r&&d&&t.report({node:o,loc:{start:s.loc.end,end:c.loc.start},messageId:`unexpectedNewline`,fix(e){if(!o.optional||i.commentsExistBetween(s,c))return null;let t=[s.range[1],c.range[0]],n=i.getTokenAfter(s);return n.range[0]===s.range[1]?e.replaceTextRange(t,`?. `):n.range[1]===c.range[0]?e.replaceTextRange(t,` ?.`):e.replaceTextRange(t,` ?. `)}})}return{"CallExpression, NewExpression"(t){let n=i.getLastToken(t),r=i.getLastToken(t.callee),a=i.getFirstTokenBetween(r,n,e.isOpeningParenToken),s=a&&i.getTokenBefore(a,e.isNotQuestionDotToken);a&&a.range[1]<t.range[1]&&o(t,s,a)},ImportExpression(e){let t=i.getFirstToken(e);o(e,t,i.getTokenAfter(t))}}}},Vl}var Wl,Gl;function Kl(){if(Gl)return Wl;Gl=1;let e=$(),t=xs();function n(e){return e.type===`MemberExpression`&&e.object.type===`Identifier`&&e.object.name===`module`&&(e.property.type===`Identifier`&&e.property.name===`exports`||e.property.type===`Literal`&&e.property.value===`exports`)}function r(e,n){return n>=2015?t.keyword.isIdentifierES6(e):t.keyword.isIdentifierES5(e)}function i(e){return e.type===`Literal`&&typeof e.value==`string`}function a(e,t){return e.key.type===`Identifier`&&!e.computed?e.key.name:i(e.key)&&r(e.key.value,t)?e.key.value:null}let o={enum:[`always`,`never`]},s={type:`object`,properties:{considerPropertyDescriptor:{type:`boolean`},includeCommonJSModuleExports:{type:`boolean`}},additionalProperties:!1};return Wl={meta:{type:`suggestion`,docs:{description:`Require function names to match the name of the variable or property to which they are assigned`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/func-name-matching`},schema:{anyOf:[{type:`array`,additionalItems:!1,items:[o,s]},{type:`array`,additionalItems:!1,items:[s]}]},defaultOptions:[`always`],messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(t){let o=(typeof t.options[0]==`object`?t.options[0]:t.options[1])||{},s=typeof t.options[0]==`string`?t.options[0]:`always`,c=o.considerPropertyDescriptor,l=o.includeCommonJSModuleExports,u=t.languageOptions.ecmaVersion,d=t.sourceCode;function f(e,t){return s===`always`&&e!==t||s===`never`&&e===t}function p(e,n,r,i){let a;a=s===`always`&&i?`matchProperty`:s===`always`?`matchVariable`:i?`notMatchProperty`:`notMatchVariable`,t.report({node:e,messageId:a,data:{name:n,funcName:r}})}return{VariableDeclarator(e){e.init&&e.init.type===`FunctionExpression`&&e.id.type===`Identifier`&&e.init.id&&f(e.id.name,e.init.id.name)&&p(e,e.id.name,e.init.id.name,!1)},AssignmentExpression(t){if(t.right.type!==`FunctionExpression`||t.left.computed&&t.left.property.type!==`Literal`||!l&&n(t.left)||t.left.type!==`Identifier`&&t.left.type!==`MemberExpression`)return;let i=t.left.type===`MemberExpression`,a=i?e.getStaticPropertyName(t.left):t.left.name;t.right.id&&a&&r(a)&&f(a,t.right.id.name)&&p(t,a,t.right.id.name,i)},"Property, PropertyDefinition[value]"(t){if(!(t.value.type===`FunctionExpression`&&t.value.id))return;let n=t.value.id.name,o=a(t,u);if(c&&o===`value`&&t.parent.type===`ObjectExpression`&&e.isPropertyDescriptor(t.parent,d)){let e=t.parent.parent;if(e.type===`CallExpression`){let t=e.arguments[1];o=i(t)&&r(t.value,u)?t.value:null}else o=a(e,u)}o!==null&&f(o,n)&&p(t,o,n,!0)}}}},Wl}var ql,Jl;function Yl(){if(Jl)return ql;Jl=1;let e=$();function t(e){return e&&e.defs[0].type===`FunctionName`}return ql={meta:{type:`suggestion`,defaultOptions:[`always`,{}],docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/func-names`},schema:{definitions:{value:{enum:[`always`,`as-needed`,`never`]}},type:`array`,items:[{$ref:`#/definitions/value`},{type:`object`,properties:{generators:{$ref:`#/definitions/value`}},additionalProperties:!1}],additionalItems:!1},messages:{unnamed:`Unexpected unnamed {{name}}.`,named:`Unexpected named {{name}}.`}},create(n){let r=n.sourceCode;function i(e){return e.generator&&n.options[1].generators?n.options[1].generators:n.options[0]}function a(e){let t=e.parent;return t.type===`MethodDefinition`||t.type===`Property`&&(t.method||t.kind===`get`||t.kind===`set`)}function o(t){let n=t.parent;return a(t)||n.type===`VariableDeclarator`&&n.id.type===`Identifier`&&n.init===t||n.type===`Property`&&n.value===t&&!(!n.computed&&e.getStaticPropertyName(n)===`__proto__`)||n.type===`PropertyDefinition`&&n.value===t||n.type===`AssignmentExpression`&&n.left.type===`Identifier`&&!e.isParenthesised(r,n.left)&&[`=`,`&&=`,`||=`,`??=`].includes(n.operator)&&n.right===t||n.type===`AssignmentPattern`&&n.left.type===`Identifier`&&!e.isParenthesised(r,n.left)&&n.right===t}function s(t){n.report({node:t,messageId:`unnamed`,loc:e.getFunctionHeadLoc(t,r),data:{name:e.getFunctionNameWithKind(t)}})}function c(t){n.report({node:t,messageId:`named`,loc:e.getFunctionHeadLoc(t,r),data:{name:e.getFunctionNameWithKind(t)}})}function l(e){let n=r.getDeclaredVariables(e)[0];if(t(n)&&n.references.length>0)return;let l=!!(e.id&&e.id.name),u=i(e);u===`never`?l&&e.type!==`FunctionDeclaration`&&c(e):u===`as-needed`?!l&&!o(e)&&s(e):!l&&!a(e)&&s(e)}return{"FunctionExpression:exit":l,"ExportDefaultDeclaration > FunctionDeclaration":l}}},ql}var Xl,Zl;function Ql(){return Zl||(Zl=1,Xl={meta:{type:`suggestion`,defaultOptions:[`expression`,{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",dialects:[`JavaScript`,`TypeScript`],recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/func-style`},schema:[{enum:[`declaration`,`expression`]},{type:`object`,properties:{allowArrowFunctions:{type:`boolean`},allowTypeAnnotation:{type:`boolean`},overrides:{type:`object`,properties:{namedExports:{enum:[`declaration`,`expression`,`ignore`]}},additionalProperties:!1}},additionalProperties:!1}],messages:{expression:`Expected a function expression.`,declaration:`Expected a function declaration.`}},create(e){let[t,{allowArrowFunctions:n,allowTypeAnnotation:r,overrides:i}]=e.options,a=t===`declaration`,{namedExports:o}=i,s=[];function c(e){let t=e.id.name;return e.parent.type===`ExportNamedDeclaration`?e.parent.parent.body.some(e=>e.type===`ExportNamedDeclaration`&&e.declaration?.type===`TSDeclareFunction`&&e.declaration.id.name===t):e.parent.type===`SwitchCase`?e.parent.parent.cases.some(e=>e.consequent.some(e=>e.type===`TSDeclareFunction`&&e.id.name===t)):Array.isArray(e.parent.body)&&e.parent.body.some(e=>e.type===`TSDeclareFunction`&&e.id.name===t)}let l={FunctionDeclaration(t){s.push(!1),a||t.parent.type===`ExportDefaultDeclaration`||o!==void 0&&t.parent.type===`ExportNamedDeclaration`||c(t)||e.report({node:t,messageId:`expression`}),t.parent.type===`ExportNamedDeclaration`&&o===`expression`&&!c(t)&&e.report({node:t,messageId:`expression`})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(t){s.push(!1),a&&t.parent.type===`VariableDeclarator`&&(o===void 0||t.parent.parent.parent.type!==`ExportNamedDeclaration`)&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}),t.parent.type===`VariableDeclarator`&&t.parent.parent.parent.type===`ExportNamedDeclaration`&&o===`declaration`&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`})},"FunctionExpression:exit"(){s.pop()},"ThisExpression, Super"(){s.length>0&&(s[s.length-1]=!0)}};return n||(l.ArrowFunctionExpression=function(){s.push(!1)},l[`ArrowFunctionExpression:exit`]=function(t){!s.pop()&&t.parent.type===`VariableDeclarator`&&(a&&(o===void 0||t.parent.parent.parent.type!==`ExportNamedDeclaration`)&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}),t.parent.parent.parent.type===`ExportNamedDeclaration`&&o===`declaration`&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}))}),l}}),Xl}var $l,eu;function tu(){return eu||(eu=1,$l={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-argument-newline`,url:`https://eslint.style/rules/function-call-argument-newline`}}]},type:`layout`,docs:{description:`Enforce line breaks between arguments of a function call`,recommended:!1,url:`https://eslint.org/docs/latest/rules/function-call-argument-newline`},fixable:`whitespace`,schema:[{enum:[`always`,`never`,`consistent`]}],messages:{unexpectedLineBreak:`There should be no line break here.`,missingLineBreak:`There should be a line break after this argument.`}},create(e){let t=e.sourceCode,n={unexpected:{messageId:`unexpectedLineBreak`,check:(e,t)=>e.loc.end.line!==t.loc.start.line,createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],` `)},missing:{messageId:`missingLineBreak`,check:(e,t)=>e.loc.end.line===t.loc.start.line,createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],`
138
+ `)}};function r(n,r){for(let i=1;i<n.arguments.length;i++){let a=t.getLastToken(n.arguments[i-1]),o=t.getFirstToken(n.arguments[i]);if(r.check(a,o)){let i=t.getTokenBefore(o,{includeComments:!0}),a=i.type===`Line`;e.report({node:n,loc:{start:i.loc.end,end:o.loc.start},messageId:r.messageId,fix:a?null:r.createFix(o,i)})}}}function i(i){if(i.arguments.length<2)return;let a=e.options[0]||`always`;if(a===`never`)r(i,n.unexpected);else if(a===`always`)r(i,n.missing);else if(a===`consistent`){let e=t.getLastToken(i.arguments[0]),a=t.getFirstToken(i.arguments[1]);e.loc.end.line===a.loc.start.line?r(i,n.unexpected):r(i,n.missing)}}return{CallExpression:i,NewExpression:i}}}),$l}var nu,ru;function iu(){if(ru)return nu;ru=1;let e=$();return nu={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-paren-newline`,url:`https://eslint.style/rules/function-paren-newline`}}]},type:`layout`,docs:{description:`Enforce consistent line breaks inside function parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/function-paren-newline`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`,`consistent`,`multiline`,`multiline-arguments`]},{type:`object`,properties:{minItems:{type:`integer`,minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:`Expected newline before ')'.`,expectedAfter:`Expected newline after '('.`,expectedBetween:`Expected newline between arguments/params.`,unexpectedBefore:`Unexpected newline before ')'.`,unexpectedAfter:`Unexpected newline after '('.`}},create(t){let n=t.sourceCode,r=t.options[0]||`multiline`,i=r===`multiline`,a=r===`multiline-arguments`,o=r===`consistent`,s;s=typeof r==`object`?r.minItems:r===`always`?0:r===`never`?1/0:null;function c(e,t){return a&&e.length===1?t:i||a?e.some((t,n)=>n!==e.length-1&&t.loc.end.line!==e[n+1].loc.start.line):o?t:e.length>=s}function l(r,i){let a=r.leftParen,o=r.rightParen,s=n.getTokenAfter(a),l=n.getTokenBefore(o),u=!e.isTokenOnSameLine(a,s),d=!e.isTokenOnSameLine(l,o),f=c(i,u);u&&!f?t.report({node:a,messageId:`unexpectedAfter`,fix(e){return n.getText().slice(a.range[1],s.range[0]).trim()?null:e.removeRange([a.range[1],s.range[0]])}}):!u&&f&&t.report({node:a,messageId:`expectedAfter`,fix:e=>e.insertTextAfter(a,`
139
+ `)}),d&&!f?t.report({node:o,messageId:`unexpectedBefore`,fix(e){return n.getText().slice(l.range[1],o.range[0]).trim()?null:e.removeRange([l.range[1],o.range[0]])}}):!d&&f&&t.report({node:o,messageId:`expectedBefore`,fix:e=>e.insertTextBefore(o,`
140
+ `)})}function u(r,i){let a=r.leftParen,o=n.getTokenAfter(a),s=c(i,!e.isTokenOnSameLine(a,o));for(let e=0;e<=i.length-2;e++){let n=i[e],r=i[e+1];n.loc.end.line===r.loc.start.line&&s&&t.report({node:n,messageId:`expectedBetween`,fix:e=>e.insertTextBefore(r,`
141
+ `)})}}function d(t){switch(t.type){case`NewExpression`:if(!t.arguments.length&&!(e.isOpeningParenToken(n.getLastToken(t,{skip:1}))&&e.isClosingParenToken(n.getLastToken(t))&&t.callee.range[1]<t.range[1]))return null;case`CallExpression`:return{leftParen:n.getTokenAfter(t.callee,e.isOpeningParenToken),rightParen:n.getLastToken(t)};case`FunctionDeclaration`:case`FunctionExpression`:{let r=n.getFirstToken(t,e.isOpeningParenToken);return{leftParen:r,rightParen:t.params.length?n.getTokenAfter(t.params.at(-1),e.isClosingParenToken):n.getTokenAfter(r)}}case`ArrowFunctionExpression`:{let r=n.getFirstToken(t,{skip:+!!t.async});return e.isOpeningParenToken(r)?{leftParen:r,rightParen:t.params.length?n.getTokenAfter(t.params.at(-1),e.isClosingParenToken):n.getTokenAfter(r)}:null}case`ImportExpression`:return{leftParen:n.getFirstToken(t,1),rightParen:n.getLastToken(t)};default:throw TypeError(`unexpected node with type ${t.type}`)}}return{[[`ArrowFunctionExpression`,`CallExpression`,`FunctionDeclaration`,`FunctionExpression`,`ImportExpression`,`NewExpression`]](t){let n=d(t),r;r=t.type===`ImportExpression`?[t.source]:e.isFunction(t)?t.params:t.arguments,n&&(l(n,r),a&&u(n,r))}}}},nu}var au,ou;function su(){if(ou)return au;ou=1;let e={oneOf:[{enum:[`before`,`after`,`both`,`neither`]},{type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`}},additionalProperties:!1}]};return au={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`generator-star-spacing`,url:`https://eslint.style/rules/generator-star-spacing`}}]},type:`layout`,docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:`https://eslint.org/docs/latest/rules/generator-star-spacing`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`before`,`after`,`both`,`neither`]},{type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`},named:e,anonymous:e,method:e},additionalProperties:!1}]}],messages:{missingBefore:`Missing space before *.`,missingAfter:`Missing space after *.`,unexpectedBefore:`Unexpected space before *.`,unexpectedAfter:`Unexpected space after *.`}},create(e){let t={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function n(e,n){return e?typeof e==`string`?t[e]:Object.assign({},n,e):n}let r=(function(e){let r=n(e,t.before);return{named:n(e.named,r),anonymous:n(e.anonymous,r),method:n(e.method,r)}})(e.options[0]||{}),i=e.sourceCode;function a(e){return e.value===`*`&&e.type===`Punctuator`}function o(e){return i.getFirstToken(e.parent.method||e.parent.type===`MethodDefinition`?e.parent:e,a)}function s(e){return e[0].toUpperCase()+e.slice(1)}function c(t,n,i,a){if(!!(a.range[0]-i.range[1])!==r[t][n]){let o=i.value===`*`,c=r[t][n],l=o?i:a,u=`${c?`missing`:`unexpected`}${s(n)}`;e.report({node:l,messageId:u,fix(e){return c?o?e.insertTextAfter(l,` `):e.insertTextBefore(l,` `):e.removeRange([i.range[1],a.range[0]])}})}}function l(e){if(!e.generator)return;let t=o(e),n=i.getTokenBefore(t),r=i.getTokenAfter(t),a=`named`;e.parent.type===`MethodDefinition`||e.parent.type===`Property`&&e.parent.method?a=`method`:e.id||(a=`anonymous`),(a!==`method`||t!==i.getFirstToken(e.parent))&&c(a,`before`,n,t),c(a,`after`,t,r)}return{FunctionDeclaration:l,FunctionExpression:l}}},au}var cu,lu;function uu(){if(lu)return cu;lu=1;let e=$(),{isAnySegmentReachable:t}=Qs(),n=/^(?:Arrow)?FunctionExpression$/u;return cu={meta:{type:`problem`,defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:`https://eslint.org/docs/latest/rules/getter-return`},fixable:null,schema:[{type:`object`,properties:{allowImplicit:{type:`boolean`}},additionalProperties:!1}],messages:{expected:`Expected to return a value in {{name}}.`,expectedAlways:`Expected {{name}} to always return a value.`}},create(r){let[{allowImplicit:i}]=r.options,a=r.sourceCode,o={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function s(n){o.shouldCheck&&t(o.currentSegments)&&r.report({node:n,loc:e.getFunctionHeadLoc(n,a),messageId:o.hasReturn?`expectedAlways`:`expected`,data:{name:e.getFunctionNameWithKind(o.node)}})}function c(t){let r=t.parent;return!!(n.test(t.type)&&t.body.type===`BlockStatement`&&(r.kind===`get`||r.type===`Property`&&e.getStaticPropertyName(r)===`get`&&r.parent.type===`ObjectExpression`&&e.isPropertyDescriptor(r.parent,a)))}return{onCodePathStart(e,t){o={upper:o,codePath:e,hasReturn:!1,shouldCheck:c(t),node:t,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(){o=o.upper},onUnreachableCodePathSegmentStart(e){o.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){o.currentSegments.delete(e)},onCodePathSegmentStart(e){o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},ReturnStatement(t){o.shouldCheck&&(o.hasReturn=!0,!i&&!t.argument&&r.report({node:t,messageId:`expected`,data:{name:e.getFunctionNameWithKind(o.node)}}))},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}},cu}var du,fu;function pu(){if(fu)return du;fu=1;let e=/* @__PURE__ */ new Set([`AssignmentExpression`,`VariableDeclarator`,`MemberExpression`,`ExpressionStatement`,`CallExpression`,`ConditionalExpression`,`Program`,`VariableDeclaration`,`ChainExpression`]);function t(e,t){let n=e.references.filter(e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]);
142
+ /* c8 ignore next */
143
+ return n.length===1?n[0]:null}function n(e,n){let r=t(e,n);return r&&r.resolved&&r.resolved.defs.length>0}return du={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`global-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md`}}]},type:`suggestion`,docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:`https://eslint.org/docs/latest/rules/global-require`},schema:[],messages:{unexpected:`Unexpected require().`}},create(t){let r=t.sourceCode;return{CallExpression(i){let a=r.getScope(i);i.callee.name!==`require`||n(a,i.callee)||r.getAncestors(i).every(t=>e.has(t.type))||t.report({node:i,messageId:`unexpected`})}}}},du}var mu,hu;function gu(){if(hu)return mu;hu=1;let e=$();function t(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||r.value!==i.value)return!1}return!0}function n(e,n){return typeof e==`string`&&typeof n==`string`?e===n:Array.isArray(e)&&Array.isArray(n)?t(e,n):!1}function r(e){return e.kind===`get`||e.kind===`set`}return mu={meta:{type:`suggestion`,defaultOptions:[`anyOrder`,{enforceForTSTypes:!1}],docs:{description:`Require grouped accessor pairs in object literals and classes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/grouped-accessor-pairs`},schema:[{enum:[`anyOrder`,`getBeforeSet`,`setBeforeGet`]},{type:`object`,properties:{enforceForTSTypes:{type:`boolean`}},additionalProperties:!1}],messages:{notGrouped:`Accessor pair {{ formerName }} and {{ latterName }} should be grouped.`,invalidOrder:`Expected {{ latterName }} to be before {{ formerName }}.`}},create(t){let[i,{enforceForTSTypes:a}]=t.options,{sourceCode:o}=t;function s(n,r,i){t.report({node:i,messageId:n,loc:e.getFunctionHeadLoc(i.type===`TSMethodSignature`?i:i.value,o),data:{formerName:e.getFunctionNameWithKind(r.type===`TSMethodSignature`?r:r.value),latterName:e.getFunctionNameWithKind(i.type===`TSMethodSignature`?i:i.value)}})}function c(t,a){let c=[],l=!1;for(let i=0;i<t.length;i++){let s=t[i];if(a(s)&&r(s)){let t=e.getStaticPropertyName(s),r=t===null?o.getTokens(s.key):t;for(let e=0;e<c.length;e++){let t=c[e];if(n(t.key,r)){t.getters.push(...s.kind===`get`?[s]:[]),t.setters.push(...s.kind===`set`?[s]:[]),l=!0;break}}l||c.push({key:r,getters:s.kind===`get`?[s]:[],setters:s.kind===`set`?[s]:[]}),l=!1}}for(let{getters:e,setters:n}of c)if(e.length===1&&n.length===1){let[r]=e,[a]=n,o=t.indexOf(r),c=t.indexOf(a),l=o<c?r:a,u=o<c?a:r;Math.abs(o-c)>1?s(`notGrouped`,l,u):(i===`getBeforeSet`&&o>c||i===`setBeforeGet`&&o<c)&&s(`invalidOrder`,l,u)}}return{ObjectExpression(e){c(e.properties,e=>e.type===`Property`)},ClassBody(e){c(e.body,e=>e.type===`MethodDefinition`&&!e.static),c(e.body,e=>e.type===`MethodDefinition`&&e.static)},"TSTypeLiteral, TSInterfaceBody"(e){a&&c(e.type===`TSTypeLiteral`?e.members:e.body,e=>e.type===`TSMethodSignature`)}}}},mu}var _u,vu;function yu(){return vu||(vu=1,_u={meta:{type:`suggestion`,docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:`https://eslint.org/docs/latest/rules/guard-for-in`},schema:[],messages:{wrap:`The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.`}},create(e){return{ForInStatement(t){let n=t.body;if(n.type!==`EmptyStatement`&&n.type!==`IfStatement`&&(n.type!==`BlockStatement`||n.body.length!==0)&&(n.type!==`BlockStatement`||n.body.length!==1||n.body[0].type!==`IfStatement`)){if(n.type===`BlockStatement`&&n.body.length>=1&&n.body[0].type===`IfStatement`){let e=n.body[0];if(e.consequent.type===`ContinueStatement`||e.consequent.type===`BlockStatement`&&e.consequent.body.length===1&&e.consequent.body[0].type===`ContinueStatement`)return}e.report({node:t,messageId:`wrap`})}}}}}),_u}var bu,xu;function Su(){return xu||(xu=1,bu={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`handle-callback-err`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md`}}]},type:`suggestion`,docs:{description:`Require error handling in callbacks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/handle-callback-err`},schema:[{type:`string`}],messages:{expected:`Expected error to be handled.`}},create(e){let t=e.options[0]||`err`,n=e.sourceCode;function r(e){return e[0]===`^`}function i(e){return r(t)?new RegExp(t,`u`).test(e):e===t}function a(e){return e.variables.filter(e=>e.defs[0]&&e.defs[0].type===`Parameter`)}function o(t){let r=a(n.getScope(t))[0];r&&i(r.name)&&r.references.length===0&&e.report({node:t,messageId:`expected`})}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o}}}),bu}var Cu,wu;function Tu(){if(wu)return Cu;wu=1;function e(e){let t=e.parent;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`RestElement`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`AssignmentPattern`&&t.left===e}function t(e){let t=e.parent;return t.type===`ImportSpecifier`&&t.imported!==t.local&&t.imported===e||t.type===`ExportSpecifier`&&t.parent.source&&t.local!==t.exported&&t.local===e}function n(e){let t=e.parent;return!t.computed&&t.type===`Property`&&t.parent.type===`ObjectPattern`&&t.value!==e&&t.key===e}function r(e){let t=e.parent;return t.type===`Property`&&t.parent.type===`ObjectExpression`&&t.shorthand}return Cu={meta:{deprecated:{message:`The rule was renamed.`,url:`https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist`,deprecatedSince:`7.5.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`id-denylist`,url:`https://eslint.org/docs/rules/id-denylist`}}]},type:`suggestion`,docs:{description:`Disallow specified identifiers`,recommended:!1,url:`https://eslint.org/docs/latest/rules/id-blacklist`},schema:{type:`array`,items:{type:`string`},uniqueItems:!0},messages:{restricted:`Identifier '{{name}}' is restricted.`}},create(i){let a=new Set(i.options),o=/* @__PURE__ */ new Set,s=i.sourceCode,c;function l(e){return a.has(e)}function u(e){let t=c.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function d(i){let a=i.parent;return a.type===`MemberExpression`&&a.property===i&&!a.computed?e(a):a.type!==`CallExpression`&&a.type!==`NewExpression`&&!t(i)&&!n(i)&&!(u(i)&&!r(i))}function f(e){o.has(e.range.toString())||(i.report({node:e,messageId:`restricted`,data:{name:e.name}}),o.add(e.range.toString()))}return{Program(e){c=s.getScope(e)},Identifier(e){l(e.name)&&d(e)&&f(e)}}}},Cu}var Eu,Du;function Ou(){if(Du)return Eu;Du=1;let e=$();function t(e){let t=e.parent;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`RestElement`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`AssignmentPattern`&&t.left===e}function n(e){let t=e.parent;return t.type===`ImportSpecifier`&&t.imported!==t.local&&t.imported===e||t.type===`ExportSpecifier`&&t.parent.source&&t.local!==t.exported&&t.local===e}function r(e){let t=e.parent;return!t.computed&&t.type===`Property`&&t.parent.type===`ObjectPattern`&&t.key===e}return Eu={meta:{type:`suggestion`,defaultOptions:[],docs:{description:`Disallow specified identifiers`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-denylist`},schema:{type:`array`,items:{type:`string`},uniqueItems:!0},messages:{restricted:`Identifier '{{name}}' is restricted.`,restrictedPrivate:`Identifier '#{{name}}' is restricted.`}},create(i){let a=new Set(i.options),o=/* @__PURE__ */ new Set,s=i.sourceCode,c;function l(e){return a.has(e)}function u(e){let t=c.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function d(i){if(e.isImportAttributeKey(i))return!1;let a=i.parent;return a.type===`MetaProperty`?!1:a.type===`MemberExpression`&&a.property===i&&!a.computed?t(a):a.type!==`CallExpression`&&a.type!==`NewExpression`&&!n(i)&&!r(i)&&!u(i)}function f(e){if(!o.has(e.range.toString())){let t=e.type===`PrivateIdentifier`;i.report({node:e,messageId:t?`restrictedPrivate`:`restricted`,data:{name:e.name}}),o.add(e.range.toString())}}return{Program(e){c=s.getScope(e)},[[`Identifier`,`PrivateIdentifier`]](e){l(e.name)&&d(e)&&f(e)}}}},Eu}var ku,Au;function ju(){if(Au)return ku;Au=1;let{getGraphemeCount:e}=Yc(),{getModuleExportName:t,isImportAttributeKey:n}=$();return ku={meta:{type:`suggestion`,defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:`always`}],docs:{description:`Enforce minimum and maximum identifier lengths`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-length`},schema:[{type:`object`,properties:{min:{type:`integer`},max:{type:`integer`},exceptions:{type:`array`,uniqueItems:!0,items:{type:`string`}},exceptionPatterns:{type:`array`,uniqueItems:!0,items:{type:`string`}},properties:{enum:[`always`,`never`]}},additionalProperties:!1}],messages:{tooShort:`Identifier name '{{name}}' is too short (< {{min}}).`,tooShortPrivate:`Identifier name '#{{name}}' is too short (< {{min}}).`,tooLong:`Identifier name '{{name}}' is too long (> {{max}}).`,tooLongPrivate:`Identifier name '#{{name}}' is too long (> {{max}}).`}},create(r){let[i]=r.options,{max:a=1/0,min:o}=i,s=i.properties!==`never`,c=new Set(i.exceptions),l=i.exceptionPatterns.map(e=>new RegExp(e,`u`)),u=/* @__PURE__ */ new Set;function d(e){return l.some(t=>t.test(e))}let f={MemberExpression:s&&function(e){return!e.computed&&(e.parent.left===e&&e.parent.type===`AssignmentExpression`||e.parent.type===`Property`&&e.parent.value===e&&e.parent.parent.type===`ObjectPattern`&&e.parent.parent.parent.left===e.parent.parent)},AssignmentPattern(e,t){return e.left===t},VariableDeclarator(e,t){return e.id===t},Property(e,t){if(e.parent.type===`ObjectPattern`){let n=e.value.name===e.key.name;return!n&&e.value===t||n&&e.key===t&&s}return s&&!n(t)&&!e.computed&&e.key.name===t.name},ImportSpecifier(e,n){return e.local===n&&t(e.imported)!==t(e.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[[`Identifier`,`PrivateIdentifier`]](t){let n=t.name,i=t.parent,s=e(n),l=s<o;if(!(l||s>a)||c.has(n)||d(n))return;let p=f[i.type];if(p&&!u.has(t.range.toString())&&(p===!0||p(i,t))){u.add(t.range.toString());let e=l?`tooShort`:`tooLong`;t.type===`PrivateIdentifier`&&(e+=`Private`),r.report({node:t,messageId:e,data:{name:n,min:o,max:a}})}}}}},ku}var Mu,Nu;function Pu(){if(Nu)return Mu;Nu=1;let e=$();return Mu={meta:{type:`suggestion`,defaultOptions:[`^.+$`,{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:`Require identifiers to match a specified regular expression`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-match`},schema:[{type:`string`},{type:`object`,properties:{properties:{type:`boolean`},classFields:{type:`boolean`},onlyDeclarations:{type:`boolean`},ignoreDestructuring:{type:`boolean`}},additionalProperties:!1}],messages:{notMatch:`Identifier '{{name}}' does not match the pattern '{{pattern}}'.`,notMatchPrivate:`Identifier '#{{name}}' does not match the pattern '{{pattern}}'.`}},create(t){let[n,{classFields:r,ignoreDestructuring:i,onlyDeclarations:a,properties:o}]=t.options,s=new RegExp(n,`u`),c=t.sourceCode,l,u=/* @__PURE__ */ new Set,d=/* @__PURE__ */ new Set([`CallExpression`,`NewExpression`]),f=/* @__PURE__ */ new Set([`FunctionDeclaration`,`VariableDeclarator`]),p=/* @__PURE__ */ new Set([`ImportSpecifier`,`ImportNamespaceSpecifier`,`ImportDefaultSpecifier`]);function m(e){let t=l.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function h(e){return!s.test(e)}function g(e){let{parent:t}=e;for(;t;){if(t.type===`ObjectPattern`)return!0;t=t.parent}return!1}function _(e,t){return(!a||f.has(e.type))&&!d.has(e.type)&&h(t)}function v(e){if(!u.has(e.range.toString())){let r=e.type===`PrivateIdentifier`?`notMatchPrivate`:`notMatch`;t.report({node:e,messageId:r,data:{name:e.name,pattern:n}}),u.add(e.range.toString())}}return{Program(e){l=c.getScope(e)},Identifier(t){let n=t.name,a=t.parent,s=a.type===`MemberExpression`?a.parent:a;if(!(m(t)||e.isImportAttributeKey(t)||a.type===`MetaProperty`)){if(a.type===`MemberExpression`){if(!o)return;a.object.type===`Identifier`&&a.object.name===n||s.type===`AssignmentExpression`&&s.left.type===`MemberExpression`&&s.left.property.name===t.name?h(n)&&v(t):s.type===`AssignmentExpression`&&s.right.type!==`MemberExpression`&&h(n)&&v(t)}else if(a.type===`Property`&&a.parent.type===`ObjectExpression`&&a.key===t&&!a.computed)o&&h(n)&&v(t);else if(a.type===`Property`||a.type===`AssignmentPattern`){if(a.parent&&a.parent.type===`ObjectPattern`){!i&&a.shorthand&&a.value.left&&h(n)&&v(t);let e=a.key.name===a.value.name;if(!e&&a.key===t)return;a.value.name&&h(n)&&!(e&&i)&&v(t)}if(!o&&!a.computed||i&&g(t))return;a.right!==t&&_(s,n)&&v(t)}else p.has(a.type)?a.local&&a.local.name===t.name&&h(n)&&v(t):a.type===`PropertyDefinition`?r&&h(n)&&v(t):_(s,n)&&v(t)}},PrivateIdentifier(e){(e.parent.type!==`PropertyDefinition`||r)&&h(e.name)&&v(e)}}}},Mu}var Fu,Iu;function Lu(){if(Iu)return Fu;Iu=1;let{isCommentToken:e,isNotOpeningParenToken:t}=$();return Fu={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`implicit-arrow-linebreak`,url:`https://eslint.style/rules/implicit-arrow-linebreak`}}]},type:`layout`,docs:{description:`Enforce the location of arrow function bodies`,recommended:!1,url:`https://eslint.org/docs/latest/rules/implicit-arrow-linebreak`},fixable:`whitespace`,schema:[{enum:[`beside`,`below`]}],messages:{expected:`Expected a linebreak before this expression.`,unexpected:`Expected no linebreak before this expression.`}},create(n){let r=n.sourceCode,i=n.options[0]||`beside`;function a(a){if(a.body.type===`BlockStatement`)return;let o=r.getTokenBefore(a.body,t),s=r.getTokenAfter(o);o.loc.end.line===s.loc.start.line&&i===`below`?n.report({node:s,messageId:`expected`,fix:e=>e.insertTextBefore(s,`
144
+ `)}):o.loc.end.line!==s.loc.start.line&&i===`beside`&&n.report({node:s,messageId:`unexpected`,fix(t){return r.getFirstTokenBetween(o,s,{includeComments:!0,filter:e})?null:t.replaceTextRange([o.range[1],s.range[0]],` `)}})}return{ArrowFunctionExpression:e=>a(e)}}},Fu}var Ru,zu;function Bu(){if(zu)return Ru;zu=1;let e=$(),t=/* @__PURE__ */ new Set(/* @__PURE__ */ `AssignmentExpression.AssignmentPattern.ArrayExpression.ArrayPattern.ArrowFunctionExpression.AwaitExpression.BlockStatement.BinaryExpression.BreakStatement.CallExpression.CatchClause.ChainExpression.ClassBody.ClassDeclaration.ClassExpression.ConditionalExpression.ContinueStatement.DoWhileStatement.DebuggerStatement.EmptyStatement.ExperimentalRestProperty.ExperimentalSpreadProperty.ExpressionStatement.ForStatement.ForInStatement.ForOfStatement.FunctionDeclaration.FunctionExpression.Identifier.IfStatement.Literal.LabeledStatement.LogicalExpression.MemberExpression.MetaProperty.MethodDefinition.NewExpression.ObjectExpression.ObjectPattern.PrivateIdentifier.Program.Property.PropertyDefinition.RestElement.ReturnStatement.SequenceExpression.SpreadElement.StaticBlock.Super.SwitchCase.SwitchStatement.TaggedTemplateExpression.TemplateElement.TemplateLiteral.ThisExpression.ThrowStatement.TryStatement.UnaryExpression.UpdateExpression.VariableDeclaration.VariableDeclarator.WhileStatement.WithStatement.YieldExpression.JSXFragment.JSXOpeningFragment.JSXClosingFragment.JSXIdentifier.JSXNamespacedName.JSXMemberExpression.JSXEmptyExpression.JSXExpressionContainer.JSXElement.JSXClosingElement.JSXOpeningElement.JSXAttribute.JSXSpreadAttribute.JSXText.ExportDefaultDeclaration.ExportNamedDeclaration.ExportAllDeclaration.ExportSpecifier.ImportDeclaration.ImportSpecifier.ImportDefaultSpecifier.ImportNamespaceSpecifier.ImportExpression`.split(`.`));class n{constructor(e){this._values=Array(e+1)}insert(e,t){this._values[e]=t}findLastNotAfter(e){let t=this._values;for(let n=e;n>=0;n--){let e=t[n];if(e)return e}}deleteRange(e,t){this._values.fill(void 0,e,t)}}class r{constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=/* @__PURE__ */ new Map;let t=e.tokensAndComments;for(let n=0;n<t.length;n++){let r=t[n];this.firstTokensByLineNumber.has(r.loc.start.line)||this.firstTokensByLineNumber.set(r.loc.start.line,r),!this.firstTokensByLineNumber.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&this.firstTokensByLineNumber.set(r.loc.end.line,r)}}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}}class i{constructor(e,t,r,i){this._tokenInfo=e,this._indentSize=t,this._indentType=r,this._indexMap=new n(i),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=/* @__PURE__ */ new WeakMap,this._desiredIndentCache=/* @__PURE__ */ new WeakMap,this._ignoredTokens=/* @__PURE__ */ new WeakSet}_getOffsetDescriptor(e){return this._indexMap.findLastNotAfter(e.range[0])}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,n){return this.setDesiredOffsets(e.range,t,n)}setDesiredOffsets(e,t,n,r){let i={offset:n,from:t,force:r},a=this._indexMap.findLastNotAfter(e[1]),o=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],s=o&&this._getOffsetDescriptor(t);this._indexMap.deleteRange(e[0]+1,e[1]),this._indexMap.insert(e[0],i),o&&(this._indexMap.insert(t.range[0],s),this._indexMap.insert(t.range[1],i)),this._indexMap.insert(e[1],a)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e)){if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){let t=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(t))+this._indentType.repeat(t.loc.start.column-this._tokenInfo.getFirstTokenOfLine(t).loc.start.column))}else{let t=this._getOffsetDescriptor(e),n=t.from&&t.from.loc.start.line===e.loc.start.line&&!/^\s*?\n/u.test(e.value)&&!t.force?0:t.offset*this._indentSize;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):``)+this._indentType.repeat(n))}}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}}let a={oneOf:[{type:`integer`,minimum:0},{enum:[`first`,`off`]}]};return Ru={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`indent`,url:`https://eslint.style/rules/indent`}}]},type:`layout`,docs:{description:`Enforce consistent indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/indent`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`tab`]},{type:`integer`,minimum:0}]},{type:`object`,properties:{SwitchCase:{type:`integer`,minimum:0,default:0},VariableDeclarator:{oneOf:[a,{type:`object`,properties:{var:a,let:a,const:a},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:`integer`,minimum:0},{enum:[`off`]}]},MemberExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`off`]}]},FunctionDeclaration:{type:`object`,properties:{parameters:a,body:{type:`integer`,minimum:0}},additionalProperties:!1},FunctionExpression:{type:`object`,properties:{parameters:a,body:{type:`integer`,minimum:0}},additionalProperties:!1},StaticBlock:{type:`object`,properties:{body:{type:`integer`,minimum:0}},additionalProperties:!1},CallExpression:{type:`object`,properties:{arguments:a},additionalProperties:!1},ArrayExpression:a,ObjectExpression:a,ImportDeclaration:a,flatTernaryExpressions:{type:`boolean`,default:!1},offsetTernaryExpressions:{type:`boolean`,default:!1},ignoredNodes:{type:`array`,items:{type:`string`,not:{pattern:`:exit$`}}},ignoreComments:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{wrongIndentation:`Expected indentation of {{expected}} but found {{actual}}.`}},create(n){let a=`space`,o=4,s={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};n.options.length&&(n.options[0]===`tab`?(o=1,a=`tab`):(o=n.options[0],a=`space`),n.options[1]&&(Object.assign(s,n.options[1]),(typeof s.VariableDeclarator==`number`||s.VariableDeclarator===`first`)&&(s.VariableDeclarator={var:s.VariableDeclarator,let:s.VariableDeclarator,const:s.VariableDeclarator})));let c=n.sourceCode,l=new r(c),u=new i(l,o,a===`space`?` `:` `,c.text.length),d=/* @__PURE__ */ new WeakSet;function f(e,t,n){let r=`${e} ${a}${e===1?``:`s`}`,i=`space${t===1?``:`s`}`,o=`tab${n===1?``:`s`}`,s;return s=t>0?a===`space`?t:`${t} ${i}`:n>0?a===`tab`?n:`${n} ${o}`:`0`,{expected:r,actual:s}}function p(e,t){let r=Array.from(l.getTokenIndent(e)),i=r.filter(e=>e===` `).length,a=r.filter(e=>e===` `).length;n.report({node:e,messageId:`wrongIndentation`,data:f(t.length,i,a),loc:{start:{line:e.loc.start.line,column:0},end:{line:e.loc.start.line,column:e.loc.start.column}},fix(n){let r=[e.range[0]-e.loc.start.column,e.range[0]],i=t;return n.replaceTextRange(r,i)}})}function m(e,t){let n=l.getTokenIndent(e);return n===t||n.includes(` `)&&n.includes(` `)}function h(e){if(!e.parent||e.parent.type!==`CallExpression`||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;t.type===`UnaryExpression`&&[`!`,`~`,`+`,`-`].includes(t.operator)||t.type===`AssignmentExpression`||t.type===`LogicalExpression`||t.type===`SequenceExpression`||t.type===`VariableDeclarator`;)t=t.parent;return(t.type===`ExpressionStatement`||t.type===`VariableDeclaration`)&&t.parent.type===`Program`}function g(t){let n=t.match(/\s*$/u)[0].match(e.createGlobalLinebreakMatcher());return n===null?0:n.length}function _(t,n,r,i){function a(t){let r=c.getTokenBefore(t);for(;e.isOpeningParenToken(r)&&r!==n;)r=c.getTokenBefore(r);return c.getTokenAfter(r)}u.setDesiredOffsets([n.range[1],r.range[0]],n,typeof i==`number`?i:1),u.setDesiredOffset(r,n,0),(i!==`first`||!t.length||t[0])&&t.forEach((e,r)=>{if(e&&(i===`off`&&u.ignoreToken(a(e)),r!==0)){if(i===`first`&&l.isFirstTokenOfLine(a(e)))u.matchOffsetOf(a(t[0]),a(e));else{let i=t[r-1],o=i&&a(i),s=i&&c.getLastToken(i);i&&s.loc.end.line-g(s.value)>n.loc.end.line&&u.setDesiredOffsets([i.range[1],e.range[1]],o,0)}}})}function v(t){if(t.type!==`BlockStatement`){let n=c.getTokenBefore(t,e.isNotOpeningParenToken),r=c.getFirstToken(t),i=c.getLastToken(t);for(;e.isOpeningParenToken(c.getTokenBefore(r))&&e.isClosingParenToken(c.getTokenAfter(i));)r=c.getTokenBefore(r),i=c.getTokenAfter(i);u.setDesiredOffsets([r.range[0],i.range[1]],n,1)}}function y(t){let n;n=t.arguments.length?c.getFirstTokenBetween(t.callee,t.arguments[0],e.isOpeningParenToken):c.getLastToken(t,1);let r=c.getLastToken(t);if(d.add(n),d.add(r),t.optional){let r=c.getTokenAfter(t.callee,e.isQuestionDotToken),i=c.getTokensBetween(t.callee,r,{filter:e.isClosingParenToken}).length,a=i?c.getTokenBefore(t.callee,{skip:i-1}):c.getFirstToken(t.callee),o=c.getTokenBefore(r),s=o.loc.end.line===n.loc.start.line?o:a;u.setDesiredOffset(r,s,1)}let i=t.callee.type===`TaggedTemplateExpression`?c.getFirstToken(t.callee.quasi):n,a=c.getTokenBefore(i);u.setDesiredOffset(n,a,0),_(t.arguments,n,r,s.CallExpression.arguments)}function b(t){let n=[],r=[];for(let i=0;i<t.length;i++){let a=t[i];e.isOpeningParenToken(a)?n.push(a):e.isClosingParenToken(a)&&r.push({left:n.pop(),right:a})}for(let e=r.length-1;e>=0;e--){let t=r[e].left,n=r[e].right;if(!d.has(t)&&!d.has(n)){let e=new Set(c.getTokensBetween(t,n));e.forEach(n=>{e.has(u.getFirstDependency(n))||u.setDesiredOffset(n,t,1)})}u.setDesiredOffset(n,t,0)}}function x(e){let t=new Set(c.getTokens(e,{includeComments:!0}));t.forEach(e=>{if(!t.has(u.getFirstDependency(e))){let t=l.getFirstTokenOfLine(e);e===t?u.ignoreToken(e):u.setDesiredOffset(e,t,0)}})}function S(e,t){let n=t;for(;n.parent&&!n.parent.type.endsWith(`Statement`)&&!n.parent.type.endsWith(`Declaration`);)n=n.parent;return n=n.parent,!n||n.loc.start.line===e.loc.start.line}function C(e,t){let n=e.loc.end.line,r=t.loc.start.line;if(n===r||n===r-1)return!1;for(let e=n+1;e<r;++e)if(!l.firstTokensByLineNumber.has(e))return!0;return!1}let w=/* @__PURE__ */ new Set,T={"ArrayExpression, ArrayPattern"(t){let n=c.getFirstToken(t),r=c.getTokenAfter([...t.elements].reverse().find(e=>e)||n,e.isClosingBracketToken);_(t.elements,n,r,s.ArrayExpression)},"ObjectExpression, ObjectPattern"(t){let n=c.getFirstToken(t),r=c.getTokenAfter(t.properties.length?t.properties.at(-1):n,e.isClosingBraceToken);_(t.properties,n,r,s.ObjectExpression)},ArrowFunctionExpression(t){let n=c.getFirstToken(t,{skip:+!!t.async});if(e.isOpeningParenToken(n)){let r=n,i=c.getTokenBefore(t.body,e.isClosingParenToken);d.add(r),d.add(i),_(t.params,r,i,s.FunctionExpression.parameters)}v(t.body)},AssignmentExpression(e){let t=c.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator);u.setDesiredOffsets([t.range[0],e.range[1]],c.getLastToken(e.left),1),u.ignoreToken(t),u.ignoreToken(c.getTokenAfter(t))},"BinaryExpression, LogicalExpression"(e){let t=c.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator),n=c.getTokenAfter(t);u.ignoreToken(t),u.ignoreToken(n),u.setDesiredOffset(n,t,0)},"BlockStatement, ClassBody"(t){let n;n=t.parent&&h(t.parent)?s.outerIIFEBody:t.parent&&(t.parent.type===`FunctionExpression`||t.parent.type===`ArrowFunctionExpression`)?s.FunctionExpression.body:t.parent&&t.parent.type===`FunctionDeclaration`?s.FunctionDeclaration.body:1,e.STATEMENT_LIST_PARENTS.has(t.parent.type)||u.setDesiredOffset(c.getFirstToken(t),c.getFirstToken(t.parent),0),_(t.body,c.getFirstToken(t),c.getLastToken(t),n)},CallExpression:y,"ClassDeclaration[superClass], ClassExpression[superClass]"(t){let n=c.getFirstToken(t),r=c.getTokenBefore(t.superClass,e.isNotOpeningParenToken);u.setDesiredOffsets([r.range[0],t.body.range[0]],n,1)},ConditionalExpression(t){let n=c.getFirstToken(t);if(!s.flatTernaryExpressions||!e.isTokenOnSameLine(t.test,t.consequent)||S(n,t)){let e=c.getFirstTokenBetween(t.test,t.consequent,e=>e.type===`Punctuator`&&e.value===`?`),r=c.getFirstTokenBetween(t.consequent,t.alternate,e=>e.type===`Punctuator`&&e.value===`:`),i=c.getTokenAfter(e),a=c.getTokenBefore(r),o=c.getTokenAfter(r);u.setDesiredOffset(e,n,1),u.setDesiredOffset(r,n,1),u.setDesiredOffset(i,n,i.type===`Punctuator`&&s.offsetTernaryExpressions?2:1),a.loc.end.line===o.loc.start.line?u.setDesiredOffset(o,i,0):u.setDesiredOffset(o,n,o.type===`Punctuator`&&s.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":e=>v(e.body),ExportNamedDeclaration(t){if(t.declaration===null){let n=c.getLastToken(t,e.isClosingBraceToken);_(t.specifiers,c.getFirstToken(t,{skip:1}),n,1),t.source&&u.setDesiredOffsets([n.range[1],t.range[1]],c.getFirstToken(t),1)}},ForStatement(e){let t=c.getFirstToken(e,1);e.init&&u.setDesiredOffsets(e.init.range,t,1),e.test&&u.setDesiredOffsets(e.test.range,t,1),e.update&&u.setDesiredOffsets(e.update.range,t,1),v(e.body)},"FunctionDeclaration, FunctionExpression"(e){let t=c.getTokenBefore(e.body),n=c.getTokenBefore(e.params.length?e.params[0]:t);d.add(n),d.add(t),_(e.params,n,t,s[e.type].parameters)},IfStatement(e){v(e.consequent),e.alternate&&v(e.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(t){let n;t.type===`IfStatement`?(n=[t.consequent],t.alternate&&n.push(t.alternate)):n=[t.body];for(let r of n){let n=c.getLastToken(r);if(e.isSemicolonToken(n)){let r=c.getTokenBefore(n),i=c.getTokenAfter(n);!e.isTokenOnSameLine(r,n)&&i&&e.isTokenOnSameLine(n,i)&&u.setDesiredOffset(n,c.getFirstToken(t),0)}}},ImportDeclaration(t){if(t.specifiers.some(e=>e.type===`ImportSpecifier`)){let n=c.getFirstToken(t,e.isOpeningBraceToken),r=c.getLastToken(t,e.isClosingBraceToken);_(t.specifiers.filter(e=>e.type===`ImportSpecifier`),n,r,s.ImportDeclaration)}let n=c.getLastToken(t,e=>e.type===`Identifier`&&e.value===`from`),r=c.getLastToken(t,e=>e.type===`String`),i=c.getLastToken(t,e=>e.type===`Punctuator`&&e.value===`;`);if(n){let e=i&&i.range[1]===r.range[1]?t.range[1]:r.range[1];u.setDesiredOffsets([n.range[0],e],c.getFirstToken(t),1)}},ImportExpression(e){let t=c.getFirstToken(e,1),n=c.getLastToken(e);d.add(t),d.add(n),u.setDesiredOffset(t,c.getTokenBefore(t),0),_([e.source],t,n,s.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(t){let n=t.type===`MetaProperty`?t.meta:t.object,r=c.getFirstTokenBetween(n,t.property,e.isNotClosingParenToken),i=c.getTokenAfter(r),a=c.getTokensBetween(n,t.property,{filter:e.isClosingParenToken}).length,o=a?c.getTokenBefore(n,{skip:a-1}):c.getFirstToken(n),l=c.getTokenBefore(r),d=t.computed?r:i;t.computed&&(u.setDesiredOffset(c.getLastToken(t),r,0),u.setDesiredOffsets(t.property.range,r,1));let f=l.loc.end.line===d.loc.start.line?l:o;typeof s.MemberExpression==`number`?(u.setDesiredOffset(r,f,s.MemberExpression),u.setDesiredOffset(i,t.computed?r:f,s.MemberExpression)):(u.ignoreToken(r),u.ignoreToken(i),u.setDesiredOffset(r,f,0),u.setDesiredOffset(i,r,0))},NewExpression(t){(t.arguments.length>0||e.isClosingParenToken(c.getLastToken(t))&&e.isOpeningParenToken(c.getLastToken(t,1)))&&y(t)},Property(t){if(!t.shorthand&&!t.method&&t.kind===`init`){let n=c.getFirstTokenBetween(t.key,t.value,e.isColonToken);u.ignoreToken(c.getTokenAfter(n))}},PropertyDefinition(t){let n=c.getFirstToken(t),r=c.getLastToken(t),i;if(t.computed){let r=c.getTokenBefore(t.key,e.isOpeningBracketToken),a=i=c.getTokenAfter(t.key,e.isClosingBracketToken),o=[r.range[1],a.range[0]];r!==n&&u.setDesiredOffset(r,n,0),u.setDesiredOffsets(o,r,1),u.setDesiredOffset(a,r,0)}else{let e=i=c.getFirstToken(t.key);e!==n&&u.setDesiredOffset(e,n,1)}if(t.value){let n=c.getTokenBefore(t.value,e.isEqToken),a=c.getTokenAfter(n);u.setDesiredOffset(n,i,1),u.setDesiredOffset(a,n,1),e.isSemicolonToken(r)&&u.setDesiredOffset(r,n,1)}else e.isSemicolonToken(r)&&u.setDesiredOffset(r,i,1)},StaticBlock(e){let t=c.getFirstToken(e,{skip:1}),n=c.getLastToken(e);_(e.body,t,n,s.StaticBlock.body)},SwitchStatement(t){let n=c.getTokenAfter(t.discriminant,e.isOpeningBraceToken),r=c.getLastToken(t);u.setDesiredOffsets([n.range[1],r.range[0]],n,s.SwitchCase),t.cases.length&&c.getTokensBetween(t.cases.at(-1),r,{includeComments:!0,filter:e.isCommentToken}).forEach(e=>u.ignoreToken(e))},SwitchCase(e){if(e.consequent.length!==1||e.consequent[0].type!==`BlockStatement`){let t=c.getFirstToken(e),n=c.getTokenAfter(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach((t,n)=>{let r=e.quasis[n],i=e.quasis[n+1],a=r.loc.start.line===r.loc.end.line?c.getFirstToken(r):null;u.setDesiredOffsets([r.range[1],i.range[0]],a,1),u.setDesiredOffset(c.getFirstToken(i),a,0)})},VariableDeclaration(t){let n=Object.hasOwn(s.VariableDeclarator,t.kind)?s.VariableDeclarator[t.kind]:1,r=c.getFirstToken(t),i=c.getLastToken(t);if(s.VariableDeclarator[t.kind]===`first`){if(t.declarations.length>1){_(t.declarations,r,i,`first`);return}n=1}t.declarations.at(-1).loc.start.line>t.loc.start.line?u.setDesiredOffsets(t.range,r,n,!0):u.setDesiredOffsets(t.range,r,n),e.isSemicolonToken(i)&&u.ignoreToken(i)},VariableDeclarator(t){if(t.init){let n=c.getTokenBefore(t.init,e.isNotOpeningParenToken),r=c.getTokenAfter(n);u.ignoreToken(n),u.ignoreToken(r),u.setDesiredOffsets([r.range[0],t.range[1]],n,1),u.setDesiredOffset(n,c.getLastToken(t.id),0)}},"JSXAttribute[value]"(e){let t=c.getFirstTokenBetween(e.name,e.value,e=>e.type===`Punctuator`&&e.value===`=`);u.setDesiredOffsets([t.range[0],e.value.range[1]],c.getFirstToken(e.name),1)},JSXElement(e){e.closingElement&&_(e.children,c.getFirstToken(e.openingElement),c.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){let t=c.getFirstToken(e),n;e.selfClosing?(n=c.getLastToken(e,{skip:1}),u.setDesiredOffset(c.getLastToken(e),n,0)):n=c.getLastToken(e),u.setDesiredOffsets(e.name.range,c.getFirstToken(e)),_(e.attributes,t,n,1)},JSXClosingElement(e){let t=c.getFirstToken(e);u.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){let t=c.getFirstToken(e.openingFragment),n=c.getFirstToken(e.closingFragment);_(e.children,t,n,1)},JSXOpeningFragment(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets(e.range,t,1),u.matchOffsetOf(t,n)},JSXClosingFragment(t){let n=c.getFirstToken(t),r=c.getLastToken(t,{skip:1}),i=c.getLastToken(t),a=e.isTokenOnSameLine(r,i)?r:i;u.setDesiredOffsets(t.range,n,1),u.matchOffsetOf(n,a)},JSXExpressionContainer(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXSpreadAttribute(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)},"*"(e){let t=c.getFirstToken(e);t&&!w.has(t)&&u.setDesiredOffsets(e.range,t,0)}},E=[],D={};for(let[e,t]of Object.entries(T))D[e]=e=>E.push({listener:t,node:e});let O=/* @__PURE__ */ new Set;function k(e){O.add(e),w.add(c.getFirstToken(e))}let A=s.ignoredNodes.reduce((e,t)=>Object.assign(e,{[t]:k}),{});return Object.assign(D,A,{"*:exit"(e){t.has(e.type)||k(e)},"Program:exit"(){s.ignoreComments&&c.getAllComments().forEach(e=>u.ignoreToken(e));for(let e=0;e<E.length;e++){let t=E[e];O.has(t.node)||t.listener(t.node)}O.forEach(x),b(c.ast.tokens);let t=/* @__PURE__ */ new WeakMap;for(let e=0;e<c.ast.comments.length;e++){let n=c.ast.comments[e],r=c.getTokenBefore(n,{includeComments:!0}),i=t.has(r)?t.get(r):r;t.set(n,i)}for(let n=1;n<c.lines.length+1;n++){if(!l.firstTokensByLineNumber.has(n))continue;let r=l.firstTokensByLineNumber.get(n);if(r.loc.start.line===n){if(e.isCommentToken(r)){let n=t.get(r),i=n?c.getTokenAfter(n):c.ast.tokens[0],a=n&&!C(n,r),o=i&&!C(r,i);if(i&&e.isSemicolonToken(i)&&!e.isTokenOnSameLine(r,i)&&u.setDesiredOffset(r,i,0),a&&m(r,u.getDesiredIndent(n))||o&&m(r,u.getDesiredIndent(i)))continue}m(r,u.getDesiredIndent(r))||p(r,u.getDesiredIndent(r))}}}})}},Ru}var Vu,Hu;function Uu(){if(Hu)return Vu;Hu=1;let e=$();return Vu={meta:{type:`layout`,docs:{description:`Enforce consistent indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/indent-legacy`},deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`indent`,url:`https://eslint.style/rules/indent`}}]},fixable:`whitespace`,schema:[{oneOf:[{enum:[`tab`]},{type:`integer`,minimum:0}]},{type:`object`,properties:{SwitchCase:{type:`integer`,minimum:0},VariableDeclarator:{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{var:{type:`integer`,minimum:0},let:{type:`integer`,minimum:0},const:{type:`integer`,minimum:0}}}]},outerIIFEBody:{type:`integer`,minimum:0},MemberExpression:{type:`integer`,minimum:0},FunctionDeclaration:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},body:{type:`integer`,minimum:0}}},FunctionExpression:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},body:{type:`integer`,minimum:0}}},CallExpression:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]}}},ArrayExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},ObjectExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]}},additionalProperties:!1}],messages:{expected:`Expected indentation of {{expected}} but found {{actual}}.`}},create(t){let n=`space`,r=4,i={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},a=t.sourceCode;if(t.options.length&&(t.options[0]===`tab`?(r=1,n=`tab`):typeof t.options[0]==`number`&&(r=t.options[0],n=`space`),t.options[1])){let e=t.options[1];i.SwitchCase=e.SwitchCase||0;let n=e.VariableDeclarator;typeof n==`number`?i.VariableDeclarator={var:n,let:n,const:n}:typeof n==`object`&&Object.assign(i.VariableDeclarator,n),typeof e.outerIIFEBody==`number`&&(i.outerIIFEBody=e.outerIIFEBody),typeof e.MemberExpression==`number`&&(i.MemberExpression=e.MemberExpression),typeof e.FunctionDeclaration==`object`&&Object.assign(i.FunctionDeclaration,e.FunctionDeclaration),typeof e.FunctionExpression==`object`&&Object.assign(i.FunctionExpression,e.FunctionExpression),typeof e.CallExpression==`object`&&Object.assign(i.CallExpression,e.CallExpression),(typeof e.ArrayExpression==`number`||typeof e.ArrayExpression==`string`)&&(i.ArrayExpression=e.ArrayExpression),(typeof e.ObjectExpression==`number`||typeof e.ObjectExpression==`string`)&&(i.ObjectExpression=e.ObjectExpression)}let o={};function s(e,t,r){let i=`${e} ${n}${e===1?``:`s`}`,a=`space${t===1?``:`s`}`,o=`tab${r===1?``:`s`}`,s;return s=t>0&&r>0?`${t} ${a} and ${r} ${o}`:t>0?n===`space`?t:`${t} ${a}`:r>0?n===`tab`?r:`${r} ${o}`:`0`,{expected:i,actual:s}}function c(e,r,i,a,o,c){if(i&&a)return;let l=(n===`space`?` `:` `).repeat(r),u=c?[e.range[1]-e.loc.end.column,e.range[1]-e.loc.end.column+i+a]:[e.range[0]-e.loc.start.column,e.range[0]-e.loc.start.column+i+a];t.report({node:e,loc:o,messageId:`expected`,data:s(r,i,a),fix:e=>e.replaceTextRange(u,l)})}function l(e,t){let r=t?a.getLastToken(e):a.getFirstToken(e),i=a.getText(r,r.loc.start.column).split(``),o=i.slice(0,i.findIndex(e=>e!==` `&&e!==` `)),s=o.filter(e=>e===` `).length,c=o.filter(e=>e===` `).length;return{space:s,tab:c,goodChar:n===`space`?s:c,badChar:n===`space`?c:s}}function u(e,t){let n=t===!0?a.getLastToken(e,1):a.getTokenBefore(e);return(t===!0?e.loc.end.line:e.loc.start.line)!==(n?n.loc.end.line:-1)}function d(e,t){let n=l(e,!1);e.type!==`ArrayExpression`&&e.type!==`ObjectExpression`&&(n.goodChar!==t||n.badChar!==0)&&u(e)&&c(e,t,n.space,n.tab),e.type===`IfStatement`&&e.alternate&&(d(a.getTokenBefore(e.alternate),t),u(e.alternate)||d(e.alternate,t)),e.type===`TryStatement`&&e.handler&&d(a.getFirstToken(e.handler),t),e.type===`TryStatement`&&e.finalizer&&d(a.getTokenBefore(e.finalizer),t),e.type===`DoWhileStatement`&&d(a.getTokenAfter(e.body),t)}function f(e,t){e.forEach(e=>d(e,t))}function p(e,t){let n=a.getLastToken(e),r=l(n,!0);(r.goodChar!==t||r.badChar!==0)&&u(e,!0)&&c(e,t,r.space,r.tab,{line:n.loc.start.line,column:n.loc.start.column},!0)}function m(t,n){let r=a.getLastToken(t,e.isClosingParenToken);if(a.getText(r,r.loc.start.column).slice(0,-1).trim())return;let i=l(r,!0);i.goodChar!==n&&c(t,n,i.space,i.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}function h(e,t){let n=l(e,!1);(n.goodChar!==t||n.badChar!==0)&&u(e)&&c(e,t,n.space,n.tab,{line:e.loc.start.line,column:e.loc.start.column})}function g(e,t,n){let r=e.parent,i=new Set(n||[`Program`]);for(;r.type!==t&&!i.has(r.type)&&r.type!==`Program`;)r=r.parent;return r.type===t?r:null}function _(e){return g(e,`VariableDeclarator`)}function v(e,t){return t&&t.parent.loc.start.line===e.loc.start.line&&t.parent.declarations.length>1}function y(e){let t=e.parent;return t.arguments.length>=2&&t.arguments[1]===e&&t.arguments[0].loc.end.line>t.arguments[0].loc.start.line}function b(e){let t=e.parent,n=t.parent;if(t.type!==`CallExpression`||t.callee!==e)return!1;for(;n.type===`UnaryExpression`&&(n.operator===`!`||n.operator===`~`||n.operator===`+`||n.operator===`-`)||n.type===`AssignmentExpression`||n.type===`LogicalExpression`||n.type===`SequenceExpression`||n.type===`VariableDeclarator`;)n=n.parent;return(n.type===`ExpressionStatement`||n.type===`VariableDeclaration`)&&n.parent&&n.parent.type===`Program`}function x(e){let t=e.parent,n;if(n=t.parent&&(t.parent.type===`Property`||t.parent.type===`ArrayExpression`)?l(t,!1).goodChar:l(t).goodChar,t.parent.type===`CallExpression`){let r=t.parent;t.type!==`FunctionExpression`&&t.type!==`ArrowFunctionExpression`?r&&r.loc.start.line<e.loc.start.line&&(n=l(r).goodChar):y(t)&&r.callee.loc.start.line===r.callee.loc.end.line&&!u(t)&&(n=l(r).goodChar)}let a=r;i.outerIIFEBody!==null&&b(t)?a=i.outerIIFEBody*r:t.type===`FunctionExpression`?a=i.FunctionExpression.body*r:t.type===`FunctionDeclaration`&&(a=i.FunctionDeclaration.body*r),n+=a;let o=_(e);o&&v(e,o)&&(n+=r*i.VariableDeclarator[o.parent.kind]),e.body.length>0&&f(e.body,n),p(e,n-a)}function S(e){let t=a.getLastToken(e);return e.loc.start.line===t.loc.end.line}function C(e){if(S(e))return;let t=e.type===`ArrayExpression`?e.elements:e.properties;t=t.filter(e=>e!==null);let n,a,o=_(e);if(u(e)){let t=e.parent;if(n=l(t).goodChar,(!o||o.loc.start.line!==e.loc.start.line)&&(t.type!==`VariableDeclarator`||o===o.parent.declarations[0])){if(t.type===`VariableDeclarator`&&o.loc.start.line===t.loc.start.line)n+=r*i.VariableDeclarator[o.parent.kind];else if(t.type===`ObjectExpression`||t.type===`ArrayExpression`){let a=e.parent.type===`ObjectExpression`?e.parent.properties:e.parent.elements;a[0]&&a[0].loc.start.line===t.loc.start.line&&a[0].loc.end.line!==t.loc.start.line||(typeof i[t.type]==`number`?n+=i[t.type]*r:n=a[0].loc.start.column)}else t.type===`CallExpression`||t.type===`NewExpression`?typeof i.CallExpression.arguments==`number`?n+=i.CallExpression.arguments*r:i.CallExpression.arguments===`first`?t.arguments.includes(e)&&(n=t.arguments[0].loc.start.column):n+=r:(t.type===`LogicalExpression`||t.type===`ArrowFunctionExpression`)&&(n+=r)}h(e,n)}else n=l(e).goodChar;a=i[e.type]===`first`?t.length?t[0].loc.start.column:0:n+r*i[e.type],v(e,o)&&(a+=r*i.VariableDeclarator[o.parent.kind]),f(t,a),t.length>0&&t.at(-1).loc.end.line===e.loc.end.line||p(e,n+(v(e,o)?i.VariableDeclarator[o.parent.kind]*r:0))}function w(e){return e.type===`BlockStatement`||e.type===`ClassBody`||e.body&&e.body.type===`BlockStatement`||e.consequent&&e.consequent.type===`BlockStatement`}function T(e){if(S(e))return;if(e.parent&&(e.parent.type===`FunctionExpression`||e.parent.type===`FunctionDeclaration`||e.parent.type===`ArrowFunctionExpression`)){x(e);return}let t,n;t=e.parent&&[`IfStatement`,`WhileStatement`,`ForStatement`,`ForInStatement`,`ForOfStatement`,`DoWhileStatement`,`ClassDeclaration`,`TryStatement`].includes(e.parent.type)&&w(e)?l(e.parent).goodChar:e.parent&&e.parent.type===`CatchClause`?l(e.parent.parent).goodChar:l(e).goodChar,n=e.type===`IfStatement`&&e.consequent.type!==`BlockStatement`?[e.consequent]:Array.isArray(e.body)?e.body:[e.body],n.length>0&&f(n,t+r),e.type===`BlockStatement`&&p(e,t)}function E(e){return e.declarations.reduce((t,n)=>{let r=t.at(-1);return(n.loc.start.line!==e.loc.start.line&&!r||r&&r.loc.start.line!==n.loc.start.line)&&t.push(n),t},[])}function D(e){let t=E(e),n=l(e).goodChar,o=t.at(-1),s=n+r*i.VariableDeclarator[e.kind];if(f(t,s),a.getLastToken(e).loc.end.line<=o.loc.end.line)return;let c=a.getTokenBefore(o);c.value===`,`?p(e,l(c).goodChar):p(e,s-r)}function O(e){e.body.type!==`BlockStatement`&&T(e)}function k(e,t){let n=e.type===`SwitchStatement`?e:e.parent,a=t===void 0?l(n).goodChar:t,s;return o[n.loc.start.line]?o[n.loc.start.line]:(s=n.cases.length>0&&i.SwitchCase===0?a:a+r*i.SwitchCase,o[n.loc.start.line]=s,s)}function A(e){let t=/^return\s*\(\s*\)/u,n=a.getText(e).replace(a.getText(e.argument),``);return t.test(n)}return{Program(e){e.body.length>0&&f(e.body,l(e).goodChar)},ClassBody:T,BlockStatement:T,WhileStatement:O,ForStatement:O,ForInStatement:O,ForOfStatement:O,DoWhileStatement:O,IfStatement(e){e.consequent.type!==`BlockStatement`&&e.consequent.loc.start.line>e.loc.start.line&&T(e)},VariableDeclaration(e){e.declarations.at(-1).loc.start.line>e.declarations[0].loc.start.line&&D(e)},ObjectExpression(e){C(e)},ArrayExpression(e){C(e)},MemberExpression(e){if(i.MemberExpression===void 0||S(e)||g(e,`VariableDeclarator`,[`FunctionExpression`,`ArrowFunctionExpression`])||g(e,`AssignmentExpression`,[`FunctionExpression`]))return;let t=l(e).goodChar+r*i.MemberExpression,n=[e.property],o=a.getTokenBefore(e.property);o.type===`Punctuator`&&o.value===`.`&&n.push(o),f(n,t)},SwitchStatement(e){let t=l(e).goodChar,n=k(e,t);f(e.cases,n),p(e,t)},SwitchCase(e){if(S(e))return;let t=k(e);f(e.consequent,t+r)},FunctionDeclaration(e){S(e)||(i.FunctionDeclaration.parameters===`first`&&e.params.length?f(e.params.slice(1),e.params[0].loc.start.column):i.FunctionDeclaration.parameters!==null&&f(e.params,l(e).goodChar+r*i.FunctionDeclaration.parameters))},FunctionExpression(e){S(e)||(i.FunctionExpression.parameters===`first`&&e.params.length?f(e.params.slice(1),e.params[0].loc.start.column):i.FunctionExpression.parameters!==null&&f(e.params,l(e).goodChar+r*i.FunctionExpression.parameters))},ReturnStatement(e){if(S(e))return;let t=l(e).goodChar;A(e)?m(e,t):d(e,t)},CallExpression(e){S(e)||(i.CallExpression.arguments===`first`&&e.arguments.length?f(e.arguments.slice(1),e.arguments[0].loc.start.column):i.CallExpression.arguments!==null&&f(e.arguments,l(e).goodChar+r*i.CallExpression.arguments))}}}},Vu}var Wu,Gu;function Ku(){if(Gu)return Wu;Gu=1;let e=/* @__PURE__ */ new Set([`const`,`using`,`await using`]);function t(e){return e.type===`ForInStatement`||e.type===`ForOfStatement`||e.type===`ForStatement`}function n(e){let n=e.parent,r=n.parent;return t(r)?r.type===`ForStatement`?r.init===n:r.left===n:!!e.init}return Wu={meta:{type:`suggestion`,docs:{description:`Require or disallow initialization in variable declarations`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/init-declarations`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`never`]},{type:`object`,properties:{ignoreForLoopInit:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},defaultOptions:[`always`],messages:{initialized:`Variable '{{idName}}' should be initialized on declaration.`,notInitialized:`Variable '{{idName}}' should not be initialized on declaration.`}},create(r){let i=r.options[0],a=r.options[1]||{},o=!1;return{TSModuleDeclaration(e){e.declare&&(o=!0)},"TSModuleDeclaration:exit"(e){e.declare&&(o=!1)},"VariableDeclaration:exit"(s){let c=s.kind,l=s.declarations;if(!(s.declare||o))for(let o=0;o<l.length;++o){let u=l[o],d=u.id,f=n(u),p=a.ignoreForLoopInit&&t(s.parent),m=``;i===`always`&&!f?m=`initialized`:i===`never`&&!e.has(c)&&f&&!p&&(m=`notInitialized`),d.type===`Identifier`&&m&&r.report({node:u,messageId:m,data:{idName:d.name}})}}}}},Wu}var qu,Ju;function Yu(){if(Ju)return qu;Ju=1;let e=$(),t={"prefer-double":{quote:`"`,description:`singlequote`,convert(e){return e.replace(/'/gu,`"`)}},"prefer-single":{quote:`'`,description:`doublequote`,convert(e){return e.replace(/"/gu,`'`)}}};return qu={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`jsx-quotes`,url:`https://eslint.style/rules/jsx-quotes`}}]},type:`layout`,docs:{description:`Enforce the consistent use of either double or single quotes in JSX attributes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/jsx-quotes`},fixable:`whitespace`,schema:[{enum:[`prefer-single`,`prefer-double`]}],messages:{unexpected:`Unexpected usage of {{description}}.`}},create(n){let r=n.options[0]||`prefer-double`,i=t[r];function a(t){return t.value.includes(i.quote)||e.isSurroundedBy(t.raw,i.quote)}return{JSXAttribute(t){let r=t.value;r&&e.isStringLiteral(r)&&!a(r)&&n.report({node:r,messageId:`unexpected`,data:{description:i.description},fix(e){return e.replaceText(r,i.convert(r.raw))}})}}}},qu}var Xu,Zu;function Qu(){if(Zu)return Xu;Zu=1;let e=$(),{getGraphemeCount:t}=Yc();function n(t){return e.LINEBREAK_MATCHER.test(t)}function r(e){return e.at(-1)}function i(e){return e.loc.end.line===e.loc.start.line}function a(e){let[t]=e,n=r(e);return t.loc.start.line===n.loc.end.line}function o(e,t){return e.mode=t.mode||`strict`,e.beforeColon=t.beforeColon===void 0?0:+t.beforeColon,e.afterColon=t.afterColon===void 0?1:+t.afterColon,t.align!==void 0&&(e.align=typeof t.align==`object`?t.align:{on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}function s(e,t){return typeof t.align==`object`?(e.align=o({},t.align),e.align.on=t.align.on||`colon`,e.align.mode=t.align.mode||`strict`,e.multiLine=o({},t.multiLine||t),e.singleLine=o({},t.singleLine||t)):(e.multiLine=o({},t.multiLine||t),e.singleLine=o({},t.singleLine||t),e.multiLine.align&&(e.align={on:e.multiLine.align.on,mode:e.multiLine.align.mode||e.multiLine.mode,beforeColon:e.multiLine.align.beforeColon,afterColon:e.multiLine.align.afterColon})),e}return Xu={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`key-spacing`,url:`https://eslint.style/rules/key-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing between keys and values in object literal properties`,recommended:!1,url:`https://eslint.org/docs/latest/rules/key-spacing`},fixable:`whitespace`,schema:[{anyOf:[{type:`object`,properties:{align:{anyOf:[{enum:[`colon`,`value`]},{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{enum:[`colon`,`value`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}]},mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},{type:`object`,properties:{singleLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},multiLine:{type:`object`,properties:{align:{anyOf:[{enum:[`colon`,`value`]},{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{enum:[`colon`,`value`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}]},mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1},{type:`object`,properties:{singleLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},multiLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},align:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{enum:[`colon`,`value`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:`Extra space after {{computed}}key '{{key}}'.`,extraValue:`Extra space before value for {{computed}}key '{{key}}'.`,missingKey:`Missing space after {{computed}}key '{{key}}'.`,missingValue:`Missing space before value for {{computed}}key '{{key}}'.`}},create(o){let c=s({},o.options[0]||{}),l=c.multiLine,u=c.singleLine,d=c.align||null,f=o.sourceCode;function p(e){return!(e.method||e.shorthand||e.kind!==`init`||e.type!==`Property`)}function m(t){return f.getTokenAfter(t,e.isColonToken)}function h(e){let t=m(e);return f.getTokenBefore(t)}function g(e){let t=m(e);return f.getTokenAfter(t)}function _(e,t){let n=e.loc.start.line,i=(p(t)?g(t.key):t).loc.start.line;if(i-n<=1)return!0;let a=f.getCommentsBefore(t);if(a.length&&a[0].loc.start.line-n<=1&&i-r(a).loc.end.line<=1){for(let e=1;e<a.length;e++)if(a[e].loc.start.line-a[e-1].loc.end.line>1)return!1;return!0}return!1}function v(t){let n=t.key;return t.computed?f.getText().slice(n.range[0],n.range[1]):e.getStaticPropertyName(t)}function y(e,t,r,i,a){let s=r.length-i;if((s&&a===`strict`||s<0&&a===`minimum`||s>0&&!i&&a===`minimum`)&&!(i&&n(r))){let n=m(e.key),r=f.getTokenBefore(n,{includeComments:!0}),i=f.getTokenAfter(n,{includeComments:!0}),a=t===`key`,c=s>0,l=Math.abs(s),u=Array(l+1).join(` `),d=a?r.loc.end:n.loc.start,p=a?n.loc.start:i.loc.start,h=a?r.loc:i.loc,g=c?{start:d,end:p}:h,_;if(c){let e;e=a?[r.range[1],r.range[1]+l]:[i.range[0]-l,i.range[0]],_=function(t){return t.removeRange(e)}}else _=a?function(e){return e.insertTextAfter(r,u)}:function(e){return e.insertTextBefore(i,u)};let y;y=c?t===`key`?`extraKey`:`extraValue`:t===`key`?`missingKey`:`missingValue`,o.report({node:e[t],loc:g,messageId:y,data:{computed:e.computed?`computed `:``,key:v(e)},fix:_})}}function b(e){let n=f.getFirstToken(e),r=h(e.key);return t(f.getText().slice(n.range[0],r.range[1]))}function x(e){let t=/(\s*):(\s*)/u.exec(f.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function S(e){return e.properties.length===1?[e.properties]:e.properties.reduce((e,t)=>{let n=r(e),i=r(n);return!i||_(i,t)?n.push(t):e.push([t]),e},[[]])}function C(e){let t=e.length,n=e.map(b),r=d.on,i=Math.max(...n),a,o,s;d&&t>1?(a=d.beforeColon,o=d.afterColon,s=d.mode):(a=l.beforeColon,o=l.afterColon,s=d.mode),i+=r===`colon`?a:o;for(let c=0;c<t;c++){let t=e[c],l=x(t);if(l){let e=n[c];r===`value`?(y(t,`key`,l.beforeColon,a,s),y(t,`value`,l.afterColon,i-e,s)):(y(t,`key`,l.beforeColon,i-e,s),y(t,`value`,l.afterColon,o,s))}}}function w(e,t){let n=x(e);n&&(y(e,`key`,n.beforeColon,t.beforeColon,t.mode),y(e,`value`,n.afterColon,t.afterColon,t.mode))}function T(e,t){let n=e.length;for(let r=0;r<n;r++)w(e[r],t)}function E(e){S(e).forEach(e=>{let t=e.filter(p);t.length>0&&a(t)?T(t,l):C(t)})}return d?{ObjectExpression(e){i(e)?T(e.properties.filter(p),u):E(e)}}:{Property(e){w(e,i(e.parent)?u:l)}}}},Xu}var $u,ed;function td(){if(ed)return $u;ed=1;let e=$(),t=Ol(),n=/^[)\]}>]$/u,r=/^(?:[([{<~!]|\+\+?|--?)$/u,i=/^[)\]}>*]$/u,a=/^[{*]$/u,o=/\$\{$/u,s=/^\}/u,c=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,l=t.concat([`as`,`async`,`await`,`from`,`get`,`let`,`of`,`set`,`yield`]);(function(){l.sort();for(let e=1;e<l.length;++e)if(l[e]===l[e-1])throw Error(`Duplication was found in the keyword list: ${l[e]}`)})();function u(e){return e.type===`Template`&&o.test(e.value)}function d(e){return e.type===`Template`&&s.test(e.value)}return $u={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`keyword-spacing`,url:`https://eslint.style/rules/keyword-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after keywords`,recommended:!1,url:`https://eslint.org/docs/latest/rules/keyword-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!0},after:{type:`boolean`,default:!0},overrides:{type:`object`,properties:l.reduce((e,t)=>(e[t]={type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`}},additionalProperties:!1},e),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:`Expected space(s) before "{{value}}".`,expectedAfter:`Expected space(s) after "{{value}}".`,unexpectedBefore:`Unexpected space(s) before "{{value}}".`,unexpectedAfter:`Unexpected space(s) after "{{value}}".`}},create(t){let o=t.sourceCode,s=/* @__PURE__ */ new WeakSet;function f(n,r){let i=o.getTokenBefore(n);i&&(c.test(i.type)||r.test(i.value))&&!u(i)&&!s.has(i)&&e.isTokenOnSameLine(i,n)&&!o.isSpaceBetween(i,n)&&t.report({loc:n.loc,messageId:`expectedBefore`,data:n,fix(e){return e.insertTextBefore(n,` `)}})}function p(n,r){let i=o.getTokenBefore(n);i&&(c.test(i.type)||r.test(i.value))&&!u(i)&&!s.has(i)&&e.isTokenOnSameLine(i,n)&&o.isSpaceBetween(i,n)&&t.report({loc:{start:i.loc.end,end:n.loc.start},messageId:`unexpectedBefore`,data:n,fix(e){return e.removeRange([i.range[1],n.range[0]])}})}function m(n,r){let i=o.getTokenAfter(n);i&&(c.test(i.type)||r.test(i.value))&&!d(i)&&!s.has(i)&&e.isTokenOnSameLine(n,i)&&!o.isSpaceBetween(n,i)&&t.report({loc:n.loc,messageId:`expectedAfter`,data:n,fix(e){return e.insertTextAfter(n,` `)}})}function h(n,r){let i=o.getTokenAfter(n);i&&(c.test(i.type)||r.test(i.value))&&!d(i)&&!s.has(i)&&e.isTokenOnSameLine(n,i)&&o.isSpaceBetween(n,i)&&t.report({loc:{start:n.loc.end,end:i.loc.start},messageId:`unexpectedAfter`,data:n,fix(e){return e.removeRange([n.range[1],i.range[0]])}})}function g(e={}){let t=e.before!==!1,n=e.after!==!1,r={before:t?f:p,after:n?m:h},i=e&&e.overrides||{},a=Object.create(null);for(let e=0;e<l.length;++e){let o=l[e],s=i[o];if(s){let e=`before`in s?s.before:t,r=`after`in s?s.after:n;a[o]={before:e?f:p,after:r?m:h}}else a[o]=r}return a}let _=g(t.options[0]);function v(e,t){_[e.value].before(e,t||n)}function y(e,t){_[e.value].after(e,t||r)}function b(e){v(e),y(e)}function x(e){let t=e&&o.getFirstToken(e);t&&t.type===`Keyword`&&b(t)}function S(e){let t=e&&o.getFirstToken(e);t&&t.type===`Keyword`&&v(t)}function C(t){t&&b(o.getTokenBefore(t,e.isKeywordToken))}function w(e){let t=e&&o.getFirstToken(e);t&&(t.type===`Keyword`&&t.value===`function`||t.value===`async`)&&v(t)}function T(e){x(e),C(e.superClass)}function E(e){x(e),C(e.alternate)}function D(e){x(e),x(e.handler),C(e.finalizer)}function O(e){x(e),C(e.test)}function k(t){x(t);let n=o.getTokenBefore(t.right,e.isNotOpeningParenToken);o.getTokenBefore(n).type!==`PrivateIdentifier`&&v(n),y(n)}function A(t){t.await?(v(o.getFirstToken(t,0)),y(o.getFirstToken(t,1))):x(t);let n=o.getTokenBefore(t.right,e.isNotOpeningParenToken);o.getTokenBefore(n).type!==`PrivateIdentifier`&&v(n),y(n)}function j(e){let t=o.getFirstToken(e);if(v(t,i),y(t,a),e.type===`ExportDefaultDeclaration`&&b(o.getTokenAfter(t)),e.type===`ExportAllDeclaration`&&e.exported){let t=o.getTokenBefore(e.exported);v(t,i),y(t,a)}if(e.source){let t=o.getTokenBefore(e.source);v(t,i),y(t,a)}}function M(e){e.imported.range[0]!==e.local.range[0]&&v(o.getTokenBefore(e.local),i)}function N(e){if(e.local.range[0]!==e.exported.range[0]){let t=o.getTokenBefore(e.exported);v(t,i),y(t,a)}}function P(e){v(o.getFirstToken(e,1),i)}function F(e){if(e.static&&x(e),e.kind===`get`||e.kind===`set`||(e.method||e.type===`MethodDefinition`)&&e.value.async){let t=o.getTokenBefore(e.key,e=>{switch(e.value){case`get`:case`set`:case`async`:return!0;default:return!1}});if(!t)throw Error(`Failed to find token get, set, or async beside method name`);b(t)}}function I(e){v(o.getFirstToken(e))}return{DebuggerStatement:x,WithStatement:x,BreakStatement:x,ContinueStatement:x,ReturnStatement:x,ThrowStatement:x,TryStatement:D,IfStatement:E,SwitchStatement:x,SwitchCase:x,DoWhileStatement:O,ForInStatement:k,ForOfStatement:A,ForStatement:x,WhileStatement:x,ClassDeclaration:T,ExportNamedDeclaration:j,ExportDefaultDeclaration:j,ExportAllDeclaration:j,FunctionDeclaration:w,ImportDeclaration:j,VariableDeclaration:x,ArrowFunctionExpression:w,AwaitExpression:I,ClassExpression:T,FunctionExpression:w,NewExpression:S,Super:S,ThisExpression:S,UnaryExpression:S,YieldExpression:S,ImportSpecifier:M,ExportSpecifier:N,ImportNamespaceSpecifier:P,MethodDefinition:F,PropertyDefinition:F,StaticBlock:x,Property:F,"BinaryExpression[operator='>']"(t){let n=o.getTokenBefore(t.right,e.isNotOpeningParenToken);s.add(n)}}}},$u}var nd,rd;function id(){if(rd)return nd;rd=1;let e=$();return nd={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`9.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`line-comment-position`,url:`https://eslint.style/rules/line-comment-position`}}]},type:`layout`,docs:{description:`Enforce position of line comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/line-comment-position`},schema:[{oneOf:[{enum:[`above`,`beside`]},{type:`object`,properties:{position:{enum:[`above`,`beside`]},ignorePattern:{type:`string`},applyDefaultPatterns:{type:`boolean`},applyDefaultIgnorePatterns:{type:`boolean`}},additionalProperties:!1}]}],messages:{above:`Expected comment to be above code.`,beside:`Expected comment to be beside code.`}},create(t){let n=t.options[0],r,i,a=!0;!n||typeof n==`string`?r=!n||n===`above`:(r=!n.position||n.position===`above`,i=n.ignorePattern,a=Object.hasOwn(n,`applyDefaultIgnorePatterns`)?n.applyDefaultIgnorePatterns:n.applyDefaultPatterns!==!1);let o=e.COMMENTS_IGNORE_PATTERN,s=/^\s*falls?\s?through/u,c=new RegExp(i,`u`),l=t.sourceCode;return{Program(){l.getAllComments().filter(e=>e.type===`Line`).forEach(e=>{if(a&&(o.test(e.value)||s.test(e.value))||i&&c.test(e.value))return;let n=l.getTokenBefore(e,{includeComments:!0}),u=n&&n.loc.end.line===e.loc.start.line;r?u&&t.report({node:e,messageId:`above`}):u||t.report({node:e,messageId:`beside`})})}}}},nd}var ad,od;function sd(){if(od)return ad;od=1;let e=$();return ad={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`linebreak-style`,url:`https://eslint.style/rules/linebreak-style`}}]},type:`layout`,docs:{description:`Enforce consistent linebreak style`,recommended:!1,url:`https://eslint.org/docs/latest/rules/linebreak-style`},fixable:`whitespace`,schema:[{enum:[`unix`,`windows`]}],messages:{expectedLF:`Expected linebreaks to be 'LF' but found 'CRLF'.`,expectedCRLF:`Expected linebreaks to be 'CRLF' but found 'LF'.`}},create(t){let n=t.sourceCode;function r(e,t){return function(n){return n.replaceTextRange(e,t)}}return{Program:function(i){let a=(t.options[0]||`unix`)===`unix`,o=a?`
145
+ `:`\r
146
+ `,s=n.getText(),c=e.createGlobalLinebreakMatcher(),l,u=0;for(;(l=c.exec(s))!==null;){if(u++,l[0]===o)continue;let e=l.index,s=[e,e+l[0].length];t.report({node:i,loc:{start:{line:u,column:n.lines[u-1].length},end:{line:u+1,column:0}},messageId:a?`expectedLF`:`expectedCRLF`,fix:r(s,o)})}}}}},ad}var cd,ld;function ud(){if(ld)return cd;ld=1;let e=$();function t(e){return e.map((e,t)=>({code:e.trim(),num:t+1})).filter(e=>!e.code).map(e=>e.num)}function n(e){let t=[];return e.forEach(e=>{let n=e.loc.start.line,r=e.loc.end.line;t.push(n,r)}),t}return cd={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`lines-around-comment`,url:`https://eslint.style/rules/lines-around-comment`}}]},type:`layout`,docs:{description:`Require empty lines around comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-around-comment`},fixable:`whitespace`,schema:[{type:`object`,properties:{beforeBlockComment:{type:`boolean`,default:!0},afterBlockComment:{type:`boolean`,default:!1},beforeLineComment:{type:`boolean`,default:!1},afterLineComment:{type:`boolean`,default:!1},allowBlockStart:{type:`boolean`,default:!1},allowBlockEnd:{type:`boolean`,default:!1},allowClassStart:{type:`boolean`},allowClassEnd:{type:`boolean`},allowObjectStart:{type:`boolean`},allowObjectEnd:{type:`boolean`},allowArrayStart:{type:`boolean`},allowArrayEnd:{type:`boolean`},ignorePattern:{type:`string`},applyDefaultIgnorePatterns:{type:`boolean`},afterHashbangComment:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{after:`Expected line after comment.`,before:`Expected line before comment.`}},create(r){let i=Object.assign({},r.options[0]),a=i.ignorePattern,o=e.COMMENTS_IGNORE_PATTERN,s=new RegExp(a,`u`),c=i.applyDefaultIgnorePatterns!==!1;i.beforeBlockComment=i.beforeBlockComment===void 0||i.beforeBlockComment;let l=r.sourceCode,u=l.lines,d=u.length+1,f=l.getAllComments(),p=n(f),m=t(u),h=new Set(p.concat(m));function g(t){let n=t;do n=l.getTokenBefore(n,{includeComments:!0});while(n&&e.isCommentToken(n));if(n&&e.isTokenOnSameLine(n,t))return!0;n=t;do n=l.getTokenAfter(n,{includeComments:!0});while(n&&e.isCommentToken(n));return!!(n&&e.isTokenOnSameLine(t,n))}function _(e,t){return e.type===t||e.body&&e.body.type===t||e.consequent&&e.consequent.type===t}function v(e){let t=l.getNodeByRangeIndex(e.range[0]);if(t&&t.type===`StaticBlock`){let n=l.getFirstToken(t,{skip:1});return e.range[0]>=n.range[0]?t:null}return t}function y(t,n){let r=v(t);if(r&&_(r,n)){let n=r;return r.type===`StaticBlock`?n=l.getFirstToken(r,{skip:1}):r.type===`SwitchStatement`&&(n=l.getTokenAfter(r.discriminant,{filter:e.isOpeningBraceToken})),t.loc.start.line-n.loc.start.line===1}return!1}function b(e,t){let n=v(e);return!!n&&_(n,t)&&n.loc.end.line-e.loc.end.line===1}function x(e){return y(e,`ClassBody`)||y(e,`BlockStatement`)||y(e,`StaticBlock`)||y(e,`SwitchCase`)||y(e,`SwitchStatement`)}function S(e){return b(e,`ClassBody`)||b(e,`BlockStatement`)||b(e,`StaticBlock`)||b(e,`SwitchCase`)||b(e,`SwitchStatement`)}function C(e){return y(e,`ClassBody`)}function w(e){return b(e,`ClassBody`)}function T(e){return y(e,`ObjectExpression`)||y(e,`ObjectPattern`)}function E(e){return b(e,`ObjectExpression`)||b(e,`ObjectPattern`)}function D(e){return y(e,`ArrayExpression`)||y(e,`ArrayPattern`)}function O(e){return b(e,`ArrayExpression`)||b(e,`ArrayPattern`)}function k(t,n){if(c&&o.test(t.value)||a&&s.test(t.value))return;let u=n.after,f=n.before,p=t.loc.start.line-1,m=t.loc.end.line+1,_=g(t),v=i.allowBlockStart&&x(t)&&!(i.allowClassStart===!1&&C(t)),y=i.allowBlockEnd&&S(t)&&!(i.allowClassEnd===!1&&w(t)),b=i.allowClassStart&&C(t),k=i.allowClassEnd&&w(t),A=i.allowObjectStart&&T(t),j=i.allowObjectEnd&&E(t),M=i.allowArrayStart&&D(t),N=i.allowArrayEnd&&O(t),P=v||b||A||M,F=y||k||j||N;if(p<1&&(f=!1),m>=d&&(u=!1),_)return;let I=l.getTokenBefore(t,{includeComments:!0}),ee=l.getTokenAfter(t,{includeComments:!0});if(!P&&f&&!h.has(p)&&!(e.isCommentToken(I)&&e.isTokenOnSameLine(I,t))){let e=t.range[0]-t.loc.start.column,n=[e,e];r.report({node:t,messageId:`before`,fix(e){return e.insertTextBeforeRange(n,`
147
+ `)}})}!F&&u&&!h.has(m)&&!(e.isCommentToken(ee)&&e.isTokenOnSameLine(t,ee))&&r.report({node:t,messageId:`after`,fix(e){return e.insertTextAfter(t,`
148
+ `)}})}return{Program(){f.forEach(e=>{e.type===`Line`?(i.beforeLineComment||i.afterLineComment)&&k(e,{after:i.afterLineComment,before:i.beforeLineComment}):e.type===`Block`?(i.beforeBlockComment||i.afterBlockComment)&&k(e,{after:i.afterBlockComment,before:i.beforeBlockComment}):e.type===`Shebang`&&i.afterHashbangComment&&k(e,{after:i.afterHashbangComment,before:!1})})}}}},cd}var dd,fd;function pd(){if(fd)return dd;fd=1;let e=$();return dd={meta:{type:`layout`,docs:{description:`Require or disallow newlines around directives`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-around-directive`},schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{before:{enum:[`always`,`never`]},after:{enum:[`always`,`never`]}},additionalProperties:!1,minProperties:2}]}],fixable:`whitespace`,messages:{expected:`Expected newline {{location}} "{{value}}" directive.`,unexpected:`Unexpected newline {{location}} "{{value}}" directive.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(t){let n=t.sourceCode,r=t.options[0]||`always`,i=typeof r==`string`?r:r.before,a=typeof r==`string`?r:r.after;function o(e){let t=n.getTokenBefore(e,{includeComments:!0}),r=t?t.loc.end.line:0;return e.loc.start.line-r>=2}function s(t){let r=n.getLastToken(t),i=n.getTokenBefore(r);return e.isSemicolonToken(r)&&r.loc.start.line>i.loc.end.line?i:r}function c(e){let t=s(e);return n.getTokenAfter(t,{includeComments:!0}).loc.start.line-t.loc.end.line>=2}function l(e,n,r){t.report({node:e,messageId:r?`expected`:`unexpected`,data:{value:e.expression.value,location:n},fix(t){let i=s(e);return r?n===`before`?t.insertTextBefore(e,`
149
+ `):t.insertTextAfter(i,`
150
+ `):t.removeRange(n===`before`?[e.range[0]-1,e.range[0]]:[i.range[1],i.range[1]+1])}})}function u(t){let r=e.getDirectivePrologue(t);if(!r.length)return;let s=r[0],u=n.getCommentsBefore(s);u.length?(i===`always`&&!o(s)&&l(s,`before`,!0),i===`never`&&o(s)&&l(s,`before`,!1)):t.type===`Program`&&i===`never`&&!u.length&&o(s)&&l(s,`before`,!1);let d=r.at(-1);(d!==(t.type===`Program`?t.body:t.body.body).at(-1)||d.trailingComments)&&(a===`always`&&!c(d)&&l(d,`after`,!0),a===`never`&&c(d)&&l(d,`after`,!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}},dd}var md,hd;function gd(){if(hd)return md;hd=1;let e=$(),t={"*":{test:()=>!0},field:{test:e=>e.type===`PropertyDefinition`},method:{test:e=>e.type===`MethodDefinition`}};return md={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`lines-between-class-members`,url:`https://eslint.style/rules/lines-between-class-members`}}]},type:`layout`,docs:{description:`Require or disallow an empty line between class members`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-between-class-members`},fixable:`whitespace`,schema:[{anyOf:[{type:`object`,properties:{enforce:{type:`array`,items:{type:`object`,properties:{blankLine:{enum:[`always`,`never`]},prev:{enum:[`method`,`field`,`*`]},next:{enum:[`method`,`field`,`*`]}},additionalProperties:!1,required:[`blankLine`,`prev`,`next`]},minItems:1}},additionalProperties:!1,required:[`enforce`]},{enum:[`always`,`never`]}]},{type:`object`,properties:{exceptAfterSingleLine:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{never:`Unexpected blank line between class members.`,always:`Expected blank line between class members.`}},create(n){let r=[];r[0]=n.options[0]||`always`,r[1]=n.options[1]||{exceptAfterSingleLine:!1};let i=typeof r[0]==`object`?r[0].enforce:[{blankLine:r[0],prev:`*`,next:`*`}],a=n.sourceCode;function o(t,n){let r=a.getLastToken(t),i=a.getTokenBefore(r),o=a.getFirstToken(n);return e.isSemicolonToken(r)&&!e.isTokenOnSameLine(i,r)&&e.isTokenOnSameLine(r,o)?{curLast:i,nextFirst:r}:{curLast:r,nextFirst:o}}function s(e,t,n){let r=a.getTokenAfter(e,{includeComments:!0});return r!==t&&r.loc.start.line-e.loc.end.line<=n?s(r,t,n):e}function c(e,t,n){let r=a.getTokenBefore(e,{includeComments:!0});return r!==t&&e.loc.start.line-r.loc.end.line<=n?c(r,t,n):e}function l(e,t){return a.getTokensBetween(e,t,{includeComments:!0}).length!==0}function u(e,n){return t[n].test(e)}function d(e,t){for(let n=i.length-1;n>=0;--n){let r=i[n];if(u(e,r.prev)&&u(t,r.next))return r.blankLine}return null}return{ClassBody(t){let i=t.body;for(let t=0;t<i.length-1;t++){let u=a.getFirstToken(i[t]),{curLast:f,nextFirst:p}=o(i[t],i[t+1]),m=!!e.isTokenOnSameLine(u,f)&&r[1].exceptAfterSingleLine,h=s(f,p,1),g=c(p,f,1),_=g.loc.start.line-h.loc.end.line>1,v=l(h,g),y=s(f,p,0),b=d(i[t],i[t+1]);b===`never`&&_?n.report({node:i[t+1],messageId:`never`,fix(e){return v?null:e.replaceTextRange([h.range[1],g.range[0]],`
151
+ `)}}):b===`always`&&!m&&!_&&n.report({node:i[t+1],messageId:`always`,fix(e){return v?null:e.insertTextAfter(y,`
152
+ `)}})}}}}},md}var _d,vd;function yd(){if(vd)return _d;vd=1;let e=$(),t=/* @__PURE__ */ new Set([`Identifier`,`Super`,`ThisExpression`]);function n(t,n){return t.type===`Identifier`&&t.name===`undefined`?e.isReferenceToGlobalVariable(n,t):t.type===`UnaryExpression`&&t.operator===`void`&&t.argument.type===`Literal`&&t.argument.value===0}function r(e){return e.type===`Identifier`&&e.name!==`undefined`||e.type===`MemberExpression`}function i(t,i){if(t.type!==`BinaryExpression`||t.operator!==`==`)return!1;let a=r(t.left)?`left`:`right`,o=a===`left`?`right`:`left`;return r(t[a])&&(e.isNullLiteral(t[o])||n(t[o],i))}function a(e){return e.type===`LogicalExpression`&&e.operator===`||`&&e.left.type===`BinaryExpression`&&e.left.operator===`===`&&e.right.type===`BinaryExpression`&&e.right.operator===`===`}function o(t,i){if(!a(t))return!1;let o=r(t.left.left)?`left`:`right`,s=o===`left`?`right`:`left`,c=r(t.right.left)?`left`:`right`,l=c===`left`?`right`:`left`;return e.isSameReference(t.left[o],t.right[c])&&(e.isNullLiteral(t.left[s])&&n(t.right[l],i)||n(t.left[s],i)&&e.isNullLiteral(t.right[l]))}function s(t,n){return t.type===`CallExpression`&&t.callee.name===`Boolean`&&t.arguments.length===1&&e.isReferenceToGlobalVariable(n,t.callee)}function c(e,t){let n=e.type===`UnaryExpression`&&e.operator===`!`,a=n?e.argument:e;switch(!0){case r(a):return{reference:a,operator:n?`||`:`&&`};case a.type===`UnaryExpression`&&a.operator===`!`&&r(a.argument):return{reference:a.argument,operator:`&&`};case s(a,t)&&r(a.arguments[0]):return{reference:a.arguments[0],operator:n?`||`:`&&`};case i(e,t):return{reference:r(e.left)?e.left:e.right,operator:`??`};case o(e,t):return{reference:r(e.left.left)?e.left.left:e.left.right,operator:`??`};default:return null}}function l(e){return e.type===`Program`?!1:e.parent.type===`WithStatement`&&e.parent.body===e||l(e.parent)}function u(t,n){let r=n.left;for(;r.type===`LogicalExpression`&&r.operator===n.operator;){if(e.isParenthesised(t,r))return r;r=r.left}return r}return _d={meta:{type:`suggestion`,docs:{description:`Require or disallow logical assignment operator shorthand`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/logical-assignment-operators`},schema:{type:`array`,oneOf:[{items:[{const:`always`},{type:`object`,properties:{enforceForIfStatements:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:`never`}],minItems:1,maxItems:1}]},defaultOptions:[`always`],fixable:`code`,hasSuggestions:!0,messages:{assignment:`Assignment (=) can be replaced with operator assignment ({{operator}}).`,useLogicalOperator:`Convert this assignment to use the operator {{ operator }}.`,logical:`Logical expression can be replaced with an assignment ({{ operator }}).`,convertLogical:`Replace this logical expression with an assignment with the operator {{ operator }}.`,if:`'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.`,convertIf:`Replace this 'if' statement with a logical assignment with operator {{ operator }}.`,unexpected:`Unexpected logical operator assignment ({{operator}}) shorthand.`,separate:`Separate the logical assignment into an assignment with a logical operator.`}},create(n){let i=n.options[0],a=i===`always`&&n.options.length>1&&n.options[1].enforceForIfStatements,o=n.sourceCode,s=o.getScope(o.ast).isStrict;function d(e){return e.type===`Identifier`&&(s||!l(e))}function f(e){return!s&&l(e)?e.type===`Identifier`:e.type===`MemberExpression`&&t.has(e.object.type)&&(!e.computed||e.property.type!==`MemberExpression`&&e.property.type!==`ChainExpression`)}function p(e,t,n){return n?{...e,fix:t.fix}:{...e,suggest:[t]}}function m(e){return o.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator)}return i===`never`?{AssignmentExpression(t){if(!e.isLogicalAssignmentOperator(t.operator))return;let r={messageId:`unexpected`,node:t,data:{operator:t.operator}};n.report(p(r,{messageId:`separate`,*fix(n){if(o.getCommentsInside(t).length>0)return;let r=m(t);yield n.replaceText(r,`=`);let i=o.getText(t.left),a=t.operator.slice(0,-1);yield n.insertTextAfter(r,` ${i} ${a}`);let s=e.getPrecedence(t.right)<=e.getPrecedence({type:`LogicalExpression`,operator:a}),c=t.operator===`??=`&&e.isLogicalExpression(t.right);!e.isParenthesised(o,t.right)&&(s||c)&&(yield n.insertTextBefore(t.right,`(`),yield n.insertTextAfter(t.right,`)`))}},d(t.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(t){let r=u(o,t.right);if(!e.isSameReference(t.left,r))return;let i={messageId:`assignment`,node:t,data:{operator:`${t.right.operator}=`}},a={messageId:`useLogicalOperator`,data:{operator:`${t.right.operator}=`},*fix(e){if(o.getCommentsInside(t).length>0)return;let n=m(t);yield e.insertTextBefore(n,t.right.operator);let i=m(r.parent),a=o.getTokenAfter(i);yield e.removeRange([r.parent.range[0],a.range[0]])}};n.report(p(i,a,d(t.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(t){if(r(t.left)&&e.isSameReference(t.left,t.right.left)){let r={messageId:`logical`,node:t,data:{operator:`${t.operator}=`}},i={messageId:`convertLogical`,data:{operator:`${t.operator}=`},*fix(n){if(o.getCommentsInside(t).length>0)return;let r=e.getPrecedence(t.parent),i=t.parent.type!==`ExpressionStatement`&&(r===-1||e.getPrecedence({type:`AssignmentExpression`})<r);!e.isParenthesised(o,t)&&i&&(yield n.insertTextBefore(t,`(`),yield n.insertTextAfter(t,`)`)),yield n.removeRange([t.range[0],t.right.range[0]]),yield n.removeRange([t.right.range[1],t.range[1]]);let a=m(t.right);yield n.insertTextBefore(a,t.operator)}},a=d(t.left)||f(t.left);n.report(p(r,i,a))}},"IfStatement[alternate=null]"(t){if(!a)return;let r=t.consequent.type===`BlockStatement`;if(r&&t.consequent.body.length!==1)return;let i=r?t.consequent.body[0]:t.consequent,s=o.getScope(t),l=c(t.test,s);if(i.type===`ExpressionStatement`&&i.expression.type===`AssignmentExpression`&&i.expression.operator===`=`&&l!==null&&e.isSameReference(l.reference,i.expression.left)){let e={messageId:`if`,node:t,data:{operator:`${l.operator}=`}},a={messageId:`convertIf`,data:{operator:`${l.operator}=`},*fix(e){if(o.getCommentsInside(t).length>0)return;let n=o.getFirstToken(i),a=o.getTokenBefore(t);if(a!==null&&a.value!==`;`&&a.value!==`{`&&n.type!==`Identifier`&&n.type!==`Keyword`)return;let s=m(i.expression);yield e.insertTextBefore(s,l.operator),yield e.removeRange([t.range[0],i.range[0]]),yield e.removeRange([i.range[1],t.range[1]]);let c=o.getTokenAfter(i.expression);r&&c!==null&&c.value!==`;`&&(yield e.insertTextAfter(t,`;`))}},s=d(l.reference)||t.test.type!==`LogicalExpression`&&f(l.reference);n.report(p(e,a,s))}}}}},_d}var bd,xd;function Sd(){return xd||(xd=1,bd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of classes per file`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-classes-per-file`},schema:[{oneOf:[{type:`integer`,minimum:1},{type:`object`,properties:{ignoreExpressions:{type:`boolean`},max:{type:`integer`,minimum:1}},additionalProperties:!1}]}],defaultOptions:[1],messages:{maximumExceeded:`File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}.`}},create(e){let t=e.options[0],[n,r]=typeof t==`number`?[!1,t]:[t.ignoreExpressions,t.max||1],i=0;return{Program(){i=0},"Program:exit"(t){i>r&&e.report({node:t,loc:{start:t.body[0].loc.start,end:t.body.at(-1).loc.end},messageId:`maximumExceeded`,data:{classCount:i,max:r}})},ClassDeclaration(){i++},ClassExpression(){n||i++}}}}),bd}var Cd,wd;function Td(){return wd||(wd=1,Cd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum depth that blocks can be nested`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-depth`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0}},additionalProperties:!1}]}],defaultOptions:[4],messages:{tooDeeply:`Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}.`}},create(e){let t=e.sourceCode,n=[],r=e.options[0],i=4;typeof r==`object`&&(Object.hasOwn(r,`maximum`)||Object.hasOwn(r,`max`))&&(i=r.maximum||r.max),typeof r==`number`&&(i=r);function a(){n.push(0)}function o(){n.pop()}function s(r){let a=++n[n.length-1];a>i&&e.report({node:r,loc:t.getFirstToken(r).loc,messageId:`tooDeeply`,data:{depth:a,maxDepth:i}})}function c(){n[n.length-1]--}function l(e){return e.parent.type===`IfStatement`&&e.parent.alternate===e}return{Program:a,FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,IfStatement(e){l(e)||s(e)},SwitchStatement:s,TryStatement:s,DoWhileStatement:s,WhileStatement:s,WithStatement:s,ForStatement:s,ForInStatement:s,ForOfStatement:s,"IfStatement:exit"(e){l(e)||c()},"SwitchStatement:exit":c,"TryStatement:exit":c,"DoWhileStatement:exit":c,"WhileStatement:exit":c,"WithStatement:exit":c,"ForStatement:exit":c,"ForInStatement:exit":c,"ForOfStatement:exit":c,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,"StaticBlock:exit":o,"Program:exit":o}}}),Cd}var Ed,Dd;function Od(){if(Dd)return Ed;Dd=1;let e={type:`object`,properties:{code:{type:`integer`,minimum:0},comments:{type:`integer`,minimum:0},tabWidth:{type:`integer`,minimum:0},ignorePattern:{type:`string`},ignoreComments:{type:`boolean`},ignoreStrings:{type:`boolean`},ignoreUrls:{type:`boolean`},ignoreTemplateLiterals:{type:`boolean`},ignoreRegExpLiterals:{type:`boolean`},ignoreTrailingComments:{type:`boolean`}},additionalProperties:!1},t={anyOf:[e,{type:`integer`,minimum:0}]};return Ed={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`max-len`,url:`https://eslint.style/rules/max-len`}}]},type:`layout`,docs:{description:`Enforce a maximum line length`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-len`},schema:[t,t,e],messages:{max:`This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.`,maxComment:`This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}.`}},create(e){let t=/[^:/?#]:\/\/[^?#]/u,n=e.sourceCode;function r(e,t){let n=0;return e.replace(/\t/gu,(e,r)=>{let i=r+n,a=t-(t?i%t:0);n+=a-1}),Array.from(e).length+n}let i=Object.assign({},e.options.at(-1));typeof e.options[0]==`number`&&(i.code=e.options[0]),typeof e.options[1]==`number`&&(i.tabWidth=e.options[1]);let a=typeof i.code==`number`?i.code:80,o=typeof i.tabWidth==`number`?i.tabWidth:4,s=!!i.ignoreComments,c=!!i.ignoreStrings,l=!!i.ignoreTemplateLiterals,u=!!i.ignoreRegExpLiterals,d=!!i.ignoreTrailingComments||!!i.ignoreComments,f=!!i.ignoreUrls,p=i.comments,m=i.ignorePattern||null;m&&=new RegExp(m,`u`);function h(e,t,n){return n&&n.loc.start.line===t&&t<=n.loc.end.line&&(n.loc.end.line>t||n.loc.end.column===e.length)}function g(e,t,n){let r=n.loc.start,i=n.loc.end,a=!e.slice(0,n.loc.start.column).trim();return n&&(r.line<t||r.line===t&&a)&&(i.line>t||i.line===t&&i.column===e.length)}function _(e){if(!e||!e.parent||e.type!==`JSXEmptyExpression`||e.parent.type!==`JSXExpressionContainer`)return!1;let t=e.parent;return t.loc.start.line===t.loc.end.line}function v(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,``)}function y(e,t,n){Array.isArray(e[t])||(e[t]=[]),e[t].push(n)}function b(){return n.ast.tokens.filter(e=>e.type===`String`||e.type===`JSXText`&&n.getNodeByRangeIndex(e.range[0]-1).type===`JSXAttribute`)}function x(){return n.ast.tokens.filter(e=>e.type===`Template`)}function S(){return n.ast.tokens.filter(e=>e.type===`RegularExpression`)}function C(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e=r.loc.start.line;e<=r.loc.end.line;++e)y(t,e,r)}return t}function w(){let e=[];return n.getAllComments().forEach(t=>{let r=n.getNodeByRangeIndex(t.range[0]);_(r)?e.at(-1)!==r.parent&&e.push(r.parent):e.push(t)}),e}function T(i){let _=n.lines,y=s||p||d?w():[],T=0,E=C(b()),D=C(x()),O=C(S());_.forEach((n,_)=>{let b=_+1,x=!1,S;if(T<y.length){let e;do e=y[++T];while(e&&e.loc.start.line<=b);if(e=y[--T],g(n,b,e))x=!0,S=n;else if(d&&h(n,b,e)){S=v(n,e);let t=T;for(;h(S,b,y[--t]);)S=v(S,y[t])}else S=n}else S=n;if(m&&m.test(S)||f&&t.test(S)||c&&E[b]||l&&D[b]||u&&O[b])return;let C=r(S,o),w=x&&p;if(x&&s)return;let k={start:{line:b,column:0},end:{line:b,column:S.length}};w?C>p&&e.report({node:i,loc:k,messageId:`maxComment`,data:{lineLength:C,maxCommentLength:p}}):C>a&&e.report({node:i,loc:k,messageId:`max`,data:{lineLength:C,maxLength:a}})})}return{Program:T}}},Ed}var kd,Ad;function jd(){if(Ad)return kd;Ad=1;let e=$();function t(e,t){return[...Array(t-e).keys()].map(t=>t+e)}return kd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of lines per file`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-lines`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{max:{type:`integer`,minimum:0},skipComments:{type:`boolean`},skipBlankLines:{type:`boolean`}},additionalProperties:!1}]}],defaultOptions:[300],messages:{exceed:`File has too many lines ({{actual}}). Maximum allowed is {{max}}.`}},create(n){let r=n.options[0],i=300;typeof r==`object`&&Object.hasOwn(r,`max`)?i=r.max:typeof r==`number`&&(i=r);let a=r&&r.skipComments,o=r&&r.skipBlankLines,s=n.sourceCode;function c(e){return e&&(e.type===`Block`||e.type===`Line`)}function l(n){let r=n.loc.start.line,i=n.loc.end.line,a;a=n;do a=s.getTokenBefore(a,{includeComments:!0});while(c(a));a&&e.isTokenOnSameLine(a,n)&&(r+=1),a=n;do a=s.getTokenAfter(a,{includeComments:!0});while(c(a));return a&&e.isTokenOnSameLine(n,a)&&--i,r<=i?t(r,i+1):[]}return{"Program:exit"(){let e=s.lines.map((e,t)=>({lineNumber:t+1,text:e}));if(e.length>1&&e.at(-1).text===``&&e.pop(),o&&(e=e.filter(e=>e.text.trim()!==``)),a){let t=s.getAllComments(),n=new Set(t.flatMap(l));e=e.filter(e=>!n.has(e.lineNumber))}if(e.length>i){let t={start:{line:e[i].lineNumber,column:0},end:{line:s.lines.length,column:s.lines.at(-1).length}};n.report({loc:t,messageId:`exceed`,data:{max:i,actual:e.length}})}}}}},kd}var Md,Nd;function Pd(){if(Nd)return Md;Nd=1;let e=$(),{upperCaseFirst:t}=Yc(),n={oneOf:[{type:`object`,properties:{max:{type:`integer`,minimum:0},skipComments:{type:`boolean`},skipBlankLines:{type:`boolean`},IIFEs:{type:`boolean`}},additionalProperties:!1},{type:`integer`,minimum:1}]};function r(t){let n=/* @__PURE__ */ new Set;for(let r of t.getAllComments()){let i=t.getTokenBefore(r),a=t.getTokenAfter(r),o=r.loc.start.line,s=r.loc.end.line;i&&e.isTokenOnSameLine(i,r)&&o++,a&&e.isTokenOnSameLine(r,a)&&s--;for(let e=o;e<=s;e++)n.add(e)}return n}return Md={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of lines of code in a function`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-lines-per-function`},schema:[n],defaultOptions:[50],messages:{exceed:`{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}.`}},create(n){let i=n.sourceCode,a=i.lines,o=n.options[0],s=50,c=!1,l=!1,u=!1;typeof o==`object`?(s=typeof o.max==`number`?o.max:50,c=!!o.skipComments,l=!!o.skipBlankLines,u=!!o.IIFEs):typeof o==`number`&&(s=o);let d=c?r(i):null;function f(e){return(e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`)&&e.parent&&e.parent.type===`CallExpression`&&e.parent.callee===e}function p(e){return!e.parent||e!==e.parent.value?!1:e.parent.type===`MethodDefinition`?!0:e.parent.type===`Property`?e.parent.method===!0||e.parent.kind===`get`||e.parent.kind===`set`:!1}function m(r){let o=p(r)?r.parent:r;if(!u&&f(o))return;let m=0;for(let e=o.loc.start.line-1;e<o.loc.end.line;++e)c&&d.has(e+1)||l&&/^\s*$/u.test(a[e])||m++;if(m>s){let a=t(e.getFunctionNameWithKind(r));n.report({node:o,loc:e.getFunctionHeadLoc(r,i),messageId:`exceed`,data:{name:a,lineCount:m,maxLines:s}})}}return{FunctionDeclaration:m,FunctionExpression:m,ArrowFunctionExpression:m}}},Md}var Fd,Id;function Ld(){if(Id)return Fd;Id=1;let e=$();return Fd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum depth that callbacks can be nested`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-nested-callbacks`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0},checkConstructorCallCallbacks:{type:`boolean`}},additionalProperties:!1}]}],defaultOptions:[10],messages:{exceed:`Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.`}},create(t){let n=t.sourceCode,r=t.options[0],i=10;typeof r==`object`&&(Object.hasOwn(r,`maximum`)||Object.hasOwn(r,`max`))?i=r.maximum||r.max:typeof r==`number`&&(i=r);let a=[];function o(o){let s=o.parent;if(!(s.type!==`CallExpression`&&!(r.checkConstructorCallCallbacks&&s.type===`NewExpression`)||s.callee===o)&&(a.push(o),a.length>i)){let r={num:a.length,max:i};t.report({node:o,loc:e.getFunctionHeadLoc(o,n),messageId:`exceed`,data:r})}}function s(e){a.at(-1)===e&&a.pop()}return{ArrowFunctionExpression:o,"ArrowFunctionExpression:exit":s,FunctionExpression:o,"FunctionExpression:exit":s}}},Fd}var Rd,zd;function Bd(){if(zd)return Rd;zd=1;let e=$(),{upperCaseFirst:t}=Yc();return Rd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of parameters in function definitions`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/max-params`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0},countVoidThis:{type:`boolean`,description:"Whether to count a `this` declaration when the type is `void`."},countThis:{enum:[`never`,`except-void`,`always`],description:"Whether to count a `this` declaration."}},additionalProperties:!1,not:{required:[`countVoidThis`,`countThis`]}}]}],defaultOptions:[3],messages:{exceed:`{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}.`}},create(n){let r=n.sourceCode,i=n.options[0],a=3,o=`except-void`;typeof i==`object`&&((Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))&&(a=i.maximum||i.max),o=i.countThis,!o&&Object.hasOwn(i,`countVoidThis`)&&(o=i.countVoidThis?`always`:`except-void`),o||=`except-void`),typeof i==`number`&&(a=i);function s(i){let s=i.params.length>0&&i.params[0].type===`Identifier`&&i.params[0].name===`this`?i.params[0]:null,c=i.params.length;s&&(o===`never`||o===`except-void`&&s.typeAnnotation?.typeAnnotation.type===`TSVoidKeyword`)&&(c=i.params.length-1),c>a&&n.report({loc:e.getFunctionHeadLoc(i,r),node:i,messageId:`exceed`,data:{name:t(e.getFunctionNameWithKind(i)),count:c,max:a}})}return{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s,TSDeclareFunction:s,TSFunctionType:s}}},Rd}var Vd,Hd;function Ud(){if(Hd)return Vd;Hd=1;let e=$(),{upperCaseFirst:t}=Yc();return Vd={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of statements allowed in function blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-statements`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0}},additionalProperties:!1}]},{type:`object`,properties:{ignoreTopLevelFunctions:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[10],messages:{exceed:`{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}.`}},create(n){let r=[],i=n.options[0],a=n.options[1]&&n.options[1].ignoreTopLevelFunctions||!1,o=[],s=10;typeof i==`object`&&(Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))?s=i.maximum||i.max:typeof i==`number`&&(s=i);function c(r,i,a){if(i>a){let o=t(e.getFunctionNameWithKind(r));n.report({node:r,loc:e.getFunctionHeadLoc(r,n.sourceCode),messageId:`exceed`,data:{name:o,count:i,max:a}})}}function l(){r.push(0)}function u(e){let t=r.pop();e.type!==`StaticBlock`&&(a&&r.length===0?o.push({node:e,count:t}):c(e,t,s))}function d(e){r[r.length-1]+=e.body.length}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,StaticBlock:l,BlockStatement:d,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u,"StaticBlock:exit":u,"Program:exit"(){o.length!==1&&o.forEach(e=>{let t=e.count,n=e.node;c(n,t,s)})}}}},Vd}var Wd,Gd;function Kd(){if(Gd)return Wd;Gd=1;let e=$();return Wd={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`max-statements-per-line`,url:`https://eslint.style/rules/max-statements-per-line`}}]},type:`layout`,docs:{description:`Enforce a maximum number of statements allowed per line`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-statements-per-line`},schema:[{type:`object`,properties:{max:{type:`integer`,minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:`This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}.`}},create(t){let n=t.sourceCode,r=t.options[0]||{},i=r.max===void 0?1:r.max,a=0,o=0,s,c=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function l(){s&&t.report({node:s,messageId:`exceed`,data:{numberOfStatementsOnThisLine:o,maxStatementsPerLine:i,statements:o===1?`statement`:`statements`}}),s=null}function u(t){return n.getLastToken(t,e.isNotSemicolonToken)}function d(e){let t=e.loc.start.line;c.test(e.parent.type)&&e.parent.alternate!==e||(t===a?o+=1:(l(),o=1,a=t),o===i+1&&(s||=e))}function f(e){let t=u(e).loc.end.line;t!==a&&(l(),o=1,a=t)}return{BreakStatement:d,ClassDeclaration:d,ContinueStatement:d,DebuggerStatement:d,DoWhileStatement:d,ExpressionStatement:d,ForInStatement:d,ForOfStatement:d,ForStatement:d,FunctionDeclaration:d,IfStatement:d,ImportDeclaration:d,LabeledStatement:d,ReturnStatement:d,SwitchStatement:d,ThrowStatement:d,TryStatement:d,VariableDeclaration:d,WhileStatement:d,WithStatement:d,ExportNamedDeclaration:d,ExportDefaultDeclaration:d,ExportAllDeclaration:d,"BreakStatement:exit":f,"ClassDeclaration:exit":f,"ContinueStatement:exit":f,"DebuggerStatement:exit":f,"DoWhileStatement:exit":f,"ExpressionStatement:exit":f,"ForInStatement:exit":f,"ForOfStatement:exit":f,"ForStatement:exit":f,"FunctionDeclaration:exit":f,"IfStatement:exit":f,"ImportDeclaration:exit":f,"LabeledStatement:exit":f,"ReturnStatement:exit":f,"SwitchStatement:exit":f,"ThrowStatement:exit":f,"TryStatement:exit":f,"VariableDeclaration:exit":f,"WhileStatement:exit":f,"WithStatement:exit":f,"ExportNamedDeclaration:exit":f,"ExportDefaultDeclaration:exit":f,"ExportAllDeclaration:exit":f,"Program:exit":l}}},Wd}var qd,Jd;function Yd(){if(Jd)return qd;Jd=1;let e=$();return qd={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`9.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`multiline-comment-style`,url:`https://eslint.style/rules/multiline-comment-style`}}]},type:`suggestion`,docs:{description:`Enforce a particular style for multiline comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/multiline-comment-style`},fixable:`whitespace`,schema:{anyOf:[{type:`array`,items:[{enum:[`starred-block`,`bare-block`]}],additionalItems:!1},{type:`array`,items:[{enum:[`separate-lines`]},{type:`object`,properties:{checkJSDoc:{type:`boolean`}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:`Expected a block comment instead of consecutive line comments.`,expectedBareBlock:`Expected a block comment without padding stars.`,startNewline:`Expected a linebreak after '/*'.`,endNewline:`Expected a linebreak before '*/'.`,missingStar:`Expected a '*' at the start of this line.`,alignment:`Expected this line to be aligned with the start of the comment.`,expectedLines:`Expected multiple line comments instead of a block comment.`}},create(t){let n=t.sourceCode,r=t.options[0]||`starred-block`,i=!!(t.options[1]||{}).checkJSDoc;function a(e){return/^\s*\*/u.test(e)}function o([t]){if(t.type!==`Block`)return!1;let n=t.value.split(e.LINEBREAK_MATCHER);return n.length>0&&n.every((e,t)=>(t===0||t===n.length-1?/^\s*$/u:/^\s*\*/u).test(e))}function s([t]){if(t.type!==`Block`)return!1;let n=t.value.split(e.LINEBREAK_MATCHER);return/^\*\s*$/u.test(n[0])&&n.slice(1,-1).every(e=>/^\s* /u.test(e))&&/^\s*$/u.test(n.at(-1))}function c(e){let t=e.map(({value:e})=>e).filter(e=>e.trim().length).every(e=>e.startsWith(` `));return e.map(({value:e})=>t?e.replace(/^ /u,``):e)}function l(t){let n=t.value.split(e.LINEBREAK_MATCHER).filter((e,t,n)=>t!==0&&t!==n.length-1).map(e=>e.replace(/^\s*$/u,``)),r=n.map(e=>e.replace(/\s*\*/u,``)).filter(e=>e.trim().length).every(e=>e.startsWith(` `));return n.map(e=>e.replace(r?/\s*\* ?/u:/\s*\*/u,``))}function u(t){let r=t.value.split(e.LINEBREAK_MATCHER).map(e=>e.replace(/^\s*$/u,``)),i=`${n.text.slice(t.range[0]-t.loc.start.column,t.range[0])} `,a=``;for(let[e,t]of r.entries()){if(!t.trim().length||e===0)continue;let[,n]=t.match(/^(\s*\*?\s*)/u);if(n.length<i.length){let e=i.slice(n.length-i.length);e.length>a.length&&(a=e)}}return r.map(e=>{let[,t,n]=e.match(/^(\s*\*?\s*)(.*)/u);return t.length>i.length?`${t.slice(i.length-(a.length+t.length))}${n}`:t.length<i.length?`${t.slice(i.length)}${n}`:n})}function d(e){let[t]=e;return t.type===`Line`?c(e):o(e)?l(t):u(t)}function f(e){return n.text.slice(e.range[0]-e.loc.start.column,e.range[0])}function p(e,t){let n=f(e);return`/*\n${t.map(e=>`${n} * ${e}`).join(`
153
+ `)}\n${n} */`}function m(e,t){return t.map(e=>`// ${e}`).join(`\n${f(e)}`)}function h(e,t){return`/* ${t.join(`\n${f(e)} `)} */`}let g={"starred-block"(r){let[i]=r,o=d(r);if(!o.some(e=>e.includes(`*/`))){if(r.length>1)t.report({loc:{start:i.loc.start,end:r.at(-1).loc.end},messageId:`expectedBlock`,fix(e){let t=[i.range[0],r.at(-1).range[1]];return o.some(e=>e.startsWith(`/`))?null:e.replaceTextRange(t,p(i,o))}});else{let r=i.value.split(e.LINEBREAK_MATCHER),o=`${f(i)} *`;if(!/^\*?\s*$/u.test(r[0])){let e=i.value.startsWith(`*`)?i.range[0]+1:i.range[0];t.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+2}},messageId:`startNewline`,fix:t=>t.insertTextAfterRange([e,e+2],`\n${o}`)})}/^\s*$/u.test(r.at(-1))||t.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:`endNewline`,fix:e=>e.replaceTextRange([i.range[1]-2,i.range[1]],`\n${o}/`)});for(let e=i.loc.start.line+1;e<=i.loc.end.line;e++){let s=n.lines[e-1],c=a(s)?`alignment`:`missingStar`;s.startsWith(o)||t.report({loc:{start:{line:e,column:0},end:{line:e,column:s.length}},messageId:c,fix(t){let a=n.getIndexFromLoc({line:e,column:0});if(c===`alignment`){let[,e=``]=s.match(/^(\s*\*)/u)||[],n=a+e.length;return t.replaceTextRange([a,n],o)}let[,l=``]=s.match(/^(\s*)/u)||[],u=a+l.length,d;for(let[e,t]of r.entries()){if(!/\S+/u.test(t))continue;let[,r=``,a=``]=n.lines[i.loc.start.line-1+e].match(/^(\s*(?:\/?\*)?(\s*))/u)||[];d=`${l.slice(r.length)}${a}`,/^\s*\//u.test(s)&&d.length===0&&(d+=` `);break}return t.replaceTextRange([a,u],`${o}${d}`)}})}}}},"separate-lines"(e){let[r]=e,a=s(e);if(r.type!==`Block`||!i&&a)return;let o=d(e);a&&(o=o.slice(1,o.length-1));let c=n.getTokenAfter(r,{includeComments:!0});c&&r.loc.end.line===c.loc.start.line||t.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:`expectedLines`,fix(e){return e.replaceText(r,m(r,o))}})},"bare-block"(e){if(s(e))return;let[n]=e,r=d(e);n.type===`Line`&&r.length>1&&!r.some(e=>e.includes(`*/`))&&t.report({loc:{start:n.loc.start,end:e.at(-1).loc.end},messageId:`expectedBlock`,fix(t){return t.replaceTextRange([n.range[0],e.at(-1).range[1]],h(n,r))}}),o(e)&&t.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:`expectedBareBlock`,fix(e){return e.replaceText(n,h(n,r))}})}};return{Program(){return n.getAllComments().filter(e=>e.type!==`Shebang`).filter(t=>!e.COMMENTS_IGNORE_PATTERN.test(t.value)).filter(e=>{let t=n.getTokenBefore(e,{includeComments:!0});return!t||t.loc.end.line<e.loc.start.line}).reduce((e,t,r,i)=>{let a=n.getTokenBefore(t,{includeComments:!0});return t.type===`Line`&&r&&i[r-1].type===`Line`&&a&&a.loc.end.line===t.loc.start.line-1&&a===i[r-1]?e.at(-1).push(t):e.push([t]),e},[]).filter(e=>e.length!==1||e[0].loc.start.line!==e[0].loc.end.line).forEach(g[r])}}}},qd}var Xd,Zd;function Qd(){if(Zd)return Xd;Zd=1;let e=$();return Xd={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`multiline-ternary`,url:`https://eslint.style/rules/multiline-ternary`}}]},type:`layout`,docs:{description:`Enforce newlines between operands of ternary expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/multiline-ternary`},schema:[{enum:[`always`,`always-multiline`,`never`]}],messages:{expectedTestCons:`Expected newline between test and consequent of ternary expression.`,expectedConsAlt:`Expected newline between consequent and alternate of ternary expression.`,unexpectedTestCons:`Unexpected newline between test and consequent of ternary expression.`,unexpectedConsAlt:`Unexpected newline between consequent and alternate of ternary expression.`},fixable:`whitespace`},create(t){let n=t.sourceCode,r=t.options[0],i=r!==`never`,a=r===`always-multiline`;return{ConditionalExpression(r){let o=n.getTokenAfter(r.test,e.isNotClosingParenToken),s=n.getTokenAfter(r.consequent,e.isNotClosingParenToken),c=n.getFirstToken(r),l=n.getTokenBefore(o),u=n.getTokenAfter(o),d=n.getTokenBefore(s),f=n.getTokenAfter(s),p=e.isTokenOnSameLine(l,u),m=e.isTokenOnSameLine(d,f),h=!!n.getCommentsInside(r).length;if(!i)p||t.report({node:r.test,loc:{start:c.loc.start,end:l.loc.end},messageId:`unexpectedTestCons`,fix(t){if(h)return null;let n=[],r=e.isTokenOnSameLine(l,o),i=e.isTokenOnSameLine(o,u);return r||n.push(t.removeRange([l.range[1],o.range[0]])),i||n.push(t.removeRange([o.range[1],u.range[0]])),n}}),m||t.report({node:r.consequent,loc:{start:u.loc.start,end:d.loc.end},messageId:`unexpectedConsAlt`,fix(t){if(h)return null;let n=[],r=e.isTokenOnSameLine(d,s),i=e.isTokenOnSameLine(s,f);return r||n.push(t.removeRange([d.range[1],s.range[0]])),i||n.push(t.removeRange([s.range[1],f.range[0]])),n}});else{if(a&&r.loc.start.line===r.loc.end.line)return;p&&t.report({node:r.test,loc:{start:c.loc.start,end:l.loc.end},messageId:`expectedTestCons`,fix:e=>h?null:e.replaceTextRange([l.range[1],o.range[0]],`
154
+ `)}),m&&t.report({node:r.consequent,loc:{start:u.loc.start,end:d.loc.end},messageId:`expectedConsAlt`,fix:e=>h?null:e.replaceTextRange([d.range[1],s.range[0]],`
155
+ `)})}}}}},Xd}var $d,ef;function tf(){if(ef)return $d;ef=1;let e=$(),t=/* @__PURE__ */ new Set([`Array`,`Boolean`,`Date`,`Error`,`Function`,`Number`,`Object`,`RegExp`,`String`,`Symbol`,`BigInt`]),n=/* @__PURE__ */ new Set([`global`,`globalThis`,`self`,`window`]);return $d={meta:{type:`suggestion`,docs:{description:`Require constructor names to begin with a capital letter`,recommended:!1,url:`https://eslint.org/docs/latest/rules/new-cap`},schema:[{type:`object`,properties:{newIsCap:{type:`boolean`},capIsNew:{type:`boolean`},newIsCapExceptions:{type:`array`,items:{type:`string`}},newIsCapExceptionPattern:{type:`string`},capIsNewExceptions:{type:`array`,items:{type:`string`}},capIsNewExceptionPattern:{type:`string`},properties:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{capIsNew:!0,capIsNewExceptions:[],newIsCap:!0,newIsCapExceptions:[],properties:!0}],messages:{upper:`A function with a name starting with an uppercase letter should only be used as a constructor.`,lower:`A constructor name should not start with a lowercase letter.`}},create(r){let[i]=r.options,a=!i.properties,o=new Set(i.newIsCapExceptions),s=i.newIsCapExceptionPattern?new RegExp(i.newIsCapExceptionPattern,`u`):null,c=new Set(i.capIsNewExceptions),l=i.capIsNewExceptionPattern?new RegExp(i.capIsNewExceptionPattern,`u`):null,u={},d=r.sourceCode;function f(t){return t.callee.type===`Identifier`?t.callee.name:e.getStaticPropertyName(t.callee)||``}function p(e){let[t]=e,n=t.toLowerCase();return n===t.toUpperCase()?`non-alpha`:t===n?`lower`:`upper`}function m(e){return e.type===`Identifier`&&n.has(e.name)&&d.isGlobalReference(e)}function h(t,n){let r=e.skipChainExpression(t);return r.type===`MemberExpression`?e.getStaticPropertyName(r)===n&&m(r.object):r.type===`Identifier`&&r.name===n&&d.isGlobalReference(r)}function g(t,n,r,i){let o=d.getText(n.callee);if(t.has(r)||t.has(o)||i&&i.test(o))return!0;let s=e.skipChainExpression(n.callee);if(s.type===`MemberExpression`){if(a)return!0;if(r===`UTC`)return h(s.object,`Date`)}return!1}function _(t,n){let i=e.skipChainExpression(t.callee);i.type===`MemberExpression`&&(i=i.property),r.report({node:t,loc:i.loc,messageId:n})}return i.newIsCap&&(u.NewExpression=function(e){let t=f(e);t&&(p(t)!==`lower`||g(o,e,t,s)||_(e,`lower`))}),i.capIsNew&&(u.CallExpression=function(e){let n=f(e);n&&(p(n)!==`upper`||g(c,e,n,l)||t.has(n)&&h(e.callee,n)||_(e,`upper`))}),u}},$d}var nf,rf;function af(){if(rf)return nf;rf=1;let e=$();return nf={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`new-parens`,url:`https://eslint.style/rules/new-parens`}}]},type:`layout`,docs:{description:`Enforce or disallow parentheses when invoking a constructor with no arguments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/new-parens`},fixable:`code`,schema:[{enum:[`always`,`never`]}],messages:{missing:`Missing '()' invoking a constructor.`,unnecessary:`Unnecessary '()' invoking a constructor with no arguments.`}},create(t){let n=t.options[0]!==`never`,r=t.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=r.getLastToken(i),o=a&&e.isClosingParenToken(a)&&e.isOpeningParenToken(r.getTokenBefore(a))&&i.callee.range[1]<i.range[1];n?o||t.report({node:i,messageId:`missing`,fix:e=>e.insertTextAfter(i,`()`)}):o&&t.report({node:i,messageId:`unnecessary`,fix:e=>[e.remove(r.getTokenBefore(a)),e.remove(a),e.insertTextBefore(i,`(`),e.insertTextAfter(i,`)`)]})}}}},nf}var of,sf;function cf(){if(sf)return of;sf=1;let e=$();return of={meta:{type:`layout`,docs:{description:`Require or disallow an empty line after variable declarations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-after-var`},schema:[{enum:[`never`,`always`]}],fixable:`whitespace`,messages:{expected:`Expected blank line after variable declarations.`,unexpected:`Unexpected blank line after variable declarations.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(t){let n=t.sourceCode,r=t.options[0]===`never`?`never`:`always`,i=n.getAllComments().reduce((e,t)=>(e[t.loc.start.line]=t.loc.end.line,e),{});function a(e){let t=n.getLastToken(e);if(t.type===`Punctuator`&&t.value===`;`){let e=n.getTokenBefore(t);if(e.loc.end.line!==t.loc.start.line)return e}return t}function o(e){return e===`var`||e===`let`||e===`const`}function s(e){return e===`ForStatement`||e===`ForInStatement`||e===`ForOfStatement`}function c(e){return e===`ExportNamedDeclaration`||e===`ExportSpecifier`||e===`ExportDefaultDeclaration`||e===`ExportAllDeclaration`}function l(e){let t=n.getTokenAfter(e);return!t||t.type===`Punctuator`&&t.value===`}`}function u(e){let t=i[e];return i[t+1]?u(t+1):t}function d(e,t){return e.loc.start.line>u(t)+1}function f(f){let p=a(f),m=p===n.getLastToken(f)?n.getTokenAfter(f):n.getLastToken(f),h=p.loc.end.line+1;if(!m||s(f.parent.type)||c(f.parent.type)||m.type===`Keyword`&&o(m.value)||l(f))return;let g=m.loc.start.line>h,_=i[h]!==void 0;r===`never`&&g&&!_&&t.report({node:f,messageId:`unexpected`,fix(t){let r=n.getText().slice(p.range[1],m.range[0]).split(e.LINEBREAK_MATCHER);return t.replaceTextRange([p.range[1],m.range[0]],`${r.slice(0,-1).join(``)}\n${r.at(-1)}`)}}),r===`always`&&(!g||_&&!d(m,h))&&t.report({node:f,messageId:`expected`,fix(e){return(g?u(h):p.loc.end.line)===m.loc.start.line?e.insertTextBefore(m,`
156
+
157
+ `):e.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],`
158
+ `)}})}return{VariableDeclaration:f}}},of}var lf,uf;function df(){return uf||(uf=1,lf={meta:{type:`layout`,docs:{description:"Require an empty line before `return` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-before-return`},fixable:`whitespace`,schema:[],messages:{expected:`Expected newline before return statement.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(e){let t=e.sourceCode;function n(e,n){let r=t.getTokenBefore(e);return n.includes(r.value)}function r(e){let t=e.parent.type;return e.parent.body?Array.isArray(e.parent.body)?e.parent.body[0]===e:e.parent.body===e:t===`IfStatement`?n(e,[`else`,`)`]):t===`DoWhileStatement`?n(e,[`do`]):t===`SwitchCase`?n(e,[`:`]):n(e,[`)`])}function i(e,n){let r=t.getCommentsBefore(e),i=0;return r.length&&r.forEach(t=>{i++,t.type===`Block`&&(i+=t.loc.end.line-t.loc.start.line),t.loc.start.line===n&&i--,t.loc.end.line===e.loc.start.line&&i--}),i}function a(e){let n=t.getTokenBefore(e),r;return r=n?n.loc.end.line:0,r}function o(e){let t=e.loc.start.line,n=a(e),r=i(e,n);return t-n-r>1}function s(e){let n=t.getCommentsBefore(e),r=n.at(-1),i=t.getTokenBefore(e);return n.length===0||r.loc.end.line===i.loc.end.line&&r.loc.end.line!==e.loc.start.line}return{ReturnStatement(n){!r(n)&&!o(n)&&e.report({node:n,messageId:`expected`,fix(e){if(s(n)){let r=t.getTokenBefore(n),i=n.loc.start.line===r.loc.end.line?`
159
+
160
+ `:`
161
+ `;return e.insertTextBefore(n,i)}return null}})}}}}),lf}var ff,pf;function mf(){if(pf)return ff;pf=1;let e=$();return ff={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`newline-per-chained-call`,url:`https://eslint.style/rules/newline-per-chained-call`}}]},type:`layout`,docs:{description:`Require a newline after each call in a method chain`,recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-per-chained-call`},fixable:`whitespace`,schema:[{type:`object`,properties:{ignoreChainWithDepth:{type:`integer`,minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(t){let n=(t.options[0]||{}).ignoreChainWithDepth||2,r=t.sourceCode;function i(e){return e.computed?e.optional?`?.[`:`[`:e.optional?`?.`:`.`}function a(t){let n=i(t),a=r.getText(t.property).split(e.LINEBREAK_MATCHER),o=t.computed&&a.length===1?`]`:``;return n+a[0]+o}return{"CallExpression:exit"(i){let o=e.skipChainExpression(i.callee);if(o.type!==`MemberExpression`)return;let s=e.skipChainExpression(o.object),c=1;for(;s&&s.callee;)c+=1,s=e.skipChainExpression(e.skipChainExpression(s.callee).object);if(c>n&&e.isTokenOnSameLine(o.object,o.property)){let n=r.getTokenAfter(o.object,e.isNotClosingParenToken);t.report({node:o.property,loc:{start:n.loc.start,end:o.loc.end},messageId:`expected`,data:{callee:a(o)},fix(e){return e.insertTextBefore(n,`
162
+ `)}})}}}}},ff}var hf,gf;function _f(){if(gf)return hf;gf=1;let{getStaticPropertyName:e,getVariableByName:t,skipChainExpression:n}=$();function r(e){return/^(?:alert|confirm|prompt)$/u.test(e)}function i(e,t){let n=e.references.filter(e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]);return n.length===1?n[0]:null}function a(e,t){let n=i(e,t);return n&&n.resolved&&n.resolved.defs.length>0}function o(e,n){return e.type===`global`&&n.type===`ThisExpression`?!0:n.type===`Identifier`&&(n.name===`window`||n.name===`globalThis`&&t(e,`globalThis`))?!a(e,n):!1}return hf={meta:{type:`suggestion`,docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-alert`},schema:[],messages:{unexpected:`Unexpected {{name}}.`}},create(t){let i=t.sourceCode;return{CallExpression(s){let c=n(s.callee),l=i.getScope(s);if(c.type===`Identifier`){let e=c.name;!a(l,c)&&r(c.name)&&t.report({node:s,messageId:`unexpected`,data:{name:e}})}else if(c.type===`MemberExpression`&&o(l,c.object)){let n=e(c);r(n)&&t.report({node:s,messageId:`unexpected`,data:{name:n}})}}}}},hf}var vf,yf;function bf(){if(yf)return vf;yf=1;let{getVariableByName:e,isClosingParenToken:t,isOpeningParenToken:n,isStartOfExpressionStatement:r,needsPrecedingSemicolon:i}=$();return vf={meta:{type:`suggestion`,docs:{description:"Disallow `Array` constructors",dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-array-constructor`},fixable:`code`,hasSuggestions:!0,schema:[],messages:{preferLiteral:`The array literal notation [] is preferable.`,useLiteral:`Replace with an array literal.`,useLiteralAfterSemicolon:`Replace with an array literal, add preceding semicolon.`}},create(a){let o=a.sourceCode;function s(e){let t=o.getFirstToken(e),r=o.getLastToken(e),i=o.getLastToken(e.callee);for(;i!==r&&!n(i);)i=o.getTokenAfter(i);return o.commentsExistBetween(t,i)}function c(e){let r=o.getLastToken(e);if(!t(r))return``;let i=e.callee;do if(i=o.getTokenAfter(i),!i||i===r)return``;while(!n(i));return o.text.slice(i.range[1],r.range[0])}function l(t){if(t.callee.type!==`Identifier`||t.callee.name!==`Array`||t.typeArguments||t.arguments.length===1&&t.arguments[0].type!==`SpreadElement`)return;let n=e(o.getScope(t),`Array`);if(n&&n.identifiers.length===0){let e=c(t),n,l,u=t.arguments.reduce((e,t)=>t.type===`SpreadElement`?e:e+1,0),d=t.optional||t.arguments.length>0&&u<2||s(t);r(t)&&i(o,t)?(n=`;[${e}]`,l=`useLiteralAfterSemicolon`):(n=`[${e}]`,l=`useLiteral`),a.report({node:t,messageId:`preferLiteral`,fix(e){return d?null:e.replaceText(t,n)},suggest:[{messageId:l,fix(e){return d?e.replaceText(t,n):null}}]})}}return{CallExpression:l,NewExpression:l}}},vf}var xf,Sf;function Cf(){return Sf||(Sf=1,xf={meta:{type:`problem`,docs:{description:`Disallow using an async function as a Promise executor`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-async-promise-executor`},fixable:null,schema:[],messages:{async:`Promise executor functions should not be async.`}},create(e){let t=e.sourceCode;return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(n){t.isGlobalReference(n.callee)&&e.report({node:t.getFirstToken(n.arguments[0],e=>e.value===`async`),messageId:`async`})}}}}),xf}var wf,Tf;function Ef(){if(Tf)return wf;Tf=1;function e(e){let t=e.type;return t===`FunctionDeclaration`||t===`FunctionExpression`||t===`ArrowFunctionExpression`||t===`ForOfStatement`&&e.await===!0}function t(e,t){switch(t.type){case`ForStatement`:return e===t.test||e===t.update||e===t.body;case`ForOfStatement`:case`ForInStatement`:return e===t.body||e===t.left&&e.kind===`await using`;case`WhileStatement`:case`DoWhileStatement`:return e===t.test||e===t.body;default:return!1}}return wf={meta:{type:`problem`,docs:{description:"Disallow `await` inside of loops",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-await-in-loop`},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(n){function r(r){if(r.type===`VariableDeclaration`&&r.kind!==`await using`||r.type===`ForOfStatement`&&!r.await)return;let i=r,a=i.parent;for(;a&&!e(a);){if(t(i,a)){n.report({node:r,messageId:`unexpectedAwait`});return}i=a,a=a.parent}}return{AwaitExpression:r,ForOfStatement:r,VariableDeclaration:r}}},wf}var Df,Of;function kf(){if(Of)return Df;Of=1;let e=[`^`,`|`,`&`,`<<`,`>>`,`>>>`,`^=`,`|=`,`&=`,`<<=`,`>>=`,`>>>=`,`~`];return Df={meta:{type:`suggestion`,defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:`Disallow bitwise operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-bitwise`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{enum:e},uniqueItems:!0},int32Hint:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Unexpected use of '{{operator}}'.`}},create(t){let[{allow:n,int32Hint:r}]=t.options;function i(e){t.report({node:e,messageId:`unexpected`,data:{operator:e.operator}})}function a(t){return e.includes(t.operator)}function o(e){return n.includes(e.operator)}function s(e){return r&&e.operator===`|`&&e.right&&e.right.type===`Literal`&&e.right.value===0}function c(e){a(e)&&!o(e)&&!s(e)&&i(e)}return{AssignmentExpression:c,BinaryExpression:c,UnaryExpression:c}}},Df}var Af,jf;function Mf(){return jf||(jf=1,Af={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-deprecated-api`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md`}}]},type:`problem`,docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-buffer-constructor`},schema:[],messages:{deprecated:`{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead.`}},create(e){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(t){e.report({node:t,messageId:`deprecated`,data:{expr:t.type===`CallExpression`?`Buffer()`:`new Buffer()`}})}}}}),Af}var Nf,Pf;function Ff(){return Pf||(Pf=1,Nf={meta:{type:`suggestion`,docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-caller`},schema:[],messages:{unexpected:`Avoid arguments.{{prop}}.`}},create(e){return{MemberExpression(t){let n=t.object.name,r=t.property.name;n===`arguments`&&!t.computed&&r&&r.match(/^calle[er]$/u)&&e.report({node:t,messageId:`unexpected`,data:{prop:r}})}}}}),Nf}var If,Lf;function Rf(){return Lf||(Lf=1,If={meta:{type:`suggestion`,docs:{description:`Disallow lexical declarations in case clauses`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-case-declarations`},hasSuggestions:!0,schema:[],messages:{addBrackets:`Add {} brackets around the case block.`,unexpected:`Unexpected lexical declaration in case block.`}},create(e){function t(e){switch(e.type){case`FunctionDeclaration`:case`ClassDeclaration`:return!0;case`VariableDeclaration`:return e.kind!==`var`;default:return!1}}return{SwitchCase(n){for(let r=0;r<n.consequent.length;r++){let i=n.consequent[r];t(i)&&e.report({node:i,messageId:`unexpected`,suggest:[{messageId:`addBrackets`,fix:e=>[e.insertTextBefore(n.consequent[0],`{ `),e.insertTextAfter(n.consequent.at(-1),` }`)]}]})}}}}}),If}var zf,Bf;function Vf(){if(Bf)return zf;Bf=1;let e=$();return zf={meta:{type:`suggestion`,docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-catch-shadow`},deprecated:{message:`This rule was renamed.`,url:`https://eslint.org/blog/2018/07/eslint-v5.1.0-released/`,deprecatedSince:`5.1.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-shadow`,url:`https://eslint.org/docs/rules/no-shadow`}}]},schema:[],messages:{mutable:`Value of '{{name}}' may be overwritten in IE 8 and earlier.`}},create(t){let n=t.sourceCode;function r(t,n){return e.getVariableByName(t,n)!==null}return{"CatchClause[param!=null]"(e){let i=n.getScope(e);i.block===e&&(i=i.upper),r(i,e.param.name)&&t.report({node:e,messageId:`mutable`,data:{name:e.param.name}})}}}},zf}var Hf,Uf;function Wf(){if(Uf)return Hf;Uf=1;let e=$();return Hf={meta:{type:`problem`,docs:{description:`Disallow reassigning class members`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-class-assign`},schema:[],messages:{class:`'{{name}}' is a class.`}},create(t){let n=t.sourceCode;function r(n){e.getModifyingReferences(n.references).forEach(e=>{t.report({node:e.identifier,messageId:`class`,data:{name:e.identifier.name}})})}function i(e){n.getDeclaredVariables(e).forEach(r)}return{ClassDeclaration:i,ClassExpression:i}}},Hf}var Gf,Kf;function qf(){if(Kf)return Gf;Kf=1;let{getVariableByName:e}=$();return Gf={meta:{type:`problem`,docs:{description:"Disallow comparing against `-0`",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-compare-neg-zero`},fixable:null,hasSuggestions:!0,schema:[],messages:{unexpected:`Do not use the '{{operator}}' operator to compare against -0.`,suggestRemoveMinus:`Replace '-0' with '0' (keeps the current comparison behavior).`,suggestObjectIs:`Replace with 'Object.is()' (changes the comparison to distinguish -0 from +0).`,suggestNotObjectIs:`Replace with '!Object.is()' (changes the comparison to distinguish -0 from +0).`}},create(t){let n=t.sourceCode;function r(e){return e.type===`UnaryExpression`&&e.operator===`-`&&e.argument.type===`Literal`&&e.argument.value===0}function i(e){let t=n.getText(e);return e.type===`SequenceExpression`?`(${t})`:t}let a=/* @__PURE__ */ new Set([`>`,`>=`,`<`,`<=`,`==`,`===`,`!=`,`!==`]);return{BinaryExpression(o){if(!a.has(o.operator))return;let s=r(o.left),c=r(o.right);(s||c)&&t.report({node:o,messageId:`unexpected`,data:{operator:o.operator},suggest:[{messageId:`suggestRemoveMinus`,*fix(e){s&&(yield e.replaceText(o.left,`0`)),c&&(yield e.replaceText(o.right,`0`))}},{messageId:o.operator===`===`?`suggestObjectIs`:`suggestNotObjectIs`,fix(t){if(o.operator!==`===`&&o.operator!==`!==`||n.getCommentsInside(o).length>0)return null;let r=e(n.getScope(o),`Object`);if(!r||r.identifiers.length>0)return null;let a=o.operator===`===`?``:`!`;return t.replaceText(o,`${a}Object.is(${i(o.left)}, ${i(o.right)})`)}}]})}}}},Gf}var Jf,Yf;function Xf(){if(Yf)return Jf;Yf=1;let e=$(),t=/* @__PURE__ */ new Set([`IfStatement`,`WhileStatement`,`DoWhileStatement`,`ForStatement`,`ConditionalExpression`]),n={DoWhileStatement:`a 'do...while' statement`,ForStatement:`a 'for' statement`,IfStatement:`an 'if' statement`,WhileStatement:`a 'while' statement`};return Jf={meta:{type:`problem`,defaultOptions:[`except-parens`],docs:{description:`Disallow assignment operators in conditional expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-cond-assign`},schema:[{enum:[`except-parens`,`always`]}],messages:{unexpected:`Unexpected assignment within {{type}}.`,missing:`Expected a conditional expression and instead saw an assignment.`}},create(r){let[i]=r.options,a=r.sourceCode;function o(e){return e.parent&&t.has(e.parent.type)&&e===e.parent.test}function s(t){let n=t;do if(o(n))return n.parent;while((n=n.parent)&&!e.isFunction(n));return null}function c(t){let n=a.getTokenBefore(t,1),r=a.getTokenAfter(t,1);return e.isParenthesised(a,t)&&n&&e.isOpeningParenToken(n)&&n.range[1]<=t.range[0]&&e.isClosingParenToken(r)&&r.range[0]>=t.range[1]}function l(t){t.test&&t.test.type===`AssignmentExpression`&&(t.type===`ForStatement`?!e.isParenthesised(a,t.test):!c(t.test))&&r.report({node:t.test,messageId:`missing`})}function u(e){let t=s(e);t&&r.report({node:e,messageId:`unexpected`,data:{type:n[t.type]||t.type}})}return i===`always`?{AssignmentExpression:u}:{DoWhileStatement:l,ForStatement:l,IfStatement:l,WhileStatement:l,ConditionalExpression:l}}},Jf}var Zf,Qf;function $f(){if(Qf)return Zf;Qf=1;let e=$();function t(e){return e&&e.type===`ConditionalExpression`}return Zf={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-confusing-arrow`,url:`https://eslint.style/rules/no-confusing-arrow`}}]},type:`suggestion`,docs:{description:`Disallow arrow functions where they could be confused with comparisons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-confusing-arrow`},fixable:`code`,schema:[{type:`object`,properties:{allowParens:{type:`boolean`,default:!0},onlyOneSimpleParam:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{confusing:`Arrow function used ambiguously with a conditional expression.`}},create(n){let r=n.options[0]||{},i=r.allowParens||r.allowParens===void 0,a=r.onlyOneSimpleParam,o=n.sourceCode;function s(r){let s=r.body;t(s)&&!(i&&e.isParenthesised(o,s))&&(!a||r.params.length===1&&r.params[0].type===`Identifier`)&&n.report({node:r,messageId:`confusing`,fix(e){return i&&e.replaceText(r.body,`(${o.getText(r.body)})`)}})}return{ArrowFunctionExpression:s}}},Zf}var ep,tp;function np(){if(tp)return ep;tp=1;let e=$();return ep={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-console`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:`Unexpected console statement.`,limited:`Unexpected console statement. Only these console methods are allowed: {{ allowed }}.`,removeConsole:`Remove the console.{{ propertyName }}().`,removeMethodCall:`Remove the console method call.`}},create(t){let[{allow:n=[]}]=t.options,r=t.sourceCode;function i(e){let t=e.identifier;return t&&t.name===`console`}function a(t){let r=e.getStaticPropertyName(t);return r&&n.includes(r)}function o(e){let t=e.identifier,n=t.parent;return n.type===`MemberExpression`&&n.object===t&&!a(n)}function s(e){let t=/^[:;{]$/u,n=/^[-[(/+`]/u,i=r.getTokenBefore(e),a=r.getTokenAfter(e);return!!a&&n.test(a.value)&&a.value!==`++`&&a.value!==`--`&&!!i&&!t.test(i.value)}function c(t){return t.parent.type===`CallExpression`&&t.parent.callee===t&&t.parent.parent.type===`ExpressionStatement`&&e.STATEMENT_LIST_PARENTS.has(t.parent.parent.parent.type)&&!s(t.parent.parent)}function l(e){let r=e.identifier.parent,i=[];if(c(r)){let e={fix(e){return e.remove(r.parent.parent)}};r.computed?e.messageId=`removeMethodCall`:(e.messageId=`removeConsole`,e.data={propertyName:r.property.name}),i.push(e)}t.report({node:r,loc:r.loc,messageId:n.length?`limited`:`unexpected`,data:{allowed:n.join(`, `)},suggest:i})}return{"Program:exit"(t){let n=r.getScope(t),a=e.getVariableByName(n,`console`),s=a&&a.defs.length>0,c=a?a.references:n.through.filter(i);s||c.filter(o).forEach(l)}}}},ep}var rp,ip;function ap(){if(ip)return rp;ip=1;let e=$(),t=/* @__PURE__ */ new Set([`const`,`using`,`await using`]);return rp={meta:{type:`problem`,docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-const-assign`},schema:[],messages:{const:`'{{name}}' is constant.`}},create(n){let r=n.sourceCode;function i(t){e.getModifyingReferences(t.references).forEach(e=>{n.report({node:e.identifier,messageId:`const`,data:{name:e.identifier.name}})})}return{VariableDeclaration(e){t.has(e.kind)&&r.getDeclaredVariables(e).forEach(i)}}}},rp}var op,sp;function cp(){if(sp)return op;sp=1;let{isNullLiteral:e,isConstant:t,isReferenceToGlobalVariable:n,isLogicalAssignmentOperator:r,ECMASCRIPT_GLOBALS:i}=$(),a=/* @__PURE__ */ new Set([`+`,`-`,`*`,`/`,`%`,`|`,`^`,`&`,`**`,`<<`,`>>`,`>>>`]),o=/* @__PURE__ */ new Set([`<`,`<=`,`>`,`>=`]);function s(t,r){return e(r)||r.type===`Identifier`&&r.name===`undefined`&&n(t,r)||r.type===`UnaryExpression`&&r.operator===`void`}function c(e,t,i){if(i&&s(e,t))return!1;switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:case`NewExpression`:case`Literal`:case`TemplateLiteral`:case`UpdateExpression`:case`BinaryExpression`:return!0;case`CallExpression`:{if(t.callee.type!==`Identifier`)return!1;let r=t.callee.name;return(r===`Boolean`||r===`String`||r===`Number`||r===`Symbol`||r===`BigInt`)&&n(e,t.callee)}case`LogicalExpression`:return t.operator===`??`&&c(e,t.right,!0);case`AssignmentExpression`:return t.operator===`=`?c(e,t.right,i):!r(t.operator);case`UnaryExpression`:return!0;case`SequenceExpression`:return c(e,t.expressions.at(-1),i);case`Identifier`:return t.name===`undefined`&&n(e,t);case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function l(e,r){switch(r.type){case`Literal`:return typeof r.value==`boolean`;case`CallExpression`:return r.callee.type===`Identifier`&&r.callee.name===`Boolean`&&n(e,r.callee)&&(r.arguments.length===0||t(e,r.arguments[0],!0));case`UnaryExpression`:return r.operator===`!`&&t(e,r.argument,!0);default:return!1}}function u(e,r){switch(r.type){case`ObjectExpression`:case`ClassExpression`:return!0;case`ArrayExpression`:{let e=r.elements.filter(e=>e!==null&&e.type!==`SpreadElement`);return r.elements.length===0||e.length>1}case`ArrowFunctionExpression`:case`FunctionExpression`:return!0;case`UnaryExpression`:return r.operator===`void`||r.operator===`typeof`||r.operator===`!`&&t(e,r.argument,!0);case`NewExpression`:return!1;case`CallExpression`:return r.callee.type===`Identifier`&&r.callee.name===`Boolean`&&n(e,r.callee)?r.arguments.length===0||t(e,r.arguments[0],!0):!1;case`Literal`:return!0;case`Identifier`:return r.name===`undefined`&&n(e,r);case`TemplateLiteral`:return r.expressions.length===0;case`AssignmentExpression`:return r.operator===`=`&&u(e,r.right);case`SequenceExpression`:return u(e,r.expressions.at(-1));case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function d(e,i){switch(i.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:case`NewExpression`:case`TemplateLiteral`:case`Literal`:case`UpdateExpression`:return!0;case`BinaryExpression`:return a.has(i.operator);case`UnaryExpression`:return i.operator===`delete`?!1:i.operator!==`!`||t(e,i.argument,!0);case`SequenceExpression`:return d(e,i.expressions.at(-1));case`Identifier`:return i.name===`undefined`&&n(e,i);case`AssignmentExpression`:return i.operator===`=`?d(e,i.right):!r(i.operator);case`CallExpression`:{if(i.callee.type!==`Identifier`)return!1;let r=i.callee.name;return(r===`String`||r===`Number`||r===`BigInt`||r===`Symbol`)&&n(e,i.callee)?!0:r===`Boolean`&&n(e,i.callee)?i.arguments.length===0||t(e,i.arguments[0],!0):!1}case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function f(e,t){switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:return!0;case`NewExpression`:return t.callee.type===`Identifier`&&Object.hasOwn(i,t.callee.name)&&n(e,t.callee);case`Literal`:return typeof t.regex==`object`;case`SequenceExpression`:return f(e,t.expressions.at(-1));case`AssignmentExpression`:return t.operator===`=`&&f(e,t.right);case`ConditionalExpression`:return f(e,t.consequent)&&f(e,t.alternate);case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function p(e,t,n,r){if(r===`==`||r===`!=`){if(s(e,t)&&c(e,n,!1)||l(e,t)&&u(e,n))return n}else if((r===`===`||r===`!==`)&&(s(e,t)&&c(e,n,!1)||l(e,t)&&d(e,n)))return n;return null}function m(e,t){switch(t.type){case`Literal`:return!0;case`UnaryExpression`:return[`-`,`+`,`~`].includes(t.operator)&&t.argument.type===`Literal`;case`Identifier`:return t.name===`undefined`&&n(e,t);case`TemplateLiteral`:return t.expressions.length===0;default:return!1}}return op={meta:{type:`problem`,docs:{description:`Disallow expressions where the operation doesn't affect the value`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-constant-binary-expression`},defaultOptions:[{checkRelationalComparisons:!1}],schema:[{type:`object`,properties:{checkRelationalComparisons:{type:`boolean`}},additionalProperties:!1}],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:`Unexpected comparison to newly constructed object. These two values can never be equal.`,bothAlwaysNew:`Unexpected comparison of two newly constructed objects. These two values can never be equal.`,constantRelationalComparison:"Unexpected constant relational comparison. Both sides of the `{{operator}}` are literal values."}},create(e){let n=e.sourceCode,{checkRelationalComparisons:r}=e.options[0];return{LogicalExpression(r){let{operator:i,left:a}=r,o=n.getScope(r);(i===`&&`||i===`||`)&&t(o,a,!0)?e.report({node:a,messageId:`constantShortCircuit`,data:{property:`truthiness`,operator:i}}):i===`??`&&c(o,a,!1)&&e.report({node:a,messageId:`constantShortCircuit`,data:{property:`nullishness`,operator:i}})},BinaryExpression(t){let i=n.getScope(t),{right:a,left:s,operator:c}=t,l=p(i,s,a,c),u=p(i,a,s,c);l?e.report({node:l,messageId:`constantBinaryOperand`,data:{operator:c,otherSide:`left`}}):u?e.report({node:u,messageId:`constantBinaryOperand`,data:{operator:c,otherSide:`right`}}):c===`===`||c===`!==`?f(i,s)?e.report({node:s,messageId:`alwaysNew`}):f(i,a)&&e.report({node:a,messageId:`alwaysNew`}):c===`==`||c===`!=`?f(i,s)&&f(i,a)&&e.report({node:s,messageId:`bothAlwaysNew`}):r&&o.has(c)&&m(i,s)&&m(i,a)&&e.report({node:t,messageId:`constantRelationalComparison`,data:{operator:c}})}}}},op}var lp,up;function dp(){if(up)return lp;up=1;let{isConstant:e}=$();return lp={meta:{type:`problem`,defaultOptions:[{checkLoops:`allExceptWhileTrue`}],docs:{description:`Disallow constant expressions in conditions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-constant-condition`},schema:[{type:`object`,properties:{checkLoops:{enum:[`all`,`allExceptWhileTrue`,`none`,!0,!1]}},additionalProperties:!1}],messages:{unexpected:`Unexpected constant condition.`}},create(t){let n=[],r=t.sourceCode,[{checkLoops:i}]=t.options;i===!0?i=`all`:i===!1&&(i=`none`);let a=/* @__PURE__ */ new Set;function o(t){t.test&&e(r.getScope(t),t.test,!0)&&a.add(t)}function s(e){a.has(e)&&(a.delete(e),t.report({node:e.test,messageId:`unexpected`}))}function c(n){n.test&&e(r.getScope(n),n.test,!0)&&t.report({node:n.test,messageId:`unexpected`})}function l(){n.push(a),a=/* @__PURE__ */ new Set}function u(){a=n.pop()}function d(e){(i===`all`||i===`allExceptWhileTrue`)&&o(e)}return{ConditionalExpression:c,IfStatement:c,WhileStatement(e){(e.test.type!==`Literal`||e.test.value!==!0||i!==`allExceptWhileTrue`)&&d(e)},"WhileStatement:exit":s,DoWhileStatement:d,"DoWhileStatement:exit":s,ForStatement:d,"ForStatement > .test":e=>d(e.parent),"ForStatement:exit":s,FunctionDeclaration:l,"FunctionDeclaration:exit":u,FunctionExpression:l,"FunctionExpression:exit":u,YieldExpression:()=>a.clear()}}},lp}var fp,pp;function mp(){return pp||(pp=1,fp={meta:{type:`problem`,docs:{description:`Disallow returning value from constructor`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-constructor-return`},schema:[],fixable:null,messages:{unexpected:`Unexpected return statement in constructor.`}},create(e){let t=[];return{onCodePathStart(e,n){t.push(n)},onCodePathEnd(){t.pop()},ReturnStatement(n){let r=t.at(-1);r.parent&&r.parent.type===`MethodDefinition`&&r.parent.kind===`constructor`&&n.argument&&e.report({node:n,messageId:`unexpected`})}}}}),fp}var hp,gp;function _p(){return gp||(gp=1,hp={meta:{type:`suggestion`,docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-continue`},schema:[],messages:{unexpected:`Unexpected use of continue statement.`}},create(e){return{ContinueStatement(t){e.report({node:t,messageId:`unexpected`})}}}}),hp}var vp={},yp;function bp(){if(yp)return vp;yp=1,Object.defineProperty(vp,"__esModule",{value:!0});var e=/*#__PURE__*/ Object.freeze({__proto__:null});let t=2025,n,r;function i(e){return e<65?!1:e<91?!0:e<97?!1:e<123||o(e)}function a(e){return e<48?!1:e<58?!0:e<65?!1:e<91||e===95?!0:e<97?!1:e<123||o(e)||s(e)}function o(e){return u(e,n??=c())}function s(e){return u(e,r??=l())}function c(){return d(`4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 6 h 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 2 1 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 v 2 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 29 l g 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 7 p 13 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 5 1l s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 o 17 79 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r x o 3 o 19 22 6 0 1v c 1t 1 2 0 f 4 a 5p1 16 v 2q 36 6pq 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 5s u 2 2 2 1 2 6 3 4 a 1 69 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 3dp 3 4gd 3 5rk g h9 1wj f1 15v 3t6 6 6jt`)}function l(){return d(`53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 u 3 b l 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 26 5 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 5j 7 3t 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 1j 9 7e 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 6h 0 3 0 8 1 6 0 d7 6 32 6 6 9 3o7 9 gvt3 6n`)}function u(e,t){let n=0,r=t.length/2|0,i=0,a=0,o=0;for(;n<r;)if(i=(n+r)/2|0,a=t[2*i],o=t[2*i+1],e<a)r=i;else if(e>o)n=i+1;else return!0;return!1}function d(e){let t=0;return e.split(` `).map(e=>t+=parseInt(e,36)|0)}class f{constructor(e,t,n,r,i,a,o,s,c){this._raw2018=e,this._raw2019=t,this._raw2020=n,this._raw2021=r,this._raw2022=i,this._raw2023=a,this._raw2024=o,this._raw2025=s,this._raw2026=c}get es2018(){return this._set2018??=new Set(this._raw2018.split(` `))}get es2019(){return this._set2019??=new Set(this._raw2019.split(` `))}get es2020(){return this._set2020??=new Set(this._raw2020.split(` `))}get es2021(){return this._set2021??=new Set(this._raw2021.split(` `))}get es2022(){return this._set2022??=new Set(this._raw2022.split(` `))}get es2023(){return this._set2023??=new Set(this._raw2023.split(` `))}get es2024(){return this._set2024??=new Set(this._raw2024.split(` `))}get es2025(){return this._set2025??=new Set(this._raw2025.split(` `))}get es2026(){return this._set2026??=new Set(this._raw2026.split(` `))}}let p=/* @__PURE__ */ new Set([`General_Category`,`gc`]),m=/* @__PURE__ */ new Set([`Script`,`Script_Extensions`,`sc`,`scx`]),h=new f(`C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct`,``,``,``,``,``,``,``,``),g=new f(`Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy`,`Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo`,`Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho`,`Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,`Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi`,`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,``,``,``),_=new f(`AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space`,`Extended_Pictographic`,``,`EBase EComp EMod EPres ExtPict`,``,``,``,``,``),v=new f(``,``,``,``,``,``,`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence`,``,``);function y(e,t,n){return p.has(t)?e>=2018&&h.es2018.has(n):m.has(t)?e>=2018&&g.es2018.has(n)||e>=2019&&g.es2019.has(n)||e>=2020&&g.es2020.has(n)||e>=2021&&g.es2021.has(n)||e>=2022&&g.es2022.has(n)||e>=2023&&g.es2023.has(n):!1}function b(e,t){return e>=2018&&_.es2018.has(t)||e>=2019&&_.es2019.has(t)||e>=2021&&_.es2021.has(t)}function x(e,t){return e>=2024&&v.es2024.has(t)}function S(e){return e>=65&&e<=90||e>=97&&e<=122}function C(e){return e>=48&&e<=57}function w(e){return e>=48&&e<=55}function T(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function E(e){return e===10||e===13||e===8232||e===8233}function D(e){return e>=0&&e<=1114111}function O(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function k(e){return e>=55296&&e<=56319}function A(e){return e>=56320&&e<=57343}function j(e,t){return(e-55296)*1024+(t-56320)+65536}class M{constructor(){this.groupName=/* @__PURE__ */ new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class N{constructor(e,t){this.parent=e,this.base=t??this}separatedFrom(e){return this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent)?!0:this.parent?.separatedFrom(e)??!1}child(){return new N(this,null)}sibling(){return new N(this.parent,this.base)}}class P{constructor(){this.branchID=new N(null,null),this.groupNames=/* @__PURE__ */ new Map}clear(){this.branchID=new N(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){e!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);t?t.push(this.branchID):this.groupNames.set(e,[this.branchID])}}let F={at(e,t,n){return n<t?e.charCodeAt(n):-1},width(e){return 1}},I={at(e,t,n){return n<t?e.codePointAt(n):-1},width(e){return e>65535?2:1}};class ee{constructor(){this._impl=F,this._s=``,this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,n,r){this._impl=r?I:F,this._s=e,this._end=n,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,n){return this._cp1===e&&this._cp2===t&&this._cp3===n&&(this.advance(),this.advance(),this.advance(),!0)}}class L extends SyntaxError{constructor(e,t){super(e),this.index=t}}function R(e,t,n,r){let i=``;if(e.kind===`literal`){let t=e.source.slice(e.start,e.end);t&&(i=`: ${t}`)}else e.kind===`pattern`&&(i=`: /${e.source.slice(e.start,e.end)}/${`${t.unicode?`u`:``}${t.unicodeSets?`v`:``}`}`);return new L(`Invalid regular expression${i}: ${r}`,n)}let te=/* @__PURE__ */ new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),z=/* @__PURE__ */ new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),ne=/* @__PURE__ */ new Set([40,41,91,93,123,125,47,45,92,124]),re=/* @__PURE__ */ new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),B={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},V=Object.fromEntries(Object.entries(B).map(([e,t])=>[t,e]));function ie(e){return te.has(e)}function ae(e){return z.has(e)}function oe(e){return ne.has(e)}function H(e){return re.has(e)}function se(e){return i(e)||e===36||e===95}function ce(e){return a(e)||e===36||e===8204||e===8205}function le(e){return S(e)||e===95}function ue(e){return le(e)||C(e)}function de(e){return e===105||e===109||e===115}class U{constructor(e){this._reader=new ee,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:1/0},this._lastStrValue=``,this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=/* @__PURE__ */ new Set,this._srcCtx=null,this._options=e??{},this._groupSpecifiers=this.ecmaVersion>=2025?new P:new M}validateLiteral(e,t=0,n=e.length){if(this._srcCtx={source:e,start:t,end:n,kind:`literal`},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,n),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let r=this.index,i=e.includes(`u`,r),a=e.includes(`v`,r);this.validateFlagsInternal(e,r,n),this.validatePatternInternal(e,t+1,r-1,{unicode:i,unicodeSets:a})}else if(t>=n)this.raise(`Empty`);else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,n)}validateFlags(e,t=0,n=e.length){this._srcCtx={source:e,start:t,end:n,kind:`flags`},this.validateFlagsInternal(e,t,n)}validatePattern(e,t=0,n=e.length,r=void 0){this._srcCtx={source:e,start:t,end:n,kind:`pattern`},this.validatePatternInternal(e,t,n,r)}validatePatternInternal(e,t=0,n=e.length,r=void 0){let i=this._parseFlagsOptionToMode(r,n);this._unicodeMode=i.unicodeMode,this._nFlag=i.nFlag,this._unicodeSetsMode=i.unicodeSetsMode,this.reset(e,t,n),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,n){let r=this.parseFlags(e,t,n);this.onRegExpFlags(t,n,r)}_parseFlagsOptionToMode(e,t){let n=!1,r=!1;return e&&this.ecmaVersion>=2015&&(typeof e==`object`?(n=!!e.unicode,this.ecmaVersion>=2024&&(r=!!e.unicodeSets)):n=e),n&&r&&this.raise(`Invalid regular expression flags`,{index:t+1,unicode:n,unicodeSets:r}),{unicodeMode:n||r,nFlag:n&&this.ecmaVersion>=2018||r||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:r}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){return this._options.ecmaVersion??t}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,n){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,n),this._options.onFlags&&this._options.onFlags(e,t,n.global,n.ignoreCase,n.multiline,n.unicode,n.sticky,n.dotAll,n.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,n){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,n)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onModifiersEnter(e){this._options.onModifiersEnter&&this._options.onModifiersEnter(e)}onModifiersLeave(e,t){this._options.onModifiersLeave&&this._options.onModifiersLeave(e,t)}onAddModifiers(e,t,n){this._options.onAddModifiers&&this._options.onAddModifiers(e,t,n)}onRemoveModifiers(e,t,n){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(e,t,n)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,n){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,n)}onQuantifier(e,t,n,r,i){this._options.onQuantifier&&this._options.onQuantifier(e,t,n,r,i)}onLookaroundAssertionEnter(e,t,n){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,n)}onLookaroundAssertionLeave(e,t,n,r){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,n,r)}onEdgeAssertion(e,t,n){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,n)}onWordBoundaryAssertion(e,t,n,r){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,n,r)}onAnyCharacterSet(e,t,n){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,n)}onEscapeCharacterSet(e,t,n,r){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,n,r)}onUnicodePropertyCharacterSet(e,t,n,r,i,a,o){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,n,r,i,a,o)}onCharacter(e,t,n){this._options.onCharacter&&this._options.onCharacter(e,t,n)}onBackreference(e,t,n){this._options.onBackreference&&this._options.onBackreference(e,t,n)}onCharacterClassEnter(e,t,n){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,n)}onCharacterClassLeave(e,t,n){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,n)}onCharacterClassRange(e,t,n,r){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,n,r)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,n){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,n)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,n){this._reader.reset(e,t,n,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,n){return this._reader.eat3(e,t,n)}raise(e,t){throw R(this._srcCtx,{unicode:t?.unicode??(this._unicodeMode&&!this._unicodeSetsMode),unicodeSets:t?.unicodeSets??this._unicodeSetsMode},t?.index??this.index,e)}eatRegExpBody(){let e=this.index,t=!1,n=!1;for(;;){let r=this.currentCodePoint;if(r===-1||E(r)){let e=t?`character class`:`regular expression`;this.raise(`Unterminated ${e}`)}if(n)n=!1;else if(r===92)n=!0;else if(r===91)t=!0;else if(r===93)t=!1;else if(r===47&&!t||r===42&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(this.currentCodePoint!==-1){t===41&&this.raise(`Unmatched ')'`),t===92&&this.raise(`\\ at end of pattern`),(t===93||t===125)&&this.raise(`Lone quantifier brackets`);let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise(`Invalid named capture referenced`);this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,n=!1,r=0,i=0;for(;(i=this.currentCodePoint)!==-1;)n?n=!1:i===92?n=!0:i===91?t=!0:i===93?t=!1:i===40&&!t&&(this.nextCodePoint!==63||this.nextCodePoint2===60&&this.nextCodePoint3!==61&&this.nextCodePoint3!==33)&&(r+=1),this.advance();return this.rewind(e),r}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise(`Nothing to repeat`),this.eat(123)&&this.raise(`Lone quantifier brackets`),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,`start`),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,`end`),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,`word`,!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,`word`,!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),n=!1;if(this.eat(61)||(n=this.eat(33))){let r=t?`lookbehind`:`lookahead`;return this.onLookaroundAssertionEnter(e,r,n),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,r,n),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,n=0,r=0,i=!1;if(this.eat(42))n=0,r=1/0;else if(this.eat(43))n=1,r=1/0;else if(this.eat(63))n=0,r=1;else if(this.eatBracedQuantifier(e))({min:n,max:r}=this._lastRange);else return!1;return i=!this.eat(63),e||this.onQuantifier(t,this.index,n,r,i),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,n=t;if(this.eat(44)&&(n=this.eatDecimalDigits()?this._lastIntValue:1/0),this.eat(125))return!e&&n<t&&this.raise(`numbers out of order in {} quantifier`),this._lastRange={min:t,max:n},!0}!e&&(this._unicodeMode||this.strict)&&this.raise(`Incomplete quantifier`),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(46)?(this.onAnyCharacterSet(this.index-1,this.index,`any`),!0):!1}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return this.eat2(40,63)?(this.onGroupEnter(e),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(58)||(this.rewind(e+1),this.raise(`Invalid group`)),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this.onGroupLeave(e,this.index),!0):!1}consumeModifiers(){let e=this.index,t=this.eatModifiers(),n=this.index,r=this.eat(45);if(!t&&!r)return!1;this.onModifiersEnter(e);let i=this.parseModifiers(e,n);if(this.onAddModifiers(e,n,i),r){let e=this.index;!this.eatModifiers()&&!t&&this.currentCodePoint===58&&this.raise(`Invalid empty flags`);let n=this.parseModifiers(e,this.index);for(let[e]of Object.entries(n).filter(([,e])=>e))i[e]&&this.raise(`Duplicated flag '${String.fromCodePoint(B[e])}'`);this.onRemoveModifiers(e,this.index,n)}return this.onModifiersLeave(e,this.index),!0}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())t=this._lastStrValue;else if(this.currentCodePoint===63)return this.rewind(e),!1}else if(this.currentCodePoint===63)return this.rewind(e),!1;return this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return this.currentCodePoint===92&&this.nextCodePoint===99&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise(`Nothing to repeat`),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return t!==-1&&!ie(t)&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return t!==-1&&t!==94&&t!==36&&t!==92&&t!==46&&t!==42&&t!==43&&t!==63&&t!==40&&t!==41&&t!==91&&t!==124&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){let e=this.index;if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise(`Duplicate capture group name`)}this.rewind(e)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}consumeCharacterClassEscape(){let e=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`digit`,!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`digit`,!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`space`,!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`space`,!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`word`,!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`word`,!0),{};let t=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(t=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return t&&n.strings&&this.raise(`Invalid property name`),this.onUnicodePropertyCharacterSet(e-1,this.index,`property`,n.key,n.value,t,n.strings??!1),{mayContainStrings:n.strings};this.raise(`Invalid property name`)}return null}consumeCharacterEscape(){let e=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(e-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise(`Invalid named reference`)}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let n=this.consumeClassContents();return this.eat(93)||(this.currentCodePoint===-1&&this.raise(`Unterminated character class`),this.raise(`Invalid character in character class`)),t&&n.mayContainStrings&&this.raise(`Negated character class may contain strings`),this.onCharacterClassLeave(e,this.index,t),n}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===93?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let n=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let r=this._lastIntValue;n===-1||r===-1?e&&this.raise(`Invalid character class`):(n>r&&this.raise(`Range out of order in character class`),this.onCharacterClassRange(t,this.index,n,r))}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(t!==-1&&t!==92&&t!==93)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===99)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===99&&(C(t=this.nextCodePoint)||t===95)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,n=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(n=this.consumeClassSetOperand())t=n.mayContainStrings;else{let e=this.currentCodePoint;e===92&&(this.advance(),this.raise(`Invalid escape`)),e===this.nextCodePoint&&ae(e)&&this.raise(`Invalid set operation in character class`),this.raise(`Invalid character in character class`)}if(this.eat2(38,38)){for(;this.currentCodePoint!==38&&(n=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),n.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise(`Invalid character in character class`)}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise(`Invalid character in character class`)}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let n=this.consumeClassSetOperand();if(n)n.mayContainStrings&&(t=!0);else break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,n=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(n===-1||t===-1)&&this.raise(`Invalid character class`),n>t&&this.raise(`Range out of order in character class`),this.onCharacterClassRange(e,this.index,n,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let n=this.consumeClassContents();return this.eat(93)||this.raise(`Unterminated character class`),t&&n.mayContainStrings&&this.raise(`Negated character class may contain strings`),this.onCharacterClassLeave(e,this.index,t),n}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,n=!1;do this.consumeClassString(t++).mayContainStrings&&(n=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:n};this.raise(`Unterminated class string disjunction`)}return null}consumeClassString(e){let t=this.index,n=0;for(this.onStringAlternativeEnter(t,e);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)n++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:n!==1}}consumeClassSetCharacter(){let e=this.index,t=this.currentCodePoint;if((t!==this.nextCodePoint||!ae(t))&&t!==-1&&!oe(t))return this._lastIntValue=t,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(H(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e,this.index,this._lastIntValue),!0;this.rewind(e)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise(`Invalid capture group name`)}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let e=this.index,t=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===92&&this.eatRegExpUnicodeEscapeSequence(t)?n=this._lastIntValue:t&&k(n)&&A(this.currentCodePoint)&&(n=j(n,this.currentCodePoint),this.advance()),se(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){let e=this.index,t=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===92&&this.eatRegExpUnicodeEscapeSequence(t)?n=this._lastIntValue:t&&k(n)&&A(this.currentCodePoint)&&(n=j(n,this.currentCodePoint),this.advance()),ce(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===48&&!C(this.nextCodePoint)&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):this.eat(118)?(this._lastIntValue=11,!0):!1}eatControlLetter(){let e=this.currentCodePoint;return S(e)?(this.advance(),this._lastIntValue=e%32,!0):!1}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,n=e||this._unicodeMode;if(this.eat(117)){if(n&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||n&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||n)&&this.raise(`Invalid unicode escape`),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(k(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(A(e))return this._lastIntValue=j(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){let e=this.index;return this.eat(123)&&this.eatHexDigits()&&this.eat(125)&&D(this._lastIntValue)?!0:(this.rewind(e),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return this.isValidIdentityEscape(e)?(this._lastIntValue=e,this.advance(),!0):!1}isValidIdentityEscape(e){return e===-1?!1:this._unicodeMode?ie(e)||e===47:this.strict?!a(e):this._nFlag?e!==99&&e!==107:e!==99}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(y(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise(`Invalid property name`)}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){let e=this._lastStrValue;if(y(this.ecmaVersion,`General_Category`,e))return{key:`General_Category`,value:e||null};if(b(this.ecmaVersion,e))return{key:e,value:null};if(this._unicodeSetsMode&&x(this.ecmaVersion,e))return{key:e,value:null,strings:!0};this.raise(`Invalid property name`)}return null}eatUnicodePropertyName(){for(this._lastStrValue=``;le(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==``}eatUnicodePropertyValue(){for(this._lastStrValue=``;ue(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==``}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;C(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+O(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;T(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+O(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;this._lastIntValue=e<=3&&this.eatOctalDigit()?e*64+t*8+this._lastIntValue:e*8+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return w(e)?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let n=0;n<e;++n){let e=this.currentCodePoint;if(!T(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+O(e),this.advance()}return!0}eatModifiers(){let e=!1;for(;de(this.currentCodePoint);)this.advance(),e=!0;return e}parseModifiers(e,t){let{ignoreCase:n,multiline:r,dotAll:i}=this.parseFlags(this._reader.source,e,t);return{ignoreCase:n,multiline:r,dotAll:i}}parseFlags(e,t,n){let r={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},i=/* @__PURE__ */ new Set;i.add(103),i.add(105),i.add(109),this.ecmaVersion>=2015&&(i.add(117),i.add(121),this.ecmaVersion>=2018&&(i.add(115),this.ecmaVersion>=2022&&(i.add(100),this.ecmaVersion>=2024&&i.add(118))));for(let a=t;a<n;++a){let n=e.charCodeAt(a);if(i.has(n)){let i=V[n];r[i]&&this.raise(`Duplicated flag '${e[a]}'`,{index:t}),r[i]=!0}else this.raise(`Invalid flag '${e[a]}'`,{index:t})}return r}}let fe={},pe={},me={};function he(e){return e.type===`Character`||e.type===`CharacterSet`||e.type===`CharacterClass`||e.type===`ExpressionCharacterClass`||e.type===`ClassStringDisjunction`}class ge{constructor(e){this._node=fe,this._expressionBufferMap=/* @__PURE__ */ new Map,this._flags=pe,this._backreferences=[],this._capturingGroups=[],this.source=``,this.strict=!!e?.strict,this.ecmaVersion=e?.ecmaVersion??t}get pattern(){if(this._node.type!==`Pattern`)throw Error(`UnknownError`);return this._node}get flags(){if(this._flags.type!==`Flags`)throw Error(`UnknownError`);return this._flags}onRegExpFlags(e,t,{global:n,ignoreCase:r,multiline:i,unicode:a,sticky:o,dotAll:s,hasIndices:c,unicodeSets:l}){this._flags={type:`Flags`,parent:null,start:e,end:t,raw:this.source.slice(e,t),global:n,ignoreCase:r,multiline:i,unicode:a,sticky:o,dotAll:s,hasIndices:c,unicodeSets:l}}onPatternEnter(e){this._node={type:`Pattern`,parent:null,start:e,end:e,raw:``,alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){this._node.end=t,this._node.raw=this.source.slice(e,t);for(let e of this._backreferences){let t=e.ref,n=typeof t==`number`?[this._capturingGroups[t-1]]:this._capturingGroups.filter(e=>e.name===t);if(n.length===1){let t=n[0];e.ambiguous=!1,e.resolved=t}else e.ambiguous=!0,e.resolved=n;for(let t of n)t.references.push(e)}}onAlternativeEnter(e){let t=this._node;if(t.type!==`Assertion`&&t.type!==`CapturingGroup`&&t.type!==`Group`&&t.type!==`Pattern`)throw Error(`UnknownError`);this._node={type:`Alternative`,parent:t,start:e,end:e,raw:``,elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let n=this._node;if(n.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onGroupEnter(e){let t=this._node;if(t.type!==`Alternative`)throw Error(`UnknownError`);let n={type:`Group`,parent:t,start:e,end:e,raw:``,modifiers:null,alternatives:[]};this._node=n,t.elements.push(this._node)}onGroupLeave(e,t){let n=this._node;if(n.type!==`Group`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onModifiersEnter(e){let t=this._node;if(t.type!==`Group`)throw Error(`UnknownError`);this._node={type:`Modifiers`,parent:t,start:e,end:e,raw:``,add:null,remove:null},t.modifiers=this._node}onModifiersLeave(e,t){let n=this._node;if(n.type!==`Modifiers`||n.parent.type!==`Group`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onAddModifiers(e,t,{ignoreCase:n,multiline:r,dotAll:i}){let a=this._node;if(a.type!==`Modifiers`)throw Error(`UnknownError`);a.add={type:`ModifierFlags`,parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:n,multiline:r,dotAll:i}}onRemoveModifiers(e,t,{ignoreCase:n,multiline:r,dotAll:i}){let a=this._node;if(a.type!==`Modifiers`)throw Error(`UnknownError`);a.remove={type:`ModifierFlags`,parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:n,multiline:r,dotAll:i}}onCapturingGroupEnter(e,t){let n=this._node;if(n.type!==`Alternative`)throw Error(`UnknownError`);this._node={type:`CapturingGroup`,parent:n,start:e,end:e,raw:``,name:t,alternatives:[],references:[]},n.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let n=this._node;if(n.type!==`CapturingGroup`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onQuantifier(e,t,n,r,i){let a=this._node;if(a.type!==`Alternative`)throw Error(`UnknownError`);let o=a.elements.pop();if(o==null||o.type===`Quantifier`||o.type===`Assertion`&&o.kind!==`lookahead`)throw Error(`UnknownError`);let s={type:`Quantifier`,parent:a,start:o.start,end:t,raw:this.source.slice(o.start,t),min:n,max:r,greedy:i,element:o};a.elements.push(s),o.parent=s}onLookaroundAssertionEnter(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);let i=this._node={type:`Assertion`,parent:r,start:e,end:e,raw:``,kind:t,negate:n,alternatives:[]};r.elements.push(i)}onLookaroundAssertionLeave(e,t){let n=this._node;if(n.type!==`Assertion`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onEdgeAssertion(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);r.elements.push({type:`Assertion`,parent:r,start:e,end:t,raw:this.source.slice(e,t),kind:n})}onWordBoundaryAssertion(e,t,n,r){let i=this._node;if(i.type!==`Alternative`)throw Error(`UnknownError`);i.elements.push({type:`Assertion`,parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:n,negate:r})}onAnyCharacterSet(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);r.elements.push({type:`CharacterSet`,parent:r,start:e,end:t,raw:this.source.slice(e,t),kind:n})}onEscapeCharacterSet(e,t,n,r){let i=this._node;if(i.type!==`Alternative`&&i.type!==`CharacterClass`)throw Error(`UnknownError`);i.elements.push({type:`CharacterSet`,parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:n,negate:r})}onUnicodePropertyCharacterSet(e,t,n,r,i,a,o){let s=this._node;if(s.type!==`Alternative`&&s.type!==`CharacterClass`)throw Error(`UnknownError`);let c={type:`CharacterSet`,parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:n,strings:null,key:r};if(o){if(s.type===`CharacterClass`&&!s.unicodeSets||a||i!==null)throw Error(`UnknownError`);s.elements.push(Object.assign(Object.assign({},c),{parent:s,strings:o,value:i,negate:a}))}else s.elements.push(Object.assign(Object.assign({},c),{parent:s,strings:o,value:i,negate:a}))}onCharacter(e,t,n){let r=this._node;if(r.type!==`Alternative`&&r.type!==`CharacterClass`&&r.type!==`StringAlternative`)throw Error(`UnknownError`);r.elements.push({type:`Character`,parent:r,start:e,end:t,raw:this.source.slice(e,t),value:n})}onBackreference(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);let i={type:`Backreference`,parent:r,start:e,end:t,raw:this.source.slice(e,t),ref:n,ambiguous:!1,resolved:me};r.elements.push(i),this._backreferences.push(i)}onCharacterClassEnter(e,t,n){let r=this._node,i={type:`CharacterClass`,parent:r,start:e,end:e,raw:``,unicodeSets:n,negate:t,elements:[]};if(r.type===`Alternative`){let e=Object.assign(Object.assign({},i),{parent:r});this._node=e,r.elements.push(e)}else if(r.type===`CharacterClass`&&r.unicodeSets&&n){let e=Object.assign(Object.assign({},i),{parent:r,unicodeSets:n});this._node=e,r.elements.push(e)}else throw Error(`UnknownError`)}onCharacterClassLeave(e,t){let n=this._node;if(n.type!==`CharacterClass`||n.parent.type!==`Alternative`&&n.parent.type!==`CharacterClass`)throw Error(`UnknownError`);let r=n.parent;n.end=t,n.raw=this.source.slice(e,t),this._node=r;let i=this._expressionBufferMap.get(n);if(!i)return;if(n.elements.length>0)throw Error(`UnknownError`);this._expressionBufferMap.delete(n);let a={type:`ExpressionCharacterClass`,parent:r,start:n.start,end:n.end,raw:n.raw,negate:n.negate,expression:i};if(i.parent=a,n!==r.elements.pop())throw Error(`UnknownError`);r.elements.push(a)}onCharacterClassRange(e,t){let n=this._node;if(n.type!==`CharacterClass`)throw Error(`UnknownError`);let r=n.elements,i=r.pop();if(!i||i.type!==`Character`)throw Error(`UnknownError`);if(!n.unicodeSets){let e=r.pop();if(!e||e.type!==`Character`||e.value!==45)throw Error(`UnknownError`)}let a=r.pop();if(!a||a.type!==`Character`)throw Error(`UnknownError`);let o={type:`CharacterClassRange`,parent:n,start:e,end:t,raw:this.source.slice(e,t),min:a,max:i};a.parent=o,i.parent=o,r.push(o)}onClassIntersection(e,t){let n=this._node;if(n.type!==`CharacterClass`||!n.unicodeSets)throw Error(`UnknownError`);let r=n.elements.pop(),i=this._expressionBufferMap.get(n)??n.elements.pop();if(!i||!r||i.type===`ClassSubtraction`||i.type!==`ClassIntersection`&&!he(i)||!he(r))throw Error(`UnknownError`);let a={type:`ClassIntersection`,parent:n,start:e,end:t,raw:this.source.slice(e,t),left:i,right:r};i.parent=a,r.parent=a,this._expressionBufferMap.set(n,a)}onClassSubtraction(e,t){let n=this._node;if(n.type!==`CharacterClass`||!n.unicodeSets)throw Error(`UnknownError`);let r=n.elements.pop(),i=this._expressionBufferMap.get(n)??n.elements.pop();if(!i||!r||i.type===`ClassIntersection`||i.type!==`ClassSubtraction`&&!he(i)||!he(r))throw Error(`UnknownError`);let a={type:`ClassSubtraction`,parent:n,start:e,end:t,raw:this.source.slice(e,t),left:i,right:r};i.parent=a,r.parent=a,this._expressionBufferMap.set(n,a)}onClassStringDisjunctionEnter(e){let t=this._node;if(t.type!==`CharacterClass`||!t.unicodeSets)throw Error(`UnknownError`);this._node={type:`ClassStringDisjunction`,parent:t,start:e,end:e,raw:``,alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let n=this._node;if(n.type!==`ClassStringDisjunction`||n.parent.type!==`CharacterClass`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onStringAlternativeEnter(e){let t=this._node;if(t.type!==`ClassStringDisjunction`)throw Error(`UnknownError`);this._node={type:`StringAlternative`,parent:t,start:e,end:e,raw:``,elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let n=this._node;if(n.type!==`StringAlternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}}class _e{constructor(e){this._state=new ge(e),this._validator=new U(this._state)}parseLiteral(e,t=0,n=e.length){this._state.source=e,this._validator.validateLiteral(e,t,n);let r=this._state.pattern,i=this._state.flags,a={type:`RegExpLiteral`,parent:null,start:t,end:n,raw:e,pattern:r,flags:i};return r.parent=a,i.parent=a,a}parseFlags(e,t=0,n=e.length){return this._state.source=e,this._validator.validateFlags(e,t,n),this._state.flags}parsePattern(e,t=0,n=e.length,r=void 0){return this._state.source=e,this._validator.validatePattern(e,t,n,r),this._state.pattern}}class ve{constructor(e){this._handlers=e}visit(e){switch(e.type){case`Alternative`:this.visitAlternative(e);break;case`Assertion`:this.visitAssertion(e);break;case`Backreference`:this.visitBackreference(e);break;case`CapturingGroup`:this.visitCapturingGroup(e);break;case`Character`:this.visitCharacter(e);break;case`CharacterClass`:this.visitCharacterClass(e);break;case`CharacterClassRange`:this.visitCharacterClassRange(e);break;case`CharacterSet`:this.visitCharacterSet(e);break;case`ClassIntersection`:this.visitClassIntersection(e);break;case`ClassStringDisjunction`:this.visitClassStringDisjunction(e);break;case`ClassSubtraction`:this.visitClassSubtraction(e);break;case`ExpressionCharacterClass`:this.visitExpressionCharacterClass(e);break;case`Flags`:this.visitFlags(e);break;case`Group`:this.visitGroup(e);break;case`Modifiers`:this.visitModifiers(e);break;case`ModifierFlags`:this.visitModifierFlags(e);break;case`Pattern`:this.visitPattern(e);break;case`Quantifier`:this.visitQuantifier(e);break;case`RegExpLiteral`:this.visitRegExpLiteral(e);break;case`StringAlternative`:this.visitStringAlternative(e);break;default:throw Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),(e.kind===`lookahead`||e.kind===`lookbehind`)&&e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitClassIntersection(e){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(e)}visitClassStringDisjunction(e){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(e)}visitClassSubtraction(e){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(e)}visitExpressionCharacterClass(e){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(e),this.visit(e.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.modifiers&&this.visit(e.modifiers),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitModifiers(e){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(e),e.add&&this.visit(e.add),e.remove&&this.visit(e.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(e)}visitModifierFlags(e){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(e),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}visitStringAlternative(e){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(e)}}function ye(e,t){return new _e(t).parseLiteral(String(e))}function W(e,t){new U(t).validateLiteral(e)}function be(e,t){new ve(t).visit(e)}return vp.AST=e,vp.RegExpParser=_e,vp.RegExpSyntaxError=L,vp.RegExpValidator=U,vp.parseRegExpLiteral=ye,vp.validateRegExpLiteral=W,vp.visitRegExpAST=be,vp}var xp,Sp;function Cp(){if(Sp)return xp;Sp=1;let e=bp().RegExpValidator,t=new class{constructor(){this._source=``,this._controlChars=[],this._validator=new e(this)}onPatternEnter(){this._controlChars=[]}onCharacter(e,t,n){n>=0&&n<=31&&(this._source.codePointAt(e)===n||this._source.slice(e,t).startsWith(`\\x`)||this._source.slice(e,t).startsWith(`\\u`))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(e,t){let n=typeof t==`string`&&t.includes(`u`),r=typeof t==`string`&&t.includes(`v`);this._controlChars=[],this._source=e;try{this._validator.validatePattern(e,void 0,void 0,{unicode:n,unicodeSets:r})}catch{}return this._controlChars}};return xp={meta:{type:`problem`,docs:{description:`Disallow control characters in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-control-regex`},schema:[],messages:{unexpected:`Unexpected control character(s) in regular expression: {{controlChars}}.`}},create(e){let n=e.sourceCode;function r(e){return e.regex?e.regex:typeof e.value==`string`&&(e.parent.type===`NewExpression`||e.parent.type===`CallExpression`)&&e.parent.callee.type===`Identifier`&&e.parent.callee.name===`RegExp`&&n.isGlobalReference(e.parent.callee)&&e.parent.arguments[0]===e?{pattern:e.value,flags:e.parent.arguments.length>1&&e.parent.arguments[1].type===`Literal`&&typeof e.parent.arguments[1].value==`string`?e.parent.arguments[1].value:null}:null}return{Literal(n){let i=r(n);if(i){let{pattern:r,flags:a}=i,o=t.collectControlChars(r,a);o.length>0&&e.report({node:n,messageId:`unexpected`,data:{controlChars:o.join(`, `)}})}}}}},xp}var wp,Tp;function Ep(){return Tp||(Tp=1,wp={meta:{type:`problem`,docs:{description:"Disallow the use of `debugger`",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-debugger`},fixable:null,schema:[],messages:{unexpected:`Unexpected 'debugger' statement.`}},create(e){return{DebuggerStatement(t){e.report({node:t,messageId:`unexpected`})}}}}),wp}var Dp,Op;function kp(){return Op||(Op=1,Dp={meta:{type:`suggestion`,docs:{description:`Disallow deleting variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-delete-var`},schema:[],messages:{unexpected:`Variables should not be deleted.`}},create(e){return{UnaryExpression(t){t.operator===`delete`&&t.argument.type===`Identifier`&&e.report({node:t,messageId:`unexpected`})}}}}),Dp}var Ap,jp;function Mp(){return jp||(jp=1,Ap={meta:{type:`suggestion`,docs:{description:`Disallow equal signs explicitly at the beginning of regular expressions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-div-regex`},fixable:`code`,schema:[],messages:{unexpected:`A regular expression literal can be confused with '/='.`}},create(e){let t=e.sourceCode;return{Literal(n){let r=t.getFirstToken(n);r.type===`RegularExpression`&&r.value[1]===`=`&&e.report({node:n,messageId:`unexpected`,fix(e){return e.replaceTextRange([r.range[0]+1,r.range[0]+2],`[=]`)}})}}}}),Ap}var Np,Pp;function Fp(){if(Pp)return Np;Pp=1;let e=$();return Np={meta:{type:`problem`,docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-args`},schema:[],messages:{unexpected:`Duplicate param '{{name}}'.`}},create(t){let n=t.sourceCode;function r(e){return e.type===`Parameter`}function i(i){let a=n.getDeclaredVariables(i);for(let o=0;o<a.length;++o){let s=a[o],c=s.defs.filter(r),l={start:e.getOpeningParenOfParams(i,n).loc.start,end:n.getTokenBefore(i.body).loc.end};c.length>=2&&t.report({loc:l,messageId:`unexpected`,data:{name:s.name}})}}return{FunctionDeclaration:i,FunctionExpression:i}}},Np}var Ip,Lp;function Rp(){if(Lp)return Ip;Lp=1;let e=$();return Ip={meta:{type:`problem`,docs:{description:`Disallow duplicate class members`,dialects:[`JavaScript`,`TypeScript`],recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-class-members`},schema:[],messages:{unexpected:`Duplicate name '{{name}}'.`}},create(t){let n=[];function r(e,t){let r=n.at(-1),i=`$${e}`;return r[i]||(r[i]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),r[i][t?`static`:`nonStatic`]}return{Program(){n=[]},ClassBody(){n.push(Object.create(null))},"ClassBody:exit"(){n.pop()},"MethodDefinition, PropertyDefinition"(n){if(n.value&&n.value.type===`TSEmptyBodyFunctionExpression`)return;let i=e.getStaticPropertyName(n),a=n.type===`MethodDefinition`?n.kind:`field`;if(i===null||a===`constructor`)return;let o=r(i,n.static),s;a===`get`?(s=o.init||o.get,o.get=!0):a===`set`?(s=o.init||o.set,o.set=!0):(s=o.init||o.get||o.set,o.init=!0),s&&t.report({loc:n.key.loc,messageId:`unexpected`,data:{name:i}})}}}},Ip}var zp,Bp;function Vp(){if(Bp)return zp;Bp=1;let e=$();function t(e,t,n){return t.every(t=>n.some(n=>e(t,n)))}function n(e,t){return t.type===`LogicalExpression`&&t.operator===e?[...n(e,t.left),...n(e,t.right)]:[t]}let r=n.bind(null,`||`),i=n.bind(null,`&&`);return zp={meta:{type:`problem`,docs:{description:`Disallow duplicate conditions in if-else-if chains`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-else-if`},schema:[],messages:{unexpected:`This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain.`}},create(n){let a=n.sourceCode;function o(t,n){return t.type===n.type?t.type===`LogicalExpression`&&(t.operator===`||`||t.operator===`&&`)&&t.operator===n.operator?o(t.left,n.left)&&o(t.right,n.right)||o(t.left,n.right)&&o(t.right,n.left):e.equalTokens(t,n,a):!1}let s=t.bind(null,o);return{IfStatement(e){let t=e.test,a=t.type===`LogicalExpression`&&t.operator===`&&`?[t,...i(t)]:[t],o=e,c=a.map(e=>r(e).map(i));for(;o.parent&&o.parent.type===`IfStatement`&&o.parent.alternate===o;){o=o.parent;let e=r(o.test).map(i);if(c=c.map(t=>t.filter(t=>!e.some(e=>s(e,t)))),c.some(e=>e.length===0)){n.report({node:t,messageId:`unexpected`});break}}}}}},zp}var Hp,Up;function Wp(){if(Up)return Hp;Up=1;let e=$(),t=/^(?:init|get)$/u,n=/^(?:init|set)$/u;class r{constructor(e,t){this.upper=e,this.node=t,this.properties=/* @__PURE__ */ new Map}getPropertyInfo(t){let n=e.getStaticPropertyName(t);return this.properties.has(n)||this.properties.set(n,{get:!1,set:!1}),this.properties.get(n)}isPropertyDefined(e){let r=this.getPropertyInfo(e);return t.test(e.kind)&&r.get||n.test(e.kind)&&r.set}defineProperty(e){let r=this.getPropertyInfo(e);t.test(e.kind)&&(r.get=!0),n.test(e.kind)&&(r.set=!0)}}return Hp={meta:{type:`problem`,docs:{description:`Disallow duplicate keys in object literals`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-keys`},schema:[],messages:{unexpected:`Duplicate key '{{name}}'.`}},create(t){let n=null;return{ObjectExpression(e){n=new r(n,e)},"ObjectExpression:exit"(){n=n.upper},Property(r){let i=e.getStaticPropertyName(r);r.parent.type===`ObjectExpression`&&i!==null&&(i!==`__proto__`||r.kind!==`init`||r.computed||r.shorthand||r.method)&&(n.isPropertyDefined(r)&&t.report({node:n.node,loc:r.key.loc,messageId:`unexpected`,data:{name:i}}),n.defineProperty(r))}}}},Hp}var Gp,Kp;function qp(){if(Kp)return Gp;Kp=1;let e=$();return Gp={meta:{type:`problem`,docs:{description:`Disallow duplicate case labels`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-duplicate-case`},schema:[],messages:{unexpected:`Duplicate case label.`}},create(t){let n=t.sourceCode;function r(t,r){return t.type===r.type&&e.equalTokens(t,r,n)}return{SwitchStatement(e){let n=[];for(let i of e.cases)if(i.test){let e=i.test;n.some(t=>r(t,e))?t.report({node:i,messageId:`unexpected`}):n.push(e)}}}}},Gp}var Jp,Yp;function Xp(){if(Yp)return Jp;Yp=1;let e=[`ImportSpecifier`,`ExportSpecifier`],t=[`ImportNamespaceSpecifier`,`ExportNamespaceSpecifier`];function n(n,r){return(r===`named`?e:t).includes(n)}function r(e){if(e.specifiers&&e.specifiers.length>0){let t=e.specifiers,r=t.findIndex(({type:e})=>n(e,`named`)||n(e,`namespace`));return t[r>-1?r:0].type}return e.type===`ExportAllDeclaration`?e.exported?`ExportNamespaceSpecifier`:`ExportAll`:`SideEffectImport`}function i(e,t){let i=r(e),a=r(t);if((e.importKind===`type`||e.exportKind===`type`)&&(t.importKind===`type`||t.exportKind===`type`)){let e=i===`ImportDefaultSpecifier`,t=a===`ImportDefaultSpecifier`,r=n(i,`named`),o=n(a,`named`);if(e&&o||t&&r)return!1}return!(i===`ExportAll`&&a!==`ExportAll`&&a!==`SideEffectImport`||i!==`ExportAll`&&i!==`SideEffectImport`&&a===`ExportAll`||n(i,`namespace`)&&n(a,`named`)||n(a,`namespace`)&&n(i,`named`))}function a(e,t,n){let r=0;for(;r<t.length;){let a=t[r];if(n&&(e.importKind===`type`||e.exportKind===`type`)!=(a.importKind===`type`||a.exportKind===`type`))r++;else{if(i(e,a))return!0;r++}}return!1}function o(e,t){return e.filter(({declarationType:e})=>e===t).map(({node:e})=>e)}function s(e){return e&&e.source&&e.source.value?e.source.value.trim():``}function c(e,t,n,r,i,c){let l=s(t);if(n.has(l)){let s=n.get(l),u=[],d=o(s,`import`),f;i&&(f=o(s,`export`)),r===`import`?(a(t,d,c)&&u.push(`import`),i&&a(t,f,c)&&u.push(`importAs`)):r===`export`&&(a(t,f,c)&&u.push(`export`),a(t,d,c)&&u.push(`exportAs`)),u.forEach(n=>e.report({node:t,messageId:n,data:{module:l}}))}}function l(e,t,n,r,i){return function(a){let o=s(a);if(o){c(e,a,t,n,r,i);let s={node:a,declarationType:n},l=[s];t.has(o)&&(l=[...t.get(o),s]),t.set(o,l)}}}return Jp={meta:{type:`problem`,defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:`Disallow duplicate module imports`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-duplicate-imports`},schema:[{type:`object`,properties:{includeExports:{type:`boolean`},allowSeparateTypeImports:{type:`boolean`}},additionalProperties:!1}],messages:{import:`'{{module}}' import is duplicated.`,importAs:`'{{module}}' import is duplicated as export.`,export:`'{{module}}' export is duplicated.`,exportAs:`'{{module}}' export is duplicated as import.`}},create(e){let[{includeExports:t,allowSeparateTypeImports:n}]=e.options,r=/* @__PURE__ */ new Map,i={ImportDeclaration:l(e,r,`import`,t,n)};return t&&(i.ExportNamedDeclaration=l(e,r,`export`,t,n),i.ExportAllDeclaration=l(e,r,`export`,t,n)),i}},Jp}var Zp,Qp;function $p(){if(Qp)return Zp;Qp=1;let e=$();class t{constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(t){let n=e.getUpperFunction(t);return this.retainRange(n?n.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let t=this.sourceCode.getTokenBefore(e)||e,n=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],n.range[1]])}replaceTextRange(e,t){let n;return n=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(n,this.sourceCode.text.slice(n[0],e[0])+t+this.sourceCode.text.slice(e[1],n[1]))}remove(e){return this.replaceTextRange(e.range,``)}}return Zp=t,Zp}var em,tm;function nm(){if(tm)return em;tm=1;let e=$(),t=$p();return em={meta:{type:`suggestion`,defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-else-return`},schema:[{type:`object`,properties:{allowElseIf:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unexpected:`Unnecessary 'else' after 'return'.`}},create(n){let[{allowElseIf:r}]=n.options,i=n.sourceCode;function a(e,t){if(e.length===0)return!0;let n=t.variableScope;if(t.variables.filter(({defs:e})=>e.length>0).some(({name:t})=>e.includes(t))||t!==n&&t.upper.type===`catch`&&t.upper.variables.some(({name:t})=>e.includes(t))||t.variables.filter(({defs:e,references:t})=>e.length===0&&t.length>0).some(({name:t})=>e.includes(t))||t.through.some(t=>e.includes(t.identifier.name)))return!1;if(t!==n){let r=t.block.range;if(n.variables.filter(({name:t})=>e.includes(t)).some(e=>e.defs.some(({node:{range:e}})=>r[0]<=e[0]&&e[1]<=r[1])))return!1}return!0}function o(e,t){if(e.type===`FunctionDeclaration`)return!1;if(e.type!==`BlockStatement`)return!0;let n=t.childScopes.find(({block:t})=>t===e);return!n||a(n.variables.map(({name:e})=>e),t)}function s(e){let r=i.getScope(e.parent);n.report({node:e,messageId:`unexpected`,fix(n){if(!o(e,r))return null;let a=i.getFirstToken(e),s=i.getTokenBefore(a),c=i.getText(e),l=i.getTokenBefore(s),u,d;d=a.type===`Punctuator`&&a.value===`{`?i.getTokenAfter(a):a;let f=e.parent.consequent.type!==`BlockStatement`&&l.value!==`;`,p=/^[([/+`-]/u.test(d.value);if(f&&p)return null;let m=i.getLastToken(e),h=i.getTokenBefore(m);if(h.value!==`;`){let e=i.getTokenAfter(m),t=e&&/^[([/+`-]/u.test(e.value),n=e&&e.loc.start.line===h.loc.start.line;if(t||n&&e.value!==`}`)return null}return u=a.type===`Punctuator`&&a.value===`{`?c.slice(1,-1):c,new t(n,i).retainEnclosingFunction(e).replaceTextRange([s.range[0],e.range[1]],u)}})}function c(e){return e.type===`ReturnStatement`}function l(e){if(e.type===`BlockStatement`){let t=e.body.at(-1);return t&&c(t)}return c(e)}function u(e){return e.alternate&&e.consequent}function d(e){return e.type===`IfStatement`&&u(e)&&l(e.alternate)&&l(e.consequent)}function f(e){return c(e)||d(e)}function p(e){return e.type===`BlockStatement`?e.body.some(f):f(e)}function m(t){let n=t.parent;if(!e.STATEMENT_LIST_PARENTS.has(n.type))return;let r=[],i;for(let e=t;e.type===`IfStatement`;e=e.alternate){if(!e.alternate)return;r.push(e.consequent),i=e.alternate}r.every(p)&&s(i)}function h(t){let n=t.parent;if(!e.STATEMENT_LIST_PARENTS.has(n.type))return;let r=t.alternate;r&&p(t.consequent)&&s(r)}return{"IfStatement:exit":r?m:h}}},em}var rm,im;function am(){if(im)return rm;im=1;let e=$();return rm={meta:{hasSuggestions:!0,type:`suggestion`,defaultOptions:[{allowEmptyCatch:!1}],docs:{description:`Disallow empty block statements`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty`},schema:[{type:`object`,properties:{allowEmptyCatch:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Empty {{type}} statement.`,suggestComment:`Add comment inside empty {{type}} statement.`}},create(t){let[{allowEmptyCatch:n}]=t.options,r=t.sourceCode;return{BlockStatement(i){i.body.length===0&&(e.isFunction(i.parent)||n&&i.parent.type===`CatchClause`||r.getCommentsInside(i).length>0||t.report({node:i,messageId:`unexpected`,data:{type:`block`},suggest:[{messageId:`suggestComment`,data:{type:`block`},fix(e){let t=[i.range[0]+1,i.range[1]-1];return e.replaceTextRange(t,` /* empty */ `)}}]}))},SwitchStatement(n){if(n.cases===void 0||n.cases.length===0){let i=r.getTokenAfter(n.discriminant,e.isOpeningBraceToken),a=r.getLastToken(n);if(r.commentsExistBetween(i,a))return;t.report({node:n,loc:{start:i.loc.start,end:a.loc.end},messageId:`unexpected`,data:{type:`switch`},suggest:[{messageId:`suggestComment`,data:{type:`switch`},fix(e){let t=[i.range[1],a.range[0]];return e.replaceTextRange(t,` /* empty */ `)}}]})}}}}},rm}var om,sm;function cm(){if(sm)return om;sm=1;let{RegExpParser:e,visitRegExpAST:t}=bp(),n=new e,r=/\[\]/u;return om={meta:{type:`problem`,docs:{description:`Disallow empty character classes in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-character-class`},schema:[],messages:{unexpected:`Empty class.`}},create(e){return{"Literal[regex]"(i){let{pattern:a,flags:o}=i.regex;if(!r.test(a))return;let s;try{s=n.parsePattern(a,0,a.length,{unicode:o.includes(`u`),unicodeSets:o.includes(`v`)})}catch{return}t(s,{onCharacterClassEnter(t){!t.negate&&t.elements.length===0&&e.report({node:i,messageId:`unexpected`})}})}}}},om}var lm,um;function dm(){if(um)return lm;um=1;let e=$(),t=Object.freeze([`functions`,`arrowFunctions`,`generatorFunctions`,`methods`,`generatorMethods`,`getters`,`setters`,`constructors`,`asyncFunctions`,`asyncMethods`,`privateConstructors`,`protectedConstructors`,`decoratedFunctions`,`overrideMethods`]);function n(e){let t=e.parent,n;if(e.type===`ArrowFunctionExpression`)return`arrowFunctions`;if(t.type===`Property`){if(t.kind===`get`)return`getters`;if(t.kind===`set`)return`setters`;n=t.method?`methods`:`functions`}else if(t.type===`MethodDefinition`){if(t.kind===`get`)return`getters`;if(t.kind===`set`)return`setters`;if(t.kind===`constructor`)return`constructors`;n=`methods`}else n=`functions`;let r;if(e.generator)r=`generator`;else if(e.async)r=`async`;else return n;return r+n[0].toUpperCase()+n.slice(1)}function r(e){return e.params.some(e=>e.type===`TSParameterProperty`)}return lm={meta:{hasSuggestions:!0,type:`suggestion`,defaultOptions:[{allow:[]}],docs:{description:`Disallow empty functions`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-empty-function`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{enum:t},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:`Unexpected empty {{name}}.`,suggestComment:`Add comment inside empty {{name}}.`}},create(t){let[{allow:i}]=t.options,a=t.sourceCode;function o(e){let t=n(e);return!!(i.includes(t)||t===`constructors`&&(e.parent.accessibility===`private`&&i.includes(`privateConstructors`)||e.parent.accessibility===`protected`&&i.includes(`protectedConstructors`)||r(e))||/(?:g|s)etters|methods$/iu.test(t)&&(e.parent.decorators?.length&&i.includes(`decoratedFunctions`)||e.parent.override&&i.includes(`overrideMethods`)))}function s(n){let r=e.getFunctionNameWithKind(n),i=a.getTokens(n.body,{includeComments:!0,filter:e.isCommentToken});!o(n)&&n.body.type===`BlockStatement`&&n.body.body.length===0&&i.length===0&&t.report({node:n,loc:n.body.loc,messageId:`unexpected`,data:{name:r},suggest:[{messageId:`suggestComment`,data:{name:r},fix(e){let t=[n.body.range[0]+1,n.body.range[1]-1];return e.replaceTextRange(t,` /* empty */ `)}}]})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}},lm}var fm,pm;function mm(){if(pm)return fm;pm=1;let e=$();return fm={meta:{type:`problem`,defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:`Disallow empty destructuring patterns`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-pattern`},schema:[{type:`object`,properties:{allowObjectPatternsAsParameters:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Unexpected empty {{type}} pattern.`}},create(t){let[{allowObjectPatternsAsParameters:n}]=t.options;return{ObjectPattern(r){r.properties.length>0||n&&(e.isFunction(r.parent)||r.parent.type===`AssignmentPattern`&&e.isFunction(r.parent.parent)&&r.parent.right.type===`ObjectExpression`&&r.parent.right.properties.length===0)||t.report({node:r,messageId:`unexpected`,data:{type:`object`}})},ArrayPattern(e){e.elements.length===0&&t.report({node:e,messageId:`unexpected`,data:{type:`array`}})}}}},fm}var hm,gm;function _m(){return gm||(gm=1,hm={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:`Disallow empty static blocks`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-static-block`},schema:[],messages:{unexpected:`Unexpected empty static block.`,suggestComment:`Add comment inside empty static block.`}},create(e){let t=e.sourceCode;return{StaticBlock(n){if(n.body.length===0){let r=t.getFirstToken(n,{skip:1}),i=t.getLastToken(n);t.getCommentsBefore(i).length===0&&e.report({loc:{start:r.loc.start,end:i.loc.end},messageId:`unexpected`,suggest:[{messageId:`suggestComment`,fix(e){let t=[r.range[1],i.range[0]];return e.replaceTextRange(t,` /* empty */ `)}}]})}}}}}),hm}var vm,ym;function bm(){return ym||(ym=1,vm={meta:{type:`suggestion`,docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-eq-null`},schema:[],messages:{unexpected:`Use '===' to compare with null.`}},create(e){return{BinaryExpression(t){let n=t.operator===`==`||t.operator===`!=`;(t.right.type===`Literal`&&t.right.raw===`null`&&n||t.left.type===`Literal`&&t.left.raw===`null`&&n)&&e.report({node:t,messageId:`unexpected`})}}}}),vm}var xm,Sm;function Cm(){if(Sm)return xm;Sm=1;let e=$(),t=Object.freeze([`global`,`window`,`globalThis`]);function n(t,n){return e.isSpecificMemberAccess(t,null,n)}return xm={meta:{type:`suggestion`,defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-eval`},schema:[{type:`object`,properties:{allowIndirect:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:"`eval` can be harmful."}},create(r){let[{allowIndirect:i}]=r.options,a=r.sourceCode,o=null;function s(e){let t=a.getScope(e).isStrict;o={upper:o,node:e,strict:t,isTopLevelOfScript:!1,defaultThis:!1,initialized:t}}function c(){o=o.upper}function l(e){let t=e.parent,n=e.type===`MemberExpression`?e.property:e,i=t.type===`CallExpression`&&t.callee===e?t:e;r.report({node:i,loc:n.loc,messageId:`unexpected`})}function u(r){for(let i=0;i<t.length;++i){let a=t[i],o=e.getVariableByName(r,a);if(!o)continue;let s=o.references;for(let e=0;e<s.length;++e){let t=s[e].identifier.parent;for(;n(t,a);)t=t.parent;n(t,`eval`)&&l(t)}}}function d(t){let n=e.getVariableByName(t,`eval`);if(!n)return;let r=n.references;for(let t=0;t<r.length;++t){let n=r[t].identifier;n.name===`eval`&&!e.isCallee(n)&&l(n)}}return i?{"CallExpression:exit"(t){let n=t.callee;!t.optional&&e.isSpecificId(n,`eval`)&&l(n)}}:{"CallExpression:exit"(t){let n=t.callee;e.isSpecificId(n,`eval`)&&l(n)},Program(e){let t=a.getScope(e),n=r.languageOptions.parserOptions.ecmaFeatures||{};o={upper:null,node:e,strict:t.isStrict||e.sourceType===`module`||n.globalReturn&&t.childScopes[0].isStrict,isTopLevelOfScript:e.sourceType!==`module`&&!n.globalReturn,defaultThis:!0,initialized:!0}},"Program:exit"(e){let t=a.getScope(e);c(),d(t),u(t)},FunctionDeclaration:s,"FunctionDeclaration:exit":c,FunctionExpression:s,"FunctionExpression:exit":c,"PropertyDefinition > *.value":s,"PropertyDefinition > *.value:exit":c,StaticBlock:s,"StaticBlock:exit":c,ThisExpression(t){n(t.parent,`eval`)&&(o.initialized||(o.initialized=!0,o.defaultThis=e.isDefaultThisBinding(o.node,a)),(o.isTopLevelOfScript||!o.strict&&o.defaultThis)&&l(t.parent))}}}},xm}var wm,Tm;function Em(){if(Tm)return wm;Tm=1;let e=$();return wm={meta:{type:`problem`,docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-ex-assign`},schema:[],messages:{unexpected:`Do not assign to the exception parameter.`}},create(t){let n=t.sourceCode;function r(n){e.getModifyingReferences(n.references).forEach(e=>{t.report({node:e.identifier,messageId:`unexpected`})})}return{CatchClause(e){n.getDeclaredVariables(e).forEach(r)}}}},wm}var Dm,Om;function km(){if(Om)return Dm;Om=1;let e=$();return Dm={meta:{type:`suggestion`,defaultOptions:[{exceptions:[]}],docs:{description:`Disallow extending native types`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extend-native`},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:`{{builtin}} prototype is read only, properties should not be added.`}},create(t){let n=t.sourceCode,r=new Set(t.options[0].exceptions),i=new Set(Object.keys(e.ECMASCRIPT_GLOBALS).filter(e=>e[0].toUpperCase()===e[0]).filter(e=>!r.has(e)));function a(e,n){t.report({node:e,messageId:`unexpected`,data:{builtin:n}})}function o(t){return!!(t&&t.parent&&t.parent.type===`MemberExpression`&&t.parent.object===t&&e.getStaticPropertyName(t.parent)===`prototype`)}function s(e){return e.parent.type===`MemberExpression`&&e.parent.object===e&&e.parent.parent.type===`AssignmentExpression`&&e.parent.parent.left===e.parent}function c(t){return t.parent.type===`CallExpression`&&t.parent.arguments[0]===t&&e.isSpecificMemberAccess(t.parent.callee,`Object`,/^definePropert(?:y|ies)$/u)}function l(e){if(!o(e))return;let t=e.parent.parent.type===`ChainExpression`?e.parent.parent:e.parent;s(t)?a(t.parent.parent,e.name):c(t)&&a(t.parent,e.name)}return{"Program:exit"(e){let t=n.getScope(e);i.forEach(e=>{let n=t.set.get(e);n&&n.references&&n.references.map(e=>e.identifier).forEach(l)})}}}},Dm}var Am,jm;function Mm(){if(jm)return Am;jm=1;let e=$(),t=/* @__PURE__ */ new Set([`Literal`,`Identifier`,`ThisExpression`,`FunctionExpression`]);return Am={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-bind`},schema:[],fixable:`code`,messages:{unexpected:`The function binding is unnecessary.`}},create(n){let r=n.sourceCode,i=null;function a(e){return t.has(e.type)}function o(t){let i=t.parent,o=i.parent.type===`ChainExpression`?i.parent.parent:i.parent;n.report({node:o,messageId:`unexpected`,loc:i.property.loc,fix(t){if(!a(o.arguments[0]))return null;let n=[[r.getTokenAfter(i.object,e.isNotClosingParenToken),r.getLastToken(i)],[r.getTokenAfter(i,e.isNotClosingParenToken),r.getLastToken(o)]],s=n[0][0],c=n[1][1];return r.commentsExistBetween(s,c)?null:n.map(([e,n])=>t.removeRange([e.range[0],n.range[1]]))}})}function s(t){if(!e.isSpecificMemberAccess(t.parent,null,`bind`))return!1;let n=t.parent.parent.type===`ChainExpression`?t.parent.parent:t.parent;return n.parent.type===`CallExpression`&&n.parent.callee===n&&n.parent.arguments.length===1&&n.parent.arguments[0].type!==`SpreadElement`}function c(e){i={isBound:s(e),thisFound:!1,upper:i}}function l(e){i.isBound&&!i.thisFound&&o(e),i=i.upper}function u(e){s(e)&&o(e)}function d(){i&&(i.thisFound=!0)}return{"ArrowFunctionExpression:exit":u,FunctionDeclaration:c,"FunctionDeclaration:exit":l,FunctionExpression:c,"FunctionExpression:exit":l,"PropertyDefinition > *.key:exit":c,"PropertyDefinition:exit":l,StaticBlock:c,"StaticBlock:exit":l,ThisExpression:d}}},Am}var Nm,Pm;function Fm(){if(Pm)return Nm;Pm=1;let e=$(),t=/*@__PURE__*/ tt(),n=e.getPrecedence;return Nm={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallow unnecessary boolean casts`,recommended:!0,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-extra-boolean-cast`},schema:[{anyOf:[{type:`object`,properties:{enforceForInnerExpressions:{type:`boolean`}},additionalProperties:!1},{type:`object`,properties:{enforceForLogicalOperands:{type:`boolean`}},additionalProperties:!1}]}],fixable:`code`,messages:{unexpectedCall:`Redundant Boolean call.`,unexpectedNegation:`Redundant double negation.`}},create(r){let i=r.sourceCode,[{enforceForLogicalOperands:a,enforceForInnerExpressions:o}]=r.options,s=/* @__PURE__ */ new Set([`IfStatement`,`DoWhileStatement`,`WhileStatement`,`ConditionalExpression`,`ForStatement`]);function c(e){return(e.type===`CallExpression`||e.type===`NewExpression`)&&e.callee.type===`Identifier`&&e.callee.name===`Boolean`&&i.isGlobalReference(e.callee)}function l(e){return c(e.parent)&&e===e.parent.arguments[0]||s.has(e.parent.type)&&e===e.parent.test||e.parent.type===`UnaryExpression`&&e.parent.operator===`!`}function u(e){return e.parent.type===`ChainExpression`||(a||o)&&e.parent.type===`LogicalExpression`&&(e.parent.operator===`||`||e.parent.operator===`&&`||o&&e.parent.operator===`??`&&e.parent.right===e)||o&&(e.parent.type===`ConditionalExpression`&&(e.parent.consequent===e||e.parent.alternate===e)||e.parent.type===`SequenceExpression`&&e.parent.expressions.at(-1)===e)?u(e.parent):l(e)}function d(e){return!!i.getCommentsInside(e).length}function f(e){return t.isParenthesized(1,e,i)}function p(t,r){if(t.parent.type===`ChainExpression`)return p(t.parent,r);if(f(t))return!1;let i=t.parent;switch(i.type){case`CallExpression`:case`NewExpression`:return r.type===`SequenceExpression`;case`IfStatement`:case`DoWhileStatement`:case`WhileStatement`:case`ForStatement`:case`SequenceExpression`:return!1;case`ConditionalExpression`:if(t===i.test)return n(r)<=n(i);if(t===i.consequent||t===i.alternate)return n(r)<n({type:`AssignmentExpression`});
163
+ /* c8 ignore next */
164
+ throw Error(`Ternary child must be test, consequent, or alternate.`);case`UnaryExpression`:return n(r)<n(i);case`LogicalExpression`:return e.isMixedLogicalAndCoalesceExpressions(r,i)?!0:t===i.left?n(r)<n(i):n(r)<=n(i);
165
+ /* c8 ignore next */
166
+ default:throw Error(`Unexpected parent type: ${i.type}`)}}return{UnaryExpression(t){let n=t.parent;t.operator===`!`&&n.type===`UnaryExpression`&&n.operator===`!`&&u(n)&&r.report({node:n,messageId:`unexpectedNegation`,fix(r){if(d(n))return null;if(p(n,t.argument))return r.replaceText(n,`(${i.getText(t.argument)})`);let a=``,o=i.getTokenBefore(n),s=i.getFirstToken(t.argument);return o&&o.range[1]===n.range[0]&&!e.canTokensBeAdjacent(o,s)&&(a=` `),r.replaceText(n,a+i.getText(t.argument))}})},CallExpression(t){t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&i.isGlobalReference(t.callee)&&u(t)&&r.report({node:t,messageId:`unexpectedCall`,fix(n){let r=t.parent;if(t.arguments.length===0){if(r.type===`UnaryExpression`&&r.operator===`!`){if(d(r))return null;let t=`true`,a=``,o=i.getTokenBefore(r);return o&&o.range[1]===r.range[0]&&!e.canTokensBeAdjacent(o,t)&&(a=` `),n.replaceText(r,a+t)}return d(t)?null:n.replaceText(t,`false`)}if(t.arguments.length===1){let e=t.arguments[0];return e.type===`SpreadElement`||d(t)?null:p(t,e)?n.replaceText(t,`(${i.getText(e)})`):n.replaceText(t,i.getText(e))}return null}})}}}},Nm}var Im,Lm;function Rm(){if(Lm)return Im;Lm=1;let e=$();return Im={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary labels`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-extra-label`},schema:[],fixable:`code`,messages:{unexpected:`This label '{{name}}' is unnecessary.`}},create(t){let n=t.sourceCode,r=null;function i(e){r={label:e.parent.type===`LabeledStatement`?e.parent.label:null,breakable:!0,upper:r}}function a(){r=r.upper}function o(t){e.isBreakableStatement(t.body)||(r={label:t.label,breakable:!1,upper:r})}function s(t){e.isBreakableStatement(t.body)||(r=r.upper)}function c(e){if(!e.label)return;let i=e.label;for(let a=r;a!==null;a=a.upper)if(a.breakable||a.label&&a.label.name===i.name){a.breakable&&a.label&&a.label.name===i.name&&t.report({node:i,messageId:`unexpected`,data:i,fix(t){let r=n.getFirstToken(e);return n.commentsExistBetween(r,i)?null:t.removeRange([r.range[1],i.range[1]])}});return}}return{WhileStatement:i,"WhileStatement:exit":a,DoWhileStatement:i,"DoWhileStatement:exit":a,ForStatement:i,"ForStatement:exit":a,ForInStatement:i,"ForInStatement:exit":a,ForOfStatement:i,"ForOfStatement:exit":a,SwitchStatement:i,"SwitchStatement:exit":a,LabeledStatement:o,"LabeledStatement:exit":s,BreakStatement:c,ContinueStatement:c}}},Im}var zm,Bm;function Vm(){if(Bm)return zm;Bm=1;let{isParenthesized:e}=/*@__PURE__*/ tt(),t=$();return zm={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-extra-parens`,url:`https://eslint.style/rules/no-extra-parens`}}]},type:`layout`,docs:{description:`Disallow unnecessary parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-parens`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`functions`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`all`]},{type:`object`,properties:{conditionalAssign:{type:`boolean`},ternaryOperandBinaryExpressions:{type:`boolean`},nestedBinaryExpressions:{type:`boolean`},returnAssign:{type:`boolean`},ignoreJSX:{enum:[`none`,`all`,`single-line`,`multi-line`]},enforceForArrowConditionals:{type:`boolean`},enforceForSequenceExpressions:{type:`boolean`},enforceForNewInMemberExpressions:{type:`boolean`},enforceForFunctionPrototypeMethods:{type:`boolean`},allowParensAfterCommentPattern:{type:`string`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:`Unnecessary parentheses around expression.`}},create(n){let r=n.sourceCode,i=/* @__PURE__ */ new WeakSet,a=t.getPrecedence,o=n.options[0]!==`functions`,s=o&&n.options[1]&&n.options[1].conditionalAssign===!1,c=o&&n.options[1]&&n.options[1].ternaryOperandBinaryExpressions===!1,l=o&&n.options[1]&&n.options[1].nestedBinaryExpressions===!1,u=o&&n.options[1]&&n.options[1].returnAssign===!1,d=o&&n.options[1]&&n.options[1].ignoreJSX,f=o&&n.options[1]&&n.options[1].enforceForArrowConditionals===!1,p=o&&n.options[1]&&n.options[1].enforceForSequenceExpressions===!1,m=o&&n.options[1]&&n.options[1].enforceForNewInMemberExpressions===!1,h=o&&n.options[1]&&n.options[1].enforceForFunctionPrototypeMethods===!1,g=o&&n.options[1]&&n.options[1].allowParensAfterCommentPattern,_=a({type:`AssignmentExpression`}),v=a({type:`UpdateExpression`}),y;function b(e){let n=t.skipChainExpression(e);if(n.type!==`CallExpression`)return!1;let r=t.skipChainExpression(n.callee);return r.type===`MemberExpression`&&r.object.type===`FunctionExpression`&&[`call`,`apply`].includes(t.getStaticPropertyName(r))}function x(e){if(e.type===`JSXElement`||e.type===`JSXFragment`){let t=e.loc.start.line===e.loc.end.line;switch(d){case`all`:return!1;case`multi-line`:return t;case`single-line`:return!t}}return e.type===`SequenceExpression`&&p||b(e)&&h?!1:o||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`}function S(t){return e(1,t,r)}function C(t){return e(2,t,r)}function w(e){return x(e)&&S(e)}function T(e){return x(e)&&C(e)}function E(e,t){return!!(x(e)&&S(e)&&(a(e)>=t||C(e)))}function D(e){return s&&e.test.type===`AssignmentExpression`}function O(e){for(let t=e;t;t=t.parent)if(t.type===`ReturnStatement`||t.type===`ArrowFunctionExpression`&&t.body.type!==`BlockStatement`)return!0;return!1}function k(e){let n=r.getLastToken(e),i=r.getTokenBefore(n);return e.arguments.length>0||t.isOpeningParenToken(i)&&t.isClosingParenToken(n)&&e.callee.range[1]<e.range[1]}function A(e){return!!(e.type===`AssignmentExpression`||e.type===`ConditionalExpression`&&(e.consequent.type===`AssignmentExpression`||e.alternate.type===`AssignmentExpression`)||e.left&&e.left.type===`AssignmentExpression`||e.right&&e.right.type===`AssignmentExpression`)}function j(e){return!u||!O(e)?!1:e.type===`ReturnStatement`?e.argument&&A(e.argument):e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?A(e.body):A(e)}function M(e,t){return e.loc.end.line===t.loc.start.line?w(t):T(t)}function N(e){let n=r.getTokenBefore(e),i=r.getTokenBefore(n,{includeComments:!0}),a=r.getTokenAfter(n,{includeComments:!0});return i&&i.range[1]===n.range[0]&&n.range[1]===a.range[0]&&!t.canTokensBeAdjacent(i,a)}function P(e){let n=r.getTokensAfter(e,{count:2}),i=n[0],a=n[1],o=r.getLastToken(e);return i&&a&&!r.isSpaceBetween(i,a)&&!t.canTokensBeAdjacent(o,a)}function F(e){let n=t.skipChainExpression(e);return n.type===`CallExpression`&&n.callee.type===`FunctionExpression`}function I(e){return e&&(e.type===`Identifier`||e.type===`MemberExpression`)}function ee(e){return e.type!==`Literal`||typeof e.value!=`string`||C(e)?!0:!t.isTopLevelExpressionStatement(e.parent)}function L(e){let t=r.getTokenBefore(e),a=r.getTokenAfter(e);if(!C(e)){if(i.has(r.getFirstToken(e))||F(e)&&!S(e.callee))return;if(g){let e=r.getCommentsBefore(t),n=e.length,i=new RegExp(g,`u`);if(n>0&&i.test(e[n-1].value))return}}function o(){n.report({node:e,loc:t.loc,messageId:`unexpected`,fix:ee(e)?n=>{let i=r.text.slice(t.range[1],a.range[0]);return n.replaceTextRange([t.range[0],a.range[1]],(N(e)?` `:``)+i+(P(e)?` `:``))}:null})}y?y.reports.push({node:e,finishReport:o}):o()}function R(e){E(e.argument,a(e))&&L(e.argument)}function te(e){let t=e.object,n=e.object.type;for(;n===`MemberExpression`;)t=t.object,n=t.type;return n===`CallExpression`}function z(e){let t=e.callee;E(t,a(e))&&(T(t)||!(F(e)||t.type===`NewExpression`&&!k(t)&&(e.type!==`NewExpression`||k(e))||e.type===`NewExpression`&&t.type===`MemberExpression`&&te(t)||!e.optional&&t.type===`ChainExpression`))&&L(e.callee),e.arguments.filter(e=>E(e,_)).forEach(L)}function ne(e){let n=a(e),r=a(e.left),i=a(e.right),o=e.operator===`**`,s=l&&(e.left.type===`BinaryExpression`||e.left.type===`LogicalExpression`),c=l&&(e.right.type===`BinaryExpression`||e.right.type===`LogicalExpression`);!s&&w(e.left)&&(!([`AwaitExpression`,`UnaryExpression`].includes(e.left.type)&&o)&&!t.isMixedLogicalAndCoalesceExpressions(e.left,e)&&(r>n||r===n&&!o)||C(e.left))&&L(e.left),!c&&w(e.right)&&(!t.isMixedLogicalAndCoalesceExpressions(e.right,e)&&(i>n||i===n&&o)||C(e.right))&&L(e.right)}function re(e){e.superClass&&(a(e.superClass)>v?w(e.superClass):T(e.superClass))&&L(e.superClass)}function B(e){E(e.argument,_)&&L(e.argument)}function V(e){let n=S(e)?r.getTokenBefore(e):r.getFirstToken(e),a=r.getTokenAfter(n,t.isNotOpeningParenToken),o=a?r.getTokenAfter(a):null,s=a?r.getTokenAfter(a,t.isNotClosingParenToken):null;t.isOpeningParenToken(n)&&(t.isOpeningBraceToken(a)||a.type===`Keyword`&&(a.value===`function`||a.value===`class`||a.value===`let`&&s&&(t.isOpeningBracketToken(s)||s.type===`Identifier`))||a&&a.type===`Identifier`&&a.value===`async`&&o&&o.type===`Keyword`&&o.value===`function`)&&i.add(a),(e.parent.type===`ExportDefaultDeclaration`?E(e,_):w(e))&&L(e)}function ie(e,t){let n=[e],r=e;for(;r!==t;){
167
+ /* c8 ignore start */
168
+ if(r=r.parent,r===null)throw Error(`Nodes are not in the ancestor-descendant relationship.`);n.push(r)}return n}function ae(e,t){return ie(t,e).reverse()}function oe(e,t){switch(e.type){case`ArrayExpression`:case`ArrayPattern`:case`BlockStatement`:case`ObjectExpression`:case`ObjectPattern`:case`TemplateLiteral`:return!0;case`ArrowFunctionExpression`:case`FunctionExpression`:return e.params.includes(t);case`CallExpression`:case`NewExpression`:return e.arguments.includes(t);case`MemberExpression`:return e.computed&&e.property===t;case`ConditionalExpression`:return e.consequent===t;default:return!1}}function H(){y={upper:y,inExpressionNodes:[],reports:[]}}function se(){let{upper:e,inExpressionNodes:t,reports:n}=y;e?(e.inExpressionNodes.push(...t),e.reports.push(...n)):n.forEach(({finishReport:e})=>e()),y=e}function ce(e){return y.reports.some(t=>t.node===e)}function le(e){y.reports=y.reports.filter(t=>t.node!==e)}function ue(e){return e.type===`MemberExpression`?e.parent.type===`NewExpression`&&e.parent.callee===e||e.parent.object===e&&ue(e.parent):!1}function de({left:e,operator:t,right:n}){if(e.type===`Identifier`&&[`=`,`&&=`,`||=`,`??=`].includes(t)){let e=n.type;if(e===`ArrowFunctionExpression`||(e===`FunctionExpression`||e===`ClassExpression`)&&!n.id)return!0}return!1}return{ArrayExpression(e){e.elements.filter(e=>e&&E(e,_)).forEach(L)},ArrayPattern(e){e.elements.filter(e=>I(e)&&w(e)).forEach(L)},ArrowFunctionExpression(e){if(!j(e)&&!(e.body.type===`ConditionalExpression`&&f)&&e.body.type!==`BlockStatement`){let n=r.getFirstToken(e.body,t.isNotOpeningParenToken),a=r.getTokenBefore(n);t.isOpeningParenToken(a)&&t.isOpeningBraceToken(n)&&i.add(n),E(e.body,_)&&L(e.body)}},AssignmentExpression(e){I(e.left)&&w(e.left)&&(!de(e)||C(e.left))&&L(e.left),!j(e)&&E(e.right,a(e))&&L(e.right)},BinaryExpression(e){y&&e.operator===`in`&&y.inExpressionNodes.push(e),ne(e)},CallExpression:z,ConditionalExpression(e){if(j(e))return;let t=/* @__PURE__ */ new Set([`BinaryExpression`,`LogicalExpression`]);!(c&&t.has(e.test.type))&&!D(e)&&E(e.test,a({type:`LogicalExpression`,operator:`||`}))&&L(e.test),!(c&&t.has(e.consequent.type))&&E(e.consequent,_)&&L(e.consequent),!(c&&t.has(e.alternate.type))&&E(e.alternate,_)&&L(e.alternate)},DoWhileStatement(e){w(e.test)&&!D(e)&&L(e.test)},ExportDefaultDeclaration:e=>V(e.declaration),ExpressionStatement:e=>V(e.expression),ForInStatement(e){if(e.left.type!==`VariableDeclaration`){let n=r.getFirstToken(e.left,t.isNotOpeningParenToken);n.value===`let`&&t.isOpeningBracketToken(r.getTokenAfter(n,t.isNotClosingParenToken))&&i.add(n)}w(e.left)&&L(e.left),w(e.right)&&L(e.right)},ForOfStatement(e){if(e.left.type!==`VariableDeclaration`){let n=r.getFirstToken(e.left,t.isNotOpeningParenToken);n.value===`let`&&i.add(n)}w(e.left)&&L(e.left),E(e.right,_)&&L(e.right)},ForStatement(e){if(e.test&&w(e.test)&&!D(e)&&L(e.test),e.update&&w(e.update)&&L(e.update),e.init){if(e.init.type!==`VariableDeclaration`){let n=r.getFirstToken(e.init,t.isNotOpeningParenToken);n.value===`let`&&t.isOpeningBracketToken(r.getTokenAfter(n,t.isNotClosingParenToken))&&i.add(n)}H(),w(e.init)&&L(e.init)}},"ForStatement > *.init:exit"(e){y.reports.length&&y.inExpressionNodes.forEach(t=>{let n=ae(e,t),r;for(let e=0;e<n.length;e++){let t=n[e];if(e<n.length-1){let r=n[e+1];if(oe(t,r))return}if(S(t)){if(ce(t)){if(C(t))return;r||=t}else return}}le(r)}),se()},IfStatement(e){w(e.test)&&!D(e)&&L(e.test)},ImportExpression(e){let{source:t}=e;t.type===`SequenceExpression`?T(t)&&L(t):w(t)&&L(t)},LogicalExpression:ne,MemberExpression(e){let n=ue(e)&&te(e)?T(e.object):w(e.object)&&!(b(e.parent)&&e.parent.callee===e&&h);n&&a(e.object)>=a(e)&&(e.computed||!(t.isDecimalInteger(e.object)||e.object.type===`Literal`&&e.object.regex))&&L(e.object),n&&e.object.type===`CallExpression`&&L(e.object),n&&!m&&e.object.type===`NewExpression`&&k(e.object)&&L(e.object),n&&e.optional&&e.object.type===`ChainExpression`&&L(e.object),e.computed&&w(e.property)&&L(e.property)},"MethodDefinition[computed=true]"(e){E(e.key,_)&&L(e.key)},NewExpression:z,ObjectExpression(e){e.properties.filter(e=>e.value&&E(e.value,_)).forEach(e=>L(e.value))},ObjectPattern(e){e.properties.filter(e=>{let t=e.value;return I(t)&&w(t)}).forEach(e=>L(e.value))},Property(e){if(e.computed){let{key:t}=e;t&&E(t,_)&&L(t)}},PropertyDefinition(e){e.computed&&E(e.key,_)&&L(e.key),e.value&&E(e.value,_)&&L(e.value)},RestElement(e){let t=e.argument;I(t)&&w(t)&&L(t)},ReturnStatement(e){let t=r.getFirstToken(e);j(e)||e.argument&&M(t,e.argument)&&!(e.argument.type===`Literal`&&e.argument.regex)&&L(e.argument)},SequenceExpression(e){let t=a(e);e.expressions.filter(e=>E(e,t)).forEach(L)},SwitchCase(e){e.test&&w(e.test)&&L(e.test)},SwitchStatement(e){w(e.discriminant)&&L(e.discriminant)},ThrowStatement(e){M(r.getFirstToken(e),e.argument)&&L(e.argument)},UnaryExpression:R,UpdateExpression(e){if(e.prefix)R(e);else{let{argument:t}=e,n=r.getLastToken(e);t.loc.end.line===n.loc.start.line?R(e):T(t)&&L(t)}},AwaitExpression:R,VariableDeclarator(e){e.init&&E(e.init,_)&&!(e.init.type===`Literal`&&e.init.regex)&&L(e.init)},WhileStatement(e){w(e.test)&&!D(e)&&L(e.test)},WithStatement(e){w(e.object)&&L(e.object)},YieldExpression(e){if(e.argument){let t=r.getFirstToken(e);(a(e.argument)>=a(e)&&M(t,e.argument)||T(e.argument))&&L(e.argument)}},ClassDeclaration:re,ClassExpression:re,SpreadElement:B,SpreadProperty:B,ExperimentalSpreadProperty:B,TemplateLiteral(e){e.expressions.filter(e=>e&&w(e)).forEach(L)},AssignmentPattern(e){let{left:t,right:n}=e;I(t)&&w(t)&&L(t),n&&E(n,_)&&L(n)}}}},zm}var Hm,Um;function Wm(){if(Um)return Hm;Um=1;let e=$p(),t=$();return Hm={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-extra-semi`,url:`https://eslint.style/rules/no-extra-semi`}}]},type:`suggestion`,docs:{description:`Disallow unnecessary semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-semi`},fixable:`code`,schema:[],messages:{unexpected:`Unnecessary semicolon.`}},create(n){let r=n.sourceCode;function i(e){let n=r.getTokenAfter(e);if(!n||n.type!==`String`)return!0;let i=r.getNodeByRangeIndex(n.range[0]);return!t.isTopLevelExpressionStatement(i.parent)}function a(t){n.report({node:t,messageId:`unexpected`,fix:i(t)?r=>new e(r,n.sourceCode).retainSurroundingTokens(t).remove(t):null})}function o(e){for(let n=e;n.type===`Punctuator`&&!t.isClosingBraceToken(n);n=r.getTokenAfter(n))t.isSemicolonToken(n)&&a(n)}return{EmptyStatement(e){let t=e.parent;[`ForStatement`,`ForInStatement`,`ForOfStatement`,`WhileStatement`,`DoWhileStatement`,`IfStatement`,`LabeledStatement`,`WithStatement`].includes(t.type)||a(e)},ClassBody(e){o(r.getFirstToken(e,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(e){o(r.getTokenAfter(e))}}}},Hm}var Gm,Km;function qm(){if(Km)return Gm;Km=1;let{directivesPattern:e}=Zt(),{isAnySegmentReachable:t}=Qs(),n=/falls?\s?through/iu;function r(t,n){return n.test(t)&&!e.test(t.trim())}function i(e,t,n,i){let a=n.sourceCode;if(e.consequent.length===1&&e.consequent[0].type===`BlockStatement`){let t=a.getLastToken(e.consequent[0]),n=a.getCommentsBefore(t).pop();if(n&&r(n.value,i))return n}let o=a.getCommentsBefore(t).pop();return o&&r(o.value,i)?o:null}function a(e,t){return t.loc.start.line>e.loc.end.line+1}return Gm={meta:{type:`problem`,defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-fallthrough`},schema:[{type:`object`,properties:{commentPattern:{type:`string`},allowEmptyCase:{type:`boolean`},reportUnusedFallthroughComment:{type:`boolean`}},additionalProperties:!1}],messages:{unusedFallthroughComment:`Found a comment that would permit fallthrough, but case cannot fall through.`,case:`Expected a 'break' statement before 'case'.`,default:`Expected a 'break' statement before 'default'.`}},create(e){let r=[],o=/* @__PURE__ */ new Set,s=e.sourceCode,[{allowEmptyCase:c,commentPattern:l,reportUnusedFallthroughComment:u}]=e.options,d=l?new RegExp(l,`u`):n,f=null;return{onCodePathStart(){r.push(o),o=/* @__PURE__ */ new Set},onCodePathEnd(){o=r.pop()},onUnreachableCodePathSegmentStart(e){o.add(e)},onUnreachableCodePathSegmentEnd(e){o.delete(e)},onCodePathSegmentStart(e){o.add(e)},onCodePathSegmentEnd(e){o.delete(e)},SwitchCase(t){if(f&&f.node.parent===t.parent){let n=i(f.node,t,e,d);f.isFallthrough&&!n?e.report({messageId:t.test?`case`:`default`,node:t}):u&&!f.isSwitchExitReachable&&n&&e.report({messageId:`unusedFallthroughComment`,node:n})}f=null},"SwitchCase:exit"(e){let n=s.getTokenAfter(e),r=t(o);f={node:e,isSwitchExitReachable:r,isFallthrough:r&&(e.consequent.length>0||!c&&a(e,n))&&e.parent.cases.at(-1)!==e}}}}},Gm}var Jm,Ym;function Xm(){if(Ym)return Jm;Ym=1;let e=$();return Jm={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-floating-decimal`,url:`https://eslint.style/rules/no-floating-decimal`}}]},type:`suggestion`,docs:{description:`Disallow leading or trailing decimal points in numeric literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-floating-decimal`},schema:[],fixable:`code`,messages:{leading:`A leading decimal point can be confused with a dot.`,trailing:`A trailing decimal point can be confused with a dot.`}},create(t){let n=t.sourceCode;return{Literal(r){typeof r.value==`number`&&(r.raw.startsWith(`.`)&&t.report({node:r,messageId:`leading`,fix(t){let i=n.getTokenBefore(r),a=i&&i.range[1]===r.range[0]&&!e.canTokensBeAdjacent(i,`0${r.raw}`);return t.insertTextBefore(r,a?` 0`:`0`)}}),r.raw.indexOf(`.`)===r.raw.length-1&&t.report({node:r,messageId:`trailing`,fix:e=>e.insertTextAfter(r,`0`)}))}}}},Jm}var Zm,Qm;function $m(){if(Qm)return Zm;Qm=1;let e=$();return Zm={meta:{type:`problem`,docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-func-assign`},schema:[],messages:{isAFunction:`'{{name}}' is a function.`}},create(t){let n=t.sourceCode;function r(n){e.getModifyingReferences(n).forEach(e=>{t.report({node:e.identifier,messageId:`isAFunction`,data:{name:e.identifier.name}})})}function i(e){e.defs[0].type===`FunctionName`&&r(e.references)}function a(e){n.getDeclaredVariables(e).forEach(i)}return{FunctionDeclaration:a,FunctionExpression:a}}},Zm}var eh,th;function nh(){return th||(th=1,eh={meta:{type:`suggestion`,defaultOptions:[{exceptions:[]}],docs:{description:`Disallow assignments to native objects or read-only global variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-global-assign`},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:`Read-only global '{{name}}' should not be modified.`}},create(e){let t=e.sourceCode,[{exceptions:n}]=e.options;function r(t,n,r){let i=t.identifier;t.init===!1&&t.isWrite()&&(n===0||r[n-1].identifier!==i)&&e.report({node:i,messageId:`globalShouldNotBeModified`,data:{name:i.name}})}function i(e){e.writeable===!1&&!n.includes(e.name)&&e.references.forEach(r)}return{Program(e){t.getScope(e).variables.forEach(i)}}}}),eh}var rh,ih;function ah(){if(ih)return rh;ih=1;let e=$(),t=/^(?:i|lastI)ndexOf$/u,n=[`~`,`!!`,`+`,`- -`,`-`,`*`];function r(e){return e.operator===`!`&&e.argument.type===`UnaryExpression`&&e.argument.operator===`!`}function i(n){if(n.operator!==`~`)return!1;let r=e.skipChainExpression(n.argument);return r.type===`CallExpression`&&e.isSpecificMemberAccess(r.callee,null,t)}function a(e){return e.operator===`*`&&(e.left.type===`Literal`&&e.left.value===1||e.right.type===`Literal`&&e.right.value===1)}function o(t,n){return t.type===`BinaryExpression`&&t.operator===`*`&&t.right.type===`Literal`&&t.right.value===1&&t.parent.type===`BinaryExpression`&&t.parent.operator===`/`&&t.parent.left===t&&!e.isParenthesised(n,t)}function s(e){return e.type===`Literal`&&typeof e.value==`number`||e.type===`CallExpression`&&(e.callee.name===`Number`||e.callee.name===`parseInt`||e.callee.name===`parseFloat`)}function c(e){let t=e.left,n=e.right;return n.type!==`BinaryExpression`&&!s(n)?n:t.type!==`BinaryExpression`&&!s(t)?t:null}function l(t){return e.isStringLiteral(t)||t.type===`CallExpression`&&t.callee.type===`Identifier`&&t.callee.name===`String`}function u(t){return e.isStringLiteral(t)&&(t.value===``||t.type===`TemplateLiteral`&&t.quasis.length===1&&t.quasis[0].value.cooked===``)}function d(e){return e.operator===`+`&&(u(e.left)&&!l(e.right)||u(e.right)&&!l(e.left))}function f(e){return e.operator===`+=`&&u(e.right)}function p(e){return u(e.left)?e.right:e.left}return rh={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:`Disallow shorthand type conversions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-implicit-coercion`},fixable:`code`,schema:[{type:`object`,properties:{boolean:{type:`boolean`},number:{type:`boolean`},string:{type:`boolean`},disallowTemplateShorthand:{type:`boolean`},allow:{type:`array`,items:{enum:n},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(t){let[n]=t.options,u=t.sourceCode;function m(e){let t=u.getText(e);return e.type===`SequenceExpression`?`(${t})`:t}function h(n,r,i,a){function o(t){let i=u.getTokenBefore(n);return i?.range[1]===n.range[0]&&!e.canTokensBeAdjacent(i,r)?t.replaceText(n,` ${r}`):t.replaceText(n,r)}t.report({node:n,messageId:`implicitCoercion`,data:{recommendation:r},fix(e){return a?o(e):null},suggest:[{messageId:`useRecommendation`,data:{recommendation:r},fix(e){return a||!i?null:o(e)}}]})}return{UnaryExpression(t){let a;if(a=n.allow.includes(`!!`),!a&&n.boolean&&r(t)&&h(t,`Boolean(${m(t.argument.argument)})`,!0,e.getVariableByName(u.getScope(t),`Boolean`)?.identifiers.length===0),a=n.allow.includes(`~`),!a&&n.boolean&&i(t)){let e=t.argument.type===`ChainExpression`?`>= 0`:`!== -1`;h(t,`${u.getText(t.argument)} ${e}`,!1,!1)}a=n.allow.includes(`+`),!a&&n.number&&t.operator===`+`&&!s(t.argument)&&h(t,`Number(${m(t.argument)})`,!0,!1),a=n.allow.includes(`- -`),!a&&n.number&&t.operator===`-`&&t.argument.type===`UnaryExpression`&&t.argument.operator===`-`&&!s(t.argument.argument)&&h(t,`Number(${m(t.argument.argument)})`,!0,!1)},"BinaryExpression:exit"(e){let t;t=n.allow.includes(`*`);let r=!t&&n.number&&a(e)&&!o(e,u)&&c(e);r&&h(e,`Number(${m(r)})`,!0,!1),t=n.allow.includes(`-`),!t&&n.number&&e.operator===`-`&&e.right.type===`Literal`&&e.right.value===0&&!s(e.left)&&h(e,`Number(${m(e.left)})`,!0,!1),t=n.allow.includes(`+`),!t&&n.string&&d(e)&&h(e,`String(${m(p(e))})`,!0,!1)},AssignmentExpression(e){if(!n.allow.includes(`+`)&&n.string&&f(e)){let t=u.getText(p(e));h(e,`${t} = String(${t})`,!0,!1)}},TemplateLiteral(e){n.disallowTemplateShorthand&&e.parent.type!==`TaggedTemplateExpression`&&e.expressions.length===1&&e.quasis[0].value.cooked===``&&e.quasis[1].value.cooked===``&&(l(e.expressions[0])||h(e,`String(${m(e.expressions[0])})`,!0,!1))}}}},rh}var oh,sh;function ch(){if(sh)return oh;sh=1;let e=/* @__PURE__ */ new Set([`AssignmentExpression`,`ForInStatement`,`ForOfStatement`]);return oh={meta:{type:`suggestion`,defaultOptions:[{lexicalBindings:!1}],docs:{description:`Disallow declarations in the global scope`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-implicit-globals`},schema:[{type:`object`,properties:{lexicalBindings:{type:`boolean`}},additionalProperties:!1}],messages:{globalNonLexicalBinding:`Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.`,globalLexicalBinding:`Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.`,globalVariableLeak:`Global variable leak, declare the variable if it is intended to be local.`,assignmentToReadonlyGlobal:`Unexpected assignment to read-only global variable.`,redeclarationOfReadonlyGlobal:`Unexpected redeclaration of read-only global variable.`}},create(t){let[{lexicalBindings:n}]=t.options,r=t.sourceCode;function i(e,n,r){t.report({node:e,messageId:n,data:{kind:r}})}return{Program(t){let a=r.getScope(t);a.variables.forEach(t=>{let r=t.writeable===!1;t.writeable!==!0&&(t.eslintExported||(t.defs.forEach(e=>{let t=e.node;(e.type===`FunctionName`||e.type===`Variable`&&e.parent.kind===`var`)&&(r?i(t,`redeclarationOfReadonlyGlobal`):i(t,`globalNonLexicalBinding`,e.type===`FunctionName`?`function`:`'${e.parent.kind}'`)),n&&(e.type===`ClassName`||e.type===`Variable`&&(e.parent.kind===`let`||e.parent.kind===`const`))&&(r?i(t,`redeclarationOfReadonlyGlobal`):i(t,`globalLexicalBinding`,e.type===`ClassName`?`class`:`'${e.parent.kind}'`))}),r&&t.defs.length===0&&t.references.forEach(t=>{if(t.isWrite()&&!t.isRead()){let n=t.identifier.parent;for(;n&&!e.has(n.type);)n=n.parent;i(n??t.identifier,`assignmentToReadonlyGlobal`)}})))}),a.implicit.variables.forEach(e=>{e.defs.forEach(e=>{i(e.node,`globalVariableLeak`)})})}}}},oh}var lh,uh;function dh(){if(uh)return lh;uh=1;let e=$(),{getStaticValue:t}=/*@__PURE__*/ tt();return lh={meta:{type:`suggestion`,docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-implied-eval`},schema:[],messages:{impliedEval:`Implied eval. Consider passing a function instead of a string.`,execScript:`Implied eval. Do not use execScript().`}},create(n){let r=Object.freeze([`global`,`window`,`globalThis`,`self`]),i=/^(?:set(?:Interval|Timeout)|execScript)$/u,a=n.sourceCode;function o(e){return e.type===`Literal`&&typeof e.value==`string`||e.type===`TemplateLiteral`?!0:e.type===`BinaryExpression`&&e.operator===`+`?o(e.left)||o(e.right):!1}function s(r){let[i]=r.arguments;if(i){let s=t(i,a.getScope(r));if(s&&typeof s.value==`string`||o(i)){let t=(r.callee.type===`Identifier`?r.callee.name:e.getStaticPropertyName(r.callee))===`execScript`;n.report({node:r,messageId:t?`execScript`:`impliedEval`})}}}function c(t){let{references:n,name:r}=t;n.forEach(t=>{let n=t.identifier.parent;for(;e.isSpecificMemberAccess(n,null,r);)n=n.parent;if(e.isSpecificMemberAccess(n,null,i)){let e=n.parent.type===`ChainExpression`?n.parent:n,t=e.parent;t.type===`CallExpression`&&t.callee===e&&s(t)}})}return{CallExpression(t){e.isSpecificId(t.callee,i)&&a.isGlobalReference(t.callee)&&s(t)},"Program:exit"(t){let n=a.getScope(t);r.map(t=>e.getVariableByName(n,t)).filter(e=>!!e&&e.defs.length===0).forEach(c)}}}},lh}var fh,ph;function mh(){if(ph)return fh;ph=1;let{findVariable:e}=/*@__PURE__*/ tt(),t=$(),n={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function r(e){let{parent:t}=e;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`RestElement`||t.type===`AssignmentPattern`&&t.left===e}function i(e){let t=e.parent.type===`ChainExpression`?e.parent:e,{parent:n}=t;return n.type===`UpdateExpression`&&n.argument===t||n.type===`UnaryExpression`&&n.operator===`delete`&&n.argument===t}function a(e){let{parent:t}=e;return t.type===`ForInStatement`&&t.left===e||t.type===`ForOfStatement`&&t.left===e}function o(r,i){let{parent:a}=r;if(a.type!==`CallExpression`||a.arguments[0]!==r)return!1;let o=t.skipChainExpression(a.callee);if(!t.isSpecificMemberAccess(o,`Object`,n.Object)&&!t.isSpecificMemberAccess(o,`Reflect`,n.Reflect))return!1;let s=e(i,o.object);return s!==null&&s.scope.type===`global`}function s(e,t){let{parent:n}=e;return n.type===`MemberExpression`&&n.object===e&&(r(n)||i(n)||a(n))||o(e,t)}function c(e){let t=e.parent;for(;t&&t.type!==`AssignmentExpression`&&t.type!==`UpdateExpression`&&t.type!==`UnaryExpression`&&t.type!==`CallExpression`&&t.type!==`ForInStatement`&&t.type!==`ForOfStatement`;)t=t.parent;return t||e}return fh={meta:{type:`problem`,docs:{description:`Disallow assigning to imported bindings`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-import-assign`},schema:[],messages:{readonly:`'{{name}}' is read-only.`,readonlyMember:`The members of '{{name}}' are read-only.`}},create(e){let t=e.sourceCode;return{ImportDeclaration(n){let r=t.getScope(n);for(let i of t.getDeclaredVariables(n)){let t=i.defs.some(e=>e.node.type===`ImportNamespaceSpecifier`),n=null;for(let a of i.references){let i=a.identifier;i!==n&&(n=i,a.isWrite()?e.report({node:c(i),messageId:`readonly`,data:{name:i.name}}):t&&s(i,r)&&e.report({node:c(i),messageId:`readonlyMember`,data:{name:i.name}}))}}}}}},fh}var hh,gh;function _h(){if(gh)return hh;gh=1;let e=$();return hh={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallow inline comments after code`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-inline-comments`},schema:[{type:`object`,properties:{ignorePattern:{type:`string`}},additionalProperties:!1}],messages:{unexpectedInlineComment:`Unexpected comment inline with code.`}},create(t){let n=t.sourceCode,[{ignorePattern:r}]=t.options,i=r&&new RegExp(r,`u`);function a(r){let a=String(n.lines[r.loc.start.line-1]),o=String(n.lines[r.loc.end.line-1]),s=a.slice(0,r.loc.start.column).trim(),c=o.slice(r.loc.end.column).trim(),l=!s,u=!c;if(!(l&&u)&&!(i&&i.test(r.value))){if((l||s===`{`)&&(u||c===`}`)){let e=n.getNodeByRangeIndex(r.range[0]);if(e&&e.type===`JSXEmptyExpression`)return}e.isDirectiveComment(r)||t.report({node:r,messageId:`unexpectedInlineComment`})}}return{Program(){n.getAllComments().filter(e=>e.type!==`Shebang`).forEach(a)}}}},hh}var vh,yh;function bh(){if(yh)return vh;yh=1;let e=$(),t=/* @__PURE__ */ new Set([`Program`,`StaticBlock`,`ExportNamedDeclaration`,`ExportDefaultDeclaration`]),n=/* @__PURE__ */ new Set([`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]);function r(t){let{parent:n}=t;for(;n;){if(n.type===`StaticBlock`)return`class static block body`;if(e.isFunction(n))return`function body`;({parent:n}=n)}return`program`}return vh={meta:{type:`problem`,defaultOptions:[`functions`,{blockScopedFunctions:`allow`}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-inner-declarations`},schema:[{enum:[`functions`,`both`]},{type:`object`,properties:{blockScopedFunctions:{enum:[`allow`,`disallow`]}},additionalProperties:!1}],messages:{moveDeclToRoot:`Move {{type}} declaration to {{body}} root.`}},create(e){let i=e.options[0]===`both`,{blockScopedFunctions:a}=e.options[1],o=e.sourceCode,s=e.languageOptions.ecmaVersion;function c(i){let a=i.parent;a.type===`BlockStatement`&&n.has(a.parent.type)||t.has(a.type)||e.report({node:i,messageId:`moveDeclToRoot`,data:{type:i.type===`FunctionDeclaration`?`function`:`variable`,body:r(i)}})}return{FunctionDeclaration(e){let t=o.getScope(e).upper.isStrict;a===`allow`&&s>=2015&&t||c(e)},VariableDeclaration(e){i&&e.kind===`var`&&c(e)}}}},vh}var xh,Sh;function Ch(){if(Sh)return xh;Sh=1;let e=bp().RegExpValidator,t=new e,n=`dgimsuvy`;return xh={meta:{type:`problem`,defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-invalid-regexp`},schema:[{type:`object`,properties:{allowConstructorFlags:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{regexMessage:`{{message}}.`}},create(e){let r=e.sourceCode,[{allowConstructorFlags:i}]=e.options,a=[];if(i){let e=i.join(``).replace(RegExp(`[${n}]`,`gu`),``);e&&(a=[...new Set(e)])}function o(t,n){e.report({node:t,messageId:`regexMessage`,data:{message:n}})}function s(e){return e&&e.type===`Literal`&&typeof e.value==`string`}function c(e){return e.arguments.length<2?``:s(e.arguments[1])?e.arguments[1].value:null}function l(e,n){try{return t.validatePattern(e,void 0,void 0,n),null}catch(e){return e.message}}function u(e,t,n){let r=[];if(typeof t==`string`)for(let e of t)n.includes(e)&&r.push(e);return e&&e.includes(`u`)&&e.includes(`v`)?`Regex 'u' and 'v' flags cannot be used together`:r.length>0?`Duplicate flags ('${r.join(``)}') supplied to RegExp constructor`:t?`Invalid flags supplied to RegExp constructor '${t}'`:null}return{"CallExpression, NewExpression"(e){if(e.callee.type!==`Identifier`||e.callee.name!==`RegExp`||!r.isGlobalReference(e.callee))return;let t=c(e),i=t,d=a.length>0?n.split(``).concat(a):n.split(``);t&&d.forEach(e=>{i=i.replace(e,``)});let f=u(t,i,d);if(f){o(e,f);return}if(!s(e.arguments[0]))return;let p=e.arguments[0].value;f=t===null?l(p,{unicode:!0,unicodeSets:!1})&&l(p,{unicode:!1,unicodeSets:!0})&&l(p,{unicode:!1,unicodeSets:!1}):l(p,{unicode:t.includes(`u`),unicodeSets:t.includes(`v`)}),f&&o(e,f)}}}},xh}var wh,Th;function Eh(){if(Th)return wh;Th=1;let e=$();function t(e,t){return e.origin===`function`&&t.type===`ArrowFunctionExpression`}return wh={meta:{type:`suggestion`,defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-invalid-this`},schema:[{type:`object`,properties:{capIsConstructor:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedThis:`Unexpected 'this'.`}},create(n){let[{capIsConstructor:r}]=n.options,i=[],a=n.sourceCode;return i.getCurrent=function(){let t=this.at(-1);return t.init||(t.init=!0,t.valid=!e.isDefaultThisBinding(t.node,a,{capIsConstructor:r})),t},{onCodePathStart(e,r){if(!t(e,r)){if(e.origin===`program`){let e=a.getScope(r),t=n.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:r,valid:!(r.sourceType===`module`||t.globalReturn&&e.childScopes[0].isStrict)})}else i.push({init:!a.getScope(r).isStrict,node:r,valid:!0})}},onCodePathEnd(e,n){t(e,n)||i.pop()},"AccessorProperty > *.value"(e){i.push({init:!0,node:e,valid:!0})},"AccessorProperty > *.value:exit"(){i.pop()},ThisExpression(e){if(e.parent.type===`AccessorProperty`&&e.parent.value===e)return;let t=i.getCurrent();t&&!t.valid&&n.report({node:e,messageId:`unexpectedThis`})}}}},wh}var Dh,Oh;function kh(){if(Oh)return Dh;Oh=1;let e=$(),t=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,n=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gu,r=/[\u2028\u2029]/gu,i=e.createGlobalLinebreakMatcher();return Dh={meta:{type:`problem`,defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:`Disallow irregular whitespace`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-irregular-whitespace`},schema:[{type:`object`,properties:{skipComments:{type:`boolean`},skipStrings:{type:`boolean`},skipTemplates:{type:`boolean`},skipRegExps:{type:`boolean`},skipJSXText:{type:`boolean`}},additionalProperties:!1}],messages:{noIrregularWhitespace:`Irregular whitespace not allowed.`}},create(e){let[{skipComments:a,skipStrings:o,skipRegExps:s,skipTemplates:c,skipJSXText:l}]=e.options,u=e.sourceCode,d=u.getAllComments(),f=[];function p(e){let t=e.loc.start,n=e.loc.end;f=f.filter(({loc:{start:e}})=>e.line<t.line||e.line===t.line&&e.column<t.column||e.line===n.line&&e.column>=n.column||e.line>n.line)}function m(e){let n=o&&typeof e.value==`string`,r=s&&!!e.regex;(n||r)&&t.test(e.raw)&&p(e)}function h(e){typeof e.value.raw==`string`&&t.test(e.value.raw)&&p(e)}function g(e){t.test(e.value)&&p(e)}function _(e){t.test(e.raw)&&p(e)}function v(e){u.lines.forEach((t,r)=>{let i=r+1,a;for(;(a=n.exec(t))!==null;)f.push({node:e,messageId:`noIrregularWhitespace`,loc:{start:{line:i,column:a.index},end:{line:i,column:a.index+a[0].length}}})})}function y(e){let t=u.getText(),n=u.lines,a=t.match(i),o=-1,s;for(;(s=r.exec(t))!==null;){let t=a.indexOf(s[0],o+1)||0;f.push({node:e,messageId:`noIrregularWhitespace`,loc:{start:{line:t+1,column:n[t].length},end:{line:t+2,column:0}}}),o=t}}function b(){}let x={};return t.test(u.getText())?(x.Program=function(e){v(e),y(e)},x.Literal=m,x.TemplateElement=c?h:b,x.JSXText=l?_:b,x[`Program:exit`]=function(){a&&d.forEach(g),f.forEach(t=>e.report(t))}):x.Program=b,x}},Dh}var Ah,jh;function Mh(){if(jh)return Ah;jh=1;let{getStaticPropertyName:e}=$();return Ah={meta:{type:`suggestion`,docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-iterator`},schema:[],messages:{noIterator:`Reserved name '__iterator__'.`}},create(t){return{MemberExpression(n){e(n)===`__iterator__`&&t.report({node:n,messageId:`noIterator`})}}}},Ah}var Nh,Ph;function Fh(){if(Ph)return Nh;Ph=1;let e=$();return Nh={meta:{type:`suggestion`,docs:{description:`Disallow labels that share a name with a variable`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-label-var`},schema:[],messages:{identifierClashWithLabel:`Found identifier with same name as label.`}},create(t){let n=t.sourceCode;function r(t,n){return e.getVariableByName(t,n)!==null}return{LabeledStatement(e){r(n.getScope(e),e.label.name)&&t.report({node:e,messageId:`identifierClashWithLabel`})}}}},Nh}var Ih,Lh;function Rh(){if(Lh)return Ih;Lh=1;let e=$();return Ih={meta:{type:`suggestion`,defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:`Disallow labeled statements`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-labels`},schema:[{type:`object`,properties:{allowLoop:{type:`boolean`},allowSwitch:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedLabel:`Unexpected labeled statement.`,unexpectedLabelInBreak:`Unexpected label in break statement.`,unexpectedLabelInContinue:`Unexpected label in continue statement.`}},create(t){let[{allowLoop:n,allowSwitch:r}]=t.options,i=null;function a(t){return e.isLoop(t)?`loop`:t.type===`SwitchStatement`?`switch`:`other`}function o(e){switch(e){case`loop`:return n;case`switch`:return r;default:return!1}}function s(e){let t=i;for(;t;){if(t.label===e)return t.kind;t=t.upper}
169
+ /* c8 ignore next */
170
+ return`other`}return{LabeledStatement(e){i={label:e.label.name,kind:a(e.body),upper:i}},"LabeledStatement:exit"(e){o(i.kind)||t.report({node:e,messageId:`unexpectedLabel`}),i=i.upper},BreakStatement(e){e.label&&!o(s(e.label.name))&&t.report({node:e,messageId:`unexpectedLabelInBreak`})},ContinueStatement(e){e.label&&!o(s(e.label.name))&&t.report({node:e,messageId:`unexpectedLabelInContinue`})}}}},Ih}var zh,Bh;function Vh(){return Bh||(Bh=1,zh={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary nested blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-lone-blocks`},schema:[],messages:{redundantBlock:`Block is redundant.`,redundantNestedBlock:`Nested block is redundant.`}},create(e){let t=[],n,r=e.sourceCode;function i(t){let n=t.parent.type===`BlockStatement`||t.parent.type===`StaticBlock`?`redundantNestedBlock`:`redundantBlock`;e.report({node:t,messageId:n})}function a(e){return e.parent.type===`BlockStatement`||e.parent.type===`StaticBlock`||e.parent.type===`Program`||e.parent.type===`SwitchCase`&&(e.parent.consequent[0]!==e||e.parent.consequent.length!==1)}function o(e){if(t.length===0)return;let n=e.parent;t.at(-1)===n&&t.pop()}return n={BlockStatement(e){a(e)&&i(e)}},e.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(e){a(e)&&t.push(e)},"BlockStatement:exit"(e){t.length>0&&t.at(-1)===e?(t.pop(),i(e)):(e.parent.type===`BlockStatement`||e.parent.type===`StaticBlock`)&&e.parent.body.length===1&&i(e)}},n.VariableDeclaration=function(e){e.kind!==`var`&&o(e)},n.FunctionDeclaration=function(e){r.getScope(e).isStrict&&o(e)},n.ClassDeclaration=o),n}}),zh}var Hh,Uh;function Wh(){if(Uh)return Hh;Uh=1;let e=$();return Hh={meta:{type:`suggestion`,docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-lonely-if`},schema:[],fixable:`code`,messages:{unexpectedLonelyIf:`Unexpected if as the only statement in an else block.`}},create(t){let n=t.sourceCode;return{IfStatement(r){let i=r.parent,a=i.parent;i&&i.type===`BlockStatement`&&i.body.length===1&&!e.areBracesNecessary(i,n)&&a&&a.type===`IfStatement`&&i===a.alternate&&t.report({node:r,messageId:`unexpectedLonelyIf`,fix(e){let t=n.getFirstToken(i),a=n.getLastToken(i),o=n.getTokenBefore(t),s=n.getTokenAfter(a),c=n.getLastToken(r.consequent),l=n.getText();return l.slice(t.range[1],r.range[0]).trim()||l.slice(r.range[1],a.range[0]).trim()||r.consequent.type!==`BlockStatement`&&c.value!==`;`&&s&&(r.consequent.loc.end.line===s.loc.start.line||/^[([/+`-]/u.test(s.value)||c.value===`++`||c.value===`--`)?null:e.replaceTextRange([t.range[0],a.range[1]],(o.range[1]===t.range[0]?` `:``)+n.getText(r))}})}}}},Hh}var Gh,Kh;function qh(){if(Kh)return Gh;Kh=1;let e=/* @__PURE__ */ new Set([`const`,`using`,`await using`]);function t(e){return(e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`)&&e.parent&&e.parent.type===`CallExpression`&&e.parent.callee===e}return Gh={meta:{type:`suggestion`,docs:{description:`Disallow function declarations that contain unsafe references inside loop statements`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-loop-func`},schema:[],messages:{unsafeRefs:`Function declared in a loop contains unsafe references to variable(s) {{ varNames }}.`}},create(n){let r=/* @__PURE__ */ new Set,i=n.sourceCode;function a(e){for(let t=e;t.parent;t=t.parent){let e=t.parent;switch(e.type){case`WhileStatement`:case`DoWhileStatement`:return e;case`ForStatement`:if(e.init!==t)return e;break;case`ForInStatement`:case`ForOfStatement`:if(e.right!==t)return e;break;case`ArrowFunctionExpression`:case`FunctionExpression`:case`FunctionDeclaration`:if(r.has(e))break;return null}}return null}function o(e,t){let n=t?t.range[1]:0,r=e,i=e;for(;i&&i.range[0]>=n;)r=i,i=a(i);return r}function s(t,n){let r=n.resolved,i=r&&r.defs[0],a=i&&i.parent,s=a&&a.type===`VariableDeclaration`?a.kind:``;if(e.has(s)||s===`let`&&a.range[0]>t.range[0]&&a.range[1]<t.range[1])return!0;let c=o(t,s===`let`?a:null).range[0];function l(e){let t=e.identifier;return!e.isWrite()||r.scope.variableScope===e.from.variableScope&&t.range[0]<c}return!!r&&r.references.every(l)}function c(e){let o=a(e);if(!o)return;let c=i.getScope(e).through;if(!(e.async||e.generator)&&t(e)&&!(e.type===`FunctionExpression`&&e.id&&c.some(t=>t.identifier.name===e.id.name))){r.add(e);return}let l=[...new Set(c.filter(e=>e.resolved&&!s(o,e)).map(e=>e.identifier.name))];l.length>0&&n.report({node:e,messageId:`unsafeRefs`,data:{varNames:`'${l.join(`', '`)}'`}})}return{ArrowFunctionExpression:c,FunctionExpression:c,FunctionDeclaration:c}}},Gh}var Jh,Yh;function Xh(){if(Yh)return Jh;Yh=1;class e{coefficient;magnitude;constructor(e,t){this.coefficient=e,this.magnitude=t}
171
+ /* c8 ignore start -- debug only */
172
+ toString(){return`${this.coefficient[0]}${this.coefficient.length>1?`.${this.coefficient.slice(1)}`:``}e${this.magnitude}`}}function t(e){return typeof e.value==`number`}function n(e){return e.raw.replace(/_/gu,``)}function r(e){return[`0x`,`0X`,`0b`,`0B`,`0o`,`0O`].every(t=>!e.raw.startsWith(t))&&!/^0[0-7]+$/u.test(e.raw)}function i(e){let t=n(e).toUpperCase(),r;return r=t.startsWith(`0B`)?2:t.startsWith(`0X`)?16:8,!t.endsWith(e.value.toString(r).toUpperCase())}function a(e){for(let t=0;t<e.length;t++)if(e[t]!==`0`)return e.slice(t);return e}function o(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==`0`)return e.slice(0,t+1);return e}function s(t){let n=a(t),r=o(n);return new e(r,n.length-1)}function c(t){let n=a(t),r=n.indexOf(`.`);switch(r){case 0:{let t=a(n.slice(1));return new e(t,t.length-n.length)}case-1:return new e(n,n.length-1);default:return new e(n.replace(`.`,``),r-1)}}function l(e,t){let n=e.split(`e`),r=n[0],i=t||e.includes(`.`)?c(r):s(r);return n.length>1&&(i.magnitude+=parseInt(n[1],10)),i}function u(e){let t=l(n(e).toLowerCase().replace(/\.(?=e|$)/u,``),!1);if(e.value===0)return!/^0+$/u.test(t.coefficient);let r=t.coefficient.length;if(r>100)return!0;let i=l(e.value.toPrecision(r),!0);return t.magnitude!==i.magnitude||t.coefficient!==i.coefficient}function d(e){return r(e)?u(e):i(e)}return Jh={meta:{type:`problem`,docs:{description:`Disallow literal numbers that lose precision`,dialects:[`JavaScript`,`TypeScript`],recommended:!0,url:`https://eslint.org/docs/latest/rules/no-loss-of-precision`},schema:[],messages:{noLossOfPrecision:`This number literal will lose precision at runtime.`}},create(e){return{Literal(n){t(n)&&d(n)&&e.report({messageId:`noLossOfPrecision`,node:n})}}}},Jh}var Zh,Qh;function $h(){if(Qh)return Zh;Qh=1;let e=$(),t=2**32-1;function n(e){return typeof e==`string`?BigInt(e.slice(0,-1)):e}function r(e){return e.parent.type===`TSEnumMember`}function i(e){let t=e.parent;for(;t.parent.type===`TSUnionType`;)t=t.parent;return t.parent.type===`TSTypeAliasDeclaration`}function a(e){return!!(e.parent?.type===`PropertyDefinition`&&e.parent.readonly)}function o(e){let t=e.parent;for(;t.parent.type===`TSUnionType`||t.parent.type===`TSIntersectionType`;)t=t.parent;return t.parent.type===`TSIndexedAccessType`}return Zh={meta:{type:`suggestion`,docs:{description:`Disallow magic numbers`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-magic-numbers`},schema:[{type:`object`,properties:{detectObjects:{type:`boolean`},enforceConst:{type:`boolean`},ignore:{type:`array`,items:{anyOf:[{type:`number`},{type:`string`,pattern:`^[+-]?(?:0|[1-9][0-9]*)n$`}]},uniqueItems:!0},ignoreArrayIndexes:{type:`boolean`},ignoreDefaultValues:{type:`boolean`},ignoreClassFieldInitialValues:{type:`boolean`},ignoreEnums:{type:`boolean`},ignoreNumericLiteralTypes:{type:`boolean`},ignoreReadonlyClassProperties:{type:`boolean`},ignoreTypeIndexes:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{detectObjects:!1,enforceConst:!1,ignore:[],ignoreArrayIndexes:!1,ignoreDefaultValues:!1,ignoreClassFieldInitialValues:!1,ignoreEnums:!1,ignoreNumericLiteralTypes:!1,ignoreReadonlyClassProperties:!1,ignoreTypeIndexes:!1}],messages:{useConst:`Number constants declarations must use 'const'.`,noMagic:`No magic number: {{raw}}.`}},create(s){let{detectObjects:c,enforceConst:l,ignore:u,ignoreArrayIndexes:d,ignoreDefaultValues:f,ignoreClassFieldInitialValues:p,ignoreEnums:m,ignoreNumericLiteralTypes:h,ignoreReadonlyClassProperties:g,ignoreTypeIndexes:_}=s.options[0],v=new Set(u.map(n)),y=c?[]:[`ObjectExpression`,`Property`,`AssignmentExpression`];function b(e){return v.has(e)}function x(e){let t=e.parent;return t.type===`AssignmentPattern`&&t.right===e}function S(e){let t=e.parent;return t.type===`PropertyDefinition`&&t.value===e}function C(t){let n=t.parent;return n.type===`CallExpression`&&t===n.arguments[1]&&(e.isSpecificId(n.callee,`parseInt`)||e.isSpecificMemberAccess(n.callee,`Number`,`parseInt`))}function w(e){return e.parent.type.indexOf(`JSX`)===0}function T(e,n){let r=e.parent;return r.type===`MemberExpression`&&r.property===e&&(Number.isInteger(n)||typeof n==`bigint`)&&n>=0&&n<t}return{Literal(t){if(!e.isNumericLiteral(t))return;let n,c,u;t.parent.type===`UnaryExpression`&&[`-`,`+`].includes(t.parent.operator)?(n=t.parent,c=t.parent.operator===`-`?-t.value:t.value,u=`${t.parent.operator}${t.raw}`):(n=t,c=t.value,u=t.raw);let v=n.parent;b(c)||f&&x(n)||p&&S(n)||m&&r(n)||h&&i(n)||_&&o(n)||g&&a(n)||C(n)||w(n)||d&&T(n,c)||(v.type===`VariableDeclarator`?l&&v.parent.kind!==`const`&&s.report({node:n,messageId:`useConst`}):(!y.includes(v.type)||v.type===`AssignmentExpression`&&v.left.type===`Identifier`)&&s.report({node:n,messageId:`noMagic`,data:{raw:u}}))}}}},Zh}var eg,tg;function ng(){return tg||(tg=1,eg=function(e){return/^\p{M}$/u.test(String.fromCodePoint(e))}),eg}var rg,ig;function ag(){return ig||(ig=1,rg=function(e){return e>=127995&&e<=127999}),rg}var og,sg;function cg(){return sg||(sg=1,og=function(e){return e>=127462&&e<=127487}),og}var lg,ug;function dg(){return ug||(ug=1,lg=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),lg}var fg,pg;function mg(){return pg||(pg=1,fg={isCombiningCharacter:ng(),isEmojiModifier:ag(),isRegionalIndicatorSymbol:cg(),isSurrogatePair:dg()}),fg}var hg,gg;function _g(){if(gg)return hg;gg=1;let{RegExpValidator:e}=bp(),t=2025;function n(n,r,i=`u`){if(i===`u`&&n<=5||i===`v`&&n<=2023)return!1;let a=new e({ecmaVersion:Math.min(n,t)});try{a.validatePattern(r,void 0,void 0,i===`u`?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}return hg={isValidWithUnicodeFlag:n,REGEXPP_LATEST_ECMA_VERSION:t},hg}var vg,yg;function bg(){if(yg)return vg;yg=1;class e{constructor(e,t){this.start=e,this.source=t}get end(){return this.start+this.length}get length(){return this.source.length}}class t{constructor(e){this.source=e,this.pos=0}advance(e){this.pos+=e}read(e=0,t=1){let n=e+this.pos;return this.source.slice(n,n+t)}}let n={__proto__:null,b:`\b`,f:`\f`,n:`
173
+ `,r:`\r`,t:` `,v:`\v`};function r(e,t){let n=e.read(0,t),r=parseInt(n,16);return e.advance(t),String.fromCharCode(r)}function i(e){let t=/\{(?<hexDigits>[\dA-F]+)\}/iuy;t.lastIndex=e.pos;let n=t.exec(e.source);if(n){let r=parseInt(n.groups.hexDigits,16);return e.pos=t.lastIndex,String.fromCodePoint(r)}return r(e,4)}function a(e,t){let[n]=e.read(-1,t).match(/^[0-7]+/u);e.advance(n.length-1);let r=parseInt(n,8);return String.fromCharCode(r)}function o(e){let t=e.read(1);e.advance(2);let o=n[t];if(o)return o;switch(t){case`x`:return r(e,2);case`u`:return i(e);case`\r`:e.read()===`
174
+ `&&e.advance(1);case`
175
+ `:case`\u2028`:case`\u2029`:return``;case`0`:case`1`:case`2`:case`3`:return a(e,3);case`4`:case`5`:case`6`:case`7`:return a(e,2);default:return t}}function*s(t){let n=t.pos,r=o(t),i=t.pos,a=t.source.slice(n,i);switch(r.length){case 0:break;case 1:yield new e(n,a);break;default:yield new e(n,a),yield new e(n,a)}}function c(n){let r=new t(n),i=r.read();r.advance(1);let a=[];for(;;){let t=r.read();if(t===i)break;t===`\\`?a.push(...s(r)):(a.push(new e(r.pos,t)),r.advance(1))}return a}function l(n){let r=new t(n);r.advance(1);let i=[];for(;;){let t=r.read();if(t==="`"||t===`$`&&r.read(1)===`{`)break;if(t===`\\`)i.push(...s(r));else{let n;n=t===`\r`&&r.read(1)===`
176
+ `?`\r
177
+ `:t,i.push(new e(r.pos,n)),r.advance(n.length)}}return i}return vg={parseStringLiteral:c,parseTemplateToken:l},vg}var xg,Sg;function Cg(){if(Sg)return xg;Sg=1;let{CALL:e,CONSTRUCT:t,ReferenceTracker:n,getStaticValue:r,getStringIfConstant:i}=/*@__PURE__*/ tt(),{RegExpParser:a,visitRegExpAST:o}=bp(),{isCombiningCharacter:s,isEmojiModifier:c,isRegionalIndicatorSymbol:l,isSurrogatePair:u}=mg(),d=$(),{isValidWithUnicodeFlag:f}=_g(),{parseStringLiteral:p,parseTemplateToken:m}=bg();function*h(e){let t=[];for(let n of e)switch(n.type){case`Character`:t.push(n);break;case`CharacterClassRange`:t.push(n.min),yield t,t=[n.max];break;case`CharacterSet`:case`CharacterClass`:case`ClassStringDisjunction`:case`ExpressionCharacterClass`:t.length>0&&(yield t,t=[])}t.length>0&&(yield t)}function g(e){return/^\\u\{[\da-f]+\}$/iu.test(e.raw)}let _={*surrogatePairWithoutUFlag(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&u(r.value,n.value)&&!g(r)&&!g(n)&&(yield[r,n])}},*surrogatePair(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&u(r.value,n.value)&&(g(r)||g(n))&&(yield[r,n])}},*combiningClass(e,t){for(let[n,r]of e.entries()){let e=t[n-1];e&&r&&s(r.value)&&!s(e.value)&&(yield[e,r])}},*emojiModifier(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&c(n.value)&&!c(r.value)&&(yield[r,n])}},*regionalIndicatorSymbol(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&l(n.value)&&l(r.value)&&(yield[r,n])}},*zwj(e){let t=null;for(let[n,r]of e.entries()){let i=e[n-1],a=e[n+1];i&&r&&a&&r.value===8205&&i.value!==8205&&a.value!==8205&&(t?t.at(-1)===i?t.push(r,a):(yield t,t=e.slice(n-1,n+2)):t=e.slice(n-1,n+2))}t&&(yield t)}},v=Object.keys(_);function y(e,t){if(!e)return null;if(e.type===`Literal`&&e.regex)return{regex:e.regex};let n=r(e,t);return n?.value instanceof RegExp?null:n}function b(e,t){return t.startsWith(`\\`)?/(?<=^\\+).$/su.exec(t)?.[0]!==String.fromCodePoint(e.value):!1}function x(e,t,n){let r=e.start,i=e.end-1,a=n[r].start,o=n[i].end;return b(e,t.slice(a,o))}return xg={meta:{type:`problem`,defaultOptions:[{allowEscape:!1}],docs:{description:`Disallow characters which are made with multiple code points in character class syntax`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-misleading-character-class`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowEscape:{type:`boolean`}},additionalProperties:!1}],messages:{surrogatePairWithoutUFlag:`Unexpected surrogate pair in character class. Use 'u' flag.`,surrogatePair:`Unexpected surrogate pair in character class.`,combiningClass:`Unexpected combined character in character class.`,emojiModifier:`Unexpected modified Emoji in character class.`,regionalIndicatorSymbol:`Unexpected national flag in character class.`,zwj:`Unexpected joined character sequence in character class.`,suggestUnicodeFlag:`Add unicode 'u' flag to regex.`}},create(r){let[{allowEscape:s}]=r.options,c=r.sourceCode,l=new a,u=/* @__PURE__ */ new Set;function g(e,t,n,i){let a;try{a=l.parsePattern(t,0,t.length,{unicode:n.includes(`u`),unicodeSets:n.includes(`v`)})}catch{return}let u=null;function f(t){if(e.type===`Literal`&&e.regex)return b(t,t.raw);if(e.type===`Literal`&&typeof e.value==`string`){let n=e.raw;return u??=p(n),x(t,n,u)}if(d.isStaticTemplateLiteral(e)){let n=c.getText(e);return u??=m(n),x(t,n,u)}return!1}let g=/* @__PURE__ */ new Map;o(a,{onCharacterClassEnter(e){for(let t of h(e.elements)){let e;e=s?t.map(e=>f(e)?null:e):t;for(let n of v){let r=_[n](e,t);g.has(n)?g.get(n).push(...r):g.set(n,[...r])}}}});function y(t){return!d.isStaticTemplateLiteral(e)&&e.type!==`Literal`?t.length?[e.loc]:[]:t.map(t=>{let n=t[0].start,r=t.at(-1).end-1,i,a;if(e.type===`TemplateLiteral`){let t=c.getText(e),o=e.range[0];u??=m(t),i=o+u[n].start,a=o+u[r].end}else if(typeof e.value==`string`){let t=e.raw,o=e.range[0];u??=p(t),i=o+u[n].start,a=o+u[r].end}else{let t=e.range[0]+1;i=t+n,a=t+r+1}return{start:c.getLocFromIndex(i),end:c.getLocFromIndex(a)}})}for(let[t,n]of g){let a;t===`surrogatePairWithoutUFlag`&&(a=[{messageId:`suggestUnicodeFlag`,fix:i}]);let o=y(n);for(let n of o)r.report({node:e,loc:n,messageId:t,suggest:a})}}return{"Literal[regex]"(e){u.has(e)||g(e,e.regex.pattern,e.regex.flags,t=>f(r.languageOptions.ecmaVersion,e.regex.pattern)?t.insertTextAfter(e,`u`):null)},Program(a){let o=c.getScope(a),s=new n(o);for(let{node:n}of s.iterateGlobalReferences({RegExp:{[e]:!0,[t]:!0}})){let e,t,[a,s]=n.arguments,l=y(a,o);if(l){if(s)l.regex?(e=l.regex.pattern,u.add(a)):e=String(l.value),t=i(s,o);else{if(l.regex)continue;e=String(l.value),t=``}typeof t==`string`&&g(a,e,t,t=>{if(!f(r.languageOptions.ecmaVersion,e))return null;if(n.arguments.length===1){let e=c.getLastToken(n,{skip:1});return t.insertTextAfter(e,d.isCommaToken(e)?` "u",`:`, "u"`)}if(s.type===`Literal`&&typeof s.value==`string`||s.type===`TemplateLiteral`){let e=[s.range[0],s.range[1]-1];return t.insertTextAfterRange(e,`u`)}return null})}}}}}},xg}var wg,Tg;function Eg(){if(Tg)return wg;Tg=1;let e=$(),t=[`+`,`-`,`*`,`/`,`%`,`**`],n=[`&`,`|`,`^`,`~`,`<<`,`>>`,`>>>`],r=[`==`,`!=`,`===`,`!==`,`>`,`>=`,`<`,`<=`],i=[`&&`,`||`],a=[`in`,`instanceof`],o=[].concat(t,n,r,i,a,[`?:`],[`??`]),s=[t,n,r,i,a],c=/^(?:Binary|Logical|Conditional)Expression$/u;function l(e={}){return{groups:e.groups&&e.groups.length>0?e.groups:s,allowSamePrecedence:e.allowSamePrecedence!==!1}}function u(e,t,n){return e.some(e=>e.includes(t)&&e.includes(n))}function d(e){return e.type===`ConditionalExpression`?e.test:e.left}return wg={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-mixed-operators`,url:`https://eslint.style/rules/no-mixed-operators`}}]},type:`suggestion`,docs:{description:`Disallow mixed binary operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-operators`},schema:[{type:`object`,properties:{groups:{type:`array`,items:{type:`array`,items:{enum:o},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:`Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations.`}},create(t){let n=t.sourceCode,r=l(t.options[0]);function i(t){let n=t,i=t.parent;return!u(r.groups,n.operator,i.type===`ConditionalExpression`?`?:`:i.operator)||r.allowSamePrecedence&&e.getPrecedence(n)===e.getPrecedence(i)}function a(t){return t.operator!==t.parent.operator&&!e.isParenthesised(n,t)}function o(t){return n.getTokenAfter(d(t),e.isNotClosingParenToken)}function s(e){let n=e.parent,r=d(n)===e?e:n,i=d(n)===e?n:e,a={leftOperator:r.operator||`?:`,rightOperator:i.operator||`?:`};t.report({node:r,loc:o(r).loc,messageId:`unexpectedMixedOperator`,data:a}),t.report({node:i,loc:o(i).loc,messageId:`unexpectedMixedOperator`,data:a})}function f(e){c.test(e.parent.type)&&a(e)&&!i(e)&&s(e)}return{BinaryExpression:f,LogicalExpression:f}}},wg}var Dg,Og;function kg(){return Og||(Og=1,Dg={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-mixed-requires`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md`}}]},type:`suggestion`,docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-requires`},schema:[{oneOf:[{type:`boolean`},{type:`object`,properties:{grouping:{type:`boolean`},allowCall:{type:`boolean`}},additionalProperties:!1}]}],messages:{noMixRequire:`Do not mix 'require' and other declarations.`,noMixCoreModuleFileComputed:`Do not mix core, module, file and computed requires.`}},create(e){let t=e.options[0],n=!1,r=!1;typeof t==`object`?(n=t.grouping,r=t.allowCall):n=!!t;function i(){return/* @__PURE__ */ `assert.buffer.child_process.cluster.crypto.dgram.dns.domain.events.fs.http.https.net.os.path.punycode.querystring.readline.repl.smalloc.stream.string_decoder.tls.tty.url.util.v8.vm.zlib`.split(`.`)}let a=i(),o=`require`,s=`uninitialized`,c=`other`,l=`computed`;function u(e){return e?e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`require`?o:r&&e.type===`CallExpression`&&e.callee.type===`CallExpression`?u(e.callee):e.type===`MemberExpression`?u(e.object):c:s}function d(e){if(e.type===`MemberExpression`)return d(e.object);if(e.arguments.length===0)return l;let t=e.arguments[0];return t.type!==`Literal`||typeof t.value!=`string`?l:a.includes(t.value)?`core`:/^\.{0,2}\//u.test(t.value)?`file`:`module`}function f(e){let t={};return e.forEach(e=>{let n=u(e.init);t[n]=!0}),!!(t[o]&&(t[s]||t[c]))}function p(e){let t={};return e.forEach(e=>{u(e.init)===o&&(t[d(e.init)]=!0)}),Object.keys(t).length<=1}return{VariableDeclaration(t){f(t.declarations)?e.report({node:t,messageId:`noMixRequire`}):n&&!p(t.declarations)&&e.report({node:t,messageId:`noMixCoreModuleFileComputed`})}}}}),Dg}var Ag,jg;function Mg(){return jg||(jg=1,Ag={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-mixed-spaces-and-tabs`,url:`https://eslint.style/rules/no-mixed-spaces-and-tabs`}}]},type:`layout`,docs:{description:`Disallow mixed spaces and tabs for indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs`},schema:[{enum:[`smart-tabs`,!0,!1]}],messages:{mixedSpacesAndTabs:`Mixed spaces and tabs.`}},create(e){let t=e.sourceCode,n;switch(e.options[0]){case!0:case`smart-tabs`:n=!0;break;default:n=!1}return{"Program:exit"(r){let i=t.lines,a=t.getAllComments(),o=/* @__PURE__ */ new Set;a.forEach(e=>{for(let t=e.loc.start.line+1;t<=e.loc.end.line;t++)o.add(t)});let s=/^(?=( +|\t+))\1(?:\t| )/u;n&&(s=/^(?=(\t*))\1(?=( +))\2\t/u),i.forEach((n,i)=>{let a=s.exec(n);if(a){let n=i+1,s={start:{line:n,column:a[0].length-2},end:{line:n,column:a[0].length}};if(!o.has(n)){let n=t.getNodeByRangeIndex(t.getIndexFromLoc(s.start));n&&[`Literal`,`TemplateElement`].includes(n.type)||e.report({node:r,loc:s,messageId:`mixedSpacesAndTabs`})}}})}}}}),Ag}var Ng,Pg;function Fg(){return Pg||(Pg=1,Ng={meta:{type:`suggestion`,defaultOptions:[{ignoreNonDeclaration:!1}],docs:{description:`Disallow use of chained assignment expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-multi-assign`},schema:[{type:`object`,properties:{ignoreNonDeclaration:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedChain:`Unexpected chained assignment.`}},create(e){let[{ignoreNonDeclaration:t}]=e.options,n=[`VariableDeclarator > AssignmentExpression.init`,`PropertyDefinition > AssignmentExpression.value`];return t||n.push(`AssignmentExpression > AssignmentExpression.right`),{[n](t){e.report({node:t,messageId:`unexpectedChain`})}}}}),Ng}var Ig,Lg;function Rg(){if(Lg)return Ig;Lg=1;let e=$();return Ig={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-multi-spaces`,url:`https://eslint.style/rules/no-multi-spaces`}}]},type:`layout`,docs:{description:`Disallow multiple spaces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-multi-spaces`},fixable:`whitespace`,schema:[{type:`object`,properties:{exceptions:{type:`object`,patternProperties:{"^([A-Z][a-z]*)+$":{type:`boolean`}},additionalProperties:!1},ignoreEOLComments:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{multipleSpaces:`Multiple spaces found before '{{displayValue}}'.`}},create(t){let n=t.sourceCode,r=t.options[0]||{},i=r.ignoreEOLComments,a=Object.assign({Property:!0},r.exceptions),o=Object.keys(a).some(e=>a[e]);function s(e){let t=e.value.split(`
178
+ `),n=t[0],r=`${n.slice(0,12)}...`;return t.length===1&&n.length<=12?n:r}return{Program(){n.tokensAndComments.forEach((r,c,l)=>{if(c===l.length-1)return;let u=l[c+1];if(!n.text.slice(r.range[1],u.range[0]).includes(` `)||r.loc.end.line<u.loc.start.line||i&&e.isCommentToken(u)&&(c===l.length-2||u.loc.end.line<l[c+2].loc.start.line))return;if(o){let e=n.getNodeByRangeIndex(u.range[0]-1);if(e&&a[e.type])return}let d;d=u.type===`Block`?`/*${s(u)}*/`:u.type===`Line`?`//${s(u)}`:u.value,t.report({node:u,loc:{start:r.loc.end,end:u.loc.start},messageId:`multipleSpaces`,data:{displayValue:d},fix:e=>e.replaceTextRange([r.range[1],u.range[0]],` `)})})}}}},Ig}var zg,Bg;function Vg(){if(Bg)return zg;Bg=1;let e=$();return zg={meta:{type:`suggestion`,docs:{description:`Disallow multiline strings`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-multi-str`},schema:[],messages:{multilineString:`Multiline support is limited to browsers supporting ES5 only.`}},create(t){function n(e){return e.type.indexOf(`JSX`)===0}return{Literal(r){e.LINEBREAK_MATCHER.test(r.raw)&&!n(r.parent)&&t.report({node:r,messageId:`multilineString`})}}}},zg}var Hg,Ug;function Wg(){return Ug||(Ug=1,Hg={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-multiple-empty-lines`,url:`https://eslint.style/rules/no-multiple-empty-lines`}}]},type:`layout`,docs:{description:`Disallow multiple empty lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-multiple-empty-lines`},fixable:`whitespace`,schema:[{type:`object`,properties:{max:{type:`integer`,minimum:0},maxEOF:{type:`integer`,minimum:0},maxBOF:{type:`integer`,minimum:0}},required:[`max`],additionalProperties:!1}],messages:{blankBeginningOfFile:`Too many blank lines at the beginning of file. Max of {{max}} allowed.`,blankEndOfFile:`Too many blank lines at the end of file. Max of {{max}} allowed.`,consecutiveBlank:`More than {{max}} blank {{pluralizedLines}} not allowed.`}},create(e){let t=2,n=t,r=t;e.options.length&&(t=e.options[0].max,n=e.options[0].maxEOF===void 0?t:e.options[0].maxEOF,r=e.options[0].maxBOF===void 0?t:e.options[0].maxBOF);let i=e.sourceCode,a=i.lines.at(-1)===``?i.lines.slice(0,-1):i.lines,o=/* @__PURE__ */ new Set;return{TemplateLiteral(e){e.quasis.forEach(e=>{for(let t=e.loc.start.line;t<e.loc.end.line;t++)o.add(t)})},"Program:exit"(s){return a.reduce((e,t,n)=>((t.trim()||o.has(n+1))&&e.push(n+1),e),[]).concat(a.length+1).reduce((o,c)=>{let l,u;return o===0?(l=`blankBeginningOfFile`,u=r):c===a.length+1?(l=`blankEndOfFile`,u=n):(l=`consecutiveBlank`,u=t),c-o-1>u&&e.report({node:s,loc:{start:{line:o+u+1,column:0},end:{line:c,column:0}},messageId:l,data:{max:u,pluralizedLines:u===1?`line`:`lines`},fix(e){let t=i.getIndexFromLoc({line:o+1,column:0}),n=c-u,r=n<=a.length?i.getIndexFromLoc({line:n,column:0}):i.text.length;return e.removeRange([t,r])}}),c},0)}}}}),Hg}var Gg,Kg;function qg(){return Kg||(Kg=1,Gg={meta:{type:`suggestion`,docs:{description:`Disallow assignments to native objects or read-only global variables`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-native-reassign`},deprecated:{message:`Renamed rule.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-global-assign`,url:`https://eslint.org/docs/rules/no-global-assign`}}]},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:`Read-only global '{{name}}' should not be modified.`}},create(e){let t=e.options[0],n=t&&t.exceptions||[],r=e.sourceCode;function i(t,n,r){let i=t.identifier;t.init===!1&&t.isWrite()&&(n===0||r[n-1].identifier!==i)&&e.report({node:i,messageId:`nativeReassign`,data:i})}function a(e){e.writeable===!1&&!n.includes(e.name)&&e.references.forEach(i)}return{Program(e){r.getScope(e).variables.forEach(a)}}}}),Gg}var Jg,Yg;function Xg(){return Yg||(Yg=1,Jg={meta:{type:`suggestion`,docs:{description:`Disallow negated conditions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-negated-condition`},schema:[],messages:{unexpectedNegated:`Unexpected negated condition.`}},create(e){function t(e){return e.alternate&&e.alternate.type!==`IfStatement`}function n(e){return e.type===`UnaryExpression`&&e.operator===`!`}function r(e){return e.type===`BinaryExpression`&&(e.operator===`!=`||e.operator===`!==`)}function i(e){return n(e.test)||r(e.test)}return{IfStatement(n){t(n)&&i(n)&&e.report({node:n,messageId:`unexpectedNegated`})},ConditionalExpression(t){i(t)&&e.report({node:t,messageId:`unexpectedNegated`})}}}}),Jg}var Zg,Qg;function $g(){return Qg||(Qg=1,Zg={meta:{type:`problem`,docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-negated-in-lhs`},deprecated:{message:`Renamed rule.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-unsafe-negation`,url:`https://eslint.org/docs/rules/no-unsafe-negation`}}]},schema:[],messages:{negatedLHS:`The 'in' expression's left operand is negated.`}},create(e){return{BinaryExpression(t){t.operator===`in`&&t.left.type===`UnaryExpression`&&t.left.operator===`!`&&e.report({node:t,messageId:`negatedLHS`})}}}}),Zg}var e_,t_;function n_(){return t_||(t_=1,e_={meta:{type:`suggestion`,docs:{description:`Disallow nested ternary expressions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-nested-ternary`},schema:[],messages:{noNestedTernary:`Do not nest ternary expressions.`}},create(e){return{ConditionalExpression(t){(t.alternate.type===`ConditionalExpression`||t.consequent.type===`ConditionalExpression`)&&e.report({node:t,messageId:`noNestedTernary`})}}}}),e_}var r_,i_;function a_(){return i_||(i_=1,r_={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new`},schema:[],messages:{noNewStatement:`Do not use 'new' for side effects.`}},create(e){return{"ExpressionStatement > NewExpression"(t){e.report({node:t.parent,messageId:`noNewStatement`})}}}}),r_}var o_,s_;function c_(){if(s_)return o_;s_=1;let e=$(),t=/* @__PURE__ */ new Set([`apply`,`bind`,`call`]);return o_={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-func`},schema:[],messages:{noFunctionConstructor:`The Function constructor is eval.`}},create(n){let r=n.sourceCode;return{"Program:exit"(i){let a=r.getScope(i).set.get(`Function`);a&&a.defs.length===0&&a.references.forEach(r=>{let i=r.identifier,{parent:a}=i,o;if(a){if(i===a.callee&&(a.type===`NewExpression`||a.type===`CallExpression`))o=a;else if(a.type===`MemberExpression`&&i===a.object&&t.has(e.getStaticPropertyName(a))){let e=a.parent.type===`ChainExpression`?a.parent:a;e.parent.type===`CallExpression`&&e.parent.callee===e&&(o=e.parent)}}o&&n.report({node:o,messageId:`noFunctionConstructor`})})}}}},o_}var l_,u_;function d_(){if(u_)return l_;u_=1;let e=[`Symbol`,`BigInt`];return l_={meta:{type:`problem`,docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-new-native-nonconstructor`},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(t){let n=t.sourceCode;return{"Program:exit"(r){let i=n.getScope(r);for(let n of e){let e=i.set.get(n);e&&e.defs.length===0&&e.references.forEach(e=>{let r=e.identifier,i=r.parent;i&&i.type===`NewExpression`&&i.callee===r&&t.report({node:r,messageId:`noNewNonconstructor`,data:{name:n}})})}}}}},l_}var f_,p_;function m_(){if(p_)return f_;p_=1;let e=$();return f_={meta:{type:`suggestion`,docs:{description:"Disallow `Object` constructors",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-object`},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:`https://eslint.org/blog/2023/09/eslint-v8.50.0-released/`,deprecatedSince:`8.50.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-object-constructor`,url:`https://eslint.org/docs/rules/no-object-constructor`}}]},schema:[],messages:{preferLiteral:`The object literal notation {} is preferable.`}},create(t){let n=t.sourceCode;return{NewExpression(r){let i=e.getVariableByName(n.getScope(r),r.callee.name);i&&i.identifiers.length>0||r.callee.name===`Object`&&t.report({node:r,messageId:`preferLiteral`})}}}},f_}var h_,g_;function __(){return g_||(g_=1,h_={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-new-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md`}}]},type:`suggestion`,docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-require`},schema:[],messages:{noNewRequire:`Unexpected use of new with require.`}},create(e){return{NewExpression(t){t.callee.type===`Identifier`&&t.callee.name===`require`&&e.report({node:t,messageId:`noNewRequire`})}}}}),h_}var v_,y_;function b_(){return y_||(y_=1,v_={meta:{type:`problem`,docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-symbol`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended`,deprecatedSince:`9.0.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-new-native-nonconstructor`,url:`https://eslint.org/docs/latest/rules/no-new-native-nonconstructor`}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(n){let r=t.getScope(n).set.get(`Symbol`);r&&r.defs.length===0&&r.references.forEach(t=>{let n=t.identifier,r=n.parent;r&&r.type===`NewExpression`&&r.callee===n&&e.report({node:n,messageId:`noNewSymbol`})})}}}}),v_}var x_,S_;function C_(){if(S_)return x_;S_=1;let{getVariableByName:e}=$();return x_={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-wrappers`},schema:[],messages:{noConstructor:`Do not use {{fn}} as a constructor.`}},create(t){let{sourceCode:n}=t;return{NewExpression(r){let i=[`String`,`Number`,`Boolean`],{name:a}=r.callee;if(i.includes(a)){let i=e(n.getScope(r),a);i&&i.identifiers.length===0&&t.report({node:r,messageId:`noConstructor`,data:{fn:a}})}}}}},x_}var w_,T_;function E_(){if(T_)return w_;T_=1;let e=/\\[89]/u;function t(e){return`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`}return w_={meta:{type:`suggestion`,docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape`},hasSuggestions:!0,schema:[],messages:{decimalEscape:`Don't use '{{decimalEscape}}' escape sequence.`,refactor:`Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.`,escapeBackslash:`Replace '{{original}}' with '{{replacement}}' to include the actual backslash character.`}},create(n){let r=n.sourceCode;function i(e,t,n){return{messageId:e,data:{original:r.getText().slice(...t),replacement:n},fix(e){return e.replaceTextRange(t,n)}}}return{Literal(a){if(typeof a.value!=`string`||!e.test(a.raw))return;let o=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy,s;for(;s=o.exec(a.raw);){let{previousEscape:e,decimalEscape:o}=s.groups,c=a.range[0]+s.index+s[0].length,l=c-o.length,u=[l,c],d=[];e===`\\0`?d.push(i(`refactor`,[l-e.length,c],`${t(`\0`)}${o[1]}`),i(`refactor`,u,t(o[1]))):d.push(i(`refactor`,u,o[1])),d.push(i(`escapeBackslash`,u,`\\${o}`)),n.report({node:a,loc:{start:r.getLocFromIndex(l),end:r.getLocFromIndex(c)},messageId:`decimalEscape`,data:{decimalEscape:o},suggest:d})}}}}},w_}var D_,O_;function k_(){if(O_)return D_;O_=1;let{CALL:e,CONSTRUCT:t,ReferenceTracker:n}=/*@__PURE__*/ tt(),r=$().getStaticPropertyName,i=[`Atomics`,`JSON`,`Math`,`Reflect`,`Intl`,`Temporal`,`globalThis`];function a(e){return e.type===`ChainExpression`?a(e.expression):e.type===`MemberExpression`?r(e):e.name}return D_={meta:{type:`problem`,docs:{description:`Disallow calling global object properties as functions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-obj-calls`},schema:[],messages:{unexpectedCall:`'{{name}}' is not a function.`,unexpectedRefCall:`'{{name}}' is reference to '{{ref}}', which is not a function.`}},create(r){let o=r.sourceCode;return{Program(s){let c=o.getScope(s),l=new n(c),u={};for(let n of i)u[n]={[e]:!0,[t]:!0};for(let{node:e,path:t}of l.iterateGlobalReferences(u)){let n=a(e.callee),i=t[0],o=n===i?`unexpectedCall`:`unexpectedRefCall`;r.report({node:e,messageId:o,data:{name:n,ref:i}})}}}}},D_}var A_,j_;function M_(){if(j_)return A_;j_=1;let{getVariableByName:e,isArrowToken:t,isStartOfExpressionStatement:n,needsPrecedingSemicolon:r}=$();return A_={meta:{type:`suggestion`,docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-object-constructor`},hasSuggestions:!0,schema:[],messages:{preferLiteral:`The object literal notation {} is preferable.`,useLiteral:`Replace with '{{replacement}}'.`,useLiteralAfterSemicolon:`Replace with '{{replacement}}', add preceding semicolon.`}},create(i){let a=i.sourceCode;function o(e){if(n(e))return!0;let r=a.getTokenBefore(e);return!!(r&&t(r))}function s(t){if(t.callee.type!==`Identifier`||t.callee.name!==`Object`||t.arguments.length)return;let n=e(a.getScope(t),`Object`);if(n&&n.identifiers.length===0){let e,n,s=`useLiteral`;o(t)?(e=`({})`,r(a,t)?(n=`;({})`,s=`useLiteralAfterSemicolon`):n=`({})`):e=n=`{}`,i.report({node:t,messageId:`preferLiteral`,suggest:[{messageId:s,data:{replacement:e},fix:e=>e.replaceText(t,n)}]})}}return{CallExpression:s,NewExpression:s}}},A_}var N_,P_;function F_(){return P_||(P_=1,N_={meta:{type:`suggestion`,docs:{description:`Disallow octal literals`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-octal`},schema:[],messages:{noOctal:`Octal literals should not be used.`}},create(e){return{Literal(t){typeof t.value==`number`&&/^0\d/u.test(t.raw)&&e.report({node:t,messageId:`noOctal`})}}}}),N_}var I_,L_;function R_(){return L_||(L_=1,I_={meta:{type:`suggestion`,docs:{description:`Disallow octal escape sequences in string literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-octal-escape`},schema:[],messages:{octalEscapeSequence:`Don't use octal: '\\{{sequence}}'. Use '\\u....' instead.`}},create(e){return{Literal(t){if(typeof t.value!=`string`)return;let n=t.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&e.report({node:t,messageId:`octalEscapeSequence`,data:{sequence:n[1]}})}}}}),I_}var z_,B_;function V_(){if(B_)return z_;B_=1;let e=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return z_={meta:{type:`suggestion`,docs:{description:`Disallow reassigning function parameters`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-param-reassign`},schema:[{oneOf:[{type:`object`,properties:{props:{enum:[!1]}},additionalProperties:!1},{type:`object`,properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:`array`,items:{type:`string`},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:`Assignment to function parameter '{{name}}'.`,assignmentToFunctionParamProp:`Assignment to property of function parameter '{{name}}'.`}},create(t){let n=t.options[0]&&t.options[0].props,r=t.options[0]&&t.options[0].ignorePropertyModificationsFor||[],i=t.options[0]&&t.options[0].ignorePropertyModificationsForRegex||[],a=t.sourceCode;function o(t){let n=t.identifier,r=n.parent;for(;r&&(!e.test(r.type)||r.type===`ForInStatement`||r.type===`ForOfStatement`);){switch(r.type){case`AssignmentExpression`:return r.left===n;case`UpdateExpression`:return!0;case`UnaryExpression`:if(r.operator===`delete`)return!0;break;case`ForInStatement`:case`ForOfStatement`:return r.left===n;case`CallExpression`:if(r.callee!==n)return!1;break;case`MemberExpression`:if(r.property===n)return!1;break;case`Property`:if(r.key===n)return!1;break;case`ConditionalExpression`:if(r.test===n)return!1}n=r,r=n.parent}return!1}function s(e){return r.includes(e)||i.some(t=>new RegExp(t,`u`).test(e))}function c(e,r,i){let a=e.identifier;a&&!e.init&&(r===0||i[r-1].identifier!==a)&&(e.isWrite()?t.report({node:a,messageId:`assignmentToFunctionParam`,data:{name:a.name}}):n&&o(e)&&!s(a.name)&&t.report({node:a,messageId:`assignmentToFunctionParamProp`,data:{name:a.name}}))}function l(e){e.defs[0].type===`Parameter`&&e.references.forEach(c)}function u(e){a.getDeclaredVariables(e).forEach(l)}return{"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},z_}var H_,U_;function W_(){return U_||(U_=1,H_={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-path-concat`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md`}}]},type:`suggestion`,docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-path-concat`},schema:[],messages:{usePathFunctions:`Use path.join() or path.resolve() instead of + to create paths.`}},create(e){let t=/^__(?:dir|file)name$/u;return{BinaryExpression(n){let r=n.left,i=n.right;n.operator===`+`&&(r.type===`Identifier`&&t.test(r.name)||i.type===`Identifier`&&t.test(i.name))&&e.report({node:n,messageId:`usePathFunctions`})}}}}),H_}var G_,K_;function q_(){if(K_)return G_;K_=1;function e(e){let t=e.parent;return t.type===`ForStatement`&&t.update===e}function t(n){let r=n.parent;return r.type===`SequenceExpression`?t(r):e(n)}return G_={meta:{type:`suggestion`,defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-plusplus`},schema:[{type:`object`,properties:{allowForLoopAfterthoughts:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedUnaryOp:`Unary operator '{{operator}}' used.`}},create(e){let[{allowForLoopAfterthoughts:n}]=e.options;return{UpdateExpression(r){n&&t(r)||e.report({node:r,messageId:`unexpectedUnaryOp`,data:{operator:r.operator}})}}}},G_}var J_,Y_;function X_(){return Y_||(Y_=1,J_={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-process-env`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md`}}]},type:`suggestion`,docs:{description:"Disallow the use of `process.env`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-process-env`},schema:[],messages:{unexpectedProcessEnv:`Unexpected use of process.env.`}},create(e){return{MemberExpression(t){let n=t.object.name,r=t.property.name;n===`process`&&!t.computed&&r&&r===`env`&&e.report({node:t,messageId:`unexpectedProcessEnv`})}}}}),J_}var Z_,Q_;function $_(){return Q_||(Q_=1,Z_={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-process-exit`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md`}}]},type:`suggestion`,docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-process-exit`},schema:[],messages:{noProcessExit:`Don't use process.exit(); throw an error instead.`}},create(e){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(t){e.report({node:t.parent,messageId:`noProcessExit`})}}}}),Z_}var ev,tv;function nv(){if(tv)return ev;tv=1;let e=$(),t=/* @__PURE__ */ new Set([`ArrowFunctionExpression`,`FunctionExpression`]);function n(e,t){let n=e.parent;return n.type===`NewExpression`&&n.arguments[0]===e&&n.callee.type===`Identifier`&&n.callee.name===`Promise`&&t.isGlobalReference(n.callee)}function r(e){return e.type===`UnaryExpression`&&e.operator===`void`}function i(t,n,r){let i=e.getPrecedence(n)<e.getPrecedence({type:`UnaryExpression`,operator:`void`})&&!e.isParenthesised(t,n),a=t.getTokenBefore(n,n.parent.type===`ArrowFunctionExpression`?e.isArrowToken:e=>e.type===`Keyword`&&e.value===`return`),o=t.getTokenAfter(a),s=a.value===`return`&&a.range[1]===o.range[0];return[r.insertTextBefore(o,`${s?` `:``}void ${i?`(`:``}`),r.insertTextAfter(n,i?`)`:``)]}function a(t,n,r){let i=t.getTokenBefore(n.body,e.isArrowToken),a=t.getTokenAfter(i),o=t.getLastToken(n);return[r.insertTextBefore(a,`{`),r.insertTextAfter(o,`}`)]}return ev={meta:{type:`problem`,defaultOptions:[{allowVoid:!1}],docs:{description:`Disallow returning values from Promise executor functions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-promise-executor-return`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowVoid:{type:`boolean`}},additionalProperties:!1}],messages:{returnsValue:`Return values from promise executor functions cannot be read.`,prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(e){let o=null,s=e.sourceCode,[{allowVoid:c}]=e.options;return{onCodePathStart(l,u){if(o={upper:o,shouldCheck:t.has(u.type)&&n(u,s)},o.shouldCheck&&u.type===`ArrowFunctionExpression`&&u.expression&&!(c&&r(u.body))){let t=[];c&&t.push({messageId:`prependVoid`,fix(e){return i(s,u.body,e)}}),(u.body.type!==`FunctionExpression`&&u.body.type!==`ClassExpression`||u.body.id)&&t.push({messageId:`wrapBraces`,fix(e){return a(s,u,e)}}),e.report({node:u.body,messageId:`returnsValue`,suggest:t})}},onCodePathEnd(){o=o.upper},ReturnStatement(t){o.shouldCheck&&t.argument&&(c?r(t.argument)||e.report({node:t,messageId:`returnsValue`,suggest:[{messageId:`prependVoid`,fix(e){return i(s,t.argument,e)}}]}):e.report({node:t,messageId:`returnsValue`}))}}}},ev}var rv,iv;function av(){if(iv)return rv;iv=1;let{getStaticPropertyName:e}=$();return rv={meta:{type:`suggestion`,docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-proto`},schema:[],messages:{unexpectedProto:`The '__proto__' property is deprecated.`}},create(t){return{MemberExpression(n){e(n)===`__proto__`&&t.report({node:n,messageId:`unexpectedProto`})}}}},rv}var ov,sv;function cv(){if(sv)return ov;sv=1;let e=$();function t(e){let n;if(e.type===`MemberExpression`)n=e.object;else if(e.type===`CallExpression`)n=e.callee;else return!1;return e.optional?!0:t(n)}return ov={meta:{type:`problem`,docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-prototype-builtins`},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:`Do not access Object.prototype method '{{prop}}' from target object.`,callObjectPrototype:`Call Object.prototype.{{prop}} explicitly.`}},create(n){let r=/* @__PURE__ */ new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`]);function i(i){let a=e.skipChainExpression(i.callee);if(a.type!==`MemberExpression`)return;let o=e.getStaticPropertyName(a);o!==null&&r.has(o)&&n.report({messageId:`prototypeBuildIn`,loc:a.property.loc,data:{prop:o},node:i,suggest:[{messageId:`callObjectPrototype`,data:{prop:o},fix(r){let s=n.sourceCode;if(t(i)||i.callee.type===`ChainExpression`||a.object.type===`Super`)return null;let c=e.getVariableByName(s.getScope(i),`Object`);if(!c||c.scope.type!==`global`||c.defs.length>0)return null;let l=s.getText(a.object);e.getPrecedence(a.object)<=e.getPrecedence({type:`SequenceExpression`})&&(l=`(${l})`);let u=s.getTokenAfter(i.callee,e.isOpeningParenToken),d=i.arguments.length===0?``:`, `;return[r.replaceText(a,`Object.prototype.${o}.call`),r.insertTextAfter(u,l+d)]}}]})}return{CallExpression:i}}},ov}var lv,uv;function dv(){if(uv)return lv;uv=1;let e=$();return lv={meta:{type:`suggestion`,defaultOptions:[{builtinGlobals:!0}],docs:{description:`Disallow variable redeclaration`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-redeclare`},messages:{redeclared:`'{{id}}' is already defined.`,redeclaredAsBuiltin:`'{{id}}' is already defined as a built-in global variable.`,redeclaredBySyntax:`'{{id}}' is already defined by a variable declaration.`},schema:[{type:`object`,properties:{builtinGlobals:{type:`boolean`}},additionalProperties:!1}]},create(t){let[{builtinGlobals:n}]=t.options,r=t.sourceCode;function i(t){let i=n&&(t.eslintImplicitGlobalSetting===`readonly`||t.eslintImplicitGlobalSetting===`writable`);if(+!!i+t.identifiers.length+(t.eslintExplicitGlobalComments?.length??0)<2)return null;let a=i?[{type:`builtin`}]:[];for(let e of t.identifiers)a.push({type:`syntax`,node:e,loc:e.loc});if(t.eslintExplicitGlobalComments)for(let n of t.eslintExplicitGlobalComments)a.push({type:`comment`,node:n,loc:e.getNameLocationInGlobalDirectiveComment(r,n,t.name)});return a}function a(e){for(let n of e.variables){let e=i(n);if(!e)continue;let[r,...a]=e,o=r.type===`builtin`?`redeclaredAsBuiltin`:`redeclaredBySyntax`,s={id:n.name};for(let{type:e,node:n,loc:i}of a){let a=e===r.type?`redeclared`:o;t.report({node:n,loc:i,messageId:a,data:s})}}}function o(e){let t=r.getScope(e);t.block===e&&a(t)}return{Program(e){let t=r.getScope(e);a(t),t.type===`global`&&t.childScopes[0]&&t.block===t.childScopes[0].block&&a(t.childScopes[0])},FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,StaticBlock:o,BlockStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,SwitchStatement:o}}},lv}var fv,pv;function mv(){if(pv)return fv;pv=1;let e=$(),t=bp(),n=new t.RegExpParser,r=/ {2}/u;function i(e){return e&&e.type===`Literal`&&typeof e.value==`string`}return fv={meta:{type:`suggestion`,docs:{description:`Disallow multiple spaces in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-regex-spaces`},schema:[],fixable:`code`,messages:{multipleSpaces:`Spaces are hard to count. Use {{{length}}}.`}},create(a){let o=a.sourceCode;function s(e,i,o,s,c){if(!r.test(o))return;let l=[],u;try{u=n.parsePattern(i,0,i.length,{unicode:c.includes(`u`),unicodeSets:c.includes(`v`)})}catch{return}t.visitRegExpAST(u,{onCharacterClassEnter(e){l.push(e)}});let d=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,f;for(;f=d.exec(i);){let{1:{length:t},index:n}=f;if(l.every(({start:e,end:t})=>n<e||t<=n)){a.report({node:e,messageId:`multipleSpaces`,data:{length:t},fix(e){return i===o?e.replaceTextRange([s+n,s+n+t],` {${t}}`):null}});return}}}function c(e){if(e.regex){let t=e.regex.pattern,n=e.raw.slice(1,e.raw.lastIndexOf(`/`)),r=e.range[0]+1,i=e.regex.flags;s(e,t,n,r,i)}}function l(t){let n=o.getScope(t),r=e.getVariableByName(n,`RegExp`),a=r&&r.defs.length>0,c=t.arguments[0];if(t.callee.type===`Identifier`&&t.callee.name===`RegExp`&&i(c)&&!a){let e=c.value,n=c.raw.slice(1,-1),r=c.range[0]+1,a;if(t.arguments.length<2)a=``;else{let e=t.arguments[1];if(i(e))a=e.value;else return}s(t,e,n,r,a)}}return{Literal:c,CallExpression:l,NewExpression:l}}},fv}var hv,gv;function _v(){if(gv)return hv;gv=1;let e=$();return hv={meta:{type:`suggestion`,docs:{description:`Disallow specified names in exports`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-exports`},schema:[{anyOf:[{type:`object`,properties:{restrictedNamedExports:{type:`array`,items:{type:`string`},uniqueItems:!0},restrictedNamedExportsPattern:{type:`string`}},additionalProperties:!1},{type:`object`,properties:{restrictedNamedExports:{type:`array`,items:{type:`string`,pattern:`^(?!default$)`},uniqueItems:!0},restrictedNamedExportsPattern:{type:`string`},restrictDefaultExports:{type:`object`,properties:{direct:{type:`boolean`},named:{type:`boolean`},defaultFrom:{type:`boolean`},namedFrom:{type:`boolean`},namespaceFrom:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1}]}],defaultOptions:[{}],messages:{restrictedNamed:`'{{name}}' is restricted from being used as an exported name.`,restrictedDefault:`Exporting 'default' is restricted.`}},create(t){let{restrictedNamedExports:n,restrictedNamedExportsPattern:r,restrictDefaultExports:i}=t.options[0],a=new Set(n),o=t.sourceCode;function s(n){let o=e.getModuleExportName(n),s=!1;if(r&&o!=="default"&&(s=new RegExp(r,`u`).test(o)),s||a.has(o))t.report({node:n,messageId:`restrictedNamed`,data:{name:o}});else if(o==="default"){if(n.parent.type===`ExportAllDeclaration`)i&&i.namespaceFrom&&t.report({node:n,messageId:`restrictedDefault`});else{let r=!!n.parent.parent.source,a=e.getModuleExportName(n.parent.local);if(!r&&i&&i.named){t.report({node:n,messageId:`restrictedDefault`});return}r&&i&&(a==="default"&&i.defaultFrom||a!=="default"&&i.namedFrom)&&t.report({node:n,messageId:`restrictedDefault`})}}}return{ExportAllDeclaration(e){e.exported&&s(e.exported)},ExportDefaultDeclaration(e){i&&i.direct&&t.report({node:e,messageId:`restrictedDefault`})},ExportNamedDeclaration(e){let t=e.declaration;t?t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`?s(t.id):t.type===`VariableDeclaration`&&o.getDeclaredVariables(t).map(e=>e.defs.find(e=>e.parent===t)).map(e=>e.name).forEach(s):e.specifiers.map(e=>e.exported).forEach(s)}}}},hv}var vv,yv;function bv(){if(yv)return vv;yv=1;let e=$(),t=/* @__PURE__ */ new Set([`TSTypeReference`,`TSInterfaceHeritage`,`TSClassImplements`,`TSTypeQuery`,`TSQualifiedName`]),n=/* @__PURE__ */ new Set([`globalThis`,`self`,`window`]),r={type:`array`,items:{oneOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`}},required:[`name`],additionalProperties:!1}]},uniqueItems:!0,minItems:0};return vv={meta:{type:`suggestion`,docs:{description:`Disallow specified global variables`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-globals`},schema:{anyOf:[r,{type:`array`,items:[{type:`object`,properties:{globals:r,checkGlobalObject:{type:`boolean`},globalObjects:{type:`array`,items:{type:`string`},uniqueItems:!0}},required:[`globals`],additionalProperties:!1}],additionalItems:!1}]},messages:{defaultMessage:`Unexpected use of '{{name}}'.`,customMessage:`Unexpected use of '{{name}}'. {{customMessage}}`}},create(r){let{sourceCode:i,options:a}=r,o=typeof a[0]==`object`&&Object.hasOwn(a[0],`globals`),s=o?a[0].globals:a,c=o?a[0].checkGlobalObject:!1,l=o&&a[0].globalObjects||[],u=/* @__PURE__ */ new Set([...n,...l]);if(s.length===0)return{};let d=s.reduce((e,t)=>(typeof t==`string`?e[t]=null:e[t.name]=t.message,e),{});function f(e){let t=e.identifier.name,n=d[t],i=n?`customMessage`:`defaultMessage`;r.report({node:e.identifier,messageId:i,data:{name:t,customMessage:n}})}function p(e){return Object.hasOwn(d,e)}function m(e){let n=e.identifier.parent;return t.has(n.type)}return{Program(e){let t=i.getScope(e);t.variables.forEach(e=>{!e.defs.length&&p(e.name)&&e.references.forEach(e=>{m(e)||f(e)})}),t.through.forEach(e=>{p(e.identifier.name)&&!m(e)&&f(e)})},"Program:exit"(t){if(!c)return;let n=i.getScope(t);u.forEach(t=>{let i=e.getVariableByName(n,t);i&&i.references.forEach(n=>{let i=n.identifier.parent;for(;e.isSpecificMemberAccess(i,null,t);)i=i.parent;if(i.type!==`MemberExpression`)return;let a=e.getStaticPropertyName(i);if(a&&p(a)){let e=d[a],t=e?`customMessage`:`defaultMessage`;r.report({node:i.property,messageId:t,data:{name:a,customMessage:e}})}})})}}}},vv}var xv,Sv;function Cv(){if(Sv)return xv;Sv=1;function e(e){return Array.isArray(e)?e:[e]}let t=/^\s+$/,n=/(?:[^\\]|^)\\$/,r=/^\\!/,i=/^\\#/,a=/\r?\n/g,o=/^\.*\/|^\.+$/,s=`node-ignore`;
179
+ /* istanbul ignore else */
180
+ typeof Symbol<`u`&&(s=Symbol.for(`node-ignore`));let c=s,l=(e,t,n)=>Object.defineProperty(e,t,{value:n}),u=/([0-z])-([0-z])/g,d=()=>!1,f=e=>e.replace(u,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:``),p=e=>{let{length:t}=e;return e.slice(0,t-t%2)},m=[[/^\uFEFF/,()=>``],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(n.indexOf(`\\`)===0?` `:``)],[/(\\+?)\s/g,(e,t)=>{let{length:n}=t;return t.slice(0,n-n%2)+` `}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>`\\`],[/\\\\/g,()=>`\\`],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===`\\`?`\\[${n}${p(r)}${i}`:i===`]`&&r.length%2==0?`[${f(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],h=Object.create(null),g=(e,t)=>{let n=h[e];return n||(n=m.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),h[e]=n),t?new RegExp(n,`i`):new RegExp(n)},_=e=>typeof e==`string`,v=e=>e&&_(e)&&!t.test(e)&&!n.test(e)&&e.indexOf(`#`)!==0,y=e=>e.split(a);class b{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}}let x=(e,t)=>{let n=e,a=!1;e.indexOf(`!`)===0&&(a=!0,e=e.substr(1)),e=e.replace(r,`!`).replace(i,`#`);let o=g(e,t);return new b(n,e,a,o)},S=(e,t)=>{throw new t(e)},C=(e,t,n)=>_(e)?e?!C.isNotRelative(e)||n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),w=e=>o.test(e);C.isNotRelative=w,C.convert=e=>e;class T{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){l(this,c,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[c])this._rules=this._rules.concat(e._rules),this._added=!0;else if(v(e)){let t=x(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(t){return this._added=!1,e(_(t)?y(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&C.convert(e);return C(i,e,this._allowRelativePaths?d:S),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(`/`),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(`/`)+`/`,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(t){return e(t).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}let E=e=>new T(e);
181
+ /* istanbul ignore if */
182
+ if(E.isPathValid=e=>C(e&&C.convert(e),e,d),E.default=E,xv=E,U!==void 0&&(U.env&&U.env.IGNORE_TEST_WIN32||U.platform===`win32`)){C.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`);let e=/^[a-z]:\//i;C.isNotRelative=t=>e.test(t)||w(t)}return xv}var wv,Tv;function Ev(){if(Tv)return wv;Tv=1;let e=$();function t(e){return new Intl.ListFormat(`en-US`).format(e.map(e=>`'${e}'`))}function n(e){return e.length===1?`is`:`are`}let r=Cv(),i={type:`array`,items:{anyOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`,minLength:1},importNames:{type:`array`,items:{type:`string`}},allowImportNames:{type:`array`,items:{type:`string`}},allowTypeImports:{type:`boolean`,description:`Whether to allow type-only imports for a path.`}},additionalProperties:!1,required:[`name`],not:{required:[`importNames`,`allowImportNames`]}}]},uniqueItems:!0};return wv={meta:{type:`suggestion`,docs:{description:"Disallow specified modules when loaded by `import`",dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-imports`},messages:{path:`'{{importSource}}' import is restricted from being used.`,pathWithCustomMessage:`'{{importSource}}' import is restricted from being used. {{customMessage}}`,patterns:`'{{importSource}}' import is restricted from being used by a pattern.`,patternWithCustomMessage:`'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}`,patternAndImportName:`'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.`,patternAndImportNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}`,patternAndEverything:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern.`,patternAndEverythingWithRegexImportName:`* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.`,patternAndEverythingWithCustomMessage:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern. {{customMessage}}`,patternAndEverythingWithRegexImportNameAndCustomMessage:`* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}`,everything:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted.`,everythingWithCustomMessage:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted. {{customMessage}}`,importName:`'{{importName}}' import from '{{importSource}}' is restricted.`,importNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}`,allowedImportName:`'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed.`,allowedImportNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed. {{customMessage}}`,everythingWithAllowImportNames:`* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed.`,everythingWithAllowImportNamesAndCustomMessage:`* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed. {{customMessage}}`,allowedImportNamePattern:`'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.`,allowedImportNamePatternWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}`,everythingWithAllowedImportNamePattern:`* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.`,everythingWithAllowedImportNamePatternWithCustomMessage:`* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}`},schema:{anyOf:[i,{type:`array`,items:[{type:`object`,properties:{paths:i,patterns:{anyOf:[{type:`array`,items:{type:`string`},uniqueItems:!0},{type:`array`,items:{type:`object`,properties:{importNames:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},allowImportNames:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},group:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},regex:{type:`string`},importNamePattern:{type:`string`},allowImportNamePattern:{type:`string`},message:{type:`string`,minLength:1},caseSensitive:{type:`boolean`},allowTypeImports:{type:`boolean`,description:`Whether to allow type-only imports for a pattern.`}},additionalProperties:!1,not:{anyOf:[{required:[`importNames`,`allowImportNames`]},{required:[`importNamePattern`,`allowImportNamePattern`]},{required:[`importNames`,`allowImportNamePattern`]},{required:[`importNamePattern`,`allowImportNames`]},{required:[`allowImportNames`,`allowImportNamePattern`]}]},oneOf:[{required:[`group`]},{required:[`regex`]}]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(i){let a=i.sourceCode,o=Array.isArray(i.options)?i.options:[],s=typeof o[0]==`object`&&(Object.hasOwn(o[0],`paths`)||Object.hasOwn(o[0],`patterns`)),c=(s?o[0].paths:i.options)||[],l=c.reduce((e,t)=>{let n=typeof t==`string`?t:t.name;return e[n]||(e[n]=[]),typeof t==`string`?e[n].push({}):e[n].push({message:t.message,importNames:t.importNames,allowImportNames:t.allowImportNames,allowTypeImports:t.allowTypeImports}),e},Object.create(null)),u=(s?o[0].patterns:[])||[];u.length>0&&typeof u[0]==`string`&&(u=[{group:u}]);let d=u.map(({group:e,regex:t,message:n,caseSensitive:i,importNames:a,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l})=>({...e?{matcher:r({allowRelativePaths:!0,ignorecase:!i}).add(e)}:{},...typeof t==`string`?{regexMatcher:new RegExp(t,i?`u`:`iu`)}:{},customMessage:n,importNames:a,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l}));if(Object.keys(c).length===0&&d.length===0)return{};function f(e){return e.importKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.importKind===`type`)}function p(e){return e.importKind===`type`||e.exportKind===`type`}function m(e){return e.exportKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.exportKind===`type`)}function h(e,r,a){Object.hasOwn(l,e)&&l[e].forEach(o=>{let s=o.message,c=o.importNames,l=o.allowImportNames,u=o.allowTypeImports;u&&(a.type===`ImportDeclaration`||a.type===`TSImportEqualsDeclaration`)&&f(a)||u&&(a.type===`ExportNamedDeclaration`||a.type===`ExportAllDeclaration`)&&m(a)||(!c&&!l?i.report({node:a,messageId:s?`pathWithCustomMessage`:`path`,data:{importSource:e,customMessage:s}}):r.forEach((r,o)=>{if(o===`*`){let[o]=r;c?i.report({node:a,messageId:s?`everythingWithCustomMessage`:`everything`,loc:o.loc,data:{importSource:e,importNames:t(c),isOrAre:n(c),customMessage:s}}):l&&i.report({node:a,messageId:s?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:o.loc,data:{importSource:e,allowedImportNames:t(l),isOrAre:n(l),customMessage:s}})}else c&&c.includes(o)&&r.forEach(t=>{u&&p(t.specifier)||i.report({node:a,messageId:s?`importNameWithCustomMessage`:`importName`,loc:t.loc,data:{importSource:e,customMessage:s,importName:o}})}),l&&!l.includes(o)&&r.forEach(r=>{u&&p(r.specifier)||i.report({node:a,loc:r.loc,messageId:s?`allowedImportNameWithCustomMessage`:`allowedImportName`,data:{importSource:e,customMessage:s,importName:o,allowedImportNames:t(l),isOrAre:n(l)}})})}))})}function g(e,r,a,o){if(r.allowTypeImports&&(e.type===`ImportDeclaration`||e.type===`TSImportEqualsDeclaration`)&&f(e)||r.allowTypeImports&&(e.type===`ExportNamedDeclaration`||e.type===`ExportAllDeclaration`)&&m(e))return;let s=r.customMessage,c=r.importNames,l=r.importNamePattern?new RegExp(r.importNamePattern,`u`):null,u=r.allowImportNames,d=r.allowImportNamePattern?new RegExp(r.allowImportNamePattern,`u`):null;!c&&!u&&!l&&!d?i.report({node:e,messageId:s?`patternWithCustomMessage`:`patterns`,data:{importSource:o,customMessage:s}}):a.forEach((a,f)=>{if(f===`*`){let[r]=a;c?i.report({node:e,messageId:s?`patternAndEverythingWithCustomMessage`:`patternAndEverything`,loc:r.loc,data:{importSource:o,importNames:t(c),isOrAre:n(c),customMessage:s}}):u?i.report({node:e,messageId:s?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:r.loc,data:{importSource:o,allowedImportNames:t(u),isOrAre:n(u),customMessage:s}}):d?i.report({node:e,messageId:s?`everythingWithAllowedImportNamePatternWithCustomMessage`:`everythingWithAllowedImportNamePattern`,loc:r.loc,data:{importSource:o,allowedImportNamePattern:d,customMessage:s}}):i.report({node:e,messageId:s?`patternAndEverythingWithRegexImportNameAndCustomMessage`:`patternAndEverythingWithRegexImportName`,loc:r.loc,data:{importSource:o,importNames:l,customMessage:s}})}else(c&&c.includes(f)||l&&l.test(f))&&a.forEach(t=>{r.allowTypeImports&&p(t.specifier)||i.report({node:e,messageId:s?`patternAndImportNameWithCustomMessage`:`patternAndImportName`,loc:t.loc,data:{importSource:o,customMessage:s,importName:f}})}),u&&!u.includes(f)?a.forEach(a=>{r.allowTypeImports&&p(a.specifier)||i.report({node:e,messageId:s?`allowedImportNameWithCustomMessage`:`allowedImportName`,loc:a.loc,data:{importSource:o,customMessage:s,importName:f,allowedImportNames:t(u),isOrAre:n(u)}})}):d&&!d.test(f)&&a.forEach(t=>{r.allowTypeImports&&p(t.specifier)||i.report({node:e,messageId:s?`allowedImportNamePatternWithCustomMessage`:`allowedImportNamePattern`,loc:t.loc,data:{importSource:o,customMessage:s,importName:f,allowedImportNamePattern:d}})})})}function _(e,t){return t.regexMatcher?t.regexMatcher.test(e):t.matcher.ignores(e)}function v(t){let n=t.source.value.trim(),r=/* @__PURE__ */ new Map;if(t.type===`ExportAllDeclaration`){let e=a.getFirstToken(t,1);r.set(`*`,[{loc:e.loc}])}else if(t.specifiers)for(let n of t.specifiers){let t,i={loc:n.loc,specifier:n};n.type===`ImportDefaultSpecifier`?t=`default`:n.type===`ImportNamespaceSpecifier`?t=`*`:n.imported?t=e.getModuleExportName(n.imported):n.local&&(t=e.getModuleExportName(n.local)),typeof t==`string`&&(r.has(t)?r.get(t).push(i):r.set(t,[i]))}h(n,r,t),d.forEach(e=>{_(n,e)&&g(t,e,r,n)})}return{ImportDeclaration:v,ExportNamedDeclaration(e){e.source&&v(e)},ExportAllDeclaration:v,TSImportEqualsDeclaration(e){if(e.moduleReference.type===`TSExternalModuleReference`){let t=e.moduleReference.expression.value,n=/* @__PURE__ */ new Map;h(t,n,e),d.forEach(r=>{_(t,r)&&g(e,r,n,t)})}}}}},wv}var Dv,Ov;function kv(){if(Ov)return Dv;Ov=1;let e=$(),t=Cv(),n={type:`array`,items:{type:`string`},uniqueItems:!0},r={type:`array`,items:{anyOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`,minLength:1}},additionalProperties:!1,required:[`name`]}]},uniqueItems:!0};return Dv={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-restricted-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md`}}]},type:`suggestion`,docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-modules`},schema:{anyOf:[r,{type:`array`,items:{type:`object`,properties:{paths:r,patterns:n},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:`'{{name}}' module is restricted from being used.`,customMessage:`'{{name}}' module is restricted from being used. {{customMessage}}`,patternMessage:`'{{name}}' module is restricted from being used by a pattern.`}},create(n){let r=Array.isArray(n.options)?n.options:[],i=typeof r[0]==`object`&&(Object.hasOwn(r[0],`paths`)||Object.hasOwn(r[0],`patterns`)),a=(i?r[0].paths:n.options)||[],o=(i?r[0].patterns:[])||[],s=a.reduce((e,t)=>(typeof t==`string`?e[t]=null:e[t.name]=t.message,e),{});if(Object.keys(a).length===0&&o.length===0)return{};let c=t({allowRelativePaths:!0}).add(o);function l(e){return e&&e.type===`Literal`&&typeof e.value==`string`}function u(e){return e.callee.type===`Identifier`&&e.callee.name===`require`}function d(t){return l(t)?t.value.trim():e.isStaticTemplateLiteral(t)?t.quasis[0].value.cooked.trim():null}function f(e,t){let r=s[t],i=r?`customMessage`:`defaultMessage`;n.report({node:e,messageId:i,data:{name:t,customMessage:r}})}function p(e){return Object.hasOwn(s,e)}return{CallExpression(e){if(u(e)&&e.arguments.length){let t=d(e.arguments[0]);t&&(p(t)&&f(e,t),o.length>0&&c.ignores(t)&&n.report({node:e,messageId:`patternMessage`,data:{name:t}}))}}}}},Dv}var Av,jv;function Mv(){if(jv)return Av;jv=1;let e=$();return Av={meta:{type:`suggestion`,docs:{description:`Disallow certain properties on certain objects`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-properties`},schema:{type:`array`,items:{type:`object`,properties:{object:{type:`string`},property:{type:`string`},allowObjects:{type:`array`,items:{type:`string`},uniqueItems:!0},allowProperties:{type:`array`,items:{type:`string`},uniqueItems:!0},message:{type:`string`}},anyOf:[{required:[`object`]},{required:[`property`]}],not:{anyOf:[{required:[`allowObjects`,`object`]},{required:[`allowProperties`,`property`]}]},additionalProperties:!1},uniqueItems:!0},defaultOptions:[],messages:{restrictedObjectProperty:`'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}`,restrictedProperty:`'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}`}},create(t){let n=t.options;if(n.length===0)return{};let r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map;n.forEach(e=>{let t=e.object,n=e.property;t===void 0?a.set(n,{allowObjects:e.allowObjects,message:e.message}):n===void 0?i.set(t,{allowProperties:e.allowProperties,message:e.message}):(r.has(t)||r.set(t,/* @__PURE__ */ new Map),r.get(t).set(n,{message:e.message}))});function o(e,t){return t?t.includes(e):!1}function s(e,n,s){if(s===null)return;let c=r.get(n),l=c?c.get(s):i.get(n),u=a.get(s);if(l&&!o(s,l.allowProperties)){let r=l.message?` ${l.message}`:``,i=l.allowProperties?` Only these properties are allowed: ${l.allowProperties.join(`, `)}.`:``;t.report({node:e,messageId:`restrictedObjectProperty`,data:{objectName:n,propertyName:s,message:r,allowedPropertiesMessage:i}})}else if(u&&!o(n,u.allowObjects)){let n=u.message?` ${u.message}`:``,r=u.allowObjects?` Property '${s}' is only allowed on these objects: ${u.allowObjects.join(`, `)}.`:``;t.report({node:e,messageId:`restrictedProperty`,data:{propertyName:s,message:n,allowedObjectsMessage:r}})}}return{MemberExpression(t){s(t,t.object&&t.object.name,e.getStaticPropertyName(t))},ObjectPattern(t){let n=null;t.parent.type===`VariableDeclarator`?t.parent.init&&t.parent.init.type===`Identifier`&&(n=t.parent.init.name):(t.parent.type===`AssignmentExpression`||t.parent.type===`AssignmentPattern`)&&t.parent.right.type===`Identifier`&&(n=t.parent.right.name),t.properties.forEach(r=>{s(t,n,e.getStaticPropertyName(r))})}}}},Av}var Nv,Pv;function Fv(){return Pv||(Pv=1,Nv={meta:{type:`suggestion`,docs:{description:`Disallow specified syntax`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-syntax`},schema:{type:`array`,items:{oneOf:[{type:`string`},{type:`object`,properties:{selector:{type:`string`},message:{type:`string`}},required:[`selector`],additionalProperties:!1}]},uniqueItems:!0,minItems:0},defaultOptions:[],messages:{restrictedSyntax:`{{message}}`}},create(e){return e.options.reduce((t,n)=>{let r=typeof n==`string`,i=!r&&!!n.message,a=r?n:n.selector,o=i?n.message:`Using '${a}' is not allowed.`;return Object.assign(t,{[a](t){e.report({node:t,messageId:`restrictedSyntax`,data:{message:o}})}})},{})}}),Nv}var Iv,Lv;function Rv(){if(Lv)return Iv;Lv=1;let e=$(),t=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Iv={meta:{type:`suggestion`,defaultOptions:[`except-parens`],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-return-assign`},schema:[{enum:[`except-parens`,`always`]}],messages:{returnAssignment:`Return statement should not contain assignment.`,arrowAssignment:`Arrow function should not return assignment.`}},create(n){let r=n.options[0]!==`except-parens`,i=n.sourceCode;return{AssignmentExpression(a){if(!r&&e.isParenthesised(i,a))return;let o=a,s=o.parent;for(;s&&!t.test(s.type);)o=s,s=s.parent;s&&s.type===`ReturnStatement`?n.report({node:s,messageId:`returnAssignment`}):s&&s.type===`ArrowFunctionExpression`&&s.body===o&&n.report({node:s,messageId:`arrowAssignment`})}}}},Iv}var zv,Bv;function Vv(){if(Bv)return zv;Bv=1;let e=$();return zv={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-return-await`},fixable:null,deprecated:{message:`The original assumption of the rule no longer holds true because of engine optimization.`,deprecatedSince:`8.46.0`,availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(t){function n(e){t.report({node:t.sourceCode.getFirstToken(e),loc:e.loc,messageId:`redundantUseOfAwait`,suggest:[{messageId:`removeAwait`,fix(n){let r=t.sourceCode,[i,a]=r.getFirstTokens(e,2);if(i.loc.start.line!==a.loc.start.line)return null;let[o,s]=i.range,c=[o,s+ +(r.text[s]===` `)];return n.removeRange(c)}}]})}function r(t){let n=t;for(;!e.isFunction(n)&&n.type!==`Program`;){if(n.parent.type===`TryStatement`&&(n===n.parent.block||n===n.parent.handler&&n.parent.finalizer))return!0;n=n.parent}return!1}function i(e){return e.parent.type===`ArrowFunctionExpression`?!0:e.parent.type===`ReturnStatement`?!r(e.parent):e.parent.type===`ConditionalExpression`&&(e===e.parent.consequent||e===e.parent.alternate)||e.parent.type===`LogicalExpression`&&e===e.parent.right||e.parent.type===`SequenceExpression`&&e===e.parent.expressions.at(-1)?i(e.parent):!1}return{AwaitExpression(e){i(e)&&!r(e)&&n(e)}}}},zv}var Hv,Uv;function Wv(){if(Uv)return Hv;Uv=1;let e=$();return Hv={meta:{type:`suggestion`,docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-script-url`},schema:[],messages:{unexpectedScriptURL:`Script URL is a form of eval.`}},create(t){function n(n){let r=e.getStaticStringValue(n);typeof r==`string`&&r.toLowerCase().indexOf(`javascript:`)===0&&t.report({node:n,messageId:`unexpectedScriptURL`})}return{Literal(e){e.value&&typeof e.value==`string`&&n(e)},TemplateLiteral(e){e.parent&&e.parent.type===`TaggedTemplateExpression`||n(e)}}}},Hv}var Gv,Kv;function qv(){if(Kv)return Gv;Kv=1;let e=$(),t=/\s+/gu;function n(t,r,i,a){if(t&&r){if(t.type===`Identifier`&&r.type===`Identifier`&&t.name===r.name)a(r);else if(t.type===`ArrayPattern`&&r.type===`ArrayExpression`){let e=Math.min(t.elements.length,r.elements.length);for(let o=0;o<e;++o){let e=t.elements[o],s=r.elements[o];if(e&&e.type===`RestElement`&&o<r.elements.length-1||(n(e,s,i,a),s&&s.type===`SpreadElement`))break}}else if(t.type===`RestElement`&&r.type===`SpreadElement`)n(t.argument,r.argument,i,a);else if(t.type===`ObjectPattern`&&r.type===`ObjectExpression`&&r.properties.length>=1){let e=0;for(let t=r.properties.length-1;t>=0;--t){let n=r.properties[t].type;if(n===`SpreadElement`||n===`ExperimentalSpreadProperty`){e=t+1;break}}for(let o=0;o<t.properties.length;++o)for(let s=e;s<r.properties.length;++s)n(t.properties[o],r.properties[s],i,a)}else if(t.type===`Property`&&r.type===`Property`&&r.kind===`init`&&!r.method){let o=e.getStaticPropertyName(t);o!==null&&o===e.getStaticPropertyName(r)&&n(t.value,r.value,i,a)}else i&&e.skipChainExpression(t).type===`MemberExpression`&&e.skipChainExpression(r).type===`MemberExpression`&&e.isSameReference(t,r)&&a(r)}}return Gv={meta:{type:`problem`,defaultOptions:[{props:!0}],docs:{description:`Disallow assignments where both sides are exactly the same`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-self-assign`},schema:[{type:`object`,properties:{props:{type:`boolean`}},additionalProperties:!1}],messages:{selfAssignment:`'{{name}}' is assigned to itself.`}},create(e){let r=e.sourceCode,[{props:i}]=e.options;function a(n){e.report({node:n,messageId:`selfAssignment`,data:{name:r.getText(n).replace(t,``)}})}return{AssignmentExpression(e){[`=`,`&&=`,`||=`,`??=`].includes(e.operator)&&n(e.left,e.right,i,a)}}}},Gv}var Jv,Yv;function Xv(){return Yv||(Yv=1,Jv={meta:{type:`problem`,docs:{description:`Disallow comparisons where both sides are exactly the same`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-self-compare`},schema:[],messages:{comparingToSelf:`Comparing to itself is potentially pointless.`}},create(e){let t=e.sourceCode;function n(e,n){let r=t.getTokens(e),i=t.getTokens(n);return r.length===i.length&&r.every((e,t)=>e.type===i[t].type&&e.value===i[t].value)}return{BinaryExpression(t){(/* @__PURE__ */ new Set([`===`,`==`,`!==`,`!=`,`>`,`<`,`>=`,`<=`])).has(t.operator)&&n(t.left,t.right)&&e.report({node:t,messageId:`comparingToSelf`})}}}}),Jv}var Zv,Qv;function $v(){if(Qv)return Zv;Qv=1;let e=$();return Zv={meta:{type:`suggestion`,docs:{description:`Disallow comma operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-sequences`},schema:[{type:`object`,properties:{allowInParentheses:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:`Unexpected use of comma operator.`}},create(t){let[{allowInParentheses:n}]=t.options,r=t.sourceCode,i={DoWhileStatement:`test`,IfStatement:`test`,SwitchStatement:`discriminant`,WhileStatement:`test`,WithStatement:`object`,ArrowFunctionExpression:`body`};function a(e){return e.parent&&i[e.parent.type]&&e===e.parent[i[e.parent.type]]}function o(t){return e.isParenthesised(r,t)}function s(t){let n=r.getTokenBefore(t,1),i=r.getTokenAfter(t,1);return o(t)&&n&&i&&e.isOpeningParenToken(n)&&n.range[1]<=t.range[0]&&e.isClosingParenToken(i)&&i.range[0]>=t.range[1]}return{SequenceExpression(i){if(i.parent.type===`ForStatement`&&(i===i.parent.init||i===i.parent.update))return;if(n){if(a(i)){if(s(i))return}else if(o(i))return}let c=r.getTokenAfter(i.expressions[0],e.isCommaToken);t.report({node:i,loc:c.loc,messageId:`unexpectedCommaExpression`})}}}},Zv}var ey,ty;function ny(){if(ty)return ey;ty=1;let e=$();function t(t,n){let r=t.parent;return!!((r.type===`Property`||r.type===`MethodDefinition`)&&r.kind===`set`&&r.value===t||r.type===`Property`&&r.value===t&&e.getStaticPropertyName(r)===`set`&&r.parent.type===`ObjectExpression`&&e.isPropertyDescriptor(r.parent,n))}return ey={meta:{type:`problem`,docs:{description:`Disallow returning values from setters`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-setter-return`},schema:[],messages:{returnsValue:`Setter cannot return a value.`}},create(e){let n=null,r=e.sourceCode;function i(e){n={upper:n,isSetter:t(e,r)}}function a(){n=n.upper}function o(t){e.report({node:t,messageId:`returnsValue`})}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression(e){i(e),n.isSetter&&e.expression&&o(e.body)},"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,ReturnStatement(e){n&&n.isSetter&&e.argument&&o(e)}}}},ey}var ry,iy;function ay(){if(iy)return ry;iy=1;let e=$(),t=/* @__PURE__ */ new Set([`ArrowFunctionExpression`,`FunctionExpression`]),n=/* @__PURE__ */ new Set([`CallExpression`]),r=/^For(?:In|Of)Statement$/u,i=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,a=/* @__PURE__ */ new Set([`TSInterfaceDeclaration`,`TSTypeAliasDeclaration`]),o=/* @__PURE__ */ new Set([`TSCallSignatureDeclaration`,`TSFunctionType`,`TSMethodSignature`,`TSEmptyBodyFunctionExpression`,`TSDeclareFunction`,`TSConstructSignatureDeclaration`,`TSConstructorType`]);return ry={meta:{type:`suggestion`,defaultOptions:[{allow:[],builtinGlobals:!1,hoist:`functions`,ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:`Disallow variable declarations from shadowing variables declared in the outer scope`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-shadow`},schema:[{type:`object`,properties:{builtinGlobals:{type:`boolean`},hoist:{enum:[`all`,`functions`,`never`,`types`,`functions-and-types`]},allow:{type:`array`,items:{type:`string`}},ignoreOnInitialization:{type:`boolean`},ignoreTypeValueShadow:{type:`boolean`},ignoreFunctionTypeParameterNameValueShadow:{type:`boolean`}},additionalProperties:!1}],messages:{noShadow:`'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.`,noShadowGlobal:`'{{name}}' is already a global variable.`}},create(s){let[{builtinGlobals:c,hoist:l,allow:u,ignoreOnInitialization:d,ignoreTypeValueShadow:f,ignoreFunctionTypeParameterNameValueShadow:p}]=s.options,m=s.sourceCode;function h(e){return e.block.kind===`global`||!!e.upper&&h(e.upper)}function g(e){return e.name===`this`}function _(e,t){if(f!==!0||!(`isValueVariable`in e))return!1;let n=t.defs[0],r=n&&n.parent?.type===`ImportDeclaration`&&(n.parent.importKind===`type`||n.node.type===`ImportSpecifier`&&n.node.importKind===`type`),i=!n||!r&&t.isValueVariable;return e.isValueVariable!==i}function v(e){return p===!0&&e.defs.some(e=>o.has(e.node.type))}function y(e){let t=e.identifiers[0].parent.parent;return t.type===`TSTypeParameterDeclaration`&&t.parent.parent.static}function b(e){return y(e)}function x(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function S(e,t){let n=e;for(;n&&!t(n);)n=n.parent;return n}function C(e){let t=e.upper;return t&&t.type===`function-expression-name`?t.upper:t}function w(e,a){let o=a.defs[0];if(!o)return!1;let{variableScope:s}=e.scope;if(!(t.has(s.block.type)&&C(s)===a.scope))return!1;let{parent:c}=s.block,l=S(c,e=>n.has(e.type));if(!l)return!1;let u=o.name,d=l.range[1];for(;u;){if(u.type===`VariableDeclarator`){if(x(u.init,d)||r.test(u.parent.parent.type)&&x(u.parent.parent.right,d))return!0;break}if(u.type===`AssignmentPattern`){if(x(u.right,d))return!0}else if(i.test(u.type))break;u=u.parent}return!1}function T(e){return u.includes(e.name)}function E(e){let t=e.scope.block;return t.type===`ClassDeclaration`&&t.id===e.identifiers[0]}function D(e){let{parent:t}=e;return t.type===`LogicalExpression`||t.type===`ConditionalExpression`&&t.test!==e?D(t):e}function O(e,t){let n=t.defs[0],r=e.defs[0];if(!n||!r||!(r.type===`FunctionName`&&r.node.type===`FunctionExpression`||r.type===`ClassName`&&r.node.type===`ClassExpression`))return!1;let i=n.name,a;if(i.parent.type===`VariableDeclarator`?a=i.parent.init:i.parent.type===`AssignmentPattern`&&(a=i.parent.right),!a)return!1;let o=r.node;return a.range[0]<=o.range[0]&&o.range[1]<=a.range[1]&&a===D(o)}function k(e){let t=e.defs[0];return t&&t.name.range}function A(e){let t=e.identifiers[0],n;return n=t?{global:!1,line:t.loc.start.line,column:t.loc.start.column+1}:{global:!0},n}function j(e,t){let n=t.defs[0],r=k(e),i=k(t);return!i||r[1]>=i[0]?!1:l===`types`?!a.has(n.node.type):l===`functions-and-types`?n.node.type!==`FunctionDeclaration`&&!a.has(n.node.type):r&&i&&r[1]<i[0]&&(l!==`functions`||!n||n.node.type!==`FunctionDeclaration`)}function M(e){let t=s.filename;return!t.endsWith(`.d.ts`)&&!t.endsWith(`.d.cts`)&&!t.endsWith(`.d.mts`)?!1:e.defs.some(e=>e.type===`Variable`&&e.parent.declare||e.type===`ClassName`&&e.node.declare||e.type===`TSEnumName`&&e.node.declare||e.type===`TSModuleName`&&e.node.declare)}function N(e){let t=e.scope.block;return t.type===`TSEnumDeclaration`&&t.id===e.identifiers[0]}function P(e,t,n){let r=n.defs[0];if(!r||!r.parent||r.parent.type!==`ImportDeclaration`||r.parent.importKind!==`type`&&!r.parent.specifiers?.some(e=>e.type===`ImportSpecifier`&&e.importKind===`type`&&e.local.name===n.name))return!1;let i=S(t.identifiers[0]?.parent,e=>e.type===`TSModuleDeclaration`);return i?r.parent.source.value===(i.id.type===`Literal`?i.id.value:i.id.name):!1}function F(t){if(h(t))return;let n=t.variables;for(let r=0;r<n.length;++r){let i=n[r];if(i.identifiers.length===0||E(i)||N(i)||T(i)||M(i)||g(i))continue;let a=e.getVariableByName(t.upper,i.name);if(a&&(a.identifiers.length>0||c&&`writeable`in a)&&!O(i,a)&&!(d&&w(i,a))&&!(l!==`all`&&j(i,a))&&!_(i,a)&&!v(i)&&!b(i)&&!P(t,i,a)){let e=A(a),t=e.global?`noShadowGlobal`:`noShadow`,n={name:i.name};e.global||(n.shadowedLine=e.line,n.shadowedColumn=e.column),s.report({node:i.identifiers[0],messageId:t,data:n})}}}return{"Program:exit"(e){let t=m.getScope(e).childScopes.slice();for(;t.length;){let e=t.pop();t.push(...e.childScopes),F(e)}}}}},ry}var oy,sy;function cy(){if(sy)return oy;sy=1;function e(e){return e.name===`undefined`&&e.references.every(e=>!e.isWrite())&&e.defs.every(e=>e.node.type===`VariableDeclarator`&&e.node.init===null)}return oy={meta:{type:`suggestion`,defaultOptions:[{reportGlobalThis:!0}],docs:{description:`Disallow identifiers from shadowing restricted names`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-shadow-restricted-names`},schema:[{type:`object`,properties:{reportGlobalThis:{type:`boolean`}},additionalProperties:!1}],messages:{shadowingRestrictedName:`Shadowing of global property '{{name}}'.`}},create(t){let[{reportGlobalThis:n}]=t.options,r=/* @__PURE__ */ new Set([`undefined`,`NaN`,`Infinity`,`arguments`,`eval`]);n&&r.add(`globalThis`);let i=t.sourceCode,a=/* @__PURE__ */ new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(n){for(let o of i.getDeclaredVariables(n))if(o.defs.length>0&&r.has(o.name)&&!e(o))for(let e of o.defs){let n=e.name;a.has(n)||(a.add(n),t.report({node:n,messageId:`shadowingRestrictedName`,data:{name:o.name}}))}}}}},oy}var ly,uy;function dy(){return uy||(uy=1,ly={meta:{type:`layout`,docs:{description:`Disallow spacing between function identifiers and their applications (deprecated)`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-spaced-func`},deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-spacing`,url:`https://eslint.style/rules/function-call-spacing`}}]},fixable:`whitespace`,schema:[],messages:{noSpacedFunction:`Unexpected space between function name and paren.`}},create(e){let t=e.sourceCode;function n(n){let r=t.getLastToken(n.callee),i=r,a=t.getTokenAfter(r);for(;a&&a.range[1]<n.range[1]&&a.value!==`(`;)i=a,a=t.getTokenAfter(a);a&&a.range[1]<n.range[1]&&t.isSpaceBetween(i,a)&&e.report({node:n,loc:r.loc.start,messageId:`noSpacedFunction`,fix(e){return e.removeRange([i.range[1],a.range[0]])}})}return{CallExpression:n,NewExpression:n}}}),ly}var fy,py;function my(){if(py)return fy;py=1;let e=$();return fy={meta:{type:`problem`,docs:{description:`Disallow sparse arrays`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-sparse-arrays`},schema:[],messages:{unexpectedSparseArray:`Unexpected comma in middle of array.`}},create(t){return{ArrayExpression(n){if(!n.elements.includes(null))return;let{sourceCode:r}=t,i;for(let[a,o]of n.elements.entries()){if(a===n.elements.length-1&&o)return;i=r.getTokenAfter(o??i??r.getFirstToken(n),e.isCommaToken),o||t.report({node:n,loc:i.loc,messageId:`unexpectedSparseArray`})}}}}},fy}var hy,gy;function _y(){return gy||(gy=1,hy={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-sync`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md`}}]},type:`suggestion`,docs:{description:`Disallow synchronous methods`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-sync`},schema:[{type:`object`,properties:{allowAtRootLevel:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{noSync:`Unexpected sync method: '{{propertyName}}'.`}},create(e){return{[e.options[0]&&e.options[0].allowAtRootLevel?`:function MemberExpression[property.name=/.*Sync$/]`:`MemberExpression[property.name=/.*Sync$/]`](t){e.report({node:t,messageId:`noSync`,data:{propertyName:t.property.name}})}}}}),hy}var vy,yy;function by(){if(yy)return vy;yy=1;let e=/\t+/gu,t=/\S/u;return vy={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-tabs`,url:`https://eslint.style/rules/no-tabs`}}]},type:`layout`,docs:{description:`Disallow all tabs`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-tabs`},schema:[{type:`object`,properties:{allowIndentationTabs:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{unexpectedTab:`Unexpected tab character.`}},create(n){let r=n.sourceCode,i=n.options&&n.options[0]&&n.options[0].allowIndentationTabs;return{Program(a){r.getLines().forEach((r,o)=>{let s;for(;(s=e.exec(r))!==null;)(!i||t.test(r.slice(0,s.index)))&&n.report({node:a,loc:{start:{line:o+1,column:s.index},end:{line:o+1,column:s.index+s[0].length}},messageId:`unexpectedTab`})})}}}},vy}var xy,Sy;function Cy(){return Sy||(Sy=1,xy={meta:{type:`problem`,docs:{description:`Disallow template literal placeholder syntax in regular strings`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-template-curly-in-string`},schema:[],messages:{unexpectedTemplateExpression:`Unexpected template string expression.`}},create(e){let t=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value==`string`&&t.test(n.value)&&e.report({node:n,messageId:`unexpectedTemplateExpression`})}}}}),xy}var wy,Ty;function Ey(){return Ty||(Ty=1,wy={meta:{type:`suggestion`,docs:{description:`Disallow ternary operators`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-ternary`},schema:[],messages:{noTernaryOperator:`Ternary operator used.`}},create(e){return{ConditionalExpression(t){e.report({node:t,messageId:`noTernaryOperator`})}}}}),wy}var Dy,Oy;function ky(){if(Oy)return Dy;Oy=1;let e=$();function t(e){return e.type===`FunctionExpression`&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}class n{superCalled=!1;invalidNodes=[]}return Dy={meta:{type:`problem`,docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-this-before-super`},schema:[],messages:{noBeforeSuper:`'{{kind}}' is not allowed before 'super()'.`}},create(r){let i=null,a=Object.create(null);function o(e){return!e.reachable||a[e.id]?.superCalled}function s(){return!!(i&&i.isConstructor&&i.hasExtends)}function c(e){for(let t of e)if(!o(t))return!1;return!0}function l(){return s()&&!c(i.currentSegments)}function u(e){let t=i.currentSegments;for(let n of t)n.reachable&&a[n.id].invalidNodes.push(e)}function d(){let e=i.currentSegments;for(let t of e)t.reachable&&(a[t.id].superCalled=!0)}return{onCodePathStart(n,r){if(t(r)){let t=r.parent.parent.parent;i={upper:i,isConstructor:!0,hasExtends:!(!t.superClass||e.isNullOrUndefined(t.superClass)),codePath:n,currentSegments:/* @__PURE__ */ new Set}}else i={upper:i,isConstructor:!1,hasExtends:!1,codePath:n,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(e){let t=i.hasExtends;if(i=i.upper,!t)return;let n=/* @__PURE__ */ new Set;e.traverseSegments((e,t)=>{let i=a[e.id],o=i.invalidNodes.filter(e=>!n.has(e));for(let e of o)n.add(e),r.report({messageId:`noBeforeSuper`,node:e,data:{kind:e.type===`Super`?`super`:`this`}});i.superCalled&&t.skip()})},onCodePathSegmentStart(e){i.currentSegments.add(e),s()&&(a[e.id]={superCalled:e.prevSegments.length>0&&e.prevSegments.every(o),invalidNodes:[]})},onUnreachableCodePathSegmentStart(e){i.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){i.currentSegments.delete(e)},onCodePathSegmentEnd(e){i.currentSegments.delete(e)},onCodePathSegmentLoop(e,t){s()&&i.codePath.traverseSegments({first:t,last:e},(e,t)=>{let r=a[e.id]??new n;r.superCalled?t.skip():e.prevSegments.length>0&&e.prevSegments.every(o)&&(r.superCalled=!0),a[e.id]=r})},ThisExpression(e){l()&&u(e)},Super(t){!e.isCallee(t)&&l()&&u(t)},"CallExpression:exit"(e){e.callee.type===`Super`&&l()&&d()},"Program:exit"(){a=Object.create(null)}}}},Dy}var Ay,jy;function My(){if(jy)return Ay;jy=1;let e=$();return Ay={meta:{type:`suggestion`,docs:{description:`Disallow throwing literals as exceptions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-throw-literal`},schema:[],messages:{object:`Expected an error object to be thrown.`,undef:`Do not throw undefined.`}},create(t){let n=t.sourceCode;return{ThrowStatement(r){e.couldBeError(r.argument)?r.argument.type===`Identifier`&&r.argument.name===`undefined`&&n.isGlobalReference(r.argument)&&t.report({node:r,messageId:`undef`}):t.report({node:r,messageId:`object`})}}}},Ay}var Ny,Py;function Fy(){if(Py)return Ny;Py=1;let e=$();return Ny={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-trailing-spaces`,url:`https://eslint.style/rules/no-trailing-spaces`}}]},type:`layout`,docs:{description:`Disallow trailing whitespace at the end of lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-trailing-spaces`},fixable:`whitespace`,schema:[{type:`object`,properties:{skipBlankLines:{type:`boolean`,default:!1},ignoreComments:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{trailingSpace:`Trailing spaces not allowed.`}},create(t){let n=t.sourceCode,r=`[ \xA0           ​ ]`,i=`^${r}*$`,a=`${r}+$`,o=t.options[0]||{},s=o.skipBlankLines||!1,c=o.ignoreComments||!1;function l(e,n,r){t.report({node:e,loc:n,messageId:`trailingSpace`,fix(e){return e.removeRange(r)}})}function u(e){let t=/* @__PURE__ */ new Set;return e.forEach(e=>{let n=e.type===`Block`?e.loc.end.line-1:e.loc.end.line;for(let r=e.loc.start.line;r<=n;r++)t.add(r)}),t}return{Program:function(t){let r=new RegExp(a,`u`),o=new RegExp(i,`u`),d=n.lines,f=n.getText().match(e.createGlobalLinebreakMatcher()),p=u(n.getAllComments()),m=0;for(let e=0,i=d.length;e<i;e++){let i=e+1,a=f&&f[e]?f[e].length:1,u=d[e].length+a,h=r.exec(d[e]);if(h){let r={start:{line:i,column:h.index},end:{line:i,column:u-a}},f=m+r.start.column,g=m+r.end.column,_=n.getNodeByRangeIndex(f);if(_&&_.type===`TemplateElement`&&f>_.parent.range[0]&&g<_.parent.range[1]||s&&o.test(d[e])){m+=u;continue}let v=[f,g];c&&p.has(i)||l(t,r,v)}m+=u}}}}},Ny}var Iy,Ly;function Ry(){return Ly||(Ly=1,Iy={meta:{type:`problem`,docs:{description:"Disallow `let` or `var` variables that are read but never assigned",dialects:[`JavaScript`,`TypeScript`],recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unassigned-vars`},schema:[],messages:{unassigned:`'{{name}}' is always 'undefined' because it's never assigned.`}},create(e){let t=e.sourceCode,n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(r){let i=r.parent;if(r.init||r.id.type!==`Identifier`||i.kind===`const`||i.declare||n)return;let[a]=t.getDeclaredVariables(r);if(!a)return;let o=!1;for(let e of a.references){if(e.isWrite())return;e.isRead()&&(o=!0)}o&&e.report({node:r,messageId:`unassigned`,data:{name:r.id.name}})}}}}),Iy}var zy,By;function Vy(){if(By)return zy;By=1;function e(e){let t=e.parent;return t.type===`UnaryExpression`&&t.operator===`typeof`}return zy={meta:{type:`problem`,defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-undef`},schema:[{type:`object`,properties:{typeof:{type:`boolean`}},additionalProperties:!1}],messages:{undef:`'{{name}}' is not defined.`}},create(t){let[{typeof:n}]=t.options,r=t.sourceCode;return{"Program:exit"(i){r.getScope(i).through.forEach(r=>{let i=r.identifier;(n||!e(i))&&t.report({node:i,messageId:`undef`,data:i})})}}}},zy}var Hy,Uy;function Wy(){if(Uy)return Hy;Uy=1;let e=$(),t=/* @__PURE__ */ new Set([`const`,`using`,`await using`]);return Hy={meta:{type:`suggestion`,docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-undef-init`},schema:[],fixable:`code`,messages:{unnecessaryUndefinedInit:`It's not necessary to initialize '{{name}}' to undefined.`}},create(n){let r=n.sourceCode;return{VariableDeclarator(i){let a=r.getText(i.id),o=i.init&&i.init.name,s=r.getScope(i),c=e.getVariableByName(s,`undefined`),l=c&&c.defs.length>0,u=r.getLastToken(i);o===`undefined`&&!t.has(i.parent.kind)&&!l&&n.report({node:i,messageId:`unnecessaryUndefinedInit`,data:{name:a},fix(e){return i.parent.kind===`var`||i.id.type===`ArrayPattern`||i.id.type===`ObjectPattern`||r.commentsExistBetween(i.id,u)?null:e.removeRange([i.id.range[1],i.range[1]])}})}}}},Hy}var Gy,Ky;function qy(){return Ky||(Ky=1,Gy={meta:{type:`suggestion`,docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-undefined`},schema:[],messages:{unexpectedUndefined:`Unexpected use of undefined.`}},create(e){let t=e.sourceCode;function n(t){e.report({node:t,messageId:`unexpectedUndefined`})}function r(e){let t=e.set.get(`undefined`);if(!t)return;let r=t.references,i=t.defs;r.filter(e=>!e.init).forEach(e=>n(e.identifier)),i.forEach(e=>n(e.name))}return{"Program:exit"(e){let n=[t.getScope(e)];for(;n.length;){let e=n.pop();n.push(...e.childScopes),r(e)}}}}}),Gy}var Jy,Yy;function Xy(){return Yy||(Yy=1,Jy={meta:{type:`suggestion`,defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:`Disallow dangling underscores in identifiers`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-underscore-dangle`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{type:`string`}},allowAfterThis:{type:`boolean`},allowAfterSuper:{type:`boolean`},allowAfterThisConstructor:{type:`boolean`},enforceInMethodNames:{type:`boolean`},allowFunctionParams:{type:`boolean`},enforceInClassFields:{type:`boolean`},allowInArrayDestructuring:{type:`boolean`},allowInObjectDestructuring:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedUnderscore:`Unexpected dangling '_' in '{{identifier}}'.`}},create(e){let[{allow:t,allowAfterSuper:n,allowAfterThis:r,allowAfterThisConstructor:i,allowFunctionParams:a,allowInArrayDestructuring:o,allowInObjectDestructuring:s,enforceInClassFields:c,enforceInMethodNames:l}]=e.options,u=e.sourceCode;function d(e){return t.includes(e)}function f(e){let t=e.length;return e!==`_`&&(e[0]===`_`||e[t-1]===`_`)}function p(e){return e===`__proto__`}function m(e){return e===`_`}function h(e){return e.object.type===`MemberExpression`&&e.object.property.name===`constructor`&&e.object.object.type===`ThisExpression`}function g(t){a||t.params.forEach(t=>{let{type:n}=t,r;if(r=n===`RestElement`?t.argument:n===`AssignmentPattern`?t.left:t,r.type===`Identifier`){let n=r.name;f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:n}})}})}function _(t){if(t.type===`FunctionDeclaration`&&t.id){let n=t.id.name;n!==void 0&&f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:n}})}g(t)}function v(t){u.getDeclaredVariables(t).forEach(n=>{let r=n.defs.find(e=>e.node===t).name,i=r.name,a=r.parent;for(;![`VariableDeclarator`,`ArrayPattern`,`ObjectPattern`].includes(a.type);)a=a.parent;!f(i)||m(i)||d(i)||o&&a.type===`ArrayPattern`||s&&a.type===`ObjectPattern`||e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:i}})})}function y(t){let a=t.property.name,o=t.object.type===`ThisExpression`,s=t.object.type===`Super`,c=h(t);a===void 0||!f(a)||o&&r||s&&n||c&&i||p(a)||d(a)||e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:a}})}function b(t){let n=t.key.name,r=t.type===`MethodDefinition`||t.type===`Property`&&t.method;n!==void 0&&l&&r&&f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:t.key.type===`PrivateIdentifier`?`#${n}`:n}})}function x(t){let n=t.key.name;n!==void 0&&f(n)&&c&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:t.key.type===`PrivateIdentifier`?`#${n}`:n}})}return{FunctionDeclaration:_,VariableDeclarator:v,MemberExpression:y,MethodDefinition:b,PropertyDefinition:x,Property:b,FunctionExpression:_,ArrowFunctionExpression:_}}}),Jy}var Zy,Qy;function $y(){if(Qy)return Zy;Qy=1;let e=$();return Zy={meta:{type:`problem`,docs:{description:`Disallow confusing multiline expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unexpected-multiline`},schema:[],messages:{function:`Unexpected newline between function and ( of function call.`,property:`Unexpected newline between object and [ of property access.`,taggedTemplate:`Unexpected newline between template tag and template literal.`,division:`Unexpected newline between numerator and division operator.`}},create(t){let n=/^[dgimsuvy]+$/u,r=t.sourceCode;function i(n,i){let a=r.getTokenAfter(n,e.isNotClosingParenToken),o=r.getTokenBefore(a);a.loc.start.line!==o.loc.end.line&&t.report({node:n,loc:a.loc,messageId:i})}return{MemberExpression(e){e.computed&&!e.optional&&i(e.object,`property`)},TaggedTemplateExpression(e){let{quasi:n}=e;r.getTokenBefore(n).loc.end.line!==n.loc.start.line&&t.report({node:e,loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}},messageId:`taggedTemplate`})},CallExpression(e){e.arguments.length===0||e.optional||i(e.callee,`function`)},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(e){let t=r.getTokenAfter(e,e=>e.value===`/`),a=r.getTokenAfter(t);a.type===`Identifier`&&n.test(a.value)&&t.range[1]===a.range[0]&&i(e.left,`division`)}}}},Zy}var eb,tb;function nb(){if(tb)return eb;tb=1;let e=Ye(),t=$(),n=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,r=/^(?:DoWhile|For|While)Statement$/u,i=/^(?:ArrowFunction|Class|Function)Expression$/u,a=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function o(e){if(e.init){let t=e.resolved&&e.resolved.defs[0];if(!t||t.type!==`Variable`||t.parent.kind!==`var`)return!1}return e.isWrite()}function s(e){return!e.modified}function c(e){return!(e.modified||e.group)}function l(e,t){let n=e.range,r=t.identifier.range;return n[0]<=r[0]&&r[1]<=n[1]}let u={WhileStatement:l,DoWhileStatement:l,ForStatement(e,t){return l(e,t)&&!(e.init&&l(e.init,t))}};function d(e){let t=e.identifier;for(;t;){if(t.type===`FunctionDeclaration`)return t.id?t:null;t=t.parent}return null}function f(e,n){if(e.isInLoop(n))return!0;let r=d(n);if(!r)return!1;let i=t.getVariableByName(n.from.upper,r.id.name);return!!(i&&i.references.some(e.isInLoop))}function p(e,t){for(let n=0;n<e.length;++n){let r=e[n];for(let e=0;!r.modified&&e<t.length;++e){let n=t[e];r.modified=f(r,n)}}}return eb={meta:{type:`problem`,docs:{description:`Disallow unmodified loop conditions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unmodified-loop-condition`},schema:[{type:`object`,properties:{checkConditionalExpressions:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{checkConditionalExpressions:!1}],messages:{loopConditionNotModified:`'{{name}}' is not modified in this loop.`}},create(t){let[{checkConditionalExpressions:l}]=t.options,d=t.sourceCode,f=null;function m(e){let n=e.reference.identifier;t.report({node:n,messageId:`loopConditionNotModified`,data:n})}function h(e){for(let t=0;t<e.length;++t){let n=e[t];if(n.group){let e=f.get(n.group);e||(e=[],f.set(n.group,e)),e.push(n)}}}function g(e){e.every(s)&&e.forEach(m)}function _(t){let n=!1;return e.traverse(t,{visitorKeys:d.visitorKeys,enter(e){a.test(e.type)?(n=!0,this.break()):i.test(e.type)&&this.skip()}}),n}function v(e){if(e.init)return null;let t=null,i=e.identifier,a=i.parent;for(;a;){if(n.test(a.type)){if(r.test(a.type)&&a.test===i)return{reference:e,group:t,isInLoop:u[a.type].bind(null,a),modified:!1};break}if(a.type===`BinaryExpression`||!l&&a.type===`ConditionalExpression`){if(_(a))break;t=a}i=a,a=a.parent}return null}function y(e){let t=e.references.map(v).filter(Boolean);if(t.length===0)return;h(t);let n=e.references.filter(o);n.length>0&&p(t,n),t.filter(c).forEach(m)}return{"Program:exit"(e){let t=[d.getScope(e)];f=/* @__PURE__ */ new Map;let n;for(;n=t.pop();)t.push(...n.childScopes),n.variables.forEach(y);f.forEach(g),f=null}}}},eb}var rb,ib;function ab(){if(ib)return rb;ib=1;let e=$(),t=/* @__PURE__ */ new Set([`==`,`===`,`!=`,`!==`,`>`,`>=`,`<`,`<=`,`in`,`instanceof`]),n={"==":`!=`,"!=":`==`,"===":`!==`,"!==":`===`},r=e.getPrecedence({type:`LogicalExpression`,operator:`||`});return rb={meta:{type:`suggestion`,defaultOptions:[{defaultAssignment:!0}],docs:{description:`Disallow ternary operators when simpler alternatives exist`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-unneeded-ternary`},schema:[{type:`object`,properties:{defaultAssignment:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unnecessaryConditionalExpression:`Unnecessary use of boolean literals in conditional expression.`,unnecessaryConditionalAssignment:`Unnecessary use of conditional expression for default assignment.`}},create(i){let[{defaultAssignment:a}]=i.options,o=i.sourceCode;function s(e){return e.type===`Literal`&&typeof e.value==`boolean`}function c(t){if(t.type===`BinaryExpression`&&Object.hasOwn(n,t.operator)){let r=o.getFirstTokenBetween(t.left,t.right,e=>e.value===t.operator),i=o.getFirstToken(t),a=o.getLastToken(t),s=o.getTokenBefore(i),c=o.getTokenAfter(a);for(;s&&e.isOpeningParenToken(s)&&c&&e.isClosingParenToken(c);)i=s,a=c,s=o.getTokenBefore(i),c=o.getTokenAfter(a);let l=o.getText();return l.slice(i.range[0],r.range[0])+n[t.operator]+l.slice(r.range[1],a.range[1])}return e.getPrecedence(t)<e.getPrecedence({type:`UnaryExpression`})?`!(${e.getParenthesisedText(o,t)})`:`!${e.getParenthesisedText(o,t)}`}function l(e){return e.type===`BinaryExpression`&&t.has(e.operator)||e.type===`UnaryExpression`&&e.operator===`!`}function u(e){return e.test.type===`Identifier`&&e.consequent.type===`Identifier`&&e.test.name===e.consequent.name}return{ConditionalExpression(t){s(t.alternate)&&s(t.consequent)?i.report({node:t,messageId:`unnecessaryConditionalExpression`,fix(n){if(t.consequent.value===t.alternate.value){if(t.test.type!==`Identifier`)return null;let r=t.consequent.value.toString(),i=o.getTokenBefore(t),a=i&&i.range[1]===t.range[0]&&!e.canTokensBeAdjacent(i,r)?` `:``;return n.replaceText(t,a+r)}return t.alternate.value?n.replaceText(t,c(t.test)):n.replaceText(t,l(t.test)?e.getParenthesisedText(o,t.test):`!${c(t.test)}`)}}):!a&&u(t)&&i.report({node:t,messageId:`unnecessaryConditionalAssignment`,fix(n){let i=(e.getPrecedence(t.alternate)<r||e.isCoalesceExpression(t.alternate))&&!e.isParenthesised(o,t.alternate)?`(${o.getText(t.alternate)})`:e.getParenthesisedText(o,t.alternate),a=e.getParenthesisedText(o,t.test);return n.replaceText(t,`${a} || ${i}`)}})}}}},rb}var ob,sb;function cb(){if(sb)return ob;sb=1;let{isAnySegmentReachable:e}=Qs();function t(e){return!!e.init}class n{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}}return ob={meta:{type:`problem`,docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unreachable`},schema:[],messages:{unreachableCode:`Unreachable code.`}},create(r){let i=null,a=new n(r.sourceCode),o=[],s=/* @__PURE__ */ new Set;function c(t){let n=null;if(t&&(t.type===`PropertyDefinition`||!e(s))){if(a.isEmpty){a.reset(t);return}if(a.contains(t))return;if(a.isConsecutive(t)){a.merge(t);return}n=t}a.isEmpty||r.report({messageId:`unreachableCode`,loc:a.location,node:a.startNode}),a.reset(n)}return{onCodePathStart(){o.push(s),s=/* @__PURE__ */ new Set},onCodePathEnd(){s=o.pop()},onUnreachableCodePathSegmentStart(e){s.add(e)},onUnreachableCodePathSegmentEnd(e){s.delete(e)},onCodePathSegmentEnd(e){s.delete(e)},onCodePathSegmentStart(e){s.add(e)},BlockStatement:c,BreakStatement:c,ClassDeclaration:c,ContinueStatement:c,DebuggerStatement:c,DoWhileStatement:c,ExpressionStatement:c,ForInStatement:c,ForOfStatement:c,ForStatement:c,IfStatement:c,LabeledStatement:c,ReturnStatement:c,SwitchStatement:c,ThrowStatement:c,TryStatement:c,VariableDeclaration(e){(e.kind!==`var`||e.declarations.some(t))&&c(e)},WhileStatement:c,WithStatement:c,ExportNamedDeclaration:c,ExportDefaultDeclaration:c,ExportAllDeclaration:c,"Program:exit"(){c()},"MethodDefinition[kind='constructor']"(){i={upper:i,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(e){let{hasSuperCall:t}=i;if(i=i.upper,!e.value.body)return;let n=e.parent.parent;if(n.superClass&&!t)for(let e of n.body.body)e.type===`PropertyDefinition`&&!e.static&&c(e)},"CallExpression > Super.callee"(){i&&(i.hasSuperCall=!0)}}}},ob}var lb,ub;function db(){if(ub)return lb;ub=1;let{isAnySegmentReachable:e}=Qs(),t=[`WhileStatement`,`DoWhileStatement`,`ForStatement`,`ForInStatement`,`ForOfStatement`];function n(e){let t=e.parent;if(t)switch(t.type){case`WhileStatement`:return e===t.test;case`DoWhileStatement`:return e===t.body;case`ForStatement`:return e===(t.update||t.test||t.body);case`ForInStatement`:case`ForOfStatement`:return e===t.left}return!1}function r(e,t){return e.filter(e=>!t.includes(e))}return lb={meta:{type:`problem`,defaultOptions:[{ignore:[]}],docs:{description:`Disallow loops with a body that allows only one iteration`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unreachable-loop`},schema:[{type:`object`,properties:{ignore:{type:`array`,items:{enum:t},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:`Invalid loop. Its body allows only one iteration.`}},create(i){let[{ignore:a}]=i.options,o=r(t,a).join(`,`);if(!o)return{};let s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Set,l=[],u=/* @__PURE__ */ new Set;return{onCodePathStart(){l.push(u),u=/* @__PURE__ */ new Set},onCodePathEnd(){u=l.pop()},onUnreachableCodePathSegmentStart(e){u.add(e)},onUnreachableCodePathSegmentEnd(e){u.delete(e)},onCodePathSegmentEnd(e){u.delete(e)},onCodePathSegmentStart(e,t){if(u.add(e),n(t)){let n=t.parent;s.set(e,n)}},onCodePathSegmentLoop(e,t,n){let r=s.get(t);(n===r||n.type===`ContinueStatement`)&&c.delete(r)},[o](t){e(u)&&c.add(t)},"Program:exit"(){c.forEach(e=>i.report({node:e,messageId:`invalid`}))}}}},lb}var fb,pb;function mb(){if(pb)return fb;pb=1;let e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return fb={meta:{type:`problem`,docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-finally`},schema:[],messages:{unsafeUsage:`Unsafe usage of {{nodeType}}.`}},create(r){function i(e){return e.parent.type===`TryStatement`&&e.parent.finalizer===e}function a(r,a){let o=!1,s;s=r.type===`BreakStatement`&&!r.label?t:r.type===`ContinueStatement`&&!r.label?n:e;for(let e=r;e&&!s.test(e.type);e=e.parent)if(e.parent.label&&a&&e.parent.label.name===a.name&&(o=!0),i(e))return!(a&&o);return!1}function o(e){a(e,e.label)&&r.report({messageId:`unsafeUsage`,data:{nodeType:e.type},node:e,line:e.loc.line,column:e.loc.column})}return{ReturnStatement:o,ThrowStatement:o,BreakStatement:o,ContinueStatement:o}}},fb}var hb,gb;function _b(){if(gb)return hb;gb=1;let e=$();function t(e){return e===`in`||e===`instanceof`}function n(e){return e===`<`||e===`>`||e===`>=`||e===`<=`}function r(e){return e.type===`UnaryExpression`&&e.operator===`!`}return hb={meta:{type:`problem`,defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:`Disallow negating the left operand of relational operators`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-negation`},hasSuggestions:!0,schema:[{type:`object`,properties:{enforceForOrderingRelations:{type:`boolean`}},additionalProperties:!1}],fixable:null,messages:{unexpected:`Unexpected negating the left operand of '{{operator}}' operator.`,suggestNegatedExpression:`Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.`,suggestParenthesisedNegation:`Wrap negation in '()' to make the intention explicit. This preserves the current behavior.`}},create(i){let a=i.sourceCode,[{enforceForOrderingRelations:o}]=i.options;return{BinaryExpression(s){let c=s.operator,l=o&&n(c);(t(c)||l)&&r(s.left)&&!e.isParenthesised(a,s.left)&&i.report({node:s,loc:s.left.loc,messageId:`unexpected`,data:{operator:c},suggest:[{messageId:`suggestNegatedExpression`,data:{operator:c},fix(e){let t=[a.getFirstToken(s.left).range[1],s.range[1]],n=a.text.slice(t[0],t[1]);return e.replaceTextRange(t,`(${n})`)}},{messageId:`suggestParenthesisedNegation`,fix(e){return e.replaceText(s.left,`(${a.getText(s.left)})`)}}]})}}}},hb}var vb,yb;function bb(){if(yb)return vb;yb=1;let e=/* @__PURE__ */ new Set([`+`,`-`,`/`,`*`,`%`,`**`]),t=/* @__PURE__ */ new Set([`+=`,`-=`,`/=`,`*=`,`%=`,`**=`]),n=/* @__PURE__ */ new Set([`in`,`instanceof`]);function r(e){return e.type===`ObjectPattern`||e.type===`ArrayPattern`}return vb={meta:{type:`problem`,defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining`},schema:[{type:`object`,properties:{disallowArithmeticOperators:{type:`boolean`}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:`Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.`,unsafeArithmetic:`Unsafe arithmetic operation on optional chaining. It can result in NaN.`}},create(i){let[{disallowArithmeticOperators:a}]=i.options;function o(e){i.report({messageId:`unsafeOptionalChain`,node:e})}function s(e){i.report({messageId:`unsafeArithmetic`,node:e})}function c(e,t){if(e)switch(e.type){case`LogicalExpression`:e.operator===`||`||e.operator===`??`?c(e.right,t):e.operator===`&&`&&(c(e.left,t),c(e.right,t));break;case`SequenceExpression`:c(e.expressions.at(-1),t);break;case`ConditionalExpression`:c(e.consequent,t),c(e.alternate,t);break;case`AwaitExpression`:c(e.argument,t);break;case`ChainExpression`:t(e)}}function l(e){c(e,o)}function u(e){c(e,s)}return{"AssignmentExpression, AssignmentPattern"(e){r(e.left)&&l(e.right)},"ClassDeclaration, ClassExpression"(e){l(e.superClass)},CallExpression(e){e.optional||l(e.callee)},NewExpression(e){l(e.callee)},VariableDeclarator(e){r(e.id)&&l(e.init)},MemberExpression(e){e.optional||l(e.object)},TaggedTemplateExpression(e){l(e.tag)},ForOfStatement(e){l(e.right)},SpreadElement(e){e.parent&&e.parent.type!==`ObjectExpression`&&l(e.argument)},YieldExpression(e){e.delegate&&l(e.argument)},BinaryExpression(t){n.has(t.operator)&&l(t.right),a&&e.has(t.operator)&&(u(t.right),u(t.left))},WithStatement(e){l(e.object)},UnaryExpression(t){a&&e.has(t.operator)&&u(t.argument)},AssignmentExpression(e){a&&t.has(e.operator)&&u(e.right)}}}},vb}var xb,Sb;function Cb(){if(Sb)return xb;Sb=1;let e=$();function t(){return!0}function n(){return!1}return xb={meta:{type:`suggestion`,docs:{description:`Disallow unused expressions`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unused-expressions`},schema:[{type:`object`,properties:{allowShortCircuit:{type:`boolean`},allowTernary:{type:`boolean`},allowTaggedTemplates:{type:`boolean`},enforceForJSX:{type:`boolean`},ignoreDirectives:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:`Expected an assignment or function call and instead saw an expression.`}},create(r){let[{allowShortCircuit:i,allowTernary:a,allowTaggedTemplates:o,enforceForJSX:s,ignoreDirectives:c}]=r.options;function l(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`}function u(e,t){for(let n=0;n<t.length;++n)if(!e(t[n]))return t.slice(0,n);return t.slice()}function d(e){return u(l,e.body)}function f(t){return e.isTopLevelExpressionStatement(t)&&d(t.parent).includes(t)}let p=Object.assign(Object.create(null),{isDisallowed(e){return(p[e.type]||n)(e)},ArrayExpression:t,ArrowFunctionExpression:t,BinaryExpression:t,ChainExpression(e){return p.isDisallowed(e.expression)},ClassExpression:t,ConditionalExpression(e){return!a||p.isDisallowed(e.consequent)||p.isDisallowed(e.alternate)},FunctionExpression:t,Identifier:t,JSXElement(){return s},JSXFragment(){return s},Literal:t,LogicalExpression(e){return!i||p.isDisallowed(e.right)},MemberExpression:t,MetaProperty:t,ObjectExpression:t,SequenceExpression:t,TaggedTemplateExpression(){return!o},TemplateLiteral:t,ThisExpression:t,UnaryExpression(e){return e.operator!==`void`&&e.operator!==`delete`},TSAsExpression(e){return p.isDisallowed(e.expression)},TSTypeAssertion(e){return p.isDisallowed(e.expression)},TSNonNullExpression(e){return p.isDisallowed(e.expression)},TSInstantiationExpression(e){return p.isDisallowed(e.expression)}});return{ExpressionStatement(t){p.isDisallowed(t.expression)&&!e.isDirective(t)&&!(c&&f(t))&&r.report({node:t,messageId:`unusedExpression`})}}}},xb}var wb,Tb;function Eb(){if(Tb)return wb;Tb=1;let e=$();return wb={meta:{type:`suggestion`,docs:{description:`Disallow unused labels`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-labels`},schema:[],fixable:`code`,messages:{unused:`'{{name}}:' is defined but never used.`}},create(t){let n=t.sourceCode,r=null;function i(e){r={label:e.label.name,used:!1,upper:r}}function a(t){if(n.getTokenAfter(t.label,{includeComments:!0})!==n.getTokenBefore(t.body,{includeComments:!0}))return!1;let r=t.parent;for(;r.type===`LabeledStatement`;)r=r.parent;if(r.type===`Program`||r.type===`BlockStatement`&&e.isFunction(r.parent)){let{body:n}=t;if(n.type===`ExpressionStatement`&&(n.expression.type===`Literal`&&typeof n.expression.value==`string`||e.isStaticTemplateLiteral(n.expression)))return!1}let i=/^[:;{]$/u,a=/^[([\-+/`]/u,o=n.getTokenBefore(t),s=n.getFirstToken(t.body);return!(o&&!i.test(o.value)&&a.test(s.value))}function o(e){r.used||t.report({node:e.label,messageId:`unused`,data:e.label,fix:a(e)?t=>t.removeRange([e.range[0],e.body.range[0]]):null}),r=r.upper}function s(e){if(!e.label)return;let t=e.label.name,n=r;for(;n;){if(n.label===t){n.used=!0;break}n=n.upper}}return{LabeledStatement:i,"LabeledStatement:exit":o,BreakStatement:s,ContinueStatement:s}}},wb}var Db,Ob;function kb(){if(Ob)return Db;Ob=1;let e=$();return Db={meta:{type:`problem`,hasSuggestions:!0,docs:{description:`Disallow unused private class members`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-private-class-members`},schema:[],messages:{unusedPrivateClassMember:`'{{classMemberName}}' is defined but never used.`,removeUnusedPrivateClassMember:`Remove unused private class member '{{classMemberName}}'.`}},create(t){let n=t.sourceCode,r=[];function i(e){return e.range[0]-e.loc.start.column}function a(e){return n.getTokenBefore(e,{includeComments:!0}).loc.end.line!==e.loc.start.line}function o(e){let t=n.getCommentsBefore(e),r=t.findLastIndex((t,n,r)=>{let i=n<r.length-1?r[n+1]:e;return!a(t)||i.loc.start.line-t.loc.end.line>1});return t.slice(r+1)}function s(e){let t=n.getTokenBefore(e),r=n.getTokenAfter(e);return t.loc.end.line===e.loc.start.line||r.loc.start.line===e.loc.end.line}function c(e){return s(e)?[]:n.getCommentsAfter(e).filter(t=>t.loc.start.line===e.loc.end.line)}function l(t){let r=n.getTokenAfter(t);return e.canContinueExpressionInClassBody(r)&&e.needsPrecedingSemicolon(n,t)?n.getTokenBefore(t):null}function u(e){let t=o(e),r=c(e),l=t.length>0&&!s(e),u=r.length>0?r.at(-1):e,d=n.getTokenBefore(e),f=n.getTokenAfter(u,{includeComments:!0}),p=f.loc.start.line>u.loc.end.line,m=!l&&a(e)&&p,h=e.range[0],g=u.range[1];return l?(h=p?i(t[0]):t[0].range[0],g=p?i(f):f.range[0]):m?(h=i(e),g=i(f)):d.loc.end.line===e.loc.start.line?h=d.range[1]:f.loc.start.line===u.loc.end.line&&(g=f.range[0]),[h,g]}function d(e){let t=e.parent.parent,n=t.type===`AssignmentExpression`;return!n&&t.type!==`ForInStatement`&&t.type!==`ForOfStatement`&&t.type!==`AssignmentPattern`||t.left!==e.parent?!1:n&&t.operator!==`=`?t.parent.type===`ExpressionStatement`:!0}return{ClassBody(e){let t=/* @__PURE__ */ new Map;r.unshift(t);for(let n of e.body)(n.type===`PropertyDefinition`||n.type===`MethodDefinition`)&&n.key.type===`PrivateIdentifier`&&t.set(n.key.name,{declaredNode:n,hasReference:!1,isAccessor:n.type===`MethodDefinition`&&(n.kind===`set`||n.kind===`get`)})},PrivateIdentifier(e){let t=r.find(t=>t.has(e.name));if(!t)return;let n=t.get(e.name);if(n.isUsed||e.parent.type===`PropertyDefinition`||e.parent.type===`MethodDefinition`)return;if(n.hasReference=!0,n.isAccessor){n.isUsed=!0;return}if(d(e))return;let i=e.parent.parent.type,a=e.parent.parent.parent.type;i===`UpdateExpression`&&a===`ExpressionStatement`||i===`Property`&&a===`ObjectPattern`&&e.parent.parent.value===e.parent||i===`RestElement`||i===`ArrayPattern`||(n.isUsed=!0)},"ClassBody:exit"(){let e=r.shift();for(let[n,{declaredNode:r,hasReference:i,isUsed:a}]of e.entries())a||t.report({node:r,loc:r.key.loc,messageId:`unusedPrivateClassMember`,data:{classMemberName:`#${n}`},suggest:[{messageId:`removeUnusedPrivateClassMember`,data:{classMemberName:`#${n}`},*fix(e){if(i)return;let t=u(r),n=l(r);yield e.replaceTextRange(t,``),n&&(yield e.insertTextAfter(n,`;`))}}]})}}}},Db}var Ab,jb;function Mb(){if(jb)return Ab;jb=1;let e=$(),t={vars:`all`,args:`after-used`,ignoreRestSiblings:!1,caughtErrors:`all`,ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1};return Ab={meta:{type:`problem`,docs:{description:`Disallow unused variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-vars`},hasSuggestions:!0,schema:[{oneOf:[{enum:[`all`,`local`]},{type:`object`,properties:{vars:{enum:[`all`,`local`]},varsIgnorePattern:{type:`string`},args:{enum:[`all`,`after-used`,`none`]},ignoreRestSiblings:{type:`boolean`},argsIgnorePattern:{type:`string`},caughtErrors:{enum:[`all`,`none`]},caughtErrorsIgnorePattern:{type:`string`},destructuredArrayIgnorePattern:{type:`string`},ignoreClassWithStaticInitBlock:{type:`boolean`},ignoreUsingDeclarations:{type:`boolean`},reportUsedIgnorePattern:{type:`boolean`}},additionalProperties:!1}]}],defaultOptions:[t],messages:{unusedVar:`'{{varName}}' is {{action}} but never used{{additional}}.`,usedIgnoredVar:`'{{varName}}' is marked as ignored but is used{{additional}}.`,removeVar:`Remove unused variable '{{varName}}'.`}},create(n){let r=n.sourceCode,i=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,a,o=n.options[0];typeof o==`string`?a={...t,vars:o}:(a={...o},o.varsIgnorePattern&&(a.varsIgnorePattern=new RegExp(o.varsIgnorePattern,`u`)),o.argsIgnorePattern&&(a.argsIgnorePattern=new RegExp(o.argsIgnorePattern,`u`)),o.caughtErrorsIgnorePattern&&(a.caughtErrorsIgnorePattern=new RegExp(o.caughtErrorsIgnorePattern,`u`)),o.destructuredArrayIgnorePattern&&(a.destructuredArrayIgnorePattern=new RegExp(o.destructuredArrayIgnorePattern,`u`)));function s(e){if(a.destructuredArrayIgnorePattern&&e.name.parent.type===`ArrayPattern`)return`array-destructure`;switch(e.type){case`CatchClause`:return`catch-clause`;case`Parameter`:return`parameter`;default:return`variable`}}function c(e){let t,n;switch(e){case`array-destructure`:t=a.destructuredArrayIgnorePattern,n=`elements of array destructuring`;break;case`catch-clause`:t=a.caughtErrorsIgnorePattern,n=`caught errors`;break;case`parameter`:t=a.argsIgnorePattern,n=`args`;break;case`variable`:t=a.varsIgnorePattern,n=`vars`;break;default:throw Error(`Unexpected variable type: ${e}`)}return t&&=t.toString(),[n,t]}function l(e){let t=e.defs&&e.defs[0],n=``;if(t){let[e,r]=c(s(t));r&&e&&(n=`. Allowed unused ${e} must match ${r}`)}return{varName:e.name,action:`defined`,additional:n}}function u(e){let t=e.defs&&e.defs[0],n=``;if(t){let[e,r]=c(s(t));r&&e&&(n=`. Allowed unused ${e} must match ${r}`)}return{varName:e.name,action:`assigned a value`,additional:n}}function d(e,t){let[n,r]=c(t),i=``;return r&&n&&(i=`. Used ${n} must not match ${r}`),{varName:e.name,additional:i}}let f=/(?:Statement|Declaration)$/u;function p(e){let t=e.defs[0];if(t){let e=t.node;if(e.type===`VariableDeclarator`)e=e.parent;else if(t.type===`Parameter`)return!1;return e.parent.type.indexOf(`Export`)===0}return!1}function m(e){let[t]=e.defs;return t?.type===`Variable`&&(t.parent.kind===`using`||t.parent.kind===`await using`)}function h(e){return e.type===`Property`&&e.parent.type===`ObjectPattern`&&i.test(e.parent.properties.at(-1).type)}function g(e){if(a.ignoreRestSiblings){let t=e.defs.some(e=>h(e.name.parent)),n=e.references.some(e=>h(e.identifier.parent));return t||n}return!1}function _(e){return e.isRead()}function v(e,t){let n=e.from;for(;n;){if(t.includes(n.block))return!0;n=n.upper}return!1}function y(e){let t=[];return e.defs.forEach(e=>{let{type:n,node:r}=e;n===`FunctionName`&&t.push(r),n===`Variable`&&r.init&&(r.init.type===`FunctionExpression`||r.init.type===`ArrowFunctionExpression`)&&t.push(r.init)}),t}function b(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function x(e){let t=e.parent;return t.type===`ExpressionStatement`?!0:t.type===`SequenceExpression`?t.expressions.at(-1)!==e||x(t):!1}function S(t,n){let r=t.identifier,i=r.parent,a=t.from.variableScope!==t.resolved.scope.variableScope||e.isInLoop(r);return n&&b(r,n)?n:i.type===`AssignmentExpression`&&x(i)&&r===i.left&&!a?i.right:null}function C(e,t){let n=e,r=e.parent;for(;r&&b(r,t);){switch(r.type){case`SequenceExpression`:if(r.expressions.at(-1)!==n)return!1;break;case`CallExpression`:case`NewExpression`:return r.callee!==n;case`AssignmentExpression`:case`TaggedTemplateExpression`:case`YieldExpression`:return!0;default:if(f.test(r.type))return!0}n=r,r=r.parent}return!1}function w(t,n){let r=e.getUpperFunction(t);return r&&b(r,n)&&C(r,n)}function T(t,n){let r=t.identifier,i=r.parent;return t.isRead()&&(i.type===`AssignmentExpression`&&i.left===r&&x(i)&&!e.isLogicalAssignmentOperator(i.operator)||i.type===`UpdateExpression`&&x(i)||n&&b(r,n)&&!w(r,n))}function E(e){let t=e.identifier.parent;return t.type===`VariableDeclarator`&&(t=t.parent.parent),t.type!==`ForInStatement`&&t.type!==`ForOfStatement`||(t=t.body.type===`BlockStatement`?t.body.body[0]:t.body,!t)?!1:t.type===`ReturnStatement`}function D(e){if(e.eslintUsed)return!0;let t=y(e),n=t.length>0,r=null;return e.references.some(e=>{if(E(e))return!0;let i=T(e,r);return r=S(e,r),_(e)&&!i&&!(n&&v(e,t))})}function O(e){let t=e.defs[0],n=r.getDeclaredVariables(t.node);return!n.slice(n.indexOf(e)+1).some(e=>e.references.length>0||e.eslintUsed)}function k(t,r){let i=t.variables,o=t.childScopes,s,c;if(t.type!==`global`||a.vars===`all`)for(s=0,c=i.length;s<c;++s){let o=i[s];if(t.type===`class`&&t.block.id===o.identifiers[0]||t.functionExpressionScope||!a.reportUsedIgnorePattern&&o.eslintUsed||t.type===`function`&&o.name===`arguments`&&o.identifiers.length===0)continue;let c=o.defs[0];if(c){let t=c.type,r=o.references.some(e=>e.identifier.parent.type===`ArrayPattern`);if((c.name.parent.type===`ArrayPattern`||r)&&a.destructuredArrayIgnorePattern&&a.destructuredArrayIgnorePattern.test(c.name.name)){a.reportUsedIgnorePattern&&D(o)&&n.report({node:c.name,messageId:`usedIgnoredVar`,data:d(o,`array-destructure`)});continue}if(t===`ClassName`){let e=c.node.body.body.some(e=>e.type===`StaticBlock`);if(a.ignoreClassWithStaticInitBlock&&e)continue}if(t===`CatchClause`){if(a.caughtErrors===`none`)continue;if(a.caughtErrorsIgnorePattern&&a.caughtErrorsIgnorePattern.test(c.name.name)){a.reportUsedIgnorePattern&&D(o)&&n.report({node:c.name,messageId:`usedIgnoredVar`,data:d(o,`catch-clause`)});continue}}else if(t===`Parameter`){if((c.node.parent.type===`Property`||c.node.parent.type===`MethodDefinition`)&&c.node.parent.kind===`set`||a.args===`none`)continue;if(a.argsIgnorePattern&&a.argsIgnorePattern.test(c.name.name)){a.reportUsedIgnorePattern&&D(o)&&n.report({node:c.name,messageId:`usedIgnoredVar`,data:d(o,`parameter`)});continue}if(a.args===`after-used`&&e.isFunction(c.name.parent)&&!O(o))continue}else if(a.varsIgnorePattern&&a.varsIgnorePattern.test(c.name.name)){a.reportUsedIgnorePattern&&D(o)&&n.report({node:c.name,messageId:`usedIgnoredVar`,data:d(o,`variable`)});continue}}D(o)||p(o)||a.ignoreUsingDeclarations&&m(o)||g(o)||r.push(o)}for(s=0,c=o.length;s<c;++s)k(o[s],r);return r}function A(t,n){let i=n.identifiers[0],a=i.parent,o=a.type,s=r.getTokenBefore(i),c=r.getTokenAfter(i),l=e.isFunction,u=e.isLoop,d=n.references.filter(e=>e.isWrite());function f(e,t){return r.getTokenBefore(e,t).range[0]}function p(e,t){return r.getTokenAfter(e,t).range[1]}function m(e){return r.getTokenBefore(e).value}function h(e){return r.getTokenAfter(e).value}function g(e){return e.elements.filter(e=>e!==null).length===1}function _(e,t){return e.specifiers.some(e=>e.type===t)}function v(t){if(!e.isClosingBraceToken(t))return!1;let n=r.getNodeByRangeIndex(t.range[0]);switch(n.type){case`BlockStatement`:return n.parent.type!==`FunctionExpression`&&n.parent.type!==`ArrowFunctionExpression`;case`ClassBody`:return n.parent.type===`ClassDeclaration`;case`SwitchStatement`:return!0;default:return!1}}function y(t,n){return t.type===`String`||n&&!e.isSemicolonToken(n)&&!e.isOpeningBraceToken(n)&&!v(n)}function b(e){let n=e.parent;return l(n)?n.params.length===1?t.removeRange(e.range):m(e)===`(`&&h(e)===`,`?t.removeRange([e.range[0],p(e)]):t.removeRange([f(e),e.range[1]]):null}function x(n){let i=n.parent;if(i.type===`VariableDeclarator`){if(u(i.parent.parent))return null;if(i.parent.declarations.length===1){let e=r.getTokenAfter(i.parent),n=r.getTokenBefore(i.parent);return e&&y(e,n)?null:t.removeRange(i.parent.range)}if(m(i)===`,`){if(i===i.parent.declarations.at(-1)){let t=r.getLastToken(i.parent);if(!e.isSemicolonToken(t)){let e=r.getTokenAfter(i.parent),t=r.getTokenBefore(i,{skip:1});if(e&&y(e,t))return null}}return t.removeRange([f(i),i.range[1]])}return t.removeRange([i.range[0],p(i)])}return m(n)===`:`&&i.parent.type===`ObjectPattern`?w(n):b(n)}function S(e){let n=e.parent;return n.parent.parent.parent.type===`ObjectPattern`&&n.parent.properties.length===1?S(n.parent):n.parent.type===`ObjectPattern`?n.parent.properties.length===1?x(n.parent):m(n)===`{`?t.removeRange([n.range[0],p(n)]):t.removeRange([f(n),n.range[1]]):null}function C(e){let n=e.parent;return n.parent.type===`ArrayPattern`&&g(n)?C(n):g(n)?m(n)===`:`?x(n):n.parent.type===`RestElement`?T(n.parent):x(n):m(e)===`,`&&h(e)===`]`?t.removeRange([f(e),e.range[1]]):t.removeRange(e.range)}function w(e){let t=e.parent.parent;return t.parent.type===`ArrayPattern`&&t.properties.length===1?C(t):S(e)}function T(e){let n=e.parent;return l(n)?n.params.length===1?t.removeRange(e.range):t.removeRange([f(e),e.range[1]]):n.type===`ArrayPattern`?g(n)?n.parent.type===`ArrayPattern`?C(n):x(n):t.removeRange([f(e),e.range[1]]):null}if(d.some(e=>e.identifier.range[0]!==i.range[0]))return null;if(o===`VariableDeclarator`){if(a.parent.declarations.length===1){if(u(a.parent.parent)&&a.parent.parent.body!==a.parent)return null;if(a.parent.parent.type===`IfStatement`||u(a.parent.parent)||a.parent.parent.type===`WithStatement`&&a.parent.parent.body===a.parent)return t.replaceText(a.parent,`;`);let e=r.getTokenAfter(a.parent),n=r.getTokenBefore(a.parent);return e&&y(e,n)?null:t.removeRange(a.parent.range)}if(s.value===`,`){if(a===a.parent.declarations.at(-1)){let t=r.getLastToken(a.parent);if(!e.isSemicolonToken(t)){let e=r.getTokenAfter(a.parent),t=r.getTokenBefore(a,{skip:1});if(e&&y(e,t))return null}}return t.removeRange([s.range[0],a.range[1]])}return t.removeRange([a.range[0],p(a)])}if(a.parent.type===`ObjectPattern`){if(a.parent.properties.length===1)return a.parent.parent.type===`RestElement`?T(a.parent.parent):a.parent.parent.type===`ArrayPattern`?C(a.parent):x(a.parent);if(s.value===`:`)return m(a)===`{`&&h(a)===`,`?t.removeRange([a.range[0],p(a)]):t.removeRange([f(a),i.range[1]])}if(o===`ArrayPattern`){if(g(a))return a.parent.type===`RestElement`?T(a.parent):a.parent.type===`ArrayPattern`?C(a):x(a);if(s.value===`,`&&c.value===`,`)return t.removeRange(i.range)}if(o===`RestElement`){if(a.parent.type===`ArrayPattern`)return g(a.parent)?a.parent.parent.type===`ArrayPattern`?C(a.parent):x(a.parent):t.removeRange([f(i,1),i.range[1]]);if(a.parent.type===`ObjectPattern`)return a.parent.properties.length===1?x(a.parent):t.removeRange([f(i,1),i.range[1]]);if(l(a.parent))return a.parent.params.length===1?t.removeRange(a.range):t.removeRange([f(a),a.range[1]])}if(o===`AssignmentPattern`){if(a.parent.type===`ArrayPattern`)return C(a);if(a.parent.parent.type===`ObjectPattern`)return a.parent.parent.properties.length===1?a.parent.parent.parent.type===`ArrayPattern`?C(a.parent.parent):x(a.parent.parent):m(a.parent)===`{`&&h(a.parent)===`,`?t.removeRange([a.parent.range[0],p(a.parent)]):t.removeRange([f(a.parent),a.parent.range[1]]);if(l(a.parent))return b(a)}if(o===`FunctionDeclaration`&&a.id===i||o===`ClassDeclaration`){let e=r.getTokenAfter(a),n=r.getTokenBefore(a);return e&&y(e,n)?null:t.removeRange(a.range)}return o===`ImportDefaultSpecifier`?!_(a.parent,`ImportSpecifier`)&&!_(a.parent,`ImportNamespaceSpecifier`)?t.removeRange([a.range[0],a.parent.source.range[0]]):t.removeRange([i.range[0],c.range[1]]):o===`ImportSpecifier`?a.parent.specifiers.filter(e=>e.type===`ImportSpecifier`).length===1?_(a.parent,`ImportDefaultSpecifier`)?t.removeRange([f(a,1),c.range[1]]):t.removeRange(a.parent.range):m(a)===`{`?t.removeRange([a.range[0],p(a)]):t.removeRange([f(a),a.range[1]]):o===`ImportNamespaceSpecifier`?_(a.parent,`ImportDefaultSpecifier`)?t.removeRange([f(a),a.range[1]]):t.removeRange([a.range[0],a.parent.source.range[0]]):o===`CatchClause`?null:s?.value===`,`?t.removeRange([s.range[0],i.range[1]]):c.value===`,`&&(s.value===`(`||s.value===`{`)?t.removeRange([i.range[0],c.range[1]]):o===`ArrowFunctionExpression`&&a.params.length===1&&c?.value!==`)`?t.replaceText(i,`()`):t.removeRange(i.range)}return{"Program:exit"(t){let i=k(r.getScope(t),[]);for(let a=0,o=i.length;a<o;++a){let o=i[a];if(o.defs.length>0){let e=o.references.filter(e=>e.isWrite()&&e.from.variableScope===o.scope.variableScope),t;e.length>0&&(t=e.at(-1)),n.report({node:t?t.identifier:o.identifiers[0],messageId:`unusedVar`,data:o.references.some(e=>e.isWrite())?u(o):l(o),suggest:[{messageId:`removeVar`,data:{varName:o.name},fix(e){return A(e,o)}}]})}else if(o.eslintExplicitGlobalComments){let i=o.eslintExplicitGlobalComments[0];n.report({node:t,loc:e.getNameLocationInGlobalDirectiveComment(r,i,o.name),messageId:`unusedVar`,data:l(o)})}}}}}},Ab}var Nb,Pb;function Fb(){if(Pb)return Nb;Pb=1;let e=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,t=/^For(?:In|Of)Statement$/u;function n(e){return typeof e==`object`&&e?e:{functions:typeof e!=`string`||e!==`nofunc`,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function r(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function i(e,t){return e.body.some(e=>e.type===`StaticBlock`&&r(e,t)||e.type===`PropertyDefinition`&&e.static&&e.value&&r(e.value,t))}function a(e){return e.type===`class-static-block`||e.type===`class-field-initializer`&&e.block.parent.static}function o(e){if(e.type!==`function`)return!1;let t=e.block;return t.parent.type!==`CallExpression`||t.parent.callee!==t?!1:!t.generator&&!t.async}function s(e){let t=e.resolved,n=e.from;for(;t.scope.variableScope!==n.variableScope;)if(a(n.variableScope)||o(n.variableScope))n=n.variableScope.upper;else return!0;return!1}function c(n){if(s(n))return!1;let a=n.identifier.range[1],o=n.resolved.defs[0];if(o.type===`ClassName`){let e=o.node;return r(e,a)&&!i(e.body,a)}let c=o.name.parent;for(;c;){if(c.type===`VariableDeclarator`){if(r(c.init,a)||t.test(c.parent.parent.type)&&r(c.parent.parent.right,a))return!0;break}if(c.type===`AssignmentPattern`){if(r(c.right,a))return!0}else if(e.test(c.type))break;c=c.parent}return!1}function l(e){switch(e.type){case`TSTypeQuery`:return!0;case`TSQualifiedName`:case`Identifier`:return l(e.parent);default:return!1}}function u(e,t){if(e.defs[0].type!==`ClassName`||!e.defs[0].node.decorators||e.defs[0].node.decorators.length===0)return!1;for(let n of e.defs[0].node.decorators)if(t.identifier.range[0]>=n.range[0]&&t.identifier.range[1]<=n.range[1])return!0;return!1}return Nb={meta:{type:`problem`,docs:{description:`Disallow the use of variables before they are defined`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-use-before-define`},schema:[{oneOf:[{enum:[`nofunc`]},{type:`object`,properties:{functions:{type:`boolean`},classes:{type:`boolean`},variables:{type:`boolean`},allowNamedExports:{type:`boolean`},enums:{type:`boolean`},typedefs:{type:`boolean`},ignoreTypeReferences:{type:`boolean`}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:`'{{name}}' was used before it was defined.`}},create(e){let t=n(e.options[0]),r=e.sourceCode;function i(e){if(e.init)return!1;let{identifier:n}=e;if(t.allowNamedExports&&n.parent.type===`ExportSpecifier`&&n.parent.local===n)return!1;let r=e.resolved;if(!r||r.defs.length===0)return!1;let i=r.defs[0].type;if(!t.functions&&i===`FunctionName`||(!t.variables&&i===`Variable`||!t.classes&&i===`ClassName`)&&s(e)||!t.enums&&i===`TSEnumName`||!t.typedefs&&i===`Type`||t.ignoreTypeReferences&&(l(n)||n.parent.type===`TSTypeReference`))return!1;if(n.parent.type===`TSQualifiedName`){let e=n.parent;for(;e.type===`TSQualifiedName`;)e=e.left;return e===n}return!u(r,e)}function a(t){t.references.filter(i).forEach(t=>{let n=t.resolved.defs[0].name;(t.identifier.range[1]<n.range[1]||c(t)&&t.identifier.parent.type!==`TSTypeReference`)&&e.report({node:t.identifier,messageId:`usedBeforeDefined`,data:t.identifier})}),t.childScopes.forEach(a)}return{Program(e){a(r.getScope(e))}}}},Nb}var Ib,Lb;function Rb(){if(Lb)return Ib;Lb=1;let{findVariable:e}=/*@__PURE__*/ tt();function*t(e){switch(e.type){case`Identifier`:yield e;return;case`ObjectPattern`:for(let n of e.properties)yield*t(n.type===`Property`?n.value:n);return;case`ArrayPattern`:for(let n of e.elements)n&&(yield*t(n));return;case`RestElement`:yield*t(e.argument);return;case`AssignmentPattern`:yield*t(e.left)}}function n(e,t){return!(t.range[0]<e.identifier.range[1]||e.expression&&e.expression.range[0]<=t.range[0]&&t.range[1]<=e.expression.range[1])}function r(e,t){return e.expression?e.identifier.range[1]<=t.range[0]&&t.range[1]<=e.expression.range[0]:!1}return Ib={meta:{type:`problem`,docs:{description:`Disallow variable assignments when the value is not used`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-assignment`},schema:[],messages:{unnecessaryAssignment:`The value assigned to '{{name}}' is not used in subsequent statements.`}},create(i){let a=i.sourceCode,o=null,s=/* @__PURE__ */ new Set;function c(e){let t=e;for(;t;){if(s.has(t))return t;t=t.upper}return null}function l(e){function t(t,n){let r=e.segments[t.id];return r.first&&r.last&&r.first.range[0]<=n.range[0]&&n.range[1]<=r.last.range[1]}function a(a,o){if(e.tryStatementBlocks.some(e=>e.range[0]<=a.identifier.range[0]&&a.identifier.range[1]<=e.range[1]))return;let s={results:[],subsequentSegments:/* @__PURE__ */ new Set,queueSegments:a.segments.flatMap(e=>e.nextSegments)};function*l(){for(yield*s.results;s.queueSegments.length>0;){let e=s.queueSegments.shift();if(s.subsequentSegments.has(e))continue;s.subsequentSegments.add(e);let t=o.find(t=>t.segments.includes(e)&&!r(t,a.identifier));t||s.queueSegments.push(...e.nextSegments);let n={segment:e,assignment:t};s.results.push(n),yield n}}if(a.variable.references.some(e=>{let t=e.identifier.type;return t!==`Identifier`&&t!==`JSXIdentifier`}))return;let u=a.variable.references.filter(e=>e.isRead());if(!u.length)return;let d=o.find(e=>e===a||e.segments.length&&e.segments.every(e=>!a.segments.includes(e))?!1:!!(n(a,e.identifier)||e.expression&&e.expression.range[0]<=a.identifier.range[0]&&a.identifier.range[1]<=e.expression.range[1]));for(let i of u){if(e.scope!==c(i.from))return;if(n(a,i.identifier)&&(r(a,i.identifier)||a.segments.some(e=>t(e,i.identifier)))){if(d&&n(d,i.identifier))continue;return}if(!d){for(let e of l())if(t(e.segment,i.identifier)){if(e.assignment&&n(e.assignment,i.identifier))continue;return}}}i.report({node:a.identifier,messageId:`unnecessaryAssignment`,data:{name:a.identifier.name}})}for(let t of e.assignments.values()){t.sort((e,t)=>e.identifier.range[0]-t.identifier.range[0]);for(let e of t)a(e,t)}}return{onCodePathStart(e,t){let n=a.getScope(t);o={upper:o,codePath:e,scope:n,segments:Object.create(null),currentSegments:/* @__PURE__ */ new Set,assignments:/* @__PURE__ */ new Map,tryStatementBlocks:[]},s.add(o.scope)},onCodePathEnd(){l(o),o=o.upper},onCodePathSegmentStart(e){let t={segment:e,first:null,last:null};o.segments[e.id]=t,o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},TryStatement(e){o.tryStatementBlocks.push(e.block)},"Identifier, JSXIdentifier"(e){for(let t of o.currentSegments){let n=o.segments[t.id];n.first||=e,n.last=e}},"VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression:exit"(n){if(o.currentSegments.size===0)return;let r=o.assignments,i,s=null;n.type===`VariableDeclarator`?(i=n.id,s=n.init):n.type===`AssignmentExpression`?(i=n.left,s=n.right):i=n.argument;for(let l of t(i)){let t=a.getScope(l),i=e(t,l);if(!i||i.scope.type===`global`&&i.defs.length===0||o.scope!==c(i.scope)||i.eslintUsed||i.scope.type===`module`&&(i.defs.some(e=>e.type===`Variable`&&e.parent.parent.type===`ExportNamedDeclaration`||e.type===`FunctionName`&&(e.node.parent.type===`ExportNamedDeclaration`||e.node.parent.type===`ExportDefaultDeclaration`)||e.type===`ClassName`&&(e.node.parent.type===`ExportNamedDeclaration`||e.node.parent.type===`ExportDefaultDeclaration`))||i.references.some(e=>e.identifier.parent.type===`ExportSpecifier`)))continue;let u=r.get(i);u||(u=[],r.set(i,u)),u.push({variable:i,identifier:l,node:n,expression:s,segments:[...o.currentSegments]})}}}}},Ib}var zb,Bb;function Vb(){if(Bb)return zb;Bb=1;let{CALL:e,CONSTRUCT:t,ReferenceTracker:n,getStringIfConstant:r}=/*@__PURE__*/ tt(),{RegExpParser:i,visitRegExpAST:a}=bp(),o=new i;function s(e){let t=[],n=e;do t.push(n),n=n.parent;while(n);return t}function c(e){return e.type===`Assertion`&&(e.kind===`lookahead`||e.kind===`lookbehind`)}function l(e){return c(e)&&e.negate}return zb={meta:{type:`problem`,docs:{description:`Disallow useless backreferences in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-backreference`},schema:[],messages:{nested:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.`,forward:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.`,backward:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.`,disjunctive:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.`,intoNegativeLookaround:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround.`}},create(i){let u=i.sourceCode;function d(e,t,n){let r;try{r=o.parsePattern(t,0,t.length,{unicode:n.includes(`u`),unicodeSets:n.includes(`v`)})}catch{return}a(r,{onBackreferenceEnter(t){let n=[t.resolved].flat(),r=s(t),a=n.map(e=>{let n=s(e);if(r.includes(e))return{messageId:`nested`,group:e};let i=r.length-1,a=n.length-1;do i--,a--;while(r[i]===n[a]);let o=a+1,u=n.slice(0,o),d=n.slice(o).find(c),f=d&&d.kind===`lookbehind`;return u.at(-1).type===`Alternative`?{messageId:`disjunctive`,group:e}:!f&&t.end<=e.start?{messageId:`forward`,group:e}:f&&e.end<=t.start?{messageId:`backward`,group:e}:u.some(l)?{messageId:`intoNegativeLookaround`,group:e}:null});if(a.length===0||a.some(e=>!e))return;let o,u=a.filter(e=>e.messageId!==`disjunctive`);o=u.length?u:a;let[{messageId:d,group:f},...p]=o,m=``;p.length===1?m=` and another group`:p.length>1&&(m=` and other ${p.length} groups`),i.report({node:e,messageId:d,data:{bref:t.raw,group:f.raw,otherGroups:m}})}})}return{"Literal[regex]"(e){let{pattern:t,flags:n}=e.regex;d(e,t,n)},Program(i){let a=u.getScope(i),o=new n(a),s={RegExp:{[e]:!0,[t]:!0}};for(let{node:e}of o.iterateGlobalReferences(s)){let[t,n]=e.arguments,i=r(t,a),o=r(n,a);typeof i==`string`&&d(e,i,o||``)}}}}},zb}var Hb,Ub;function Wb(){if(Ub)return Hb;Ub=1;let e=$();function t(t){let n=e.skipChainExpression(t.callee);return n.type===`MemberExpression`&&n.property.type===`Identifier`&&n.computed===!1&&(n.property.name===`call`&&t.arguments.length>=1||n.property.name===`apply`&&t.arguments.length===2&&t.arguments[1].type===`ArrayExpression`)}function n(t,n,r){return t?e.equalTokens(t,n,r):e.isNullOrUndefined(n)}return Hb={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-call`},schema:[],messages:{unnecessaryCall:`Unnecessary '.{{name}}()'.`}},create(r){let i=r.sourceCode;return{CallExpression(a){if(!t(a))return;let o=e.skipChainExpression(a.callee),s=e.skipChainExpression(o.object),c=s.type===`MemberExpression`?s.object:null,l=a.arguments[0];n(c,l,i)&&r.report({node:a,messageId:`unnecessaryCall`,data:{name:o.property.name}})}}}},Hb}var Gb,Kb;function qb(){return Kb||(Kb=1,Gb={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-catch`},schema:[],messages:{unnecessaryCatchClause:`Unnecessary catch clause.`,unnecessaryCatch:`Unnecessary try/catch wrapper.`}},create(e){return{CatchClause(t){t.param&&t.param.type===`Identifier`&&t.body.body.length&&t.body.body[0].type===`ThrowStatement`&&t.body.body[0].argument.type===`Identifier`&&t.body.body[0].argument.name===t.param.name&&(t.parent.finalizer?e.report({node:t,messageId:`unnecessaryCatchClause`}):e.report({node:t.parent,messageId:`unnecessaryCatch`}))}}}}),Gb}var Jb,Yb;function Xb(){if(Yb)return Jb;Yb=1;let e=$();function t(e){if(!e.computed)return!1;let{key:t}=e;if(t.type!==`Literal`)return!1;let{value:n}=t;if(typeof n!=`number`&&typeof n!=`string`)return!1;switch(e.type){case`Property`:return e.parent.type!==`ObjectExpression`||n!==`__proto__`;case`PropertyDefinition`:return e.static?n!==`constructor`&&n!==`prototype`:n!==`constructor`;case`MethodDefinition`:return e.static?n!==`prototype`:n!==`constructor`;
183
+ /* c8 ignore next */
184
+ default:throw Error(`Unexpected node type: ${e.type}`)}}return Jb={meta:{type:`suggestion`,defaultOptions:[{enforceForClassMembers:!0}],docs:{description:`Disallow unnecessary computed property keys in objects and classes`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-useless-computed-key`},schema:[{type:`object`,properties:{enforceForClassMembers:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unnecessarilyComputedProperty:`Unnecessarily computed property [{{property}}] found.`}},create(n){let r=n.sourceCode,[{enforceForClassMembers:i}]=n.options;function a(i){if(t(i)){let{key:t}=i;n.report({node:i,messageId:`unnecessarilyComputedProperty`,data:{property:r.getText(t)},fix(n){let i=r.getTokenBefore(t,e.isOpeningBracketToken),a=r.getTokenAfter(t,e.isClosingBracketToken);if(r.commentsExistBetween(i,a))return null;let o=r.getTokenBefore(i),s=(o.range[1]===i.range[0]&&!e.canTokensBeAdjacent(o,r.getFirstToken(t))?` `:``)+t.raw;return n.replaceTextRange([i.range[0],a.range[1]],s)}})}}function o(){}return{Property:a,MethodDefinition:i?a:o,PropertyDefinition:i?a:o}}},Jb}var Zb,Qb;function $b(){if(Qb)return Zb;Qb=1;let e=$();function t(e){return e.type===`BinaryExpression`&&e.operator===`+`}function n(e){return e.value===`+`&&e.type===`Punctuator`}function r(e){let n=e.left;for(;t(n);)n=n.right;return n}function i(e){let n=e.right;for(;t(n);)n=n.left;return n}return Zb={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary concatenation of literals or template literals`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-useless-concat`},schema:[],messages:{unexpectedConcat:`Unexpected string concatenation of literals.`}},create(t){let a=t.sourceCode;return{BinaryExpression(o){if(o.operator!==`+`)return;let s=r(o),c=i(o);if(e.isStringLiteral(s)&&e.isStringLiteral(c)&&e.isTokenOnSameLine(s,c)){let e=a.getFirstTokenBetween(s,c,n);t.report({node:o,loc:e.loc,messageId:`unexpectedConcat`})}}}}},Zb}var ex,tx;function nx(){if(tx)return ex;tx=1;let e=$();function t(e){return e.value.params.some(e=>e.decorators?.length||e.type===`TSParameterProperty`)}function n(e){switch(e.accessibility){case`protected`:case`private`:return!0;case`public`:return!!e.parent.parent.superClass;default:return!1}}function r(e){return e.length===1&&e[0].type===`ExpressionStatement`&&e[0].expression.type===`CallExpression`&&e[0].expression.callee.type===`Super`}function i(e){return e.type===`Identifier`||e.type===`RestElement`}function a(e){return e.length===1&&e[0].type===`SpreadElement`&&e[0].argument.type===`Identifier`&&e[0].argument.name===`arguments`}function o(e,t){return e.type===`Identifier`&&t.type===`Identifier`&&e.name===t.name}function s(e,t){return e.type===`RestElement`&&t.type===`SpreadElement`&&o(e.argument,t.argument)}function c(e,t){return o(e,t)||s(e,t)}function l(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!c(e[n],t[n]))return!1;return!0}function u(e,t){return r(e)&&t.every(i)&&(a(e[0].expression.arguments)||l(t,e[0].expression.arguments))}return ex={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary constructors`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-constructor`},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:`Useless constructor.`,removeConstructor:`Remove the constructor.`}},create(r){let{sourceCode:i}=r;function a(a){if(a.kind!==`constructor`||a.value.type!==`FunctionExpression`||t(a)||n(a)||!a.value.body)return;let o=a.value.body.body,s=a.value.params,c=a.parent.parent.superClass,l=i.getFirstToken(a,e.isOpeningParenToken),d={start:a.loc.start,end:i.getTokenBefore(l).loc.end};(c?u(o,s):o.length===0)&&r.report({loc:d,messageId:`noUselessConstructor`,suggest:[{messageId:`removeConstructor`,*fix(t){let n=i.getTokenAfter(a),r=e.canContinueExpressionInClassBody(n)&&e.needsPrecedingSemicolon(i,a);yield t.replaceText(a,r?`;`:``)}}]})}return{MethodDefinition:a}}},ex}var rx,ix;function ax(){if(ix)return rx;ix=1;let e=$(),{RegExpParser:t,visitRegExpAST:n}=bp();function r(e,t){return new Set((function*(){yield*e,yield*t})())}let i=r(/* @__PURE__ */ new Set(`\\nrvtbfux`),e.LINEBREAKS),a=/* @__PURE__ */ new Set(`\\bcdDfnpPrsStvwWxu0123456789]`),o=r(a,/* @__PURE__ */ new Set(`^/.$*+?[{}|()Bk`)),s=r(a,/* @__PURE__ */ new Set(`q/[{}|()-`)),c=/* @__PURE__ */ new Set("!#$%&*+,.:;<=>?@^`~");return rx={meta:{type:`suggestion`,defaultOptions:[{allowRegexCharacters:[]}],docs:{description:`Disallow unnecessary escape characters`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-escape`},hasSuggestions:!0,messages:{unnecessaryEscape:`Unnecessary escape character: \\{{character}}.`,removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:`object`,properties:{allowRegexCharacters:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}]},create(r){let l=r.sourceCode,[{allowRegexCharacters:u}]=r.options,d=new t;function f(t,n,i,a){let o=t.range[0]+n,s=[o,o+1],c=l.getLocFromIndex(o);r.report({node:t,loc:{start:c,end:{line:c.line,column:c.column+1}},messageId:`unnecessaryEscape`,data:{character:i},suggest:[{messageId:e.isDirective(t.parent)?`removeEscapeDoNotKeepSemantics`:`removeEscape`,fix(e){return e.removeRange(s)}},...a?[]:[{messageId:`escapeBackslash`,fix(e){return e.insertTextBeforeRange(s,`\\`)}}]]})}function p(e,t){let n=e.type===`TemplateElement`,r=t[0][1],a=!i.has(r),o;n?(o=r==="`",r===`$`?a=t.input[t.index+2]!==`{`:r===`{`&&(a=t.input[t.index-1]!==`$`)):o=r===e.raw[0],a&&!o&&f(e,t.index,t[0].slice(1))}function m(e){let{pattern:t,flags:r}=e.regex,i,l=r.includes(`u`),p=r.includes(`v`);try{i=d.parsePattern(t,0,t.length,{unicode:l,unicodeSets:p})}catch{return}let m=[];n(i,{onCharacterClassEnter:e=>m.unshift(e),onCharacterClassLeave:()=>m.shift(),onExpressionCharacterClassEnter:e=>m.unshift(e),onExpressionCharacterClassLeave:()=>m.shift(),onCharacterEnter(n){if(!n.raw.startsWith(`\\`))return;let r=n.raw.slice(1);if(r!==String.fromCodePoint(n.value)||u.includes(r))return;let i;if(i=m.length?p?s:a:o,i.has(r))return;let l=n.start+1,d=!1;if(m.length){let e=m[0];if(r===`^`&&e.start+1===n.start)return;if(p){if(c.has(r)&&(t[n.end]===r||t[n.start-1]===r&&(r!==`^`||!e.negate||e.start+1<n.start-1)))return;(n.parent.type===`ClassIntersection`||n.parent.type===`ClassSubtraction`)&&(d=!0)}else if(r===`-`&&e.start+1!==n.start&&n.end!==e.end-1)return}f(e,l,r,d)}})}function h(e){let t=e.type===`TemplateElement`;if(!(t&&e.parent&&e.parent.parent&&e.parent.parent.type===`TaggedTemplateExpression`&&e.parent===e.parent.parent.quasi)){if(typeof e.value==`string`||t){if(e.parent.type===`JSXAttribute`||e.parent.type===`JSXElement`||e.parent.type===`JSXFragment`)return;let n=t?l.getText(e):e.raw,r=/\\\D/gu,i;for(;i=r.exec(n);)p(e,i)}else e.regex&&m(e)}}return{Literal:h,TemplateElement:h}}},rx}var ox,sx;function cx(){if(sx)return ox;sx=1;let e=$();return ox={meta:{type:`suggestion`,defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:`Disallow renaming import, export, and destructured assignments to the same name`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-rename`},fixable:`code`,schema:[{type:`object`,properties:{ignoreDestructuring:{type:`boolean`},ignoreImport:{type:`boolean`},ignoreExport:{type:`boolean`}},additionalProperties:!1}],messages:{unnecessarilyRenamed:`{{type}} {{name}} unnecessarily renamed.`}},create(t){let n=t.sourceCode,[{ignoreDestructuring:r,ignoreImport:i,ignoreExport:a}]=t.options;function o(r,i,a){let o=i.type===`Identifier`?i.name:i.value;return t.report({node:r,messageId:`unnecessarilyRenamed`,data:{name:o,type:a},fix(t){let a=r.type===`Property`?r.value:r.local;return n.getCommentsInside(r).length>n.getCommentsInside(a).length||a.type===`AssignmentPattern`&&e.isParenthesised(n,a.left)?null:t.replaceTextRange([i.range[0],r.range[1]],n.getText(a))}})}function s(e){if(!r)for(let t of e.properties)t.type!==`Property`||t.shorthand||t.computed||(t.key.type===`Identifier`&&t.key.name||t.key.type===`Literal`&&t.key.value)===(t.value.type===`AssignmentPattern`?t.value.left.name:t.value.name)&&o(t,t.key,`Destructuring assignment`)}function c(t){i||t.imported.range[0]!==t.local.range[0]&&e.getModuleExportName(t.imported)===t.local.name&&o(t,t.imported,`Import`)}function l(t){a||t.local.range[0]!==t.exported.range[0]&&e.getModuleExportName(t.local)===e.getModuleExportName(t.exported)&&o(t,t.local,`Export`)}return{ObjectPattern:s,ImportSpecifier:c,ExportSpecifier:l}}},ox}var lx,ux;function dx(){if(ux)return lx;ux=1;let e=$(),t=$p(),{isAnySegmentReachable:n}=Qs();function r(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function i(t){return e.STATEMENT_LIST_PARENTS.has(t.parent.type)}function a(t){for(let n=t;n&&n.parent&&!e.isFunction(n);n=n.parent)if(n.parent.type===`TryStatement`&&n.parent.finalizer===n)return!0;return!1}return lx={meta:{type:`suggestion`,docs:{description:`Disallow redundant return statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-return`},fixable:`code`,schema:[],messages:{unnecessaryReturn:`Unnecessary return statement.`}},create(o){let s=/* @__PURE__ */ new WeakMap,c=o.sourceCode,l=null;function u(e){let t=s.get(e);return!t||t.returned}function d(e,t,n){let r=n||/* @__PURE__ */ new WeakSet;for(let n of t)n.reachable?s.has(n)&&e.push(...s.get(n).uselessReturns):r.has(n)||(r.add(n),d(e,n.allPrevSegments.filter(u),r));return e}function f(e,t){if(!e.reachable){t.add(e),e.allPrevSegments.filter(u).filter(e=>!t.has(e)).forEach(e=>f(e,t));return}let n=s.get(e);n&&(n.uselessReturns=n.uselessReturns.filter(e=>{if(l.traversedTryBlockStatements&&l.traversedTryBlockStatements.length>0){let t=e.range[0],n=e.range[1];if(l.traversedTryBlockStatements.some(e=>{let r=e.range[0],i=e.range[1];return t>=r&&n<=i}))return!0}return r(l.uselessReturns,e),!1}))}function p(){l.currentSegments.forEach(e=>f(e,/* @__PURE__ */ new Set))}return{onCodePathStart(e){l={upper:l,uselessReturns:[],traversedTryBlockStatements:[],codePath:e,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(){for(let e of l.uselessReturns)o.report({node:e,loc:e.loc,messageId:`unnecessaryReturn`,fix(n){return i(e)&&!c.getCommentsInside(e).length?new t(n,c).retainEnclosingFunction(e).remove(e):null}});l=l.upper},onCodePathSegmentStart(e){l.currentSegments.add(e);let t={uselessReturns:d([],e.allPrevSegments),returned:!1};s.set(e,t)},onUnreachableCodePathSegmentStart(e){l.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){l.currentSegments.delete(e)},onCodePathSegmentEnd(e){l.currentSegments.delete(e)},ReturnStatement(t){if(t.argument&&p(),!(t.argument||e.isInLoop(t)||a(t)||!n(l.currentSegments))){for(let e of l.currentSegments){let n=s.get(e);n&&(n.uselessReturns.push(t),n.returned=!0)}l.uselessReturns.push(t)}},"TryStatement > BlockStatement.block:exit"(e){l.traversedTryBlockStatements.push(e)},"TryStatement:exit"(){l.traversedTryBlockStatements.pop()},ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,EmptyStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p}}},lx}var fx,px;function mx(){if(px)return fx;px=1;let e=$(),t=$p();function n(e){return!!e.scope&&e.scope.type===`global`}function r(e){let t=e;for(;t.type!==`function`&&t.type!==`global`;)t=t.upper;return t}function i(e){let t=r(e.scope);return e.references.some(e=>r(e.from)!==t)}function a(e){return(e.parent.type===`ForOfStatement`||e.parent.type===`ForInStatement`)&&e===e.parent.left}function o(e){return e.declarations.every(e=>e.init!==null)}let s=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function c(e){for(let t=e;t;t=t.parent)if(s.test(t.type))return t;
185
+ /* c8 ignore next */
186
+ return null}function l(e){return e.defs.length>=2}function u(e){function t(t){let n=e.range,r=t.identifier.range;return r[0]<n[0]||r[1]>n[1]}return function(e){return e.references.some(t)}}function d(t){let n=t.range[0],r=t.range[1];return i=>{let a=i.defs[0].name,o=a.range[0],s=a.parent.type===`AssignmentPattern`?a.parent.right:null,c=s&&s.range[0],l=s&&s.range[1];return i.references.some(i=>{let a=i.identifier.range[0],u=i.identifier.range[1];return!i.init&&(a<o||s!==null&&a>=c&&u<=l||!e.isFunction(t)&&a>=n&&u<=r)})}}function f(e){return e.name===`let`}function p(e){let t=e.defs[0].node.range[0];return e.references.some(e=>{let n=e.identifier.range[0];return!e.init&&n<t})}function m(e){let t=e.defs[0].node.range[0];for(let n of e.references){if(n.init||n.identifier.range[0]<t)continue;let r=n.from.variableScope;for(;r!==e.scope;){if(r.block.type===`FunctionDeclaration`&&r.block.id){let e=r.block.id.name,n=r.upper.set.get(e);for(let e of n.references){let n=e.identifier;if(n.parent.type===`CallExpression`&&n.parent.callee===n&&n.range[0]<t)return!0}}r=r.upper.variableScope}}return!1}function h(t,n){return r=>e.getVariableByName(n.getScope(t),r.name)!==r}return fx={meta:{type:`suggestion`,docs:{description:"Require `let` or `const` instead of `var`",dialects:[`JavaScript`,`TypeScript`],recommended:!1,url:`https://eslint.org/docs/latest/rules/no-var`},schema:[],fixable:`code`,messages:{unexpectedVar:`Unexpected var, use let or const instead.`}},create(r){let s=r.sourceCode;function g(e){return e.init?s.getDeclaredVariables(e).some(d(e.init)):!1}function _(t){let r=s.getDeclaredVariables(t),d=c(t),_=/* @__PURE__ */ new Set([...e.STATEMENT_LIST_PARENTS,`TSModuleBlock`]);return!(t.parent.type===`SwitchCase`||t.declarations.some(g)||r.some(n)||r.some(l)||r.some(u(d))||r.some(f)||r.some(p)||r.some(m)||r.some(h(t,s))||e.isInLoop(t)&&(r.some(i)||!a(t)&&!o(t))||!a(t)&&(t.parent.type!==`ForStatement`||t.parent.init!==t)&&!_.has(t.parent.type))}function v(e){r.report({node:e,messageId:`unexpectedVar`,fix(n){let r=s.getFirstToken(e,{filter:e=>e.value===`var`});return _(e)?new t(n,s).retainRange(e.range).replaceTextRange(r.range,`let`):null}})}return{"VariableDeclaration:exit"(e){e.kind===`var`&&(e.parent.type===`TSModuleBlock`&&e.parent.parent.type===`TSModuleDeclaration`&&e.parent.parent.global||v(e))}}}},fx}var hx,gx;function _x(){return gx||(gx=1,hx={meta:{type:`suggestion`,defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-void`},messages:{noVoid:`Expected 'undefined' and instead saw 'void'.`},schema:[{type:`object`,properties:{allowAsStatement:{type:`boolean`}},additionalProperties:!1}]},create(e){let[{allowAsStatement:t}]=e.options;return{'UnaryExpression[operator="void"]'(n){t&&n.parent&&n.parent.type===`ExpressionStatement`||e.report({node:n,messageId:`noVoid`})}}}}),hx}var vx,yx;function bx(){if(yx)return vx;yx=1;let e=pr(),t=$();return vx={meta:{type:`suggestion`,defaultOptions:[{location:`start`,terms:[`todo`,`fixme`,`xxx`]}],docs:{description:`Disallow specified warning terms in comments`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-warning-comments`},schema:[{type:`object`,properties:{terms:{type:`array`,items:{type:`string`}},location:{enum:[`start`,`anywhere`]},decoration:{type:`array`,items:{type:`string`,pattern:`^\\S$`},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:`Unexpected '{{matchedTerm}}' comment: '{{comment}}'.`}},create(n){let r=n.sourceCode,[{decoration:i,location:a,terms:o}]=n.options,s=e(i?i.join(``):``),c=/\bno-warning-comments\b/u;function l(t){let n=e(t),r=``;a===`start`?r=`^[\\s${s}]*`:/^\w/u.test(t)&&(r=`\\b`);let i=/\w$/u.test(t)?`\\b`:``;return RegExp(`${r}${n}${i}`,`iu`)}let u=o.map(l);function d(e){let t=[];return u.forEach((n,r)=>{n.test(e)&&t.push(o[r])}),t}function f(e){let r=e.value;t.isDirectiveComment(e)&&c.test(r)||d(r).forEach(t=>{let i=``,a=!1;for(let e of r.trim().split(/\s+/u)){let t=i?`${i} ${e}`:e;if(t.length<=40)i=t;else{a=!0;break}}n.report({node:e,messageId:`unexpectedComment`,data:{matchedTerm:t,comment:`${i}${a?`...`:``}`}})})}return{Program(){r.getAllComments().filter(e=>e.type!==`Shebang`).forEach(f)}}}},vx}var xx,Sx;function Cx(){if(Sx)return xx;Sx=1;let e=$();return xx={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-whitespace-before-property`,url:`https://eslint.style/rules/no-whitespace-before-property`}}]},type:`layout`,docs:{description:`Disallow whitespace before properties`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-whitespace-before-property`},fixable:`whitespace`,schema:[],messages:{unexpectedWhitespace:`Unexpected whitespace before property {{propName}}.`}},create(t){let n=t.sourceCode;function r(r,i,a){t.report({node:r,messageId:`unexpectedWhitespace`,data:{propName:n.getText(r.property)},fix(t){let o=``;return!r.computed&&!r.optional&&e.isDecimalInteger(r.object)||n.commentsExistBetween(i,a)?null:(r.optional?o=`?.`:r.computed||(o=`.`),t.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(t){let i,a;e.isTokenOnSameLine(t.object,t.property)&&(t.computed?(i=n.getTokenBefore(t.property,e.isOpeningBracketToken),a=n.getTokenBefore(i,+!!t.optional)):(i=n.getFirstToken(t.property),a=n.getTokenBefore(i,1)),n.isSpaceBetween(a,i)&&r(t,a,i))}}}},xx}var wx,Tx;function Ex(){return Tx||(Tx=1,wx={meta:{type:`suggestion`,docs:{description:"Disallow `with` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-with`},schema:[],messages:{unexpectedWith:`Unexpected use of 'with' statement.`}},create(e){let t=e.sourceCode;return{WithStatement(n){e.report({node:n,loc:t.getFirstToken(n).loc,messageId:`unexpectedWith`})}}}}),wx}var Dx,Ox;function kx(){if(Ox)return Dx;Ox=1;let e={enum:[`beside`,`below`,`any`]};return Dx={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`nonblock-statement-body-position`,url:`https://eslint.style/rules/nonblock-statement-body-position`}}]},type:`layout`,docs:{description:`Enforce the location of single-line statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/nonblock-statement-body-position`},fixable:`whitespace`,schema:[e,{properties:{overrides:{properties:{if:e,else:e,while:e,do:e,for:e},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:`Expected no linebreak before this statement.`,expectLinebreak:`Expected a linebreak before this statement.`}},create(e){let t=e.sourceCode;function n(t){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[t]||e.options[0]||`beside`}function r(r,i){let a=n(i);if(r.type===`BlockStatement`||a===`any`)return;let o=t.getTokenBefore(r);o.loc.end.line===r.loc.start.line&&a===`below`?e.report({node:r,messageId:`expectLinebreak`,fix:e=>e.insertTextBefore(r,`
187
+ `)}):o.loc.end.line!==r.loc.start.line&&a===`beside`&&e.report({node:r,messageId:`expectNoLinebreak`,fix(e){return t.getText().slice(o.range[1],r.range[0]).trim()?null:e.replaceTextRange([o.range[1],r.range[0]],` `)}})}return{IfStatement(e){r(e.consequent,`if`),e.alternate&&e.alternate.type!==`IfStatement`&&r(e.alternate,`else`)},WhileStatement:e=>r(e.body,`while`),DoWhileStatement:e=>r(e.body,`do`),ForStatement:e=>r(e.body,`for`),ForInStatement:e=>r(e.body,`for`),ForOfStatement:e=>r(e.body,`for`)}}},Dx}var Ax,jx;function Mx(){if(jx)return Ax;jx=1;let e=$(),t={oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{multiline:{type:`boolean`},minProperties:{type:`integer`,minimum:0},consistent:{type:`boolean`}},additionalProperties:!1,minProperties:1}]};function n(e){let t=!1,n=1/0,r=!1;return e?e===`always`?n=0:e===`never`?n=1/0:(t=!!e.multiline,n=e.minProperties||1/0,r=!!e.consistent):r=!0,{multiline:t,minProperties:n,consistent:r}}function r(e){return typeof e==`object`&&!!e}function i(e){return r(e)||typeof e==`string`}function a(e){if(r(e)&&Object.values(e).some(i))return{ObjectExpression:n(e.ObjectExpression),ObjectPattern:n(e.ObjectPattern),ImportDeclaration:n(e.ImportDeclaration),ExportNamedDeclaration:n(e.ExportDeclaration)};let t=n(e);return{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportNamedDeclaration:t}}function o(e,t,n,r){let i;return i=e.type===`ObjectExpression`||e.type===`ObjectPattern`?e.properties:e.specifiers.filter(e=>e.type===`ImportSpecifier`||e.type===`ExportSpecifier`),i.length>=t.minProperties||t.multiline&&i.length>0&&n.loc.start.line!==r.loc.end.line}return Ax={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-curly-newline`,url:`https://eslint.style/rules/object-curly-newline`}}]},type:`layout`,docs:{description:`Enforce consistent line breaks after opening and before closing braces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-curly-newline`},fixable:`whitespace`,schema:[{oneOf:[t,{type:`object`,properties:{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportDeclaration:t},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:`Unexpected line break before this closing brace.`,unexpectedLinebreakAfterOpeningBrace:`Unexpected line break after this opening brace.`,expectedLinebreakBeforeClosingBrace:`Expected a line break before this closing brace.`,expectedLinebreakAfterOpeningBrace:`Expected a line break after this opening brace.`}},create(t){let n=t.sourceCode,r=a(t.options[0]);function i(i){let a=r[i.type];if(i.type===`ImportDeclaration`&&!i.specifiers.some(e=>e.type===`ImportSpecifier`)||i.type===`ExportNamedDeclaration`&&!i.specifiers.some(e=>e.type===`ExportSpecifier`))return;let s=n.getFirstToken(i,e=>e.value===`{`),c;c=i.typeAnnotation?n.getTokenBefore(i.typeAnnotation):n.getLastToken(i,e=>e.value===`}`);let l=n.getTokenAfter(s,{includeComments:!0}),u=n.getTokenBefore(c,{includeComments:!0}),d=o(i,a,l,u),f=e.isCommentToken(l),p=e.isCommentToken(u);if(l=n.getTokenAfter(s),u=n.getTokenBefore(c),d)e.isTokenOnSameLine(s,l)&&t.report({messageId:`expectedLinebreakAfterOpeningBrace`,node:i,loc:s.loc,fix(e){return f?null:e.insertTextAfter(s,`
188
+ `)}}),e.isTokenOnSameLine(u,c)&&t.report({messageId:`expectedLinebreakBeforeClosingBrace`,node:i,loc:c.loc,fix(e){return p?null:e.insertTextBefore(c,`
189
+ `)}});else{let n=a.consistent,r=!e.isTokenOnSameLine(s,l),o=!e.isTokenOnSameLine(u,c);(!n&&r||n&&r&&!o)&&t.report({messageId:`unexpectedLinebreakAfterOpeningBrace`,node:i,loc:s.loc,fix(e){return f?null:e.removeRange([s.range[1],l.range[0]])}}),(!n&&o||n&&!r&&o)&&t.report({messageId:`unexpectedLinebreakBeforeClosingBrace`,node:i,loc:c.loc,fix(e){return p?null:e.removeRange([u.range[1],c.range[0]])}})}}return{ObjectExpression:i,ObjectPattern:i,ImportDeclaration:i,ExportNamedDeclaration:i}}},Ax}var Nx,Px;function Fx(){if(Px)return Nx;Px=1;let e=$();return Nx={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-curly-spacing`,url:`https://eslint.style/rules/object-curly-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside braces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-curly-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{arraysInObjects:{type:`boolean`},objectsInObjects:{type:`boolean`}},additionalProperties:!1}],messages:{requireSpaceBefore:`A space is required before '{{token}}'.`,requireSpaceAfter:`A space is required after '{{token}}'.`,unexpectedSpaceBefore:`There should be no space before '{{token}}'.`,unexpectedSpaceAfter:`There should be no space after '{{token}}'.`}},create(t){let n=t.options[0]===`always`,r=t.sourceCode;function i(e){return t.options[1]?t.options[1][e]===!n:!1}let a={spaced:n,arraysInObjectsException:i(`arraysInObjects`),objectsInObjectsException:i(`objectsInObjects`)};function o(e,n){let r=t.sourceCode.getTokenAfter(n,{includeComments:!0});t.report({node:e,loc:{start:n.loc.end,end:r.loc.start},messageId:`unexpectedSpaceAfter`,data:{token:n.value},fix(e){return e.removeRange([n.range[1],r.range[0]])}})}function s(e,n){let r=t.sourceCode.getTokenBefore(n,{includeComments:!0});t.report({node:e,loc:{start:r.loc.end,end:n.loc.start},messageId:`unexpectedSpaceBefore`,data:{token:n.value},fix(e){return e.removeRange([r.range[1],n.range[0]])}})}function c(e,n){t.report({node:e,loc:n.loc,messageId:`requireSpaceAfter`,data:{token:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function l(e,n){t.report({node:e,loc:n.loc,messageId:`requireSpaceBefore`,data:{token:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function u(t,n,i,u,d){if(e.isTokenOnSameLine(n,i)){let e=r.isSpaceBetween(n,i);a.spaced&&!e&&c(t,n),!a.spaced&&e&&i.type!==`Line`&&o(t,n)}if(e.isTokenOnSameLine(u,d)){let n=(a.arraysInObjectsException&&e.isClosingBracketToken(u)||a.objectsInObjectsException&&e.isClosingBraceToken(u))&&r.getNodeByRangeIndex(u.range[0]).type,i=a.arraysInObjectsException&&n===`ArrayExpression`||a.objectsInObjectsException&&(n===`ObjectExpression`||n===`ObjectPattern`)?!a.spaced:a.spaced,o=r.isSpaceBetween(u,d);i&&!o&&l(t,d),!i&&o&&s(t,d)}}function d(t){let n=t.properties.at(-1);return r.getTokenAfter(n,e.isClosingBraceToken)}function f(e){if(e.properties.length===0)return;let t=r.getFirstToken(e),n=d(e);u(e,t,r.getTokenAfter(t,{includeComments:!0}),r.getTokenBefore(n,{includeComments:!0}),n)}function p(t){if(t.specifiers.length===0)return;let n=t.specifiers[0],i=t.specifiers.at(-1);if(i.type!==`ImportSpecifier`)return;n.type!==`ImportSpecifier`&&(n=t.specifiers[1]);let a=r.getTokenBefore(n),o=r.getTokenAfter(i,e.isNotCommaToken);u(t,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(o,{includeComments:!0}),o)}function m(t){if(t.specifiers.length===0)return;let n=t.specifiers[0],i=t.specifiers.at(-1),a=r.getTokenBefore(n),o=r.getTokenAfter(i,e.isNotCommaToken);u(t,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(o,{includeComments:!0}),o)}return{ObjectPattern:f,ObjectExpression:f,ImportDeclaration:p,ExportNamedDeclaration:m}}},Nx}var Ix,Lx;function Rx(){return Lx||(Lx=1,Ix={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-property-newline`,url:`https://eslint.style/rules/object-property-newline`}}]},type:`layout`,docs:{description:`Enforce placing object properties on separate lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-property-newline`},schema:[{type:`object`,properties:{allowAllPropertiesOnSameLine:{type:`boolean`,default:!1},allowMultiplePropertiesPerLine:{type:`boolean`,default:!1}},additionalProperties:!1}],fixable:`whitespace`,messages:{propertiesOnNewlineAll:`Object properties must go on a new line if they aren't all on the same line.`,propertiesOnNewline:`Object properties must go on a new line.`}},create(e){let t=e.options[0]&&(e.options[0].allowAllPropertiesOnSameLine||e.options[0].allowMultiplePropertiesPerLine),n=t?`propertiesOnNewlineAll`:`propertiesOnNewline`,r=e.sourceCode;return{ObjectExpression(i){if(t&&i.properties.length>1){let e=r.getFirstToken(i.properties[0]),t=r.getLastToken(i.properties.at(-1));if(e.loc.end.line===t.loc.start.line)return}for(let t=1;t<i.properties.length;t++){let a=r.getLastToken(i.properties[t-1]),o=r.getFirstToken(i.properties[t]);a.loc.end.line===o.loc.start.line&&e.report({node:i,loc:o.loc,messageId:n,fix(e){let t=[r.getTokenBefore(o).range[1],o.range[0]];return r.text.slice(t[0],t[1]).trim()?null:e.replaceTextRange(t,`
190
+ `)}})}}}}}),Ix}var zx,Bx;function Vx(){if(Bx)return zx;Bx=1;let e={always:`always`,never:`never`,methods:`methods`,properties:`properties`,consistent:`consistent`,consistentAsNeeded:`consistent-as-needed`},t=$(),{containsLetter:n}=jc(),r=/[^_$0-9]/u,i=/^\s*\*/u;function a(e){let t=r.exec(e);if(!t)return!1;let i=t[0];return n(i)?i===i.toUpperCase():!1}function o(e){return e.kind!==`set`&&e.kind!==`get`&&e.type!==`SpreadElement`&&e.type!==`SpreadProperty`&&e.type!==`ExperimentalSpreadProperty`}function s(e){return e.type===`Literal`&&typeof e.value==`string`}function c(e){return!e.computed&&t.getStaticPropertyName(e)===`__proto__`}function l(e){return e.shorthand||e.method}function u(e,t){for(let n=t.getScope(e).variableScope;n;n=n.upper?.variableScope){if(n.type===`class-field-initializer`||n.type===`class-static-block`)return null;let e=n.block;if(e.type===`FunctionExpression`||e.type===`FunctionDeclaration`)return e.parent.type===`Property`&&e.parent.method?e.parent:null}return null}function d(e){let n=e.value;return c(e)?!1:n.type===`FunctionExpression`?!n.id:n.type===`Identifier`&&t.getStaticPropertyName(e)===n.name}return zx={meta:{type:`suggestion`,docs:{description:`Require or disallow method and property shorthand syntax for object literals`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/object-shorthand`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`methods`,`properties`,`never`,`consistent`,`consistent-as-needed`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`always`,`methods`,`properties`]},{type:`object`,properties:{avoidQuotes:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2},{type:`array`,items:[{enum:[`always`,`methods`]},{type:`object`,properties:{ignoreConstructors:{type:`boolean`},methodsIgnorePattern:{type:`string`},avoidQuotes:{type:`boolean`},avoidExplicitReturnArrows:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},defaultOptions:[`always`],messages:{expectedAllPropertiesShorthanded:`Expected shorthand for all properties.`,expectedLiteralMethodLongform:`Expected longform method syntax for string literal keys.`,expectedPropertyShorthand:`Expected property shorthand.`,expectedPropertyLongform:`Expected longform property syntax.`,expectedMethodShorthand:`Expected method shorthand.`,expectedMethodLongform:`Expected longform method syntax.`,unexpectedMix:`Unexpected mix of shorthand and non-shorthand properties.`}},create(n){let r=n.options[0],f=r===e.methods||r===e.always,p=r===e.properties||r===e.always,m=r===e.never,h=r===e.consistent,g=r===e.consistentAsNeeded,_=n.options[1]||{},v=_.ignoreConstructors,y=_.methodsIgnorePattern?new RegExp(_.methodsIgnorePattern,`u`):null,b=_.avoidQuotes,x=!!_.avoidExplicitReturnArrows,S=n.sourceCode;function C(e,t){let r=e.properties.filter(o);if(r.length>0){let i=r.filter(l);i.length!==r.length&&(i.length>0?n.report({node:e,messageId:`unexpectedMix`}):t&&r.every(d)&&n.report({node:e,messageId:`expectedAllPropertiesShorthanded`}))}}function w(e,n){let r=n.computed?S.getFirstToken(n,t.isOpeningBracketToken):S.getFirstToken(n.key),i=n.computed?S.getFirstTokenBetween(n.key,n.value,t.isClosingBracketToken):S.getLastToken(n.key),a=S.text.slice(r.range[0],i.range[1]),o=``;if(S.commentsExistBetween(i,n.value))return null;n.value.async&&(o+=`async `),n.value.generator&&(o+=`*`);let s=[r.range[0],n.range[1]],c=o+a;if(n.value.type===`FunctionExpression`){let t=S.getTokens(n.value).find(e=>e.type===`Keyword`&&e.value===`function`),r=n.value.generator?S.getTokenAfter(t):t;return e.replaceTextRange(s,c+S.text.slice(r.range[1],n.value.range[1]))}let l=S.getTokenBefore(n.value.body,t.isArrowToken),u=S.text.slice(l.range[1],n.value.range[1]),d=S.getFirstToken(n.value,{skip:+!!n.value.async}).range[0],f=S.getTokenBefore(l).range[1],p=n.value.params.length===1&&n.value.params[0].range[0]===d,m=S.text.slice(d,f),h=p?`(${m})`:m;return e.replaceTextRange(s,c+h+u)}function T(e,t){let n=t.computed?S.getTokens(t).find(e=>e.value===`[`):S.getFirstToken(t.key),r=t.computed?S.getTokensBetween(t.key,t.value).find(e=>e.value===`]`):S.getLastToken(t.key),i=S.text.slice(n.range[0],r.range[1]),a=`function`;return t.value.async&&(a=`async ${a}`),t.value.generator&&(a=`${a}*`),e.replaceTextRange([t.range[0],r.range[1]],`${i}: ${a}`)}let E=[],D=/* @__PURE__ */ new WeakSet,O=/* @__PURE__ */ new WeakSet,k=/* @__PURE__ */ new WeakSet;function A(e){E.unshift(/* @__PURE__ */ new Set),S.getScope(e).variables.filter(e=>e.name===`arguments`).forEach(e=>{e.references.map(e=>e.identifier).forEach(e=>k.add(e))})}function j(){E.shift()}function M(){E[0].forEach(e=>D.add(e))}return{Program:A,FunctionDeclaration:A,FunctionExpression:A,"Program:exit":j,"FunctionDeclaration:exit":j,"FunctionExpression:exit":j,ArrowFunctionExpression(e){E[0].add(e)},"ArrowFunctionExpression:exit"(e){E[0].delete(e)},ThisExpression:M,Super(e){M();let t=u(e,S);t&&O.add(t)},MetaProperty(e){e.meta.name===`new`&&e.property.name===`target`&&M()},Identifier(e){k.has(e)&&M()},ObjectExpression(e){h?C(e,!1):g&&C(e,!0)},"Property:exit"(e){let r=e.method||e.shorthand;if(e.parent.type!==`ObjectPattern`&&e.kind!==`get`&&e.kind!==`set`&&!c(e)&&!(e.computed&&e.value.type!==`FunctionExpression`&&e.value.type!==`ArrowFunctionExpression`)){if(r){if(e.method&&!O.has(e)&&(m||b&&s(e.key))){let t=m?`expectedMethodLongform`:`expectedLiteralMethodLongform`;n.report({node:e,messageId:t,fix:t=>T(t,e)})}else m&&!e.method&&n.report({node:e,messageId:`expectedPropertyLongform`,fix:t=>t.insertTextAfter(e.key,`: ${e.key.name}`)})}else if(f&&!e.value.id&&(e.value.type===`FunctionExpression`||e.value.type===`ArrowFunctionExpression`)){let r=t.getStaticPropertyName(e);if(v&&r!==null&&a(r)||y&&r!==null&&y.test(r)||b&&s(e.key))return;(e.value.type===`FunctionExpression`||e.value.type===`ArrowFunctionExpression`&&e.value.body.type===`BlockStatement`&&x&&!D.has(e.value))&&n.report({node:e,messageId:`expectedMethodShorthand`,fix:t=>w(t,e)})}else if(e.value.type===`Identifier`&&e.key.name===e.value.name&&p){if(S.getCommentsInside(e).some(e=>e.type===`Block`&&i.test(e.value)&&e.value.includes(`@type`)))return;n.report({node:e,messageId:`expectedPropertyShorthand`,fix(t){return S.getCommentsInside(e).length>0?null:t.replaceText(e,e.value.name)}})}else if(e.value.type===`Identifier`&&e.key.type===`Literal`&&e.key.value===e.value.name&&p){if(b||S.getCommentsInside(e).some(e=>e.type===`Block`&&e.value.startsWith(`*`)&&e.value.includes(`@type`)))return;n.report({node:e,messageId:`expectedPropertyShorthand`,fix(t){return S.getCommentsInside(e).length>0?null:t.replaceText(e,e.value.name)}})}}}}}},zx}var Hx,Ux;function Wx(){if(Ux)return Hx;Ux=1;let e=$();function t(t){return e.STATEMENT_LIST_PARENTS.has(t.parent.type)}return Hx={meta:{type:`suggestion`,docs:{description:`Enforce variables to be declared either together or separately in functions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/one-var`},fixable:`code`,schema:[{oneOf:[{enum:[`always`,`never`,`consecutive`]},{type:`object`,properties:{separateRequires:{type:`boolean`},var:{enum:[`always`,`never`,`consecutive`]},let:{enum:[`always`,`never`,`consecutive`]},const:{enum:[`always`,`never`,`consecutive`]},using:{enum:[`always`,`never`,`consecutive`]},awaitUsing:{enum:[`always`,`never`,`consecutive`]}},additionalProperties:!1},{type:`object`,properties:{initialized:{enum:[`always`,`never`,`consecutive`]},uninitialized:{enum:[`always`,`never`,`consecutive`]}},additionalProperties:!1}]}],defaultOptions:[`always`],messages:{combineUninitialized:`Combine this with the previous '{{type}}' statement with uninitialized variables.`,combineInitialized:`Combine this with the previous '{{type}}' statement with initialized variables.`,splitUninitialized:`Split uninitialized '{{type}}' declarations into multiple statements.`,splitInitialized:`Split initialized '{{type}}' declarations into multiple statements.`,splitRequires:`Split requires to be separated into a single block.`,combine:`Combine this with the previous '{{type}}' statement.`,split:`Split '{{type}}' declarations into multiple statements.`}},create(e){let n=`always`,r=`never`,i=`consecutive`,a=e.options[0],o={};typeof a==`string`?(o.var={uninitialized:a,initialized:a},o.let={uninitialized:a,initialized:a},o.const={uninitialized:a,initialized:a},o.using={uninitialized:a,initialized:a},o.awaitUsing={uninitialized:a,initialized:a}):typeof a==`object`&&(o.separateRequires=!!a.separateRequires,o.var={uninitialized:a.var,initialized:a.var},o.let={uninitialized:a.let,initialized:a.let},o.const={uninitialized:a.const,initialized:a.const},o.using={uninitialized:a.using,initialized:a.using},o.awaitUsing={uninitialized:a.awaitUsing,initialized:a.awaitUsing},Object.hasOwn(a,`uninitialized`)&&(o.var.uninitialized=a.uninitialized,o.let.uninitialized=a.uninitialized,o.const.uninitialized=a.uninitialized,o.using.uninitialized=a.uninitialized,o.awaitUsing.uninitialized=a.uninitialized),Object.hasOwn(a,`initialized`)&&(o.var.initialized=a.initialized,o.let.initialized=a.initialized,o.const.initialized=a.initialized,o.using.initialized=a.initialized,o.awaitUsing.initialized=a.initialized));let s=e.sourceCode,c=[],l=[];function u(){l.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1},using:{initialized:!1,uninitialized:!1},awaitUsing:{initialized:!1,uninitialized:!1}})}function d(){c.push({initialized:!1,uninitialized:!1}),u()}function f(){l.pop()}function p(){c.pop(),f()}function m(e){return e.init&&e.init.type===`CallExpression`&&e.init.callee.name===`require`}function h(e,t,r){for(let i=0;i<t.length;i++)t[i].init===null?o[e]&&o[e].uninitialized===n&&(r.uninitialized=!0):o[e]&&o[e].initialized===n&&(o.separateRequires&&m(t[i])?r.required=!0:r.initialized=!0)}function g(e){let t;return e===`var`?t=c.at(-1):e===`let`?t=l.at(-1).let:e===`const`?t=l.at(-1).const:e===`using`?t=l.at(-1).using:e===`awaitUsing`&&(t=l.at(-1).awaitUsing),t}function _(e){let t={uninitialized:0,initialized:0};for(let n=0;n<e.length;n++)e[n].init===null?t.uninitialized++:t.initialized++;return t}function v(e,t){let r=_(t),i=o[e]||{},a=g(e),s=t.some(m);return i.uninitialized===n&&i.initialized===n&&(a.uninitialized||a.initialized)&&!s||r.uninitialized>0&&i.uninitialized===n&&a.uninitialized||r.initialized>0&&i.initialized===n&&a.initialized&&!s||a.required&&s?!1:(h(e,t,a),!0)}function y(e){let t=e[0],n=Array.isArray(t.parent.parent.body)?t.parent.parent.body:[],r=n[n.findIndex(e=>e.range[0]===t.parent.range[0])-1];return function*(e){let n=s.getFirstToken(t.parent),i=s.getTokenBefore(n);if(r&&r.kind===t.parent.kind){if(i.value===`;`?yield e.replaceText(i,`,`):yield e.insertTextAfter(i,`,`),t.parent.kind===`await using`){let t=s.getTokenAfter(n);yield e.remove(t)}yield e.replaceText(n,``)}}}function b(e){let{parent:n}=e;return t(n.type===`ExportNamedDeclaration`?n:e)?t=>e.declarations.map(n=>{let r=s.getTokenAfter(n);if(r===null)return null;let i=s.getTokenAfter(r,{includeComments:!0});if(r.value!==`,`)return null;let a=e.parent.type===`ExportNamedDeclaration`?`export `:``;if(i.range[0]===r.range[1])return t.replaceText(r,`; ${a}${e.kind} `);if(i.loc.start.line>r.loc.end.line||i.type===`Line`||i.type===`Block`){let n=i;for(;n.type===`Line`||n.type===`Block`;)n=s.getTokenAfter(n,{includeComments:!0});return t.replaceTextRange([r.range[0],n.range[0]],`;${s.text.slice(r.range[1],n.range[0])}${a}${e.kind} `)}return t.replaceText(r,`; ${a}${e.kind}`)}).filter(e=>e):null}function x(t){let a=t.parent,s=t.kind,c=s===`await using`?`awaitUsing`:s;if(!o[c])return;let l=t.declarations,u=_(l),d=l.some(m)&&!l.every(m);o[c].initialized===n&&o.separateRequires&&d&&e.report({node:t,messageId:`splitRequires`});let f=a.body&&a.body.length>0&&a.body.indexOf(t)||0;if(f>0){let n=a.body[f-1],r=n.type===`VariableDeclaration`,d=l.concat(n.declarations||[]);if(r&&n.kind===s&&(!d.some(m)||d.every(m))){let r=_(n.declarations);o[c].initialized===i&&o[c].uninitialized===i?e.report({node:t,messageId:`combine`,data:{type:s},fix:y(l)}):o[c].initialized===i&&u.initialized>0&&r.initialized>0?e.report({node:t,messageId:`combineInitialized`,data:{type:s},fix:y(l)}):o[c].uninitialized===i&&u.uninitialized>0&&r.uninitialized>0&&e.report({node:t,messageId:`combineUninitialized`,data:{type:s},fix:y(l)})}}if(!v(c,l)){if(o[c].initialized===n&&o[c].uninitialized===n)e.report({node:t,messageId:`combine`,data:{type:s},fix:y(l)});else if(o[c].initialized===n&&u.initialized>0&&e.report({node:t,messageId:`combineInitialized`,data:{type:s},fix:y(l)}),o[c].uninitialized===n&&u.uninitialized>0){if(t.parent.left===t&&(t.parent.type===`ForInStatement`||t.parent.type===`ForOfStatement`))return;e.report({node:t,messageId:`combineUninitialized`,data:{type:s},fix:y(l)})}}(a.type!==`ForStatement`||a.init!==t)&&u.uninitialized+u.initialized>1&&(o[c].initialized===r&&o[c].uninitialized===r?e.report({node:t,messageId:`split`,data:{type:s},fix:b(t)}):o[c].initialized===r&&u.initialized>0?e.report({node:t,messageId:`splitInitialized`,data:{type:s},fix:b(t)}):o[c].uninitialized===r&&u.uninitialized>0&&e.report({node:t,messageId:`splitUninitialized`,data:{type:s},fix:b(t)}))}return{Program:d,FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d,StaticBlock:d,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:x,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":p,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,"StaticBlock:exit":p}}},Hx}var Gx,Kx;function qx(){return Kx||(Kx=1,Gx={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`one-var-declaration-per-line`,url:`https://eslint.style/rules/one-var-declaration-per-line`}}]},type:`suggestion`,docs:{description:`Require or disallow newlines around variable declarations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/one-var-declaration-per-line`},schema:[{enum:[`always`,`initializations`]}],fixable:`whitespace`,messages:{expectVarOnNewline:`Expected variable declaration to be on a new line.`}},create(e){let t=e.options[0]===`always`;function n(e){return e===`ForStatement`||e===`ForInStatement`||e===`ForOfStatement`}function r(r){if(n(r.parent.type))return;let i=r.declarations,a;i.forEach(n=>{a&&a.loc.end.line===n.loc.start.line&&(t||a.init||n.init)&&e.report({node:r,messageId:`expectVarOnNewline`,loc:n.loc,fix:e=>e.insertTextBefore(n,`
191
+ `)}),a=n})}return{VariableDeclaration:r}}}),Gx}var Jx,Yx;function Xx(){if(Yx)return Jx;Yx=1;let e=$();function t(e){return[`*`,`&`,`^`,`|`].includes(e)}function n(e){return[`+`,`-`,`/`,`%`,`<<`,`>>`,`>>>`,`**`].includes(e)}function r(e){return e.type===`Identifier`||e.type===`MemberExpression`&&(e.object.type===`Identifier`||e.object.type===`ThisExpression`)&&(!e.computed||e.property.type===`Literal`)}return Jx={meta:{type:`suggestion`,defaultOptions:[`always`],docs:{description:`Require or disallow assignment operator shorthand where possible`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/operator-assignment`},schema:[{enum:[`always`,`never`]}],fixable:`code`,messages:{replaced:`Assignment (=) can be replaced with operator assignment ({{operator}}).`,unexpected:`Unexpected operator assignment ({{operator}}) shorthand.`}},create(i){let a=i.options[0]===`never`,o=i.sourceCode;function s(e){return o.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator)}function c(a){if(a.operator!==`=`||a.right.type!==`BinaryExpression`)return;let c=a.left,l=a.right,u=l.operator;if(t(u)||n(u)){let n=`${u}=`;e.isSameReference(c,l.left,!0)?i.report({node:a,messageId:`replaced`,data:{operator:n},fix(e){if(r(c)&&r(l.left)){let t=s(a),r=s(l),i=o.getText().slice(a.range[0],t.range[0]),c=o.getText().slice(r.range[1],a.right.range[1]);return o.commentsExistBetween(t,r)?null:e.replaceText(a,`${i}${n}${c}`)}return null}}):e.isSameReference(c,l.right,!0)&&t(u)&&i.report({node:a,messageId:`replaced`,data:{operator:n}})}}function l(t){t.operator!==`=`&&!e.isLogicalAssignmentOperator(t.operator)&&i.report({node:t,messageId:`unexpected`,data:{operator:t.operator},fix(n){if(r(t.left)){let r=o.getFirstToken(t),i=s(t),a=o.getText().slice(t.range[0],i.range[0]),c=t.operator.slice(0,-1),l;if(o.commentsExistBetween(r,i))return null;if(e.getPrecedence(t.right)<=e.getPrecedence({type:`BinaryExpression`,operator:c})&&!e.isParenthesised(o,t.right))l=`${o.text.slice(i.range[1],t.right.range[0])}(${o.getText(t.right)})`;else{let n=o.getTokenAfter(i,{includeComments:!0}),r=``;i.range[1]===n.range[0]&&!e.canTokensBeAdjacent({type:`Punctuator`,value:c},n)&&(r=` `),l=`${r}${o.text.slice(i.range[1],t.range[1])}`}return n.replaceText(t,`${a}= ${a}${c}${l}`)}return null}})}return{AssignmentExpression:a?l:c}}},Jx}var Zx,Qx;function $x(){if(Qx)return Zx;Qx=1;let e=$();return Zx={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`operator-linebreak`,url:`https://eslint.style/rules/operator-linebreak`}}]},type:`layout`,docs:{description:`Enforce consistent linebreak style for operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/operator-linebreak`},schema:[{enum:[`after`,`before`,`none`,null]},{type:`object`,properties:{overrides:{type:`object`,additionalProperties:{enum:[`after`,`before`,`none`,`ignore`]}}},additionalProperties:!1}],fixable:`code`,messages:{operatorAtBeginning:`'{{operator}}' should be placed at the beginning of the line.`,operatorAtEnd:`'{{operator}}' should be placed at the end of the line.`,badLinebreak:`Bad line breaking before and after '{{operator}}'.`,noLinebreak:`There should be no line break before or after '{{operator}}'.`}},create(t){let n=!t.options[0],r=t.options[0]||`after`,i=t.options[1]||{},a=i.overrides?Object.assign({},i.overrides):{};n&&!a[`?`]&&(a[`?`]=`before`),n&&!a[`:`]&&(a[`:`]=`before`);let o=t.sourceCode;function s(t,n){return r=>{let i=o.getTokenBefore(t),a=o.getTokenAfter(t),s=o.text.slice(i.range[1],t.range[0]),c=o.text.slice(t.range[1],a.range[0]),l=!e.isTokenOnSameLine(i,t),u=!e.isTokenOnSameLine(t,a),d,f;if(l!==u&&n!==`none`){if(o.getTokenBefore(t,{includeComments:!0})!==i&&o.getTokenAfter(t,{includeComments:!0})!==a)return null;d=c,f=s}else{let t=e.createGlobalLinebreakMatcher();if(d=n===`before`||s.trim()?s:s.replace(t,``),f=n===`after`||c.trim()?c:c.replace(t,``),d===s&&f===c)return null}return f===``&&a.type===`Punctuator`&&`+-`.includes(t.value)&&a.value===t.value&&(f+=` `),r.replaceTextRange([i.range[1],a.range[0]],d+t.value+f)}}function c(n,i,c){let l=o.getTokenBefore(i,e=>e.value===c),u=o.getTokenBefore(l),d=o.getTokenAfter(l),f=a[c],p=f||r,m=s(l,p);e.isTokenOnSameLine(u,l)&&e.isTokenOnSameLine(l,d)||(f!==`ignore`&&!e.isTokenOnSameLine(u,l)&&!e.isTokenOnSameLine(l,d)?t.report({node:n,loc:l.loc,messageId:`badLinebreak`,data:{operator:c},fix:m}):p===`before`&&e.isTokenOnSameLine(u,l)?t.report({node:n,loc:l.loc,messageId:`operatorAtBeginning`,data:{operator:c},fix:m}):p===`after`&&e.isTokenOnSameLine(l,d)?t.report({node:n,loc:l.loc,messageId:`operatorAtEnd`,data:{operator:c},fix:m}):p===`none`&&t.report({node:n,loc:l.loc,messageId:`noLinebreak`,data:{operator:c},fix:m}))}function l(e){c(e,e.right,e.operator)}return{BinaryExpression:l,LogicalExpression:l,AssignmentExpression:l,VariableDeclarator(e){e.init&&c(e,e.init,`=`)},PropertyDefinition(e){e.value&&c(e,e.value,`=`)},ConditionalExpression(e){c(e,e.consequent,`?`),c(e,e.alternate,`:`)}}}},Zx}var eS,tS;function nS(){if(tS)return eS;tS=1;let e=$();return eS={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padded-blocks`,url:`https://eslint.style/rules/padded-blocks`}}]},type:`layout`,docs:{description:`Require or disallow padding within blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/padded-blocks`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{blocks:{enum:[`always`,`never`]},switches:{enum:[`always`,`never`]},classes:{enum:[`always`,`never`]}},additionalProperties:!1,minProperties:1}]},{type:`object`,properties:{allowSingleLineBlocks:{type:`boolean`}},additionalProperties:!1}],messages:{alwaysPadBlock:`Block must be padded by blank lines.`,neverPadBlock:`Block must not be padded by blank lines.`}},create(t){let n={},r=t.options[0]||`always`,i=t.options[1]||{};if(typeof r==`string`){let e=r===`always`;n.blocks=e,n.switches=e,n.classes=e}else Object.hasOwn(r,`blocks`)&&(n.blocks=r.blocks===`always`),Object.hasOwn(r,`switches`)&&(n.switches=r.switches===`always`),Object.hasOwn(r,`classes`)&&(n.classes=r.classes===`always`);Object.hasOwn(i,`allowSingleLineBlocks`)&&(n.allowSingleLineBlocks=i.allowSingleLineBlocks===!0);let a=t.sourceCode;function o(e){return e.type===`SwitchStatement`?a.getTokenBefore(e.cases[0]):e.type===`StaticBlock`?a.getFirstToken(e,{skip:1}):a.getFirstToken(e)}function s(e){return e.type===`Line`||e.type===`Block`}function c(e,t){return t.loc.start.line-e.loc.end.line>=2}function l(e){let t,n=e;do t=n,n=a.getTokenAfter(n,{includeComments:!0});while(s(n)&&n.loc.start.line===t.loc.end.line);return n}function u(e){let t=e,n;do n=t,t=a.getTokenBefore(t,{includeComments:!0});while(s(t)&&t.loc.end.line===n.loc.start.line);return t}function d(e){switch(e.type){case`BlockStatement`:case`StaticBlock`:return n.blocks;case`SwitchStatement`:return n.switches;case`ClassBody`:return n.classes;
192
+ /* c8 ignore next */
193
+ default:throw Error(`unreachable`)}}function f(r){let i=l(o(r)),s=a.getTokenBefore(i,{includeComments:!0}),f=u(a.getLastToken(r)),p=a.getTokenAfter(f,{includeComments:!0}),m=c(s,i),h=c(f,p);n.allowSingleLineBlocks&&e.isTokenOnSameLine(s,p)||(d(r)?(m||t.report({node:r,loc:{start:s.loc.start,end:i.loc.start},fix(e){return e.insertTextAfter(s,`
194
+ `)},messageId:`alwaysPadBlock`}),h||t.report({node:r,loc:{end:p.loc.start,start:f.loc.end},fix(e){return e.insertTextBefore(p,`
195
+ `)},messageId:`alwaysPadBlock`})):(m&&t.report({node:r,loc:{start:s.loc.start,end:i.loc.start},fix(e){return e.replaceTextRange([s.range[1],i.range[0]-i.loc.start.column],`
196
+ `)},messageId:`neverPadBlock`}),h&&t.report({node:r,loc:{end:p.loc.start,start:f.loc.end},messageId:`neverPadBlock`,fix(e){return e.replaceTextRange([f.range[1],p.range[0]-p.loc.start.column],`
197
+ `)}})))}let p={};return Object.hasOwn(n,`switches`)&&(p.SwitchStatement=function(e){e.cases.length!==0&&f(e)}),Object.hasOwn(n,`blocks`)&&(p.BlockStatement=function(e){e.body.length!==0&&f(e)},p.StaticBlock=p.BlockStatement),Object.hasOwn(n,`classes`)&&(p.ClassBody=function(e){e.body.length!==0&&f(e)}),p}},eS}var rS,iS;function aS(){if(iS)return rS;iS=1;let e=$(),t=`[${Array.from(e.LINEBREAKS).join(``)}]`,n=new RegExp(String.raw`^(\s*?${t})\s*${t}(\s*;?)$`,`u`),r=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,i=/^require\(/u;function a(e){return{test:(t,n)=>n.getFirstToken(t).value===e}}function o(e){return{test:(t,n)=>t.loc.start.line===t.loc.end.line&&n.getFirstToken(t).value===e}}function s(e){return{test:(t,n)=>t.loc.start.line!==t.loc.end.line&&n.getFirstToken(t).value===e}}function c(e){return{test:t=>t.type===e}}function l(t){if(t.type===`ExpressionStatement`){let n=e.skipChainExpression(t.expression);return n.type===`UnaryExpression`&&(n=e.skipChainExpression(n.argument)),n.type===`CallExpression`&&e.isFunction(n.callee)}return!1}function u(t,n){if(n.type===`DoWhileStatement`&&n.body.type===`BlockStatement`||l(n))return!0;let r=t.getLastToken(n,e.isNotSemicolonToken),i=r&&e.isClosingBraceToken(r)?t.getNodeByRangeIndex(r.range[0]):null;return!!i&&(i.type===`BlockStatement`||i.type===`SwitchStatement`)}function d(t,n){let r=t.getLastToken(n),i=t.getTokenBefore(r),a=t.getTokenAfter(r);return i&&a&&i.range[0]>=n.range[0]&&e.isSemicolonToken(r)&&r.loc.start.line!==i.loc.end.line&&r.loc.end.line===a.loc.start.line?i:r}function f(e,t,n){return t+n}function p(){}function m(e,t,r,i){i.length!==0&&e.report({node:r,messageId:`unexpectedBlankLine`,fix(t){if(i.length>=2)return null;let r=i[0][0],a=i[0][1],o=r.range[1],s=a.range[0],c=e.sourceCode.text.slice(o,s).replace(n,f);return t.replaceTextRange([o,s],c)}})}function h(t,n,r,i){i.length>0||t.report({node:r,messageId:`expectedBlankLine`,fix(i){let a=t.sourceCode,o=d(a,n),s=a.getFirstTokenBetween(o,r,{includeComments:!0,filter(t){return!e.isTokenOnSameLine(o,t)||(o=t,!1)}})||r,c=e.isTokenOnSameLine(o,s)?`
198
+
199
+ `:`
200
+ `;return i.insertTextAfter(o,c)}})}let g={any:{verify:p},never:{verify:m},always:{verify:h}},_={"*":{test:()=>!0},"block-like":{test:(e,t)=>u(t,e)},"cjs-export":{test:(e,t)=>e.type===`ExpressionStatement`&&e.expression.type===`AssignmentExpression`&&r.test(t.getText(e.expression.left))},"cjs-import":{test:(e,t)=>e.type===`VariableDeclaration`&&e.declarations.length>0&&!!e.declarations[0].init&&i.test(t.getText(e.declarations[0].init))},directive:{test:e.isDirective},expression:{test:t=>t.type===`ExpressionStatement`&&!e.isDirective(t)},iife:{test:l},"multiline-block-like":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&u(t,e)},"multiline-expression":{test:t=>t.loc.start.line!==t.loc.end.line&&t.type===`ExpressionStatement`&&!e.isDirective(t)},"multiline-const":s(`const`),"multiline-let":s(`let`),"multiline-var":s(`var`),"singleline-const":o(`const`),"singleline-let":o(`let`),"singleline-var":o(`var`),block:c(`BlockStatement`),empty:c(`EmptyStatement`),function:c(`FunctionDeclaration`),break:a(`break`),case:a(`case`),class:a(`class`),const:a(`const`),continue:a(`continue`),debugger:a(`debugger`),default:a(`default`),do:a(`do`),export:a(`export`),for:a(`for`),if:a(`if`),import:a(`import`),let:a(`let`),return:a(`return`),switch:a(`switch`),throw:a(`throw`),try:a(`try`),var:a(`var`),while:a(`while`),with:a(`with`)};return rS={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]},type:`layout`,docs:{description:`Require or disallow padding lines between statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements`},fixable:`whitespace`,schema:{definitions:{paddingType:{enum:Object.keys(g)},statementType:{anyOf:[{enum:Object.keys(_)},{type:`array`,items:{enum:Object.keys(_)},minItems:1,uniqueItems:!0}]}},type:`array`,items:{type:`object`,properties:{blankLine:{$ref:`#/definitions/paddingType`},prev:{$ref:`#/definitions/statementType`},next:{$ref:`#/definitions/statementType`}},additionalProperties:!1,required:[`blankLine`,`prev`,`next`]}},messages:{unexpectedBlankLine:`Unexpected blank line before this statement.`,expectedBlankLine:`Expected blank line before this statement.`}},create(t){let n=t.sourceCode,r=t.options||[],i=null;function a(){i={upper:i,prevNode:null}}function o(){i=i.upper}function s(e,t){let r=e;for(;r.type===`LabeledStatement`;)r=r.body;return Array.isArray(t)?t.some(s.bind(null,r)):_[t].test(r,n)}function c(e,t){for(let n=r.length-1;n>=0;--n){let i=r[n];if(s(e,i.prev)&&s(t,i.next))return g[i.blankLine]}return g.any}function l(e,t){let r=[],i=d(n,e);if(t.loc.start.line-i.loc.end.line>=2)do{let e=n.getTokenAfter(i,{includeComments:!0});e.loc.start.line-i.loc.end.line>=2&&r.push([i,e]),i=e}while(i.range[0]<t.range[0]);return r}function u(n){let r=n.parent.type;if(!(e.STATEMENT_LIST_PARENTS.has(r)||r===`SwitchStatement`))return;let a=i.prevNode;if(a){let e=c(a,n),r=l(a,n);e.verify(t,a,n,r)}i.prevNode=n}function f(e){u(e),a()}return{Program:a,BlockStatement:a,SwitchStatement:a,StaticBlock:a,"Program:exit":o,"BlockStatement:exit":o,"SwitchStatement:exit":o,"StaticBlock:exit":o,":statement":u,SwitchCase:f,"SwitchCase:exit":o}}},rS}var oS,sS;function cS(){if(sS)return oS;sS=1;let e=$();function t(e){return e&&e.defs[0].type===`FunctionName`}function n(e,t,n){return e.meta.name===t&&e.property.name===n}function r(e){let t=e.variables;for(let e=0;e<t.length;++e){let n=t[e];if(n.name===`arguments`)return n.identifiers.length===0?n:null}
201
+ /* c8 ignore next */
202
+ return null}function i(t){let n={isCallback:!1,isLexicalThis:!1},r=t,i=t.parent,a=!1;for(;r;){switch(i.type){case`LogicalExpression`:case`ChainExpression`:break;case`ConditionalExpression`:if(i.test===r)return n;break;case`MemberExpression`:if(i.object===r&&!i.property.computed&&i.property.type===`Identifier`&&i.property.name===`bind`){let t=i.parent.type===`ChainExpression`?i.parent:i;if(e.isCallee(t))a||(a=!0,n.isLexicalThis=t.parent.arguments.length===1&&t.parent.arguments[0].type===`ThisExpression`),i=t.parent;else return n}else return n;break;case`CallExpression`:case`NewExpression`:return i.callee!==r&&(n.isCallback=!0),n;default:return n}r=i,i=i.parent}
203
+ /* c8 ignore next */
204
+ throw Error(`unreachable`)}function a(e){return e.every(e=>e.type===`Identifier`)&&e.length!==new Set(e.map(e=>e.name)).size}return oS={meta:{type:`suggestion`,defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:`Require using arrow functions for callbacks`,dialects:[`JavaScript`,`TypeScript`],recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-arrow-callback`},schema:[{type:`object`,properties:{allowNamedFunctions:{type:`boolean`},allowUnboundThis:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{preferArrowCallback:`Unexpected function expression.`}},create(o){let[{allowNamedFunctions:s,allowUnboundThis:c}]=o.options,l=o.sourceCode,u=[];function d(){u.push({this:!1,super:!1,meta:!1})}function f(){return u.pop()}return{Program(){u=[]},ThisExpression(){let e=u.at(-1);e&&(e.this=!0)},Super(){let e=u.at(-1);e&&(e.super=!0)},MetaProperty(e){let t=u.at(-1);t&&n(e,`new`,`target`)&&(t.meta=!0)},FunctionDeclaration:d,"FunctionDeclaration:exit":f,FunctionExpression:d,"FunctionExpression:exit"(n){let u=f();if(s&&n.id&&n.id.name||n.generator)return;let d=l.getDeclaredVariables(n)[0];if(t(d)&&d.references.length>0)return;let p=r(l.getScope(n));if(p&&p.references.length>0)return;let m=i(n);!m.isCallback||c&&u.this&&!m.isLexicalThis||u.super||u.meta||o.report({node:n,messageId:`preferArrowCallback`,*fix(t){if(!m.isLexicalThis&&u.this||a(n.params)||n.params.length&&n.params[0].name===`this`)return;let r=l.getFirstToken(n,+!!n.async),i=n.typeParameters?l.getFirstToken(n.typeParameters):l.getTokenAfter(r,e.isOpeningParenToken);if(n.async&&r.loc.end.line<i.loc.start.line)return;if(m.isLexicalThis){let r=n.parent;if(r.type!==`MemberExpression`)return;let i=r.parent,a=l.getTokenAfter(r.object,e.isNotClosingParenToken),o=l.getLastToken(i);if(e.isParenthesised(l,r)||l.commentsExistBetween(a,o))return;yield t.removeRange([a.range[0],o.range[1]])}let s=l.getTokenBefore(n.body);l.commentsExistBetween(r,i)?(yield t.remove(r),n.id&&(yield t.remove(n.id))):yield t.removeRange([r.range[0],i.range[0]]),o.languageOptions.parserOptions?.ecmaFeatures?.jsx&&n.typeParameters&&n.typeParameters.params.length===1&&!n.typeParameters.params[0].constraint&&!n.typeParameters.params[0].default&&!e.isCommaToken(l.getLastToken(n.typeParameters,1))&&(yield t.insertTextAfter(n.typeParameters.params[0],`,`)),yield t.insertTextAfter(s,` =>`);let c=m.isLexicalThis?n.parent.parent:n;c.type===`ChainExpression`&&(c=c.parent),c.parent.type!==`CallExpression`&&c.parent.type!==`ConditionalExpression`&&!e.isParenthesised(l,c)&&!e.isParenthesised(l,n)&&(yield t.insertTextBefore(c,`(`),yield t.insertTextAfter(c,`)`))}})}}}},oS}var lS,uS;function dS(){if(uS)return lS;uS=1;let e=$p(),t=$(),n=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,r=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,i=/^(?:VariableDeclarator|AssignmentExpression)$/u;function a(e){return e.parent.type===`ForStatement`&&e.parent.init===e}function o(e){let t=e.parent;for(;n.test(t.type);)t=t.parent;return t.type===`VariableDeclarator`||t.type===`AssignmentExpression`&&t.parent.type===`ExpressionStatement`&&r.test(t.parent.parent.type)}function s(e,n){if(n.through.some(t=>t.resolved&&t.resolved.name===e))return!0;let r=t.getVariableByName(n,e);return r!==null&&r.defs.some(e=>e.type===`Parameter`)}function c(e){if(!e.isWrite())return null;let t=e.identifier.parent;for(;n.test(t.type);)t=t.parent;return i.test(t.type)?t:null}function l(e){switch(e.type){case`ObjectPattern`:return e.properties.some(e=>e?l(e.argument||e.value):!1);case`ArrayPattern`:return e.elements.some(e=>e?l(e):!1);case`AssignmentPattern`:return l(e.left);case`MemberExpression`:return!0}return!1}function u(e,t){if(e.eslintUsed&&e.scope.type===`global`)return null;let n=null,r=!1,i=e.references;for(let a=0;a<i.length;++a){let o=i[a];if(o.isWrite()){if(n!==null&&n.identifier!==o.identifier)return null;let t=c(o);if(t!==null&&t.left!==void 0){let n=t.left,r=!1,i=!1;if(n.type===`ObjectPattern`?(r=n.properties.filter(e=>e.value).map(e=>e.value.name).some(t=>s(t,e.scope)),i=l(n)):n.type===`ArrayPattern`&&(r=n.elements.map(e=>e&&e.name).some(t=>s(t,e.scope)),i=l(n)),r||i)return null}n=o}else if(o.isRead()&&n===null){if(t)return null;r=!0}}return n!==null&&n.from===e.scope&&o(n.identifier)?r?e.defs[0].name:n.identifier:null}function d(e,t){let n=/* @__PURE__ */ new Map;for(let r=0;r<e.length;++r){let i=e[r],a=i.references,o=u(i,t),s=null;for(let e=0;e<a.length;++e){let t=a[e],r=t.identifier;if(r===s)continue;s=r;let i=c(t);i&&(n.has(i)?n.get(i).push(o):n.set(i,[o]))}}return n}function f(e,t,n){return!e||n(e)?null:e.type===t?e:f(e.parent,t,n)}return lS={meta:{type:`suggestion`,defaultOptions:[{destructuring:`any`,ignoreReadBeforeAssign:!1}],docs:{description:"Require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-const`},fixable:`code`,schema:[{type:`object`,properties:{destructuring:{enum:[`any`,`all`]},ignoreReadBeforeAssign:{type:`boolean`}},additionalProperties:!1}],messages:{useConst:`'{{name}}' is never reassigned. Use 'const' instead.`}},create(t){let[{destructuring:n,ignoreReadBeforeAssign:r}]=t.options,i=n!==`all`,o=t.sourceCode,s=[],c=0,l=null,u=``;function p(n){let r=n.filter(Boolean);if(n.length&&(i||r.length===n.length)){let i=f(n[0],`VariableDeclaration`,e=>e.type.endsWith(`Statement`)),a=i===null;if(!a&&i.declarations.length>0){let e=i.declarations[0];if(e.init){let t=e.init.parent;t.type===`VariableDeclarator`&&(t.id.name!==u&&(u=t.id.name,c=0),t.id.type===`ObjectPattern`&&t.init.name!==u&&(u=t.init.name,c=0),t.id!==l&&(l=t.id,c=0))}}let s=i&&(i.parent.type===`ForInStatement`||i.parent.type===`ForOfStatement`||i.declarations.every(e=>e.init))&&r.length===n.length;if(!a&&i.declarations&&i.declarations.length!==1&&i&&i.declarations&&i.declarations.length>=1){c+=r.length;let e=0;i.declarations.forEach(t=>{t.id.type===`ObjectPattern`?e+=t.id.properties.length:t.id.type===`ArrayPattern`?e+=t.id.elements.length:e+=1}),s&&=c===e}r.forEach(n=>{t.report({node:n,messageId:`useConst`,data:n,fix:s?t=>{let n=o.getFirstToken(i,e=>e.value===i.kind);return new e(t,o).retainRange(i.range).replaceTextRange(n.range,`const`)}:null})})}}return{"Program:exit"(){d(s,r).forEach(p)},VariableDeclaration(e){e.kind===`let`&&!a(e)&&s.push(...o.getDeclaredVariables(e))}}}},lS}var fS,pS;function mS(){if(pS)return fS;pS=1;let e=$(),t=e.getPrecedence({type:`AssignmentExpression`});return fS={meta:{type:`suggestion`,docs:{description:`Require destructuring from arrays and/or objects`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-destructuring`},fixable:`code`,schema:[{oneOf:[{type:`object`,properties:{VariableDeclarator:{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1},AssignmentExpression:{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1},{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1}]},{type:`object`,properties:{enforceForRenamedProperties:{type:`boolean`}},additionalProperties:!1}],messages:{preferDestructuring:`Use {{type}} destructuring.`}},create(n){let r=n.options[0],i=n.options[1]&&n.options[1].enforceForRenamedProperties,a={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};r&&(a=r.array!==void 0||r.object!==void 0?{VariableDeclarator:r,AssignmentExpression:r}:r);function o(e,t){return a&&a[e]&&a[e][t]}function s(e){return Number.isInteger(e.property.value)}function c(e,t,r){n.report({node:e,messageId:`preferDestructuring`,data:{type:t},fix:r})}function l(e){return e.type===`VariableDeclarator`&&e.id.type===`Identifier`&&e.init.type===`MemberExpression`&&!e.init.computed&&e.init.property.type===`Identifier`&&e.id.name===e.init.property.name}function u(r,i){let a=i.init,o=n.sourceCode;if(o.getCommentsInside(i).length>o.getCommentsInside(a.object).length)return null;let s=o.getText(a.object);return e.getPrecedence(a.object)<t&&(s=`(${s})`),r.replaceText(i,`{${a.property.name}} = ${s}`)}function d(e,t,n){if(t.type!==`MemberExpression`||t.object.type===`Super`||t.property.type===`PrivateIdentifier`)return;if(s(t)){o(n.type,`array`)&&c(n,`array`,null);return}let r=l(n)?e=>u(e,n):null;if(o(n.type,`object`)&&i)c(n,`object`,r);else if(o(n.type,`object`)){let i=t.property;(i.type===`Literal`&&e.name===i.value||i.type===`Identifier`&&e.name===i.name&&!t.computed)&&c(n,`object`,r)}}function f(e){e.init&&e.parent.kind!==`using`&&e.parent.kind!==`await using`&&e.init.type===`MemberExpression`&&d(e.id,e.init,e)}function p(e){e.operator===`=`&&d(e.left,e.right,e)}return{VariableDeclarator:f,AssignmentExpression:p}}},fS}var hS,gS;function _S(){if(gS)return hS;gS=1;let e=$(),{CALL:t,ReferenceTracker:n}=/*@__PURE__*/ tt(),r=e.getPrecedence({type:`BinaryExpression`,operator:`**`}),i=/* @__PURE__ */ new Set([`(`,`[`,`/`,"`"]);function a(t){return e.getPrecedence(t)<=r||t.type===`AwaitExpression`||t.type===`UnaryExpression`}function o(t){return e.getPrecedence(t)<r}function s(t,n){let i=t.parent.type===`ChainExpression`?t.parent.parent:t.parent,a=e.getPrecedence(i);return(i.type===`ClassDeclaration`||i.type.endsWith(`Expression`)&&(a===-1||a>=r)&&(i.type!==`BinaryExpression`||i.operator!==`**`||i.right!==t)&&(i.type!==`CallExpression`&&i.type!==`NewExpression`||!i.arguments.includes(t))&&!(i.type===`MemberExpression`&&i.computed&&i.property===t)&&i.type!==`ArrayExpression`)&&!e.isParenthesised(n,t)}function c(e,t){return t?`(${e})`:e}return hS={meta:{type:`suggestion`,docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-exponentiation-operator`},schema:[],fixable:`code`,messages:{useExponentiation:`Use the '**' operator instead of 'Math.pow'.`}},create(r){let l=r.sourceCode;function u(t){r.report({node:t,messageId:`useExponentiation`,fix(n){if(t.arguments.length!==2||t.arguments.some(e=>e.type===`SpreadElement`)||l.getCommentsInside(t).length>0)return null;let r=t.arguments[0],u=t.arguments[1],d=l.getText(r),f=l.getText(u),p=a(r),m=o(u),h=e.isStartOfExpressionStatement(t),g=s(t,l);if(!g&&!p&&h){let t=l.getFirstToken(r),n=l.getTokenAfter(t);(e.isOpeningBraceToken(t)||t.type===`Keyword`&&(t.value===`function`||t.value===`class`)||(t.type===`Identifier`||t.type===`Keyword`)&&t.value===`async`&&n.type===`Keyword`&&n.value===`function`)&&(g=!0)}let _=``,v=``;if(!g){if(!p){let n=l.getFirstToken(r),i=l.getTokenBefore(t);i&&i.range[1]===t.range[0]&&!e.canTokensBeAdjacent(i,n)&&(_=` `)}if(!m){let n=l.getLastToken(u),r=l.getTokenAfter(t);r&&t.range[1]===r.range[0]&&!e.canTokensBeAdjacent(n,r)&&(v=` `)}}let y=c(`${c(d,p)}**${c(f,m)}`,g);return!_&&h&&i.has(y[0])&&e.needsPrecedingSemicolon(l,t)&&(_=`;`),n.replaceText(t,`${_}${y}${v}`)}})}return{Program(e){let r=l.getScope(e),i=new n(r),a={Math:{pow:{[t]:!0}}};for(let{node:e}of i.iterateGlobalReferences(a))u(e)}}}},hS}var vS,yS;function bS(){if(yS)return vS;yS=1;let{CALL:e,CONSTRUCT:t,ReferenceTracker:n,getStringIfConstant:r}=/*@__PURE__*/ tt(),i=bp(),a=new i.RegExpParser;function o(e,t,n,r){switch(r.type){case`Literal`:if(typeof r.value==`string`&&n.includes(`\\`))return null;break;case`TemplateLiteral`:if(r.expressions.length||n.slice(1,-1)!==t)return null;break;default:return null}let i=r.range[0]+e+2;return[{fix(e){let n=(t.match(/temp\d+/gu)||[]).reduce((e,t)=>Math.max(e,Number(t.slice(4))),0);return e.insertTextBeforeRange([i,i],`?<temp${n+1}>`)},messageId:`addGroupName`},{fix(e){return e.insertTextBeforeRange([i,i],`?:`)},messageId:`addNonCapture`}]}return vS={meta:{type:`suggestion`,docs:{description:`Enforce using named capture group in regular expression`,recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-named-capture-group`},hasSuggestions:!0,schema:[],messages:{addGroupName:`Add name to capture group.`,addNonCapture:`Convert group to non-capturing.`,required:`Capture group '{{group}}' should be converted to a named or non-capturing group.`}},create(s){let c=s.sourceCode;function l(e,t,n,r){let l;try{l=a.parsePattern(e,0,e.length,{unicode:!!(r&&r.includes(`u`)),unicodeSets:!!(r&&r.includes(`v`))})}catch{return}i.visitRegExpAST(l,{onCapturingGroupEnter(r){if(!r.name){let i=c.getText(n),a=o(r.start,e,i,n);s.report({node:t,messageId:`required`,data:{group:r.raw},suggest:a})}}})}return{Literal(e){e.regex&&l(e.regex.pattern,e,e,e.regex.flags)},Program(i){let a=c.getScope(i),o=new n(a),s={RegExp:{[e]:!0,[t]:!0}};for(let{node:e}of o.iterateGlobalReferences(s)){let t=r(e.arguments[0]),n=r(e.arguments[1]);t&&l(t,e,e.arguments[0],n)}}}}},vS}var xS,SS;function CS(){if(SS)return xS;SS=1;let e=$(),t=/* @__PURE__ */ new Map([[2,{system:`binary`,literalPrefix:`0b`}],[8,{system:`octal`,literalPrefix:`0o`}],[16,{system:`hexadecimal`,literalPrefix:`0x`}]]);function n(t,n){if(e.isSpecificId(t,`parseInt`))return n.isGlobalReference(t);if(e.isSpecificMemberAccess(t,`Number`,`parseInt`)){let r=e.skipChainExpression(t).object;return n.isGlobalReference(r)}return!1}return xS={meta:{type:`suggestion`,docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-numeric-literals`},schema:[],messages:{useLiteral:`Use {{system}} literals instead of {{functionName}}().`},fixable:`code`},create(r){let i=r.sourceCode;return{"CallExpression[arguments.length=2]"(a){let[o,s]=a.arguments,c=e.getStaticStringValue(o),l=s.value;if(c!==null&&e.isStringLiteral(o)&&s.type===`Literal`&&typeof l==`number`&&t.has(l)&&n(a.callee,i)){let{system:n,literalPrefix:o}=t.get(l);r.report({node:a,messageId:`useLiteral`,data:{system:n,functionName:i.getText(a.callee)},fix(t){if(i.getCommentsInside(a).length)return null;let n=`${o}${c}`;if(+n!==parseInt(c,l))return null;let r=i.getTokenBefore(a),s=i.getTokenAfter(a),u=``,d=``;return r&&r.range[1]===a.range[0]&&!e.canTokensBeAdjacent(r,n)&&(u=` `),s&&a.range[1]===s.range[0]&&!e.canTokensBeAdjacent(n,s)&&(d=` `),t.replaceText(a,`${u}${n}${d}`)}})}}}}},xS}var wS,TS;function ES(){if(TS)return wS;TS=1;let e=$();function t(t){if(t.object.type===`ObjectExpression`&&t.object.properties.length===0)return!0;let n=t.object.type===`MemberExpression`&&e.getStaticPropertyName(t.object)===`prototype`?t.object.object:t.object;return n.type===`Identifier`&&n.name===`Object`}return wS={meta:{type:`suggestion`,docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-object-has-own`},schema:[],messages:{useHasOwn:`Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'.`},fixable:`code`},create(n){let r=n.sourceCode;return{CallExpression(i){if(i.callee.type!==`MemberExpression`||i.callee.object.type!==`MemberExpression`)return;let a=e.getStaticPropertyName(i.callee),o=e.getStaticPropertyName(i.callee.object),s=t(i.callee.object),c=r.getScope(i),l=e.getVariableByName(c,`Object`);a===`call`&&o===`hasOwnProperty`&&s&&l&&l.scope.type===`global`&&l.defs.length===0&&n.report({node:i,messageId:`useHasOwn`,fix(t){if(r.getCommentsInside(i.callee).length>0)return null;let n=r.getTokenBefore(i.callee,{includeComments:!0});return n&&n.range[1]===i.callee.range[0]&&!e.canTokensBeAdjacent(n,`Object.hasOwn`)?t.replaceText(i.callee,` Object.hasOwn`):t.replaceText(i.callee,`Object.hasOwn`)}})}}}},wS}var DS,OS;function kS(){if(OS)return DS;OS=1;let{CALL:e,ReferenceTracker:t}=/*@__PURE__*/ tt(),{getStaticPropertyName:n,isCommaToken:r,isOpeningParenToken:i,isClosingParenToken:a,isParenthesised:o,isStartOfExpressionStatement:s,needsPrecedingSemicolon:c}=$(),l=/\s/u;function u(e){return e.arguments.some(e=>e.type===`SpreadElement`)}function d(e){return e.type===`Property`&&(e.kind===`get`||e.kind===`set`)}function f(e){return e.properties.some(d)}function p(e){return e.arguments.filter(e=>e.type===`ObjectExpression`).some(f)}function m(e){return e.type===`Property`&&n(e)===`__proto__`}function h(e){return e.properties.some(m)}function g(e){return e.arguments.slice(1).filter(e=>e.type===`ObjectExpression`).some(h)}function _(e,t){let n=e.parent;switch(n.type){case`VariableDeclarator`:case`ArrayExpression`:case`ReturnStatement`:case`CallExpression`:case`Property`:return!1;case`AssignmentExpression`:return n.left===e&&!o(t,e);default:return!o(t,e)}}function v(e,t){switch(e.type){case`AssignmentExpression`:case`ArrowFunctionExpression`:case`ConditionalExpression`:return!o(t,e);default:return!1}}function y(e,t,n){let r=[n.getFirstToken(e),n.getLastToken(e)],o=n.getTokenBefore(e),s=n.getTokenAfter(e);for(;o&&s&&o.range[0]>t.range[0]&&i(o)&&a(s);)r.push(o,s),o=n.getTokenBefore(o),s=n.getTokenAfter(s);return r.sort((e,t)=>e.range[0]-t.range[0])}function b(e,t){let n=t.text,r=e.range[0];{let n=t.getTokenBefore(e,{includeComments:!0});if(n&&n.type===`Line`)return r}for(;l.test(n[r-1]||``);)--r;return r}function x(e,t){let n=t.text,r=e.range[1];for(;l.test(n[r]||``);)r+=1;return r}function S(e,t){return function*(n){let a=t.getTokenAfter(e.callee,i),o=t.getLastToken(e);if(yield n.removeRange([e.range[0],a.range[0]]),_(e,t)){let r=s(e)&&c(t,e)?`;({`:`({`;yield n.replaceText(a,r),yield n.replaceText(o,`})`)}else yield n.replaceText(a,`{`),yield n.replaceText(o,`}`);for(let i of e.arguments){let e=y(i,a,t),o=e.shift(),s=e.pop();if(i.type===`ObjectExpression`){let a=t.getLastToken(i,1),c=t.getTokenAfter(s);for(let t of e)yield n.remove(t);let l=[o.range[0],x(o,t)],u=[Math.max(b(s,t),l[1]),s.range[1]];yield n.removeRange(l),yield n.removeRange(u),(i.properties.length===0||r(a))&&r(c)&&(yield n.remove(c))}else v(i,t)?(yield n.insertTextBefore(o,`...(`),yield n.insertTextAfter(s,`)`)):yield n.insertTextBefore(o,`...`)}}}return DS={meta:{type:`suggestion`,docs:{description:"Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-object-spread`},schema:[],fixable:`code`,messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(n){let r=n.sourceCode;return{Program(i){let a=r.getScope(i),o=new t(a),s={Object:{assign:{[e]:!0}}};for(let{node:e}of o.iterateGlobalReferences(s))if(e.arguments.length>=1&&e.arguments[0].type===`ObjectExpression`&&!u(e)&&!(e.arguments.length>1&&(p(e)||g(e)))){let t=e.arguments.length===1?`useLiteralMessage`:`useSpreadMessage`,i=S(e,r);n.report({node:e,messageId:t,fix:i})}}}}},DS}var AS,jS;function MS(){if(jS)return AS;jS=1;let e=$();return AS={meta:{type:`suggestion`,defaultOptions:[{allowEmptyReject:!1}],docs:{description:`Require using Error objects as Promise rejection reasons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-promise-reject-errors`},fixable:null,schema:[{type:`object`,properties:{allowEmptyReject:{type:`boolean`}},additionalProperties:!1}],messages:{rejectAnError:`Expected the Promise rejection reason to be an Error.`}},create(t){let[{allowEmptyReject:n}]=t.options,r=t.sourceCode;function i(i){if(!i.arguments.length&&n)return;let a=i.arguments[0];(!i.arguments.length||!e.couldBeError(a)||a.type===`Identifier`&&a.name===`undefined`&&r.isGlobalReference(a))&&t.report({node:i,messageId:`rejectAnError`})}function a(t){return e.isSpecificMemberAccess(t.callee,`Promise`,`reject`)&&r.isGlobalReference(e.skipChainExpression(t.callee).object)}return{CallExpression(e){a(e)&&i(e)},"NewExpression:exit"(t){t.callee.type===`Identifier`&&t.callee.name===`Promise`&&r.isGlobalReference(t.callee)&&t.arguments.length&&e.isFunction(t.arguments[0])&&t.arguments[0].params.length>1&&t.arguments[0].params[1].type===`Identifier`&&r.getDeclaredVariables(t.arguments[0]).find(e=>e.name===t.arguments[0].params[1].name).references.filter(e=>e.isRead()).filter(e=>e.identifier.parent.type===`CallExpression`&&e.identifier===e.identifier.parent.callee).forEach(e=>i(e.identifier.parent))}}}},AS}var NS,PS;function FS(){return PS||(PS=1,NS={meta:{type:`suggestion`,docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-reflect`},deprecated:{message:`The original intention of this rule was misguided.`,deprecatedSince:`3.9.0`,availableUntil:null,replacedBy:[]},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{enum:[`apply`,`call`,`delete`,`defineProperty`,`getOwnPropertyDescriptor`,`getPrototypeOf`,`setPrototypeOf`,`isExtensible`,`getOwnPropertyNames`,`preventExtensions`]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:`Avoid using {{existing}}, instead use {{substitute}}.`}},create(e){let t={apply:`Function.prototype.apply`,call:`Function.prototype.call`,defineProperty:`Object.defineProperty`,getOwnPropertyDescriptor:`Object.getOwnPropertyDescriptor`,getPrototypeOf:`Object.getPrototypeOf`,setPrototypeOf:`Object.setPrototypeOf`,isExtensible:`Object.isExtensible`,getOwnPropertyNames:`Object.getOwnPropertyNames`,preventExtensions:`Object.preventExtensions`},n={apply:`Reflect.apply`,call:`Reflect.apply`,defineProperty:`Reflect.defineProperty`,getOwnPropertyDescriptor:`Reflect.getOwnPropertyDescriptor`,getPrototypeOf:`Reflect.getPrototypeOf`,setPrototypeOf:`Reflect.setPrototypeOf`,isExtensible:`Reflect.isExtensible`,getOwnPropertyNames:`Reflect.getOwnPropertyNames`,preventExtensions:`Reflect.preventExtensions`},r=(e.options[0]||{}).exceptions||[];function i(t,n,r){e.report({node:t,messageId:`preferReflect`,data:{existing:n,substitute:r}})}return{CallExpression(e){let a=(e.callee.property||{}).name,o=(e.callee.object||{}).name===`Reflect`,s=Object.hasOwn(n,a),c=r.includes(a);s&&!o&&!c&&i(e,t[a],n[a])},UnaryExpression(e){let t=e.operator===`delete`,n=e.argument.type===`Identifier`,a=r.includes(`delete`);t&&!n&&!a&&i(e,`the delete keyword`,`Reflect.deleteProperty`)}}}}),NS}var IS,LS;function RS(){if(LS)return IS;LS=1;let e=$(),{CALL:t,CONSTRUCT:n,ReferenceTracker:r}=/*@__PURE__*/ tt(),{RegExpValidator:i,visitRegExpAST:a,RegExpParser:o}=bp(),{canTokensBeAdjacent:s}=$(),{REGEXPP_LATEST_ECMA_VERSION:c}=_g();function l(e){return e.type===`Literal`&&typeof e.value==`string`}function u(e){return e.type===`Literal`&&Object.hasOwn(e,`regex`)}let d=/* @__PURE__ */ new Set(/* @__PURE__ */ `();)[),)=)+)*)-)?)~)%)**)!)typeof)instanceof)&&)||)??)return)...)delete)void)in)<)>)<=)>=)==)===)!=)!==)<<)>>)>>>)&)|)^):){)=>)*=)<<=)>>=)>>>=)^=)|=)&=)??=)||=)&&=)**=)+=)-=)/=)%=)/)do)break)continue)debugger)case)throw`.split(`)`));return IS={meta:{type:`suggestion`,defaultOptions:[{disallowRedundantWrapping:!1}],docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-regex-literals`},hasSuggestions:!0,schema:[{type:`object`,properties:{disallowRedundantWrapping:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedRegExp:`Use a regular expression literal instead of the 'RegExp' constructor.`,replaceWithLiteral:`Replace with an equivalent regular expression literal.`,replaceWithLiteralAndFlags:`Replace with an equivalent regular expression literal with flags '{{ flags }}'.`,replaceWithIntendedLiteralAndFlags:`Replace with a regular expression literal with flags '{{ flags }}'.`,unexpectedRedundantRegExp:`Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.`,unexpectedRedundantRegExpWithFlags:`Use regular expression literal with flags instead of the 'RegExp' constructor.`}},create(f){let[{disallowRedundantWrapping:p}]=f.options,m=f.sourceCode;function h(t){return t.type===`TaggedTemplateExpression`&&e.isSpecificMemberAccess(t.tag,`String`,`raw`)&&m.isGlobalReference(e.skipChainExpression(t.tag).object)&&e.isStaticTemplateLiteral(t.quasi)}function g(t){return l(t)?t.value:e.isStaticTemplateLiteral(t)?t.quasis[0].value.cooked:h(t)?t.quasi.quasis[0].value.raw:null}function _(t){return l(t)||e.isStaticTemplateLiteral(t)||h(t)}function v(e){let t=e.arguments;return!(t.length!==1&&t.length!==2||!t.every(_))}function y(e){let t=e.arguments;return!!(t.length===1&&u(t[0])||t.length===2&&u(t[0])&&_(t[1]))}function b(e){return e<=5?5:Math.min(e,c)}let x=b(f.languageOptions.ecmaVersion);function S(e){switch(e){case`
205
+ `:case`\\
206
+ `:return`\\n`;case`\r`:case`\\\r`:return`\\r`;case` `:case`\\ `:return`\\t`;case`\v`:case`\\\v`:return`\\v`;case`\f`:case`\\\f`:return`\\f`;case`/`:return`\\/`;default:return null}}function C(e,t){let n=new i({ecmaVersion:x});try{return n.validatePattern(e,0,e.length,{unicode:t?t.includes(`u`):!1,unicodeSets:t?t.includes(`v`):!1}),t&&n.validateFlags(t),!0}catch{return!1}}function w(e,t){return[...e].sort().join(``)===[...t].sort().join(``)}function T(e,t){return[.../* @__PURE__ */ new Set([...e,...t])].join(``)}function E(e,t,n){let r=m.getTokenBefore(e);return m.getCommentsInside(e).length===0&&(!r||d.has(r.value))&&C(t,n)}function D(e,t){let n=m.getTokenBefore(e),r=m.getTokenAfter(e);return(n&&!s(n,t)&&n.range[1]===e.range[0]?` `:``)+t+(r&&!s(t,r)&&e.range[1]===r.range[0]?` `:``)}return{Program(e){let i=m.getScope(e),s=new r(i),c={RegExp:{[t]:!0,[n]:!0}};for(let{node:e}of s.iterateGlobalReferences(c))if(p&&y(e)){let t=e.arguments[0];if(e.arguments.length===2){let n=[],r=g(e.arguments[1])||``;E(e,t.regex.pattern,r)&&n.push({messageId:`replaceWithLiteralAndFlags`,pattern:t.regex.pattern,flags:r});let i=T(t.regex.flags||``,r);!w(i,r)&&E(e,t.regex.pattern,i)&&n.push({messageId:`replaceWithIntendedLiteralAndFlags`,pattern:t.regex.pattern,flags:i}),f.report({node:e,messageId:`unexpectedRedundantRegExpWithFlags`,suggest:n.map(({flags:t,pattern:n,messageId:r})=>({messageId:r,data:{flags:t},fix(r){return r.replaceText(e,D(e,`/${n}/${t}`))}}))})}else{let n=[];E(e,t.regex.pattern,t.regex.flags)&&n.push(m.getText(t)),f.report({node:e,messageId:`unexpectedRedundantRegExp`,suggest:n.map(t=>({messageId:`replaceWithLiteral`,fix(n){return n.replaceText(e,D(e,t))}}))})}}else if(v(e)){let t=g(e.arguments[0]),n=!1,r;if(e.arguments[1]&&(r=g(e.arguments[1])),E(e,t,r)||(n=!0),/^[-\w\\[\](){} \t\r\n\v\f!@#$%^&*+=/~`.><?,'"|:;]*$/u.test(t)||(n=!0),t&&!n){let e=0,n=new o({ecmaVersion:x}).parsePattern(t,0,t.length,{unicode:r?r.includes(`u`):!1,unicodeSets:r?r.includes(`v`):!1});a(n,{onCharacterEnter(n){let r=S(n.raw);r&&(t=t.slice(0,n.start+e)+r+t.slice(n.end+e),n.raw.length===1&&(e+=1))}})}let i=`/${t||`(?:)`}/${r||``}`;f.report({node:e,messageId:`unexpectedRegExp`,suggest:n?[]:[{messageId:`replaceWithLiteral`,fix(t){return t.replaceText(e,D(e,i))}}]})}}}}},IS}var zS,BS;function VS(){if(BS)return zS;BS=1;function e(e){let t=e.variables;for(let e=0;e<t.length;++e){let n=t[e];if(n.name===`arguments`)return n.identifiers.length===0?n:null}
207
+ /* c8 ignore next */
208
+ return null}function t(e){let t=e.identifier,n=t.parent;return!(n.type===`MemberExpression`&&n.object===t&&!n.computed)}return zS={meta:{type:`suggestion`,docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-rest-params`},schema:[],messages:{preferRestParams:`Use the rest parameters instead of 'arguments'.`}},create(n){let r=n.sourceCode;function i(e){n.report({node:e.identifier,loc:e.identifier.loc,messageId:`preferRestParams`})}function a(n){let a=e(r.getScope(n));a&&a.references.filter(t).forEach(i)}return{"FunctionDeclaration:exit":a,"FunctionExpression:exit":a}}},zS}var HS,US;function WS(){if(US)return HS;US=1;let e=$();function t(t){return e.isSpecificMemberAccess(t.callee,null,`apply`)&&t.arguments.length===2&&t.arguments[1].type!==`ArrayExpression`&&t.arguments[1].type!==`SpreadElement`}function n(t,n,r){return t?e.equalTokens(t,n,r):e.isNullOrUndefined(n)}return HS={meta:{type:`suggestion`,docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-spread`},schema:[],fixable:null,messages:{preferSpread:`Use the spread operator instead of '.apply()'.`}},create(r){let i=r.sourceCode;return{CallExpression(a){if(!t(a))return;let o=e.skipChainExpression(e.skipChainExpression(a.callee).object),s=o.type===`MemberExpression`?o.object:null,c=a.arguments[0];n(s,c,i)&&r.report({node:a,messageId:`preferSpread`})}}}},HS}var GS,KS;function qS(){if(KS)return GS;KS=1;let e=$();function t(e){return e.type===`BinaryExpression`&&e.operator===`+`}function n(e){let n=e;for(;t(n.parent);)n=n.parent;return n}function r(n){return t(n)?r(n.left)||r(n.right):n.type===`Literal`&&typeof n.value==`string`&&e.hasOctalOrNonOctalDecimalEscapeSequence(n.raw)}function i(n){return t(n)?i(n.right)||i(n.left):e.isStringLiteral(n)}function a(n){return t(n)?a(n.right)||a(n.left):!e.isStringLiteral(n)}function o(e){return e.type===`BinaryExpression`?o(e.left):e.type===`TemplateLiteral`?e.expressions.length&&e.quasis.length&&e.quasis[0].range[0]===e.quasis[0].range[1]:e.type!==`Literal`||typeof e.value!=`string`}function s(e){return e.type===`BinaryExpression`?o(e.right):e.type===`TemplateLiteral`?e.expressions.length&&e.quasis.length&&e.quasis.at(-1).range[0]===e.quasis.at(-1).range[1]:e.type!==`Literal`||typeof e.value!=`string`}return GS={meta:{type:`suggestion`,docs:{description:`Require template literals instead of string concatenation`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-template`},schema:[],fixable:`code`,messages:{unexpectedStringConcatenation:`Unexpected string concatenation.`}},create(c){let l=c.sourceCode,u=Object.create(null);function d(e,t){let n=[e].concat(l.getTokensBetween(e,t),t),r=l.getText();return n.slice(0,-1).reduce((e,t,i)=>e+r.slice(t.range[1],n[i+1].range[0]),``)}function f(e,n,r){if(e.type===`Literal`&&typeof e.value==`string`)return`\`${e.raw.slice(1,-1).replace(/(?<!\\)\\*(\$\{|`)/gu,e=>e.lastIndexOf(`\\`)%2?`\\${e}`:e).replace(RegExp(`\\\\${e.raw[0]}`,`gu`),e.raw[0])}\``;if(e.type===`TemplateLiteral`)return l.getText(e);if(t(e)&&i(e)){let t=l.getFirstTokenBetween(e.left,e.right,e=>e.value===`+`),i=d(e.left,t),a=d(t,e.right),c=s(e.left),u=o(e.right);return c?f(e.left,n,i+a).slice(0,-1)+f(e.right,null,r).slice(1):u?f(e.left,n,null).slice(0,-1)+f(e.right,i+a,r).slice(1):`${f(e.left,n,null)}${i}+${a}${f(e.right,r,null)}`}return`\`\${${n||``}${l.getText(e)}${r||``}}\``}function p(t,i){let a=n(i.parent);if(r(a))return null;let o=e.isStartOfExpressionStatement(a)&&e.needsPrecedingSemicolon(l,a)?`;`:``;return t.replaceText(a,`${o}${f(a,null,null)}`)}function m(r){if(!e.isStringLiteral(r)||!t(r.parent))return;let i=n(r.parent);u[i.range[0]]||(u[i.range[0]]=!0,a(i)&&c.report({node:i,messageId:`unexpectedStringConcatenation`,fix:e=>p(e,r)}))}return{Program(){u=Object.create(null)},Literal:m,TemplateLiteral:m}}},GS}var JS,YS;function XS(){if(YS)return JS;YS=1;let e=$(),t=Symbol(`unknown_cause`),n=/* @__PURE__ */ new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]);function r(n,r){let i=n.argument,a=i.arguments.findIndex(e=>e.type===`SpreadElement`);if(a>=0&&a<=r)return t;let o=i.arguments[r];if(o){if(o.type===`ObjectExpression`){if(o.properties.some(e=>e.type===`SpreadElement`))return t;let n=o.properties.filter(t=>e.getStaticPropertyName(t)===`cause`),r=n.at(-1);return r?{value:r.value,multipleDefinitions:n.length>1}:null}return t}return null}function i(e){let t=e;for(;t&&t.type!==`CatchClause`;){if([`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`,`StaticBlock`].includes(t.type))return null;t=t.parent}return t}return JS={meta:{type:`suggestion`,defaultOptions:[{requireCatchParameter:!1,errorClassNames:[]}],docs:{description:`Disallow losing originally caught error when re-throwing custom errors`,recommended:!0,url:`https://eslint.org/docs/latest/rules/preserve-caught-error`},schema:[{type:`object`,properties:{requireCatchParameter:{type:`boolean`,description:`Requires the catch blocks to always have the caught error parameter so it is not discarded.`},errorClassNames:{type:`array`,description:`Additional error class names to check for cause preservation.`,items:{oneOf:[{type:`string`},{type:`object`,required:[`name`,`argumentPosition`],properties:{name:{type:`string`},argumentPosition:{type:`integer`,minimum:1}},additionalProperties:!1}]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingCause:"There is no `cause` attached to the symptom error being thrown.",incorrectCause:"The symptom error is being thrown with an incorrect `cause`.",includeCause:"Include the original caught error as the `cause` of the symptom error.",missingCatchErrorParam:`The caught error is not accessible because the catch clause lacks the error parameter. Start referencing the caught error using the catch parameter.`,partiallyLostError:`Re-throws cannot preserve the caught error as a part of it is being lost due to destructuring.`,caughtErrorShadowed:"The caught error is being attached as `cause`, but is shadowed by a closer scoped redeclaration."},hasSuggestions:!0},create(a){let o=a.sourceCode,[{requireCatchParameter:s,errorClassNames:c}]=a.options,l=/* @__PURE__ */ new Map;for(let e of c){let t=typeof e==`string`?e:e.name,n=typeof e==`string`?2:e.argumentPosition;l.set(t,n)}function u(e){return e.type===`Identifier`&&n.has(e.name)&&o.isGlobalReference(e)}function d(e){if(e.argument.type!==`NewExpression`&&e.argument.type!==`CallExpression`)return!1;let t=e.argument.callee;if(u(t))return!0;let n=t.type===`MemberExpression`&&!t.computed?t.property:t;return n.type===`Identifier`&&l.has(n.name)}function f(e,t,n){let r=t.properties;if(r.length===0)return e.insertTextAfter(o.getFirstToken(t),`cause: ${n}`);let i=r.at(-1);return e.insertTextAfter(i,`, cause: ${n}`)}function p(t,n){let r=n.range[1],i=t,a=o.getTokenAfter(i);for(;a.range[1]<=r&&e.isClosingParenToken(a);)i=a,a=o.getTokenAfter(i);return i}function m(t,n,r){let i=o.getLastToken(n),a=o.getLastToken(n.callee),s=o.getFirstTokenBetween(a,i,e.isOpeningParenToken);if(s)return t.insertTextAfter(s,r);let c=p(a,i);return t.insertTextAfter(c,`(${r})`)}function h(e,t,n){let r=t.arguments.at(-1),i=p(o.getLastToken(r),o.getLastToken(t,{skip:1}));return e.insertTextAfter(i,n)}return{ThrowStatement(e){let n=i(e),c=e;if(n&&d(c)){if(n.param&&n.param.type!==`Identifier`){a.report({messageId:`partiallyLostError`,node:n});return}let e=n.param?.type===`Identifier`?n.param:null;if(!e){if(s){a.report({node:c,messageId:`missingCatchErrorParam`});return}return}let i=c.argument.callee,d=i.type===`Identifier`?i.name:i.property.name,p=u(i),g;g=p?d===`AggregateError`?2:1:l.get(d)-1;let _=r(c,g);if(_===t)return;if(_===null){a.report({messageId:`missingCause`,node:c,suggest:[{messageId:`includeCause`,fix(t){let n=c.argument,r=n.arguments;function i(n){return n.type===`ObjectExpression`?f(t,n,e.name):null}if(p&&d===`AggregateError`){let a=r[0],o=r[1],s=r[2];return a?o?s?i(s):h(t,n,`, { cause: ${e.name} }`):h(t,n,`, "", { cause: ${e.name} }`):m(t,n,`[], "", { cause: ${e.name} }`)}if(p){let a=r[0],o=r[1];return a?o?i(o):h(t,n,`, { cause: ${e.name} }`):m(t,n,`"", { cause: ${e.name} }`)}let a=r[g];return r.length<g?null:a?i(a):r.at(-1)?h(t,n,`, { cause: ${e.name} }`):m(t,n,`{ cause: ${e.name} }`)}}]});return}let{value:v}=_;if(v.type!==`Identifier`||v.name!==e.name){let t=_.multipleDefinitions?null:[{messageId:`includeCause`,fix(t){return v.parent.method||v.parent.shorthand||v.parent.kind!==`init`?t.replaceText(v.parent,`cause: ${e.name}`):t.replaceText(v,e.name)}}];a.report({messageId:`incorrectCause`,node:v,suggest:t});return}let y=o.getScope(c);do{if(y.set.get(e.name))break;y=y.upper}while(y);y?.block!==n&&a.report({messageId:`caughtErrorShadowed`,node:c})}}}}},JS}var ZS,QS;function $S(){if(QS)return ZS;QS=1;let e=/*@__PURE__*/ Is(),t=$(),n=Ol();return ZS={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`quote-props`,url:`https://eslint.style/rules/quote-props`}}]},type:`suggestion`,docs:{description:`Require quotes around object literal property names`,recommended:!1,url:`https://eslint.org/docs/latest/rules/quote-props`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`as-needed`,`consistent`,`consistent-as-needed`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`always`,`as-needed`,`consistent`,`consistent-as-needed`]},{type:`object`,properties:{keywords:{type:`boolean`},unnecessary:{type:`boolean`},numbers:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:`code`,messages:{requireQuotesDueToReservedWord:`Properties should be quoted as '{{property}}' is a reserved word.`,inconsistentlyQuotedProperty:`Inconsistently quoted property '{{key}}' found.`,unnecessarilyQuotedProperty:`Unnecessarily quoted property '{{property}}' found.`,unquotedReservedProperty:`Unquoted reserved word '{{property}}' used as key.`,unquotedNumericProperty:`Unquoted number literal '{{property}}' used as key.`,unquotedPropertyFound:`Unquoted property '{{property}}' found.`,redundantQuoting:`Properties shouldn't be quoted as all quotes are redundant.`}},create(r){let i=r.options[0],a=r.options[1]&&r.options[1].keywords,o=!r.options[1]||r.options[1].unnecessary!==!1,s=r.options[1]&&r.options[1].numbers,c=r.sourceCode;function l(e){return n.includes(e)}function u(e,t,n){return t.length===1&&t[0].start===0&&t[0].end===e.length&&([`Identifier`,`Keyword`,`Null`,`Boolean`].includes(t[0].type)||t[0].type===`Numeric`&&!n&&String(+t[0].value)===t[0].value)}function d(e){return e.type===`Identifier`?e.name:e.value}function f(e){return e.type===`Literal`&&typeof e.value==`string`?c.getText(e):`"${e.type===`Identifier`?e.name:e.value}"`}function p(n){let i=n.key;if(!(n.method||n.computed||n.shorthand)){if(i.type===`Literal`&&typeof i.value==`string`){let t;try{t=e.tokenize(i.value)}catch{return}if(t.length!==1||l(t[0].value)&&a)return;o&&u(i.value,t,s)&&r.report({node:n,messageId:`unnecessarilyQuotedProperty`,data:{property:i.value},fix:e=>e.replaceText(i,d(i))})}else a&&i.type===`Identifier`&&l(i.name)?r.report({node:n,messageId:`unquotedReservedProperty`,data:{property:i.name},fix:e=>e.replaceText(i,f(i))}):s&&i.type===`Literal`&&t.isNumericLiteral(i)&&r.report({node:n,messageId:`unquotedNumericProperty`,data:{property:i.value},fix:e=>e.replaceText(i,f(i))})}}function m(e){let t=e.key;e.method||e.computed||e.shorthand||t.type===`Literal`&&typeof t.value==`string`||r.report({node:e,messageId:`unquotedPropertyFound`,data:{property:t.name||t.value},fix:e=>e.replaceText(t,f(t))})}function h(t,n){let i=[],o=[],s=null,c=!1;t.properties.forEach(t=>{let r=t.key;if(!(!r||t.method||t.computed||t.shorthand)){if(r.type===`Literal`&&typeof r.value==`string`){if(i.push(t),n){let t;try{t=e.tokenize(r.value)}catch{c=!0;return}c=c||!u(r.value,t)||a&&l(t[0].value)}}else a&&n&&r.type===`Identifier`&&l(r.name)?(o.push(t),c=!0,s=r.name):o.push(t)}}),n&&i.length&&!c?i.forEach(e=>{r.report({node:e,messageId:`redundantQuoting`,fix:t=>t.replaceText(e.key,d(e.key))})}):o.length&&s?o.forEach(e=>{r.report({node:e,messageId:`requireQuotesDueToReservedWord`,data:{property:s},fix:t=>t.replaceText(e.key,f(e.key))})}):i.length&&o.length&&o.forEach(e=>{r.report({node:e,messageId:`inconsistentlyQuotedProperty`,data:{key:e.key.name||e.key.value},fix:t=>t.replaceText(e.key,f(e.key))})})}return{Property(e){i!==`always`&&i||m(e),i===`as-needed`&&p(e)},ObjectExpression(e){i===`consistent`&&h(e,!1),i===`consistent-as-needed`&&h(e,!0)}}}},ZS}var eC,tC;function nC(){if(tC)return eC;tC=1;let e=$(),t={double:{quote:`"`,alternateQuote:`'`,description:`doublequote`},single:{quote:`'`,alternateQuote:`"`,description:`singlequote`},backtick:{quote:"`",alternateQuote:`"`,description:`backtick`}},n=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(e.LINEBREAKS).join(``)}]`,`u`);return t.double.convert=t.single.convert=t.backtick.convert=function(e){let t=this.quote,n=e[0];return t===n?e:t+e.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(e,r,i)=>r===n||n==="`"&&r==="${"?r:e===t||t==="`"&&e==="${"?`\\${e}`:i&&n==="`"?`\\n`:e)+t},eC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`quotes`,url:`https://eslint.style/rules/quotes`}}]},type:`layout`,docs:{description:`Enforce the consistent use of either backticks, double, or single quotes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/quotes`},fixable:`code`,schema:[{enum:[`single`,`double`,`backtick`]},{anyOf:[{enum:[`avoid-escape`]},{type:`object`,properties:{avoidEscape:{type:`boolean`},allowTemplateLiterals:{type:`boolean`}},additionalProperties:!1}]}],messages:{wrongQuotes:`Strings must use {{description}}.`}},create(r){let i=r.options[0],a=t[i||`double`],o=r.options[1],s=o&&o.allowTemplateLiterals===!0,c=r.sourceCode,l=o&&o.avoidEscape===!0;o===`avoid-escape`&&(l=!0);function u(e){return e.parent.type===`JSXAttribute`||e.parent.type===`JSXElement`||e.parent.type===`JSXFragment`}function d(t){return t.type===`ExpressionStatement`&&t.expression.type===`Literal`&&typeof t.expression.value==`string`&&!e.isParenthesised(c,t.expression)}function f(t){if(!e.isTopLevelExpressionStatement(t.parent))return!1;let n=t.parent.parent;for(let e=0;e<n.body.length;++e){let r=n.body[e];if(r===t.parent)return!0;if(!d(r))break}return!1}function p(t){let n=t.parent;switch(n.type){case`ExpressionStatement`:return!e.isParenthesised(c,t)&&f(t);case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return n.key===t&&!n.computed;case`ImportDeclaration`:case`ExportNamedDeclaration`:return n.source===t;case`ExportAllDeclaration`:return n.exported===t||n.source===t;case`ImportSpecifier`:return n.imported===t;case`ExportSpecifier`:return n.local===t||n.exported===t;default:return!1}}function m(e){return!!(e.parent.type===`TaggedTemplateExpression`&&e===e.parent.quasi||e.expressions.length>0||e.quasis.length>=1&&n.test(e.quasis[0].value.raw))}return{Literal(t){let n=t.value,o=t.raw;if(a&&typeof n==`string`){let n=i===`backtick`&&p(t)||u(t)||e.isSurroundedBy(o,a.quote);!n&&l&&(n=e.isSurroundedBy(o,a.alternateQuote)&&o.includes(a.quote)),n||r.report({node:t,messageId:`wrongQuotes`,data:{description:a.description},fix(n){return i===`backtick`&&e.hasOctalOrNonOctalDecimalEscapeSequence(o)?null:n.replaceText(t,a.convert(t.raw))}})}},TemplateLiteral(t){s||i===`backtick`||m(t)||r.report({node:t,messageId:`wrongQuotes`,data:{description:a.description},fix(n){return e.isTopLevelExpressionStatement(t.parent)&&!e.isParenthesised(c,t)?null:n.replaceText(t,a.convert(c.getText(t)))}})}}}},eC}var rC,iC;function aC(){if(iC)return rC;iC=1;let e=$(),t=new Set(Array.from({length:35},(e,t)=>t+2));function n(e){return e.defs.length>=1}function r(e,n){if(e.type===`UnaryExpression`&&(e.operator===`-`||e.operator===`+`)&&e.argument.type===`Literal`&&typeof e.argument.value==`number`){let n=e.operator===`-`?-e.argument.value:e.argument.value;return t.has(n)}return!(e.type===`Literal`&&!t.has(e.value)||e.type===`Identifier`&&e.name===`undefined`&&n.isGlobalReference(e))}return rC={meta:{type:`suggestion`,docs:{description:"Enforce the use of the radix argument when using `parseInt()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/radix`},hasSuggestions:!0,schema:[{enum:[`always`,`as-needed`]}],messages:{missingParameters:`Missing parameters.`,missingRadix:`Missing radix parameter.`,invalidRadix:`Invalid radix parameter, must be an integer between 2 and 36.`,addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(t){let i=t.sourceCode;function a(n){let a=n.arguments,o=a.findIndex(e=>e.type===`SpreadElement`);o!==-1&&o<2||(a.length===0?t.report({node:n,messageId:`missingParameters`}):a.length===1?t.report({node:n,messageId:`missingRadix`,suggest:[{messageId:`addRadixParameter10`,fix(t){let r=i.getLastToken(n),a=i.getTokenBefore(r),o=e.isCommaToken(a);return t.insertTextBefore(r,o?` 10,`:`, 10`)}}]}):r(a[1],i)||t.report({node:n,messageId:`invalidRadix`}))}return{"Program:exit"(t){let r=i.getScope(t),o;o=e.getVariableByName(r,`parseInt`),o&&!n(o)&&o.references.forEach(t=>{let n=t.identifier;e.isCallee(n)&&a(n.parent)}),o=e.getVariableByName(r,`Number`),o&&!n(o)&&o.references.forEach(t=>{let n=t.identifier.parent,r=n.parent.type===`ChainExpression`?n.parent:n;e.isSpecificMemberAccess(n,`Number`,`parseInt`)&&e.isCallee(r)&&a(r.parent)})}}}},rC}var oC,sC;function cC(){if(sC)return oC;sC=1;function e(t,n=/* @__PURE__ */ new Map){for(let e of t.references)e.resolved!==null&&n.set(e.identifier,e);for(let r of t.childScopes)r.type!==`function`&&e(r,n);return n}function t(e){if(e.writeExpr)return e.writeExpr;let t=e.identifier;for(;t;){let e=t.parent.type;if(e===`AssignmentExpression`&&t.parent.left===t)return t.parent.right;if(e===`MemberExpression`&&t.parent.object===t)t=t.parent;else break}return null}function n(e,t){if(!e||t&&e.defs.some(e=>e.type===`Parameter`))return!1;let n=e.scope.variableScope;return e.references.every(e=>e.from.variableScope===n)}class r{constructor(){this.info=/* @__PURE__ */ new WeakMap}initialize(e){let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;for(let r of e.prevSegments){let e=this.info.get(r);e&&(e.outdatedReadVariables.forEach(Set.prototype.add,t),e.freshReadVariables.forEach(Set.prototype.add,n))}this.info.set(e,{outdatedReadVariables:t,freshReadVariables:n})}markAsRead(e,t){for(let n of e){let e=this.info.get(n);e&&(e.freshReadVariables.add(t),e.outdatedReadVariables.delete(t))}}makeOutdated(e){for(let t of e){let e=this.info.get(t);e&&(e.freshReadVariables.forEach(Set.prototype.add,e.outdatedReadVariables),e.freshReadVariables.clear())}}isOutdated(e,t){for(let n of e){let e=this.info.get(n);if(e&&e.outdatedReadVariables.has(t))return!0}return!1}}return oC={meta:{type:`problem`,defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-atomic-updates`},fixable:null,schema:[{type:`object`,properties:{allowProperties:{type:`boolean`}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(i){let[{allowProperties:a}]=i.options,o=i.sourceCode,s=/* @__PURE__ */ new Map,c=new r,l=null;return{onCodePathStart(t,n){let r=o.getScope(n),i=r.type===`function`&&(r.block.async||r.block.generator);l={upper:l,codePath:t,referenceMap:i?e(r):null,currentSegments:/* @__PURE__ */ new Set}},onCodePathEnd(){l=l.upper},onCodePathSegmentStart(e){c.initialize(e),l.currentSegments.add(e)},onUnreachableCodePathSegmentStart(e){l.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){l.currentSegments.delete(e)},onCodePathSegmentEnd(e){l.currentSegments.delete(e)},Identifier(e){let{referenceMap:r}=l,i=r&&r.get(e);if(!i)return;let a=i.resolved,o=t(i),u=i.identifier.parent.type===`MemberExpression`;if(i.isRead()&&!(o&&o.parent.operator===`=`)&&c.markAsRead(l.currentSegments,a),o&&o.parent.right===o&&!n(a,u)){let e=s.get(o);e||(e=[],s.set(o,e)),e.push(i)}},":expression:exit"(e){if(!l.referenceMap)return;(e.type===`AwaitExpression`||e.type===`YieldExpression`)&&c.makeOutdated(l.currentSegments);let t=s.get(e);if(t){s.delete(e);for(let n of t){let t=n.resolved;c.isOutdated(l.currentSegments,t)&&(e.parent.left===n.identifier?i.report({node:e.parent,messageId:`nonAtomicUpdate`,data:{value:t.name}}):a||i.report({node:e.parent,messageId:`nonAtomicObjectUpdate`,data:{value:o.getText(e.parent.left),object:t.name}}))}}}}}},oC}var lC,uC;function dC(){if(uC)return lC;uC=1;let e=$();function t(e){return e[0].toUpperCase()+e.slice(1)}return lC={meta:{type:`suggestion`,docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-await`},schema:[],messages:{missingAwait:`{{name}} has no 'await' expression.`,removeAsync:`Remove 'async'.`},hasSuggestions:!0},create(n){let r=n.sourceCode,i=null;function a(){i={upper:i,hasAwait:!1}}function o(a){if(!a.generator&&a.async&&!i.hasAwait&&!e.isEmptyFunction(a)){let i=a.parent.type===`MethodDefinition`&&a.parent.value===a||a.parent.type===`Property`&&a.parent.method&&a.parent.value===a?a.parent:a,o=r.getFirstToken(i,e=>e.value===`async`),s=[o.range[0],r.getTokenAfter(o,{includeComments:!0}).range[0]],c=r.getTokenAfter(o),l=(e.isOpeningParenToken(c)&&e.isStartOfExpressionStatement(i)||i.type===`MethodDefinition`&&e.canContinueExpressionInClassBody(c))&&e.needsPrecedingSemicolon(r,i);n.report({node:a,loc:e.getFunctionHeadLoc(a,r),messageId:`missingAwait`,data:{name:t(e.getFunctionNameWithKind(a))},suggest:[{messageId:`removeAsync`,fix:e=>e.replaceTextRange(s,l?`;`:``)}]})}i=i.upper}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,AwaitExpression(){i&&(i.hasAwait=!0)},ForOfStatement(e){i&&e.await&&(i.hasAwait=!0)},VariableDeclaration(e){i&&e.kind===`await using`&&(i.hasAwait=!0)}}}},lC}var fC,pC;function mC(){if(pC)return fC;pC=1;let{CALL:e,CONSTRUCT:t,ReferenceTracker:n,getStringIfConstant:r}=/*@__PURE__*/ tt(),i=$(),{isValidWithUnicodeFlag:a}=_g();function o(e,t){let n;return n=e===`v`?!t.includes(`v`):e===`u`?!t.includes(`u`):!t.includes(`u`)&&!t.includes(`v`),n}return fC={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-unicode-regexp`},hasSuggestions:!0,messages:{addUFlag:`Add the 'u' flag.`,addVFlag:`Add the 'v' flag.`,requireUFlag:`Use the 'u' flag.`,requireVFlag:`Use the 'v' flag.`},schema:[{type:`object`,properties:{requireFlag:{enum:[`u`,`v`]}},additionalProperties:!1}]},create(s){let c=s.sourceCode,[{requireFlag:l}]=s.options;return{"Literal[regex]"(e){let t=e.regex.flags||``;o(l,t)&&s.report({messageId:l===`v`?`requireVFlag`:`requireUFlag`,node:e,suggest:a(s.languageOptions.ecmaVersion,e.regex.pattern,l)?[{fix(t){let n=l??`u`,r=c.getText(e),i=r.lastIndexOf(`/`);if(l){let n=l===`u`?`v`:`u`;if(r.includes(n,i))return t.replaceText(e,r.slice(0,i)+r.slice(i).replace(n,l))}return t.insertTextAfter(e,n)},messageId:l===`v`?`addVFlag`:`addUFlag`}]:null})},Program(u){let d=c.getScope(u),f=new n(d),p={RegExp:{[e]:!0,[t]:!0}};for(let{node:e}of f.iterateGlobalReferences(p)){let[t,n]=e.arguments;if(t&&t.type===`SpreadElement`)continue;let u=r(t,d),f=r(n,d),p=!n;typeof f==`string`&&(p=o(l,f)),p&&s.report({messageId:l===`v`?`requireVFlag`:`requireUFlag`,node:e,suggest:typeof u==`string`&&a(s.languageOptions.ecmaVersion,u,l)?[{fix(t){let r=l??`u`;if(n){if(n.type===`Literal`&&typeof n.value==`string`||n.type===`TemplateLiteral`){let e=c.getText(n),i=l===`u`?`v`:`u`;return f.includes(i)?n.type===`Literal`&&n.raw.includes(`\\`)||n.type===`TemplateLiteral`&&(n.expressions.length||n.quasis.some(({value:{raw:e}})=>e.includes(`\\`)))?null:t.replaceText(n,e.replace(i,r)):t.replaceText(n,[e.slice(0,e.length-1),e.slice(e.length-1)].join(r))}return null}let a=c.getLastToken(e,{skip:1});return t.insertTextAfter(a,i.isCommaToken(a)?` "${r}",`:`, "${r}"`)},messageId:l===`v`?`addVFlag`:`addUFlag`}]:null})}}}}},fC}var hC,gC;function _C(){if(gC)return hC;gC=1;let e=$();return hC={meta:{type:`suggestion`,docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:`https://eslint.org/docs/latest/rules/require-yield`},schema:[],messages:{missingYield:`This generator function does not have 'yield'.`}},create(t){let n=[],r=t.sourceCode;function i(e){e.generator&&n.push(0)}function a(i){i.generator&&n.pop()===0&&i.body.body.length>0&&t.report({loc:e.getFunctionHeadLoc(i,r),messageId:`missingYield`})}return{FunctionDeclaration:i,"FunctionDeclaration:exit":a,FunctionExpression:i,"FunctionExpression:exit":a,YieldExpression(){n.length>0&&(n[n.length-1]+=1)}}}},hC}var vC,yC;function bC(){return yC||(yC=1,vC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`rest-spread-spacing`,url:`https://eslint.style/rules/rest-spread-spacing`}}]},type:`layout`,docs:{description:`Enforce spacing between rest and spread operators and their expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/rest-spread-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{unexpectedWhitespace:`Unexpected whitespace after {{type}} operator.`,expectedWhitespace:`Expected whitespace after {{type}} operator.`}},create(e){let t=e.sourceCode,n=e.options[0]===`always`;function r(r){let i=t.getFirstToken(r),a=t.getTokenAfter(i),o=t.isSpaceBetween(i,a),s;switch(r.type){case`SpreadElement`:s=`spread`,r.parent.type===`ObjectExpression`&&(s+=` property`);break;case`RestElement`:s=`rest`,r.parent.type===`ObjectPattern`&&(s+=` property`);break;case`ExperimentalSpreadProperty`:s=`spread property`;break;case`ExperimentalRestProperty`:s=`rest property`;break;default:return}n&&!o?e.report({node:r,loc:i.loc,messageId:`expectedWhitespace`,data:{type:s},fix(e){return e.replaceTextRange([i.range[1],a.range[0]],` `)}}):!n&&o&&e.report({node:r,loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpectedWhitespace`,data:{type:s},fix(e){return e.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:r,RestElement:r,ExperimentalSpreadProperty:r,ExperimentalRestProperty:r}}}),vC}var xC,SC;function CC(){if(SC)return xC;SC=1;let e=$p(),t=$();return xC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi`,url:`https://eslint.style/rules/semi`}}]},type:`layout`,docs:{description:`Require or disallow semicolons instead of ASI`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`never`]},{type:`object`,properties:{beforeStatementContinuationChars:{enum:[`always`,`any`,`never`]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{omitLastInOneLineBlock:{type:`boolean`},omitLastInOneLineClassBody:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:`Missing semicolon.`,extraSemi:`Extra semicolon.`}},create(n){let r=/^[-[(/+`]/u,i=/* @__PURE__ */ new Set([`get`,`set`,`static`]),a=/* @__PURE__ */ new Set([`*`,`in`,`instanceof`]),o=n.options[1],s=n.options[0]===`never`,c=!!(o&&o.omitLastInOneLineBlock),l=!!(o&&o.omitLastInOneLineClassBody),u=o&&o.beforeStatementContinuationChars||`any`,d=n.sourceCode;function f(r,i){let a=d.getLastToken(r),o,s,c;i?(o=`extraSemi`,c=a.loc,s=function(t){return new e(t,d).retainSurroundingTokens(a).remove(a)}):(o=`missingSemi`,c={start:a.loc.end,end:t.getNextLocation(d,a.loc.end)},s=function(e){return e.insertTextAfter(a,`;`)}),n.report({node:r,loc:c,messageId:o,fix:s})}function p(e){let n=d.getTokenAfter(e);return!n||t.isClosingBraceToken(n)||t.isSemicolonToken(n)}function m(e){if(!t.isClosingBraceToken(e))return!1;let n=d.getNodeByRangeIndex(e.range[0]);return n.type===`BlockStatement`&&n.parent.type===`ArrowFunctionExpression`}function h(e){if(e.type!==`PropertyDefinition`)return!1;if(!e.computed&&e.key.type===`Identifier`&&i.has(e.key.name)&&!(e.static&&e.key.name===`static`)&&!e.value)return!0;let t=d.getTokenAfter(e);return a.has(t.value)}function g(e){let n=d.getLastToken(e,1),r=d.getTokenAfter(e);return!!r&&t.isTokenOnSameLine(n,r)}function _(e){let t=e.type;return t===`DoWhileStatement`||t===`BreakStatement`||t===`ContinueStatement`||t===`DebuggerStatement`||t===`ImportDeclaration`||t===`ExportAllDeclaration`?!1:t===`ReturnStatement`?!!e.argument:t===`ExportNamedDeclaration`?!!e.declaration:!m(d.getLastToken(e,1))}function v(e){return!!e&&r.test(e.value)&&e.value!==`++`&&e.value!==`--`}function y(e){return p(d.getLastToken(e))?!0:h(e)||g(e)?!1:e.type!==`PropertyDefinition`&&u===`never`&&!_(e)||!v(d.getTokenAfter(e))}function b(e){let t=e.parent,n=d.getTokenAfter(e);return!n||n.value!==`}`?!1:t.type===`BlockStatement`?t.loc.start.line===t.loc.end.line:t.type===`StaticBlock`&&d.getFirstToken(t,{skip:1}).loc.start.line===t.loc.end.line}function x(e){let t=e.parent,n=d.getTokenAfter(e);return!n||n.value!==`}`?!1:t.type===`ClassBody`&&t.loc.start.line===t.loc.end.line}function S(e){let n=t.isSemicolonToken(d.getLastToken(e));if(s)n&&y(e)?f(e,!0):!n&&u===`always`&&e.type!==`PropertyDefinition`&&v(d.getTokenAfter(e))&&f(e);else{let t=c&&b(e),r=l&&x(e),i=t||r;n&&i?f(e,!0):!n&&!i&&f(e)}}function C(e){let t=e.parent;t.type===`ForStatement`&&t.init===e||/^For(?:In|Of)Statement/u.test(t.type)&&t.left===e||S(e)}return{VariableDeclaration:C,ExpressionStatement:S,ReturnStatement:S,ThrowStatement:S,DoWhileStatement:S,DebuggerStatement:S,BreakStatement:S,ContinueStatement:S,ImportDeclaration:S,ExportAllDeclaration:S,ExportNamedDeclaration(e){e.declaration||S(e)},ExportDefaultDeclaration(e){/(?:Class|Function)Declaration/u.test(e.declaration.type)||S(e)},PropertyDefinition:S}}},xC}var wC,TC;function EC(){if(TC)return wC;TC=1;let e=$();return wC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi-spacing`,url:`https://eslint.style/rules/semi-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!1},after:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:`Unexpected whitespace before semicolon.`,unexpectedWhitespaceAfter:`Unexpected whitespace after semicolon.`,missingWhitespaceBefore:`Missing whitespace before semicolon.`,missingWhitespaceAfter:`Missing whitespace after semicolon.`}},create(t){let n=t.options[0],r=t.sourceCode,i=!1,a=!0;typeof n==`object`&&(i=n.before,a=n.after);function o(t){let n=r.getTokenBefore(t);return n&&e.isTokenOnSameLine(n,t)&&r.isSpaceBetween(n,t)}function s(t){let n=r.getTokenAfter(t);return n&&e.isTokenOnSameLine(t,n)&&r.isSpaceBetween(t,n)}function c(t){let n=r.getTokenAfter(t);return!(n&&e.isTokenOnSameLine(t,n))}function l(t){let n=r.getTokenBefore(t);return!(n&&e.isTokenOnSameLine(t,n))}function u(t){let n=r.getTokenAfter(t);return n&&e.isClosingBraceToken(n)||e.isClosingParenToken(n)}function d(n,d){if(e.isSemicolonToken(n)){if(o(n)){if(!i){let e=r.getTokenBefore(n),i={start:e.loc.end,end:n.loc.start};t.report({node:d,loc:i,messageId:`unexpectedWhitespaceBefore`,fix(t){return t.removeRange([e.range[1],n.range[0]])}})}}else if(i){let e=n.loc;t.report({node:d,loc:e,messageId:`missingWhitespaceBefore`,fix(e){return e.insertTextBefore(n,` `)}})}if(!l(n)&&!c(n)&&!u(n)){if(s(n)){if(!a){let e=r.getTokenAfter(n),i={start:n.loc.end,end:e.loc.start};t.report({node:d,loc:i,messageId:`unexpectedWhitespaceAfter`,fix(t){return t.removeRange([n.range[1],e.range[0]])}})}}else if(a){let e=n.loc;t.report({node:d,loc:e,messageId:`missingWhitespaceAfter`,fix(e){return e.insertTextAfter(n,` `)}})}}}}function f(e){d(r.getLastToken(e),e)}return{VariableDeclaration:f,ExpressionStatement:f,BreakStatement:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,ReturnStatement:f,ThrowStatement:f,ImportDeclaration:f,ExportNamedDeclaration:f,ExportAllDeclaration:f,ExportDefaultDeclaration:f,ForStatement(e){e.init&&d(r.getTokenAfter(e.init),e),e.test&&d(r.getTokenAfter(e.test),e)},PropertyDefinition:f}}},wC}var DC,OC;function kC(){if(OC)return DC;OC=1;let e=$();function t(e){let t=e.type;return t===`BlockStatement`||t===`StaticBlock`||t===`Program`||t===`ClassBody`?e.body:t===`SwitchCase`?e.consequent:null}function n(e){let n=e.parent.type;if(n===`IfStatement`&&e.parent.consequent===e&&e.parent.alternate||n===`DoWhileStatement`)return!0;let r=t(e.parent);return r!==null&&r.at(-1)===e}return DC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi-style`,url:`https://eslint.style/rules/semi-style`}}]},type:`layout`,docs:{description:`Enforce location of semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi-style`},schema:[{enum:[`last`,`first`]}],fixable:`whitespace`,messages:{expectedSemiColon:`Expected this semicolon to be at {{pos}}.`}},create(t){let r=t.sourceCode,i=t.options[0]||`last`;function a(n,i){let a=r.getTokenBefore(n),o=r.getTokenAfter(n),s=!a||e.isTokenOnSameLine(a,n),c=!o||e.isTokenOnSameLine(n,o);(i===`last`&&!s||i===`first`&&!c)&&t.report({loc:n.loc,messageId:`expectedSemiColon`,data:{pos:i===`last`?`the end of the previous line`:`the beginning of the next line`},fix(e){if(a&&o&&r.commentsExistBetween(a,o))return null;let t=a?a.range[1]:n.range[0],s=o?o.range[0]:n.range[1],c=i===`last`?`;
209
+ `:`
210
+ ;`;return e.replaceTextRange([t,s],c)}})}return{"BreakStatement,ContinueStatement,DebuggerStatement,DoWhileStatement,ExportAllDeclaration,ExportDefaultDeclaration,ExportNamedDeclaration,ExpressionStatement,ImportDeclaration,ReturnStatement,ThrowStatement,VariableDeclaration,PropertyDefinition"(t){if(i===`first`&&n(t))return;let o=r.getLastToken(t);e.isSemicolonToken(o)&&a(o,i)},ForStatement(t){let n=t.init&&r.getTokenAfter(t.init,e.isSemicolonToken),i=t.test&&r.getTokenAfter(t.test,e.isSemicolonToken);n&&a(n,`last`),i&&a(i,`last`)}}}},DC}var AC,jC;function MC(){return jC||(jC=1,AC={meta:{type:`suggestion`,defaultOptions:[{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:[`none`,`all`,`multiple`,`single`]}],docs:{description:"Enforce sorted `import` declarations within modules",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-imports`},schema:[{type:`object`,properties:{ignoreCase:{type:`boolean`},memberSyntaxSortOrder:{type:`array`,items:{enum:[`none`,`all`,`multiple`,`single`]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:`boolean`},ignoreMemberSort:{type:`boolean`},allowSeparatedGroups:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{sortImportsAlphabetically:`Imports should be sorted alphabetically.`,sortMembersAlphabetically:`Member '{{memberName}}' of the import declaration should be sorted alphabetically.`,unexpectedSyntaxOrder:`Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax.`}},create(e){let[{ignoreCase:t,ignoreDeclarationSort:n,ignoreMemberSort:r,memberSyntaxSortOrder:i,allowSeparatedGroups:a}]=e.options,o=e.sourceCode,s=null;function c(e){return e.specifiers.length===0?`none`:e.specifiers[0].type===`ImportNamespaceSpecifier`?`all`:e.specifiers.length===1?`single`:`multiple`}function l(e){return i.indexOf(c(e))}function u(e){return e.specifiers[0]?e.specifiers[0].local.name:null}function d(e,t){return Math.max(t.loc.start.line-e.loc.end.line-1,0)}return{ImportDeclaration(c){if(!n){if(s&&a&&d(s,c)>0&&(s=null),s){let n=l(c),r=l(s),a=u(c),o=u(s);t&&(o&&=o.toLowerCase(),a&&=a.toLowerCase()),n===r?o&&a&&a<o&&e.report({node:c,messageId:`sortImportsAlphabetically`}):n<r&&e.report({node:c,messageId:`unexpectedSyntaxOrder`,data:{syntaxA:i[n],syntaxB:i[r]}})}s=c}if(!r){let n=c.specifiers.filter(e=>e.type===`ImportSpecifier`),r=t?e=>e.local.name.toLowerCase():e=>e.local.name,i=n.map(r).findIndex((e,t,n)=>n[t-1]>e);i!==-1&&e.report({node:n[i],messageId:`sortMembersAlphabetically`,data:{memberName:n[i].local.name},fix(e){return n.some(e=>o.getCommentsBefore(e).length||o.getCommentsAfter(e).length)?null:e.replaceTextRange([n[0].range[0],n.at(-1).range[1]],n.slice().sort((e,t)=>r(e)>r(t)?1:-1).reduce((e,t,r)=>{let i=r===n.length-1?``:o.getText().slice(n[r].range[1],n[r+1].range[0]);return e+o.getText(t)+i},``))}})}}}}}),AC}var NC={exports:{}},PC;function FC(){if(PC)return NC.exports;PC=1;
211
+ /*
212
+ * @version 1.4.0
213
+ * @date 2015-10-26
214
+ * @stability 3 - Stable
215
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
216
+ * @license MIT License
217
+ */
218
+ var e=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function c(e,t,r){if(r){for(n=t;r=c(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((e+=``)!=(t+=``)){for(;i;)if(r=c(e,a++),i=c(t,o++),r<76&&i<76&&r>66&&i>66&&(r=c(e,a,a),i=c(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{NC.exports=e}catch{String.naturalCompare=e}return NC.exports}var IC,LC;function RC(){if(LC)return IC;LC=1;let e=$(),t=FC();function n(t){let n=e.getStaticPropertyName(t);return n===null?t.key.name||null:n}let r={asc(e,t){return e<=t},ascI(e,t){return e.toLowerCase()<=t.toLowerCase()},ascN(e,n){return t(e,n)<=0},ascIN(e,n){return t(e.toLowerCase(),n.toLowerCase())<=0},desc(e,t){return r.asc(t,e)},descI(e,t){return r.ascI(t,e)},descN(e,t){return r.ascN(t,e)},descIN(e,t){return r.ascIN(t,e)}};return IC={meta:{type:`suggestion`,defaultOptions:[`asc`,{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:`Require object keys to be sorted`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-keys`},schema:[{enum:[`asc`,`desc`]},{type:`object`,properties:{caseSensitive:{type:`boolean`},natural:{type:`boolean`},minKeys:{type:`integer`,minimum:2},allowLineSeparatedGroups:{type:`boolean`},ignoreComputedKeys:{type:`boolean`}},additionalProperties:!1}],messages:{sortKeys:`Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'.`}},create(e){let[t,{caseSensitive:i,natural:a,minKeys:o,allowLineSeparatedGroups:s,ignoreComputedKeys:c}]=e.options,l=!i,u=r[t+(l?`I`:``)+(a?`N`:``)],d=null,f=e.sourceCode;return{ObjectExpression(e){d={upper:d,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:e.properties.length}},"ObjectExpression:exit"(){d=d.upper},SpreadElement(e){e.parent.type===`ObjectExpression`&&(d.prevName=null)},Property(r){if(r.parent.type===`ObjectPattern`)return;if(c&&r.computed){d.prevName=null;return}let i=d.prevName,p=d.numKeys,m=n(r),h=d.prevNode&&f.getTokensBetween(d.prevNode,r,{includeComments:!0}),g=d.prevBlankLine;h&&(h.forEach((e,t)=>{let n=h[t-1];n&&e.loc.start.line-n.loc.end.line>1&&(g=!0)}),!g&&r.loc.start.line-h.at(-1).loc.end.line>1&&(g=!0),!g&&h[0].loc.start.line-d.prevNode.loc.end.line>1&&(g=!0)),d.prevNode=r,m!==null&&(d.prevName=m),s&&g?d.prevBlankLine=m===null:i===null||m===null||p<o||u(i,m)||e.report({node:r,loc:r.key.loc,messageId:`sortKeys`,data:{thisName:m,prevName:i,order:t,insensitive:l?`insensitive `:``,natural:a?`natural `:``}})}}}},IC}var zC,BC;function VC(){return BC||(BC=1,zC={meta:{type:`suggestion`,defaultOptions:[{ignoreCase:!1}],docs:{description:`Require variables within the same declaration block to be sorted`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-vars`},schema:[{type:`object`,properties:{ignoreCase:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{sortVars:`Variables within the same declaration block should be sorted alphabetically.`}},create(e){let[{ignoreCase:t}]=e.options,n=e.sourceCode;return{VariableDeclaration(r){let i=r.declarations.filter(e=>e.id.type===`Identifier`),a=t?e=>e.id.name.toLowerCase():e=>e.id.name,o=i.some(e=>e.init!==null&&e.init.type!==`Literal`),s=!1;i.slice(1).reduce((t,r)=>{let c=a(t);return a(r)<c?(e.report({node:r,messageId:`sortVars`,fix(e){return o||s?null:e.replaceTextRange([i[0].range[0],i.at(-1).range[1]],i.slice().sort((e,t)=>a(e)>a(t)?1:-1).reduce((e,t,r)=>{let a=r===i.length-1?``:n.getText().slice(i[r].range[1],i[r+1].range[0]);return e+n.getText(t)+a},``))}}),s=!0,t):r},i[0])}}}}),zC}var HC,UC;function WC(){if(UC)return HC;UC=1;let e=$();function t(t){let n=t.parent;return t.type===`BlockStatement`&&e.isFunction(n)&&n.body===t}return HC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-before-blocks`,url:`https://eslint.style/rules/space-before-blocks`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-before-blocks`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{keywords:{enum:[`always`,`never`,`off`]},functions:{enum:[`always`,`never`,`off`]},classes:{enum:[`always`,`never`,`off`]}},additionalProperties:!1}]}],messages:{unexpectedSpace:`Unexpected space before opening brace.`,missingSpace:`Missing space before opening brace.`}},create(n){let r=n.options[0],i=n.sourceCode,a=!0,o=!0,s=!0,c=!1,l=!1,u=!1;typeof r==`object`?(a=r.functions===`always`,o=r.keywords===`always`,s=r.classes===`always`,c=r.functions===`never`,l=r.keywords===`never`,u=r.classes===`never`):r===`never`&&(a=!1,o=!1,s=!1,c=!0,l=!0,u=!0);function d(n,r){return e.isArrowToken(n)||e.isKeywordToken(n)&&!t(r)||e.isColonToken(n)&&r.parent&&r.parent.type===`SwitchCase`&&n===e.getSwitchCaseColonToken(r.parent,i)}function f(r){let f=i.getTokenBefore(r);if(f&&!d(f,r)&&e.isTokenOnSameLine(f,r)){let e=i.isSpaceBetween(f,r),d,p;t(r)?(d=a,p=c):r.type===`ClassBody`?(d=s,p=u):(d=o,p=l),d&&!e?n.report({node:r,messageId:`missingSpace`,fix(e){return e.insertTextBefore(r,` `)}}):p&&e&&n.report({node:r,messageId:`unexpectedSpace`,fix(e){return e.removeRange([f.range[1],r.range[0]])}})}}function p(e){let t=e.cases,n;n=t.length>0?i.getTokenBefore(t[0]):i.getLastToken(e,1),f(n)}return{BlockStatement:f,ClassBody:f,SwitchStatement:p}}},HC}var GC,KC;function qC(){if(KC)return GC;KC=1;let e=$();return GC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-before-function-paren`,url:`https://eslint.style/rules/space-before-function-paren`}}]},type:`layout`,docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:`https://eslint.org/docs/latest/rules/space-before-function-paren`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{anonymous:{enum:[`always`,`never`,`ignore`]},named:{enum:[`always`,`never`,`ignore`]},asyncArrow:{enum:[`always`,`never`,`ignore`]}},additionalProperties:!1}]}],messages:{unexpectedSpace:`Unexpected space before function parentheses.`,missingSpace:`Missing space before function parentheses.`}},create(t){let n=t.sourceCode,r=typeof t.options[0]==`string`?t.options[0]:`always`,i=typeof t.options[0]==`object`?t.options[0]:{};function a(e){if(e.id)return!0;let t=e.parent;return t.type===`MethodDefinition`||t.type===`Property`&&(t.kind===`get`||t.kind===`set`||t.method)}function o(t){if(t.type===`ArrowFunctionExpression`){if(t.async&&e.isOpeningParenToken(n.getFirstToken(t,{skip:1})))return i.asyncArrow||r}else if(a(t))return i.named||r;else if(!t.generator)return i.anonymous||r;return`ignore`}function s(r){let i=o(r);if(i===`ignore`)return;let a=n.getFirstToken(r,e.isOpeningParenToken),s=n.getTokenBefore(a),c=n.isSpaceBetween(s,a);c&&i===`never`?t.report({node:r,loc:{start:s.loc.end,end:a.loc.start},messageId:`unexpectedSpace`,fix(e){let t=n.getCommentsBefore(a);return t.some(e=>e.type===`Line`)?null:e.replaceTextRange([s.range[1],a.range[0]],t.reduce((e,t)=>e+n.getText(t),``))}}):!c&&i===`always`&&t.report({node:r,loc:a.loc,messageId:`missingSpace`,fix:e=>e.insertTextAfter(s,` `)})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}},GC}var JC,YC;function XC(){if(YC)return JC;YC=1;let e=$();return JC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-in-parens`,url:`https://eslint.style/rules/space-in-parens`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-in-parens`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{exceptions:{type:`array`,items:{enum:[`{}`,`[]`,`()`,`empty`]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:`There must be a space after this paren.`,missingClosingSpace:`There must be a space before this paren.`,rejectedOpeningSpace:`There should be no space after this paren.`,rejectedClosingSpace:`There should be no space before this paren.`}},create(t){let n=t.options[0]===`always`,r=t.options[1]&&t.options[1].exceptions||[],i={},a;r.length&&(i.braceException=r.includes(`{}`),i.bracketException=r.includes(`[]`),i.parenException=r.includes(`()`),i.empty=r.includes(`empty`));function o(){let e=[],t=[];return i.braceException&&(e.push(`{`),t.push(`}`)),i.bracketException&&(e.push(`[`),t.push(`]`)),i.parenException&&(e.push(`(`),t.push(`)`)),i.empty&&(e.push(`)`),t.push(`(`)),{openers:e,closers:t}}let s=t.sourceCode;function c(e){return a.openers.includes(e.value)}function l(e){return a.closers.includes(e.value)}function u(t,r){return s.isSpaceBetween(t,r)||!i.empty&&e.isClosingParenToken(r)?!1:n?!c(r):c(r)}function d(t,r){return!e.isTokenOnSameLine(t,r)||r.type===`Line`||!s.isSpaceBetween(t,r)?!1:n?c(r):!c(r)}function f(t,r){return s.isSpaceBetween(t,r)||!i.empty&&e.isOpeningParenToken(t)?!1:n?!l(t):l(t)}function p(t,r){return!e.isTokenOnSameLine(t,r)||!s.isSpaceBetween(t,r)?!1:n?l(t):!l(t)}return{Program:function(n){a=o();let r=s.tokensAndComments;r.forEach((i,a)=>{let o=r[a-1],s=r[a+1];(e.isOpeningParenToken(i)||e.isClosingParenToken(i))&&(i.value===`(`&&u(i,s)&&t.report({node:n,loc:i.loc,messageId:`missingOpeningSpace`,fix(e){return e.insertTextAfter(i,` `)}}),i.value===`(`&&d(i,s)&&t.report({node:n,loc:{start:i.loc.end,end:s.loc.start},messageId:`rejectedOpeningSpace`,fix(e){return e.removeRange([i.range[1],s.range[0]])}}),i.value===`)`&&f(o,i)&&t.report({node:n,loc:i.loc,messageId:`missingClosingSpace`,fix(e){return e.insertTextBefore(i,` `)}}),i.value===`)`&&p(o,i)&&t.report({node:n,loc:{start:o.loc.end,end:i.loc.start},messageId:`rejectedClosingSpace`,fix(e){return e.removeRange([o.range[1],i.range[0]])}}))})}}}},JC}var ZC,QC;function $C(){if(QC)return ZC;QC=1;let{isEqToken:e}=$();return ZC={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-infix-ops`,url:`https://eslint.style/rules/space-infix-ops`}}]},type:`layout`,docs:{description:`Require spacing around infix operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-infix-ops`},fixable:`whitespace`,schema:[{type:`object`,properties:{int32Hint:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{missingSpace:`Operator '{{operator}}' must be spaced.`}},create(t){let n=t.options[0]?t.options[0].int32Hint===!0:!1,r=t.sourceCode;function i(e,t,n){let i=r.getFirstTokenBetween(e,t,e=>e.value===n),a=r.getTokenBefore(i),o=r.getTokenAfter(i);return!r.isSpaceBetween(a,i)||!r.isSpaceBetween(i,o)?i:null}function a(e,n){t.report({node:e,loc:n.loc,messageId:`missingSpace`,data:{operator:n.value},fix(e){let t=r.getTokenBefore(n),i=r.getTokenAfter(n),a=``;return n.range[0]-t.range[1]===0&&(a=` `),a+=n.value,i.range[0]-n.range[1]===0&&(a+=` `),e.replaceText(n,a)}})}function o(e){let t=e.left.typeAnnotation?e.left.typeAnnotation:e.left,o=e.right,s=i(t,o,e.operator||`=`);s&&(n&&r.getText(e).endsWith(`|0`)||a(e,s))}function s(e){let t=i(e.test,e.consequent,`?`),n=i(e.consequent,e.alternate,`:`);t&&a(e,t),n&&a(e,n)}function c(e){let t=e.id.typeAnnotation?e.id.typeAnnotation:e.id,n=e.init;if(n){let r=i(t,n,`=`);r&&a(e,r)}}return{AssignmentExpression:o,AssignmentPattern:o,BinaryExpression:o,LogicalExpression:o,ConditionalExpression:s,VariableDeclarator:c,PropertyDefinition(t){if(!t.value)return;let n=r.getTokenBefore(t.value,e),i=r.getTokenBefore(n),o=r.getTokenAfter(n);r.isSpaceBetween(i,n)&&r.isSpaceBetween(n,o)||a(t,n)}}}},ZC}var ew,tw;function nw(){if(tw)return ew;tw=1;let e=$();return ew={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-unary-ops`,url:`https://eslint.style/rules/space-unary-ops`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before or after unary operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-unary-ops`},fixable:`whitespace`,schema:[{type:`object`,properties:{words:{type:`boolean`,default:!0},nonwords:{type:`boolean`,default:!1},overrides:{type:`object`,additionalProperties:{type:`boolean`}}},additionalProperties:!1}],messages:{unexpectedBefore:`Unexpected space before unary operator '{{operator}}'.`,unexpectedAfter:`Unexpected space after unary operator '{{operator}}'.`,unexpectedAfterWord:`Unexpected space after unary word operator '{{word}}'.`,wordOperator:`Unary word operator '{{word}}' must be followed by whitespace.`,operator:`Unary operator '{{operator}}' must be followed by whitespace.`,beforeUnaryExpressions:`Space is required before unary expressions '{{token}}'.`}},create(t){let n=t.options[0]||{words:!0,nonwords:!1},r=t.sourceCode;function i(e){return e&&e.type===`UnaryExpression`&&e.argument.operator===`!`&&e.argument&&e.argument.type===`UnaryExpression`&&e.argument.operator===`!`}function a(e){return n.overrides&&Object.hasOwn(n.overrides,e)}function o(e){return n.overrides[e]}function s(e,n,r,i){r.range[0]===n.range[1]&&t.report({node:e,messageId:`wordOperator`,data:{word:i},fix(e){return e.insertTextAfter(n,` `)}})}function c(n,r,i,a){e.canTokensBeAdjacent(r,i)&&i.range[0]>r.range[1]&&t.report({node:n,messageId:`unexpectedAfterWord`,data:{word:a},fix(e){return e.removeRange([r.range[1],i.range[0]])}})}function l(e,t,r,i){a(i)?o(i)?s(e,t,r,i):c(e,t,r,i):n.words?s(e,t,r,i):c(e,t,r,i)}function u(e){let t=r.getFirstTokens(e,3);e.argument&&!e.delegate&&l(e,t[0],t[1],`yield`)}function d(e){let t=r.getFirstTokens(e,3);l(e,t[0],t[1],`await`)}function f(e,n,r){if(e.prefix){if(i(e))return;n.range[1]===r.range[0]&&t.report({node:e,messageId:`operator`,data:{operator:n.value},fix(e){return e.insertTextAfter(n,` `)}})}else n.range[1]===r.range[0]&&t.report({node:e,messageId:`beforeUnaryExpressions`,data:{token:r.value},fix(e){return e.insertTextBefore(r,` `)}})}function p(n,r,i){n.prefix?i.range[0]>r.range[1]&&t.report({node:n,messageId:`unexpectedAfter`,data:{operator:r.value},fix(t){return e.canTokensBeAdjacent(r,i)?t.removeRange([r.range[1],i.range[0]]):null}}):i.range[0]>r.range[1]&&t.report({node:n,messageId:`unexpectedBefore`,data:{operator:i.value},fix(e){return e.removeRange([r.range[1],i.range[0]])}})}function m(e){let t=e.type===`UpdateExpression`&&!e.prefix?r.getLastTokens(e,2):r.getFirstTokens(e,2),i=t[0],s=t[1];if((e.type===`NewExpression`||e.prefix)&&i.type===`Keyword`){l(e,i,s,i.value);return}let c=e.prefix?t[0].value:t[1].value;a(c)?o(c)?f(e,i,s):p(e,i,s):n.nonwords?f(e,i,s):p(e,i,s)}return{UnaryExpression:m,UpdateExpression:m,NewExpression:m,YieldExpression:u,AwaitExpression:d}}},ew}var rw,iw;function aw(){if(iw)return rw;iw=1;let e=pr(),t=$();function n(t){return`(?:${e(t)})`}function r(e){return`${n(e)}+`}function i(e){return e.includes(`*`)?e:e.concat(`*`)}function a(e){let n=``;return e.length===0?n+=`\\s`:(n+=`(?:\\s|`,e.length===1?n+=r(e[0]):(n+=`(?:`,n+=e.map(r).join(`|`),n+=`)`),n+=`(?:$|[${Array.from(t.LINEBREAKS).join(``)}]))`),n}function o(e,t){let r=`^`;return e.length===1?r+=n(e[0]):(r+=`(?:`,r+=e.map(n).join(`|`),r+=`)`),r+=`?`,r+=a(t),new RegExp(r,`u`)}function s(e){let t=`^(${e.map(n).join(`|`)})?[ \t]+`;return new RegExp(t,`u`)}return rw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`spaced-comment`,url:`https://eslint.style/rules/spaced-comment`}}]},type:`suggestion`,docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:`https://eslint.org/docs/latest/rules/spaced-comment`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`}},markers:{type:`array`,items:{type:`string`}},line:{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`}},markers:{type:`array`,items:{type:`string`}}},additionalProperties:!1},block:{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`}},markers:{type:`array`,items:{type:`string`}},balanced:{type:`boolean`,default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:`Unexpected space or tab after marker ({{refChar}}) in comment.`,expectedExceptionAfter:`Expected exception block, space or tab after '{{refChar}}' in comment.`,unexpectedSpaceBefore:`Unexpected space or tab before '*/' in comment.`,unexpectedSpaceAfter:`Unexpected space or tab after '{{refChar}}' in comment.`,expectedSpaceBefore:`Expected space or tab before '*/' in comment.`,expectedSpaceAfter:`Expected space or tab after '{{refChar}}' in comment.`}},create(e){let t=e.sourceCode,r=e.options[0]!==`never`,c=e.options[1]||{},l=c.block&&c.block.balanced,u=[`block`,`line`].reduce((e,t)=>{let u=i(c[t]&&c[t].markers||c.markers||[]),d=c[t]&&c[t].exceptions||c.exceptions||[];return e[t]={beginRegex:r?o(u,d):s(u),endRegex:RegExp(l&&r?`${a(d)}$`:`[ ]+$`,`u`),hasExceptions:d.length>0,captureMarker:RegExp(`^(${u.map(n).join(`|`)})`,`u`),markers:new Set(u)},e},{});function d(t,n,i,a){let o=t.type.toLowerCase()===`block`?`/*`:`//`;e.report({node:t,fix(e){let n=t.range[0],a=n+2;return r?(i&&(a+=i[0].length),e.insertTextAfterRange([n,a],` `)):(a+=i[0].length,e.replaceTextRange([n,a],o+(i[1]?i[1]:``)))},messageId:n,data:{refChar:a}})}function f(t,n,i){e.report({node:t,fix(e){if(r)return e.insertTextAfterRange([t.range[0],t.range[1]-2],` `);let n=t.range[1]-2,a=n-i[0].length;return e.replaceTextRange([a,n],``)},messageId:n})}function p(e){let t=e.type.toLowerCase(),n=u[t],i=t===`block`?`/*`:`//`;if(e.value.length===0||n.markers.has(e.value))return;let a=n.beginRegex.exec(e.value),o=n.endRegex.exec(e.value);if(r){if(!a){let t=n.captureMarker.exec(e.value),r=t?i+t[0]:i;n.hasExceptions?d(e,`expectedExceptionAfter`,t,r):d(e,`expectedSpaceAfter`,t,r)}l&&t===`block`&&!o&&f(e,`expectedSpaceBefore`)}else a&&(a[1]?d(e,`unexpectedSpaceAfterMarker`,a,a[1]):d(e,`unexpectedSpaceAfter`,a,i)),l&&t===`block`&&o&&f(e,`unexpectedSpaceBefore`,o)}return{Program(){t.getAllComments().filter(e=>e.type!==`Shebang`).forEach(p)}}}},rw}var ow,sw;function cw(){if(sw)return ow;sw=1;let e=$();function t(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.type===`ExpressionStatement`&&r.expression.type===`Literal`&&r.expression.value===`use strict`)t[n]=r;else break}return t}function n(e){return e.type===`Identifier`}function r(e){return e.every(n)}return ow={meta:{type:`suggestion`,defaultOptions:[`safe`],docs:{description:`Require or disallow strict mode directives`,recommended:!1,url:`https://eslint.org/docs/latest/rules/strict`},schema:[{enum:[`never`,`global`,`function`,`safe`]}],fixable:`code`,messages:{function:`Use the function form of 'use strict'.`,global:`Use the global form of 'use strict'.`,multiple:`Multiple 'use strict' directives.`,never:`Strict mode is not permitted.`,unnecessary:`Unnecessary 'use strict' directive.`,module:`'use strict' is unnecessary inside of modules.`,implied:`'use strict' is unnecessary when implied strict mode is enabled.`,unnecessaryInClasses:`'use strict' is unnecessary inside of classes.`,nonSimpleParameterList:`'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.`,wrap:`Wrap {{name}} in a function with 'use strict' directive.`}},create(n){let i=n.languageOptions.parserOptions.ecmaFeatures||{},a=[],o=[],[s]=n.options;i.impliedStrict?s=`implied`:s===`safe`&&(s=i.globalReturn||n.languageOptions.sourceType===`commonjs`?`global`:`function`);function c(e){return e===`multiple`||e===`unnecessary`||e===`module`||e===`implied`||e===`unnecessaryInClasses`}function l(e){return t=>t.remove(e)}function u(e,t,r,i,a){e.slice(t,r).forEach(e=>{n.report({node:e,messageId:i,fix:a?l(e):null})})}function d(e,t,n){u(e,0,e.length,t,n)}function f(e,t,n){u(e,1,e.length,t,n)}function p(t,i){let s=o.length>0,c=a.length===0&&o.length===0,u=a.length>0&&a.at(-1),d=i.length>0;d?(r(t.params)?u?n.report({node:i[0],messageId:`unnecessary`,fix:l(i[0])}):s&&n.report({node:i[0],messageId:`unnecessaryInClasses`,fix:l(i[0])}):n.report({node:i[0],messageId:`nonSimpleParameterList`}),f(i,`multiple`,!0)):c&&(r(t.params)?n.report({node:t,messageId:`function`}):n.report({node:t,messageId:`wrap`,data:{name:e.getFunctionNameWithKind(t)}})),a.push(u||d)}function m(){a.pop()}function h(e){let i=e.body.type===`BlockStatement`?t(e.body.body):[];s===`function`?p(e,i):i.length>0&&(r(e.params)?d(i,s,c(s)):(n.report({node:i[0],messageId:`nonSimpleParameterList`}),f(i,`multiple`,!0)))}let g={Program(e){let r=t(e.body);e.sourceType===`module`&&(s=`module`),s===`global`?(e.body.length>0&&r.length===0&&n.report({loc:{start:e.body[0].loc.start,end:e.body.at(-1).loc.end},messageId:`global`}),f(r,`multiple`,!0)):d(r,s,c(s))},FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h};return s===`function`&&Object.assign(g,{ClassBody(){o.push(!0)},"ClassBody:exit"(){o.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),g}},ow}var lw,uw;function dw(){if(uw)return lw;uw=1;let e=$();return lw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`switch-colon-spacing`,url:`https://eslint.style/rules/switch-colon-spacing`}}]},type:`layout`,docs:{description:`Enforce spacing around colons of switch statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/switch-colon-spacing`},schema:[{type:`object`,properties:{before:{type:`boolean`,default:!1},after:{type:`boolean`,default:!0}},additionalProperties:!1}],fixable:`whitespace`,messages:{expectedBefore:`Expected space(s) before this colon.`,expectedAfter:`Expected space(s) after this colon.`,unexpectedBefore:`Unexpected space(s) before this colon.`,unexpectedAfter:`Unexpected space(s) after this colon.`}},create(t){let n=t.sourceCode,r=t.options[0]||{},i=r.before===!0,a=r.after!==!1;function o(t,r,i){return e.isClosingBraceToken(r)||!e.isTokenOnSameLine(t,r)||n.isSpaceBetween(t,r)===i}function s(t,r){return n.getFirstTokenBetween(t,r,{includeComments:!0,filter:e.isCommentToken})!==null}function c(e,t,n,r){return s(t,n)?null:r?e.insertTextAfter(t,` `):e.removeRange([t.range[1],n.range[0]])}return{SwitchCase(r){let s=e.getSwitchCaseColonToken(r,n),l=n.getTokenBefore(s),u=n.getTokenAfter(s);o(l,s,i)||t.report({node:r,loc:s.loc,messageId:i?`expectedBefore`:`unexpectedBefore`,fix:e=>c(e,l,s,i)}),o(s,u,a)||t.report({node:r,loc:s.loc,messageId:a?`expectedAfter`:`unexpectedAfter`,fix:e=>c(e,s,u,a)})}}}},lw}var fw,pw;function mw(){if(pw)return fw;pw=1;let e=$();return fw={meta:{type:`suggestion`,docs:{description:`Require symbol descriptions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/symbol-description`},fixable:null,schema:[],messages:{expected:`Expected Symbol to have a description.`}},create(t){let n=t.sourceCode;function r(e){e.arguments.length===0&&t.report({node:e,messageId:`expected`})}return{"Program:exit"(t){let i=n.getScope(t),a=e.getVariableByName(i,`Symbol`);a&&a.defs.length===0&&a.references.forEach(t=>{let n=t.identifier;e.isCallee(n)&&r(n.parent)})}}}},fw}var hw,gw;function _w(){if(gw)return hw;gw=1;let e=$();return hw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`template-curly-spacing`,url:`https://eslint.style/rules/template-curly-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing around embedded expressions of template strings`,recommended:!1,url:`https://eslint.org/docs/latest/rules/template-curly-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{expectedBefore:`Expected space(s) before '}'.`,expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:`Unexpected space(s) before '}'.`,unexpectedAfter:"Unexpected space(s) after '${'."}},create(t){let n=t.sourceCode,r=t.options[0]===`always`;function i(i){if(!i.value.startsWith(`}`))return;let a=n.getTokenBefore(i,{includeComments:!0}),o=n.isSpaceBetween(a,i);e.isTokenOnSameLine(a,i)&&(r&&!o&&t.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:`expectedBefore`,fix:e=>e.insertTextBefore(i,` `)}),!r&&o&&t.report({loc:{start:a.loc.end,end:i.loc.start},messageId:`unexpectedBefore`,fix:e=>e.removeRange([a.range[1],i.range[0]])}))}function a(i){if(!i.value.endsWith("${"))return;let a=n.getTokenAfter(i,{includeComments:!0}),o=n.isSpaceBetween(i,a);e.isTokenOnSameLine(i,a)&&(r&&!o&&t.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:`expectedAfter`,fix:e=>e.insertTextAfter(i,` `)}),!r&&o&&t.report({loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpectedAfter`,fix:e=>e.removeRange([i.range[1],a.range[0]])}))}return{TemplateElement(e){let t=n.getFirstToken(e);i(t),a(t)}}}},hw}var vw,yw;function bw(){return yw||(yw=1,vw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`template-tag-spacing`,url:`https://eslint.style/rules/template-tag-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing between template tags and their literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/template-tag-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{unexpected:`Unexpected space between template tag and template literal.`,missing:`Missing space between template tag and template literal.`}},create(e){let t=e.options[0]!==`always`,n=e.sourceCode;function r(r){let i=n.getTokenBefore(r.quasi),a=n.getFirstToken(r.quasi),o=n.isSpaceBetween(i,a);t&&o?e.report({node:r,loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpected`,fix(e){let t=n.getCommentsBefore(r.quasi);return t.some(e=>e.type===`Line`)?null:e.replaceTextRange([i.range[1],a.range[0]],t.reduce((e,t)=>e+n.getText(t),``))}}):!t&&!o&&e.report({node:r,loc:{start:r.loc.start,end:a.loc.start},messageId:`missing`,fix(e){return e.insertTextAfter(i,` `)}})}return{TaggedTemplateExpression:r}}}),vw}var xw,Sw;function Cw(){return Sw||(Sw=1,xw={meta:{type:`layout`,defaultOptions:[`never`],docs:{description:`Require or disallow Unicode byte order mark (BOM)`,recommended:!1,url:`https://eslint.org/docs/latest/rules/unicode-bom`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{expected:`Expected Unicode BOM (Byte Order Mark).`,unexpected:`Unexpected Unicode BOM (Byte Order Mark).`}},create(e){return{Program:function(t){let n=e.sourceCode,r={column:0,line:1},[i]=e.options;!n.hasBOM&&i===`always`?e.report({node:t,loc:r,messageId:`expected`,fix(e){return e.insertTextBeforeRange([0,1],``)}}):n.hasBOM&&i===`never`&&e.report({node:t,loc:r,messageId:`unexpected`,fix(e){return e.removeRange([-1,0])}})}}}}),xw}var ww,Tw;function Ew(){if(Tw)return ww;Tw=1;let e=$();function t(t,n){if(!t)return!1;let r=t.type===`SequenceExpression`?t.expressions.at(-1):t;if(e.isSpecificId(r,`NaN`))return n.isGlobalReference(r);if(e.isSpecificMemberAccess(r,`Number`,`NaN`)){let t=e.skipChainExpression(r).object;return n.isGlobalReference(t)}return!1}return ww={meta:{hasSuggestions:!0,type:`problem`,docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:`https://eslint.org/docs/latest/rules/use-isnan`},schema:[{type:`object`,properties:{enforceForSwitchCase:{type:`boolean`},enforceForIndexOf:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:`Use the isNaN function to compare with NaN.`,switchNaN:`'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.`,caseNaN:`'case NaN' can never match. Use Number.isNaN before the switch.`,indexOfNaN:`Array prototype method '{{ methodName }}' cannot find NaN.`,replaceWithIsNaN:`Replace with Number.isNaN.`,replaceWithCastingAndIsNaN:`Replace with Number.isNaN and cast to a Number.`,replaceWithFindIndex:`Replace with Array.prototype.{{ methodName }}.`}},create(n){let[{enforceForIndexOf:r,enforceForSwitchCase:i}]=n.options,a=n.sourceCode,o=/* @__PURE__ */ new Set([`==`,`===`,`!=`,`!==`]),s=/* @__PURE__ */ new Set([`==`,`!=`]);function c(e,n){return r=>{let i=t(e.left,a)?e.right:e.left,o=i.type===`SequenceExpression`,s=e.operator[0]===`!`?`!`:``,c=a.getText(i);o&&(c=`(${c})`);let l=n(c);return r.replaceText(e,`${s}${l}`)}}function l(e){if(/^(?:[<>]|[!=]=)=?$/u.test(e.operator)&&(t(e.left,a)||t(e.right,a))){let r=[],i=(t(e.left,a)?e.left:e.right).type===`SequenceExpression`,l=o.has(e.operator)&&!i,u=s.has(e.operator);l&&(r.push({messageId:`replaceWithIsNaN`,fix:c(e,e=>`Number.isNaN(${e})`)}),u&&r.push({messageId:`replaceWithCastingAndIsNaN`,fix:c(e,e=>`Number.isNaN(Number(${e}))`)})),n.report({node:e,messageId:`comparisonWithNaN`,suggest:r})}}function u(e){t(e.discriminant,a)&&n.report({node:e,messageId:`switchNaN`});for(let r of e.cases)t(r.test,a)&&n.report({node:r,messageId:`caseNaN`})}function d(r){let i=e.skipChainExpression(r.callee);if(i.type===`MemberExpression`){let o=e.getStaticPropertyName(i);if((o===`indexOf`||o===`lastIndexOf`)&&r.arguments.length<=2&&t(r.arguments[0],a)){let e=r.arguments[0].type!==`SequenceExpression`&&!r.arguments[1],t=[];if(e){let e=i.computed,n=o===`indexOf`?`findIndex`:`findLastIndex`,a=e?`"${n}"`:n;t.push({messageId:`replaceWithFindIndex`,data:{methodName:n},fix:e=>[e.replaceText(i.property,a),e.replaceText(r.arguments[0],`Number.isNaN`)]})}n.report({node:r,messageId:`indexOfNaN`,data:{methodName:o},suggest:t})}}}let f={BinaryExpression:l};return i&&(f.SwitchStatement=u),r&&(f.CallExpression=d),f}},ww}var Dw,Ow;function kw(){if(Ow)return Dw;Ow=1;let e=$();return Dw={meta:{type:`problem`,defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:`https://eslint.org/docs/latest/rules/valid-typeof`},hasSuggestions:!0,schema:[{type:`object`,properties:{requireStringLiterals:{type:`boolean`}},additionalProperties:!1}],messages:{invalidValue:`Invalid typeof comparison value.`,notString:`Typeof comparisons should be to string literals.`,suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(t){let n=/* @__PURE__ */ new Set([`symbol`,`undefined`,`object`,`boolean`,`number`,`string`,`function`,`bigint`]),r=/* @__PURE__ */ new Set([`==`,`===`,`!=`,`!==`]),i=t.sourceCode,[{requireStringLiterals:a}]=t.options,o;function s(e){let t=o.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function c(e){return e.type===`UnaryExpression`&&e.operator===`typeof`}return{Program(e){o=i.getScope(e)},UnaryExpression(i){if(c(i)){let{parent:o}=i;if(o.type===`BinaryExpression`&&r.has(o.operator)){let r=o.left===i?o.right:o.left;if(r.type===`Literal`||e.isStaticTemplateLiteral(r)){let e=r.type===`Literal`?r.value:r.quasis[0].value.cooked;n.has(e)||t.report({node:r,messageId:`invalidValue`})}else r.type===`Identifier`&&r.name===`undefined`&&s(r)?t.report({node:r,messageId:a?`notString`:`invalidValue`,suggest:[{messageId:`suggestString`,data:{type:`undefined`},fix(e){return e.replaceText(r,`"undefined"`)}}]}):a&&!c(r)&&t.report({node:r,messageId:`notString`})}}}}}},Dw}var Aw,jw;function Mw(){return jw||(jw=1,Aw={meta:{type:`suggestion`,docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/vars-on-top`},schema:[],messages:{top:`All 'var' declarations must be at the top of the function scope.`}},create(e){function t(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`}function n(e){return e.type===`ImportDeclaration`||e.type===`ImportSpecifier`||e.type===`ImportDefaultSpecifier`||e.type===`ImportNamespaceSpecifier`}function r(e){return e.type===`VariableDeclaration`||e.type===`ExportNamedDeclaration`&&e.declaration&&e.declaration.type===`VariableDeclaration`}function i(e,i){let a=i.length,o=0;if(e.parent.type!==`StaticBlock`)for(;o<a&&(t(i[o])||n(i[o]));++o);for(;o<a;++o){if(!r(i[o]))return!1;if(i[o]===e)return!0}return!1}function a(t,n){i(t,n.body)||e.report({node:t,messageId:`top`})}function o(t){let{parent:n}=t;n.type===`BlockStatement`&&/Function/u.test(n.parent.type)&&i(t,n.body)||n.type===`StaticBlock`&&i(t,n.body)||e.report({node:t,messageId:`top`})}return{"VariableDeclaration[kind='var']"(e){e.parent.type===`ExportNamedDeclaration`?a(e.parent,e.parent.parent):e.parent.type===`Program`?a(e,e.parent):o(e)}}}}),Aw}var Nw,Pw;function Fw(){if(Pw)return Nw;Pw=1;let e=$(),t=/*@__PURE__*/ tt();function n(e){let t=e.parent.type===`ChainExpression`?e.parent:e;return t.parent.type===`NewExpression`&&t.parent.callee===t}return Nw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`wrap-iife`,url:`https://eslint.style/rules/wrap-iife`}}]},type:`layout`,docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:`https://eslint.org/docs/latest/rules/wrap-iife`},schema:[{enum:[`outside`,`inside`,`any`]},{type:`object`,properties:{functionPrototypeMethods:{type:`boolean`,default:!1}},additionalProperties:!1}],fixable:`code`,messages:{wrapInvocation:`Wrap an immediate function invocation in parentheses.`,wrapExpression:`Wrap only the function expression in parens.`,moveInvocation:`Move the invocation into the parens that contain the function.`}},create(r){let i=r.options[0]||`outside`,a=r.options[1]&&r.options[1].functionPrototypeMethods,o=r.sourceCode;function s(t){return e.isParenthesised(o,t)}function c(e){return t.isParenthesized(1,e,o)}function l(t){let n=e.skipChainExpression(t.callee);return n.type===`FunctionExpression`?n:a&&n.type===`MemberExpression`&&n.object.type===`FunctionExpression`&&(e.getStaticPropertyName(n)===`call`||e.getStaticPropertyName(n)===`apply`)?n.object:null}return{CallExpression(e){let t=l(e);if(!t)return;let a=s(e),u=s(t);!a&&!u?r.report({node:e,messageId:`wrapInvocation`,fix(n){let r=i===`inside`?t:e;return n.replaceText(r,`(${o.getText(r)})`)}}):i===`inside`&&!u?r.report({node:e,messageId:`wrapExpression`,fix(r){if(c(e)&&!n(e)){let n=o.getTokenAfter(e);return r.replaceTextRange([t.range[1],n.range[1]],`)${o.getText().slice(t.range[1],n.range[0])}`)}return r.replaceText(t,`(${o.getText(t)})`)}}):i===`outside`&&!a&&r.report({node:e,messageId:`moveInvocation`,fix(n){let r=o.getTokenAfter(t);return n.replaceTextRange([r.range[0],e.range[1]],`${o.getText().slice(r.range[1],e.range[1])})`)}})}}}},Nw}var Iw,Lw;function Rw(){return Lw||(Lw=1,Iw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`wrap-regex`,url:`https://eslint.style/rules/wrap-regex`}}]},type:`layout`,docs:{description:`Require parenthesis around regex literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/wrap-regex`},schema:[],fixable:`code`,messages:{requireParens:`Wrap the regexp literal in parens to disambiguate the slash.`}},create(e){let t=e.sourceCode;return{Literal(n){if(t.getFirstToken(n).type===`RegularExpression`){let r=t.getTokenBefore(n),i=t.getTokenAfter(n),{parent:a}=n;a.type===`MemberExpression`&&a.object===n&&!(r&&r.value===`(`&&i&&i.value===`)`)&&e.report({node:n,messageId:`requireParens`,fix:e=>e.replaceText(n,`(${t.getText(n)})`)})}}}}}),Iw}var zw,Bw;function Vw(){return Bw||(Bw=1,zw={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`yield-star-spacing`,url:`https://eslint.style/rules/yield-star-spacing`}}]},type:`layout`,docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/yield-star-spacing`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`before`,`after`,`both`,`neither`]},{type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`}},additionalProperties:!1}]}],messages:{missingBefore:`Missing space before *.`,missingAfter:`Missing space after *.`,unexpectedBefore:`Unexpected space before *.`,unexpectedAfter:`Unexpected space after *.`}},create(e){let t=e.sourceCode,n=(function(e){return!e||typeof e==`string`?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[e||`after`]:e})(e.options[0]);function r(r,i,a){if(t.isSpaceBetween(i,a)!==n[r]){let t=i.value===`*`,o=n[r],s=t?i:a,c;c=o?r===`before`?`missingBefore`:`missingAfter`:r===`before`?`unexpectedBefore`:`unexpectedAfter`,e.report({node:s,messageId:c,fix(e){return o?t?e.insertTextAfter(s,` `):e.insertTextBefore(s,` `):e.removeRange([i.range[1],a.range[0]])}})}}function i(e){if(!e.delegate)return;let n=t.getFirstTokens(e,3),i=n[0],a=n[1],o=n[2];r(`before`,i,a),r(`after`,a,o)}return{YieldExpression:i}}}),zw}var Hw,Uw;function Ww(){if(Uw)return Hw;Uw=1;let e=$();function t(e){return/^(?:==|===|!=|!==|<|>|<=|>=)$/u.test(e)}function n(e){return/^(?:==|===)$/u.test(e)}function r(e){return[`<`,`<=`].includes(e)}function i(t){return t.type===`UnaryExpression`&&t.operator===`-`&&t.prefix&&e.isNumericLiteral(t.argument)}function a(t){return i(t)||e.isStaticTemplateLiteral(t)}function o(t){return t.type===`Literal`?t:i(t)?{type:`Literal`,value:-t.argument.value,raw:`-${t.argument.value}`}:e.isStaticTemplateLiteral(t)?{type:`Literal`,value:t.quasis[0].value.cooked,raw:t.quasis[0].value.raw}:null}function s(e,t,n){if(t.type===`Keyword`&&(t.value===`function`||t.value===`class`))return!0;let r=e.getTokenAfter(t);return(t.type===`Identifier`||t.type===`Keyword`)&&t.value===`async`&&!!r&&r.range[1]<=n.range[1]&&r.type===`Keyword`&&r.value===`function`}function c(e){return e.type===`Template`||e.type===`RegularExpression`||e.type===`Punctuator`&&[`(`,`[`,`+`,`-`].includes(e.value)}function l(e,t){return!!t&&t.type===`Punctuator`&&(t.value===`++`||t.value===`--`)&&(e.type===`RegularExpression`||e.type===`Punctuator`&&(e.value===`+`||e.value===`-`))}return Hw={meta:{type:`suggestion`,defaultOptions:[`never`,{exceptRange:!1,onlyEquality:!1}],docs:{description:`Require or disallow "Yoda" conditions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/yoda`},schema:[{enum:[`always`,`never`]},{type:`object`,properties:{exceptRange:{type:`boolean`},onlyEquality:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{expected:`Expected literal to be on the {{expectedSide}} side of {{operator}}.`}},create(i){let[u,{exceptRange:d,onlyEquality:f}]=i.options,p=u===`always`,m=i.sourceCode;function h(t){let n=t.left,i=t.right;function a(){if(t.operator===`&&`&&e.isSameReference(n.right,i.left)){let e=o(n.left),t=o(i.right);if(e===null&&t===null)return!1;if(t===null||e===null||e.value<=t.value)return!0}return!1}function s(){if(t.operator===`||`&&e.isSameReference(n.left,i.right)){let e=o(n.right),t=o(i.left);if(e===null&&t===null)return!1;if(t===null||e===null||e.value<=t.value)return!0}return!1}function c(){return e.isParenthesised(m,t)}return t.type===`LogicalExpression`&&n.type===`BinaryExpression`&&i.type===`BinaryExpression`&&r(n.operator)&&r(i.operator)&&(a()||s())&&c()}let g={"===":`===`,"!==":`!==`,"==":`==`,"!=":`!=`,"<":`>`,">":`<`,"<=":`>=`,">=":`<=`};function _(t){let n=m.getFirstTokenBetween(t.left,t.right,e=>e.value===t.operator),r=m.getTokenBefore(n),i=m.getTokenAfter(n),a=m.getText(),o=a.slice(t.range[0],r.range[1]),u=a.slice(r.range[1],n.range[0]),d=a.slice(n.range[1],i.range[0]),f=a.slice(i.range[0],t.range[1]),p=m.getTokenBefore(t),h=m.getTokenAfter(t),_=``,v=``;p&&p.range[1]===t.range[0]&&!e.canTokensBeAdjacent(p,i)&&(_=` `),h&&t.range[1]===h.range[0]&&!e.canTokensBeAdjacent(r,h)&&(v=` `);let y=f+u+g[n.value]+d+o,b=e.isStartOfExpressionStatement(t),x=(b||p&&e.isKeywordToken(p)&&p.value==="default")&&s(m,i,t)||(b||p&&e.isArrowToken(p))&&e.isOpeningBraceToken(i);return x&&(y=`(${y})`),!_&&b&&(x||c(i))&&(e.needsPrecedingSemicolon(m,t)||l(i,p))&&(_=`;`),_+y+v}return{BinaryExpression(e){let r=p?e.left:e.right,o=p?e.right:e.left;o.type!==`Literal`&&!a(o)||r.type===`Literal`||a(r)||!n(e.operator)&&f||!t(e.operator)||d&&h(e.parent)||i.report({node:e,messageId:`expected`,data:{operator:e.operator,expectedSide:p?`left`:`right`},fix:t=>t.replaceText(e,_(e))})}}}},Hw}var Gw,Kw;function qw(){if(Kw)return Gw;Kw=1;let{LazyLoadingRuleMap:e}=cs();return Gw=new e(Object.entries({"accessor-pairs":()=>Us(),"array-bracket-newline":()=>Ks(),"array-bracket-spacing":()=>Ys(),"array-callback-return":()=>tc(),"array-element-newline":()=>ic(),"arrow-body-style":()=>sc(),"arrow-parens":()=>uc(),"arrow-spacing":()=>pc(),"block-scoped-var":()=>gc(),"block-spacing":()=>yc(),"brace-style":()=>Sc(),"callback-return":()=>Tc(),camelcase:()=>Oc(),"capitalized-comments":()=>Pc(),"class-methods-use-this":()=>Lc(),"comma-dangle":()=>Bc(),"comma-spacing":()=>Uc(),"comma-style":()=>Kc(),complexity:()=>Qc(),"computed-property-spacing":()=>tl(),"consistent-return":()=>il(),"consistent-this":()=>sl(),"constructor-super":()=>ul(),curly:()=>pl(),"default-case":()=>gl(),"default-case-last":()=>yl(),"default-param-last":()=>Sl(),"dot-location":()=>Tl(),"dot-notation":()=>jl(),"eol-last":()=>Pl(),eqeqeq:()=>Ll(),"for-direction":()=>Bl(),"func-call-spacing":()=>Ul(),"func-name-matching":()=>Kl(),"func-names":()=>Yl(),"func-style":()=>Ql(),"function-call-argument-newline":()=>tu(),"function-paren-newline":()=>iu(),"generator-star-spacing":()=>su(),"getter-return":()=>uu(),"global-require":()=>pu(),"grouped-accessor-pairs":()=>gu(),"guard-for-in":()=>yu(),"handle-callback-err":()=>Su(),"id-blacklist":()=>Tu(),"id-denylist":()=>Ou(),"id-length":()=>ju(),"id-match":()=>Pu(),"implicit-arrow-linebreak":()=>Lu(),indent:()=>Bu(),"indent-legacy":()=>Uu(),"init-declarations":()=>Ku(),"jsx-quotes":()=>Yu(),"key-spacing":()=>Qu(),"keyword-spacing":()=>td(),"line-comment-position":()=>id(),"linebreak-style":()=>sd(),"lines-around-comment":()=>ud(),"lines-around-directive":()=>pd(),"lines-between-class-members":()=>gd(),"logical-assignment-operators":()=>yd(),"max-classes-per-file":()=>Sd(),"max-depth":()=>Td(),"max-len":()=>Od(),"max-lines":()=>jd(),"max-lines-per-function":()=>Pd(),"max-nested-callbacks":()=>Ld(),"max-params":()=>Bd(),"max-statements":()=>Ud(),"max-statements-per-line":()=>Kd(),"multiline-comment-style":()=>Yd(),"multiline-ternary":()=>Qd(),"new-cap":()=>tf(),"new-parens":()=>af(),"newline-after-var":()=>cf(),"newline-before-return":()=>df(),"newline-per-chained-call":()=>mf(),"no-alert":()=>_f(),"no-array-constructor":()=>bf(),"no-async-promise-executor":()=>Cf(),"no-await-in-loop":()=>Ef(),"no-bitwise":()=>kf(),"no-buffer-constructor":()=>Mf(),"no-caller":()=>Ff(),"no-case-declarations":()=>Rf(),"no-catch-shadow":()=>Vf(),"no-class-assign":()=>Wf(),"no-compare-neg-zero":()=>qf(),"no-cond-assign":()=>Xf(),"no-confusing-arrow":()=>$f(),"no-console":()=>np(),"no-const-assign":()=>ap(),"no-constant-binary-expression":()=>cp(),"no-constant-condition":()=>dp(),"no-constructor-return":()=>mp(),"no-continue":()=>_p(),"no-control-regex":()=>Cp(),"no-debugger":()=>Ep(),"no-delete-var":()=>kp(),"no-div-regex":()=>Mp(),"no-dupe-args":()=>Fp(),"no-dupe-class-members":()=>Rp(),"no-dupe-else-if":()=>Vp(),"no-dupe-keys":()=>Wp(),"no-duplicate-case":()=>qp(),"no-duplicate-imports":()=>Xp(),"no-else-return":()=>nm(),"no-empty":()=>am(),"no-empty-character-class":()=>cm(),"no-empty-function":()=>dm(),"no-empty-pattern":()=>mm(),"no-empty-static-block":()=>_m(),"no-eq-null":()=>bm(),"no-eval":()=>Cm(),"no-ex-assign":()=>Em(),"no-extend-native":()=>km(),"no-extra-bind":()=>Mm(),"no-extra-boolean-cast":()=>Fm(),"no-extra-label":()=>Rm(),"no-extra-parens":()=>Vm(),"no-extra-semi":()=>Wm(),"no-fallthrough":()=>qm(),"no-floating-decimal":()=>Xm(),"no-func-assign":()=>$m(),"no-global-assign":()=>nh(),"no-implicit-coercion":()=>ah(),"no-implicit-globals":()=>ch(),"no-implied-eval":()=>dh(),"no-import-assign":()=>mh(),"no-inline-comments":()=>_h(),"no-inner-declarations":()=>bh(),"no-invalid-regexp":()=>Ch(),"no-invalid-this":()=>Eh(),"no-irregular-whitespace":()=>kh(),"no-iterator":()=>Mh(),"no-label-var":()=>Fh(),"no-labels":()=>Rh(),"no-lone-blocks":()=>Vh(),"no-lonely-if":()=>Wh(),"no-loop-func":()=>qh(),"no-loss-of-precision":()=>Xh(),"no-magic-numbers":()=>$h(),"no-misleading-character-class":()=>Cg(),"no-mixed-operators":()=>Eg(),"no-mixed-requires":()=>kg(),"no-mixed-spaces-and-tabs":()=>Mg(),"no-multi-assign":()=>Fg(),"no-multi-spaces":()=>Rg(),"no-multi-str":()=>Vg(),"no-multiple-empty-lines":()=>Wg(),"no-native-reassign":()=>qg(),"no-negated-condition":()=>Xg(),"no-negated-in-lhs":()=>$g(),"no-nested-ternary":()=>n_(),"no-new":()=>a_(),"no-new-func":()=>c_(),"no-new-native-nonconstructor":()=>d_(),"no-new-object":()=>m_(),"no-new-require":()=>__(),"no-new-symbol":()=>b_(),"no-new-wrappers":()=>C_(),"no-nonoctal-decimal-escape":()=>E_(),"no-obj-calls":()=>k_(),"no-object-constructor":()=>M_(),"no-octal":()=>F_(),"no-octal-escape":()=>R_(),"no-param-reassign":()=>V_(),"no-path-concat":()=>W_(),"no-plusplus":()=>q_(),"no-process-env":()=>X_(),"no-process-exit":()=>$_(),"no-promise-executor-return":()=>nv(),"no-proto":()=>av(),"no-prototype-builtins":()=>cv(),"no-redeclare":()=>dv(),"no-regex-spaces":()=>mv(),"no-restricted-exports":()=>_v(),"no-restricted-globals":()=>bv(),"no-restricted-imports":()=>Ev(),"no-restricted-modules":()=>kv(),"no-restricted-properties":()=>Mv(),"no-restricted-syntax":()=>Fv(),"no-return-assign":()=>Rv(),"no-return-await":()=>Vv(),"no-script-url":()=>Wv(),"no-self-assign":()=>qv(),"no-self-compare":()=>Xv(),"no-sequences":()=>$v(),"no-setter-return":()=>ny(),"no-shadow":()=>ay(),"no-shadow-restricted-names":()=>cy(),"no-spaced-func":()=>dy(),"no-sparse-arrays":()=>my(),"no-sync":()=>_y(),"no-tabs":()=>by(),"no-template-curly-in-string":()=>Cy(),"no-ternary":()=>Ey(),"no-this-before-super":()=>ky(),"no-throw-literal":()=>My(),"no-trailing-spaces":()=>Fy(),"no-unassigned-vars":()=>Ry(),"no-undef":()=>Vy(),"no-undef-init":()=>Wy(),"no-undefined":()=>qy(),"no-underscore-dangle":()=>Xy(),"no-unexpected-multiline":()=>$y(),"no-unmodified-loop-condition":()=>nb(),"no-unneeded-ternary":()=>ab(),"no-unreachable":()=>cb(),"no-unreachable-loop":()=>db(),"no-unsafe-finally":()=>mb(),"no-unsafe-negation":()=>_b(),"no-unsafe-optional-chaining":()=>bb(),"no-unused-expressions":()=>Cb(),"no-unused-labels":()=>Eb(),"no-unused-private-class-members":()=>kb(),"no-unused-vars":()=>Mb(),"no-use-before-define":()=>Fb(),"no-useless-assignment":()=>Rb(),"no-useless-backreference":()=>Vb(),"no-useless-call":()=>Wb(),"no-useless-catch":()=>qb(),"no-useless-computed-key":()=>Xb(),"no-useless-concat":()=>$b(),"no-useless-constructor":()=>nx(),"no-useless-escape":()=>ax(),"no-useless-rename":()=>cx(),"no-useless-return":()=>dx(),"no-var":()=>mx(),"no-void":()=>_x(),"no-warning-comments":()=>bx(),"no-whitespace-before-property":()=>Cx(),"no-with":()=>Ex(),"nonblock-statement-body-position":()=>kx(),"object-curly-newline":()=>Mx(),"object-curly-spacing":()=>Fx(),"object-property-newline":()=>Rx(),"object-shorthand":()=>Vx(),"one-var":()=>Wx(),"one-var-declaration-per-line":()=>qx(),"operator-assignment":()=>Xx(),"operator-linebreak":()=>$x(),"padded-blocks":()=>nS(),"padding-line-between-statements":()=>aS(),"prefer-arrow-callback":()=>cS(),"prefer-const":()=>dS(),"prefer-destructuring":()=>mS(),"prefer-exponentiation-operator":()=>_S(),"prefer-named-capture-group":()=>bS(),"prefer-numeric-literals":()=>CS(),"prefer-object-has-own":()=>ES(),"prefer-object-spread":()=>kS(),"prefer-promise-reject-errors":()=>MS(),"prefer-reflect":()=>FS(),"prefer-regex-literals":()=>RS(),"prefer-rest-params":()=>VS(),"prefer-spread":()=>WS(),"prefer-template":()=>qS(),"preserve-caught-error":()=>XS(),"quote-props":()=>$S(),quotes:()=>nC(),radix:()=>aC(),"require-atomic-updates":()=>cC(),"require-await":()=>dC(),"require-unicode-regexp":()=>mC(),"require-yield":()=>_C(),"rest-spread-spacing":()=>bC(),semi:()=>CC(),"semi-spacing":()=>EC(),"semi-style":()=>kC(),"sort-imports":()=>MC(),"sort-keys":()=>RC(),"sort-vars":()=>VC(),"space-before-blocks":()=>WC(),"space-before-function-paren":()=>qC(),"space-in-parens":()=>XC(),"space-infix-ops":()=>$C(),"space-unary-ops":()=>nw(),"spaced-comment":()=>aw(),strict:()=>cw(),"switch-colon-spacing":()=>dw(),"symbol-description":()=>mw(),"template-curly-spacing":()=>_w(),"template-tag-spacing":()=>bw(),"unicode-bom":()=>Cw(),"use-isnan":()=>Ew(),"valid-typeof":()=>kw(),"vars-on-top":()=>Mw(),"wrap-iife":()=>Fw(),"wrap-regex":()=>Rw(),"yield-star-spacing":()=>Vw(),yoda:()=>Ww()})),Gw}var Jw,Yw;function Xw(){if(Yw)return Jw;Yw=1;let e=/* @__PURE__ */ new Set([!0,`true`,`writable`,`writeable`,!1,`false`,`readonly`,`readable`,null,`off`]);function t(e){return typeof e==`object`&&!!e}function n(e){return t(e)&&!Array.isArray(e)}function r(e){return e===void 0}function i(e){if(r(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 a(e){if(typeof e!=`string`||!/^(?:script|module|commonjs)$/u.test(e))throw TypeError(`Key "sourceType": Expected "script", "module", or "commonjs".`)}function o(t){if(!n(t))throw TypeError(`Key "globals": Expected an object.`);for(let n of Object.keys(t))if(n!==`__proto__`){if(n!==n.trim())throw TypeError(`Key "globals": Global "${n}" has leading or trailing whitespace.`);if(!e.has(t[n]))throw TypeError(`Key "globals": Key "${n}": Expected "readonly", "writable", or "off".`)}}function s(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 c(e){if(!n(e))throw TypeError(`Expected an object.`);let{ecmaVersion:t,sourceType:r,globals:c,parser:l,parserOptions:u,...d}=e;if(`ecmaVersion`in e&&i(t),`sourceType`in e&&a(r),`globals`in e&&o(c),`parser`in e&&s(l),`parserOptions`in e&&!n(u))throw TypeError(`Key "parserOptions": Expected an object.`);let f=Object.keys(d);if(f.length>0)throw TypeError(`Unexpected key "${f[0]}" found.`)}return Jw={validateLanguageOptions:c},Jw}var Zw,Qw;function $w(){if(Qw)return Zw;Qw=1;let{SourceCode:e}=ur(),t=Ke(),n=Gt(),r=/*@__PURE__*/ Is(),i=Ae(),a=/*@__PURE__*/ Ne(),{validateLanguageOptions:o}=Xw(),{LATEST_ECMA_VERSION:s}=zs(),c=t(`eslint:languages:js`),l=Symbol.for(`eslint.RuleTester.parser`);function u(e,t,n){let r=t.parserOptions.ecmaFeatures||{},o=t.ecmaVersion||5;return i.analyze(e,{ignoreEval:!0,nodejsScope:r.globalReturn,impliedStrict:r.impliedStrict,ecmaVersion:typeof o==`number`?o:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||a.KEYS,fallback:a.getKeys,jsx:r.jsx})}function d(e){return e===r||e[l]===r}function f(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 s}return Zw={fileType:`text`,lineStart:1,columnStart:0,nodeTypeKey:`type`,visitorKeys:a.KEYS,defaultLanguageOptions:{sourceType:`module`,ecmaVersion:`latest`,parser:r,parserOptions:{}},validateLanguageOptions:o,normalizeLanguageOptions(e){if(e.ecmaVersion=f(e.ecmaVersion),d(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:r,path:i}=e,o=r.replace(n.shebangPattern,(e,t)=>`//${t}`),{ecmaVersion:s,sourceType:l,parser:u}=t,d=Object.assign({ecmaVersion:s,sourceType:l},t.parserOptions,{loc:!0,range:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:i});try{c(`Parsing:`,i);let e=typeof u.parseForESLint==`function`?u.parseForESLint(o,d):{ast:u.parse(o,d)};c(`Parsing successful:`,i);let{ast:t,services:n={},visitorKeys:r=a.KEYS,scopeManager:s}=e;return{ok:!0,ast:t,parserServices:n,visitorKeys:r,scopeManager:s}}catch(e){let t=e.message.replace(/^line \d+:/iu,``).trim();return c(`%s
219
+ %s`,t,e.stack),{ok:!1,errors:[{message:t,line:e.lineNumber,column:e.column}]}}},createSourceCode(t,n,{languageOptions:r}){let{body:i,path:a,bom:o}=t,{ast:s,parserServices:l,visitorKeys:d}=n;c(`Scope analysis:`,a);let f=n.scopeManager||u(s,r,d);return c(`Scope analysis successful:`,a),new e({text:i,ast:s,hasBOM:o,parserServices:l,scopeManager:f,visitorKeys:d})}},Zw}var eT;function tT(){if(eT)return as;eT=1;let e=qw(),t=[{files:[`**/*.js`,`**/*.mjs`]},{files:[`**/*.cjs`],languageOptions:{sourceType:`commonjs`,ecmaVersion:`latest`}}];return as.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:$w()},rules:new Proxy({},{get(t,n){return e.get(n)},has(t,n){return e.has(n)}})}},language:`@/js`,linterOptions:{reportUnusedDisableDirectives:1}},{ignores:[`**/node_modules/`,`.git/`]},...t]),as.defaultRuleTesterConfig=Object.freeze([{files:[`**`]},...t]),as}var nT;function rT(){if(nT)return is;nT=1;let{ConfigArray:e,ConfigArraySymbol:t}=si(),{flatConfigSchema:n}=Sr(),{defaultConfig:r}=tT(),{Config:i}=Ho(),a=/* @__PURE__ */ new Set([`name`,`basePath`]);function o(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 s=Symbol(`originalBaseConfig`),c=Symbol(`originalLength`),l=Symbol(`baseLength`);class u extends e{constructor(e,{basePath:t,shouldIgnore:i=!0,baseConfig:a=r}={}){super(e,{basePath:t,schema:n}),this[c]=this.length,a[Symbol.iterator]?this.unshift(...a):this.unshift(a),this[l]=this.length-this[c],this[s]=a,Object.defineProperty(this,s,{writable:!1}),this.shouldIgnore=i,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(e){return super.normalize(e).catch(e=>{throw e.name===`ConfigError`?o(e,this[c],this[l]):e})}normalizeSync(e){try{return super.normalizeSync(e)}catch(e){throw e.name===`ConfigError`?o(e,this[c],this[l]):e}}[t.preprocessConfig](e){if(!this.shouldIgnore&&!this[s].includes(e)&&e.ignores&&Object.keys(e).filter(e=>!a.has(e)).length===1){let{ignores:t,...n}=e;return n}return e}[t.finalizeConfig](e){return new i(e)}}return is.FlatConfigArray=u,is}var iT,aT;function oT(){if(aT)return iT;aT=1;let e=/* @__PURE__ */ new Map([[`test_only`,`Used only for testing.`],[`test_only_2`,`Used only for testing.`],[`unstable_native_nodejs_ts_config`,`Use native Node.js to load TypeScript configuration.`]]),t=/* @__PURE__ */ new Map([[`test_only_replaced`,{description:`Used only for testing flags that have been replaced by other flags.`,replacedBy:`test_only`}],[`test_only_enabled_by_default`,{description:`Used only for testing flags whose features have been enabled by default.`,replacedBy:null}],[`test_only_abandoned`,{description:`Used only for testing flags whose features have been abandoned.`}]]);function n({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.`}return iT={activeFlags:e,inactiveFlags:t,getInactivityReasonMessage:n},iT}var sT,cT;function lT(){if(cT)return sT;cT=1;function e(e){return typeof e==`string`?e.charCodeAt(0)===65279:e[0]===239&&e[1]===187&&e[2]===191}function t(t){return e(t)?typeof t==`string`?t.slice(1):t.slice(3):t}class n{path;physicalPath;body;rawBody;bom;constructor(n,r,{physicalPath:i}={}){this.path=n,this.physicalPath=i??n,this.bom=e(r),this.body=t(r),this.rawBody=r}}return sT={VFile:n},sT}var uT,dT;function fT(){if(dT)return uT;dT=1;class e{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,fatal:!0,severity:2,message:`Parsing error: ${e.message}`,line:e.line,column:e.column}))}}}return uT={ParserService:e},uT}var pT={},mT;function hT(){if(mT)return pT;mT=1;class e{cwd;filename;physicalFilename;sourceCode;languageOptions;settings;constructor({cwd:e,filename:t,physicalFilename:n,sourceCode:r,languageOptions:i,settings:a}){this.cwd=e,this.filename=t,this.physicalFilename=n,this.sourceCode=r,this.languageOptions=i,this.settings=a,Object.freeze(this)}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}}return pT.FileContext=e,pT}var gT,_T;function vT(){if(_T)return gT;_T=1;let e=Ce,{VFile:t}=lT();class n{preprocessSync(n,r){let{processor:i}=r,a;try{a=i.preprocess(n.rawBody,n.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}]}}if(typeof a.then==`function`)throw Error(`Unsupported: Preprocessor returned a promise.`);return{ok:!0,files:a.map((r,i)=>{if(typeof r==`string`)return r;let a=e.join(n.path,`${i}_${r.filename}`);return new t(a,r.text,{physicalPath:n.physicalPath})})}}postprocessSync(e,t,n){let{processor:r}=n;return r.postprocess(t,e.path)}}return gT={ProcessorService:n},gT}var yT,bT;function xT(){if(bT)return yT;bT=1;function e(t,n){if(t===n)return!1;if(typeof t!=typeof n||Array.isArray(t)!==Array.isArray(n))return!0;if(Array.isArray(t))return t.length!==n.length||t.some((t,r)=>e(t,n[r]));if(typeof t==`object`){if(t===null||n===null)return!0;let r=Object.keys(t),i=Object.keys(n);return r.length!==i.length||r.some(r=>!Object.hasOwn(n,r)||e(t[r],n[r]))}return!0}return yT={containsDifferentProperty:e},yT}var ST,CT;function wT(){if(CT)return ST;CT=1;class e{constructor({emitWarning:e=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=e}emitCircularFixesWarning(e){this.emitWarning(`Circular fixes detected while fixing ${e}. It is likely that you have conflicting rules in your configuration. For more information, visit https://eslint.org/docs/latest/use/troubleshooting/circular-fixes`,`ESLintCircularFixesWarning`)}emitEmptyConfigWarning(e){this.emitWarning(`Running ESLint with an empty config (from ${e}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,`ESLintEmptyConfigWarning`)}emitESLintIgnoreWarning(){this.emitWarning(`The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignore-files`,`ESLintIgnoreWarning`)}emitInactiveFlagWarning(e,t){this.emitWarning(t,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,`ESLintPoorConcurrencyWarning`)}}return ST={WarningService:e},ST}function TT(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 ET(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)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)||kT(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function DT(e){return function(e){if(Array.isArray(e))return TT(e)}(e)||function(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}(e)||kT(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function OT(e){return(OT=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 kT(e,t){if(e){if(typeof e==`string`)return TT(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TT(e,t):void 0}}function AT(e,t){return e(t={exports:{}},t.exports),t.exports}var jT=AT((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=function(e,t){for(var n,r=e.length,i=0,a;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]}));return 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(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=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},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)})),MT=AT((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:we},l=we,u=q(` `,!1),d=/^[^ [\],():#!=><~+.]/,f=Se([` `,`[`,`]`,`,`,`(`,`)`,`:`,`#`,`!`,`=`,`>`,`<`,`~`,`+`,`.`],!0,!1),p=q(`>`,!1),m=q(`~`,!1),h=q(`+`,!1),g=q(`,`,!1),_=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=q(`!`,!1),y=q(`*`,!1),b=q(`#`,!1),x=q(`[`,!1),S=q(`]`,!1),C=/^[><!]/,w=Se([`>`,`<`,`!`],!1,!1),T=q(`=`,!1),E=function(e){return(e||``)+`=`},D=/^[><]/,O=Se([`>`,`<`],!1,!1),k=q(`.`,!1),A=function(e,t,n){return{type:`attribute`,name:e,operator:t,value:n}},j=q(`"`,!1),M=/^[^\\"]/,N=Se([`\\`,`"`],!0,!1),P=q(`\\`,!1),F={type:`any`},I=function(e,t){return e+t},ee=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`
222
+ `;case`r`:return`\r`;case`t`:return` `;case`v`:return`\v`;default:return t}})))};var t},L=q(`'`,!1),R=/^[^\\']/,te=Se([`\\`,`'`],!0,!1),z=/^[0-9]/,ne=Se([[`0`,`9`]],!1,!1),re=q(`type(`,!1),B=/^[^ )]/,V=Se([` `,`)`],!0,!1),ie=q(`)`,!1),ae=/^[imsu]/,oe=Se([`i`,`m`,`s`,`u`],!1,!1),H=q(`/`,!1),se=/^[^\]\\]/,ce=Se([`]`,`\\`],!0,!1),le=/^[^\/\\[]/,ue=Se([`/`,`\\`,`[`],!0,!1),de=q(`:not(`,!1),U=q(`:matches(`,!1),fe=function(e){return{type:`matches`,selectors:e}},pe=q(`:is(`,!1),me=q(`:has(`,!1),he=q(`:first-child`,!1),ge=q(`:last-child`,!1),_e=q(`:nth-child(`,!1),ve=q(`:nth-last-child(`,!1),ye=q(`:`,!1),W=0,be=[{line:1,column:1}],xe=0,G=[],K={};if(`startRule`in n){if(!(n.startRule in c))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);l=c[n.startRule]}function q(e,t){return{type:`literal`,text:e,ignoreCase:t}}function Se(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function J(e){var n,r=be[e];if(r)return r;for(n=e-1;!be[n];)n--;for(r={line:(r=be[n]).line,column:r.column};n<e;)t.charCodeAt(n)===10?(r.line++,r.column=1):r.column++,n++;return be[e]=r,r}function Ce(e,t){var n=J(e),r=J(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Y(e){W<xe||(W>xe&&(xe=W,G=[]),G.push(e))}function we(){var e,t,n,r,i=36*W+0,a=K[i];return a?(W=a.nextPos,a.result):(e=W,(t=X())!==s&&(n=De())!==s&&X()!==s?e=t=(r=n).length===1?r[0]:{type:`matches`,selectors:r}:(W=e,e=s),e===s&&(e=W,(t=X())!==s&&(t=void 0),e=t),K[i]={nextPos:W,result:e},e)}function X(){var e,n,r=36*W+1,i=K[r];if(i)return W=i.nextPos,i.result;for(e=[],t.charCodeAt(W)===32?(n=` `,W++):(n=s,Y(u));n!==s;)e.push(n),t.charCodeAt(W)===32?(n=` `,W++):(n=s,Y(u));return K[r]={nextPos:W,result:e},e}function Te(){var e,n,r,i=36*W+2,a=K[i];if(a)return W=a.nextPos,a.result;if(n=[],d.test(t.charAt(W))?(r=t.charAt(W),W++):(r=s,Y(f)),r!==s)for(;r!==s;)n.push(r),d.test(t.charAt(W))?(r=t.charAt(W),W++):(r=s,Y(f));else n=s;return n!==s&&(n=n.join(``)),e=n,K[i]={nextPos:W,result:e},e}function Ee(){var e,n,r,i=36*W+3,a=K[i];return a?(W=a.nextPos,a.result):(e=W,(n=X())===s?(W=e,e=s):(t.charCodeAt(W)===62?(r=`>`,W++):(r=s,Y(p)),r!==s&&X()!==s?e=n=`child`:(W=e,e=s)),e===s&&(e=W,(n=X())===s?(W=e,e=s):(t.charCodeAt(W)===126?(r=`~`,W++):(r=s,Y(m)),r!==s&&X()!==s?e=n=`sibling`:(W=e,e=s)),e===s&&(e=W,(n=X())===s?(W=e,e=s):(t.charCodeAt(W)===43?(r=`+`,W++):(r=s,Y(h)),r!==s&&X()!==s?e=n=`adjacent`:(W=e,e=s)),e===s&&(e=W,t.charCodeAt(W)===32?(n=` `,W++):(n=s,Y(u)),n!==s&&(r=X())!==s?e=n=`descendant`:(W=e,e=s)))),K[i]={nextPos:W,result:e},e)}function De(){var e,n,r,i,a,o,c,l,u=36*W+5,d=K[u];if(d)return W=d.nextPos,d.result;if(e=W,(n=Z())!==s){for(r=[],i=W,(a=X())===s?(W=i,i=s):(t.charCodeAt(W)===44?(o=`,`,W++):(o=s,Y(g)),o!==s&&(c=X())!==s&&(l=Z())!==s?i=a=[a,o,c,l]:(W=i,i=s));i!==s;)r.push(i),i=W,(a=X())===s?(W=i,i=s):(t.charCodeAt(W)===44?(o=`,`,W++):(o=s,Y(g)),o!==s&&(c=X())!==s&&(l=Z())!==s?i=a=[a,o,c,l]:(W=i,i=s));r===s?(W=e,e=s):e=n=_(n,r)}else W=e,e=s;return K[u]={nextPos:W,result:e},e}function Oe(){var e,t,n,r,i,a=36*W+6,o=K[a];return o?(W=o.nextPos,o.result):(e=W,(t=Ee())===s&&(t=null),t!==s&&(n=Z())!==s?(i=n,e=t=(r=t)?{type:r,left:{type:`exactNode`},right:i}:i):(W=e,e=s),K[a]={nextPos:W,result:e},e)}function Z(){var e,t,n,r,i,a,o,c=36*W+7,l=K[c];if(l)return W=l.nextPos,l.result;if(e=W,(t=ke())!==s){for(n=[],r=W,(i=Ee())!==s&&(a=ke())!==s?r=i=[i,a]:(W=r,r=s);r!==s;)n.push(r),r=W,(i=Ee())!==s&&(a=ke())!==s?r=i=[i,a]:(W=r,r=s);n===s?(W=e,e=s):(o=t,e=t=n.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o))}else W=e,e=s;return K[c]={nextPos:W,result:e},e}function ke(){var e,n,r,i,a,o,c,l=36*W+8,u=K[l];if(u)return W=u.nextPos,u.result;if(e=W,t.charCodeAt(W)===33?(n=`!`,W++):(n=s,Y(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?(W=e,e=s):(a=n,c=(o=r).length===1?o[0]:{type:`compound`,selectors:o},a&&(c.subject=!0),e=n=c)}else W=e,e=s;return K[l]={nextPos:W,result:e},e}function Ae(){var e,n=36*W+9,r=K[n];return r?(W=r.nextPos,r.result):((e=function(){var e,n,r=36*W+10,i=K[r];return i?(W=i.nextPos,i.result):(t.charCodeAt(W)===42?(n=`*`,W++):(n=s,Y(y)),n!==s&&(n={type:`wildcard`,value:n}),e=n,K[r]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i=36*W+11,a=K[i];return a?(W=a.nextPos,a.result):(e=W,t.charCodeAt(W)===35?(n=`#`,W++):(n=s,Y(b)),n===s&&(n=null),n!==s&&(r=Te())!==s?e=n={type:`identifier`,value:r}:(W=e,e=s),K[i]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*W+12,o=K[a];return o?(W=o.nextPos,o.result):(e=W,t.charCodeAt(W)===91?(n=`[`,W++):(n=s,Y(x)),n!==s&&X()!==s&&(r=function(){var e,n,r,i,a=36*W+16,o=K[a];return o?(W=o.nextPos,o.result):(e=W,(n=je())!==s&&X()!==s&&(r=function(){var e,n,r,i=36*W+14,a=K[i];return a?(W=a.nextPos,a.result):(e=W,t.charCodeAt(W)===33?(n=`!`,W++):(n=s,Y(v)),n===s&&(n=null),n===s?(W=e,e=s):(t.charCodeAt(W)===61?(r=`=`,W++):(r=s,Y(T)),r===s?(W=e,e=s):(n=E(n),e=n)),K[i]={nextPos:W,result:e},e)}())!==s&&X()!==s?((i=function(){var e,n,r,i,a,o=36*W+20,c=K[o];if(c)return W=c.nextPos,c.result;if(e=W,t.substr(W,5)===`type(`?(n=`type(`,W+=5):(n=s,Y(re)),n!==s){if(X()!==s){if(r=[],B.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(V)),i!==s)for(;i!==s;)r.push(i),B.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(V));else r=s;r!==s&&(i=X())!==s?(t.charCodeAt(W)===41?(a=`)`,W++):(a=s,Y(ie)),a===s?(W=e,e=s):(n={type:`type`,value:r.join(``)},e=n)):(W=e,e=s)}else W=e,e=s}else W=e,e=s;return K[o]={nextPos:W,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c=36*W+22,l=K[c];if(l)return W=l.nextPos,l.result;if(e=W,t.charCodeAt(W)===47?(n=`/`,W++):(n=s,Y(H)),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?(W=e,e=s):(t.charCodeAt(W)===47?(i=`/`,W++):(i=s,Y(H)),i===s?(W=e,e=s):((a=function(){var e,n,r=36*W+21,i=K[r];if(i)return W=i.nextPos,i.result;if(e=[],ae.test(t.charAt(W))?(n=t.charAt(W),W++):(n=s,Y(oe)),n!==s)for(;n!==s;)e.push(n),ae.test(t.charAt(W))?(n=t.charAt(W),W++):(n=s,Y(oe));else e=s;return K[r]={nextPos:W,result:e},e}())===s&&(a=null),a===s?(W=e,e=s):(o=a,n={type:`regexp`,value:new RegExp(r.join(``),o?o.join(``):``)},e=n)))}else W=e,e=s;return K[c]={nextPos:W,result:e},e}()),i===s?(W=e,e=s):(n=A(n,r,i),e=n)):(W=e,e=s),e===s&&(e=W,(n=je())!==s&&X()!==s&&(r=function(){var e,n,r,i=36*W+13,a=K[i];return a?(W=a.nextPos,a.result):(e=W,C.test(t.charAt(W))?(n=t.charAt(W),W++):(n=s,Y(w)),n===s&&(n=null),n===s?(W=e,e=s):(t.charCodeAt(W)===61?(r=`=`,W++):(r=s,Y(T)),r===s?(W=e,e=s):(n=E(n),e=n)),e===s&&(D.test(t.charAt(W))?(e=t.charAt(W),W++):(e=s,Y(O))),K[i]={nextPos:W,result:e},e)}())!==s&&X()!==s?((i=function(){var e,n,r,i,a,o,c=36*W+17,l=K[c];if(l)return W=l.nextPos,l.result;if(e=W,t.charCodeAt(W)===34?(n=`"`,W++):(n=s,Y(j)),n!==s){for(r=[],M.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(N)),i===s&&(i=W,t.charCodeAt(W)===92?(a=`\\`,W++):(a=s,Y(P)),a===s?(W=i,i=s):(t.length>W?(o=t.charAt(W),W++):(o=s,Y(F)),o===s?(W=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),M.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(N)),i===s&&(i=W,t.charCodeAt(W)===92?(a=`\\`,W++):(a=s,Y(P)),a===s?(W=i,i=s):(t.length>W?(o=t.charAt(W),W++):(o=s,Y(F)),o===s?(W=i,i=s):(a=I(a,o),i=a)));r===s?(W=e,e=s):(t.charCodeAt(W)===34?(i=`"`,W++):(i=s,Y(j)),i===s?(W=e,e=s):(n=ee(r),e=n))}else W=e,e=s;if(e===s){if(e=W,t.charCodeAt(W)===39?(n=`'`,W++):(n=s,Y(L)),n!==s){for(r=[],R.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(te)),i===s&&(i=W,t.charCodeAt(W)===92?(a=`\\`,W++):(a=s,Y(P)),a===s?(W=i,i=s):(t.length>W?(o=t.charAt(W),W++):(o=s,Y(F)),o===s?(W=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),R.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(te)),i===s&&(i=W,t.charCodeAt(W)===92?(a=`\\`,W++):(a=s,Y(P)),a===s?(W=i,i=s):(t.length>W?(o=t.charAt(W),W++):(o=s,Y(F)),o===s?(W=i,i=s):(a=I(a,o),i=a)));r===s?(W=e,e=s):(t.charCodeAt(W)===39?(i=`'`,W++):(i=s,Y(L)),i===s?(W=e,e=s):(n=ee(r),e=n))}else W=e,e=s}return K[c]={nextPos:W,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c,l=36*W+18,u=K[l];if(u)return W=u.nextPos,u.result;for(e=W,n=W,r=[],z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne));i!==s;)r.push(i),z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne));if(r===s?(W=n,n=s):(t.charCodeAt(W)===46?(i=`.`,W++):(i=s,Y(k)),i===s?(W=n,n=s):n=r=[r,i]),n===s&&(n=null),n!==s){if(r=[],z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne)),i!==s)for(;i!==s;)r.push(i),z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne));else r=s;r===s?(W=e,e=s):(o=r,c=(a=n)?[].concat.apply([],a).join(``):``,n={type:`literal`,value:parseFloat(c+o.join(``))},e=n)}else W=e,e=s;return K[l]={nextPos:W,result:e},e}())===s&&(i=function(){var e,t,n=36*W+19,r=K[n];return r?(W=r.nextPos,r.result):((t=Te())!==s&&(t={type:`literal`,value:t}),e=t,K[n]={nextPos:W,result:e},e)}()),i===s?(W=e,e=s):(n=A(n,r,i),e=n)):(W=e,e=s),e===s&&(e=W,(n=je())!==s&&(n={type:`attribute`,name:n}),e=n)),K[a]={nextPos:W,result:e},e)}())!==s&&X()!==s?(t.charCodeAt(W)===93?(i=`]`,W++):(i=s,Y(S)),i===s?(W=e,e=s):e=n=r):(W=e,e=s),K[a]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o,c,l,u=36*W+26,d=K[u];if(d)return W=d.nextPos,d.result;if(e=W,t.charCodeAt(W)===46?(n=`.`,W++):(n=s,Y(k)),n!==s){if((r=Te())!==s){for(i=[],a=W,t.charCodeAt(W)===46?(o=`.`,W++):(o=s,Y(k)),o!==s&&(c=Te())!==s?a=o=[o,c]:(W=a,a=s);a!==s;)i.push(a),a=W,t.charCodeAt(W)===46?(o=`.`,W++):(o=s,Y(k)),o!==s&&(c=Te())!==s?a=o=[o,c]:(W=a,a=s);i===s?(W=e,e=s):(l=r,n={type:`field`,name:i.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=n)}else W=e,e=s}else W=e,e=s;return K[u]={nextPos:W,result:e},e}())===s&&(e=function(){var e,n,r,i,a=36*W+27,o=K[a];return o?(W=o.nextPos,o.result):(e=W,t.substr(W,5)===`:not(`?(n=`:not(`,W+=5):(n=s,Y(de)),n!==s&&X()!==s&&(r=De())!==s&&X()!==s?(t.charCodeAt(W)===41?(i=`)`,W++):(i=s,Y(ie)),i===s?(W=e,e=s):e=n={type:`not`,selectors:r}):(W=e,e=s),K[a]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*W+28,o=K[a];return o?(W=o.nextPos,o.result):(e=W,t.substr(W,9)===`:matches(`?(n=`:matches(`,W+=9):(n=s,Y(U)),n!==s&&X()!==s&&(r=De())!==s&&X()!==s?(t.charCodeAt(W)===41?(i=`)`,W++):(i=s,Y(ie)),i===s?(W=e,e=s):(n=fe(r),e=n)):(W=e,e=s),K[a]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*W+29,o=K[a];return o?(W=o.nextPos,o.result):(e=W,t.substr(W,4)===`:is(`?(n=`:is(`,W+=4):(n=s,Y(pe)),n!==s&&X()!==s&&(r=De())!==s&&X()!==s?(t.charCodeAt(W)===41?(i=`)`,W++):(i=s,Y(ie)),i===s?(W=e,e=s):(n=fe(r),e=n)):(W=e,e=s),K[a]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*W+30,o=K[a];return o?(W=o.nextPos,o.result):(e=W,t.substr(W,5)===`:has(`?(n=`:has(`,W+=5):(n=s,Y(me)),n!==s&&X()!==s&&(r=function(){var e,n,r,i,a,o,c,l,u=36*W+4,d=K[u];if(d)return W=d.nextPos,d.result;if(e=W,(n=Oe())!==s){for(r=[],i=W,(a=X())===s?(W=i,i=s):(t.charCodeAt(W)===44?(o=`,`,W++):(o=s,Y(g)),o!==s&&(c=X())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(W=i,i=s));i!==s;)r.push(i),i=W,(a=X())===s?(W=i,i=s):(t.charCodeAt(W)===44?(o=`,`,W++):(o=s,Y(g)),o!==s&&(c=X())!==s&&(l=Oe())!==s?i=a=[a,o,c,l]:(W=i,i=s));r===s?(W=e,e=s):e=n=_(n,r)}else W=e,e=s;return K[u]={nextPos:W,result:e},e}())!==s&&X()!==s?(t.charCodeAt(W)===41?(i=`)`,W++):(i=s,Y(ie)),i===s?(W=e,e=s):e=n={type:`has`,selectors:r}):(W=e,e=s),K[a]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r=36*W+31,i=K[r];return i?(W=i.nextPos,i.result):(t.substr(W,12)===`:first-child`?(n=`:first-child`,W+=12):(n=s,Y(he)),n!==s&&(n=Fe(1)),e=n,K[r]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r=36*W+32,i=K[r];return i?(W=i.nextPos,i.result):(t.substr(W,11)===`:last-child`?(n=`:last-child`,W+=11):(n=s,Y(ge)),n!==s&&(n=Ie(1)),e=n,K[r]={nextPos:W,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o=36*W+33,c=K[o];if(c)return W=c.nextPos,c.result;if(e=W,t.substr(W,11)===`:nth-child(`?(n=`:nth-child(`,W+=11):(n=s,Y(_e)),n!==s){if(X()!==s){if(r=[],z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne)),i!==s)for(;i!==s;)r.push(i),z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne));else r=s;r!==s&&(i=X())!==s?(t.charCodeAt(W)===41?(a=`)`,W++):(a=s,Y(ie)),a===s?(W=e,e=s):(n=Fe(parseInt(r.join(``),10)),e=n)):(W=e,e=s)}else W=e,e=s}else W=e,e=s;return K[o]={nextPos:W,result:e},e}())===s&&(e=function(){var e,n,r,i,a,o=36*W+34,c=K[o];if(c)return W=c.nextPos,c.result;if(e=W,t.substr(W,16)===`:nth-last-child(`?(n=`:nth-last-child(`,W+=16):(n=s,Y(ve)),n!==s){if(X()!==s){if(r=[],z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne)),i!==s)for(;i!==s;)r.push(i),z.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ne));else r=s;r!==s&&(i=X())!==s?(t.charCodeAt(W)===41?(a=`)`,W++):(a=s,Y(ie)),a===s?(W=e,e=s):(n=Ie(parseInt(r.join(``),10)),e=n)):(W=e,e=s)}else W=e,e=s}else W=e,e=s;return K[o]={nextPos:W,result:e},e}())===s&&(e=function(){var e,n,r,i=36*W+35,a=K[i];return a?(W=a.nextPos,a.result):(e=W,t.charCodeAt(W)===58?(n=`:`,W++):(n=s,Y(ye)),n!==s&&(r=Te())!==s?e=n={type:`class`,name:r}:(W=e,e=s),K[i]={nextPos:W,result:e},e)}()),K[n]={nextPos:W,result:e},e)}function je(){var e,n,r,i,a,o,c,l,u=36*W+15,d=K[u];if(d)return W=d.nextPos,d.result;if(e=W,(n=Te())!==s){for(r=[],i=W,t.charCodeAt(W)===46?(a=`.`,W++):(a=s,Y(k)),a!==s&&(o=Te())!==s?i=a=[a,o]:(W=i,i=s);i!==s;)r.push(i),i=W,t.charCodeAt(W)===46?(a=`.`,W++):(a=s,Y(k)),a!==s&&(o=Te())!==s?i=a=[a,o]:(W=i,i=s);r===s?(W=e,e=s):(c=n,l=r,e=n=[].concat.apply([c],l).join(``))}else W=e,e=s;return K[u]={nextPos:W,result:e},e}function Me(){var e,n,r,i,a=36*W+23,o=K[a];if(o)return W=o.nextPos,o.result;if(e=W,t.charCodeAt(W)===91?(n=`[`,W++):(n=s,Y(x)),n!==s){if(r=[],se.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ce)),i===s&&(i=Ne()),i!==s)for(;i!==s;)r.push(i),se.test(t.charAt(W))?(i=t.charAt(W),W++):(i=s,Y(ce)),i===s&&(i=Ne());else r=s;r===s?(W=e,e=s):(t.charCodeAt(W)===93?(i=`]`,W++):(i=s,Y(S)),i===s?(W=e,e=s):e=n=`[`+r.join(``)+`]`)}else W=e,e=s;return K[a]={nextPos:W,result:e},e}function Ne(){var e,n,r,i=36*W+24,a=K[i];return a?(W=a.nextPos,a.result):(e=W,t.charCodeAt(W)===92?(n=`\\`,W++):(n=s,Y(P)),n===s?(W=e,e=s):(t.length>W?(r=t.charAt(W),W++):(r=s,Y(F)),r===s?(W=e,e=s):e=n=`\\`+r),K[i]={nextPos:W,result:e},e)}function Pe(){var e,n,r,i=36*W+25,a=K[i];if(a)return W=a.nextPos,a.result;if(n=[],le.test(t.charAt(W))?(r=t.charAt(W),W++):(r=s,Y(ue)),r!==s)for(;r!==s;)n.push(r),le.test(t.charAt(W))?(r=t.charAt(W),W++):(r=s,Y(ue));else n=s;return n!==s&&(n=n.join(``)),e=n,K[i]={nextPos:W,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&&W===t.length)return r;throw r!==s&&W<t.length&&Y({type:`end`}),i=G,a=xe<t.length?t.charAt(xe):null,o=xe<t.length?Ce(xe,xe+1):Ce(xe,xe),new e(e.buildMessage(i,a),i,a,o)}}}()}));function NT(e,t){for(var n=0;n<t.length;++n){if(e==null)return e;e=e[t[n]]}return e}var PT=typeof WeakMap==`function`?/* @__PURE__ */ new WeakMap:null;function FT(e){if(e==null)return function(){return!0};if(PT!=null){var t=PT.get(e);return t??(t=IT(e),PT.set(e,t)),t}return IT(e)}function IT(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 r=e.selectors.map(FT);return function(e,t,n){for(var i=0;i<r.length;++i)if(r[i](e,t,n))return!0;return!1};case`compound`:var i=e.selectors.map(FT);return function(e,t,n){for(var r=0;r<i.length;++r)if(!i[r](e,t,n))return!1;return!0};case`not`:var a=e.selectors.map(FT);return function(e,t,n){for(var r=0;r<a.length;++r)if(a[r](e,t,n))return!1;return!0};case`has`:var o=e.selectors.map(FT);return function(e,t,n){var r=!1,i=[];return jT.traverse(e,{enter:function(e,t){t!=null&&i.unshift(t);for(var a=0;a<o.length;++a)if(o[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 s=FT(e.left),c=FT(e.right);return function(e,t,n){return!!(t.length>0&&c(e,t,n))&&s(t[0],t.slice(1),n)};case`descendant`:var l=FT(e.left),u=FT(e.right);return function(e,t,n){if(u(e,t,n)){for(var r=0,i=t.length;r<i;++r)if(l(t[r],t.slice(r+1),n))return!0}return!1};case`attribute`:var d=e.name.split(`.`);switch(e.operator){case void 0:return function(e){return NT(e,d)!=null};case`=`:switch(e.value.type){case`regexp`:return function(t){var n=NT(t,d);return typeof n==`string`&&e.value.value.test(n)};case`literal`:var f=`${e.value.value}`;return function(e){return f===`${NT(e,d)}`};case`type`:return function(t){return e.value.value===OT(NT(t,d))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`!=`:switch(e.value.type){case`regexp`:return function(t){return!e.value.value.test(NT(t,d))};case`literal`:var p=`${e.value.value}`;return function(e){return p!==`${NT(e,d)}`};case`type`:return function(t){return e.value.value!==OT(NT(t,d))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`<=`:return function(t){return NT(t,d)<=e.value.value};case`<`:return function(t){return NT(t,d)<e.value.value};case`>`:return function(t){return NT(t,d)>e.value.value};case`>=`:return function(t){return NT(t,d)>=e.value.value}}throw Error(`Unknown operator: ${e.operator}`);case`sibling`:var m=FT(e.left),h=FT(e.right);return function(t,n,r){return h(t,n,r)&&zT(t,m,n,`LEFT_SIDE`,r)||e.left.subject&&m(t,n,r)&&zT(t,h,n,`RIGHT_SIDE`,r)};case`adjacent`:var g=FT(e.left),_=FT(e.right);return function(t,n,r){return _(t,n,r)&&BT(t,g,n,`LEFT_SIDE`,r)||e.right.subject&&g(t,n,r)&&BT(t,_,n,`RIGHT_SIDE`,r)};case`nth-child`:var v=e.index.value,y=FT(e.right);return function(e,t,n){return y(e,t,n)&&VT(e,t,v,n)};case`nth-last-child`:var b=-e.index.value,x=FT(e.right);return function(e,t,n){return x(e,t,n)&&VT(e,t,b,n)};case`class`:var S=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(S){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 LT(e,t){var n=t&&t.nodeTypeKey||`type`,r=e[n];return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:jT.VisitorKeys[r]?jT.VisitorKeys[r]:t&&typeof t.fallback==`function`?t.fallback(e):Object.keys(e).filter((function(e){return e!==n}))}function RT(e,t){var n=t&&t.nodeTypeKey||`type`;return e!==null&&OT(e)===`object`&&typeof e[n]==`string`}function zT(e,t,n,r,i){var a=ET(n,1)[0];if(!a)return!1;for(var o=LT(a,i),s=0;s<o.length;++s){var c=a[o[s]];if(Array.isArray(c)){var l=c.indexOf(e);if(l<0)continue;var u=void 0,d=void 0;r===`LEFT_SIDE`?(u=0,d=l):(u=l+1,d=c.length);for(var f=u;f<d;++f)if(RT(c[f],i)&&t(c[f],n,i))return!0}}return!1}function BT(e,t,n,r,i){var a=ET(n,1)[0];if(!a)return!1;for(var o=LT(a,i),s=0;s<o.length;++s){var c=a[o[s]];if(Array.isArray(c)){var l=c.indexOf(e);if(l<0)continue;if(r===`LEFT_SIDE`&&l>0&&RT(c[l-1],i)&&t(c[l-1],n,i)||r===`RIGHT_SIDE`&&l<c.length-1&&RT(c[l+1],i)&&t(c[l+1],n,i))return!0}}return!1}function VT(e,t,n,r){if(n===0)return!1;var i=ET(t,1)[0];if(!i)return!1;for(var a=LT(i,r),o=0;o<a.length;++o){var s=i[a[o]];if(Array.isArray(s)){var c=n<0?s.length+n:n-1;if(c>=0&&c<s.length&&s[c]===e)return!0}}return!1}function HT(e,t,n,r){if(t){var i=[],a=FT(t),o=function e(t,n){if(t==null||OT(t)!=`object`)return[];n??=t;for(var r=t.subject?[n]:[],i=Object.keys(t),a=0;a<i.length;++a){var o=i[a],s=t[o];r.push.apply(r,DT(e(s,o===`left`?s:n)))}return r}(t).map(FT);jT.traverse(e,{enter:function(e,t){if(t!=null&&i.unshift(t),a(e,i,r)){if(o.length)for(var s=0,c=o.length;s<c;++s){o[s](e,i,r)&&n(e,t,i);for(var l=0,u=i.length;l<u;++l){var d=i.slice(l+1);o[s](i[l],d,r)&&n(i[l],t,d)}}else n(e,t,i)}},leave:function(){i.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||`iteration`})}}function UT(e,t,n){var r=[];return HT(e,t,(function(e){r.push(e)}),n),r}function WT(e){return MT.parse(e)}function GT(e,t,n){return UT(e,WT(t),n)}GT.parse=WT,GT.match=UT,GT.traverse=HT,GT.matches=function(e,t,n,r){return!t||!!e&&(n||=[],FT(t)(e,n,r))},GT.query=GT;var KT,qT;function JT(){if(qT)return KT;qT=1;let e=GT;class t{source;isExit;root;nodeTypes;attributeCount;identifierCount;alwaysMatches;fastMatch;constructor(e,t,n,r,i,a,o,s){this.source=e,this.isExit=t,this.root=n,this.nodeTypes=r,this.attributeCount=i,this.identifierCount=a,this.alwaysMatches=o,this.fastMatch=s}compare(e){return this.attributeCount-e.attributeCount||this.identifierCount-e.identifierCount||(this.source<=e.source?-1:1)}}let n=/* @__PURE__ */ new Map;function r(...e){return[...new Set(e.flat())]}function i(...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 a(e){let t=0,n=0;function a(e){switch(e.type){case`identifier`:return n++,[e.value];case`not`:return e.selectors.map(a),null;case`matches`:{let t=e.selectors.map(a);return t.every(Boolean)?r(...t):null}case`compound`:{let t=e.selectors.map(a).filter(e=>e);return t.length?i(...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 a(e.left),a(e.right);case`class`:return e.name===`function`?[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]:null;default:return null}}return{nodeTypes:a(e),attributeCount:t,identifierCount:n}}function o(e){switch(e.type){case`identifier`:case`wildcard`:return!0;case`matches`:return e.selectors.every(o);default:return!1}}function s(e){if(e.type!==`child`)return null;let{left:t,right:n}=e;if(t.type!==`identifier`)return null;let r=null;if(n.type===`field`)r=n;else if(n.type===`compound`&&n.selectors.length===2){let[e,t]=n.selectors;e.type===`wildcard`&&t.type===`field`&&(r=t)}if(!r||r.name.includes(`.`))return null;let i=t.value,a=i.toLowerCase(),o=r.name;return(e,t,n)=>{let r=t[0];if(!r)return!1;let s=r[n?.nodeTypeKey||`type`];if(s!==i&&(typeof s!=`string`||s.toLowerCase()!==a))return!1;let c=r[o];return c===e||Array.isArray(c)&&c.includes(e)}}function c(e){return e===`*`?{type:`wildcard`,value:`*`}:/^[a-z]+$/iu.test(e)?{type:`identifier`,value:e}:null}function l(t){try{return e.parse(t)}catch(e){throw e.location&&e.location.start&&typeof e.location.start.offset==`number`?SyntaxError(`Syntax error in selector "${t}" at position ${e.location.start.offset}: ${e.message}`,{cause:e}):e}}function u(e){if(n.has(e))return n.get(e);let r=e.replace(/:exit$/u,``),i=c(r)??l(r),{nodeTypes:u,attributeCount:d,identifierCount:f}=a(i),p=new t(e,e.endsWith(`:exit`),i,u,d,f,o(i),s(i));return n.set(e,p),p}function d(t,n,r,i){return e.matches(t,n,r,i)}return KT={parse:u,matches:d,ESQueryParsedSelector:t},KT}var YT,XT;function ZT(){if(XT)return YT;XT=1;let{parse:e,matches:t}=JT(),n=/*@__PURE__*/ Ne(),r=Object.freeze([]);function i(e,t){return e.compare(t)}class a{constructor(t,n){this.visitor=t,this.esqueryOptions=n,this.nodeTypeKey=n?.nodeTypeKey||`type`,this.enterSelectorsByNodeType=/* @__PURE__ */ new Map,this.exitSelectorsByNodeType=/* @__PURE__ */ new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],t.forEachName(t=>{let n=e(t);if(n.nodeTypes){let e=n.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;n.nodeTypes.forEach(t=>{e.has(t)||e.set(t,[]),e.get(t).push(n)})}else(n.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(n)}),this.anyTypeEnterSelectors.sort(i),this.anyTypeExitSelectors.sort(i),this.enterSelectorsByNodeType.forEach(e=>e.sort(i)),this.exitSelectorsByNodeType.forEach(e=>e.sort(i))}matches(e,n,r){return r.fastMatch?r.fastMatch(e,n,this.esqueryOptions):t(e,r.root,n,this.esqueryOptions)}calculateSelectors(e,t,n,i){let a=(n?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e[this.nodeTypeKey])||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++,(l.alwaysMatches||this.matches(e,t,l))&&i.push(l)):(s++,(u.alwaysMatches||this.matches(e,t,u))&&i.push(u))}}}class o{#e;static instances=/* @__PURE__ */ 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:r}={}){let i=new a(t,{visitorKeys:e.visitorKeys??this.#e.visitorKeys,fallback:n.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),o=[],s=[],c=r??e.traverse();function l(e){switch(e.kind){case 1:try{let n=e.phase!==1;n&&o.shift(),s.length=0,i.calculateSelectors(e.target,o,n,s);let r=e.args;for(let n=0;n<s.length;n++){let i=s[n].source;r?r.length===1?t.callSync(i,r[0]):t.callSync(i,...r):t.callSync(i,e.target)}n||o.unshift(e.target)}catch(t){throw t.currentNode=e.target,t}break;case 2:t.callSync(e.target,...e.args);break;default:throw Error(`Invalid traversal step found: "${e.kind}".`)}}if(Array.isArray(c))for(let e=0;e<c.length;e++)l(c[e]);else for(let e of c)l(e)}}return YT={SourceCodeTraverser:o},YT}var QT,$T;function eE(){if($T)return QT;$T=1;function e(e,t){return{range:[e,e],text:t}}function t(e){if(typeof e!=`string`)throw TypeError(`'text' must be a string`)}class n{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,n){t(n);let r=this.#e.getRange(e);return this.insertTextAfterRange(r,n)}insertTextAfterRange(n,r){return t(r),e(n[1],r)}insertTextBefore(e,n){t(n);let r=this.#e.getRange(e);return this.insertTextBeforeRange(r,n)}insertTextBeforeRange(n,r){return t(r),e(n[0],r)}replaceText(e,n){t(n);let r=this.#e.getRange(e);return this.replaceTextRange(r,n)}replaceTextRange(e,n){return t(n),{range:e,text:n}}remove(e){let t=this.#e.getRange(e);return this.removeRange(t)}removeRange(e){return{range:e,text:``}}}return QT={RuleFixer:n},QT}var tE,nE;function rE(){if(nE)return tE;nE=1;function e(){return/\{\{([^{}]+)\}\}/gu}let t=e();function n(e,n){return!n||!e.includes(`{{`)?e:e.replace(t,(e,t)=>{let r=t.trim();return r in n?n[r]:e})}return tE={getPlaceholderMatcher:e,interpolate:n},tE}var iE,aE;function oE(){if(aE)return iE;aE=1;let e=Q(),{RuleFixer:t}=eE(),{interpolate:n}=rE(),r=ci,i={start:{line:1,column:0},end:{line:1,column:1}};function a({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 o(e){return Object.hasOwn(r.rules,e)?`Rule '${e}' was removed and replaced by: ${r.rules[e].join(`, `)}`:`Definition for rule '${e}' was not found.`}function s(e,t,n){let{ruleId:r=null,loc:s=i,message:c=o(e.ruleId)}=e;return{ruleId:r,message:c,...a({line:s.start.line,column:s.start.column,endLine:s.end.line,endColumn:s.end.column},n),severity:t}}function c(...e){return e.length===1?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 l(t){t.node?e(typeof t.node==`object`,`Node must be an object`):e(t.loc,`Node must be provided when reporting error if location is not provided`)}function u(e){return e.loc.start?e.loc:{start:e.loc,end:null}}function d(e){return e?{range:[e.range[0],e.range[1]],text:e.text}:null}function f(t){t&&(t.range&&typeof t.range[0]==`number`&&typeof t.range[1]==`number`||e(!1,`Fix has invalid range: ${JSON.stringify(t,null,2)}`))}function p(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function m(t,n){for(let e of t)f(e);if(t.length===0)return null;if(t.length===1)return d(t[0]);t.sort(p);let r=n.text,i=t[0].range[0],a=t.at(-1).range[1],o=``,s=-(2**53-1);for(let n of t)e(n.range[0]>=s,`Fix objects must not be overlapped in a report.`),n.range[0]>=0&&(o+=r.slice(Math.max(0,i,s),n.range[0])),o+=n.text,s=n.range[1];return o+=r.slice(Math.max(0,i,s),a),{range:[i,a],text:o}}function h(e,t,n){if(typeof e.fix!=`function`)return null;let r=e.fix(n);return r&&Symbol.iterator in r?m(Array.from(r),t):(f(r),d(r))}function g(e,t,r,i){return!e.suggest||!Array.isArray(e.suggest)?[]:e.suggest.map(e=>{let a=e.desc||r[e.messageId];return{...e,desc:n(a,e.data),fix:h(e,t,i)}}).filter(({fix:e})=>e)}function _(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};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 v(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 y(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.")}class b{messages=[];#e;#t;#n;#r;#i;constructor({ruleMapper:e,sourceCode:t,language:n,disableFixes:r=!1}){this.#e=e,this.#t=t,this.#n=n,this.#r=r}addRuleMessage(e,r,...i){let a=c(...i),o=this.#e(e)?.meta?.messages;l(a);let s=y(a,o);v(a.suggest,o),!this.#r&&this.#i===void 0&&(this.#i=new t({sourceCode:this.#t}));let d=_({ruleId:e,severity:r,message:n(s,a.data),messageId:a.messageId,loc:a.loc?u(a):this.#t.getLoc(a.node),fix:this.#r?null:h(a,this.#t,this.#i),suggestions:this.#r?[]:g(a,this.#t,o,this.#i),language:this.#n});return this.messages.push(d),d}addError(e){let t=s(e,2,this.#n);return this.messages.push(t),t}addFatal(e){let t=s(e,2,this.#n);return t.fatal=!0,this.messages.push(t),t}addWarning(e){let t=s(e,1,this.#n);return this.messages.push(t),t}}return iE={FileReport:b,updateLocationInformation:a},iE}var sE,cE;function lE(){if(cE)return sE;cE=1;let e=Ce,t=Ae(),n=/*@__PURE__*/ Ne(),r=Pe,i=Ye(),{SourceCode:a}=ur(),o=Go(),{ConfigCommentParser:s}=ir(),c=Jo(),{SourceCodeVisitor:l,getListenerRuleId:u,setListenerRuleId:d,attachRuleId:f}=Zo(),p=rs(),{FlatConfigArray:m}=rT(),{startTime:h,endTime:g}=es(),{assertIsRuleSeverity:_}=Sr(),{normalizeSeverityToString:v,normalizeSeverityToNumber:y}=yr(),{deepMergeArrays:b}=gr(),{activeFlags:x,inactiveFlags:S,getInactivityReasonMessage:C}=oT(),w=Ke()(`eslint:linter`),T=new s,{VFile:E}=lT(),{ParserService:D}=fT(),{FileContext:O}=hT(),{ProcessorService:k}=vT(),{containsDifferentProperty:A}=xT(),{Config:j}=Ho(),{WarningService:M}=wT(),{SourceCodeTraverser:N}=ZT(),{FileReport:P,updateLocationInformation:F}=oE();function I(e){return Array.isArray(e)?e:[e]}function ee(e,t,n,r,i,a,o){let s=e.rules?.[r],c=s?I(s):[`off`],l=v(c[0]);if(l!==v(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}).`:A(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=y(o),r={message:d,loc:t};e===1?n.addWarning(r):e===2&&n.addError(r)}}function L({type:e,value:t,justification:n,node:r},i,a,o,s){let c=Object.keys(T.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}=F(c.end,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else{let{line:r,column:i}=F(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 R(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=L(a,t,n,e,r);i.push(...o)})}return i}function te(t){let n=t.split(e.sep),r=n.lastIndexOf(`<text>`);return r===-1?t:n.slice(r).join(e.sep)}function z(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`:v(n.reportUnusedDisableDirectives));let s=n.reportUnusedInlineConfigs===void 0?`off`:v(n.reportUnusedInlineConfigs),c=e.ruleFilter;return typeof c!=`function`&&(c=()=>!0),{filename:te(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 ne(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 re(e,t){return Array.isArray(e)?b(t,e.slice(1)):t??[]}function B(e,r,a){let o=r.parserOptions.ecmaFeatures||{},s=r.ecmaVersion||5;return t.analyze(e,{ignoreEval:!0,nodejsScope:o.globalReturn,impliedStrict:o.impliedStrict,ecmaVersion:typeof s==`number`?s:6,sourceType:r.sourceType||`script`,childVisitorKeys:n.KEYS,fallback:i.getKeys,jsx:o.jsx})}function V(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 ie(e,t,n,r,i,a,o,s,c,m,h,g,_,v){let y=new l,b=new O({cwd:c,filename:o,physicalFilename:m||o,sourceCode:e,languageOptions:i,settings:a}),x=e.traverse();return Object.keys(t).forEach(e=>{let r=j.getRuleNumericSeverity(t[e]);if(r===0||h&&!h({ruleId:e,severity:r}))return;let i=n(e);if(!i){v.addError({ruleId:e});return}let a=b.extend({id:e,options:re(t[e],void 0),report(...t){let n=v.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=p.enabled||g?p.time(e,V,g)(i,a):V(i,a),s=g?o.result:o;g&&ne(o.tdiff,{type:`rules`,key:e},_);function c(t){return function(...n){try{let r=t(...n),i=g?r.result:r;return g&&ne(r.tdiff,{type:`rules`,key:e},_),i}catch(t){throw f(t,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=s[t],r=u(n);if(!p.enabled&&!g&&typeof n==`function`&&(r===void 0||r===e)){d(n,e),y.add(t,n);return}let i=p.enabled||g?p.time(e,n,g):n;y.add(t,c(i))})}),N.getInstance(r).traverseSync(e,y,{steps:x}),v}function ae(e){if(typeof e==`object`){let{hasBOM:t,text:n}=e;return(t?``:``)+n}return String(e)}function oe(e){if(e)return e;if(typeof U==`object`)return U.cwd()}let H=/* @__PURE__ */ new WeakMap;class se{constructor({cwd:e,configType:t=`flat`,flags:n=[],warningService:i=new M}={}){let a=[];if(t!==`flat`)throw TypeError(`The 'configType' option value must be 'flat'. The value '${t}' is not supported.`);n.forEach(e=>{if(S.has(e)){let t=S.get(e),n=`The flag '${e}' is inactive: ${C(t)}`;if(t.replacedBy===void 0)throw Error(n);typeof t.replacedBy==`string`&&a.push(t.replacedBy),i.emitInactiveFlagWarning(e,n)}else{if(!x.has(e))throw Error(`Unknown flag '${e}'.`);a.push(e)}}),H.set(this,{cwd:oe(e),flags:a,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],warningService:i}),this.version=r.version}static get version(){return r.version}hasFlag(e){return H.get(this).flags.includes(e)}verify(e,t,n){w(`Verify`);let{cwd:r}=H.get(this),i=typeof n==`string`?{filename:n}:n||{},a=t??{},o=a;return Array.isArray(a)&&typeof a.getConfig==`function`||(o=new m(a,{basePath:r}),o.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,o,i,!0))}_verifyWithFlatConfigArrayAndProcessor(t,n,r,i){let a=H.get(this),o=r.filename||`<input>`,s=te(o),c=r.physicalFilename||s,l=ae(t),u=new E(s,l,{physicalPath:c}),d=r.preprocess||(e=>[e]),f=r.postprocess||(e=>e.flat()),p=new k,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=r.filterCodeBlock||(e=>e.endsWith(`.js`)),g=e.extname(o),{files:_}=m,v=_.map(t=>(w(`A code block was found: %o`,t.path||`(unnamed)`),typeof t==`string`?this._verifyWithFlatConfigArrayAndWithoutProcessors(t,n,r):h(t.path,t.body)?i&&(l!==t.rawBody||e.extname(t.path)!==g)?(w(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithFlatConfigArray(t.rawBody,i,{...r,filename:t.path,physicalFilename:t.physicalPath})):(a.lastSourceCode=null,this.#e(t,n,{...r,filename:t.path,physicalFilename:t.physicalPath})):(w(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}#e(e,t,n){let r=H.get(this),i=t||{},{settings:s={},languageOptions:c}=i,l=z(n,i);if(r.lastSourceCode)r.lastSourceCode.scopeManager===null&&(r.lastSourceCode=new a({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:B(r.lastSourceCode.ast,c)}));else{let t;l.stats&&(t=h());let n=new D().parseSync(e,i);if(l.stats&&ne(g(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let u=r.lastSourceCode,d=new P({ruleMapper:e=>i.getRuleDefinition(e),language:i.language,sourceCode:u,disableFixes:l.disableFixes});u.applyLanguageOptions?.(c);let f={rules:{}};if(l.allowInlineConfig){if(l.warnInlineConfig)u.getInlineConfigNodes&&u.getInlineConfigNodes().forEach(e=>{let t=u.getLoc(e),n=u.getRange(e);d.addWarning({message:`'${u.text.slice(n[0],n[1])}' has no effect because you have 'noInlineConfig' setting in ${l.warnInlineConfig}.`,loc:t})});else{let e=u.applyInlineConfig?.();if(e){e.problems.forEach(e=>{d.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)d.addError({ruleId:e,loc:n});else if(Object.hasOwn(f.rules,e))d.addError({message:`Rule "${e}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:n});else try{let t=I(a),o=t;_(e,o[0]);let s=!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&&(s=!1);else{let e=o.slice(1),t=b(r.meta?.defaultOptions,e);t.length&&(o=[o[0],...t])}l.reportUnusedInlineConfigs!==`off`&&ee(i,n,d,e,o,t,l.reportUnusedInlineConfigs),s&&i.validateRulesConfig({[e]:o}),f.rules[e]=o}catch(t){if(t.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw t;if(t.messageTemplate===`rule-unsupported-language`){d.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\tRule does not support the language "${t.messageData.language}". Use a config block with "files" to apply the rule only to supported files, or disable it.\n`,loc:n});return}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}".`),d.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\t${r}\n`,loc:n})}})}}}let p=l.allowInlineConfig&&!l.warnInlineConfig?R(u,e=>i.getRuleDefinition(e),i.language,d):[],m=Object.assign({},i.rules,f.rules);u.finalize?.();try{ie(u,m,e=>i.getRuleDefinition(e),i.language,c,s,l.filename,!1,r.cwd,n.physicalFilename,l.ruleFilter,l.stats,r,d)}catch(e){if(e.message+=`\nOccurred while linting ${l.filename}`,w(`An error occurred while traversing`),w(`Filename:`,l.filename),e.currentNode){let{line:t}=u.getLoc(e.currentNode).start;w(`Line:`,t),e.message+=`:${t}`}throw w(`Parser Options:`,c.parserOptions),w(`Settings:`,s),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return o({language:i.language,sourceCode:u,directives:p,disableFixes:l.disableFixes,problems:d.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:l.reportUnusedDisableDirectives,ruleFilter:l.ruleFilter,configuredRules:m})}_verifyWithFlatConfigArrayAndWithoutProcessors(e,t,n){let r=H.get(this),i=te(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new E(i,a,{physicalPath:n.physicalFilename});return this.#e(o,t,n)}_verifyWithFlatConfigArray(e,t,n,r=!1){w(`With flat config: %s`,n.filename);let i=n.filename||`__placeholder__.js`;H.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}];if(a.processor){w(`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)}_distinguishSuppressedMessages(e){let t=[],n=[],r=H.get(this);for(let r of e)r.suppressions?n.push(r):t.push(r);return r.lastSuppressedMessages=n,t}getSourceCode(){return H.get(this).lastSourceCode}getTimes(){return H.get(this).times??{passes:[]}}getFixPassCount(){return H.get(this).fixPasses??0}getSuppressedMessages(){return H.get(this).lastSuppressedMessages}verifyAndFix(e,t,n){let r,i,a=!1,o=0,s=e,l,u,d=typeof n==`string`?{filename:n}:n||{},f=d.filename||`${e.slice(0,10)}...`,p=d.fix===void 0||d.fix,m=d?.stats,_=H.get(this);m&&(delete _.times,_.fixPasses=0);do{o++;let e;m&&(e=h()),w(`Linting code for %s (pass %d)`,f,o),r=this.verify(s,t,d),w(`Generating fixed text for %s (pass %d)`,f,o);let n;if(m&&(n=h()),i=c.applyFixes(s,r,p),m&&(i.fixed?(ne(g(n),{type:`fix`},_),_.fixPasses++):ne(0,{type:`fix`},_)),r.length===1&&r[0].fatal)break;if(a||=i.fixed,l=u,u=s,s=i.output,m){e=g(e);let t=_.times.passes.length-1;_.times.passes[t].total=e}if(o>1&&s.length===l.length&&s===l){w(`Circular fixes detected after pass %d. Exiting fix loop.`,o),_.warningService.emitCircularFixesWarning(d.filename??`text`);break}}while(i.fixed&&o<10);if(i.fixed){let e;m&&(e=h()),i.messages=this.verify(s,t,d),m&&(ne(0,{type:`fix`},_),_.times.passes.at(-1).total=g(e))}return i.fixed=a,i.output=s,i}}return sE={Linter:se},sE}function uE(){return lE().Linter}var dE=uE(),fE=/* @__PURE__ */ c({amd:()=>pE,applescript:()=>mE,astro:()=>hE,atomtest:()=>gE,audioWorklet:()=>_E,browser:()=>vE,builtin:()=>yE,bunBuiltin:()=>bE,chai:()=>xE,commonjs:()=>SE,couch:()=>CE,default:()=>gD,denoBuiltin:()=>wE,devtools:()=>TE,embertest:()=>EE,es2015:()=>DE,es2016:()=>OE,es2017:()=>kE,es2018:()=>AE,es2019:()=>jE,es2020:()=>ME,es2021:()=>NE,es2022:()=>PE,es2023:()=>FE,es2024:()=>IE,es2025:()=>LE,es2026:()=>RE,es2027:()=>zE,es3:()=>BE,es5:()=>VE,greasemonkey:()=>HE,jasmine:()=>UE,jest:()=>WE,jquery:()=>GE,meteor:()=>KE,mocha:()=>qE,mongo:()=>JE,nashorn:()=>YE,node:()=>XE,nodeBuiltin:()=>ZE,paintWorklet:()=>QE,phantomjs:()=>$E,prototypejs:()=>eD,protractor:()=>tD,qunit:()=>nD,rhino:()=>rD,rspack:()=>iD,serviceworker:()=>aD,sharedWorker:()=>oD,shelljs:()=>sD,svelte:()=>cD,vitest:()=>lD,vue:()=>uD,webextensions:()=>dD,webpack:()=>fD,worker:()=>pD,wsh:()=>mD,yui:()=>hD}),pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D=o((()=>{pE={define:!1,require:!1},mE={$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},hE={Astro:!1},gE={advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},_E={AbortController:!1,AbortSignal:!1,AudioWorkletGlobalScope:!1,AudioWorkletProcessor:!1,ByteLengthQueuingStrategy:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,CSS:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSStyleValue:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,currentFrame:!1,currentTime:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,MessageEvent:!1,MessagePort:!1,PaintWorkletGlobalScope:!1,port:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,renderQuantumSize:!1,sampleRate:!1,StylePropertyMapReadOnly:!1,Temporal:!1,TextDecoderStream:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,UserActivation:!1,WebAssembly:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},vE=/*#__PURE__*/ JSON.parse(`{"AbortController":false,"AbortSignal":false,"AbsoluteOrientationSensor":false,"AbstractRange":false,"Accelerometer":false,"addEventListener":false,"ai":false,"AI":false,"AICreateMonitor":false,"AITextSession":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffect":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioData":false,"AudioDecoder":false,"AudioDestinationNode":false,"AudioEncoder":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioParamMap":false,"AudioPlaybackStats":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioSession":false,"AudioSinkInfo":false,"AudioWorklet":false,"AudioWorkletNode":false,"AuthenticatorAssertionResponse":false,"AuthenticatorAttestationResponse":false,"AuthenticatorResponse":false,"BackgroundFetchManager":false,"BackgroundFetchRecord":false,"BackgroundFetchRegistration":false,"BarcodeDetector":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"Bluetooth":false,"BluetoothCharacteristicProperties":false,"BluetoothDevice":false,"BluetoothRemoteGATTCharacteristic":false,"BluetoothRemoteGATTDescriptor":false,"BluetoothRemoteGATTServer":false,"BluetoothRemoteGATTService":false,"BluetoothUUID":false,"blur":false,"BroadcastChannel":false,"BrowserCaptureMediaStreamTrack":false,"btoa":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStream":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPaintEvent":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"CaptureController":false,"CaretPosition":false,"CDATASection":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"ChapterInformation":false,"CharacterBoundsUpdateEvent":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"Clipboard":false,"ClipboardChangeEvent":false,"ClipboardEvent":false,"ClipboardItem":false,"close":false,"closed":false,"CloseEvent":false,"CloseWatcher":false,"CommandEvent":false,"Comment":false,"CompositionEvent":false,"CompressionStream":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ContentVisibilityAutoStateChangeEvent":false,"ConvolverNode":false,"CookieChangeEvent":false,"CookieDeprecationLabel":false,"cookieStore":false,"CookieStore":false,"CookieStoreManager":false,"CountQueuingStrategy":false,"crashReport":false,"CrashReportContext":false,"createImageBitmap":false,"CreateMonitor":false,"Credential":false,"credentialless":false,"CredentialsContainer":false,"CropTarget":false,"crossOriginIsolated":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSPViolationReportBody":false,"CSS":false,"CSSAnimation":false,"CSSConditionRule":false,"CSSContainerRule":false,"CSSCounterStyleRule":false,"CSSFontFaceDescriptors":false,"CSSFontFaceRule":false,"CSSFontFeatureValuesRule":false,"CSSFontPaletteValuesRule":false,"CSSFunctionDeclarations":false,"CSSFunctionDescriptors":false,"CSSFunctionRule":false,"CSSGroupingRule":false,"CSSImageValue":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSKeywordValue":false,"CSSLayerBlockRule":false,"CSSLayerStatementRule":false,"CSSMarginRule":false,"CSSMathClamp":false,"CSSMathInvert":false,"CSSMathMax":false,"CSSMathMin":false,"CSSMathNegate":false,"CSSMathProduct":false,"CSSMathSum":false,"CSSMathValue":false,"CSSMatrixComponent":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSNestedDeclarations":false,"CSSNumericArray":false,"CSSNumericValue":false,"CSSPageDescriptors":false,"CSSPageRule":false,"CSSPerspective":false,"CSSPositionTryDescriptors":false,"CSSPositionTryRule":false,"CSSPositionValue":false,"CSSPropertyRule":false,"CSSPseudoElement":false,"CSSRotate":false,"CSSRule":false,"CSSRuleList":false,"CSSScale":false,"CSSScopeRule":false,"CSSSkew":false,"CSSSkewX":false,"CSSSkewY":false,"CSSStartingStyleRule":false,"CSSStyleDeclaration":false,"CSSStyleProperties":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSStyleValue":false,"CSSSupportsRule":false,"CSSTransformComponent":false,"CSSTransformValue":false,"CSSTransition":false,"CSSTranslate":false,"CSSUnitValue":false,"CSSUnparsedValue":false,"CSSVariableReferenceValue":false,"CSSViewTransitionRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"CustomStateSet":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"DecompressionStream":false,"DelayNode":false,"DelegatedInkTrailPresenter":false,"DeviceMotionEvent":false,"DeviceMotionEventAcceleration":false,"DeviceMotionEventRotationRate":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"DevicePosture":false,"DigitalCredential":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"documentPictureInPicture":false,"DocumentPictureInPicture":false,"DocumentPictureInPictureEvent":false,"DocumentTimeline":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectList":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"EditContext":false,"Element":false,"ElementGeometryUpdateEvent":false,"ElementImage":false,"ElementInternals":false,"EncodedAudioChunk":false,"EncodedVideoChunk":false,"ErrorEvent":false,"event":false,"Event":false,"EventCounts":false,"EventSource":false,"EventTarget":false,"external":false,"External":false,"EyeDropper":false,"FeaturePolicy":false,"FederatedCredential":false,"fence":false,"Fence":false,"FencedFrameConfig":false,"fetch":false,"fetchLater":false,"FetchLaterResult":false,"File":false,"FileList":false,"FileReader":false,"FileSystem":false,"FileSystemDirectoryEntry":false,"FileSystemDirectoryHandle":false,"FileSystemDirectoryReader":false,"FileSystemEntry":false,"FileSystemFileEntry":false,"FileSystemFileHandle":false,"FileSystemHandle":false,"FileSystemObserver":false,"FileSystemWritableFileStream":false,"find":false,"focus":false,"FocusEvent":false,"FontData":false,"FontFace":false,"FontFaceSet":false,"FontFaceSetLoadEvent":false,"FormData":false,"FormDataEvent":false,"FragmentDirective":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadAxisMoveEvent":false,"GamepadButton":false,"GamepadButtonEvent":false,"GamepadEvent":false,"GamepadHapticActuator":false,"GamepadPose":false,"Geolocation":false,"GeolocationCoordinates":false,"GeolocationPosition":false,"GeolocationPositionError":false,"getComputedStyle":false,"getScreenDetails":false,"getSelection":false,"GPU":false,"GPUAdapter":false,"GPUAdapterInfo":false,"GPUBindGroup":false,"GPUBindGroupLayout":false,"GPUBuffer":false,"GPUBufferUsage":false,"GPUCanvasContext":false,"GPUColorWrite":false,"GPUCommandBuffer":false,"GPUCommandEncoder":false,"GPUCompilationInfo":false,"GPUCompilationMessage":false,"GPUComputePassEncoder":false,"GPUComputePipeline":false,"GPUDevice":false,"GPUDeviceLostInfo":false,"GPUError":false,"GPUExternalTexture":false,"GPUInternalError":false,"GPUMapMode":false,"GPUOutOfMemoryError":false,"GPUPipelineError":false,"GPUPipelineLayout":false,"GPUQuerySet":false,"GPUQueue":false,"GPURenderBundle":false,"GPURenderBundleEncoder":false,"GPURenderPassEncoder":false,"GPURenderPipeline":false,"GPUSampler":false,"GPUShaderModule":false,"GPUShaderStage":false,"GPUSupportedFeatures":false,"GPUSupportedLimits":false,"GPUTexture":false,"GPUTextureUsage":false,"GPUTextureView":false,"GPUUncapturedErrorEvent":false,"GPUValidationError":false,"GravitySensor":false,"Gyroscope":false,"HashChangeEvent":false,"Headers":false,"HID":false,"HIDConnectionEvent":false,"HIDDevice":false,"HIDInputReportEvent":false,"Highlight":false,"HighlightRegistry":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCameraElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFencedFrameElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLGeolocationElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLInstallElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLMicrophoneElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectedContentElement":false,"HTMLSelectElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLUserMediaElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRecord":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdentityCredential":false,"IdentityCredentialError":false,"IdentityProvider":false,"IdleDeadline":false,"IdleDetector":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"ImageDecoder":false,"ImageTrack":false,"ImageTrackList":false,"indexedDB":false,"Ink":false,"innerHeight":false,"innerWidth":false,"InputDeviceCapabilities":false,"InputDeviceInfo":false,"InputEvent":false,"InstallResultEvent":false,"IntegrityViolationReportBody":false,"InteractionContentfulPaint":false,"InterestEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"isSecureContext":false,"Keyboard":false,"KeyboardEvent":false,"KeyboardLayoutMap":false,"KeyframeEffect":false,"LanguageDetector":false,"LanguageModel":false,"LargestContentfulPaint":false,"LaunchParams":false,"launchQueue":false,"LaunchQueue":false,"LayoutShift":false,"LayoutShiftAttribution":false,"length":false,"LinearAccelerationSensor":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"Lock":false,"LockManager":false,"matchMedia":false,"MathMLAnchorElement":false,"MathMLElement":false,"MediaCapabilities":false,"MediaCapabilitiesInfo":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyError":false,"MediaKeyMessageEvent":false,"MediaKeys":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaMetadata":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaRecorderErrorEvent":false,"MediaSession":false,"MediaSource":false,"MediaSourceHandle":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackAudioSourceNode":false,"MediaStreamTrackAudioStats":false,"MediaStreamTrackEvent":false,"MediaStreamTrackGenerator":false,"MediaStreamTrackProcessor":false,"MediaStreamTrackVideoStats":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"model":false,"ModelContext":false,"ModelGenericSession":false,"ModelManager":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigateEvent":false,"navigation":false,"Navigation":false,"NavigationActivation":false,"NavigationCurrentEntryChangeEvent":false,"NavigationDestination":false,"NavigationHistoryEntry":false,"NavigationPrecommitController":false,"NavigationPreloadManager":false,"NavigationTransition":false,"navigator":false,"Navigator":false,"NavigatorLogin":false,"NavigatorManagedData":false,"NavigatorUAData":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"NodeRange":false,"Notification":false,"NotifyPaintEvent":false,"NotRestoredReasonDetails":false,"NotRestoredReasons":false,"Observable":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":false,"OffscreenCanvasRenderingContext2D":false,"onabort":true,"onafterprint":true,"onanimationcancel":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinput":true,"onbeforeinstallprompt":true,"onbeforematch":true,"onbeforeprint":true,"onbeforetoggle":true,"onbeforeunload":true,"onbeforexrselect":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncommand":true,"oncontentvisibilityautostatechange":true,"oncontextlost":true,"oncontextmenu":true,"oncontextrestored":true,"oncopy":true,"oncuechange":true,"oncut":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"onformdata":true,"ongamepadconnected":true,"ongamepaddisconnected":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninstallresult":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpagereveal":true,"onpageshow":true,"onpageswap":true,"onpaste":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerrawupdate":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onscrollend":true,"onscrollsnapchange":true,"onscrollsnapchanging":true,"onsearch":true,"onsecuritypolicyviolation":true,"onseeked":true,"onseeking":true,"onselect":true,"onselectionchange":true,"onselectstart":true,"onslotchange":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitioncancel":true,"ontransitionend":true,"ontransitionrun":true,"ontransitionstart":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"OpaqueRange":false,"open":false,"opener":false,"Option":false,"OrientationSensor":false,"origin":false,"Origin":false,"originAgentCluster":false,"OscillatorNode":false,"OTPCredential":false,"outerHeight":false,"outerWidth":false,"OverconstrainedError":false,"PageRevealEvent":false,"PageSwapEvent":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"PasswordCredential":false,"Path2D":false,"PaymentAddress":false,"PaymentManager":false,"PaymentMethodChangeEvent":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceElementTiming":false,"PerformanceEntry":false,"PerformanceEventTiming":false,"PerformanceLongAnimationFrameTiming":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMarkConditional":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceScriptTiming":false,"PerformanceServerTiming":false,"PerformanceSoftNavigation":false,"PerformanceTiming":false,"PerformanceTimingConfidence":false,"PeriodicSyncManager":false,"PeriodicWave":false,"Permissions":false,"PermissionsPolicy":false,"PermissionStatus":false,"PERSISTENT":false,"personalbar":false,"PictureInPictureEvent":false,"PictureInPictureWindow":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"PressureObserver":false,"PressureRecord":false,"print":false,"ProcessingInstruction":false,"Profiler":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"ProtectedAudience":false,"PublicKeyCredential":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queryLocalFonts":false,"queueMicrotask":false,"QuotaExceededError":false,"RadioNodeList":false,"Range":false,"ReadableByteStreamController":false,"ReadableStream":false,"ReadableStreamBYOBReader":false,"ReadableStreamBYOBRequest":false,"ReadableStreamDefaultController":false,"ReadableStreamDefaultReader":false,"RelativeOrientationSensor":false,"RemotePlayback":false,"removeEventListener":false,"ReportBody":false,"reportError":false,"ReportingObserver":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"requestResize":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"ResizeObserverSize":false,"resizeTo":false,"Response":false,"RestrictionTarget":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCDTMFSender":false,"RTCDTMFToneChangeEvent":false,"RTCEncodedAudioFrame":false,"RTCEncodedVideoFrame":false,"RTCError":false,"RTCErrorEvent":false,"RTCIceCandidate":false,"RTCIceCandidatePair":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceErrorEvent":false,"RTCPeerConnectionIceEvent":false,"RTCRtpReceiver":false,"RTCRtpScriptTransform":false,"RTCRtpSender":false,"RTCRtpTransceiver":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"Sanitizer":false,"scheduler":false,"Scheduler":false,"Scheduling":false,"screen":false,"Screen":false,"ScreenDetailed":false,"ScreenDetails":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"ScrollTimeline":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"Sensor":false,"SensorErrorEvent":false,"Serial":false,"SerialPort":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"sharedStorage":false,"SharedStorage":false,"SharedStorageAppendMethod":false,"SharedStorageClearMethod":false,"SharedStorageDeleteMethod":false,"SharedStorageModifierMethod":false,"SharedStorageSetMethod":false,"SharedStorageWorklet":false,"SharedWorker":false,"showDirectoryPicker":false,"showOpenFilePicker":false,"showSaveFilePicker":false,"SnapEvent":false,"SourceBuffer":false,"SourceBufferList":false,"SpeechGrammar":false,"SpeechGrammarList":false,"SpeechRecognition":false,"SpeechRecognitionAlternative":false,"SpeechRecognitionErrorEvent":false,"SpeechRecognitionEvent":false,"SpeechRecognitionPhrase":false,"SpeechRecognitionResult":false,"SpeechRecognitionResultList":false,"speechSynthesis":false,"SpeechSynthesis":false,"SpeechSynthesisErrorEvent":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"SpeechSynthesisVoice":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageBucket":false,"StorageBucketManager":false,"StorageEvent":false,"StorageManager":false,"structuredClone":false,"styleMedia":false,"StylePropertyMap":false,"StylePropertyMapReadOnly":false,"StyleSheet":false,"StyleSheetList":false,"SubmitEvent":false,"Subscriber":false,"SubtleCrypto":false,"Summarizer":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"SyncManager":false,"TaskAttributionTiming":false,"TaskController":false,"TaskPriorityChangeEvent":false,"TaskSignal":false,"Temporal":false,"TEMPORARY":false,"Text":false,"TextDecoder":false,"TextDecoderStream":false,"TextEncoder":false,"TextEncoderStream":false,"TextEvent":false,"TextFormat":false,"TextFormatUpdateEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TextUpdateEvent":false,"TimeEvent":false,"TimelineTrigger":false,"TimelineTriggerRange":false,"TimelineTriggerRangeList":false,"TimeRanges":false,"ToggleEvent":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransformStream":false,"TransformStreamDefaultController":false,"TransitionEvent":false,"Translator":false,"TreeWalker":false,"TrustedHTML":false,"TrustedHTMLParserOptions":false,"TrustedParserOptions":false,"TrustedScript":false,"TrustedScriptURL":false,"TrustedTypePolicy":false,"TrustedTypePolicyFactory":false,"trustedTypes":false,"UIEvent":false,"URL":false,"URLPattern":false,"URLSearchParams":false,"USB":false,"USBAlternateInterface":false,"USBConfiguration":false,"USBConnectionEvent":false,"USBDevice":false,"USBEndpoint":false,"USBInterface":false,"USBInTransferResult":false,"USBIsochronousInTransferPacket":false,"USBIsochronousInTransferResult":false,"USBIsochronousOutTransferPacket":false,"USBIsochronousOutTransferResult":false,"USBOutTransferResult":false,"UserActivation":false,"ValidityState":false,"VideoColorSpace":false,"VideoDecoder":false,"VideoEncoder":false,"VideoFrame":false,"VideoPlaybackQuality":false,"viewport":false,"Viewport":false,"ViewTimeline":false,"ViewTransition":false,"ViewTransitionTypeSet":false,"VirtualKeyboard":false,"VirtualKeyboardGeometryChangeEvent":false,"VisibilityStateEntry":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"VTTRegion":false,"WakeLock":false,"WakeLockSentinel":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLObject":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebMCPEvent":false,"WebSocket":false,"WebSocketError":false,"WebSocketStream":false,"WebTransport":false,"WebTransportBidirectionalStream":false,"WebTransportDatagramDuplexStream":false,"WebTransportDatagramsWritable":false,"WebTransportError":false,"WebTransportReceiveStream":false,"WebTransportSendGroup":false,"WebTransportSendStream":false,"WGSLLanguageFeatures":false,"WheelEvent":false,"when":false,"window":false,"Window":false,"WindowControlsOverlay":false,"WindowControlsOverlayGeometryChangeEvent":false,"Worker":false,"Worklet":false,"WritableStream":false,"WritableStreamDefaultController":false,"WritableStreamDefaultWriter":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XRAnchor":false,"XRAnchorSet":false,"XRBoundedReferenceSpace":false,"XRCamera":false,"XRCompositionLayer":false,"XRCPUDepthInformation":false,"XRCubeLayer":false,"XRCylinderLayer":false,"XRDepthInformation":false,"XRDOMOverlayState":false,"XREquirectLayer":false,"XRFrame":false,"XRHand":false,"XRHitTestResult":false,"XRHitTestSource":false,"XRInputSource":false,"XRInputSourceArray":false,"XRInputSourceEvent":false,"XRInputSourcesChangeEvent":false,"XRJointPose":false,"XRJointSpace":false,"XRLayer":false,"XRLayerEvent":false,"XRLightEstimate":false,"XRLightProbe":false,"XRPlane":false,"XRPlaneSet":false,"XRPose":false,"XRProjectionLayer":false,"XRQuadLayer":false,"XRRay":false,"XRReferenceSpace":false,"XRReferenceSpaceEvent":false,"XRRenderState":false,"XRRigidTransform":false,"XRSession":false,"XRSessionEvent":false,"XRSpace":false,"XRSubImage":false,"XRSystem":false,"XRTransientInputHitTestResult":false,"XRTransientInputHitTestSource":false,"XRView":false,"XRViewerPose":false,"XRViewport":false,"XRVisibilityMaskChangeEvent":false,"XRWebGLBinding":false,"XRWebGLDepthInformation":false,"XRWebGLLayer":false,"XRWebGLSubImage":false,"XSLTProcessor":false}`),yE={AggregateError:!1,Array:!1,ArrayBuffer:!1,AsyncDisposableStack:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,DisposableStack:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,SuppressedError:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},bE={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,BuildError:!1,BuildMessage:!1,Bun:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,confirm:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,HTMLRewriter:!1,Loader:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,onerror:!0,onmessage:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PerformanceTiming:!1,postMessage:!1,process:!1,prompt:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,ResolveError:!1,ResolveMessage:!1,Response:!1,self:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,ShadowRealm:!1,structuredClone:!1,SubtleCrypto:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},xE={assert:!0,expect:!0,should:!0},SE={exports:!0,global:!1,module:!1,require:!1},CE={emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},wE={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,CloseEvent:!1,CompressionStream:!1,confirm:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,Deno:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileReader:!1,FormData:!1,getParent:!1,global:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,localStorage:!1,location:!1,Location:!1,Lock:!1,LockManager:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,nodeBootstrap:!1,OffscreenCanvas:!1,onbeforeunload:!0,onerror:!0,onload:!0,onunhandledrejection:!0,onunload:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,process:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},TE={$:!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},EE={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},DE={Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},OE={Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},kE={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},AE={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},jE={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},ME={Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},NE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},PE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},FE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},IE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},LE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},RE={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},zE={AggregateError:!1,Array:!1,ArrayBuffer:!1,AsyncDisposableStack:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,DisposableStack:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,SuppressedError:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},BE={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},VE={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},HE={cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_cookie:!1,GM_deleteValue:!1,GM_deleteValues:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_getValues:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_setValues:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},UE={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,throwUnless:!1,throwUnlessAsync:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},WE={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fit:!1,it:!1,jest:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},GE={$:!1,jQuery:!1},KE={$:!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},qE={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},JE={_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},YE={__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},XE={__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,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},ZE={AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},QE={ByteLengthQueuingStrategy:!1,console:!1,CountQueuingStrategy:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPerspective:!1,CSSPositionValue:!1,CSSRotate:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleValue:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,devicePixelRatio:!1,PaintRenderingContext2D:!1,PaintSize:!1,PaintWorkletGlobalScope:!1,Path2D:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerPaint:!1,StylePropertyMapReadOnly:!1,Temporal:!1,TransformStream:!1,TransformStreamDefaultController:!1,WebAssembly:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},$E={console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},eD={$:!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},tD={$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},nD={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},rD={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},iD={__non_webpack_require__:!1,__resourceQuery:!1,__rspack_unique_id__:!1,__rspack_version__:!1,__system_context__:!1,__webpack_base_uri__:!0,__webpack_chunk_load__:!0,__webpack_chunkname__:!1,__webpack_exports_info__:!1,__webpack_get_script_filename__:!0,__webpack_hash__:!1,__webpack_init_sharing__:!1,__webpack_is_included__:!1,__webpack_layer__:!1,__webpack_module__:!1,__webpack_modules__:!1,__webpack_nonce__:!0,__webpack_public_path__:!0,__webpack_require__:!1,__webpack_runtime_id__:!1,__webpack_share_scopes__:!1},aD={AbortController:!1,AbortPaymentEvent:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,atob:!1,BackgroundFetchEvent:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BackgroundFetchUpdateUIEvent:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanMakePaymentEvent:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,CloseEvent:!1,CompressionStream:!1,console:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPerspective:!1,CSSRotate:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleValue:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ElementImage:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,ExtendableCookieChangeEvent:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileList:!1,FileReader:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,InstallEvent:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,NotificationEvent:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabortpayment:!0,onactivate:!0,onbackgroundfetchabort:!0,onbackgroundfetchclick:!0,onbackgroundfetchfail:!0,onbackgroundfetchsuccess:!0,oncanmakepayment:!0,oncookiechange:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpaymentrequest:!0,onperiodicsync:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,origin:!1,Origin:!1,Path2D:!1,PaymentRequestEvent:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncEvent:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushEvent:!1,PushManager:!1,PushMessageData:!1,PushSubscription:!1,PushSubscriptionChangeEvent:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,RestrictionTarget:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,serviceWorker:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,StylePropertyMapReadOnly:!1,Subscriber:!1,SubtleCrypto:!1,SyncEvent:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportDatagramsWritable:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendGroup:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,WindowClient:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},oD={AbortController:!1,AbortSignal:!1,addEventListener:!1,atob:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPerspective:!1,CSSRotate:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleValue:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ElementImage:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemObserver:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onconnect:!0,onerror:!0,onlanguagechange:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,origin:!1,Origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,RestrictionTarget:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SharedWorkerGlobalScope:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,StylePropertyMapReadOnly:!1,Subscriber:!1,SubtleCrypto:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportDatagramsWritable:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendGroup:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},sD={cat:!1,cd:!1,chmod:!1,cmd:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,errorCode:!1,exec:!1,exit:!1,find:!1,grep:!1,head:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,ShellString:!1,sort:!1,tail:!1,tempdir:!1,test:!1,touch:!1,uniq:!1,which:!1},cD={$bindable:!1,$derived:!1,$effect:!1,$host:!1,$inspect:!1,$props:!1,$state:!1},lD={afterAll:!1,afterEach:!1,assert:!1,assertType:!1,beforeAll:!1,beforeEach:!1,chai:!1,describe:!1,expect:!1,expectTypeOf:!1,it:!1,onTestFailed:!1,onTestFinished:!1,suite:!1,test:!1,vi:!1,vitest:!1},uD={defineEmits:!1,defineExpose:!1,defineModel:!1,defineOptions:!1,defineProps:!1,defineSlots:!1,withDefaults:!1},dD={browser:!1,chrome:!1,opr:!1},fD={__non_webpack_require__:!1,__resourceQuery:!1,__webpack_base_uri__:!0,__webpack_chunk_load__:!0,__webpack_exports_info__:!1,__webpack_get_script_filename__:!0,__webpack_hash__:!1,__webpack_is_included__:!1,__webpack_layer__:!1,__webpack_module__:!1,__webpack_modules__:!1,__webpack_public_path__:!0,__webpack_require__:!1,__webpack_runtime_id__:!1},pD={AbortController:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,atob:!1,AudioData:!1,AudioDecoder:!1,AudioEncoder:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPerspective:!1,CSSRotate:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleValue:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,CustomEvent:!1,DecompressionStream:!1,DedicatedWorkerGlobalScope:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ElementImage:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemObserver:!1,FileSystemSyncAccessHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDetector:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MediaSource:!1,MediaSourceHandle:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onerror:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onrtctransform:!0,onunhandledrejection:!0,origin:!1,Origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,postMessage:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,Response:!1,RestrictionTarget:!1,RTCDataChannel:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,RTCError:!1,RTCErrorEvent:!1,RTCRtpScriptTransformer:!1,RTCTransformEvent:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,Serial:!1,SerialPort:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SourceBuffer:!1,SourceBufferList:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,StylePropertyMapReadOnly:!1,Subscriber:!1,SubtleCrypto:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportDatagramsWritable:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendGroup:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},mD={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},hD={YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},gD={amd:pE,applescript:mE,astro:hE,atomtest:gE,audioWorklet:_E,browser:vE,builtin:yE,bunBuiltin:bE,chai:xE,commonjs:SE,couch:CE,denoBuiltin:wE,devtools:TE,embertest:EE,es2015:DE,es2016:OE,es2017:kE,es2018:AE,es2019:jE,es2020:ME,es2021:NE,es2022:PE,es2023:FE,es2024:IE,es2025:LE,es2026:RE,es2027:zE,es3:BE,es5:VE,greasemonkey:HE,jasmine:UE,jest:WE,jquery:GE,meteor:KE,mocha:qE,mongo:JE,nashorn:YE,node:XE,nodeBuiltin:ZE,paintWorklet:QE,phantomjs:$E,prototypejs:eD,protractor:tD,qunit:nD,"react-native":{__DEV__:!1,AbortController:!1,AbortSignal:!1,alert:!1,Blob:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CharacterData:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,Document:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,Element:!1,Event:!1,EventCounts:!1,EventTarget:!1,fetch:!1,File:!1,FileReader:!1,FormData:!1,global:!1,Headers:!1,HTMLCollection:!1,HTMLElement:!1,navigator:!1,Node:!1,NodeList:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceEventTiming:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,require:!1,Response:!1,self:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TaskAttributionTiming:!1,Text:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,window:!1,XMLHttpRequest:!1},rhino:rD,rspack:iD,serviceworker:aD,"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},sharedWorker:oD,shelljs:sD,svelte:cD,vitest:lD,vue:uD,webextensions:dD,webpack:fD,worker:pD,wsh:mD,yui:hD}})),vD=/* @__PURE__ */ u((/* @__PURE__ */ s(((e,t)=>{t.exports=(_D(),d(fE).default)})))(),1);let yD=new dE,bD={languageOptions:{globals:{...vD.default.browser,...vD.default.es2021},parserOptions:{ecmaVersion:2022,sourceType:`module`,ecmaFeatures:{jsx:!0}}},rules:{"no-unused-vars":[`warn`,{argsIgnorePattern:`^_`}],"no-undef":`error`,semi:`off`}};function xD(e,t,n){let r=0;for(let n=0;n<t-1;n++)r+=(e[n]?e[n].length:0)+1;return r+n-1}self.onmessage=e=>{let{code:t,requestId:n,fileName:r}=e.data;if(typeof t!=`string`){self.postMessage({diagnostics:[],requestId:n,error:`Invalid code received`});return}if(!r){self.postMessage({diagnostics:[],requestId:n});return}let i=/\.js$/i.test(r);if(/\.jsx$/i.test(r),!i)self.postMessage({diagnostics:[],requestId:n});else try{let e=yD.verify(t,bD),r=t.split(`
223
+ `),i=e.map(e=>{let t=xD(r,e.line,e.column);return{from:t,to:e.endLine&&e.endColumn?xD(r,e.endLine,e.endColumn):t+(e.fix?.range[1]-e.fix?.range[0]||1),severity:e.severity===2?`error`:e.severity===1?`warning`:`info`,message:e.message,source:e.ruleId?`eslint(${e.ruleId})`:`eslint`}});self.postMessage({diagnostics:i,requestId:n})}catch(e){console.error(`Error linting in ESLint worker:`,e),self.postMessage({error:e.message,diagnostics:[],requestId:n})}}})();