soonjs 0.0.21 → 0.0.22

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 (36) hide show
  1. package/dist/deps/acorn-tklbyr11e.js +15 -0
  2. package/dist/deps/angular-m17t0gdsi.js +1 -0
  3. package/dist/deps/babel-48ei1aig4.js +15 -0
  4. package/dist/deps/estree-4o5bj9gvd.js +36 -0
  5. package/dist/deps/flow-xlruu7boa.js +19 -0
  6. package/dist/deps/glimmer-kyfivr6g7.js +30 -0
  7. package/dist/deps/graphql-xojtytb2p.js +29 -0
  8. package/dist/deps/html-jal5w2b1p.js +23 -0
  9. package/dist/deps/markdown-qhqqns7vp.js +62 -0
  10. package/dist/deps/meriyah-sl495y757.js +4 -0
  11. package/dist/deps/postcss-vq400h6ym.js +52 -0
  12. package/dist/deps/soon-id-gmzr57ufv.js +1 -0
  13. package/dist/deps/typescript-jihynpl9y.js +20 -0
  14. package/dist/deps/yaml-auqgv4vnk.js +161 -0
  15. package/dist/index.d.ts +2 -7
  16. package/dist/index.js +10 -54574
  17. package/dist/types.d.ts +1 -1
  18. package/dist/vite-plugin-soon-client.js +249 -0
  19. package/dist/vite-plugin-soon-server.js +272 -0
  20. package/package.json +2 -2
  21. package/dist/acorn-BeS7roP3.js +0 -2895
  22. package/dist/angular-B-EYu3Xp.js +0 -1448
  23. package/dist/babel-NsGQycRb.js +0 -6844
  24. package/dist/estree-cBJzAinS.js +0 -4265
  25. package/dist/flow-CH5Saqka.js +0 -26221
  26. package/dist/glimmer-D1ryh0Nj.js +0 -2756
  27. package/dist/graphql-DsBI6lrt.js +0 -1212
  28. package/dist/html-BCw0gm0V.js +0 -2623
  29. package/dist/markdown-k-AdjTGy.js +0 -3058
  30. package/dist/meriyah-CghVgtuf.js +0 -2320
  31. package/dist/one.d.ts +0 -20
  32. package/dist/postcss-BC57c3E8.js +0 -4664
  33. package/dist/testtt.d.ts +0 -1
  34. package/dist/typescript-DtWxbCCh.js +0 -12794
  35. package/dist/utils.d.ts +0 -6
  36. package/dist/yaml-CFlm97O-.js +0 -4088
@@ -0,0 +1,249 @@
1
+ var oT=Object.defineProperty;var uT=(e,t,r)=>t in e?oT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Di=(e,t,r)=>uT(e,typeof t!="symbol"?t+"":t,r);import fl,{realpathSync as lT,statSync as Sm,existsSync as Wi,symlinkSync as cT,mkdirSync as fT,copyFileSync as qf,rmSync as pT,watchFile as hT,exists as dT,mkdir as mT,writeFile as yT}from"fs";import*as ro from"path";import it,{dirname as DT}from"path";import{createRequire as vm,builtinModules as rc}from"module";import gT,{fileURLToPath as tt,pathToFileURL as ni,URL as Dt}from"url";import Fr from"process";import nc from"os";import _s from"tty";import Oi from"fs/promises";import rr from"assert";import ET from"v8";import bT,{format as TT,inspect as pl}from"util";import{c as ii,g as ST,u as vT}from"./deps/soon-id-gmzr57ufv.js";import{createHash as AT}from"crypto";var CT=Object.defineProperty,PT=(e,t)=>{for(var r in t)CT(e,r,{get:t[r],enumerable:!0})},Am={};PT(Am,{builders:()=>Nm,printer:()=>Bm,utils:()=>km});var ai="string",Jr="array",oi="cursor",vn="indent",An="align",Cn="trim",nr="group",Pn="fill",mr="if-break",xn="indent-if-break",Fn="line-suffix",_n="line-suffix-boundary",Ut="line",wn="label",wr="break-parent",Cm=new Set([oi,vn,An,Cn,nr,Pn,mr,xn,Fn,_n,Ut,wn,wr]);function xT(e){if(typeof e=="string")return ai;if(Array.isArray(e))return Jr;if(!e)return;const{type:t}=e;if(Cm.has(t))return t}var ui=xT,FT=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function _T(e){const t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
2
+ Expected it to be 'string' or 'object'.`;if(ui(e))throw new Error("doc is valid.");const r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;const n=FT([...Cm].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
3
+ Expected it to be ${n}.`}var wT=class extends Error{constructor(r){super(_T(r));Di(this,"name","InvalidDocError");this.doc=r}},Ni=wT,Kf={};function IT(e,t,r,n){const i=[e];for(;i.length>0;){const s=i.pop();if(s===Kf){r(i.pop());continue}r&&i.push(s,Kf);const a=ui(s);if(!a)throw new Ni(s);if((t==null?void 0:t(s))!==!1)switch(a){case Jr:case Pn:{const o=a===Jr?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case mr:i.push(s.flatContents,s.breakContents);break;case nr:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case An:case vn:case xn:case wn:case Fn:i.push(s.contents);break;case ai:case oi:case Cn:case _n:case Ut:case wr:break;default:throw new Ni(s)}}}var ic=IT,OT=()=>{},NT=OT;function no(e){return{type:vn,contents:e}}function Bi(e,t){return{type:An,contents:t,n:e}}function Pm(e,t={}){return NT(t.expandedStates),{type:nr,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function BT(e){return Bi(Number.NEGATIVE_INFINITY,e)}function kT(e){return Bi({type:"root"},e)}function LT(e){return Bi(-1,e)}function RT(e,t){return Pm(e[0],{...t,expandedStates:e})}function xm(e){return{type:Pn,parts:e}}function MT(e,t="",r={}){return{type:mr,breakContents:e,flatContents:t,groupId:r.groupId}}function jT(e,t){return{type:xn,contents:e,groupId:t.groupId,negate:t.negate}}function $T(e){return{type:Fn,contents:e}}var UT={type:_n},sc={type:wr},VT={type:Cn},ac={type:Ut,hard:!0},Fm={type:Ut,hard:!0,literal:!0},qT={type:Ut},KT={type:Ut,soft:!0},WT=[ac,sc],_m=[Fm,sc],HT={type:oi};function wm(e,t){const r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function GT(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=no(n);n=Bi(t%r,n),n=Bi(Number.NEGATIVE_INFINITY,n)}return n}function YT(e,t){return e?{type:wn,label:e,contents:t}:t}var XT=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},mn=XT,JT=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},zT=JT;function QT(e){switch(e){case"cr":return"\r";case"crlf":return`\r
4
+ `;default:return`
5
+ `}}var ZT=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function eS(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function tS(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var rS=e=>!(eS(e)||tS(e)),nS=/[^\x20-\x7F]/u;function iS(e){if(!e)return 0;if(!nS.test(e))return e.length;e=e.replace(ZT()," ");let t=0;for(const r of e){const n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=rS(n)?1:2)}return t}var Im=iS;function So(e,t){if(typeof e=="string")return t(e);const r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);const a=i(s);return r.set(s,a),a}function i(s){switch(ui(s)){case Jr:return t(s.map(n));case Pn:return t({...s,parts:s.parts.map(n)});case mr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case nr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case An:case vn:case xn:case wn:case Fn:return t({...s,contents:n(s.contents)});case ai:case oi:case Cn:case _n:case Ut:case wr:return t(s);default:throw new Ni(s)}}}function oc(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;const o=t(a);o!==void 0&&(i=!0,n=o)}return ic(e,s),n}function sS(e){if(e.type===nr&&e.break||e.type===Ut&&e.hard||e.type===wr)return!0}function aS(e){return oc(e,sS,!1)}function Wf(e){if(e.length>0){const t=mn(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function oS(e){const t=new Set,r=[];function n(s){if(s.type===wr&&Wf(r),s.type===nr){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===nr&&r.pop().break&&Wf(r)}ic(e,n,i,!0)}function uS(e){return e.type===Ut&&!e.hard?e.soft?"":" ":e.type===mr?e.flatContents:e}function lS(e){return So(e,uS)}function Hf(e){for(e=[...e];e.length>=2&&mn(!1,e,-2).type===Ut&&mn(!1,e,-1).type===wr;)e.length-=2;if(e.length>0){const t=Ds(mn(!1,e,-1));e[e.length-1]=t}return e}function Ds(e){switch(ui(e)){case vn:case xn:case nr:case Fn:case wn:{const t=Ds(e.contents);return{...e,contents:t}}case mr:return{...e,breakContents:Ds(e.breakContents),flatContents:Ds(e.flatContents)};case Pn:return{...e,parts:Hf(e.parts)};case Jr:return Hf(e);case ai:return e.replace(/[\n\r]*$/u,"");case An:case oi:case Cn:case _n:case Ut:case wr:break;default:throw new Ni(e)}return e}function cS(e){return Ds(pS(e))}function fS(e){switch(ui(e)){case Pn:if(e.parts.every(t=>t===""))return"";break;case nr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===nr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case An:case vn:case xn:case Fn:if(!e.contents)return"";break;case mr:if(!e.flatContents&&!e.breakContents)return"";break;case Jr:{const t=[];for(const r of e){if(!r)continue;const[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof mn(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case ai:case oi:case Cn:case _n:case Ut:case wn:case wr:break;default:throw new Ni(e)}return e}function pS(e){return So(e,t=>fS(t))}function hS(e,t=_m){return So(e,r=>typeof r=="string"?wm(t,r.split(`
6
+ `)):r)}function dS(e){if(e.type===Ut)return!0}function mS(e){return oc(e,dS,!1)}var Vt=Symbol("MODE_BREAK"),Ar=Symbol("MODE_FLAT"),gs=Symbol("cursor");function Om(){return{value:"",length:0,queue:[]}}function yS(e,t){return hl(e,{type:"indent"},t)}function DS(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Om():t<0?hl(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:hl(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function hl(e,t,r){const n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t];let i="",s=0,a=0,o=0;for(const d of n)switch(d.type){case"indent":c(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":c(),i+=d.n,s+=d.n.length;break;case"numberAlign":a+=1,o+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:i,length:s,queue:n};function u(d){i+=" ".repeat(d),s+=r.tabWidth*d}function l(d){i+=" ".repeat(d),s+=d}function c(){r.useTabs?f():p()}function f(){a>0&&u(a),h()}function p(){o>0&&l(o),h()}function h(){a=0,o=0}}function dl(e){let t=0,r=0,n=e.length;e:for(;n--;){const i=e[n];if(i===gs){r++;continue}for(let s=i.length-1;s>=0;s--){const a=i[s];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(gs);return t}function ra(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length;const o=[e],u=[];for(;r>=0;){if(o.length===0){if(a===0)return!0;o.push(t[--a]);continue}const{mode:l,doc:c}=o.pop(),f=ui(c);switch(f){case ai:u.push(c),r-=Im(c);break;case Jr:case Pn:{const p=f===Jr?c:c.parts;for(let h=p.length-1;h>=0;h--)o.push({mode:l,doc:p[h]});break}case vn:case An:case xn:case wn:o.push({mode:l,doc:c.contents});break;case Cn:r+=dl(u);break;case nr:{if(s&&c.break)return!1;const p=c.break?Vt:l,h=c.expandedStates&&p===Vt?mn(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:h});break}case mr:{const h=(c.groupId?i[c.groupId]||Ar:l)===Vt?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case Ut:if(l===Vt||c.hard)return!0;c.soft||(u.push(" "),r--);break;case Fn:n=!0;break;case _n:if(n)return!1;break}}return!1}function gS(e,t){const r={},n=t.printWidth,i=QT(t.endOfLine);let s=0;const a=[{ind:Om(),mode:Vt,doc:e}],o=[];let u=!1;const l=[];let c=0;for(oS(e);a.length>0;){const{ind:p,mode:h,doc:d}=a.pop();switch(ui(d)){case ai:{const m=i!==`
7
+ `?zT(!1,d,`
8
+ `,i):d;o.push(m),a.length>0&&(s+=Im(m));break}case Jr:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case oi:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(gs),c++;break;case vn:a.push({ind:yS(p,t),mode:h,doc:d.contents});break;case An:a.push({ind:DS(p,d.n,t),mode:h,doc:d.contents});break;case Cn:s-=dl(o);break;case nr:switch(h){case Ar:if(!u){a.push({ind:p,mode:d.break?Vt:Ar,doc:d.contents});break}case Vt:{u=!1;const m={ind:p,mode:Ar,doc:d.contents},D=n-s,g=l.length>0;if(!d.break&&ra(m,a,D,g,r))a.push(m);else if(d.expandedStates){const y=mn(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:Vt,doc:y});break}else for(let b=1;b<d.expandedStates.length+1;b++)if(b>=d.expandedStates.length){a.push({ind:p,mode:Vt,doc:y});break}else{const O=d.expandedStates[b],C={ind:p,mode:Ar,doc:O};if(ra(C,a,D,g,r)){a.push(C);break}}}else a.push({ind:p,mode:Vt,doc:d.contents});break}}d.id&&(r[d.id]=mn(!1,a,-1).mode);break;case Pn:{const m=n-s,{parts:D}=d;if(D.length===0)break;const[g,y]=D,b={ind:p,mode:Ar,doc:g},O={ind:p,mode:Vt,doc:g},C=ra(b,[],m,l.length>0,r,!0);if(D.length===1){C?a.push(b):a.push(O);break}const $={ind:p,mode:Ar,doc:y},w={ind:p,mode:Vt,doc:y};if(D.length===2){C?a.push($,b):a.push(w,O);break}D.splice(0,2);const P={ind:p,mode:h,doc:xm(D)},I=D[0];ra({ind:p,mode:Ar,doc:[g,y,I]},[],m,l.length>0,r,!0)?a.push(P,$,b):C?a.push(P,w,b):a.push(P,w,O);break}case mr:case xn:{const m=d.groupId?r[d.groupId]:h;if(m===Vt){const D=d.type===mr?d.breakContents:d.negate?d.contents:no(d.contents);D&&a.push({ind:p,mode:h,doc:D})}if(m===Ar){const D=d.type===mr?d.flatContents:d.negate?no(d.contents):d.contents;D&&a.push({ind:p,mode:h,doc:D})}break}case Fn:l.push({ind:p,mode:h,doc:d.contents});break;case _n:l.length>0&&a.push({ind:p,mode:h,doc:ac});break;case Ut:switch(h){case Ar:if(d.hard)u=!0;else{d.soft||(o.push(" "),s+=1);break}case Vt:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(o.push(i,p.root.value),s=p.root.length):(o.push(i),s=0):(s-=dl(o),o.push(i+p.value),s=p.length);break}break;case wn:a.push({ind:p,mode:h,doc:d.contents});break;case wr:break;default:throw new Ni(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}const f=o.indexOf(gs);if(f!==-1){const p=o.indexOf(gs,f+1),h=o.slice(0,f).join(""),d=o.slice(f+1,p).join(""),m=o.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:o.join("")}}var Nm={join:wm,line:qT,softline:KT,hardline:WT,literalline:_m,group:Pm,conditionalGroup:RT,fill:xm,lineSuffix:$T,lineSuffixBoundary:UT,cursor:HT,breakParent:sc,ifBreak:MT,trim:VT,indent:no,indentIfBreak:jT,align:Bi,addAlignmentToDoc:GT,markAsRoot:kT,dedentToRoot:BT,dedent:LT,hardlineWithoutBreakParent:ac,literallineWithoutBreakParent:Fm,label:YT,concat:e=>e},Bm={printDocToString:gS},km={willBreak:aS,traverseDoc:ic,findInDoc:oc,mapDoc:So,removeLines:lS,stripTrailingHardline:cS,replaceEndOfLine:hS,canBreak:mS},ES=Am;const bS=Object.freeze(Object.defineProperty({__proto__:null,builders:Nm,default:ES,printer:Bm,utils:km},Symbol.toStringTag,{value:"Module"})),gi=vm(import.meta.url),TS=tt(import.meta.url);DT(TS);var SS=Object.create,Bs=Object.defineProperty,vS=Object.getOwnPropertyDescriptor,uc=Object.getOwnPropertyNames,AS=Object.getPrototypeOf,CS=Object.prototype.hasOwnProperty,Lm=e=>{throw TypeError(e)},PS=(e,t,r)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ot=(e=>typeof gi<"u"?gi:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof gi<"u"?gi:t)[r]}):e)(function(e){if(typeof gi<"u")return gi.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),vo=(e,t)=>function(){return e&&(t=(0,e[uc(e)[0]])(e=0)),t},he=(e,t)=>function(){return t||(0,e[uc(e)[0]])((t={exports:{}}).exports,t),t.exports},Mi=(e,t)=>{for(var r in t)Bs(e,r,{get:t[r],enumerable:!0})},Rm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uc(t))!CS.call(e,i)&&i!==r&&Bs(e,i,{get:()=>t[i],enumerable:!(n=vS(t,i))||n.enumerable});return e},Qr=(e,t,r)=>(r=e!=null?SS(AS(e)):{},Rm(Bs(r,"default",{value:e,enumerable:!0}),e)),xS=e=>Rm(Bs({},"__esModule",{value:!0}),e),na=(e,t,r)=>PS(e,typeof t!="symbol"?t+"":t,r),lc=(e,t,r)=>t.has(e)||Lm("Cannot "+r),ei=(e,t,r)=>(lc(e,t,"read from private field"),t.get(e)),zn=(e,t,r)=>t.has(e)?Lm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Es=(e,t,r,n)=>(lc(e,t,"write to private field"),t.set(e,r),r),Ti=(e,t,r)=>(lc(e,t,"access private method"),r),FS=he({"node_modules/fast-glob/out/utils/array.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function t(n){return n.reduce((i,s)=>[].concat(i,s),[])}e.flatten=t;function r(n,i){const s=[[]];let a=0;for(const o of n)i(o)?(a++,s[a]=[]):s[a].push(o);return s}e.splitWhen=r}}),_S=he({"node_modules/fast-glob/out/utils/errno.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function t(r){return r.code==="ENOENT"}e.isEnoentCodeError=t}}),wS=he({"node_modules/fast-glob/out/utils/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),IS=he({"node_modules/fast-glob/out/utils/path.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var t=ot("os"),r=ot("path"),n=t.platform()==="win32",i=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,a=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,o=/^\\\\([.?])/,u=/\\(?![!()+@[\]{}])/g;function l(D){return D.replace(/\\/g,"/")}e.unixify=l;function c(D,g){return r.resolve(D,g)}e.makeAbsolute=c;function f(D){if(D.charAt(0)==="."){const g=D.charAt(1);if(g==="/"||g==="\\")return D.slice(i)}return D}e.removeLeadingDotSegment=f,e.escape=n?p:h;function p(D){return D.replace(a,"\\$2")}e.escapeWindowsPath=p;function h(D){return D.replace(s,"\\$2")}e.escapePosixPath=h,e.convertPathToPattern=n?d:m;function d(D){return p(D).replace(o,"//$1").replace(u,"/")}e.convertWindowsPathToPattern=d;function m(D){return h(D)}e.convertPosixPathToPattern=m}}),OS=he({"node_modules/is-extglob/index.js"(e,t){t.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var i;i=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(i[2])return!0;n=n.slice(i.index+i[0].length)}return!1}}}),NS=he({"node_modules/is-glob/index.js"(e,t){var r=OS(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var o=0,u=-2,l=-2,c=-2,f=-2,p=-2;o<a.length;){if(a[o]==="*"||a[o+1]==="?"&&/[\].+)]/.test(a[o])||l!==-1&&a[o]==="["&&a[o+1]!=="]"&&(l<o&&(l=a.indexOf("]",o)),l>o&&(p===-1||p>l||(p=a.indexOf("\\",o),p===-1||p>l)))||c!==-1&&a[o]==="{"&&a[o+1]!=="}"&&(c=a.indexOf("}",o),c>o&&(p=a.indexOf("\\",o),p===-1||p>c))||f!==-1&&a[o]==="("&&a[o+1]==="?"&&/[:!=]/.test(a[o+2])&&a[o+3]!==")"&&(f=a.indexOf(")",o),f>o&&(p=a.indexOf("\\",o),p===-1||p>f))||u!==-1&&a[o]==="("&&a[o+1]!=="|"&&(u<o&&(u=a.indexOf("|",o)),u!==-1&&a[u+1]!==")"&&(f=a.indexOf(")",u),f>u&&(p=a.indexOf("\\",u),p===-1||p>f))))return!0;if(a[o]==="\\"){var h=a[o+1];o+=2;var d=n[h];if(d){var m=a.indexOf(d,o);m!==-1&&(o=m+1)}if(a[o]==="!")return!0}else o++}return!1},s=function(a){if(a[0]==="!")return!0;for(var o=0;o<a.length;){if(/[*?{}()[\]]/.test(a[o]))return!0;if(a[o]==="\\"){var u=a[o+1];o+=2;var l=n[u];if(l){var c=a.indexOf(l,o);c!==-1&&(o=c+1)}if(a[o]==="!")return!0}else o++}return!1};t.exports=function(o,u){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var l=i;return u&&u.strict===!1&&(l=s),l(o)}}}),BS=he({"node_modules/glob-parent/index.js"(e,t){var r=NS(),n=ot("path").posix.dirname,i=ot("os").platform()==="win32",s="/",a=/\\/g,o=/[\{\[].*[\}\]]$/,u=/(^|[^\\])([\{\[]|\([^\)]+$)/,l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(f,p){var h=Object.assign({flipBackslashes:!0},p);h.flipBackslashes&&i&&f.indexOf(s)<0&&(f=f.replace(a,s)),o.test(f)&&(f+=s),f+="a";do f=n(f);while(r(f)||u.test(f));return f.replace(l,"$1")}}}),cc=he({"node_modules/braces/lib/utils.js"(e){e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,r)=>t.nodes.find(n=>n.type===r),e.exceedsLimit=(t,r,n=1,i)=>i===!1||!e.isInteger(t)||!e.isInteger(r)?!1:(Number(r)-Number(t))/Number(n)>=i,e.escapeNode=(t,r=0,n)=>{const i=t.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0),e.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]),e.flatten=(...t)=>{const r=[],n=i=>{for(let s=0;s<i.length;s++){const a=i[s];if(Array.isArray(a)){n(a);continue}a!==void 0&&r.push(a)}return r};return n(t),r}}}),fc=he({"node_modules/braces/lib/stringify.js"(e,t){var r=cc();t.exports=(n,i={})=>{const s=(a,o={})=>{const u=i.escapeInvalid&&r.isInvalidBrace(o),l=a.invalid===!0&&i.escapeInvalid===!0;let c="";if(a.value)return(u||l)&&r.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(const f of a.nodes)c+=s(f);return c};return s(n)}}}),kS=he({"node_modules/is-number/index.js"(e,t){t.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}}}),LS=he({"node_modules/to-regex-range/index.js"(e,t){var r=kS(),n=(y,b,O)=>{if(r(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(b===void 0||y===b)return String(y);if(r(b)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let C={relaxZeros:!0,...O};typeof C.strictZeros=="boolean"&&(C.relaxZeros=C.strictZeros===!1);let $=String(C.relaxZeros),w=String(C.shorthand),P=String(C.capture),I=String(C.wrap),k=y+":"+b+"="+$+w+P+I;if(n.cache.hasOwnProperty(k))return n.cache[k].result;let F=Math.min(y,b),S=Math.max(y,b);if(Math.abs(F-S)===1){let H=y+"|"+b;return C.capture?`(${H})`:C.wrap===!1?H:`(?:${H})`}let A=D(y)||D(b),B={min:y,max:b,a:F,b:S},x=[],N=[];if(A&&(B.isPadded=A,B.maxLen=String(B.max).length),F<0){let H=S<0?Math.abs(S):1;N=o(H,Math.abs(F),B,C),F=B.a=0}return S>=0&&(x=o(F,S,B,C)),B.negatives=N,B.positives=x,B.result=i(N,x),C.capture===!0?B.result=`(${B.result})`:C.wrap!==!1&&x.length+N.length>1&&(B.result=`(?:${B.result})`),n.cache[k]=B,B.result};function i(y,b,O){let C=u(y,b,"-",!1)||[],$=u(b,y,"",!1)||[],w=u(y,b,"-?",!0)||[];return C.concat(w).concat($).join("|")}function s(y,b){let O=1,C=1,$=p(y,O),w=new Set([b]);for(;y<=$&&$<=b;)w.add($),O+=1,$=p(y,O);for($=h(b+1,C)-1;y<$&&$<=b;)w.add($),C+=1,$=h(b+1,C)-1;return w=[...w],w.sort(c),w}function a(y,b,O){if(y===b)return{pattern:y,count:[],digits:0};let C=l(y,b),$=C.length,w="",P=0;for(let I=0;I<$;I++){let[k,F]=C[I];k===F?w+=k:k!=="0"||F!=="9"?w+=m(k,F):P++}return P&&(w+=O.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[P],digits:$}}function o(y,b,O,C){let $=s(y,b),w=[],P=y,I;for(let k=0;k<$.length;k++){let F=$[k],S=a(String(P),String(F),C),A="";if(!O.isPadded&&I&&I.pattern===S.pattern){I.count.length>1&&I.count.pop(),I.count.push(S.count[0]),I.string=I.pattern+d(I.count),P=F+1;continue}O.isPadded&&(A=g(F,O,C)),S.string=A+S.pattern+d(S.count),w.push(S),P=F+1,I=S}return w}function u(y,b,O,C,$){let w=[];for(let P of y){let{string:I}=P;!C&&!f(b,"string",I)&&w.push(O+I),C&&f(b,"string",I)&&w.push(O+I)}return w}function l(y,b){let O=[];for(let C=0;C<y.length;C++)O.push([y[C],b[C]]);return O}function c(y,b){return y>b?1:b>y?-1:0}function f(y,b,O){return y.some(C=>C[b]===O)}function p(y,b){return Number(String(y).slice(0,-b)+"9".repeat(b))}function h(y,b){return y-y%Math.pow(10,b)}function d(y){let[b=0,O=""]=y;return O||b>1?`{${b+(O?","+O:"")}}`:""}function m(y,b,O){return`[${y}${b-y===1?"":"-"}${b}]`}function D(y){return/^-?(0+)\d/.test(y)}function g(y,b,O){if(!b.isPadded)return y;let C=Math.abs(b.maxLen-String(y).length),$=O.relaxZeros!==!1;switch(C){case 0:return"";case 1:return $?"0?":"0";case 2:return $?"0{0,2}":"00";default:return $?`0{0,${C}}`:`0{${C}}`}}n.cache={},n.clearCache=()=>n.cache={},t.exports=n}}),Mm=he({"node_modules/fill-range/index.js"(e,t){var r=ot("util"),n=LS(),i=C=>C!==null&&typeof C=="object"&&!Array.isArray(C),s=C=>$=>C===!0?Number($):String($),a=C=>typeof C=="number"||typeof C=="string"&&C!=="",o=C=>Number.isInteger(+C),u=C=>{let $=`${C}`,w=-1;if($[0]==="-"&&($=$.slice(1)),$==="0")return!1;for(;$[++w]==="0";);return w>0},l=(C,$,w)=>typeof C=="string"||typeof $=="string"?!0:w.stringify===!0,c=(C,$,w)=>{if($>0){let P=C[0]==="-"?"-":"";P&&(C=C.slice(1)),C=P+C.padStart(P?$-1:$,"0")}return w===!1?String(C):C},f=(C,$)=>{let w=C[0]==="-"?"-":"";for(w&&(C=C.slice(1),$--);C.length<$;)C="0"+C;return w?"-"+C:C},p=(C,$,w)=>{C.negatives.sort((S,A)=>S<A?-1:S>A?1:0),C.positives.sort((S,A)=>S<A?-1:S>A?1:0);let P=$.capture?"":"?:",I="",k="",F;return C.positives.length&&(I=C.positives.map(S=>f(String(S),w)).join("|")),C.negatives.length&&(k=`-(${P}${C.negatives.map(S=>f(String(S),w)).join("|")})`),I&&k?F=`${I}|${k}`:F=I||k,$.wrap?`(${P}${F})`:F},h=(C,$,w,P)=>{if(w)return n(C,$,{wrap:!1,...P});let I=String.fromCharCode(C);if(C===$)return I;let k=String.fromCharCode($);return`[${I}-${k}]`},d=(C,$,w)=>{if(Array.isArray(C)){let P=w.wrap===!0,I=w.capture?"":"?:";return P?`(${I}${C.join("|")})`:C.join("|")}return n(C,$,w)},m=(...C)=>new RangeError("Invalid range arguments: "+r.inspect(...C)),D=(C,$,w)=>{if(w.strictRanges===!0)throw m([C,$]);return[]},g=(C,$)=>{if($.strictRanges===!0)throw new TypeError(`Expected step "${C}" to be a number`);return[]},y=(C,$,w=1,P={})=>{let I=Number(C),k=Number($);if(!Number.isInteger(I)||!Number.isInteger(k)){if(P.strictRanges===!0)throw m([C,$]);return[]}I===0&&(I=0),k===0&&(k=0);let F=I>k,S=String(C),A=String($),B=String(w);w=Math.max(Math.abs(w),1);let x=u(S)||u(A)||u(B),N=x?Math.max(S.length,A.length,B.length):0,H=x===!1&&l(C,$,P)===!1,T=P.transform||s(H);if(P.toRegex&&w===1)return h(f(C,N),f($,N),!0,P);let _={negatives:[],positives:[]},R=X=>_[X<0?"negatives":"positives"].push(Math.abs(X)),Q=[],ne=0;for(;F?I>=k:I<=k;)P.toRegex===!0&&w>1?R(I):Q.push(c(T(I,ne),N,H)),I=F?I-w:I+w,ne++;return P.toRegex===!0?w>1?p(_,P,N):d(Q,null,{wrap:!1,...P}):Q},b=(C,$,w=1,P={})=>{if(!o(C)&&C.length>1||!o($)&&$.length>1)return D(C,$,P);let I=P.transform||(H=>String.fromCharCode(H)),k=`${C}`.charCodeAt(0),F=`${$}`.charCodeAt(0),S=k>F,A=Math.min(k,F),B=Math.max(k,F);if(P.toRegex&&w===1)return h(A,B,!1,P);let x=[],N=0;for(;S?k>=F:k<=F;)x.push(I(k,N)),k=S?k-w:k+w,N++;return P.toRegex===!0?d(x,null,{wrap:!1,options:P}):x},O=(C,$,w,P={})=>{if($==null&&a(C))return[C];if(!a(C)||!a($))return D(C,$,P);if(typeof w=="function")return O(C,$,1,{transform:w});if(i(w))return O(C,$,0,w);let I={...P};return I.capture===!0&&(I.wrap=!0),w=w||I.step||1,o(w)?o(C)&&o($)?y(C,$,w,I):b(C,$,Math.max(Math.abs(w),1),I):w!=null&&!i(w)?g(w,I):O(C,$,1,w)};t.exports=O}}),RS=he({"node_modules/braces/lib/compile.js"(e,t){var r=Mm(),n=cc(),i=(s,a={})=>{const o=(u,l={})=>{const c=n.isInvalidBrace(l),f=u.invalid===!0&&a.escapeInvalid===!0,p=c===!0||f===!0,h=a.escapeInvalid===!0?"\\":"";let d="";if(u.isOpen===!0)return h+u.value;if(u.isClose===!0)return console.log("node.isClose",h,u.value),h+u.value;if(u.type==="open")return p?h+u.value:"(";if(u.type==="close")return p?h+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":p?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){const m=n.reduce(u.nodes),D=r(...m,{...a,wrap:!1,toRegex:!0,strictZeros:!0});if(D.length!==0)return m.length>1&&D.length>1?`(${D})`:D}if(u.nodes)for(const m of u.nodes)d+=o(m,u);return d};return o(s)};t.exports=i}}),MS=he({"node_modules/braces/lib/expand.js"(e,t){var r=Mm(),n=fc(),i=cc(),s=(o="",u="",l=!1)=>{const c=[];if(o=[].concat(o),u=[].concat(u),!u.length)return o;if(!o.length)return l?i.flatten(u).map(f=>`{${f}}`):u;for(const f of o)if(Array.isArray(f))for(const p of f)c.push(s(p,u,l));else for(let p of u)l===!0&&typeof p=="string"&&(p=`{${p}}`),c.push(Array.isArray(p)?s(f,p,l):f+p);return i.flatten(c)},a=(o,u={})=>{const l=u.rangeLimit===void 0?1e3:u.rangeLimit,c=(f,p={})=>{f.queue=[];let h=p,d=p.queue;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,d=h.queue;if(f.invalid||f.dollar){d.push(s(d.pop(),n(f,u)));return}if(f.type==="brace"&&f.invalid!==!0&&f.nodes.length===2){d.push(s(d.pop(),["{}"]));return}if(f.nodes&&f.ranges>0){const y=i.reduce(f.nodes);if(i.exceedsLimit(...y,u.step,l))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let b=r(...y,u);b.length===0&&(b=n(f,u)),d.push(s(d.pop(),b)),f.nodes=[];return}const m=i.encloseBrace(f);let D=f.queue,g=f;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,D=g.queue;for(let y=0;y<f.nodes.length;y++){const b=f.nodes[y];if(b.type==="comma"&&f.type==="brace"){y===1&&D.push(""),D.push("");continue}if(b.type==="close"){d.push(s(d.pop(),D,m));continue}if(b.value&&b.type!=="open"){D.push(s(D.pop(),b.value));continue}b.nodes&&c(b,f)}return D};return i.flatten(c(o))};t.exports=a}}),jS=he({"node_modules/braces/lib/constants.js"(e,t){t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
9
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}}),$S=he({"node_modules/braces/lib/parse.js"(e,t){var r=fc(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:s,CHAR_COMMA:a,CHAR_DOT:o,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:d,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:D,CHAR_ZERO_WIDTH_NOBREAK_SPACE:g}=jS(),y=(b,O={})=>{if(typeof b!="string")throw new TypeError("Expected a string");const C=O||{},$=typeof C.maxLength=="number"?Math.min(n,C.maxLength):n;if(b.length>$)throw new SyntaxError(`Input length (${b.length}), exceeds max characters (${$})`);const w={type:"root",input:b,nodes:[]},P=[w];let I=w,k=w,F=0;const S=b.length;let A=0,B=0,x;const N=()=>b[A++],H=T=>{if(T.type==="text"&&k.type==="dot"&&(k.type="text"),k&&k.type==="text"&&T.type==="text"){k.value+=T.value;return}return I.nodes.push(T),T.parent=I,T.prev=k,k=T,T};for(H({type:"bos"});A<S;)if(I=P[P.length-1],x=N(),!(x===g||x===D)){if(x===i){H({type:"text",value:(O.keepEscaping?x:"")+N()});continue}if(x===h){H({type:"text",value:"\\"+x});continue}if(x===p){F++;let T;for(;A<S&&(T=N());){if(x+=T,T===p){F++;continue}if(T===i){x+=N();continue}if(T===h&&(F--,F===0))break}H({type:"text",value:x});continue}if(x===u){I=H({type:"paren",nodes:[]}),P.push(I),H({type:"text",value:x});continue}if(x===l){if(I.type!=="paren"){H({type:"text",value:x});continue}I=P.pop(),H({type:"text",value:x}),I=P[P.length-1];continue}if(x===d||x===m||x===s){const T=x;let _;for(O.keepQuotes!==!0&&(x="");A<S&&(_=N());){if(_===i){x+=_+N();continue}if(_===T){O.keepQuotes===!0&&(x+=_);break}x+=_}H({type:"text",value:x});continue}if(x===c){B++;const _={type:"brace",open:!0,close:!1,dollar:k.value&&k.value.slice(-1)==="$"||I.dollar===!0,depth:B,commas:0,ranges:0,nodes:[]};I=H(_),P.push(I),H({type:"open",value:x});continue}if(x===f){if(I.type!=="brace"){H({type:"text",value:x});continue}const T="close";I=P.pop(),I.close=!0,H({type:T,value:x}),B--,I=P[P.length-1];continue}if(x===a&&B>0){if(I.ranges>0){I.ranges=0;const T=I.nodes.shift();I.nodes=[T,{type:"text",value:r(I)}]}H({type:"comma",value:x}),I.commas++;continue}if(x===o&&B>0&&I.commas===0){const T=I.nodes;if(B===0||T.length===0){H({type:"text",value:x});continue}if(k.type==="dot"){if(I.range=[],k.value+=x,k.type="range",I.nodes.length!==3&&I.nodes.length!==5){I.invalid=!0,I.ranges=0,k.type="text";continue}I.ranges++,I.args=[];continue}if(k.type==="range"){T.pop();const _=T[T.length-1];_.value+=k.value+x,k=_,I.ranges--;continue}H({type:"dot",value:x});continue}H({type:"text",value:x})}do if(I=P.pop(),I.type!=="root"){I.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});const T=P[P.length-1],_=T.nodes.indexOf(I);T.nodes.splice(_,1,...I.nodes)}while(P.length>0);return H({type:"eos"}),w};t.exports=y}}),US=he({"node_modules/braces/index.js"(e,t){var r=fc(),n=RS(),i=MS(),s=$S(),a=(o,u={})=>{let l=[];if(Array.isArray(o))for(const c of o){const f=a.create(c,u);Array.isArray(f)?l.push(...f):l.push(f)}else l=[].concat(a.create(o,u));return u&&u.expand===!0&&u.nodupes===!0&&(l=[...new Set(l)]),l};a.parse=(o,u={})=>s(o,u),a.stringify=(o,u={})=>r(typeof o=="string"?a.parse(o,u):o,u),a.compile=(o,u={})=>(typeof o=="string"&&(o=a.parse(o,u)),n(o,u)),a.expand=(o,u={})=>{typeof o=="string"&&(o=a.parse(o,u));let l=i(o,u);return u.noempty===!0&&(l=l.filter(Boolean)),u.nodupes===!0&&(l=[...new Set(l)]),l},a.create=(o,u={})=>o===""||o.length<3?[o]:u.expand!==!0?a.compile(o,u):a.expand(o,u),t.exports=a}}),Ao=he({"node_modules/picomatch/lib/constants.js"(e,t){var r=ot("path"),n="\\\\/",i=`[^${n}]`,s="\\.",a="\\+",o="\\?",u="\\/",l="(?=.)",c="[^/]",f=`(?:${u}|$)`,p=`(?:^|${u})`,h=`${s}{1,2}${f}`,d=`(?!${s})`,m=`(?!${p}${h})`,D=`(?!${s}{0,1}${f})`,g=`(?!${h})`,y=`[^.${u}]`,b=`${c}*?`,O={DOT_LITERAL:s,PLUS_LITERAL:a,QMARK_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:c,END_ANCHOR:f,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:m,NO_DOT_SLASH:D,NO_DOTS_SLASH:g,QMARK_NO_DOT:y,STAR:b,START_ANCHOR:p},C={...O,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${s}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[${n}])${s}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?C:O}}}}),Co=he({"node_modules/picomatch/lib/utils.js"(e){var t=ot("path"),r=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:a}=Ao();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>s.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(a,"\\$1"),e.toPosixSlashes=o=>o.replace(n,"/"),e.removeBackslashes=o=>o.replace(i,u=>u==="\\"?"":u),e.supportsLookbehinds=()=>{const o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},e.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:r===!0||t.sep==="\\",e.escapeLast=(o,u,l)=>{const c=o.lastIndexOf(u,l);return c===-1?o:o[c-1]==="\\"?e.escapeLast(o,u,c-1):`${o.slice(0,c)}\\${o.slice(c)}`},e.removePrefix=(o,u={})=>{let l=o;return l.startsWith("./")&&(l=l.slice(2),u.prefix="./"),l},e.wrapOutput=(o,u={},l={})=>{const c=l.contains?"":"^",f=l.contains?"":"$";let p=`${c}(?:${o})${f}`;return u.negated===!0&&(p=`(?:^(?!${p}).*$)`),p}}}),VS=he({"node_modules/picomatch/lib/scan.js"(e,t){var r=Co(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:D,CHAR_RIGHT_SQUARE_BRACKET:g}=Ao(),y=C=>C===l||C===s,b=C=>{C.isPrefix!==!0&&(C.depth=C.isGlobstar?1/0:1)},O=(C,$)=>{const w=$||{},P=C.length-1,I=w.parts===!0||w.scanToEnd===!0,k=[],F=[],S=[];let A=C,B=-1,x=0,N=0,H=!1,T=!1,_=!1,R=!1,Q=!1,ne=!1,X=!1,ae=!1,ie=!1,te=!1,Y=0,re,De,de={value:"",depth:0,isGlob:!1};const Ce=()=>B>=P,Ie=()=>A.charCodeAt(B+1),Te=()=>(re=De,A.charCodeAt(++B));for(;B<P;){De=Te();let ge;if(De===s){X=de.backslashes=!0,De=Te(),De===c&&(ne=!0);continue}if(ne===!0||De===c){for(Y++;Ce()!==!0&&(De=Te());){if(De===s){X=de.backslashes=!0,Te();continue}if(De===c){Y++;continue}if(ne!==!0&&De===o&&(De=Te())===o){if(H=de.isBrace=!0,_=de.isGlob=!0,te=!0,I===!0)continue;break}if(ne!==!0&&De===a){if(H=de.isBrace=!0,_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===m&&(Y--,Y===0)){ne=!1,H=de.isBrace=!0,te=!0;break}}if(I===!0)continue;break}if(De===l){if(k.push(B),F.push(de),de={value:"",depth:0,isGlob:!1},te===!0)continue;if(re===o&&B===x+1){x+=2;continue}N=B+1;continue}if(w.noext!==!0&&(De===h||De===i||De===n||De===d||De===u)===!0&&Ie()===f){if(_=de.isGlob=!0,R=de.isExtglob=!0,te=!0,De===u&&B===x&&(ie=!0),I===!0){for(;Ce()!==!0&&(De=Te());){if(De===s){X=de.backslashes=!0,De=Te();continue}if(De===D){_=de.isGlob=!0,te=!0;break}}continue}break}if(De===n){if(re===n&&(Q=de.isGlobstar=!0),_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===d){if(_=de.isGlob=!0,te=!0,I===!0)continue;break}if(De===p){for(;Ce()!==!0&&(ge=Te());){if(ge===s){X=de.backslashes=!0,Te();continue}if(ge===g){T=de.isBracket=!0,_=de.isGlob=!0,te=!0;break}}if(I===!0)continue;break}if(w.nonegate!==!0&&De===u&&B===x){ae=de.negated=!0,x++;continue}if(w.noparen!==!0&&De===f){if(_=de.isGlob=!0,I===!0){for(;Ce()!==!0&&(De=Te());){if(De===f){X=de.backslashes=!0,De=Te();continue}if(De===D){te=!0;break}}continue}break}if(_===!0){if(te=!0,I===!0)continue;break}}w.noext===!0&&(R=!1,_=!1);let Ne=A,Je="",Fe="";x>0&&(Je=A.slice(0,x),A=A.slice(x),N-=x),Ne&&_===!0&&N>0?(Ne=A.slice(0,N),Fe=A.slice(N)):_===!0?(Ne="",Fe=A):Ne=A,Ne&&Ne!==""&&Ne!=="/"&&Ne!==A&&y(Ne.charCodeAt(Ne.length-1))&&(Ne=Ne.slice(0,-1)),w.unescape===!0&&(Fe&&(Fe=r.removeBackslashes(Fe)),Ne&&X===!0&&(Ne=r.removeBackslashes(Ne)));const Oe={prefix:Je,input:C,start:x,base:Ne,glob:Fe,isBrace:H,isBracket:T,isGlob:_,isExtglob:R,isGlobstar:Q,negated:ae,negatedExtglob:ie};if(w.tokens===!0&&(Oe.maxDepth=0,y(De)||F.push(de),Oe.tokens=F),w.parts===!0||w.tokens===!0){let ge;for(let Ae=0;Ae<k.length;Ae++){const st=ge?ge+1:x,fe=k[Ae],$e=C.slice(st,fe);w.tokens&&(Ae===0&&x!==0?(F[Ae].isPrefix=!0,F[Ae].value=Je):F[Ae].value=$e,b(F[Ae]),Oe.maxDepth+=F[Ae].depth),(Ae!==0||$e!=="")&&S.push($e),ge=fe}if(ge&&ge+1<C.length){const Ae=C.slice(ge+1);S.push(Ae),w.tokens&&(F[F.length-1].value=Ae,b(F[F.length-1]),Oe.maxDepth+=F[F.length-1].depth)}Oe.slashes=k,Oe.parts=S}return Oe};t.exports=O}}),qS=he({"node_modules/picomatch/lib/parse.js"(e,t){var r=Ao(),n=Co(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:u}=r,l=(p,h)=>{if(typeof h.expandRange=="function")return h.expandRange(...p,h);p.sort();const d=`[${p.join("-")}]`;try{new RegExp(d)}catch{return p.map(D=>n.escapeRegex(D)).join("..")}return d},c=(p,h)=>`Missing ${p}: "${h}" - use "\\\\${h}" to match literal characters`,f=(p,h)=>{if(typeof p!="string")throw new TypeError("Expected a string");p=u[p]||p;const d={...h},m=typeof d.maxLength=="number"?Math.min(i,d.maxLength):i;let D=p.length;if(D>m)throw new SyntaxError(`Input length: ${D}, exceeds maximum allowed length: ${m}`);const g={type:"bos",value:"",output:d.prepend||""},y=[g],b=d.capture?"":"?:",O=n.isWindows(h),C=r.globChars(O),$=r.extglobChars(C),{DOT_LITERAL:w,PLUS_LITERAL:P,SLASH_LITERAL:I,ONE_CHAR:k,DOTS_SLASH:F,NO_DOT:S,NO_DOT_SLASH:A,NO_DOTS_SLASH:B,QMARK:x,QMARK_NO_DOT:N,STAR:H,START_ANCHOR:T}=C,_=fe=>`(${b}(?:(?!${T}${fe.dot?F:w}).)*?)`,R=d.dot?"":S,Q=d.dot?x:N;let ne=d.bash===!0?_(d):H;d.capture&&(ne=`(${ne})`),typeof d.noext=="boolean"&&(d.noextglob=d.noext);const X={input:p,index:-1,start:0,dot:d.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};p=n.removePrefix(p,X),D=p.length;const ae=[],ie=[],te=[];let Y=g,re;const De=()=>X.index===D-1,de=X.peek=(fe=1)=>p[X.index+fe],Ce=X.advance=()=>p[++X.index]||"",Ie=()=>p.slice(X.index+1),Te=(fe="",$e=0)=>{X.consumed+=fe,X.index+=$e},Ne=fe=>{X.output+=fe.output!=null?fe.output:fe.value,Te(fe.value)},Je=()=>{let fe=1;for(;de()==="!"&&(de(2)!=="("||de(3)==="?");)Ce(),X.start++,fe++;return fe%2===0?!1:(X.negated=!0,X.start++,!0)},Fe=fe=>{X[fe]++,te.push(fe)},Oe=fe=>{X[fe]--,te.pop()},ge=fe=>{if(Y.type==="globstar"){const $e=X.braces>0&&(fe.type==="comma"||fe.type==="brace"),Z=fe.extglob===!0||ae.length&&(fe.type==="pipe"||fe.type==="paren");fe.type!=="slash"&&fe.type!=="paren"&&!$e&&!Z&&(X.output=X.output.slice(0,-Y.output.length),Y.type="star",Y.value="*",Y.output=ne,X.output+=Y.output)}if(ae.length&&fe.type!=="paren"&&(ae[ae.length-1].inner+=fe.value),(fe.value||fe.output)&&Ne(fe),Y&&Y.type==="text"&&fe.type==="text"){Y.value+=fe.value,Y.output=(Y.output||"")+fe.value;return}fe.prev=Y,y.push(fe),Y=fe},Ae=(fe,$e)=>{const Z={...$[$e],conditions:1,inner:""};Z.prev=Y,Z.parens=X.parens,Z.output=X.output;const G=(d.capture?"(":"")+Z.open;Fe("parens"),ge({type:fe,value:$e,output:X.output?"":k}),ge({type:"paren",extglob:!0,value:Ce(),output:G}),ae.push(Z)},st=fe=>{let $e=fe.close+(d.capture?")":""),Z;if(fe.type==="negate"){let G=ne;if(fe.inner&&fe.inner.length>1&&fe.inner.includes("/")&&(G=_(d)),(G!==ne||De()||/^\)+$/.test(Ie()))&&($e=fe.close=`)$))${G}`),fe.inner.includes("*")&&(Z=Ie())&&/^\.[^\\/.]+$/.test(Z)){const V=f(Z,{...h,fastpaths:!1}).output;$e=fe.close=`)${V})${G})`}fe.prev.type==="bos"&&(X.negatedExtglob=!0)}ge({type:"paren",extglob:!0,value:re,output:$e}),Oe("parens")};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(p)){let fe=!1,$e=p.replace(o,(Z,G,V,E,j,z)=>E==="\\"?(fe=!0,Z):E==="?"?G?G+E+(j?x.repeat(j.length):""):z===0?Q+(j?x.repeat(j.length):""):x.repeat(V.length):E==="."?w.repeat(V.length):E==="*"?G?G+E+(j?ne:""):ne:G?Z:`\\${Z}`);return fe===!0&&(d.unescape===!0?$e=$e.replace(/\\/g,""):$e=$e.replace(/\\+/g,Z=>Z.length%2===0?"\\\\":Z?"\\":"")),$e===p&&d.contains===!0?(X.output=p,X):(X.output=n.wrapOutput($e,X,h),X)}for(;!De();){if(re=Ce(),re==="\0")continue;if(re==="\\"){const Z=de();if(Z==="/"&&d.bash!==!0||Z==="."||Z===";")continue;if(!Z){re+="\\",ge({type:"text",value:re});continue}const G=/^\\+/.exec(Ie());let V=0;if(G&&G[0].length>2&&(V=G[0].length,X.index+=V,V%2!==0&&(re+="\\")),d.unescape===!0?re=Ce():re+=Ce(),X.brackets===0){ge({type:"text",value:re});continue}}if(X.brackets>0&&(re!=="]"||Y.value==="["||Y.value==="[^")){if(d.posix!==!1&&re===":"){const Z=Y.value.slice(1);if(Z.includes("[")&&(Y.posix=!0,Z.includes(":"))){const G=Y.value.lastIndexOf("["),V=Y.value.slice(0,G),E=Y.value.slice(G+2),j=s[E];if(j){Y.value=V+j,X.backtrack=!0,Ce(),!g.output&&y.indexOf(Y)===1&&(g.output=k);continue}}}(re==="["&&de()!==":"||re==="-"&&de()==="]")&&(re=`\\${re}`),re==="]"&&(Y.value==="["||Y.value==="[^")&&(re=`\\${re}`),d.posix===!0&&re==="!"&&Y.value==="["&&(re="^"),Y.value+=re,Ne({value:re});continue}if(X.quotes===1&&re!=='"'){re=n.escapeRegex(re),Y.value+=re,Ne({value:re});continue}if(re==='"'){X.quotes=X.quotes===1?0:1,d.keepQuotes===!0&&ge({type:"text",value:re});continue}if(re==="("){Fe("parens"),ge({type:"paren",value:re});continue}if(re===")"){if(X.parens===0&&d.strictBrackets===!0)throw new SyntaxError(c("opening","("));const Z=ae[ae.length-1];if(Z&&X.parens===Z.parens+1){st(ae.pop());continue}ge({type:"paren",value:re,output:X.parens?")":"\\)"}),Oe("parens");continue}if(re==="["){if(d.nobracket===!0||!Ie().includes("]")){if(d.nobracket!==!0&&d.strictBrackets===!0)throw new SyntaxError(c("closing","]"));re=`\\${re}`}else Fe("brackets");ge({type:"bracket",value:re});continue}if(re==="]"){if(d.nobracket===!0||Y&&Y.type==="bracket"&&Y.value.length===1){ge({type:"text",value:re,output:`\\${re}`});continue}if(X.brackets===0){if(d.strictBrackets===!0)throw new SyntaxError(c("opening","["));ge({type:"text",value:re,output:`\\${re}`});continue}Oe("brackets");const Z=Y.value.slice(1);if(Y.posix!==!0&&Z[0]==="^"&&!Z.includes("/")&&(re=`/${re}`),Y.value+=re,Ne({value:re}),d.literalBrackets===!1||n.hasRegexChars(Z))continue;const G=n.escapeRegex(Y.value);if(X.output=X.output.slice(0,-Y.value.length),d.literalBrackets===!0){X.output+=G,Y.value=G;continue}Y.value=`(${b}${G}|${Y.value})`,X.output+=Y.value;continue}if(re==="{"&&d.nobrace!==!0){Fe("braces");const Z={type:"brace",value:re,output:"(",outputIndex:X.output.length,tokensIndex:X.tokens.length};ie.push(Z),ge(Z);continue}if(re==="}"){const Z=ie[ie.length-1];if(d.nobrace===!0||!Z){ge({type:"text",value:re,output:re});continue}let G=")";if(Z.dots===!0){const V=y.slice(),E=[];for(let j=V.length-1;j>=0&&(y.pop(),V[j].type!=="brace");j--)V[j].type!=="dots"&&E.unshift(V[j].value);G=l(E,d),X.backtrack=!0}if(Z.comma!==!0&&Z.dots!==!0){const V=X.output.slice(0,Z.outputIndex),E=X.tokens.slice(Z.tokensIndex);Z.value=Z.output="\\{",re=G="\\}",X.output=V;for(const j of E)X.output+=j.output||j.value}ge({type:"brace",value:re,output:G}),Oe("braces"),ie.pop();continue}if(re==="|"){ae.length>0&&ae[ae.length-1].conditions++,ge({type:"text",value:re});continue}if(re===","){let Z=re;const G=ie[ie.length-1];G&&te[te.length-1]==="braces"&&(G.comma=!0,Z="|"),ge({type:"comma",value:re,output:Z});continue}if(re==="/"){if(Y.type==="dot"&&X.index===X.start+1){X.start=X.index+1,X.consumed="",X.output="",y.pop(),Y=g;continue}ge({type:"slash",value:re,output:I});continue}if(re==="."){if(X.braces>0&&Y.type==="dot"){Y.value==="."&&(Y.output=w);const Z=ie[ie.length-1];Y.type="dots",Y.output+=re,Y.value+=re,Z.dots=!0;continue}if(X.braces+X.parens===0&&Y.type!=="bos"&&Y.type!=="slash"){ge({type:"text",value:re,output:w});continue}ge({type:"dot",value:re,output:w});continue}if(re==="?"){if(!(Y&&Y.value==="(")&&d.noextglob!==!0&&de()==="("&&de(2)!=="?"){Ae("qmark",re);continue}if(Y&&Y.type==="paren"){const G=de();let V=re;if(G==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(Y.value==="("&&!/[!=<:]/.test(G)||G==="<"&&!/<([!=]|\w+>)/.test(Ie()))&&(V=`\\${re}`),ge({type:"text",value:re,output:V});continue}if(d.dot!==!0&&(Y.type==="slash"||Y.type==="bos")){ge({type:"qmark",value:re,output:N});continue}ge({type:"qmark",value:re,output:x});continue}if(re==="!"){if(d.noextglob!==!0&&de()==="("&&(de(2)!=="?"||!/[!=<:]/.test(de(3)))){Ae("negate",re);continue}if(d.nonegate!==!0&&X.index===0){Je();continue}}if(re==="+"){if(d.noextglob!==!0&&de()==="("&&de(2)!=="?"){Ae("plus",re);continue}if(Y&&Y.value==="("||d.regex===!1){ge({type:"plus",value:re,output:P});continue}if(Y&&(Y.type==="bracket"||Y.type==="paren"||Y.type==="brace")||X.parens>0){ge({type:"plus",value:re});continue}ge({type:"plus",value:P});continue}if(re==="@"){if(d.noextglob!==!0&&de()==="("&&de(2)!=="?"){ge({type:"at",extglob:!0,value:re,output:""});continue}ge({type:"text",value:re});continue}if(re!=="*"){(re==="$"||re==="^")&&(re=`\\${re}`);const Z=a.exec(Ie());Z&&(re+=Z[0],X.index+=Z[0].length),ge({type:"text",value:re});continue}if(Y&&(Y.type==="globstar"||Y.star===!0)){Y.type="star",Y.star=!0,Y.value+=re,Y.output=ne,X.backtrack=!0,X.globstar=!0,Te(re);continue}let fe=Ie();if(d.noextglob!==!0&&/^\([^?]/.test(fe)){Ae("star",re);continue}if(Y.type==="star"){if(d.noglobstar===!0){Te(re);continue}const Z=Y.prev,G=Z.prev,V=Z.type==="slash"||Z.type==="bos",E=G&&(G.type==="star"||G.type==="globstar");if(d.bash===!0&&(!V||fe[0]&&fe[0]!=="/")){ge({type:"star",value:re,output:""});continue}const j=X.braces>0&&(Z.type==="comma"||Z.type==="brace"),z=ae.length&&(Z.type==="pipe"||Z.type==="paren");if(!V&&Z.type!=="paren"&&!j&&!z){ge({type:"star",value:re,output:""});continue}for(;fe.slice(0,3)==="/**";){const se=p[X.index+4];if(se&&se!=="/")break;fe=fe.slice(3),Te("/**",3)}if(Z.type==="bos"&&De()){Y.type="globstar",Y.value+=re,Y.output=_(d),X.output=Y.output,X.globstar=!0,Te(re);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&!E&&De()){X.output=X.output.slice(0,-(Z.output+Y.output).length),Z.output=`(?:${Z.output}`,Y.type="globstar",Y.output=_(d)+(d.strictSlashes?")":"|$)"),Y.value+=re,X.globstar=!0,X.output+=Z.output+Y.output,Te(re);continue}if(Z.type==="slash"&&Z.prev.type!=="bos"&&fe[0]==="/"){const se=fe[1]!==void 0?"|$":"";X.output=X.output.slice(0,-(Z.output+Y.output).length),Z.output=`(?:${Z.output}`,Y.type="globstar",Y.output=`${_(d)}${I}|${I}${se})`,Y.value+=re,X.output+=Z.output+Y.output,X.globstar=!0,Te(re+Ce()),ge({type:"slash",value:"/",output:""});continue}if(Z.type==="bos"&&fe[0]==="/"){Y.type="globstar",Y.value+=re,Y.output=`(?:^|${I}|${_(d)}${I})`,X.output=Y.output,X.globstar=!0,Te(re+Ce()),ge({type:"slash",value:"/",output:""});continue}X.output=X.output.slice(0,-Y.output.length),Y.type="globstar",Y.output=_(d),Y.value+=re,X.output+=Y.output,X.globstar=!0,Te(re);continue}const $e={type:"star",value:re,output:ne};if(d.bash===!0){$e.output=".*?",(Y.type==="bos"||Y.type==="slash")&&($e.output=R+$e.output),ge($e);continue}if(Y&&(Y.type==="bracket"||Y.type==="paren")&&d.regex===!0){$e.output=re,ge($e);continue}(X.index===X.start||Y.type==="slash"||Y.type==="dot")&&(Y.type==="dot"?(X.output+=A,Y.output+=A):d.dot===!0?(X.output+=B,Y.output+=B):(X.output+=R,Y.output+=R),de()!=="*"&&(X.output+=k,Y.output+=k)),ge($e)}for(;X.brackets>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing","]"));X.output=n.escapeLast(X.output,"["),Oe("brackets")}for(;X.parens>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing",")"));X.output=n.escapeLast(X.output,"("),Oe("parens")}for(;X.braces>0;){if(d.strictBrackets===!0)throw new SyntaxError(c("closing","}"));X.output=n.escapeLast(X.output,"{"),Oe("braces")}if(d.strictSlashes!==!0&&(Y.type==="star"||Y.type==="bracket")&&ge({type:"maybe_slash",value:"",output:`${I}?`}),X.backtrack===!0){X.output="";for(const fe of X.tokens)X.output+=fe.output!=null?fe.output:fe.value,fe.suffix&&(X.output+=fe.suffix)}return X};f.fastpaths=(p,h)=>{const d={...h},m=typeof d.maxLength=="number"?Math.min(i,d.maxLength):i,D=p.length;if(D>m)throw new SyntaxError(`Input length: ${D}, exceeds maximum allowed length: ${m}`);p=u[p]||p;const g=n.isWindows(h),{DOT_LITERAL:y,SLASH_LITERAL:b,ONE_CHAR:O,DOTS_SLASH:C,NO_DOT:$,NO_DOTS:w,NO_DOTS_SLASH:P,STAR:I,START_ANCHOR:k}=r.globChars(g),F=d.dot?w:$,S=d.dot?P:$,A=d.capture?"":"?:",B={negated:!1,prefix:""};let x=d.bash===!0?".*?":I;d.capture&&(x=`(${x})`);const N=R=>R.noglobstar===!0?x:`(${A}(?:(?!${k}${R.dot?C:y}).)*?)`,H=R=>{switch(R){case"*":return`${F}${O}${x}`;case".*":return`${y}${O}${x}`;case"*.*":return`${F}${x}${y}${O}${x}`;case"*/*":return`${F}${x}${b}${O}${S}${x}`;case"**":return F+N(d);case"**/*":return`(?:${F}${N(d)}${b})?${S}${O}${x}`;case"**/*.*":return`(?:${F}${N(d)}${b})?${S}${x}${y}${O}${x}`;case"**/.*":return`(?:${F}${N(d)}${b})?${y}${O}${x}`;default:{const Q=/^(.*?)\.(\w+)$/.exec(R);if(!Q)return;const ne=H(Q[1]);return ne?ne+y+Q[2]:void 0}}},T=n.removePrefix(p,B);let _=H(T);return _&&d.strictSlashes!==!0&&(_+=`${b}?`),_},t.exports=f}}),KS=he({"node_modules/picomatch/lib/picomatch.js"(e,t){var r=ot("path"),n=VS(),i=qS(),s=Co(),a=Ao(),o=l=>l&&typeof l=="object"&&!Array.isArray(l),u=(l,c,f=!1)=>{if(Array.isArray(l)){const b=l.map(C=>u(C,c,f));return C=>{for(const $ of b){const w=$(C);if(w)return w}return!1}}const p=o(l)&&l.tokens&&l.input;if(l===""||typeof l!="string"&&!p)throw new TypeError("Expected pattern to be a non-empty string");const h=c||{},d=s.isWindows(c),m=p?u.compileRe(l,c):u.makeRe(l,c,!1,!0),D=m.state;delete m.state;let g=()=>!1;if(h.ignore){const b={...c,ignore:null,onMatch:null,onResult:null};g=u(h.ignore,b,f)}const y=(b,O=!1)=>{const{isMatch:C,match:$,output:w}=u.test(b,m,c,{glob:l,posix:d}),P={glob:l,state:D,regex:m,posix:d,input:b,output:w,match:$,isMatch:C};return typeof h.onResult=="function"&&h.onResult(P),C===!1?(P.isMatch=!1,O?P:!1):g(b)?(typeof h.onIgnore=="function"&&h.onIgnore(P),P.isMatch=!1,O?P:!1):(typeof h.onMatch=="function"&&h.onMatch(P),O?P:!0)};return f&&(y.state=D),y};u.test=(l,c,f,{glob:p,posix:h}={})=>{if(typeof l!="string")throw new TypeError("Expected input to be a string");if(l==="")return{isMatch:!1,output:""};const d=f||{},m=d.format||(h?s.toPosixSlashes:null);let D=l===p,g=D&&m?m(l):l;return D===!1&&(g=m?m(l):l,D=g===p),(D===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?D=u.matchBase(l,c,f,h):D=c.exec(g)),{isMatch:!!D,match:D,output:g}},u.matchBase=(l,c,f,p=s.isWindows(f))=>(c instanceof RegExp?c:u.makeRe(c,f)).test(r.basename(l)),u.isMatch=(l,c,f)=>u(c,f)(l),u.parse=(l,c)=>Array.isArray(l)?l.map(f=>u.parse(f,c)):i(l,{...c,fastpaths:!1}),u.scan=(l,c)=>n(l,c),u.compileRe=(l,c,f=!1,p=!1)=>{if(f===!0)return l.output;const h=c||{},d=h.contains?"":"^",m=h.contains?"":"$";let D=`${d}(?:${l.output})${m}`;l&&l.negated===!0&&(D=`^(?!${D}).*$`);const g=u.toRegex(D,c);return p===!0&&(g.state=l),g},u.makeRe=(l,c={},f=!1,p=!1)=>{if(!l||typeof l!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(l[0]==="."||l[0]==="*")&&(h.output=i.fastpaths(l,c)),h.output||(h=i(l,c)),u.compileRe(h,c,f,p)},u.toRegex=(l,c)=>{try{const f=c||{};return new RegExp(l,f.flags||(f.nocase?"i":""))}catch(f){if(c&&c.debug===!0)throw f;return/$^/}},u.constants=a,t.exports=u}}),WS=he({"node_modules/picomatch/index.js"(e,t){t.exports=KS()}}),jm=he({"node_modules/micromatch/index.js"(e,t){var r=ot("util"),n=US(),i=WS(),s=Co(),a=u=>u===""||u==="./",o=(u,l,c)=>{l=[].concat(l),u=[].concat(u);let f=new Set,p=new Set,h=new Set,d=0,m=y=>{h.add(y.output),c&&c.onResult&&c.onResult(y)};for(let y=0;y<l.length;y++){let b=i(String(l[y]),{...c,onResult:m},!0),O=b.state.negated||b.state.negatedExtglob;O&&d++;for(let C of u){let $=b(C,!0);(O?!$.isMatch:$.isMatch)&&(O?f.add($.output):(f.delete($.output),p.add($.output)))}}let g=(d===l.length?[...h]:[...p]).filter(y=>!f.has(y));if(c&&g.length===0){if(c.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(c.nonull===!0||c.nullglob===!0)return c.unescape?l.map(y=>y.replace(/\\/g,"")):l}return g};o.match=o,o.matcher=(u,l)=>i(u,l),o.isMatch=(u,l,c)=>i(l,c)(u),o.any=o.isMatch,o.not=(u,l,c={})=>{l=[].concat(l).map(String);let f=new Set,p=[],h=m=>{c.onResult&&c.onResult(m),p.push(m.output)},d=new Set(o(u,l,{...c,onResult:h}));for(let m of p)d.has(m)||f.add(m);return[...f]},o.contains=(u,l,c)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);if(Array.isArray(l))return l.some(f=>o.contains(u,f,c));if(typeof l=="string"){if(a(u)||a(l))return!1;if(u.includes(l)||u.startsWith("./")&&u.slice(2).includes(l))return!0}return o.isMatch(u,l,{...c,contains:!0})},o.matchKeys=(u,l,c)=>{if(!s.isObject(u))throw new TypeError("Expected the first argument to be an object");let f=o(Object.keys(u),l,c),p={};for(let h of f)p[h]=u[h];return p},o.some=(u,l,c)=>{let f=[].concat(u);for(let p of[].concat(l)){let h=i(String(p),c);if(f.some(d=>h(d)))return!0}return!1},o.every=(u,l,c)=>{let f=[].concat(u);for(let p of[].concat(l)){let h=i(String(p),c);if(!f.every(d=>h(d)))return!1}return!0},o.all=(u,l,c)=>{if(typeof u!="string")throw new TypeError(`Expected a string: "${r.inspect(u)}"`);return[].concat(l).every(f=>i(f,c)(u))},o.capture=(u,l,c)=>{let f=s.isWindows(c),h=i.makeRe(String(u),{...c,capture:!0}).exec(f?s.toPosixSlashes(l):l);if(h)return h.slice(1).map(d=>d===void 0?"":d)},o.makeRe=(...u)=>i.makeRe(...u),o.scan=(...u)=>i.scan(...u),o.parse=(u,l)=>{let c=[];for(let f of[].concat(u||[]))for(let p of n(String(f),l))c.push(i.parse(p,l));return c},o.braces=(u,l)=>{if(typeof u!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!/\{.*\}/.test(u)?[u]:n(u,l)},o.braceExpand=(u,l)=>{if(typeof u!="string")throw new TypeError("Expected a string");return o.braces(u,{...l,expand:!0})},t.exports=o}}),HS=he({"node_modules/fast-glob/out/utils/pattern.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var t=ot("path"),r=BS(),n=jm(),i="**",s="\\",a=/[*?]|^!/,o=/\[[^[]*]/,u=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,l=/[!*+?@]\([^(]*\)/,c=/,|\.\./,f=/(?!^)\/{2,}/g;function p(_,R={}){return!h(_,R)}e.isStaticPattern=p;function h(_,R={}){return _===""?!1:!!(R.caseSensitiveMatch===!1||_.includes(s)||a.test(_)||o.test(_)||u.test(_)||R.extglob!==!1&&l.test(_)||R.braceExpansion!==!1&&d(_))}e.isDynamicPattern=h;function d(_){const R=_.indexOf("{");if(R===-1)return!1;const Q=_.indexOf("}",R+1);if(Q===-1)return!1;const ne=_.slice(R,Q);return c.test(ne)}function m(_){return g(_)?_.slice(1):_}e.convertToPositivePattern=m;function D(_){return"!"+_}e.convertToNegativePattern=D;function g(_){return _.startsWith("!")&&_[1]!=="("}e.isNegativePattern=g;function y(_){return!g(_)}e.isPositivePattern=y;function b(_){return _.filter(g)}e.getNegativePatterns=b;function O(_){return _.filter(y)}e.getPositivePatterns=O;function C(_){return _.filter(R=>!w(R))}e.getPatternsInsideCurrentDirectory=C;function $(_){return _.filter(w)}e.getPatternsOutsideCurrentDirectory=$;function w(_){return _.startsWith("..")||_.startsWith("./..")}e.isPatternRelatedToParentDirectory=w;function P(_){return r(_,{flipBackslashes:!1})}e.getBaseDirectory=P;function I(_){return _.includes(i)}e.hasGlobStar=I;function k(_){return _.endsWith("/"+i)}e.endsWithSlashGlobStar=k;function F(_){const R=t.basename(_);return k(_)||p(R)}e.isAffectDepthOfReadingPattern=F;function S(_){return _.reduce((R,Q)=>R.concat(A(Q)),[])}e.expandPatternsWithBraceExpansion=S;function A(_){const R=n.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return R.sort((Q,ne)=>Q.length-ne.length),R.filter(Q=>Q!=="")}e.expandBraceExpansion=A;function B(_,R){let{parts:Q}=n.scan(_,Object.assign(Object.assign({},R),{parts:!0}));return Q.length===0&&(Q=[_]),Q[0].startsWith("/")&&(Q[0]=Q[0].slice(1),Q.unshift("")),Q}e.getPatternParts=B;function x(_,R){return n.makeRe(_,R)}e.makeRe=x;function N(_,R){return _.map(Q=>x(Q,R))}e.convertPatternsToRe=N;function H(_,R){return R.some(Q=>Q.test(_))}e.matchAny=H;function T(_){return _.replace(f,"/")}e.removeDuplicateSlashes=T}}),GS=he({"node_modules/merge2/index.js"(e,t){var r=ot("stream"),n=r.PassThrough,i=Array.prototype.slice;t.exports=s;function s(){const o=[],u=i.call(arguments);let l=!1,c=u[u.length-1];c&&!Array.isArray(c)&&c.pipe==null?u.pop():c={};const f=c.end!==!1,p=c.pipeError===!0;c.objectMode==null&&(c.objectMode=!0),c.highWaterMark==null&&(c.highWaterMark=64*1024);const h=n(c);function d(){for(let g=0,y=arguments.length;g<y;g++)o.push(a(arguments[g],c));return m(),this}function m(){if(l)return;l=!0;let g=o.shift();if(!g){process.nextTick(D);return}Array.isArray(g)||(g=[g]);let y=g.length+1;function b(){--y>0||(l=!1,m())}function O(C){function $(){C.removeListener("merge2UnpipeEnd",$),C.removeListener("end",$),p&&C.removeListener("error",w),b()}function w(P){h.emit("error",P)}if(C._readableState.endEmitted)return b();C.on("merge2UnpipeEnd",$),C.on("end",$),p&&C.on("error",w),C.pipe(h,{end:!1}),C.resume()}for(let C=0;C<g.length;C++)O(g[C]);b()}function D(){l=!1,h.emit("queueDrain"),f&&h.end()}return h.setMaxListeners(0),h.add=d,h.on("unpipe",function(g){g.emit("merge2UnpipeEnd")}),u.length&&d.apply(null,u),h}function a(o,u){if(Array.isArray(o))for(let l=0,c=o.length;l<c;l++)o[l]=a(o[l],u);else{if(!o._readableState&&o.pipe&&(o=o.pipe(n(u))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}}}),YS=he({"node_modules/fast-glob/out/utils/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var t=GS();function r(i){const s=t(i);return i.forEach(a=>{a.once("error",o=>s.emit("error",o))}),s.once("close",()=>n(i)),s.once("end",()=>n(i)),s}e.merge=r;function n(i){i.forEach(s=>s.emit("close"))}}}),XS=he({"node_modules/fast-glob/out/utils/string.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function t(n){return typeof n=="string"}e.isString=t;function r(n){return n===""}e.isEmpty=r}}),In=he({"node_modules/fast-glob/out/utils/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var t=FS();e.array=t;var r=_S();e.errno=r;var n=wS();e.fs=n;var i=IS();e.path=i;var s=HS();e.pattern=s;var a=YS();e.stream=a;var o=XS();e.string=o}}),JS=he({"node_modules/fast-glob/out/managers/tasks.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var t=In();function r(c,f){const p=n(c,f),h=n(f.ignore,f),d=s(p),m=a(p,h),D=d.filter(O=>t.pattern.isStaticPattern(O,f)),g=d.filter(O=>t.pattern.isDynamicPattern(O,f)),y=i(D,m,!1),b=i(g,m,!0);return y.concat(b)}e.generate=r;function n(c,f){let p=c;return f.braceExpansion&&(p=t.pattern.expandPatternsWithBraceExpansion(p)),f.baseNameMatch&&(p=p.map(h=>h.includes("/")?h:`**/${h}`)),p.map(h=>t.pattern.removeDuplicateSlashes(h))}function i(c,f,p){const h=[],d=t.pattern.getPatternsOutsideCurrentDirectory(c),m=t.pattern.getPatternsInsideCurrentDirectory(c),D=o(d),g=o(m);return h.push(...u(D,f,p)),"."in g?h.push(l(".",m,f,p)):h.push(...u(g,f,p)),h}e.convertPatternsToTasks=i;function s(c){return t.pattern.getPositivePatterns(c)}e.getPositivePatterns=s;function a(c,f){return t.pattern.getNegativePatterns(c).concat(f).map(t.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=a;function o(c){const f={};return c.reduce((p,h)=>{const d=t.pattern.getBaseDirectory(h);return d in p?p[d].push(h):p[d]=[h],p},f)}e.groupPatternsByBaseDirectory=o;function u(c,f,p){return Object.keys(c).map(h=>l(h,c[h],f,p))}e.convertPatternGroupsToTasks=u;function l(c,f,p,h){return{dynamic:h,positive:f,negative:p,base:c,patterns:[].concat(f,p.map(t.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=l}}),zS=he({"node_modules/@nodelib/fs.stat/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(i,s,a){s.fs.lstat(i,(o,u)=>{if(o!==null){r(a,o);return}if(!u.isSymbolicLink()||!s.followSymbolicLink){n(a,u);return}s.fs.stat(i,(l,c)=>{if(l!==null){if(s.throwErrorOnBrokenSymbolicLink){r(a,l);return}n(a,u);return}s.markSymbolicLink&&(c.isSymbolicLink=()=>!0),n(a,c)})})}e.read=t;function r(i,s){i(s)}function n(i,s){i(null,s)}}}),QS=he({"node_modules/@nodelib/fs.stat/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function t(r,n){const i=n.fs.lstatSync(r);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{const s=n.fs.statSync(r);return n.markSymbolicLink&&(s.isSymbolicLink=()=>!0),s}catch(s){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw s}}e.read=t}}),ZS=he({"node_modules/@nodelib/fs.stat/out/adapters/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),e1=he({"node_modules/@nodelib/fs.stat/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ZS(),r=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=t.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n??i}};e.default=r}}),ji=he({"node_modules/@nodelib/fs.stat/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var t=zS(),r=QS(),n=e1();e.Settings=n.default;function i(o,u,l){if(typeof u=="function"){t.read(o,a(),u);return}t.read(o,a(u),l)}e.stat=i;function s(o,u){const l=a(u);return r.read(o,l)}e.statSync=s;function a(o={}){return o instanceof n.default?o:new n.default(o)}}}),t1=he({"node_modules/queue-microtask/index.js"(e,t){var r;t.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(r||(r=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}}),r1=he({"node_modules/run-parallel/index.js"(e,t){t.exports=n;var r=t1();function n(i,s){let a,o,u,l=!0;Array.isArray(i)?(a=[],o=i.length):(u=Object.keys(i),a={},o=u.length);function c(p){function h(){s&&s(p,a),s=null}l?r(h):h()}function f(p,h,d){a[p]=d,(--o===0||h)&&c(h)}o?u?u.forEach(function(p){i[p](function(h,d){f(p,h,d)})}):i.forEach(function(p,h){p(function(d,m){f(h,d,m)})}):c(null),l=!1}}}),$m=he({"node_modules/@nodelib/fs.scandir/out/constants.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var t=process.versions.node.split(".");if(t[0]===void 0||t[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var r=Number.parseInt(t[0],10),n=Number.parseInt(t[1],10),i=10,s=10,a=r>i,o=r===i&&n>=s;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||o}}),n1=he({"node_modules/@nodelib/fs.scandir/out/utils/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var t=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function r(n,i){return new t(n,i)}e.createDirentFromStats=r}}),Um=he({"node_modules/@nodelib/fs.scandir/out/utils/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var t=n1();e.fs=t}}),Vm=he({"node_modules/@nodelib/fs.scandir/out/providers/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function t(r,n,i){return r.endsWith(i)?r+n:r+i+n}e.joinPathSegments=t}}),i1=he({"node_modules/@nodelib/fs.scandir/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=ji(),r=r1(),n=$m(),i=Um(),s=Vm();function a(p,h,d){if(!h.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){o(p,h,d);return}l(p,h,d)}e.read=a;function o(p,h,d){h.fs.readdir(p,{withFileTypes:!0},(m,D)=>{if(m!==null){c(d,m);return}const g=D.map(b=>({dirent:b,name:b.name,path:s.joinPathSegments(p,b.name,h.pathSegmentSeparator)}));if(!h.followSymbolicLinks){f(d,g);return}const y=g.map(b=>u(b,h));r(y,(b,O)=>{if(b!==null){c(d,b);return}f(d,O)})})}e.readdirWithFileTypes=o;function u(p,h){return d=>{if(!p.dirent.isSymbolicLink()){d(null,p);return}h.fs.stat(p.path,(m,D)=>{if(m!==null){if(h.throwErrorOnBrokenSymbolicLink){d(m);return}d(null,p);return}p.dirent=i.fs.createDirentFromStats(p.name,D),d(null,p)})}}function l(p,h,d){h.fs.readdir(p,(m,D)=>{if(m!==null){c(d,m);return}const g=D.map(y=>{const b=s.joinPathSegments(p,y,h.pathSegmentSeparator);return O=>{t.stat(b,h.fsStatSettings,(C,$)=>{if(C!==null){O(C);return}const w={name:y,path:b,dirent:i.fs.createDirentFromStats(y,$)};h.stats&&(w.stats=$),O(null,w)})}});r(g,(y,b)=>{if(y!==null){c(d,y);return}f(d,b)})})}e.readdir=l;function c(p,h){p(h)}function f(p,h){p(null,h)}}}),s1=he({"node_modules/@nodelib/fs.scandir/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var t=ji(),r=$m(),n=Um(),i=Vm();function s(u,l){return!l.stats&&r.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(u,l):o(u,l)}e.read=s;function a(u,l){return l.fs.readdirSync(u,{withFileTypes:!0}).map(f=>{const p={dirent:f,name:f.name,path:i.joinPathSegments(u,f.name,l.pathSegmentSeparator)};if(p.dirent.isSymbolicLink()&&l.followSymbolicLinks)try{const h=l.fs.statSync(p.path);p.dirent=n.fs.createDirentFromStats(p.name,h)}catch(h){if(l.throwErrorOnBrokenSymbolicLink)throw h}return p})}e.readdirWithFileTypes=a;function o(u,l){return l.fs.readdirSync(u).map(f=>{const p=i.joinPathSegments(u,f,l.pathSegmentSeparator),h=t.statSync(p,l.fsStatSettings),d={name:f,path:p,dirent:n.fs.createDirentFromStats(f,h)};return l.stats&&(d.stats=h),d})}e.readdir=o}}),a1=he({"node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs");e.FILE_SYSTEM_ADAPTER={lstat:t.lstat,stat:t.stat,lstatSync:t.lstatSync,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};function r(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=r}}),o1=he({"node_modules/@nodelib/fs.scandir/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=ji(),n=a1(),i=class{constructor(s={}){this._options=s,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new r.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(s,a){return s??a}};e.default=i}}),pc=he({"node_modules/@nodelib/fs.scandir/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var t=i1(),r=s1(),n=o1();e.Settings=n.default;function i(o,u,l){if(typeof u=="function"){t.read(o,a(),u);return}t.read(o,a(u),l)}e.scandir=i;function s(o,u){const l=a(u);return r.read(o,l)}e.scandirSync=s;function a(o={}){return o instanceof n.default?o:new n.default(o)}}}),u1=he({"node_modules/reusify/reusify.js"(e,t){function r(n){var i=new n,s=i;function a(){var u=i;return u.next?i=u.next:(i=new n,s=i),u.next=null,u}function o(u){s.next=u,s=u}return{get:a,release:o}}t.exports=r}}),l1=he({"node_modules/fastq/queue.js"(e,t){var r=u1();function n(o,u,l){if(typeof o=="function"&&(l=u,u=o,o=null),!(l>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var c=r(s),f=null,p=null,h=0,d=null,m={push:$,drain:i,saturated:i,pause:g,paused:!1,get concurrency(){return l},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(l=S,!m.paused)for(;f&&h<l;)h++,P()},running:D,resume:O,idle:C,length:y,getQueue:b,unshift:w,empty:i,kill:I,killAndDrain:k,error:F};return m;function D(){return h}function g(){m.paused=!0}function y(){for(var S=f,A=0;S;)S=S.next,A++;return A}function b(){for(var S=f,A=[];S;)A.push(S.value),S=S.next;return A}function O(){if(m.paused){if(m.paused=!1,f===null){h++,P();return}for(;f&&h<l;)h++,P()}}function C(){return h===0&&m.length()===0}function $(S,A){var B=c.get();B.context=o,B.release=P,B.value=S,B.callback=A||i,B.errorHandler=d,h>=l||m.paused?p?(p.next=B,p=B):(f=B,p=B,m.saturated()):(h++,u.call(o,B.value,B.worked))}function w(S,A){var B=c.get();B.context=o,B.release=P,B.value=S,B.callback=A||i,B.errorHandler=d,h>=l||m.paused?f?(B.next=f,f=B):(f=B,p=B,m.saturated()):(h++,u.call(o,B.value,B.worked))}function P(S){S&&c.release(S);var A=f;A&&h<=l?m.paused?h--:(p===f&&(p=null),f=A.next,A.next=null,u.call(o,A.value,A.worked),p===null&&m.empty()):--h===0&&m.drain()}function I(){f=null,p=null,m.drain=i}function k(){f=null,p=null,m.drain(),m.drain=i}function F(S){d=S}}function i(){}function s(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var o=this;this.worked=function(l,c){var f=o.callback,p=o.errorHandler,h=o.value;o.value=null,o.callback=i,o.errorHandler&&p(l,h),f.call(o.context,l,c),o.release(o)}}function a(o,u,l){typeof o=="function"&&(l=u,u=o,o=null);function c(g,y){u.call(this,g).then(function(b){y(null,b)},y)}var f=n(o,c,l),p=f.push,h=f.unshift;return f.push=d,f.unshift=m,f.drained=D,f;function d(g){var y=new Promise(function(b,O){p(g,function(C,$){if(C){O(C);return}b($)})});return y.catch(i),y}function m(g){var y=new Promise(function(b,O){h(g,function(C,$){if(C){O(C);return}b($)})});return y.catch(i),y}function D(){if(f.idle())return new Promise(function(b){b()});var g=f.drain,y=new Promise(function(b){f.drain=function(){g(),b()}});return y}}t.exports=n,t.exports.promise=a}}),hc=he({"node_modules/@nodelib/fs.walk/out/readers/common.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function t(s,a){return s.errorFilter===null?!0:!s.errorFilter(a)}e.isFatalError=t;function r(s,a){return s===null||s(a)}e.isAppliedFilter=r;function n(s,a){return s.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(s,a,o){return s===""?a:s.endsWith(o)?s+a:s+o+a}e.joinPathSegments=i}}),qm=he({"node_modules/@nodelib/fs.walk/out/readers/reader.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=hc(),r=class{constructor(n,i){this._root=n,this._settings=i,this._root=t.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=r}}),Km=he({"node_modules/@nodelib/fs.walk/out/readers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("events"),r=pc(),n=l1(),i=hc(),s=qm(),a=class extends s.default{constructor(o,u){super(o,u),this._settings=u,this._scandir=r.scandir,this._emitter=new t.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(o){this._emitter.on("entry",o)}onError(o){this._emitter.once("error",o)}onEnd(o){this._emitter.once("end",o)}_pushToQueue(o,u){const l={directory:o,base:u};this._queue.push(l,c=>{c!==null&&this._handleError(c)})}_worker(o,u){this._scandir(o.directory,this._settings.fsScandirSettings,(l,c)=>{if(l!==null){u(l,void 0);return}for(const f of c)this._handleEntry(f,o.base);u(null,void 0)})}_handleError(o){this._isDestroyed||!i.isFatalError(this._settings,o)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",o))}_handleEntry(o,u){if(this._isDestroyed||this._isFatalError)return;const l=o.path;u!==void 0&&(o.path=i.joinPathSegments(u,o.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,o)&&this._emitEntry(o),o.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,o)&&this._pushToQueue(l,u===void 0?void 0:o.path)}_emitEntry(o){this._emitter.emit("entry",o)}};e.default=a}}),c1=he({"node_modules/@nodelib/fs.walk/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Km(),r=class{constructor(s,a){this._root=s,this._settings=a,this._reader=new t.default(this._root,this._settings),this._storage=[]}read(s){this._reader.onError(a=>{n(s,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(s,this._storage)}),this._reader.read()}};e.default=r;function n(s,a){s(a)}function i(s,a){s(null,a)}}}),f1=he({"node_modules/@nodelib/fs.walk/out/providers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=Km(),n=class{constructor(i,s){this._root=i,this._settings=s,this._reader=new r.default(this._root,this._settings),this._stream=new t.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}}),p1=he({"node_modules/@nodelib/fs.walk/out/readers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=pc(),r=hc(),n=qm(),i=class extends n.default{constructor(){super(...arguments),this._scandir=t.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(s,a){this._queue.add({directory:s,base:a})}_handleQueue(){for(const s of this._queue.values())this._handleDirectory(s.directory,s.base)}_handleDirectory(s,a){try{const o=this._scandir(s,this._settings.fsScandirSettings);for(const u of o)this._handleEntry(u,a)}catch(o){this._handleError(o)}}_handleError(s){if(r.isFatalError(this._settings,s))throw s}_handleEntry(s,a){const o=s.path;a!==void 0&&(s.path=r.joinPathSegments(a,s.name,this._settings.pathSegmentSeparator)),r.isAppliedFilter(this._settings.entryFilter,s)&&this._pushToStorage(s),s.dirent.isDirectory()&&r.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(o,a===void 0?void 0:s.path)}_pushToStorage(s){this._storage.push(s)}};e.default=i}}),h1=he({"node_modules/@nodelib/fs.walk/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=p1(),r=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new t.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=r}}),d1=he({"node_modules/@nodelib/fs.walk/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=pc(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,t.sep),this.fsScandirSettings=new r.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,s){return i??s}};e.default=n}}),dc=he({"node_modules/@nodelib/fs.walk/out/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var t=c1(),r=f1(),n=h1(),i=d1();e.Settings=i.default;function s(l,c,f){if(typeof c=="function"){new t.default(l,u()).read(c);return}new t.default(l,u(c)).read(f)}e.walk=s;function a(l,c){const f=u(c);return new n.default(l,f).read()}e.walkSync=a;function o(l,c){const f=u(c);return new r.default(l,f).read()}e.walkStream=o;function u(l={}){return l instanceof i.default?l:new i.default(l)}}}),mc=he({"node_modules/fast-glob/out/readers/reader.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=ji(),n=In(),i=class{constructor(s){this._settings=s,this._fsStatSettings=new r.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(s){return t.resolve(this._settings.cwd,s)}_makeEntry(s,a){const o={name:a,path:a,dirent:n.fs.createDirentFromStats(a,s)};return this._settings.stats&&(o.stats=s),o}_isFatalError(s){return!n.errno.isEnoentCodeError(s)&&!this._settings.suppressErrors}};e.default=i}}),Wm=he({"node_modules/fast-glob/out/readers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=ji(),n=dc(),i=mc(),s=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=r.stat}dynamic(a,o){return this._walkStream(a,o)}static(a,o){const u=a.map(this._getFullEntryPath,this),l=new t.PassThrough({objectMode:!0});l._write=(c,f,p)=>this._getEntry(u[c],a[c],o).then(h=>{h!==null&&o.entryFilter(h)&&l.push(h),c===u.length-1&&l.end(),p()}).catch(p);for(let c=0;c<u.length;c++)l.write(c);return l}_getEntry(a,o,u){return this._getStat(a).then(l=>this._makeEntry(l,o)).catch(l=>{if(u.errorFilter(l))return null;throw l})}_getStat(a){return new Promise((o,u)=>{this._stat(a,this._fsStatSettings,(l,c)=>l===null?o(c):u(l))})}};e.default=s}}),m1=he({"node_modules/fast-glob/out/readers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=dc(),r=mc(),n=Wm(),i=class extends r.default{constructor(){super(...arguments),this._walkAsync=t.walk,this._readerStream=new n.default(this._settings)}dynamic(s,a){return new Promise((o,u)=>{this._walkAsync(s,a,(l,c)=>{l===null?o(c):u(l)})})}async static(s,a){const o=[],u=this._readerStream.static(s,a);return new Promise((l,c)=>{u.once("error",c),u.on("data",f=>o.push(f)),u.once("end",()=>l(o))})}};e.default=i}}),y1=he({"node_modules/fast-glob/out/providers/matchers/matcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=In(),r=class{constructor(n,i,s){this._patterns=n,this._settings=i,this._micromatchOptions=s,this._storage=[],this._fillStorage()}_fillStorage(){for(const n of this._patterns){const i=this._getPatternSegments(n),s=this._splitSegmentsIntoSections(i);this._storage.push({complete:s.length<=1,pattern:n,segments:i,sections:s})}}_getPatternSegments(n){return t.pattern.getPatternParts(n,this._micromatchOptions).map(s=>t.pattern.isDynamicPattern(s,this._settings)?{dynamic:!0,pattern:s,patternRe:t.pattern.makeRe(s,this._micromatchOptions)}:{dynamic:!1,pattern:s})}_splitSegmentsIntoSections(n){return t.array.splitWhen(n,i=>i.dynamic&&t.pattern.hasGlobStar(i.pattern))}};e.default=r}}),D1=he({"node_modules/fast-glob/out/providers/matchers/partial.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=y1(),r=class extends t.default{match(n){const i=n.split("/"),s=i.length,a=this._storage.filter(o=>!o.complete||o.segments.length>s);for(const o of a){const u=o.sections[0];if(!o.complete&&s>u.length||i.every((c,f)=>{const p=o.segments[f];return!!(p.dynamic&&p.patternRe.test(c)||!p.dynamic&&p.pattern===c)}))return!0}return!1}};e.default=r}}),g1=he({"node_modules/fast-glob/out/providers/filters/deep.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=In(),r=D1(),n=class{constructor(i,s){this._settings=i,this._micromatchOptions=s}getFilter(i,s,a){const o=this._getMatcher(s),u=this._getNegativePatternsRe(a);return l=>this._filter(i,l,o,u)}_getMatcher(i){return new r.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){const s=i.filter(t.pattern.isAffectDepthOfReadingPattern);return t.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(i,s,a,o){if(this._isSkippedByDeep(i,s.path)||this._isSkippedSymbolicLink(s))return!1;const u=t.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(u,a)?!1:this._isSkippedByNegativePatterns(u,o)}_isSkippedByDeep(i,s){return this._settings.deep===1/0?!1:this._getEntryLevel(i,s)>=this._settings.deep}_getEntryLevel(i,s){const a=s.split("/").length;if(i==="")return a;const o=i.split("/").length;return a-o}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,s){return!this._settings.baseNameMatch&&!s.match(i)}_isSkippedByNegativePatterns(i,s){return!t.pattern.matchAny(i,s)}};e.default=n}}),E1=he({"node_modules/fast-glob/out/providers/filters/entry.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=In(),r=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){const s=t.pattern.convertPatternsToRe(n,this._micromatchOptions),a=t.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return o=>this._filter(o,s,a)}_filter(n,i,s){const a=t.path.removeLeadingDotSegment(n.path);if(this._settings.unique&&this._isDuplicateEntry(a)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(a,s))return!1;const o=n.dirent.isDirectory(),u=this._isMatchToPatterns(a,i,o)&&!this._isMatchToPatterns(a,s,o);return this._settings.unique&&u&&this._createIndexRecord(a),u}_isDuplicateEntry(n){return this.index.has(n)}_createIndexRecord(n){this.index.set(n,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;const s=t.path.makeAbsolute(this._settings.cwd,n);return t.pattern.matchAny(s,i)}_isMatchToPatterns(n,i,s){const a=t.pattern.matchAny(n,i);return!a&&s?t.pattern.matchAny(n+"/",i):a}};e.default=r}}),b1=he({"node_modules/fast-glob/out/providers/filters/error.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=In(),r=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return t.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=r}}),T1=he({"node_modules/fast-glob/out/providers/transformers/entry.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=In(),r=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=t.path.makeAbsolute(this._settings.cwd,i),i=t.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=r}}),yc=he({"node_modules/fast-glob/out/providers/provider.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("path"),r=g1(),n=E1(),i=b1(),s=T1(),a=class{constructor(o){this._settings=o,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new r.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new s.default(this._settings)}_getRootDirectory(o){return t.resolve(this._settings.cwd,o.base)}_getReaderOptions(o){const u=o.base==="."?"":o.base;return{basePath:u,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(u,o.positive,o.negative),entryFilter:this.entryFilter.getFilter(o.positive,o.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}}),S1=he({"node_modules/fast-glob/out/providers/async.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=m1(),r=yc(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}async read(i){const s=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(s,i,a)).map(u=>a.transform(u))}api(i,s,a){return s.dynamic?this._reader.dynamic(i,a):this._reader.static(s.patterns,a)}};e.default=n}}),v1=he({"node_modules/fast-glob/out/providers/stream.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ot("stream"),r=Wm(),n=yc(),i=class extends n.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(s){const a=this._getRootDirectory(s),o=this._getReaderOptions(s),u=this.api(a,s,o),l=new t.Readable({objectMode:!0,read:()=>{}});return u.once("error",c=>l.emit("error",c)).on("data",c=>l.emit("data",o.transform(c))).once("end",()=>l.emit("end")),l.once("close",()=>u.destroy()),l}api(s,a,o){return a.dynamic?this._reader.dynamic(s,o):this._reader.static(a.patterns,o)}};e.default=i}}),A1=he({"node_modules/fast-glob/out/readers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=ji(),r=dc(),n=mc(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=r.walkSync,this._statSync=t.statSync}dynamic(s,a){return this._walkSync(s,a)}static(s,a){const o=[];for(const u of s){const l=this._getFullEntryPath(u),c=this._getEntry(l,u,a);c===null||!a.entryFilter(c)||o.push(c)}return o}_getEntry(s,a,o){try{const u=this._getStat(s);return this._makeEntry(u,a)}catch(u){if(o.errorFilter(u))return null;throw u}}_getStat(s){return this._statSync(s,this._fsStatSettings)}};e.default=i}}),C1=he({"node_modules/fast-glob/out/providers/sync.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=A1(),r=yc(),n=class extends r.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(i){const s=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(s,i,a).map(a.transform)}api(i,s,a){return s.dynamic?this._reader.dynamic(i,a):this._reader.static(s.patterns,a)}};e.default=n}}),P1=he({"node_modules/fast-glob/out/settings.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var t=ot("fs"),r=ot("os"),n=Math.max(r.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:t.lstat,lstatSync:t.lstatSync,stat:t.stat,statSync:t.statSync,readdir:t.readdir,readdirSync:t.readdirSync};var i=class{constructor(s={}){this._options=s,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(s,a){return s===void 0?a:s}_getFileSystemMethods(s={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),s)}};e.default=i}}),x1=he({"node_modules/fast-glob/out/index.js"(e,t){var r=JS(),n=S1(),i=v1(),s=C1(),a=P1(),o=In();async function u(f,p){c(f);const h=l(f,n.default,p),d=await Promise.all(h);return o.array.flatten(d)}(function(f){f.glob=f,f.globSync=p,f.globStream=h,f.async=f;function p(y,b){c(y);const O=l(y,s.default,b);return o.array.flatten(O)}f.sync=p;function h(y,b){c(y);const O=l(y,i.default,b);return o.stream.merge(O)}f.stream=h;function d(y,b){c(y);const O=[].concat(y),C=new a.default(b);return r.generate(O,C)}f.generateTasks=d;function m(y,b){c(y);const O=new a.default(b);return o.pattern.isDynamicPattern(y,O)}f.isDynamicPattern=m;function D(y){return c(y),o.path.escape(y)}f.escapePath=D;function g(y){return c(y),o.path.convertPathToPattern(y)}f.convertPathToPattern=g,function(y){function b(C){return c(C),o.path.escapePosixPath(C)}y.escapePath=b;function O(C){return c(C),o.path.convertPosixPathToPattern(C)}y.convertPathToPattern=O}(f.posix||(f.posix={})),function(y){function b(C){return c(C),o.path.escapeWindowsPath(C)}y.escapePath=b;function O(C){return c(C),o.path.convertWindowsPathToPattern(C)}y.convertPathToPattern=O}(f.win32||(f.win32={}))})(u||(u={}));function l(f,p,h){const d=[].concat(f),m=new a.default(h),D=r.generate(d,m),g=new p(m);return D.map(g.read,g)}function c(f){if(![].concat(f).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}t.exports=u}});function F1(){const e=new Map;for(const[t,r]of Object.entries(dt)){for(const[n,i]of Object.entries(r))dt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=dt[n],e.set(i[0],i[1]);Object.defineProperty(dt,t,{value:r,enumerable:!1})}return Object.defineProperty(dt,"codes",{value:e,enumerable:!1}),dt.color.close="\x1B[39m",dt.bgColor.close="\x1B[49m",dt.color.ansi=ml(),dt.color.ansi256=yl(),dt.color.ansi16m=Dl(),dt.bgColor.ansi=ml(ja),dt.bgColor.ansi256=yl(ja),dt.bgColor.ansi16m=Dl(ja),Object.defineProperties(dt,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));const i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>dt.rgbToAnsi256(...dt.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;const o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}const s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>dt.ansi256ToAnsi(dt.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>dt.ansi256ToAnsi(dt.hexToAnsi256(t)),enumerable:!1}}),dt}var ja,ml,yl,Dl,dt,gl,io,so,El,Gf,hr,Yf=vo({"node_modules/chalk/source/vendor/ansi-styles/index.js"(){ja=10,ml=(e=0)=>t=>`\x1B[${t+e}m`,yl=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Dl=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,dt={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},gl=Object.keys(dt.modifier),io=Object.keys(dt.color),so=Object.keys(dt.bgColor),El=[...io,...so],Gf=F1(),hr=Gf}});function Qt(e,t=globalThis.Deno?globalThis.Deno.args:Fr.argv){const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}function _1(){if("FORCE_COLOR"in yt)return yt.FORCE_COLOR==="true"?1:yt.FORCE_COLOR==="false"?0:yt.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(yt.FORCE_COLOR,10),3)}function w1(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function I1(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=_1();n!==void 0&&(ao=n);const i=r?ao:n;if(i===0)return 0;if(r){if(Qt("color=16m")||Qt("color=full")||Qt("color=truecolor"))return 3;if(Qt("color=256"))return 2}if("TF_BUILD"in yt&&"AGENT_NAME"in yt)return 1;if(e&&!t&&i===void 0)return 0;const s=i||0;if(yt.TERM==="dumb")return s;if(Fr.platform==="win32"){const a=nc.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in yt)return"GITHUB_ACTIONS"in yt||"GITEA_ACTIONS"in yt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in yt)||yt.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in yt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(yt.TEAMCITY_VERSION)?1:0;if(yt.COLORTERM==="truecolor"||yt.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in yt){const a=Number.parseInt((yt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(yt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(yt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(yt.TERM)||"COLORTERM"in yt?1:s}function Xf(e,t={}){const r=I1(e,{streamIsTTY:e&&e.isTTY,...t});return w1(r)}var yt,ao,Jf,Hm,O1=vo({"node_modules/chalk/source/vendor/supports-color/index.js"(){({env:yt}=Fr),Qt("no-color")||Qt("no-colors")||Qt("color=false")||Qt("color=never")?ao=0:(Qt("color")||Qt("colors")||Qt("color=true")||Qt("color=always"))&&(ao=1),Jf={stdout:Xf({isTTY:_s.isatty(1)}),stderr:Xf({isTTY:_s.isatty(2)})},Hm=Jf}});function N1(e,t,r){let n=e.indexOf(t);if(n===-1)return e;const i=t.length;let s=0,a="";do a+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return a+=e.slice(s),a}function B1(e,t,r,n){let i=0,s="";do{const a=e[n-1]==="\r";s+=e.slice(i,a?n-1:n)+t+(a?`\r
10
+ `:`
11
+ `)+r,i=n+1,n=e.indexOf(`
12
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var k1=vo({"node_modules/chalk/source/utilities.js"(){}}),Gm={};Mi(Gm,{Chalk:()=>Ym,backgroundColorNames:()=>so,backgroundColors:()=>so,chalkStderr:()=>Xm,colorNames:()=>El,colors:()=>El,default:()=>tr,foregroundColorNames:()=>io,foregroundColors:()=>io,modifierNames:()=>gl,modifiers:()=>gl,supportsColor:()=>$a,supportsColorStderr:()=>Ua});function Hi(e){return bl(e)}var $a,Ua,ia,Un,Ei,du,Vn,zf,Ym,bl,sa,Qf,Zf,aa,Gi,ep,tp,Xm,tr,Po=vo({"node_modules/chalk/source/index.js"(){Yf(),O1(),k1(),Yf(),{stdout:$a,stderr:Ua}=Hm,ia=Symbol("GENERATOR"),Un=Symbol("STYLER"),Ei=Symbol("IS_EMPTY"),du=["ansi","ansi","ansi256","ansi16m"],Vn=Object.create(null),zf=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=$a?$a.level:0;e.level=t.level===void 0?r:t.level},Ym=class{constructor(e){return bl(e)}},bl=e=>{const t=(...r)=>r.join(" ");return zf(t,e),Object.setPrototypeOf(t,Hi.prototype),t},Object.setPrototypeOf(Hi.prototype,Function.prototype);for(const[e,t]of Object.entries(hr))Vn[e]={get(){const r=Gi(this,aa(t.open,t.close,this[Un]),this[Ei]);return Object.defineProperty(this,e,{value:r}),r}};Vn.visible={get(){const e=Gi(this,this[Un],!0);return Object.defineProperty(this,"visible",{value:e}),e}},sa=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?hr[r].ansi16m(...n):t==="ansi256"?hr[r].ansi256(hr.rgbToAnsi256(...n)):hr[r].ansi(hr.rgbToAnsi(...n)):e==="hex"?sa("rgb",t,r,...hr.hexToRgb(...n)):hr[r][e](...n),Qf=["rgb","hex","ansi256"];for(const e of Qf){Vn[e]={get(){const{level:r}=this;return function(...n){const i=aa(sa(e,du[r],"color",...n),hr.color.close,this[Un]);return Gi(this,i,this[Ei])}}};const t="bg"+e[0].toUpperCase()+e.slice(1);Vn[t]={get(){const{level:r}=this;return function(...n){const i=aa(sa(e,du[r],"bgColor",...n),hr.bgColor.close,this[Un]);return Gi(this,i,this[Ei])}}}}Zf=Object.defineProperties(()=>{},{...Vn,level:{enumerable:!0,get(){return this[ia].level},set(e){this[ia].level=e}}}),aa=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Gi=(e,t,r)=>{const n=(...i)=>ep(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Zf),n[ia]=e,n[Un]=t,n[Ei]=r,n},ep=(e,t)=>{if(e.level<=0||!t)return e[Ei]?"":t;let r=e[Un];if(r===void 0)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=N1(t,r.close,r.open),r=r.parent;const s=t.indexOf(`
13
+ `);return s!==-1&&(t=B1(t,i,n,s)),n+t+i},Object.defineProperties(Hi.prototype,Vn),tp=Hi(),Xm=Hi({level:Ua?Ua.level:0}),tr=tp}}),Jm=he({"node_modules/semver/internal/debug.js"(e,t){var r=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};t.exports=r}}),zm=he({"node_modules/semver/internal/constants.js"(e,t){var r="2.0.0",n=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,a=n-6,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:i,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),L1=he({"node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=zm(),s=Jm();e=t.exports={};var a=e.re=[],o=e.safeRe=[],u=e.src=[],l=e.t={},c=0,f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[f,n]],h=m=>{for(const[D,g]of p)m=m.split(`${D}*`).join(`${D}{0,${g}}`).split(`${D}+`).join(`${D}{1,${g}}`);return m},d=(m,D,g)=>{const y=h(D),b=c++;s(m,b,D),l[m]=b,u[b]=D,a[b]=new RegExp(D,g?"g":void 0),o[b]=new RegExp(y,g?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),d("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${f}+`),d("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),d("FULL",`^${u[l.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),d("LOOSE",`^${u[l.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),d("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),d("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",u[l.COERCE],!0),d("COERCERTLFULL",u[l.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),R1=he({"node_modules/semver/internal/parse-options.js"(e,t){var r=Object.freeze({loose:!0}),n=Object.freeze({}),i=s=>s?typeof s!="object"?r:s:n;t.exports=i}}),M1=he({"node_modules/semver/internal/identifiers.js"(e,t){var r=/^[0-9]+$/,n=(s,a)=>{const o=r.test(s),u=r.test(a);return o&&u&&(s=+s,a=+a),s===a?0:o&&!u?-1:u&&!o?1:s<a?-1:1},i=(s,a)=>n(a,s);t.exports={compareIdentifiers:n,rcompareIdentifiers:i}}}),j1=he({"node_modules/semver/classes/semver.js"(e,t){var r=Jm(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=zm(),{safeRe:s,t:a}=L1(),o=R1(),{compareIdentifiers:u}=M1(),l=class Cr{constructor(f,p){if(p=o(p),f instanceof Cr){if(f.loose===!!p.loose&&f.includePrerelease===!!p.includePrerelease)return f;f=f.version}else if(typeof f!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);if(f.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",f,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const h=f.trim().match(p.loose?s[a.LOOSE]:s[a.FULL]);if(!h)throw new TypeError(`Invalid Version: ${f}`);if(this.raw=f,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(d=>{if(/^[0-9]+$/.test(d)){const m=+d;if(m>=0&&m<i)return m}return d}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(f){if(r("SemVer.compare",this.version,this.options,f),!(f instanceof Cr)){if(typeof f=="string"&&f===this.version)return 0;f=new Cr(f,this.options)}return f.version===this.version?0:this.compareMain(f)||this.comparePre(f)}compareMain(f){return f instanceof Cr||(f=new Cr(f,this.options)),u(this.major,f.major)||u(this.minor,f.minor)||u(this.patch,f.patch)}comparePre(f){if(f instanceof Cr||(f=new Cr(f,this.options)),this.prerelease.length&&!f.prerelease.length)return-1;if(!this.prerelease.length&&f.prerelease.length)return 1;if(!this.prerelease.length&&!f.prerelease.length)return 0;let p=0;do{const h=this.prerelease[p],d=f.prerelease[p];if(r("prerelease compare",p,h,d),h===void 0&&d===void 0)return 0;if(d===void 0)return 1;if(h===void 0)return-1;if(h===d)continue;return u(h,d)}while(++p)}compareBuild(f){f instanceof Cr||(f=new Cr(f,this.options));let p=0;do{const h=this.build[p],d=f.build[p];if(r("build compare",p,h,d),h===void 0&&d===void 0)return 0;if(d===void 0)return 1;if(h===void 0)return-1;if(h===d)continue;return u(h,d)}while(++p)}inc(f,p,h){switch(f){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",p,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",p,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",p,h),this.inc("pre",p,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",p,h),this.inc("pre",p,h);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const d=Number(h)?1:0;if(!p&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[d];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(p===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(d)}}if(p){let m=[p,d];h===!1&&(m=[p]),u(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${f}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=l}}),$1=he({"node_modules/semver/functions/compare.js"(e,t){var r=j1(),n=(i,s,a)=>new r(i,a).compare(new r(s,a));t.exports=n}}),U1=he({"node_modules/semver/functions/gte.js"(e,t){var r=$1(),n=(i,s,a)=>r(i,s,a)>=0;t.exports=n}}),V1=he({"node_modules/pseudomap/pseudomap.js"(e,t){var r=Object.prototype.hasOwnProperty;t.exports=n;function n(u){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),u)if(u instanceof n||typeof Map=="function"&&u instanceof Map)u.forEach(function(l,c){this.set(c,l)},this);else if(Array.isArray(u))u.forEach(function(l){this.set(l[0],l[1])},this);else throw new TypeError("invalid argument")}n.prototype.forEach=function(u,l){l=l||this,Object.keys(this._data).forEach(function(c){c!=="size"&&u.call(l,this._data[c].value,this._data[c].key)},this)},n.prototype.has=function(u){return!!a(this._data,u)},n.prototype.get=function(u){var l=a(this._data,u);return l&&l.value},n.prototype.set=function(u,l){o(this._data,u,l)},n.prototype.delete=function(u){var l=a(this._data,u);l&&(delete this._data[l._index],this._data.size--)},n.prototype.clear=function(){var u=Object.create(null);u.size=0,Object.defineProperty(this,"_data",{value:u,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(u){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")};function i(u,l){return u===l||u!==u&&l!==l}function s(u,l,c){this.key=u,this.value=l,this._index=c}function a(u,l){for(var c=0,f="_"+l,p=f;r.call(u,p);p=f+c++)if(i(u[p].key,l))return u[p]}function o(u,l,c){for(var f=0,p="_"+l,h=p;r.call(u,h);h=p+f++)if(i(u[h].key,l)){u[h].value=c;return}u.size++,u[h]=new s(l,c,h)}}}),q1=he({"node_modules/pseudomap/map.js"(e,t){process.env.npm_package_name==="pseudomap"&&process.env.npm_lifecycle_script==="test"&&(process.env.TEST_PSEUDOMAP="true"),typeof Map=="function"&&!process.env.TEST_PSEUDOMAP?t.exports=Map:t.exports=V1()}}),K1=he({"node_modules/yallist/yallist.js"(e,t){t.exports=r,r.Node=s,r.create=r;function r(a){var o=this;if(o instanceof r||(o=new r),o.tail=null,o.head=null,o.length=0,a&&typeof a.forEach=="function")a.forEach(function(c){o.push(c)});else if(arguments.length>0)for(var u=0,l=arguments.length;u<l;u++)o.push(arguments[u]);return o}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var o=a.next,u=a.prev;o&&(o.prev=u),u&&(u.next=o),a===this.head&&(this.head=o),a===this.tail&&(this.tail=u),a.list.length--,a.next=null,a.prev=null,a.list=null},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var o=this.head;a.list=this,a.next=o,o&&(o.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var o=this.tail;a.list=this,a.prev=o,o&&(o.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,o=arguments.length;a<o;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,o=arguments.length;a<o;a++)i(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,o){o=o||this;for(var u=this.head,l=0;u!==null;l++)a.call(o,u.value,l,this),u=u.next},r.prototype.forEachReverse=function(a,o){o=o||this;for(var u=this.tail,l=this.length-1;u!==null;l--)a.call(o,u.value,l,this),u=u.prev},r.prototype.get=function(a){for(var o=0,u=this.head;u!==null&&o<a;o++)u=u.next;if(o===a&&u!==null)return u.value},r.prototype.getReverse=function(a){for(var o=0,u=this.tail;u!==null&&o<a;o++)u=u.prev;if(o===a&&u!==null)return u.value},r.prototype.map=function(a,o){o=o||this;for(var u=new r,l=this.head;l!==null;)u.push(a.call(o,l.value,this)),l=l.next;return u},r.prototype.mapReverse=function(a,o){o=o||this;for(var u=new r,l=this.tail;l!==null;)u.push(a.call(o,l.value,this)),l=l.prev;return u},r.prototype.reduce=function(a,o){var u,l=this.head;if(arguments.length>1)u=o;else if(this.head)l=this.head.next,u=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;l!==null;c++)u=a(u,l.value,c),l=l.next;return u},r.prototype.reduceReverse=function(a,o){var u,l=this.tail;if(arguments.length>1)u=o;else if(this.tail)l=this.tail.prev,u=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;l!==null;c--)u=a(u,l.value,c),l=l.prev;return u},r.prototype.toArray=function(){for(var a=new Array(this.length),o=0,u=this.head;u!==null;o++)a[o]=u.value,u=u.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),o=0,u=this.tail;u!==null;o++)a[o]=u.value,u=u.prev;return a},r.prototype.slice=function(a,o){o=o||this.length,o<0&&(o+=this.length),a=a||0,a<0&&(a+=this.length);var u=new r;if(o<a||o<0)return u;a<0&&(a=0),o>this.length&&(o=this.length);for(var l=0,c=this.head;c!==null&&l<a;l++)c=c.next;for(;c!==null&&l<o;l++,c=c.next)u.push(c.value);return u},r.prototype.sliceReverse=function(a,o){o=o||this.length,o<0&&(o+=this.length),a=a||0,a<0&&(a+=this.length);var u=new r;if(o<a||o<0)return u;a<0&&(a=0),o>this.length&&(o=this.length);for(var l=this.length,c=this.tail;c!==null&&l>o;l--)c=c.prev;for(;c!==null&&l>a;l--,c=c.prev)u.push(c.value);return u},r.prototype.reverse=function(){for(var a=this.head,o=this.tail,u=a;u!==null;u=u.prev){var l=u.prev;u.prev=u.next,u.next=l}return this.head=o,this.tail=a,this};function n(a,o){a.tail=new s(o,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function i(a,o){a.head=new s(o,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function s(a,o,u,l){if(!(this instanceof s))return new s(a,o,u,l);this.list=l,this.value=a,o?(o.next=this,this.prev=o):this.prev=null,u?(u.prev=this,this.next=u):this.next=null}}}),W1=he({"node_modules/lru-cache/index.js"(e,t){t.exports=g;var r=q1(),n=ot("util"),i=K1(),s=typeof Symbol=="function"&&process.env._nodeLRUCacheForceNoSymbol!=="1",a;s?a=function(P){return Symbol(P)}:a=function(P){return"_"+P};var o=a("max"),u=a("length"),l=a("lengthCalculator"),c=a("allowStale"),f=a("maxAge"),p=a("dispose"),h=a("noDisposeOnSet"),d=a("lruList"),m=a("cache");function D(){return 1}function g(P){if(!(this instanceof g))return new g(P);typeof P=="number"&&(P={max:P}),P||(P={});var I=this[o]=P.max;(!I||typeof I!="number"||I<=0)&&(this[o]=1/0);var k=P.length||D;typeof k!="function"&&(k=D),this[l]=k,this[c]=P.stale||!1,this[f]=P.maxAge||0,this[p]=P.dispose,this[h]=P.noDisposeOnSet||!1,this.reset()}Object.defineProperty(g.prototype,"max",{set:function(P){(!P||typeof P!="number"||P<=0)&&(P=1/0),this[o]=P,C(this)},get:function(){return this[o]},enumerable:!0}),Object.defineProperty(g.prototype,"allowStale",{set:function(P){this[c]=!!P},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(g.prototype,"maxAge",{set:function(P){(!P||typeof P!="number"||P<0)&&(P=0),this[f]=P,C(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(g.prototype,"lengthCalculator",{set:function(P){typeof P!="function"&&(P=D),P!==this[l]&&(this[l]=P,this[u]=0,this[d].forEach(function(I){I.length=this[l](I.value,I.key),this[u]+=I.length},this)),C(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(g.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),g.prototype.rforEach=function(P,I){I=I||this;for(var k=this[d].tail;k!==null;){var F=k.prev;y(this,P,k,I),k=F}};function y(P,I,k,F){var S=k.value;O(P,S)&&($(P,k),P[c]||(S=void 0)),S&&I.call(F,S.value,S.key,P)}g.prototype.forEach=function(P,I){I=I||this;for(var k=this[d].head;k!==null;){var F=k.next;y(this,P,k,I),k=F}},g.prototype.keys=function(){return this[d].toArray().map(function(P){return P.key},this)},g.prototype.values=function(){return this[d].toArray().map(function(P){return P.value},this)},g.prototype.reset=function(){this[p]&&this[d]&&this[d].length&&this[d].forEach(function(P){this[p](P.key,P.value)},this),this[m]=new r,this[d]=new i,this[u]=0},g.prototype.dump=function(){return this[d].map(function(P){if(!O(this,P))return{k:P.key,v:P.value,e:P.now+(P.maxAge||0)}},this).toArray().filter(function(P){return P})},g.prototype.dumpLru=function(){return this[d]},g.prototype.inspect=function(P,I){var k="LRUCache {",F=!1,S=this[c];S&&(k+=`
14
+ allowStale: true`,F=!0);var A=this[o];A&&A!==1/0&&(F&&(k+=","),k+=`
15
+ max: `+n.inspect(A,I),F=!0);var B=this[f];B&&(F&&(k+=","),k+=`
16
+ maxAge: `+n.inspect(B,I),F=!0);var x=this[l];x&&x!==D&&(F&&(k+=","),k+=`
17
+ length: `+n.inspect(this[u],I),F=!0);var N=!1;return this[d].forEach(function(H){N?k+=`,
18
+ `:(F&&(k+=`,
19
+ `),N=!0,k+=`
20
+ `);var T=n.inspect(H.key).split(`
21
+ `).join(`
22
+ `),_={value:H.value};H.maxAge!==B&&(_.maxAge=H.maxAge),x!==D&&(_.length=H.length),O(this,H)&&(_.stale=!0),_=n.inspect(_,I).split(`
23
+ `).join(`
24
+ `),k+=T+" => "+_}),(N||F)&&(k+=`
25
+ `),k+="}",k},g.prototype.set=function(P,I,k){k=k||this[f];var F=k?Date.now():0,S=this[l](I,P);if(this[m].has(P)){if(S>this[o])return $(this,this[m].get(P)),!1;var A=this[m].get(P),B=A.value;return this[p]&&(this[h]||this[p](P,B.value)),B.now=F,B.maxAge=k,B.value=I,this[u]+=S-B.length,B.length=S,this.get(P),C(this),!0}var x=new w(P,I,S,F,k);return x.length>this[o]?(this[p]&&this[p](P,I),!1):(this[u]+=x.length,this[d].unshift(x),this[m].set(P,this[d].head),C(this),!0)},g.prototype.has=function(P){if(!this[m].has(P))return!1;var I=this[m].get(P).value;return!O(this,I)},g.prototype.get=function(P){return b(this,P,!0)},g.prototype.peek=function(P){return b(this,P,!1)},g.prototype.pop=function(){var P=this[d].tail;return P?($(this,P),P.value):null},g.prototype.del=function(P){$(this,this[m].get(P))},g.prototype.load=function(P){this.reset();for(var I=Date.now(),k=P.length-1;k>=0;k--){var F=P[k],S=F.e||0;if(S===0)this.set(F.k,F.v);else{var A=S-I;A>0&&this.set(F.k,F.v,A)}}},g.prototype.prune=function(){var P=this;this[m].forEach(function(I,k){b(P,k,!1)})};function b(P,I,k){var F=P[m].get(I);if(F){var S=F.value;O(P,S)?($(P,F),P[c]||(S=void 0)):k&&P[d].unshiftNode(F),S&&(S=S.value)}return S}function O(P,I){if(!I||!I.maxAge&&!P[f])return!1;var k=!1,F=Date.now()-I.now;return I.maxAge?k=F>I.maxAge:k=P[f]&&F>P[f],k}function C(P){if(P[u]>P[o])for(var I=P[d].tail;P[u]>P[o]&&I!==null;){var k=I.prev;$(P,I),I=k}}function $(P,I){if(I){var k=I.value;P[p]&&P[p](k.key,k.value),P[u]-=k.length,P[m].delete(k.key),P[d].removeNode(I)}}function w(P,I,k,F,S){this.key=P,this.value=I,this.length=k,this.now=F,this.maxAge=S||0}}}),H1=he({"node_modules/sigmund/sigmund.js"(e,t){t.exports=r;function r(n,i){i=i||10;var s=[],a="",o=RegExp;function u(l,c){if(!(c>i)&&!(typeof l=="function"||typeof l>"u")){if(typeof l!="object"||!l||l instanceof o){a+=l;return}s.indexOf(l)!==-1||c===i||(s.push(l),a+="{",Object.keys(l).forEach(function(f,p,h){if(f.charAt(0)!=="_"){var d=typeof l[f];d==="function"||d==="undefined"||(a+=f,u(l[f],c+1))}}))}}return u(n,0),a}}}),G1=he({"node_modules/editorconfig/src/lib/fnmatch.js"(e,t){var r=typeof process=="object"?process.platform:"win32";t?t.exports=g:e.minimatch=g,g.Minimatch=y;var n=W1();g.cache=new n({max:100});var i=g.GLOBSTAR=y.GLOBSTAR={},s=H1(),a=ot("path"),o="[^/]",u=o+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",f=p("().*{}+?[]^$\\!");function p(S){return S.split("").reduce(function(A,B){return A[B]=!0,A},{})}var h=/\/+/;g.monkeyPatch=d;function d(){var S=Object.getOwnPropertyDescriptor(String.prototype,"match"),A=S.value;S.value=function(B){return B instanceof y?B.match(this):A.call(this,B)},Object.defineProperty(String.prototype,S)}g.filter=m;function m(S,A){return A=A||{},function(B,x,N){return g(B,S,A)}}function D(S,A){S=S||{},A=A||{};var B={};return Object.keys(A).forEach(function(x){B[x]=A[x]}),Object.keys(S).forEach(function(x){B[x]=S[x]}),B}g.defaults=function(S){if(!S||!Object.keys(S).length)return g;var A=g,B=function(N,H,T){return A.minimatch(N,H,D(S,T))};return B.Minimatch=function(N,H){return new A.Minimatch(N,D(S,H))},B},y.defaults=function(S){return!S||!Object.keys(S).length?y:g.defaults(S).Minimatch};function g(S,A,B){if(typeof A!="string")throw new TypeError("glob pattern string required");return B||(B={}),!B.nocomment&&A.charAt(0)==="#"?!1:A.trim()===""?S==="":new y(A,B).match(S)}function y(S,A){if(!(this instanceof y))return new y(S,A);if(typeof S!="string")throw new TypeError("glob pattern string required");A||(A={}),r==="win32"&&(S=S.split("\\").join("/"));var B=S+`
26
+ `+s(A),x=g.cache.get(B);if(x)return x;g.cache.set(B,this),this.options=A,this.set=[],this.pattern=S,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}y.prototype.make=b;function b(){if(!this._made){var S=this.pattern,A=this.options;if(!A.nocomment&&S.charAt(0)==="#"){this.comment=!0;return}if(!S){this.empty=!0;return}this.parseNegate();var B=this.globSet=this.braceExpand();A.debug&&console.error(this.pattern,B),B=this.globParts=B.map(function(x){return x.split(h)}),A.debug&&console.error(this.pattern,B),B=B.map(function(x,N,H){return x.map(this.parse,this)},this),A.debug&&console.error(this.pattern,B),B=B.filter(function(x){return x.indexOf(!1)===-1}),A.debug&&console.error(this.pattern,B),this.set=B}}y.prototype.parseNegate=O;function O(){var S=this.pattern,A=!1,B=this.options,x=0;if(!B.nonegate){for(var N=0,H=S.length;N<H&&S.charAt(N)==="!";N++)A=!A,x++;x&&(this.pattern=S.substr(x)),this.negate=A}}g.braceExpand=function(S,A){return new y(S,A).braceExpand()},y.prototype.braceExpand=C;function C(S,A){if(A=A||this.options,S=typeof S>"u"?this.pattern:S,typeof S>"u")throw new Error("undefined pattern");if(A.nobrace||!S.match(/\{.*\}/))return[S];var re=!1;if(S.charAt(0)!=="{"){for(var B=null,ae=0,x=S.length;ae<x;ae++){var N=S.charAt(ae);if(N==="\\")re=!re;else if(N==="{"&&!re){B=S.substr(0,ae);break}}if(B===null)return[S];var H=C(S.substr(ae),A);return H.map(function(Te){return B+Te})}var T=S.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if(T){for(var de=C(S.substr(T[0].length),A),_=+T[1],R=+T[2],Q=_>R?-1:1,te=[],ae=_;ae!=R+Q;ae+=Q)for(var ne=0,X=de.length;ne<X;ne++)te.push(ae+de[ne]);return te}var ae=1,ie=1,te=[],Y="",re=!1;function De(){te.push(Y),Y=""}e:for(ae=1,x=S.length;ae<x;ae++){var N=S.charAt(ae);if(re)re=!1,Y+="\\"+N;else switch(N){case"\\":re=!0;continue;case"{":ie++,Y+="{";continue;case"}":if(ie--,ie===0){De(),ae++;break e}else{Y+=N;continue}case",":ie===1?De():Y+=N;continue;default:Y+=N;continue}}if(ie!==0)return C("\\"+S,A);var de=C(S.substr(ae),A),Ce=te.length===1;te=te.map(function(Te){return C(Te,A)}),te=te.reduce(function(Te,Ne){return Te.concat(Ne)}),Ce&&(te=te.map(function(Te){return"{"+Te+"}"}));for(var Ie=[],ae=0,x=te.length;ae<x;ae++)for(var ne=0,X=de.length;ne<X;ne++)Ie.push(te[ae]+de[ne]);return Ie}y.prototype.parse=w;var $={};function w(S,A){var B=this.options;if(!B.noglobstar&&S==="**")return i;if(S==="")return"";var x="",N=!!B.nocase,H=!1,T=[],_,R,Q=!1,ne=-1,X=-1,ae=S.charAt(0)==="."?"":B.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function ie(){if(R){switch(R){case"*":x+=u,N=!0;break;case"?":x+=o,N=!0;break;default:x+="\\"+R;break}R=!1}}for(var te=0,Y=S.length,re;te<Y&&(re=S.charAt(te));te++){if(B.debug&&console.error("%s %s %s %j",S,te,x,re),H&&f[re]){x+="\\"+re,H=!1;continue}switch(re){case"/":return!1;case"\\":ie(),H=!0;continue;case"?":case"*":case"+":case"@":case"!":if(B.debug&&console.error("%s %s %s %j <-- stateChar",S,te,x,re),Q){re==="!"&&te===X+1&&(re="^"),x+=re;continue}ie(),R=re,B.noext&&ie();continue;case"(":if(Q){x+="(";continue}if(!R){x+="\\(";continue}_=R,T.push({type:_,start:te-1,reStart:x.length}),x+=R==="!"?"(?:(?!":"(?:",R=!1;continue;case")":if(Q||!T.length){x+="\\)";continue}switch(N=!0,x+=")",_=T.pop().type,_){case"!":x+="[^/]*?)";break;case"?":case"+":case"*":x+=_}continue;case"|":if(Q||!T.length||H){x+="\\|",H=!1;continue}x+="|";continue;case"[":if(ie(),Q){x+="\\"+re;continue}Q=!0,X=te,ne=x.length,x+=re;continue;case"]":if(te===X+1||!Q){x+="\\"+re,H=!1;continue}N=!0,Q=!1,x+=re;continue;default:ie(),H?H=!1:f[re]&&!(re==="^"&&Q)&&(x+="\\"),x+=re}}if(Q){var De=S.substr(X+1),de=this.parse(De,$);x=x.substr(0,ne)+"\\["+de[0],N=N||de[1]}for(var Ce;Ce=T.pop();){var Ie=x.slice(Ce.reStart+3);Ie=Ie.replace(/((?:\\{2})*)(\\?)\|/g,function(Oe,ge,Ae){return Ae||(Ae="\\"),ge+ge+Ae+"|"});var Te=Ce.type==="*"?u:Ce.type==="?"?o:"\\"+Ce.type;N=!0,x=x.slice(0,Ce.reStart)+Te+"\\("+Ie}ie(),H&&(x+="\\\\");var Ne=!1;switch(x.charAt(0)){case".":case"[":case"(":Ne=!0}if(x!==""&&N&&(x="(?=.)"+x),Ne&&(x=ae+x),A===$)return[x,N];if(!N)return k(S);var Je=B.nocase?"i":"",Fe=new RegExp("^"+x+"$",Je);return Fe._glob=S,Fe._src=x,Fe}g.makeRe=function(S,A){return new y(S,A||{}).makeRe()},y.prototype.makeRe=P;function P(){if(this.regexp||this.regexp===!1)return this.regexp;var S=this.set;if(!S.length)return this.regexp=!1;var A=this.options,B=A.noglobstar?u:A.dot?l:c,x=A.nocase?"i":"",N=S.map(function(H){return H.map(function(T){return T===i?B:typeof T=="string"?F(T):T._src}).join("\\/")}).join("|");N="^(?:"+N+")$",this.negate&&(N="^(?!"+N+").*$");try{return this.regexp=new RegExp(N,x)}catch{return this.regexp=!1}}g.match=function(S,A,B){var x=new y(A,B);return S=S.filter(function(N){return x.match(N)}),B.nonull&&!S.length&&S.push(A),S},y.prototype.match=I;function I(S,A){if(this.comment)return!1;if(this.empty)return S==="";if(S==="/"&&A)return!0;var B=this.options;r==="win32"&&(S=S.split("\\").join("/")),S=S.split(h),B.debug&&console.error(this.pattern,"split",S);for(var x=this.set,N=0,H=x.length;N<H;N++){var T=x[N],_=this.matchOne(S,T,A);if(_)return B.flipNegate?!0:!this.negate}return B.flipNegate?!1:this.negate}y.prototype.matchOne=function(S,A,B){var x=this.options;x.debug&&console.error("matchOne",{this:this,file:S,pattern:A}),x.matchBase&&A.length===1&&(S=a.basename(S.join("/")).split("/")),x.debug&&console.error("matchOne",S.length,A.length);for(var N=0,H=0,T=S.length,_=A.length;N<T&&H<_;N++,H++){x.debug&&console.error("matchOne loop");var R=A[H],Q=S[N];if(x.debug&&console.error(A,R,Q),R===!1)return!1;if(R===i){x.debug&&console.error("GLOBSTAR",[A,R,Q]);var ne=N,X=H+1;if(X===_){for(x.debug&&console.error("** at the end");N<T;N++)if(S[N]==="."||S[N]===".."||!x.dot&&S[N].charAt(0)===".")return!1;return!0}e:for(;ne<T;){var ae=S[ne];if(x.debug&&console.error(`
27
+ globstar while`,S,ne,A,X,ae),this.matchOne(S.slice(ne),A.slice(X),B))return x.debug&&console.error("globstar found match!",ne,T,ae),!0;if(ae==="."||ae===".."||!x.dot&&ae.charAt(0)==="."){x.debug&&console.error("dot detected!",S,ne,A,X);break e}x.debug&&console.error("globstar swallow a segment, and continue"),ne++}return!!(B&&ne===T)}var ie;if(typeof R=="string"?(x.nocase?ie=Q.toLowerCase()===R.toLowerCase():ie=Q===R,x.debug&&console.error("string match",R,Q,ie)):(ie=Q.match(R),x.debug&&console.error("pattern match",R,Q,ie)),!ie)return!1}if(N===T&&H===_)return!0;if(N===T)return B;if(H===_){var te=N===T-1&&S[N]==="";return te}throw new Error("wtf?")};function k(S){return S.replace(/\\(.)/g,"$1")}function F(S){return S.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),Y1=he({"node_modules/editorconfig/src/lib/ini.js"(e){var t=e&&e.__awaiter||function(l,c,f,p){return new(f||(f=Promise))(function(h,d){function m(y){try{g(p.next(y))}catch(b){d(b)}}function D(y){try{g(p.throw(y))}catch(b){d(b)}}function g(y){y.done?h(y.value):new f(function(b){b(y.value)}).then(m,D)}g((p=p.apply(l,c||[])).next())})},r=e&&e.__generator||function(l,c){var f={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},p,h,d,m;return m={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function D(y){return function(b){return g([y,b])}}function g(y){if(p)throw new TypeError("Generator is already executing.");for(;f;)try{if(p=1,h&&(d=y[0]&2?h.return:y[0]?h.throw||((d=h.return)&&d.call(h),0):h.next)&&!(d=d.call(h,y[1])).done)return d;switch(h=0,d&&(y=[y[0]&2,d.value]),y[0]){case 0:case 1:d=y;break;case 4:return f.label++,{value:y[1],done:!1};case 5:f.label++,h=y[1],y=[0];continue;case 7:y=f.ops.pop(),f.trys.pop();continue;default:if(d=f.trys,!(d=d.length>0&&d[d.length-1])&&(y[0]===6||y[0]===2)){f=0;continue}if(y[0]===3&&(!d||y[1]>d[0]&&y[1]<d[3])){f.label=y[1];break}if(y[0]===6&&f.label<d[1]){f.label=d[1],d=y;break}if(d&&f.label<d[2]){f.label=d[2],f.ops.push(y);break}d[2]&&f.ops.pop(),f.trys.pop();continue}y=c.call(l,f)}catch(b){y=[6,b],h=0}finally{p=d=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},n=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var f in l)Object.hasOwnProperty.call(l,f)&&(c[f]=l[f]);return c.default=l,c};Object.defineProperty(e,"__esModule",{value:!0});var i=n(ot("fs")),s={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function a(l){return t(this,void 0,void 0,function(){return r(this,function(c){return[2,new Promise(function(f,p){i.readFile(l,"utf8",function(h,d){if(h){p(h);return}f(u(d))})})]})})}e.parse=a;function o(l){return u(i.readFileSync(l,"utf8"))}e.parseSync=o;function u(l){var c={},f=null,p=[[f,c]],h=l.split(/\r\n|\r|\n/);return h.forEach(function(d){var m;s.comment.test(d)||(s.param.test(d)?(m=d.match(s.param),c[m[1]]=m[2]):s.section.test(d)&&(m=d.match(s.section),f=m[1],c={},p.push([f,c])))}),p}e.parseString=u}}),X1=he({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),J1=he({"node_modules/editorconfig/src/index.js"(e){var t=e&&e.__awaiter||function(F,S,A,B){return new(A||(A=Promise))(function(x,N){function H(R){try{_(B.next(R))}catch(Q){N(Q)}}function T(R){try{_(B.throw(R))}catch(Q){N(Q)}}function _(R){R.done?x(R.value):new A(function(Q){Q(R.value)}).then(H,T)}_((B=B.apply(F,S||[])).next())})},r=e&&e.__generator||function(F,S){var A={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},B,x,N,H;return H={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function T(R){return function(Q){return _([R,Q])}}function _(R){if(B)throw new TypeError("Generator is already executing.");for(;A;)try{if(B=1,x&&(N=R[0]&2?x.return:R[0]?x.throw||((N=x.return)&&N.call(x),0):x.next)&&!(N=N.call(x,R[1])).done)return N;switch(x=0,N&&(R=[R[0]&2,N.value]),R[0]){case 0:case 1:N=R;break;case 4:return A.label++,{value:R[1],done:!1};case 5:A.label++,x=R[1],R=[0];continue;case 7:R=A.ops.pop(),A.trys.pop();continue;default:if(N=A.trys,!(N=N.length>0&&N[N.length-1])&&(R[0]===6||R[0]===2)){A=0;continue}if(R[0]===3&&(!N||R[1]>N[0]&&R[1]<N[3])){A.label=R[1];break}if(R[0]===6&&A.label<N[1]){A.label=N[1],N=R;break}if(N&&A.label<N[2]){A.label=N[2],A.ops.push(R);break}N[2]&&A.ops.pop(),A.trys.pop();continue}R=S.call(F,A)}catch(Q){R=[6,Q],x=0}finally{B=N=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},n=e&&e.__importStar||function(F){if(F&&F.__esModule)return F;var S={};if(F!=null)for(var A in F)Object.hasOwnProperty.call(F,A)&&(S[A]=F[A]);return S.default=F,S},i=e&&e.__importDefault||function(F){return F&&F.__esModule?F:{default:F}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(ot("fs")),a=n(ot("path")),o={gte:U1()},u=i(G1()),l=Y1();e.parseString=l.parseString;var c=i(X1()),f={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function p(F,S){var A={matchBase:!0,dot:!0,noext:!0};return S=S.replace(/\*\*/g,"{*,**/**/**}"),u.default(F,S,A)}function h(F,S){var A=[];do F=a.dirname(F),A.push(a.join(F,S.config));while(F!==S.root);return A}function d(F,S){return"indent_style"in F&&F.indent_style==="tab"&&!("indent_size"in F)&&o.gte(S,"0.10.0")&&(F.indent_size="tab"),"indent_size"in F&&!("tab_width"in F)&&F.indent_size!=="tab"&&(F.tab_width=F.indent_size),"indent_size"in F&&"tab_width"in F&&F.indent_size==="tab"&&(F.indent_size=F.tab_width),F}function m(F,S){return F===void 0&&(F={}),{config:F.config||".editorconfig",version:F.version||c.default.version,root:a.resolve(F.root||a.parse(S).root)}}function D(F,S){switch(S.indexOf("/")){case-1:S="**/"+S;break;case 0:S=S.substring(1);break}return a.join(F,S)}function g(F,S){F===void 0&&(F={}),S===void 0&&(S={});for(var A in S)if(S.hasOwnProperty(A)){var B=S[A],x=A.toLowerCase(),N=B;f[x]&&(N=B.toLowerCase());try{N=JSON.parse(B)}catch{}(typeof B>"u"||B===null)&&(N=String(B)),F[x]=N}return F}function y(F,S,A){return d(F.reverse().reduce(function(B,x){var N=a.dirname(x.name);return x.contents.forEach(function(H){var T=H[0],_=H[1];if(T){var R=D(N,T);p(S,R)&&(B=g(B,_))}}),B},{}),A.version)}function b(F){var S=[];for(var A in F)if(F.hasOwnProperty(A)){var B=F[A],x=l.parseString(B.contents);if(S.push({name:B.name,contents:x}),(x[0][1].root||"").toLowerCase()==="true")break}return S}function O(F){return t(this,void 0,void 0,function(){return r(this,function(S){return[2,Promise.all(F.map(function(A){return new Promise(function(B){s.readFile(A,"utf8",function(x,N){B({name:A,contents:x?"":N})})})}))]})})}function C(F){var S=[],A;return F.forEach(function(B){try{A=s.readFileSync(B,"utf8")}catch{A=""}S.push({name:B,contents:A})}),S}function $(F,S){S===void 0&&(S={});var A=a.resolve(F);return[A,m(S,A)]}function w(F,S,A){return A===void 0&&(A={}),t(this,void 0,void 0,function(){var B,x,N;return r(this,function(H){return B=$(F,A),x=B[0],N=B[1],[2,S.then(b).then(function(T){return y(T,x,N)})]})})}e.parseFromFiles=w;function P(F,S,A){A===void 0&&(A={});var B=$(F,A),x=B[0],N=B[1];return y(b(S),x,N)}e.parseFromFilesSync=P;function I(F,S){return S===void 0&&(S={}),t(this,void 0,void 0,function(){var A,B,x,N;return r(this,function(H){return A=$(F,S),B=A[0],x=A[1],N=h(B,x),[2,O(N).then(b).then(function(T){return y(T,B,x)})]})})}e.parse=I;function k(F,S){S===void 0&&(S={});var A=$(F,S),B=A[0],x=A[1],N=h(B,x),H=C(N);return y(b(H),B,x)}e.parseSync=k}}),z1=he({"node_modules/ci-info/vendors.json"(e,t){t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]}}),Q1=he({"node_modules/ci-info/index.js"(e){var t=z1(),r=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(i){return i.constant})}),e.name=null,e.isPR=null,t.forEach(function(i){const a=(Array.isArray(i.env)?i.env:[i.env]).every(function(o){return n(o)});if(e[i.constant]=a,!!a)switch(e.name=i.name,typeof i.pr){case"string":e.isPR=!!r[i.pr];break;case"object":"env"in i.pr?e.isPR=i.pr.env in r&&r[i.pr.env]!==i.pr.ne:"any"in i.pr?e.isPR=i.pr.any.some(function(o){return!!r[o]}):e.isPR=n(i.pr);break;default:e.isPR=null}}),e.isCI=!!(r.CI!=="false"&&(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name));function n(i){return typeof i=="string"?!!r[i]:"env"in i?r[i.env]&&r[i.env].includes(i.includes):"any"in i?i.any.some(function(s){return!!r[s]}):Object.keys(i).every(function(s){return r[s]===i[s]})}}}),Z1=he({"node_modules/@iarna/toml/lib/parser.js"(e,t){var r=1114112,n=class Qm extends Error{constructor(o,u,l){super("[ParserError] "+o,u,l),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,Qm)}},i=class{constructor(a){this.parser=a,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},s=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new i(this.parseStart)}parse(a){if(a.length===0||a.length==null)return;this._buf=String(a),this.ii=-1,this.char=-1;let o;for(;o===!1||this.nextChar();)o=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=r;let a;do a=this.state.parser,this.runOne();while(this.state.parser!==a);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(a){if(typeof a!="function")throw new n("Tried to set state to non-existent state: "+JSON.stringify(a));this.state.parser=a}goto(a){return this.next(a),this.runOne()}call(a,o){o&&this.next(o),this.stack.push(this.state),this.state=new i(a)}callNow(a,o){return this.call(a,o),this.runOne()}return(a){if(this.stack.length===0)throw this.error(new n("Stack underflow"));a===void 0&&(a=this.state.buf),this.state=this.stack.pop(),this.state.returned=a}returnNow(a){return this.return(a),this.runOne()}consume(){if(this.char===r)throw this.error(new n("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(a){return a.line=this.line,a.col=this.col,a.pos=this.pos,a}parseStart(){throw new n("Must declare a parseStart method")}};s.END=r,s.Error=n,t.exports=s}}),ev=he({"node_modules/@iarna/toml/lib/create-datetime.js"(e,t){t.exports=r=>{const n=new Date(r);if(isNaN(n))throw new TypeError("Invalid Datetime");return n}}}),Dc=he({"node_modules/@iarna/toml/lib/format-num.js"(e,t){t.exports=(r,n)=>{for(n=String(n);n.length<r;)n="0"+n;return n}}}),tv=he({"node_modules/@iarna/toml/lib/create-datetime-float.js"(e,t){var r=Dc(),n=class extends Date{constructor(i){super(i+"Z"),this.isFloating=!0}toISOString(){const i=`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`,s=`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`;return`${i}T${s}`}};t.exports=i=>{const s=new n(i);if(isNaN(s))throw new TypeError("Invalid Datetime");return s}}}),rv=he({"node_modules/@iarna/toml/lib/create-date.js"(e,t){var r=Dc(),n=global.Date,i=class extends n{constructor(s){super(s),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}};t.exports=s=>{const a=new i(s);if(isNaN(a))throw new TypeError("Invalid Datetime");return a}}}),nv=he({"node_modules/@iarna/toml/lib/create-time.js"(e,t){var r=Dc(),n=class extends Date{constructor(i){super(`0000-01-01T${i}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}};t.exports=i=>{const s=new n(i);if(isNaN(s))throw new TypeError("Invalid Datetime");return s}}}),iv=he({"node_modules/@iarna/toml/lib/toml-parser.js"(e,t){t.exports=ta(Z1()),t.exports.makeParserClass=ta;var r=class Zm extends Error{constructor(bt){super(bt),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,Zm),this.fromTOML=!0,this.wrapped=null}};r.wrap=ye=>{const bt=new r(ye.message);return bt.code=ye.code,bt.wrapped=ye,bt},t.exports.TomlError=r;var n=ev(),i=tv(),s=rv(),a=nv(),o=9,u=10,l=13,c=31,f=32,p=34,h=35,d=39,m=43,D=44,g=45,y=46,b=48,O=49,C=55,$=57,w=58,P=61,I=65,k=69,F=70,S=84,A=85,B=90,x=95,N=97,H=98,T=101,_=102,R=105,Q=108,ne=110,X=111,ae=114,ie=115,te=116,Y=117,re=120,De=122,de=123,Ce=125,Ie=91,Te=92,Ne=93,Je=127,Fe=55296,Oe=57343,ge={[H]:"\b",[te]:" ",[ne]:`
28
+ `,[_]:"\f",[ae]:"\r",[p]:'"',[Te]:"\\"};function Ae(ye){return ye>=b&&ye<=$}function st(ye){return ye>=I&&ye<=F||ye>=N&&ye<=_||ye>=b&&ye<=$}function fe(ye){return ye===O||ye===b}function $e(ye){return ye>=b&&ye<=C}function Z(ye){return ye>=I&&ye<=B||ye>=N&&ye<=De||ye>=b&&ye<=$||ye===d||ye===p||ye===x||ye===g}function G(ye){return ye>=I&&ye<=B||ye>=N&&ye<=De||ye>=b&&ye<=$||ye===x||ye===g}var V=Symbol("type"),E=Symbol("declared"),j=Object.prototype.hasOwnProperty,z=Object.defineProperty,se={configurable:!0,enumerable:!0,writable:!0,value:void 0};function oe(ye,bt){return j.call(ye,bt)?!0:(bt==="__proto__"&&z(ye,"__proto__",se),!1)}var ce=Symbol("inline-table");function Pe(){return Object.defineProperties({},{[V]:{value:ce}})}function Ue(ye){return ye===null||typeof ye!="object"?!1:ye[V]===ce}var ue=Symbol("table");function Me(){return Object.defineProperties({},{[V]:{value:ue},[E]:{value:!1,writable:!0}})}function Ve(ye){return ye===null||typeof ye!="object"?!1:ye[V]===ue}var Ke=Symbol("content-type"),Le=Symbol("inline-list");function W(ye){return Object.defineProperties([],{[V]:{value:Le},[Ke]:{value:ye}})}function Se(ye){return ye===null||typeof ye!="object"?!1:ye[V]===Le}var ze=Symbol("list");function ft(){return Object.defineProperties([],{[V]:{value:ze}})}function lr(ye){return ye===null||typeof ye!="object"?!1:ye[V]===ze}var Or;try{Or=ot("util").inspect.custom}catch{}var cr=Or||"inspect",fr=class{constructor(ye){try{this.value=global.BigInt.asIntN(64,ye)}catch{this.value=null}Object.defineProperty(this,V,{value:Jt})}isNaN(){return this.value===null}toString(){return String(this.value)}[cr](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},Jt=Symbol("integer");function wt(ye){let bt=Number(ye);return Object.is(bt,-0)&&(bt=0),global.BigInt&&!Number.isSafeInteger(bt)?new fr(ye):Object.defineProperties(new Number(bt),{isNaN:{value:function(){return isNaN(this)}},[V]:{value:Jt},[cr]:{value:()=>`[Integer: ${ye}]`}})}function Tr(ye){return ye===null||typeof ye!="object"?!1:ye[V]===Jt}var an=Symbol("float");function jn(ye){return Object.defineProperties(new Number(ye),{[V]:{value:an},[cr]:{value:()=>`[Float: ${ye}]`}})}function on(ye){return ye===null||typeof ye!="object"?!1:ye[V]===an}function ea(ye){const bt=typeof ye;if(bt==="object"){if(ye===null)return"null";if(ye instanceof Date)return"datetime";if(V in ye)switch(ye[V]){case ce:return"inline-table";case Le:return"inline-list";case ue:return"table";case ze:return"list";case an:return"float";case Jt:return"integer"}}return bt}function ta(ye){class bt extends ye{constructor(){super(),this.ctx=this.obj=Me()}atEndOfWord(){return this.char===h||this.char===o||this.char===f||this.atEndOfLine()}atEndOfLine(){return this.char===ye.END||this.char===u||this.char===l}parseStart(){if(this.char===ye.END)return null;if(this.char===Ie)return this.call(this.parseTableOrList);if(this.char===h)return this.call(this.parseComment);if(this.char===u||this.char===f||this.char===o||this.char===l)return null;if(Z(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new r(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===f||this.char===o||this.char===l)return null;if(this.char===h)return this.goto(this.parseComment);if(this.char===ye.END||this.char===u)return this.return();throw this.error(new r("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(Ee){let rt=this.ctx,zt=Ee.key.pop();for(let Gt of Ee.key){if(oe(rt,Gt)&&(!Ve(rt[Gt])||rt[Gt][E]))throw this.error(new r("Can't redefine existing key"));rt=rt[Gt]=rt[Gt]||Me()}if(oe(rt,zt))throw this.error(new r("Can't redefine existing key"));return Tr(Ee.value)||on(Ee.value)?rt[zt]=Ee.value.valueOf():rt[zt]=Ee.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(Ee){return this.state.resultTable?this.state.resultTable.push(Ee):this.state.resultTable=[Ee],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===y)return this.next(this.parseAssignKeywordPostDot);if(this.char!==f&&this.char!==o)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==f&&this.char!==o)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===P)return this.next(this.parseAssignPreValue);throw this.error(new r('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===f||this.char===o?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(Ee){return this.returnNow({key:this.state.resultTable,value:Ee})}parseComment(){do if(this.char===ye.END||this.char===u)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===Ie)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===f||this.char===o?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(Ee){if(this.char===f||this.char===o)return null;if(this.char===Ne){if(oe(this.ctx,Ee)&&(!Ve(this.ctx[Ee])||this.ctx[Ee][E]))throw this.error(new r("Can't redefine existing key"));return this.ctx=this.ctx[Ee]=this.ctx[Ee]||Me(),this.ctx[E]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===y){if(!oe(this.ctx,Ee))this.ctx=this.ctx[Ee]=Me();else if(Ve(this.ctx[Ee]))this.ctx=this.ctx[Ee];else if(lr(this.ctx[Ee]))this.ctx=this.ctx[Ee][this.ctx[Ee].length-1];else throw this.error(new r("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===f||this.char===o?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(Ee){if(this.char===f||this.char===o)return null;if(this.char===Ne){if(oe(this.ctx,Ee)||(this.ctx[Ee]=ft()),Se(this.ctx[Ee]))throw this.error(new r("Can't extend an inline array"));if(lr(this.ctx[Ee])){const rt=Me();this.ctx[Ee].push(rt),this.ctx=rt}else throw this.error(new r("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===y){if(!oe(this.ctx,Ee))this.ctx=this.ctx[Ee]=Me();else{if(Se(this.ctx[Ee]))throw this.error(new r("Can't extend an inline array"));if(Ue(this.ctx[Ee]))throw this.error(new r("Can't extend an inline table"));if(lr(this.ctx[Ee]))this.ctx=this.ctx[Ee][this.ctx[Ee].length-1];else if(Ve(this.ctx[Ee]))this.ctx=this.ctx[Ee];else throw this.error(new r("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseListEnd(Ee){if(this.char===Ne)return this.next(this.parseWhitespaceToEOL);throw this.error(new r("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===ye.END)throw this.error(new r("Key without value"));if(this.char===p)return this.next(this.parseDoubleString);if(this.char===d)return this.next(this.parseSingleString);if(this.char===g||this.char===m)return this.goto(this.parseNumberSign);if(this.char===R)return this.next(this.parseInf);if(this.char===ne)return this.next(this.parseNan);if(Ae(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===te||this.char===_)return this.goto(this.parseBoolean);if(this.char===Ie)return this.call(this.parseInlineList,this.recordValue);if(this.char===de)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new r("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(Ee){return this.returnNow(Ee)}parseInf(){if(this.char===ne)return this.next(this.parseInf2);throw this.error(new r('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===_)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new r('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===N)return this.next(this.parseNan2);throw this.error(new r('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===ne)return this.return(NaN);throw this.error(new r('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===p?this.next(this.parseBasicString):this.char===d?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===ye.END)throw this.error(new r("Key ended without value"));if(G(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new r("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===d?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===d)return this.return();if(this.atEndOfLine())throw this.error(new r("Unterminated string"));if(this.char===Je||this.char<=c&&this.char!==o)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===d?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===l?null:this.char===u?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===d)return this.next(this.parseLiteralMultiEnd);if(this.char===ye.END)throw this.error(new r("Unterminated multi-line string"));if(this.char===Je||this.char<=c&&this.char!==o&&this.char!==u&&this.char!==l)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===d?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===d?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===p?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===Te)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===p)return this.return();if(this.atEndOfLine())throw this.error(new r("Unterminated string"));if(this.char===Je||this.char<=c&&this.char!==o)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(Ee){return this.state.buf+=Ee,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===p?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===l?null:this.char===u?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===Te)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===p)return this.next(this.parseMultiEnd);if(this.char===ye.END)throw this.error(new r("Unterminated multi-line string"));if(this.char===Je||this.char<=c&&this.char!==o&&this.char!==u&&this.char!==l)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let Ee="\\u00";return this.char<16&&(Ee+="0"),Ee+=this.char.toString(16),this.error(new r(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${Ee} instead`))}recordMultiEscapeReplacement(Ee){return this.state.buf+=Ee,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===p?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===p?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===l||this.char===u?this.next(this.parseMultiTrim):this.char===f||this.char===o?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===f||this.char===o)return null;if(this.char===l||this.char===u)return this.next(this.parseMultiTrim);throw this.error(new r("Can't escape whitespace"))}parseMultiTrim(){return this.char===u||this.char===f||this.char===o||this.char===l?null:this.returnNow()}parseEscape(){if(this.char in ge)return this.return(ge[this.char]);if(this.char===Y)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===A)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new r("Unknown escape character: "+this.char))}parseUnicodeReturn(Ee){try{const rt=parseInt(Ee,16);if(rt>=Fe&&rt<=Oe)throw this.error(new r("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(rt))}catch(rt){throw this.error(r.wrap(rt))}}parseSmallUnicode(){if(st(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new r("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(st(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new r("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===R?this.next(this.parseInf):this.char===ne?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===b?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===y?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===k||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(wt(this.state.buf))}parseNumberInteger(){if(Ae(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnder);if(this.char===k||this.char===T)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===y)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseNoUnder(){if(this.char===x||this.char===y||this.char===k||this.char===T)throw this.error(new r("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new r("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===x||this.char===y)throw this.error(new r("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new r("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===x)return this.call(this.parseNoUnder,this.parseNumberFloat);if(Ae(this.char))this.consume();else return this.char===k||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(jn(this.state.buf))}parseNumberExponentSign(){if(Ae(this.char))return this.goto(this.parseNumberExponent);if(this.char===g||this.char===m)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new r("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(Ae(this.char))this.consume();else return this.char===x?this.call(this.parseNoUnder):this.returnNow(jn(this.state.buf))}parseNumberOrDateTime(){return this.char===b?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===x)return this.call(this.parseNoUnder,this.parseNumberInteger);if(Ae(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===k||this.char===T?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===y?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===g?this.goto(this.parseDateTime):this.char===w?this.goto(this.parseOnlyTimeHour):this.returnNow(wt(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(Ae(this.char))return this.consume();if(this.char===w)return this.goto(this.parseOnlyTimeHour);throw this.error(new r("Expected digit while parsing year part of a date"))}else{if(this.char===g)return this.goto(this.parseDateTime);throw this.error(new r("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===H?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===X?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===re?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===y?this.goto(this.parseNumberInteger):Ae(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(wt(this.state.buf))}parseIntegerHex(){if(st(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseIntegerOct(){if($e(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseIntegerBin(){if(fe(this.char))this.consume();else{if(this.char===x)return this.call(this.parseNoUnderHexOctBinLiteral);{const Ee=wt(this.state.buf);if(Ee.isNaN())throw this.error(new r("Invalid number"));return this.returnNow(Ee)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new r("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===g){if(this.state.buf.length<2)throw this.error(new r("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}parseDateDay(){if(this.char===S||this.char===f){if(this.state.buf.length<2)throw this.error(new r("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(s(this.state.result+"-"+this.state.buf));if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(s(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===w){if(this.state.buf.length<2)throw this.error(new r("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(Ae(this.char))this.consume();else throw this.error(new r("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&Ae(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===w)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new r("Incomplete datetime"))}}parseTimeSec(){if(Ae(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new r("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===w){if(this.state.buf.length<2)throw this.error(new r("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new r("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&Ae(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===w)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new r("Incomplete time"))}}parseOnlyTimeSec(){if(Ae(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new r("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===y)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(a(this.state.result))}parseOnlyTimeFraction(){if(Ae(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new r("Expected digit in milliseconds"));return this.returnNow(a(this.state.result+"."+this.state.buf))}else throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===y)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===g||this.char===m)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===B)return this.consume(),this.return(n(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(i(this.state.result+this.state.buf));throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(Ae(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new r("Expected digit in milliseconds"));if(this.char===g||this.char===m)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===B)return this.consume(),this.return(n(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(i(this.state.result+this.state.buf));throw this.error(new r("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(Ae(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new r("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===w)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new r("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(Ae(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(n(this.state.result+this.state.buf))}else throw this.error(new r("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===te)return this.consume(),this.next(this.parseTrue_r);if(this.char===_)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===ae)return this.consume(),this.next(this.parseTrue_u);throw this.error(new r("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===Y)return this.consume(),this.next(this.parseTrue_e);throw this.error(new r("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===T)return this.return(!0);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===N)return this.consume(),this.next(this.parseFalse_l);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===Q)return this.consume(),this.next(this.parseFalse_s);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===ie)return this.consume(),this.next(this.parseFalse_e);throw this.error(new r("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===T)return this.return(!1);throw this.error(new r("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===f||this.char===o||this.char===l||this.char===u)return null;if(this.char===ye.END)throw this.error(new r("Unterminated inline array"));return this.char===h?this.call(this.parseComment):this.char===Ne?this.return(this.state.resultArr||W()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(Ee){if(this.state.resultArr){const rt=this.state.resultArr[Ke],zt=ea(Ee);if(rt!==zt)throw this.error(new r(`Inline lists must be a single type, not a mix of ${rt} and ${zt}`))}else this.state.resultArr=W(ea(Ee));return on(Ee)||Tr(Ee)?this.state.resultArr.push(Ee.valueOf()):this.state.resultArr.push(Ee),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===f||this.char===o||this.char===l||this.char===u)return null;if(this.char===h)return this.call(this.parseComment);if(this.char===D)return this.next(this.parseInlineList);if(this.char===Ne)return this.goto(this.parseInlineList);throw this.error(new r("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===f||this.char===o)return null;if(this.char===ye.END||this.char===h||this.char===u||this.char===l)throw this.error(new r("Unterminated inline array"));return this.char===Ce?this.return(this.state.resultTable||Pe()):(this.state.resultTable||(this.state.resultTable=Pe()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(Ee){let rt=this.state.resultTable,zt=Ee.key.pop();for(let Gt of Ee.key){if(oe(rt,Gt)&&(!Ve(rt[Gt])||rt[Gt][E]))throw this.error(new r("Can't redefine existing key"));rt=rt[Gt]=rt[Gt]||Me()}if(oe(rt,zt))throw this.error(new r("Can't redefine existing key"));return Tr(Ee.value)||on(Ee.value)?rt[zt]=Ee.value.valueOf():rt[zt]=Ee.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===f||this.char===o)return null;if(this.char===ye.END||this.char===h||this.char===u||this.char===l)throw this.error(new r("Unterminated inline array"));if(this.char===D)return this.next(this.parseInlineTable);if(this.char===Ce)return this.goto(this.parseInlineTable);throw this.error(new r("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return bt}}}),sv=he({"node_modules/@iarna/toml/parse-pretty-error.js"(e,t){t.exports=r;function r(n,i){if(n.pos==null||n.line==null)return n;let s=n.message;if(s+=` at row ${n.line+1}, col ${n.col+1}, pos ${n.pos}:
29
+ `,i&&i.split){const a=i.split(/\n/),o=String(Math.min(a.length,n.line+3)).length;let u=" ";for(;u.length<o;)u+=" ";for(let l=Math.max(0,n.line-1);l<Math.min(a.length,n.line+2);++l){let c=String(l+1);if(c.length<o&&(c=" "+c),n.line===l){s+=c+"> "+a[l]+`
30
+ `,s+=u+" ";for(let f=0;f<n.col;++f)s+=" ";s+=`^
31
+ `}else s+=c+": "+a[l]+`
32
+ `}}return n.message=s+`
33
+ `,n}}}),av=he({"node_modules/@iarna/toml/parse-async.js"(e,t){t.exports=i;var r=iv(),n=sv();function i(s,a){a||(a={});const o=0,u=a.blocksize||40960,l=new r;return new Promise((f,p)=>{setImmediate(c,o,u,f,p)});function c(f,p,h,d){if(f>=s.length)try{return h(l.finish())}catch(m){return d(n(m,s))}try{l.parse(s.slice(f,f+p)),setImmediate(c,f+p,p,h,d)}catch(m){d(n(m,s))}}}}}),ov=he({"node_modules/js-tokens/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:void 0};return t[1]?(r.type="string",r.closed=!!(t[3]||t[4])):t[5]?r.type="comment":t[6]?(r.type="comment",r.closed=!!t[7]):t[8]?r.type="regex":t[9]?r.type="number":t[10]?r.type="name":t[11]?r.type="punctuator":t[12]&&(r.type="whitespace"),r}}}),uv=he({"node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=l,e.isIdentifierName=c,e.isIdentifierStart=u;var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",n=new RegExp("["+t+"]"),i=new RegExp("["+t+r+"]");t=r=null;var s=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function o(f,p){let h=65536;for(let d=0,m=p.length;d<m;d+=2){if(h+=p[d],h>f)return!1;if(h+=p[d+1],h>=f)return!0}return!1}function u(f){return f<65?f===36:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&n.test(String.fromCharCode(f)):o(f,s)}function l(f){return f<48?f===36:f<58?!0:f<65?!1:f<=90?!0:f<97?f===95:f<=122?!0:f<=65535?f>=170&&i.test(String.fromCharCode(f)):o(f,s)||o(f,a)}function c(f){let p=!0;for(let h=0;h<f.length;h++){let d=f.charCodeAt(h);if((d&64512)===55296&&h+1<f.length){const m=f.charCodeAt(++h);(m&64512)===56320&&(d=65536+((d&1023)<<10)+(m&1023))}if(p){if(p=!1,!u(d))return!1}else if(!l(d))return!1}return!p}}}),lv=he({"node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=l,e.isReservedWord=s,e.isStrictBindOnlyReservedWord=o,e.isStrictBindReservedWord=u,e.isStrictReservedWord=a;var t={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(t.keyword),n=new Set(t.strict),i=new Set(t.strictBind);function s(c,f){return f&&c==="await"||c==="enum"}function a(c,f){return s(c,f)||n.has(c)}function o(c){return i.has(c)}function u(c,f){return a(c,f)||o(c)}function l(c){return r.has(c)}}}),cv=he({"node_modules/@babel/helper-validator-identifier/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=uv(),r=lv()}}),ey=he({"node_modules/picocolors/picocolors.js"(e,t){var r=process.argv||[],n=process.env,i=!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||process.platform==="win32"||ot!=null&&ot("tty").isatty(1)&&n.TERM!=="dumb"||"CI"in n),s=(u,l,c=u)=>f=>{let p=""+f,h=p.indexOf(l,u.length);return~h?u+a(p,l,c,h)+l:u+p+l},a=(u,l,c,f)=>{let p="",h=0;do p+=u.substring(h,f)+c,h=f+l.length,f=u.indexOf(l,h);while(~f);return p+u.substring(h)},o=(u=i)=>{let l=u?s:()=>String;return{isColorSupported:u,reset:l("\x1B[0m","\x1B[0m"),bold:l("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:l("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:l("\x1B[3m","\x1B[23m"),underline:l("\x1B[4m","\x1B[24m"),inverse:l("\x1B[7m","\x1B[27m"),hidden:l("\x1B[8m","\x1B[28m"),strikethrough:l("\x1B[9m","\x1B[29m"),black:l("\x1B[30m","\x1B[39m"),red:l("\x1B[31m","\x1B[39m"),green:l("\x1B[32m","\x1B[39m"),yellow:l("\x1B[33m","\x1B[39m"),blue:l("\x1B[34m","\x1B[39m"),magenta:l("\x1B[35m","\x1B[39m"),cyan:l("\x1B[36m","\x1B[39m"),white:l("\x1B[37m","\x1B[39m"),gray:l("\x1B[90m","\x1B[39m"),bgBlack:l("\x1B[40m","\x1B[49m"),bgRed:l("\x1B[41m","\x1B[49m"),bgGreen:l("\x1B[42m","\x1B[49m"),bgYellow:l("\x1B[43m","\x1B[49m"),bgBlue:l("\x1B[44m","\x1B[49m"),bgMagenta:l("\x1B[45m","\x1B[49m"),bgCyan:l("\x1B[46m","\x1B[49m"),bgWhite:l("\x1B[47m","\x1B[49m")}};t.exports=o(),t.exports.createColors=o}}),fv=he({"node_modules/@babel/highlight/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g,e.shouldHighlight=d;var t=ov(),r=cv(),n=s(ey(),!0);function i(y){if(typeof WeakMap!="function")return null;var b=new WeakMap,O=new WeakMap;return(i=function(C){return C?O:b})(y)}function s(y,b){if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var O=i(b);if(O&&O.has(y))return O.get(y);var C={__proto__:null},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in y)if(w!=="default"&&{}.hasOwnProperty.call(y,w)){var P=$?Object.getOwnPropertyDescriptor(y,w):null;P&&(P.get||P.set)?Object.defineProperty(C,w,P):C[w]=y[w]}return C.default=y,O&&O.set(y,C),C}var a=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,n.createColors)(!1):n.default,o=(y,b)=>O=>y(b(O)),u=new Set(["as","async","from","get","of","set"]);function l(y){return{keyword:y.cyan,capitalized:y.yellow,jsxIdentifier:y.yellow,punctuator:y.yellow,number:y.magenta,string:y.green,regex:y.magenta,comment:y.gray,invalid:o(o(y.white,y.bgRed),y.bold)}}var c=/\r\n|[\n\r\u2028\u2029]/,f=/^[()[\]{}]$/,p;{const y=/^[a-z][\w-]*$/i,b=function(O,C,$){if(O.type==="name"){if((0,r.isKeyword)(O.value)||(0,r.isStrictReservedWord)(O.value,!0)||u.has(O.value))return"keyword";if(y.test(O.value)&&($[C-1]==="<"||$.slice(C-2,C)==="</"))return"jsxIdentifier";if(O.value[0]!==O.value[0].toLowerCase())return"capitalized"}return O.type==="punctuator"&&f.test(O.value)?"bracket":O.type==="invalid"&&(O.value==="@"||O.value==="#")?"punctuator":O.type};p=function*(O){let C;for(;C=t.default.exec(O);){const $=t.matchToToken(C);yield{type:b($,C.index,O),value:$.value}}}}function h(y,b){let O="";for(const{type:C,value:$}of p(b)){const w=y[C];w?O+=$.split(c).map(P=>w(P)).join(`
34
+ `):O+=$}return O}function d(y){return a.isColorSupported||y.forceColor}var m=void 0;function D(y){if(y){var b;return(b=m)!=null||(m=(0,n.createColors)(!0)),m}return a}function g(y,b={}){if(y!==""&&d(b)){const O=l(D(b.forceColor));return h(O,y)}else return y}{let y,b;e.getChalk=({forceColor:O})=>{var C;if((C=y)!=null||(y=(Po(),xS(Gm))),O){var $;return($=b)!=null||(b=new y.constructor({enabled:!0,level:1})),b}return y}}}}),ty=he({"node_modules/@babel/code-frame/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=h,e.default=d;var t=fv(),r=i(ey(),!0);function n(m){if(typeof WeakMap!="function")return null;var D=new WeakMap,g=new WeakMap;return(n=function(y){return y?g:D})(m)}function i(m,D){if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var g=n(D);if(g&&g.has(m))return g.get(m);var y={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in m)if(O!=="default"&&{}.hasOwnProperty.call(m,O)){var C=b?Object.getOwnPropertyDescriptor(m,O):null;C&&(C.get||C.set)?Object.defineProperty(y,O,C):y[O]=m[O]}return y.default=m,g&&g.set(m,y),y}var s=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,r.createColors)(!1):r.default,a=(m,D)=>g=>m(D(g)),o=void 0;function u(m){if(m){var D;return(D=o)!=null||(o=(0,r.createColors)(!0)),o}return s}var l=!1;function c(m){return{gutter:m.gray,marker:a(m.red,m.bold),message:a(m.red,m.bold)}}var f=/\r\n|[\n\r\u2028\u2029]/;function p(m,D,g){const y=Object.assign({column:0,line:-1},m.start),b=Object.assign({},y,m.end),{linesAbove:O=2,linesBelow:C=3}=g||{},$=y.line,w=y.column,P=b.line,I=b.column;let k=Math.max($-(O+1),0),F=Math.min(D.length,P+C);$===-1&&(k=0),P===-1&&(F=D.length);const S=P-$,A={};if(S)for(let B=0;B<=S;B++){const x=B+$;if(!w)A[x]=!0;else if(B===0){const N=D[x-1].length;A[x]=[w,N-w+1]}else if(B===S)A[x]=[0,I];else{const N=D[x-B].length;A[x]=[0,N]}}else w===I?w?A[$]=[w,0]:A[$]=!0:A[$]=[w,I-w];return{start:k,end:F,markerLines:A}}function h(m,D,g={}){const y=(g.highlightCode||g.forceColor)&&(0,t.shouldHighlight)(g),b=u(g.forceColor),O=c(b),C=(B,x)=>y?B(x):x,$=m.split(f),{start:w,end:P,markerLines:I}=p(D,$,g),k=D.start&&typeof D.start.column=="number",F=String(P).length;let A=(y?(0,t.default)(m,g):m).split(f,P).slice(w,P).map((B,x)=>{const N=w+1+x,T=` ${` ${N}`.slice(-F)} |`,_=I[N],R=!I[N+1];if(_){let Q="";if(Array.isArray(_)){const ne=B.slice(0,Math.max(_[0]-1,0)).replace(/[^\t]/g," "),X=_[1]||1;Q=[`
35
+ `,C(O.gutter,T.replace(/\d/g," "))," ",ne,C(O.marker,"^").repeat(X)].join(""),R&&g.message&&(Q+=" "+C(O.message,g.message))}return[C(O.marker,">"),C(O.gutter,T),B.length>0?` ${B}`:"",Q].join("")}else return` ${C(O.gutter,T)}${B.length>0?` ${B}`:""}`}).join(`
36
+ `);return g.message&&!k&&(A=`${" ".repeat(F+1)}${g.message}
37
+ ${A}`),y?b.reset(A):A}function d(m,D,g,y={}){if(!l){l=!0;const O="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(O,"DeprecationWarning");else{const C=new Error(O);C.name="DeprecationWarning",console.warn(new Error(O))}}return g=Math.max(g,0),h(m,{start:{column:g,line:D}},y)}}}),pv=he({"node_modules/ignore/index.js"(e,t){function r(T){return Array.isArray(T)?T:[T]}var n="",i=" ",s="\\",a=/^\s+$/,o=/(?:[^\\]|^)\\$/,u=/^\\!/,l=/^\\#/,c=/\r?\n/g,f=/^\.*\/|^\.+$/,p="/",h="node-ignore";typeof Symbol<"u"&&(h=Symbol.for("node-ignore"));var d=h,m=(T,_,R)=>Object.defineProperty(T,_,{value:R}),D=/([0-z])-([0-z])/g,g=()=>!1,y=T=>T.replace(D,(_,R,Q)=>R.charCodeAt(0)<=Q.charCodeAt(0)?_:n),b=T=>{const{length:_}=T;return T.slice(0,_-_%2)},O=[[/^\uFEFF/,()=>n],[/\\?\s+$/,T=>T.indexOf("\\")===0?i:n],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,T=>`\\${T}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(T,_,R)=>_+6<R.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(T,_,R)=>{const Q=R.replace(/\\\*/g,"[^\\/]*");return _+Q}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(T,_,R,Q,ne)=>_===s?`\\[${R}${b(Q)}${ne}`:ne==="]"&&Q.length%2===0?`[${y(R)}${Q}]`:"[]"],[/(?:[^*])$/,T=>/\/$/.test(T)?`${T}$`:`${T}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(T,_)=>`${_?`${_}[^/]+`:"[^/]*"}(?=$|\\/$)`]],C=Object.create(null),$=(T,_)=>{let R=C[T];return R||(R=O.reduce((Q,ne)=>Q.replace(ne[0],ne[1].bind(T)),T),C[T]=R),_?new RegExp(R,"i"):new RegExp(R)},w=T=>typeof T=="string",P=T=>T&&w(T)&&!a.test(T)&&!o.test(T)&&T.indexOf("#")!==0,I=T=>T.split(c),k=class{constructor(T,_,R,Q){this.origin=T,this.pattern=_,this.negative=R,this.regex=Q}},F=(T,_)=>{const R=T;let Q=!1;T.indexOf("!")===0&&(Q=!0,T=T.substr(1)),T=T.replace(u,"!").replace(l,"#");const ne=$(T,_);return new k(R,T,Q,ne)},S=(T,_)=>{throw new _(T)},A=(T,_,R)=>w(T)?T?A.isNotRelative(T)?R(`path should be a \`path.relative()\`d string, but got "${_}"`,RangeError):!0:R("path must not be empty",TypeError):R(`path must be a string, but got \`${_}\``,TypeError),B=T=>f.test(T);A.isNotRelative=B,A.convert=T=>T;var x=class{constructor({ignorecase:T=!0,ignoreCase:_=T,allowRelativePaths:R=!1}={}){m(this,d,!0),this._rules=[],this._ignoreCase=_,this._allowRelativePaths=R,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(T){if(T&&T[d]){this._rules=this._rules.concat(T._rules),this._added=!0;return}if(P(T)){const _=F(T,this._ignoreCase);this._added=!0,this._rules.push(_)}}add(T){return this._added=!1,r(w(T)?I(T):T).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(T){return this.add(T)}_testOne(T,_){let R=!1,Q=!1;return this._rules.forEach(ne=>{const{negative:X}=ne;if(Q===X&&R!==Q||X&&!R&&!Q&&!_)return;ne.regex.test(T)&&(R=!X,Q=X)}),{ignored:R,unignored:Q}}_test(T,_,R,Q){const ne=T&&A.convert(T);return A(ne,T,this._allowRelativePaths?g:S),this._t(ne,_,R,Q)}_t(T,_,R,Q){if(T in _)return _[T];if(Q||(Q=T.split(p)),Q.pop(),!Q.length)return _[T]=this._testOne(T,R);const ne=this._t(Q.join(p)+p,_,R,Q);return _[T]=ne.ignored?ne:this._testOne(T,R)}ignores(T){return this._test(T,this._ignoreCache,!1).ignored}createFilter(){return T=>!this.ignores(T)}filter(T){return r(T).filter(this.createFilter())}test(T){return this._test(T,this._testCache,!0)}},N=T=>new x(T),H=T=>A(T&&A.convert(T),T,g);if(N.isPathValid=H,N.default=N,t.exports=N,typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const T=R=>/^\\\\\?\\/.test(R)||/["<>|\u0000-\u001F]+/u.test(R)?R:R.replace(/\\/g,"/");A.convert=T;const _=/^[a-z]:\//i;A.isNotRelative=R=>_.test(R)||B(R)}}}),hv=he({"node_modules/n-readlines/readlines.js"(e,t){var r=ot("fs"),n=class{constructor(i,s){s=s||{},s.readChunk||(s.readChunk=1024),s.newLineCharacter?s.newLineCharacter=s.newLineCharacter.charCodeAt(0):s.newLineCharacter=10,typeof i=="number"?this.fd=i:this.fd=r.openSync(i,"r"),this.options=s,this.newLineCharacter=s.newLineCharacter,this.reset()}_searchInBuffer(i,s){let a=-1;for(let o=0;o<=i.length;o++)if(i[o]===s){a=o;break}return a}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){r.closeSync(this.fd),this.fd=null}_extractLines(i){let s;const a=[];let o=0,u=0;for(;;){let c=i[o++];if(c===this.newLineCharacter)s=i.slice(u,o),a.push(s),u=o;else if(c===void 0)break}let l=i.slice(u,o);return l.length&&a.push(l),a}_readChunk(i){let s=0,a;const o=[];do{const l=Buffer.alloc(this.options.readChunk);a=r.readSync(this.fd,l,0,this.options.readChunk,this.fdPosition),s=s+a,this.fdPosition=this.fdPosition+a,o.push(l)}while(a&&this._searchInBuffer(o[o.length-1],this.options.newLineCharacter)===-1);let u=Buffer.concat(o);return a<this.options.readChunk&&(this.eofReached=!0,u=u.slice(0,s)),s&&(this.linesCache=this._extractLines(u),i&&(this.linesCache[0]=Buffer.concat([i,this.linesCache[0]]))),s}next(){if(!this.fd)return!1;let i=!1;if(this.eofReached&&this.linesCache.length===0)return i;let s;return this.linesCache.length||(s=this._readChunk()),this.linesCache.length&&(i=this.linesCache.shift(),i[i.length-1]!==this.newLineCharacter&&(s=this._readChunk(i),s&&(i=this.linesCache.shift()))),this.eofReached&&this.linesCache.length===0&&this.close(),i&&i[i.length-1]===this.newLineCharacter&&(i=i.slice(0,i.length-1)),i}};t.exports=n}}),ry={};Mi(ry,{__debug:()=>nw,__internal:()=>rw,check:()=>Q_,clearConfigCache:()=>Z_,doc:()=>bS,format:()=>x0,formatWithCursor:()=>P0,getFileInfo:()=>ew,getSupportInfo:()=>tw,resolveConfig:()=>Gy,resolveConfigFile:()=>qx,util:()=>C0,version:()=>F_});function On(){}On.prototype={diff:function(t,r){var n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.callback;typeof i=="function"&&(s=i,i={}),this.options=i;var a=this;function o(O){return s?(setTimeout(function(){s(void 0,O)},0),!0):O}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var u=r.length,l=t.length,c=1,f=u+l;i.maxEditLength&&(f=Math.min(f,i.maxEditLength));var p=(n=i.timeout)!==null&&n!==void 0?n:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(d[0],r,t,0);if(d[0].oldPos+1>=l&&m+1>=u)return o([{value:this.join(r),count:r.length}]);var D=-1/0,g=1/0;function y(){for(var O=Math.max(D,-c);O<=Math.min(g,c);O+=2){var C=void 0,$=d[O-1],w=d[O+1];$&&(d[O-1]=void 0);var P=!1;if(w){var I=w.oldPos-O;P=w&&0<=I&&I<u}var k=$&&$.oldPos+1<l;if(!P&&!k){d[O]=void 0;continue}if(!k||P&&$.oldPos+1<w.oldPos?C=a.addToPath(w,!0,void 0,0):C=a.addToPath($,void 0,!0,1),m=a.extractCommon(C,r,t,O),C.oldPos+1>=l&&m+1>=u)return o(dv(a,C.lastComponent,r,t,a.useLongestToken));d[O]=C,C.oldPos+1>=l&&(g=Math.min(g,O-1)),m+1>=u&&(D=Math.max(D,O+1))}c++}if(s)(function O(){setTimeout(function(){if(c>f||Date.now()>h)return s();y()||O()},0)})();else for(;c<=f&&Date.now()<=h;){var b=y();if(b)return b}},addToPath:function(t,r,n,i){var s=t.lastComponent;return s&&s.added===r&&s.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:s.count+1,added:r,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:s}}},extractCommon:function(t,r,n,i){for(var s=r.length,a=n.length,o=t.oldPos,u=o-i,l=0;u+1<s&&o+1<a&&this.equals(r[u+1],n[o+1]);)u++,o++,l++;return l&&(t.lastComponent={count:l,previousComponent:t.lastComponent}),t.oldPos=o,u},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function dv(e,t,r,n,i){for(var s=[],a;t;)s.push(t),a=t.previousComponent,delete t.previousComponent,t=a;s.reverse();for(var o=0,u=s.length,l=0,c=0;o<u;o++){var f=s[o];if(f.removed){if(f.value=e.join(n.slice(c,c+f.count)),c+=f.count,o&&s[o-1].added){var h=s[o-1];s[o-1]=s[o],s[o]=h}}else{if(!f.added&&i){var p=r.slice(l,l+f.count);p=p.map(function(m,D){var g=n[c+D];return g.length>m.length?g:m}),f.value=e.join(p)}else f.value=e.join(r.slice(l,l+f.count));l+=f.count,f.added||(c+=f.count)}}var d=s[u-1];return u>1&&typeof d.value=="string"&&(d.added||d.removed)&&e.equals("",d.value)&&(s[u-2].value+=d.value,s.pop()),s}var rp=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,np=/\S/,ny=new On;ny.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!np.test(e)&&!np.test(t)};ny.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&rp.test(t[r])&&rp.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var gc=new On;gc.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
38
+ `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var i=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function mv(e,t,r){return gc.diff(e,t,r)}var yv=new On;yv.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Dv=new On;Dv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Va(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Va=function(t){return typeof t}:Va=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function mu(e){return gv(e)||Ev(e)||bv(e)||Tv()}function gv(e){if(Array.isArray(e))return Tl(e)}function Ev(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bv(e,t){if(e){if(typeof e=="string")return Tl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tl(e,t)}}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
39
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Sv=Object.prototype.toString,ws=new On;ws.useLongestToken=!0;ws.tokenize=gc.tokenize;ws.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,i=n===void 0?function(s,a){return typeof a>"u"?r:a}:n;return typeof e=="string"?e:JSON.stringify(Sl(e,null,null,i),i," ")};ws.equals=function(e,t){return On.prototype.equals.call(ws,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Sl(e,t,r,n,i){t=t||[],r=r||[],n&&(e=n(i,e));var s;for(s=0;s<t.length;s+=1)if(t[s]===e)return r[s];var a;if(Sv.call(e)==="[object Array]"){for(t.push(e),a=new Array(e.length),r.push(a),s=0;s<e.length;s+=1)a[s]=Sl(e[s],t,r,n,i);return t.pop(),r.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),Va(e)==="object"&&e!==null){t.push(e),a={},r.push(a);var o=[],u;for(u in e)e.hasOwnProperty(u)&&o.push(u);for(o.sort(),s=0;s<o.length;s+=1)u=o[s],a[u]=Sl(e[u],t,r,n,u);t.pop(),r.pop()}else a=e;return a}var oo=new On;oo.tokenize=function(e){return e.slice()};oo.join=oo.removeEmpty=function(e){return e};function vv(e,t,r){return oo.diff(e,t,r)}function Av(e,t,r,n,i,s,a){a||(a={}),typeof a.context>"u"&&(a.context=4);var o=mv(r,n,a);if(!o)return;o.push({value:"",lines:[]});function u(g){return g.map(function(y){return" "+y})}for(var l=[],c=0,f=0,p=[],h=1,d=1,m=function(y){var b=o[y],O=b.lines||b.value.replace(/\n$/,"").split(`
40
+ `);if(b.lines=O,b.added||b.removed){var C;if(!c){var $=o[y-1];c=h,f=d,$&&(p=a.context>0?u($.lines.slice(-a.context)):[],c-=p.length,f-=p.length)}(C=p).push.apply(C,mu(O.map(function(B){return(b.added?"+":"-")+B}))),b.added?d+=O.length:h+=O.length}else{if(c)if(O.length<=a.context*2&&y<o.length-2){var w;(w=p).push.apply(w,mu(u(O)))}else{var P,I=Math.min(O.length,a.context);(P=p).push.apply(P,mu(u(O.slice(0,I))));var k={oldStart:c,oldLines:h-c+I,newStart:f,newLines:d-f+I,lines:p};if(y>=o.length-2&&O.length<=a.context){var F=/\n$/.test(r),S=/\n$/.test(n),A=O.length==0&&p.length>k.oldLines;!F&&A&&r.length>0&&p.splice(k.oldLines,0,"\"),(!F&&!A||!S)&&p.push("\")}l.push(k),c=0,f=0,p=[]}h+=O.length,d+=O.length}},D=0;D<o.length;D++)m(D);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:s,hunks:l}}function iy(e){if(Array.isArray(e))return e.map(iy).join(`
41
+ `);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];n.oldLines===0&&(n.oldStart-=1),n.newLines===0&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join(`
42
+ `)+`
43
+ `}function Cv(e,t,r,n,i,s,a){return iy(Av(e,t,r,n,i,s,a))}var Pv=Qr(x1()),Qn={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Qn.value(r)).join(", ")}]`;const t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Qn.key(r)}: ${Qn.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>Qn.value({[e]:t})};Po();var xv=(e,t,{descriptor:r})=>{const n=[`${tr.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${tr.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."};Po();var sy=Symbol.for("vnopts.VALUE_NOT_EXIST"),qa=Symbol.for("vnopts.VALUE_UNCHANGED"),ip=" ".repeat(2),Fv=(e,t,r)=>{const{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(sp(e,t,n,r.descriptor)),i&&s.push([sp(e,t,i.title,r.descriptor)].concat(i.values.map(a=>ay(a,r.loggerPrintWidth))).join(`
44
+ `)),oy(s,r.loggerPrintWidth)};function sp(e,t,r,n){return[`Invalid ${tr.red(n.key(e))} value.`,`Expected ${tr.blue(r)},`,`but received ${t===sy?tr.gray("nothing"):tr.red(n.value(t))}.`].join(" ")}function ay({text:e,list:t},r){const n=[];return e&&n.push(`- ${tr.blue(e)}`),t&&n.push([`- ${tr.blue(t.title)}:`].concat(t.values.map(i=>ay(i,r-ip.length).replace(/^|\n/g,`$&${ip}`))).join(`
45
+ `)),oy(n,r)}function oy(e,t){if(e.length===1)return e[0];const[r,n]=e,[i,s]=e.map(a=>a.split(`
46
+ `,1)[0].length);return i>t&&i>s?n:r}Po();var yu=[],ap=[];function _v(e,t){if(e===t)return 0;const r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let s=0;for(;s<n&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(n-=s,i-=s,n===0)return i;let a,o,u,l,c=0,f=0;for(;c<n;)ap[c]=e.charCodeAt(s+c),yu[c]=++c;for(;f<i;)for(a=t.charCodeAt(s+f),u=f++,o=f,c=0;c<n;c++)l=a===ap[c]?u:u+1,u=yu[c],o=yu[c]=u>o?l>o?o+1:l:l>u?u+1:l;return o}var uy=(e,t,{descriptor:r,logger:n,schemas:i})=>{const s=[`Ignored unknown option ${tr.yellow(r.pair({key:e,value:t}))}.`],a=Object.keys(i).sort().find(o=>_v(e,o)<3);a&&s.push(`Did you mean ${tr.blue(r.key(a))}?`),n.warn(s.join(" "))},wv=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Iv(e,t){const r=new e(t),n=Object.create(r);for(const i of wv)i in t&&(n[i]=Ov(t[i],r,Nn.prototype[i].length));return n}var Nn=class{static create(e){return Iv(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return qa}};function Ov(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Nv=class extends Nn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},Bv=class extends Nn{expected(){return"anything"}validate(){return!0}},kv=class extends Nn{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){const{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;const r=[];for(const n of e){const i=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);i!==!0&&r.push(i.value)}return r.length===0?!0:{value:r}}deprecated(e,t){const r=[];for(const n of e){const i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);i!==!1&&r.push(...i.map(({value:s})=>({value:[s]})))}return r}forward(e,t){const r=[];for(const n of e){const i=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...i.map(op))}return r}redirect(e,t){const r=[],n=[];for(const i of e){const s=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in s&&r.push(s.remain),n.push(...s.redirect.map(op))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function op({from:e,to:t}){return{from:[e],to:t}}var Lv=class extends Nn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Rv(e,t){const r=Object.create(null);for(const n of e){const i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function Mv(e,t){const r=new Map;for(const n of e){const i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function jv(){const e=Object.create(null);return t=>{const r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function $v(e,t){const r=[],n=[];for(const i of e)t(i)?r.push(i):n.push(i);return[r,n]}function Uv(e){return e===Math.floor(e)}function Vv(e,t){if(e===t)return 0;const r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function qv(e){return(...t)=>{const r=e(...t);return typeof r=="string"?new Error(r):r}}function up(e){return e===void 0?{}:e}function ly(e){if(typeof e=="string")return{text:e};const{text:t,list:r}=e;return Kv((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(ly)}}:{text:t}}function lp(e,t){return e===!0?!0:e===!1?{value:t}:e}function cp(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fp(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function vl(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>fp(r,t)):[fp(e,t)]}function pp(e,t){const r=vl(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Kv(e,t){if(!e)throw new Error(t)}var cy=class extends Nn{constructor(e){super(e),this._choices=Mv(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(Vv).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}},Wv=class extends Nn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Hv=class extends Wv{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Uv(e)}},hp=class extends Nn{expected(){return"a string"}validate(e){return typeof e=="string"}},Gv=Qn,Yv=uy,Xv=Fv,Jv=xv,zv=class{constructor(e,t){const{logger:r=console,loggerPrintWidth:n=80,descriptor:i=Gv,unknown:s=Yv,invalid:a=Xv,deprecated:o=Jv,missing:u=()=>!1,required:l=()=>!1,preprocess:c=p=>p,postprocess:f=()=>qa}=t||{};this._utils={descriptor:i,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:Rv(e,"name"),normalizeDefaultResult:up,normalizeExpectedResult:ly,normalizeDeprecatedResult:cp,normalizeForwardResult:vl,normalizeRedirectResult:pp,normalizeValidateResult:lp},this._unknownHandler=s,this._invalidHandler=qv(a),this._deprecatedHandler=o,this._identifyMissing=(p,h)=>!(p in h)||u(p,h),this._identifyRequired=l,this._preprocess=c,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=jv()}normalize(e){const t={},n=[this._preprocess(e,this._utils)],i=()=>{for(;n.length!==0;){const s=n.shift(),a=this._applyNormalization(s,t);n.push(...a)}};i();for(const s of Object.keys(this._utils.schemas)){const a=this._utils.schemas[s];if(!(s in t)){const o=up(a.default(this._utils));"value"in o&&n.push({[s]:o.value})}}i();for(const s of Object.keys(this._utils.schemas)){if(!(s in t))continue;const a=this._utils.schemas[s],o=t[s],u=a.postprocess(o,this._utils);u!==qa&&(this._applyValidation(u,s,a),t[s]=u)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){const r=[],{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(e);for(const s of n){const a=this._utils.schemas[s],o=a.preprocess(e[s],this._utils);this._applyValidation(o,s,a);const u=({from:p,to:h})=>{r.push(typeof h=="string"?{[h]:p}:{[h.key]:h.value})},l=({value:p,redirectTo:h})=>{const d=cp(a.deprecated(p,this._utils),o,!0);if(d!==!1)if(d===!0)this._hasDeprecationWarned(s)||this._utils.logger.warn(this._deprecatedHandler(s,h,this._utils));else for(const{value:m}of d){const D={key:s,value:m};if(!this._hasDeprecationWarned(D)){const g=typeof h=="string"?{key:h,value:m}:h;this._utils.logger.warn(this._deprecatedHandler(D,g,this._utils))}}};vl(a.forward(o,this._utils),o).forEach(u);const f=pp(a.redirect(o,this._utils),o);if(f.redirect.forEach(u),"remain"in f){const p=f.remain;t[s]=s in t?a.overlap(t[s],p,this._utils):p,l({value:p})}for(const{from:p,to:h}of f.redirect)l({value:p,redirectTo:h})}for(const s of i){const a=e[s];this._applyUnknownHandler(s,a,t,(o,u)=>{r.push({[o]:u})})}return r}_applyRequiredCheck(e){for(const t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,sy,this._utils)}_partitionOptionKeys(e){const[t,r]=$v(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){const n=lp(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){const i=this._unknownHandler(e,t,this._utils);if(i)for(const s of Object.keys(i)){if(this._identifyMissing(s,i))continue;const a=i[s];s in this._utils.schemas?n(s,a):r[s]=a}}_applyPostprocess(e){const t=this._postprocess(e,this._utils);if(t!==qa){if(t.delete)for(const r of t.delete)delete e[r];if(t.override){const{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(const i of r){const s=t.override[i];this._applyValidation(s,i,this._utils.schemas[i]),e[i]=s}for(const i of n){const s=t.override[i];this._applyUnknownHandler(i,s,e,(a,o)=>{const u=this._utils.schemas[a];this._applyValidation(o,a,u),e[a]=o})}}}}},fy={};Mi(fy,{ArgExpansionBailout:()=>Qv,ConfigError:()=>Ec,UndefinedParserError:()=>Al});var Ec=class extends Error{constructor(){super(...arguments);Di(this,"name","ConfigError")}},Al=class extends Error{constructor(){super(...arguments);Di(this,"name","UndefinedParserError")}},Qv=class extends Error{constructor(){super(...arguments);Di(this,"name","ArgExpansionBailout")}},dp=Qr(jm()),Zv=e=>e instanceof URL,py=e=>typeof e=="string"&&e.startsWith("file://"),hy=e=>Zv(e)||py(e),$i=e=>hy(e)?tt(e):e;function eA(e,t){const r=[[],[]];for(const n of e)r[t(n)?0:1].push(n);return r}var dy=eA,tA=Qr(J1());async function rA(e,t){const r=(t==null?void 0:t.allowSymlinks)??!0;let n;try{n=await(r?Oi.stat:Oi.lstat)($i(e))}catch{return!1}return n.isDirectory()}var nA=rA,mp=e=>ro.resolve($i(e));function*iA(e,t){e=mp(e);const{root:r}=ro.parse(e);if(t=t?mp(t):r,!(e!==t&&!e.startsWith(t))){for(let n=e;n!==t;n=ro.dirname(n))yield n;yield t}}var sA=iA,uo,lo,Ka,bs,Cl,my,aA=class{constructor({names:e,filter:t,stopDirectory:r}){zn(this,Cl),zn(this,uo),zn(this,lo),zn(this,Ka),zn(this,bs,new Map),Es(this,uo,e),Es(this,lo,t),Es(this,Ka,r)}async search(e,{shouldCache:t}){const r=ei(this,bs);if(t&&r.has(e))return r.get(e);const n=[];let i;for(const s of sA(e,ei(this,Ka)))if(n.push(s),i=await Ti(this,Cl,my).call(this,s,t),i)break;for(const s of n)r.set(s,i);return i}clearCache(){ei(this,bs).clear()}};uo=new WeakMap;lo=new WeakMap;Ka=new WeakMap;bs=new WeakMap;Cl=new WeakSet;my=async function(e,t){const r=ei(this,bs);if(t&&r.has(e))return r.get(e);for(const n of ei(this,uo)){const i=it.join(e,n);if(await ei(this,lo).call(this,{name:n,path:i}))return i}};var yy=aA,oA=[".git",".hg"],Ts,uA={names:oA,filter:({path:e})=>nA(e,{allowSymlinks:!1})};async function lA(e,t){Ts??(Ts=new yy(uA));const r=await Ts.search(e,t);return r?ro.dirname(r):void 0}function cA(){Ts==null||Ts.clearCache()}function fA(e){const t={},r=Object.keys(e);for(let n=0;n<r.length;n++){const i=r[n];e[i]!=="unset"&&(t[i]=e[i])}return t}function pA(e){if(!e||(e=fA(e),Object.keys(e).length===0))return null;const t={};return e.indent_style&&(t.useTabs=e.indent_style==="tab"),e.indent_size==="tab"&&(t.useTabs=!0),t.useTabs&&e.tab_width?t.tabWidth=e.tab_width:e.indent_style==="space"&&e.indent_size&&e.indent_size!=="tab"?t.tabWidth=e.indent_size:e.tab_width!==void 0&&(t.tabWidth=e.tab_width),e.max_line_length&&(e.max_line_length==="off"?t.printWidth=Number.POSITIVE_INFINITY:t.printWidth=e.max_line_length),e.quote_type==="single"?t.singleQuote=!0:e.quote_type==="double"&&(t.singleQuote=!1),["cr","crlf","lf"].includes(e.end_of_line)&&(t.endOfLine=e.end_of_line),t}var hA=pA,Wa=new Map;function dA(){cA(),Wa.clear()}async function mA(e,{shouldCache:t}){const r=it.dirname(e),n=await lA(r,{shouldCache:t}),i=await tA.default.parse(e,{root:n});return hA(i)}function yA(e,{shouldCache:t}){return e=it.resolve(e),(!t||!Wa.has(e))&&Wa.set(e,mA(e,{shouldCache:t})),Wa.get(e)}var DA=Qr(Q1()),{stdin:Ss}=process;async function Dy(){let e="";if(Ss.isTTY)return e;Ss.setEncoding("utf8");for await(const t of Ss)e+=t;return e}Dy.buffer=async()=>{const e=[];let t=0;if(Ss.isTTY)return Buffer.concat([]);for await(const r of Ss)e.push(r),t+=r.length;return Buffer.concat(e,t)};function gA(e,t){return Oi.writeFile(e,t)}var EA={getPrettierConfigSearchStopDirectory:()=>{},getStdin:Dy,isCI:()=>DA.isCI,writeFormattedFile:gA},bc=EA;async function bA(e,t){const r=(t==null?void 0:t.allowSymlinks)??!0;let n;try{n=await(r?Oi.stat:Oi.lstat)($i(e))}catch{return!1}return n.isFile()}var TA=bA,SA=Qr(av());function gy(e){return typeof e>"u"||e===null}function vA(e){return typeof e=="object"&&e!==null}function AA(e){return Array.isArray(e)?e:gy(e)?[]:[e]}function CA(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function PA(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function xA(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var FA=gy,_A=vA,wA=AA,IA=PA,OA=xA,NA=CA,Mt={isNothing:FA,isObject:_A,toArray:wA,repeat:IA,isNegativeZero:OA,extend:NA};function Ey(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
47
+
48
+ `+e.mark.snippet),n+" "+r):n}function Is(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ey(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Is.prototype=Object.create(Error.prototype);Is.prototype.constructor=Is;Is.prototype.toString=function(t){return this.name+": "+Ey(this,t)};var qr=Is;function Du(e,t,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-t>o&&(s=" ... ",t=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+s.length}}function gu(e,t){return Mt.repeat(" ",t-e.length)+e}function BA(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,l,c=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)l=Du(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Mt.repeat(" ",t.indent)+gu((e.line-u+1).toString(),c)+" | "+l.str+`
49
+ `+o;for(l=Du(e.buffer,n[a],i[a],e.position,f),o+=Mt.repeat(" ",t.indent)+gu((e.line+1).toString(),c)+" | "+l.str+`
50
+ `,o+=Mt.repeat("-",t.indent+c+3+l.pos)+`^
51
+ `,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)l=Du(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Mt.repeat(" ",t.indent)+gu((e.line+u+1).toString(),c)+" | "+l.str+`
52
+ `;return o.replace(/\n$/,"")}var kA=BA,LA=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RA=["scalar","sequence","mapping"];function MA(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function jA(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(LA.indexOf(r)===-1)throw new qr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=MA(t.styleAliases||null),RA.indexOf(this.kind)===-1)throw new qr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Nt=jA;function yp(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function $A(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Pl(e){return this.extend(e)}Pl.prototype.extend=function(t){var r=[],n=[];if(t instanceof Nt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new qr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Nt))throw new qr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new qr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new qr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Nt))throw new qr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Pl.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=yp(i,"implicit"),i.compiledExplicit=yp(i,"explicit"),i.compiledTypeMap=$A(i.compiledImplicit,i.compiledExplicit),i};var UA=Pl,VA=new Nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),qA=new Nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),KA=new Nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),WA=new UA({explicit:[VA,qA,KA]});function HA(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function GA(){return null}function YA(e){return e===null}var XA=new Nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:HA,construct:GA,predicate:YA,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function JA(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function zA(e){return e==="true"||e==="True"||e==="TRUE"}function QA(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ZA=new Nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:JA,construct:zA,predicate:QA,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function eC(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function tC(e){return 48<=e&&e<=55}function rC(e){return 48<=e&&e<=57}function nC(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!eC(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!tC(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!rC(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function iC(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function sC(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Mt.isNegativeZero(e)}var aC=new Nt("tag:yaml.org,2002:int",{kind:"scalar",resolve:nC,construct:iC,predicate:sC,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),oC=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function uC(e){return!(e===null||!oC.test(e)||e[e.length-1]==="_")}function lC(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var cC=/^[-+]?[0-9]+e/;function fC(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Mt.isNegativeZero(e))return"-0.0";return r=e.toString(10),cC.test(r)?r.replace("e",".e"):r}function pC(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Mt.isNegativeZero(e))}var hC=new Nt("tag:yaml.org,2002:float",{kind:"scalar",resolve:uC,construct:lC,predicate:pC,represent:fC,defaultStyle:"lowercase"}),dC=WA.extend({implicit:[XA,ZA,aC,hC]}),mC=dC,by=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ty=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function yC(e){return e===null?!1:by.exec(e)!==null||Ty.exec(e)!==null}function DC(e){var t,r,n,i,s,a,o,u=0,l=null,c,f,p;if(t=by.exec(e),t===null&&(t=Ty.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=+t[10],f=+(t[11]||0),l=(c*60+f)*6e4,t[9]==="-"&&(l=-l)),p=new Date(Date.UTC(r,n,i,s,a,o,u)),l&&p.setTime(p.getTime()-l),p}function gC(e){return e.toISOString()}var EC=new Nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:yC,construct:DC,instanceOf:Date,represent:gC});function bC(e){return e==="<<"||e===null}var TC=new Nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:bC}),Tc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
53
+ \r`;function SC(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Tc;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function vC(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Tc,a=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function AC(e){var t="",r=0,n,i,s=e.length,a=Tc;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function CC(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var PC=new Nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:SC,construct:vC,predicate:CC,represent:AC}),xC=Object.prototype.hasOwnProperty,FC=Object.prototype.toString;function _C(e){if(e===null)return!0;var t=[],r,n,i,s,a,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,FC.call(i)!=="[object Object]")return!1;for(s in i)if(xC.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function wC(e){return e!==null?e:[]}var IC=new Nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_C,construct:wC}),OC=Object.prototype.toString;function NC(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],OC.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function BC(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var kC=new Nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:NC,construct:BC}),LC=Object.prototype.hasOwnProperty;function RC(e){if(e===null)return!0;var t,r=e;for(t in r)if(LC.call(r,t)&&r[t]!==null)return!1;return!0}function MC(e){return e!==null?e:{}}var jC=new Nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:RC,construct:MC}),$C=mC.extend({implicit:[EC,TC],explicit:[PC,IC,kC,jC]}),bn=Object.prototype.hasOwnProperty,co=1,Sy=2,vy=3,fo=4,Eu=1,UC=2,Dp=3,VC=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qC=/[\x85\u2028\u2029]/,KC=/[,\[\]\{\}]/,Ay=/^(?:!|!!|![a-z\-]+!)$/i,Cy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gp(e){return Object.prototype.toString.call(e)}function _r(e){return e===10||e===13}function ti(e){return e===9||e===32}function Wt(e){return e===9||e===32||e===10||e===13}function vi(e){return e===44||e===91||e===93||e===123||e===125}function WC(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function HC(e){return e===120?2:e===117?4:e===85?8:0}function GC(e){return 48<=e&&e<=57?e-48:-1}function Ep(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
54
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function YC(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Py=new Array(256),xy=new Array(256);for(qn=0;qn<256;qn++)Py[qn]=Ep(qn)?1:0,xy[qn]=Ep(qn);var qn;function XC(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$C,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Fy(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=kA(r),new qr(t,r)}function Be(e,t){throw Fy(e,t)}function po(e,t){e.onWarning&&e.onWarning.call(null,Fy(e,t))}var bp={YAML:function(t,r,n){var i,s,a;t.version!==null&&Be(t,"duplication of %YAML directive"),n.length!==1&&Be(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Be(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&Be(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&po(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Be(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Ay.test(i)||Be(t,"ill-formed tag handle (first argument) of the TAG directive"),bn.call(t.tagMap,i)&&Be(t,'there is a previously declared suffix for "'+i+'" tag handle'),Cy.test(s)||Be(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Be(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function yn(e,t,r,n){var i,s,a,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Be(e,"expected valid JSON character");else VC.test(o)&&Be(e,"the stream contains non-printable characters");e.result+=o}}function Tp(e,t,r,n){var i,s,a,o;for(Mt.isObject(r)||Be(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,o=i.length;a<o;a+=1)s=i[a],bn.call(t,s)||(t[s]=r[s],n[s]=!0)}function Ai(e,t,r,n,i,s,a,o,u){var l,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,c=i.length;l<c;l+=1)Array.isArray(i[l])&&Be(e,"nested arrays are not supported inside keys"),typeof i=="object"&&gp(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&gp(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)Tp(e,t,s[l],r);else Tp(e,t,s,r);else!e.json&&!bn.call(r,i)&&bn.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,Be(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Sc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Be(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function vt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ti(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(_r(i))for(Sc(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&po(e,"deficient indentation"),n}function xo(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Wt(r)))}function vc(e,t){t===1?e.result+=" ":t>1&&(e.result+=Mt.repeat(`
55
+ `,t-1))}function JC(e,t,r){var n,i,s,a,o,u,l,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),Wt(h)||vi(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&vi(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Wt(i)||r&&vi(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Wt(n))break}else{if(e.position===e.lineStart&&xo(e)||r&&vi(h))break;if(_r(h))if(u=e.line,l=e.lineStart,c=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){o=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=l,e.lineIndent=c;break}}o&&(yn(e,s,a,!1),vc(e,e.line-u),s=a=e.position,o=!1),ti(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return yn(e,s,a,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function zC(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(yn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else _r(r)?(yn(e,n,i,!0),vc(e,vt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&xo(e)?Be(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Be(e,"unexpected end of the stream within a single quoted scalar")}function QC(e,t){var r,n,i,s,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return yn(e,r,e.position,!0),e.position++,!0;if(o===92){if(yn(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),_r(o))vt(e,!1,t);else if(o<256&&Py[o])e.result+=xy[o],e.position++;else if((a=HC(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=WC(o))>=0?s=(s<<4)+a:Be(e,"expected hexadecimal character");e.result+=YC(s),e.position++}else Be(e,"unknown escape sequence");r=n=e.position}else _r(o)?(yn(e,r,n,!0),vc(e,vt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&xo(e)?Be(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Be(e,"unexpected end of the stream within a double quoted scalar")}function ZC(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,l,c,f,p,h,d=Object.create(null),m,D,g,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,h=!1,o=[];else if(y===123)c=125,h=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),y=e.input.charCodeAt(++e.position);y!==0;){if(vt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=a,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=o,!0;r?y===44&&Be(e,"expected the node content, but found ','"):Be(e,"missed comma between flow collection entries"),D=m=g=null,f=p=!1,y===63&&(l=e.input.charCodeAt(e.position+1),Wt(l)&&(f=p=!0,e.position++,vt(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,ki(e,t,co,!1,!0),D=e.tag,m=e.result,vt(e,!0,t),y=e.input.charCodeAt(e.position),(p||e.line===n)&&y===58&&(f=!0,y=e.input.charCodeAt(++e.position),vt(e,!0,t),ki(e,t,co,!1,!0),g=e.result),h?Ai(e,o,d,D,m,g,n,i,s):f?o.push(Ai(e,null,d,D,m,g,n,i,s)):o.push(m),vt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}Be(e,"unexpected end of the stream within a flow collection")}function eP(e,t){var r,n,i=Eu,s=!1,a=!1,o=t,u=0,l=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Eu===i?i=f===43?Dp:UC:Be(e,"repeat of a chomping mode identifier");else if((c=GC(f))>=0)c===0?Be(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Be(e,"repeat of an indentation width identifier"):(o=t+c-1,a=!0);else break;if(ti(f)){do f=e.input.charCodeAt(++e.position);while(ti(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!_r(f)&&f!==0)}for(;f!==0;){for(Sc(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),_r(f)){u++;continue}if(e.lineIndent<o){i===Dp?e.result+=Mt.repeat(`
56
+ `,s?1+u:u):i===Eu&&s&&(e.result+=`
57
+ `);break}for(n?ti(f)?(l=!0,e.result+=Mt.repeat(`
58
+ `,s?1+u:u)):l?(l=!1,e.result+=Mt.repeat(`
59
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Mt.repeat(`
60
+ `,u):e.result+=Mt.repeat(`
61
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!_r(f)&&f!==0;)f=e.input.charCodeAt(++e.position);yn(e,r,e.position,!1)}return!0}function Sp(e,t){var r,n=e.tag,i=e.anchor,s=[],a,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Be(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!Wt(a))));){if(o=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,ki(e,t,vy,!1,!0),s.push(e.result),vt(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Be(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function tP(e,t,r){var n,i,s,a,o,u,l=e.tag,c=e.anchor,f={},p=Object.create(null),h=null,d=null,m=null,D=!1,g=!1,y;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),y=e.input.charCodeAt(e.position);y!==0;){if(!D&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Be(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(y===63||y===58)&&Wt(n))y===63?(D&&(Ai(e,f,p,h,d,null,a,o,u),h=d=m=null),g=!0,D=!0,i=!0):D?(D=!1,i=!0):Be(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,y=n;else{if(a=e.line,o=e.lineStart,u=e.position,!ki(e,r,Sy,!1,!0))break;if(e.line===s){for(y=e.input.charCodeAt(e.position);ti(y);)y=e.input.charCodeAt(++e.position);if(y===58)y=e.input.charCodeAt(++e.position),Wt(y)||Be(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(Ai(e,f,p,h,d,null,a,o,u),h=d=m=null),g=!0,D=!1,i=!1,h=e.tag,d=e.result;else if(g)Be(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=c,!0}else if(g)Be(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=c,!0}if((e.line===s||e.lineIndent>t)&&(D&&(a=e.line,o=e.lineStart,u=e.position),ki(e,t,fo,!0,i)&&(D?d=e.result:m=e.result),D||(Ai(e,f,p,h,d,m,a,o,u),h=d=m=null),vt(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&y!==0)Be(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return D&&Ai(e,f,p,h,d,null,a,o,u),g&&(e.tag=l,e.anchor=c,e.kind="mapping",e.result=f),g}function rP(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Be(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Be(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Wt(a);)a===33&&(n?Be(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ay.test(i)||Be(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),KC.test(s)&&Be(e,"tag suffix cannot contain flow indicator characters")}s&&!Cy.test(s)&&Be(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Be(e,"tag name is malformed: "+s)}return r?e.tag=s:bn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Be(e,'undeclared tag handle "'+i+'"'),!0}function nP(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Be(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Wt(r)&&!vi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Be(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function iP(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Wt(n)&&!vi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Be(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),bn.call(e.anchorMap,r)||Be(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vt(e,!0,-1),!0}function ki(e,t,r,n,i){var s,a,o,u=1,l=!1,c=!1,f,p,h,d,m,D;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=fo===r||vy===r,n&&vt(e,!0,-1)&&(l=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;rP(e)||nP(e);)vt(e,!0,-1)?(l=!0,o=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=l||i),(u===1||fo===r)&&(co===r||Sy===r?m=t:m=t+1,D=e.position-e.lineStart,u===1?o&&(Sp(e,D)||tP(e,D,m))||ZC(e,m)?c=!0:(a&&eP(e,m)||zC(e,m)||QC(e,m)?c=!0:iP(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Be(e,"alias node should not have any properties")):JC(e,m,co===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(c=o&&Sp(e,D))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Be(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(d=e.implicitTypes[f],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(bn.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,p=h.length;f<p;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){d=h[f];break}d||Be(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&Be(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Be(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function sP(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(vt(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Wt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Be(e,"directive name must not be less than one character in length");a!==0;){for(;ti(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!_r(a));break}if(_r(a))break;for(r=e.position;a!==0&&!Wt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&Sc(e),bn.call(bp,n)?bp[n](e,n,i):po(e,'unknown document directive "'+n+'"')}if(vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,vt(e,!0,-1)):s&&Be(e,"directives end mark is expected"),ki(e,e.lineIndent-1,fo,!1,!0),vt(e,!0,-1),e.checkLineBreaks&&qC.test(e.input.slice(t,e.position))&&po(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,vt(e,!0,-1));return}if(e.position<e.length-1)Be(e,"end of the stream or a document separator is expected");else return}function _y(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
62
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new XC(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Be(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)sP(r);return r.documents}function aP(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=_y(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function oP(e,t){var r=_y(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new qr("expected a single document in the stream, but found more")}}var uP=aP,lP=oP,cP={loadAll:uP,load:lP},fP=cP.load,pP=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,hP=/[\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\u0860-\u086A\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\u09FC\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,dP=/[\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\u0860-\u086A\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\u09FC\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-\u0AFF\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\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-\u1CF9\u1D00-\u1DF9\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\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,bu={Space_Separator:pP,ID_Start:hP,ID_Continue:dP},Pt={isSpaceSeparator(e){return typeof e=="string"&&bu.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||bu.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="‌"||e==="‍"||bu.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},xl,jt,Kr,ho,Tn,yr,xt,Ac,vs,mP=function(t,r){xl=String(t),jt="start",Kr=[],ho=0,Tn=1,yr=0,xt=void 0,Ac=void 0,vs=void 0;do xt=yP(),EP[jt]();while(xt.type!=="eof");return typeof r=="function"?Fl({"":vs},"",r):vs};function Fl(e,t,r){const n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=String(i),a=Fl(n,s,r);a===void 0?delete n[s]:Object.defineProperty(n,s,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const i in n){const s=Fl(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var We,qe,ls,Mr,Qe;function yP(){for(We="default",qe="",ls=!1,Mr=1;;){Qe=Yr();const e=wy[We]();if(e)return e}}function Yr(){if(xl[ho])return String.fromCodePoint(xl.codePointAt(ho))}function pe(){const e=Yr();return e===`
63
+ `?(Tn++,yr=0):e?yr+=e.length:yr++,e&&(ho+=e.length),e}var wy={default(){switch(Qe){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
64
+ `:case"\r":case"\u2028":case"\u2029":pe();return;case"/":pe(),We="comment";return;case void 0:return pe(),pt("eof")}if(Pt.isSpaceSeparator(Qe)){pe();return}return wy[jt]()},comment(){switch(Qe){case"*":pe(),We="multiLineComment";return;case"/":pe(),We="singleLineComment";return}throw mt(pe())},multiLineComment(){switch(Qe){case"*":pe(),We="multiLineCommentAsterisk";return;case void 0:throw mt(pe())}pe()},multiLineCommentAsterisk(){switch(Qe){case"*":pe();return;case"/":pe(),We="default";return;case void 0:throw mt(pe())}pe(),We="multiLineComment"},singleLineComment(){switch(Qe){case`
65
+ `:case"\r":case"\u2028":case"\u2029":pe(),We="default";return;case void 0:return pe(),pt("eof")}pe()},value(){switch(Qe){case"{":case"[":return pt("punctuator",pe());case"n":return pe(),Kn("ull"),pt("null",null);case"t":return pe(),Kn("rue"),pt("boolean",!0);case"f":return pe(),Kn("alse"),pt("boolean",!1);case"-":case"+":pe()==="-"&&(Mr=-1),We="sign";return;case".":qe=pe(),We="decimalPointLeading";return;case"0":qe=pe(),We="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":qe=pe(),We="decimalInteger";return;case"I":return pe(),Kn("nfinity"),pt("numeric",1/0);case"N":return pe(),Kn("aN"),pt("numeric",NaN);case'"':case"'":ls=pe()==='"',qe="",We="string";return}throw mt(pe())},identifierNameStartEscape(){if(Qe!=="u")throw mt(pe());pe();const e=_l();switch(e){case"$":case"_":break;default:if(!Pt.isIdStartChar(e))throw vp();break}qe+=e,We="identifierName"},identifierName(){switch(Qe){case"$":case"_":case"‌":case"‍":qe+=pe();return;case"\\":pe(),We="identifierNameEscape";return}if(Pt.isIdContinueChar(Qe)){qe+=pe();return}return pt("identifier",qe)},identifierNameEscape(){if(Qe!=="u")throw mt(pe());pe();const e=_l();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!Pt.isIdContinueChar(e))throw vp();break}qe+=e,We="identifierName"},sign(){switch(Qe){case".":qe=pe(),We="decimalPointLeading";return;case"0":qe=pe(),We="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":qe=pe(),We="decimalInteger";return;case"I":return pe(),Kn("nfinity"),pt("numeric",Mr*(1/0));case"N":return pe(),Kn("aN"),pt("numeric",NaN)}throw mt(pe())},zero(){switch(Qe){case".":qe+=pe(),We="decimalPoint";return;case"e":case"E":qe+=pe(),We="decimalExponent";return;case"x":case"X":qe+=pe(),We="hexadecimal";return}return pt("numeric",Mr*0)},decimalInteger(){switch(Qe){case".":qe+=pe(),We="decimalPoint";return;case"e":case"E":qe+=pe(),We="decimalExponent";return}if(Pt.isDigit(Qe)){qe+=pe();return}return pt("numeric",Mr*Number(qe))},decimalPointLeading(){if(Pt.isDigit(Qe)){qe+=pe(),We="decimalFraction";return}throw mt(pe())},decimalPoint(){switch(Qe){case"e":case"E":qe+=pe(),We="decimalExponent";return}if(Pt.isDigit(Qe)){qe+=pe(),We="decimalFraction";return}return pt("numeric",Mr*Number(qe))},decimalFraction(){switch(Qe){case"e":case"E":qe+=pe(),We="decimalExponent";return}if(Pt.isDigit(Qe)){qe+=pe();return}return pt("numeric",Mr*Number(qe))},decimalExponent(){switch(Qe){case"+":case"-":qe+=pe(),We="decimalExponentSign";return}if(Pt.isDigit(Qe)){qe+=pe(),We="decimalExponentInteger";return}throw mt(pe())},decimalExponentSign(){if(Pt.isDigit(Qe)){qe+=pe(),We="decimalExponentInteger";return}throw mt(pe())},decimalExponentInteger(){if(Pt.isDigit(Qe)){qe+=pe();return}return pt("numeric",Mr*Number(qe))},hexadecimal(){if(Pt.isHexDigit(Qe)){qe+=pe(),We="hexadecimalInteger";return}throw mt(pe())},hexadecimalInteger(){if(Pt.isHexDigit(Qe)){qe+=pe();return}return pt("numeric",Mr*Number(qe))},string(){switch(Qe){case"\\":pe(),qe+=DP();return;case'"':if(ls)return pe(),pt("string",qe);qe+=pe();return;case"'":if(!ls)return pe(),pt("string",qe);qe+=pe();return;case`
66
+ `:case"\r":throw mt(pe());case"\u2028":case"\u2029":bP(Qe);break;case void 0:throw mt(pe())}qe+=pe()},start(){switch(Qe){case"{":case"[":return pt("punctuator",pe())}We="value"},beforePropertyName(){switch(Qe){case"$":case"_":qe=pe(),We="identifierName";return;case"\\":pe(),We="identifierNameStartEscape";return;case"}":return pt("punctuator",pe());case'"':case"'":ls=pe()==='"',We="string";return}if(Pt.isIdStartChar(Qe)){qe+=pe(),We="identifierName";return}throw mt(pe())},afterPropertyName(){if(Qe===":")return pt("punctuator",pe());throw mt(pe())},beforePropertyValue(){We="value"},afterPropertyValue(){switch(Qe){case",":case"}":return pt("punctuator",pe())}throw mt(pe())},beforeArrayValue(){if(Qe==="]")return pt("punctuator",pe());We="value"},afterArrayValue(){switch(Qe){case",":case"]":return pt("punctuator",pe())}throw mt(pe())},end(){throw mt(pe())}};function pt(e,t){return{type:e,value:t,line:Tn,column:yr}}function Kn(e){for(const t of e){if(Yr()!==t)throw mt(pe());pe()}}function DP(){switch(Yr()){case"b":return pe(),"\b";case"f":return pe(),"\f";case"n":return pe(),`
67
+ `;case"r":return pe(),"\r";case"t":return pe()," ";case"v":return pe(),"\v";case"0":if(pe(),Pt.isDigit(Yr()))throw mt(pe());return"\0";case"x":return pe(),gP();case"u":return pe(),_l();case`
68
+ `:case"\u2028":case"\u2029":return pe(),"";case"\r":return pe(),Yr()===`
69
+ `&&pe(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw mt(pe());case void 0:throw mt(pe())}return pe()}function gP(){let e="",t=Yr();if(!Pt.isHexDigit(t)||(e+=pe(),t=Yr(),!Pt.isHexDigit(t)))throw mt(pe());return e+=pe(),String.fromCodePoint(parseInt(e,16))}function _l(){let e="",t=4;for(;t-- >0;){const r=Yr();if(!Pt.isHexDigit(r))throw mt(pe());e+=pe()}return String.fromCodePoint(parseInt(e,16))}var EP={start(){if(xt.type==="eof")throw Wn();Tu()},beforePropertyName(){switch(xt.type){case"identifier":case"string":Ac=xt.value,jt="afterPropertyName";return;case"punctuator":oa();return;case"eof":throw Wn()}},afterPropertyName(){if(xt.type==="eof")throw Wn();jt="beforePropertyValue"},beforePropertyValue(){if(xt.type==="eof")throw Wn();Tu()},beforeArrayValue(){if(xt.type==="eof")throw Wn();if(xt.type==="punctuator"&&xt.value==="]"){oa();return}Tu()},afterPropertyValue(){if(xt.type==="eof")throw Wn();switch(xt.value){case",":jt="beforePropertyName";return;case"}":oa()}},afterArrayValue(){if(xt.type==="eof")throw Wn();switch(xt.value){case",":jt="beforeArrayValue";return;case"]":oa()}},end(){}};function Tu(){let e;switch(xt.type){case"punctuator":switch(xt.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=xt.value;break}if(vs===void 0)vs=e;else{const t=Kr[Kr.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Ac,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")Kr.push(e),Array.isArray(e)?jt="beforeArrayValue":jt="beforePropertyName";else{const t=Kr[Kr.length-1];t==null?jt="end":Array.isArray(t)?jt="afterArrayValue":jt="afterPropertyValue"}}function oa(){Kr.pop();const e=Kr[Kr.length-1];e==null?jt="end":Array.isArray(e)?jt="afterArrayValue":jt="afterPropertyValue"}function mt(e){return mo(e===void 0?`JSON5: invalid end of input at ${Tn}:${yr}`:`JSON5: invalid character '${Iy(e)}' at ${Tn}:${yr}`)}function Wn(){return mo(`JSON5: invalid end of input at ${Tn}:${yr}`)}function vp(){return yr-=5,mo(`JSON5: invalid identifier character at ${Tn}:${yr}`)}function bP(e){console.warn(`JSON5: '${Iy(e)}' in strings is not valid ECMAScript; consider escaping`)}function Iy(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function mo(e){const t=new SyntaxError(e);return t.lineNumber=Tn,t.columnNumber=yr,t}var TP={parse:mP},SP=Qr(ty()),Ap=(e,t,r)=>r<0?-1:e.lastIndexOf(t,r);function vP(e,t){const r=Ap(e,`
70
+ `,t-1),n=t-r-1;let i=0;for(let s=r;s>=0;s=Ap(e,`
71
+ `,s-1))i++;return{line:i,column:n}}function Cp(e,t,{oneBased:r=!1}={}){if(t<0||t>=e.length&&e.length>0)throw new RangeError("Index out of bounds");const n=vP(e,t);return r?{line:n.line+1,column:n.column+1}:n}var AP=e=>`\\u{${e.codePointAt(0).toString(16)}}`,cs,CP=class Oy extends Error{constructor(t){var r;super(),na(this,"name","JSONError"),na(this,"fileName"),na(this,"codeFrame"),na(this,"rawCodeFrame"),zn(this,cs),Es(this,cs,t),(r=Error.captureStackTrace)==null||r.call(Error,this,Oy)}get message(){const{fileName:t,codeFrame:r}=this;return`${ei(this,cs)}${t?` in ${t}`:""}${r?`
72
+
73
+ ${r}
74
+ `:""}`}set message(t){Es(this,cs,t)}};cs=new WeakMap;var PP=CP,Pp=(e,t,r=!0)=>(0,SP.codeFrameColumns)(e,{start:t},{highlightCode:r}),xP=(e,t)=>{const r=t.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:i,column:s}=r.groups;if(i&&s)return{line:Number(i),column:Number(s)};if(n=Number(n),n===e.length){const{line:a,column:o}=Cp(e,e.length-1,{oneBased:!0});return{line:a,column:o+1}}return Cp(e,n,{oneBased:!0})},FP=e=>e.replace(new RegExp("(?<=^Unexpected token )(?<quote>')?(.)\\k<quote>"),(t,r,n)=>`"${n}"(${AP(n)})`);function _P(e,t,r){let n;try{return JSON.parse(e,t)}catch(a){n=a.message}let i;e?(i=xP(e,n),n=FP(n)):n+=" while parsing empty string";const s=new PP(n);throw s.fileName=r,i&&(s.codeFrame=Pp(e,i),s.rawCodeFrame=Pp(e,i,!1)),s}async function wP(e){py(e)&&(e=new URL(e));try{return await Oi.readFile(e,"utf8")}catch(t){if(t.code==="ENOENT")return;throw new Error(`Unable to read '${e}': ${t.message}`)}}var Os=wP;async function Ny(e){const t=await Os(e);try{return _P(t)}catch(r){throw r.message=`JSON Error in ${e}:
75
+ ${r.message}`,r}}async function Su(e){return(await import(ni(e).href)).default}async function By(e){const{prettier:t}=await Ny(e);return t}async function ky(e){const{prettier:t}=await Ha(e);return t}async function Ha(e){const t=await Os(e);try{return fP(t)}catch(r){throw r.message=`YAML Error in ${e}:
76
+ ${r.message}`,r}}var IP={async".toml"(e){const t=await Os(e);try{return await(0,SA.default)(t)}catch(r){throw r.message=`TOML Error in ${e}:
77
+ ${r.message}`,r}},async".json5"(e){const t=await Os(e);try{return TP.parse(t)}catch(r){throw r.message=`JSON5 Error in ${e}:
78
+ ${r.message}`,r}},".json":Ny,".js":Su,".mjs":Su,".cjs":Su,".yaml":Ha,".yml":Ha,"":Ha},OP=IP,NP=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.mjs",".prettierrc.cjs","prettier.config.js","prettier.config.mjs","prettier.config.cjs",".prettierrc.toml"];async function BP({name:e,path:t}){if(!await TA(t))return!1;if(e==="package.json")try{return!!await By(t)}catch{return!1}if(e==="package.yaml")try{return!!await ky(t)}catch{return!1}return!0}function kP(e){return new yy({names:NP,filter:BP,stopDirectory:e})}var LP=kP,RP={}.hasOwnProperty,MP=/^([A-Z][a-z\d]*)+$/,jP=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),It={};function vu(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Ly=new Map,$P="__node_internal_",xp;It.ERR_INVALID_ARG_TYPE=or("ERR_INVALID_ARG_TYPE",(e,t,r)=>{rr(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{const o=e.includes(".")?"property":"argument";n+=`"${e}" ${o} `}n+="must be ";const i=[],s=[],a=[];for(const o of t)rr(typeof o=="string","All expected entries have to be of type string"),jP.has(o)?i.push(o.toLowerCase()):MP.exec(o)===null?(rr(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):s.push(o);if(s.length>0){const o=i.indexOf("object");o!==-1&&(i.slice(o,1),s.push("Object"))}return i.length>0&&(n+=`${i.length>1?"one of type":"of type"} ${vu(i,"or")}`,(s.length>0||a.length>0)&&(n+=" or ")),s.length>0&&(n+=`an instance of ${vu(s,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${vu(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${WP(r)}`,n},TypeError);It.ERR_INVALID_MODULE_SPECIFIER=or("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);It.ERR_INVALID_PACKAGE_CONFIG=or("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);It.ERR_INVALID_PACKAGE_TARGET=or("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,i=void 0)=>{const s=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(rr(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${s?'; targets must start with "./"':""}`},Error);It.ERR_MODULE_NOT_FOUND=or("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);It.ERR_NETWORK_IMPORT_DISALLOWED=or("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);It.ERR_PACKAGE_IMPORT_NOT_DEFINED=or("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);It.ERR_PACKAGE_PATH_NOT_EXPORTED=or("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);It.ERR_UNSUPPORTED_DIR_IMPORT=or("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);It.ERR_UNSUPPORTED_RESOLVE_REQUEST=or("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);It.ERR_UNKNOWN_FILE_EXTENSION=or("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);It.ERR_INVALID_ARG_VALUE=or("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=pl(t);return n.length>128&&(n=`${n.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);function or(e,t,r){return Ly.set(e,t),UP(r,e)}function UP(e,t){return r;function r(...n){const i=Error.stackTraceLimit;wl()&&(Error.stackTraceLimit=0);const s=new e;wl()&&(Error.stackTraceLimit=i);const a=KP(t,n,s);return Object.defineProperties(s,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),qP(s),s.code=t,s}}function wl(){try{if(ET.startupSnapshot.isBuildingSnapshot())return!1}catch{}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):RP.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function VP(e){const t=$P+e.name;return Object.defineProperty(e,"name",{value:t}),e}var qP=VP(function(e){const t=wl();return t&&(xp=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=xp),e});function KP(e,t,r){const n=Ly.get(e);if(rr(n!==void 0,"expected `message` to be found"),typeof n=="function")return rr(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);const i=/%[dfijoOs]/g;let s=0;for(;i.exec(n)!==null;)s++;return rr(s===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${s}).`),t.length===0?n:(t.unshift(n),Reflect.apply(TT,null,t))}function WP(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${pl(e,{depth:-1})}`;let t=pl(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Yi={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:HP}=It,Fp=new Map;function Ry(e,{base:t,specifier:r}){const n=Fp.get(e);if(n)return n;let i;try{i=fl.readFileSync(it.toNamespacedPath(e),"utf8")}catch(a){const o=a;if(o.code!=="ENOENT")throw o}const s={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(i!==void 0){let a;try{a=JSON.parse(i)}catch(o){const u=o,l=new HP(e,(t?`"${r}" from `:"")+tt(t||r),u.message);throw l.cause=u,l}s.exists=!0,Yi.call(a,"name")&&typeof a.name=="string"&&(s.name=a.name),Yi.call(a,"main")&&typeof a.main=="string"&&(s.main=a.main),Yi.call(a,"exports")&&(s.exports=a.exports),Yi.call(a,"imports")&&(s.imports=a.imports),Yi.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(s.type=a.type)}return Fp.set(e,s),s}function Cc(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){const i=Ry(tt(t),{specifier:e});if(i.exists)return i;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}return{pjsonPath:tt(t),exists:!1,type:"none"}}function _p(e){return Cc(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:GP}=It,YP={}.hasOwnProperty,XP={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function JP(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var wp={__proto__:null,"data:":zP,"file:":ZP,"http:":Ip,"https:":Ip,"node:"(){return"builtin"}};function zP(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return JP(t)}function QP(e){const t=e.pathname;let r=t.length;for(;r--;){const n=t.codePointAt(r);if(n===47)return"";if(n===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function ZP(e,t,r){const n=QP(e);if(n===".js"){const a=_p(e);return a!=="none"?a:"commonjs"}if(n===""){const a=_p(e);return a==="none"||a==="commonjs"?"commonjs":"module"}const i=XP[n];if(i)return i;if(r)return;const s=tt(e);throw new GP(n,s)}function Ip(){}function My(e,t){const r=e.protocol;return YP.call(wp,r)&&wp[r](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:ex}=It,jy=Object.freeze(["node","import"]),tx=new Set(jy);function rx(){return jy}function nx(){return tx}function ix(e){if(e!==void 0&&e!==rx()){if(!Array.isArray(e))throw new ex("conditions",e,"expected an array");return new Set(e)}return nx()}var ua=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Au,ERR_INVALID_MODULE_SPECIFIER:Fo,ERR_INVALID_PACKAGE_CONFIG:$y,ERR_INVALID_PACKAGE_TARGET:sx,ERR_MODULE_NOT_FOUND:Pc,ERR_PACKAGE_IMPORT_NOT_DEFINED:ax,ERR_PACKAGE_PATH_NOT_EXPORTED:ox,ERR_UNSUPPORTED_DIR_IMPORT:ux,ERR_UNSUPPORTED_RESOLVE_REQUEST:Op}=It,Uy={}.hasOwnProperty,Np=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Bp=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,lx=/^\.|%|\\/,la=/\*/g,cx=/%2f|%5c/i,kp=new Set,fx=/[/\\]{2}/;function Lp(e,t,r,n,i,s,a){if(Fr.noDeprecation)return;const o=tt(n),u=fx.exec(a?e:t)!==null;Fr.emitWarning(`Use of deprecated ${u?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${o}${s?` imported from ${tt(s)}`:""}.`,"DeprecationWarning","DEP0166")}function Rp(e,t,r,n){if(Fr.noDeprecation||My(e,{parentURL:r.href})!=="module")return;const s=tt(e.href),a=tt(new Dt(".",t)),o=tt(r);n?it.resolve(a,n)!==s&&Fr.emitWarning(`Package ${a} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${s.slice(a.length)}", imported from ${o}.
79
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Fr.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${s.slice(a.length)}", imported from ${o}.
80
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Vy(e){try{return Sm(e)}catch{}}function Cu(e){const t=Sm(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function px(e,t,r){let n;if(t.main!==void 0){if(n=new Dt(t.main,e),Cu(n))return n;const a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let o=-1;for(;++o<a.length&&(n=new Dt(a[o],e),!Cu(n));)n=void 0;if(n)return Rp(n,e,r,t.main),n}const i=["./index.js","./index.json","./index.node"];let s=-1;for(;++s<i.length&&(n=new Dt(i[s],e),!Cu(n));)n=void 0;if(n)return Rp(n,e,r,t.main),n;throw new Pc(tt(new Dt(".",e)),tt(r))}function hx(e,t,r){if(cx.exec(e.pathname)!==null)throw new Fo(e.pathname,'must not include encoded "/" or "\\" characters',tt(t));let n;try{n=tt(e)}catch(s){const a=s;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}const i=Vy(n.endsWith("/")?n.slice(-1):n);if(i&&i.isDirectory()){const s=new ux(n,tt(t));throw s.url=String(e),s}if(!i||!i.isFile()){const s=new Pc(n||e.pathname,t&&tt(t),!0);throw s.url=String(e),s}{const s=lT(n),{search:a,hash:o}=e;e=ni(s+(n.endsWith(it.sep)?"/":"")),e.search=a,e.hash=o}return e}function dx(e,t,r){return new ax(e,t&&tt(new Dt(".",t)),tt(r))}function Pu(e,t,r){return new ox(tt(new Dt(".",t)),e,r&&tt(r))}function mx(e,t,r,n,i){const s=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${tt(r)}`;throw new Fo(e,s,i&&tt(i))}function fs(e,t,r,n,i){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new sx(tt(new Dt(".",r)),e,t,n,i&&tt(i))}function yx(e,t,r,n,i,s,a,o,u){if(t!==""&&!s&&e[e.length-1]!=="/")throw fs(r,e,n,a,i);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new Dt(e),p=!0}catch{}if(!p){const h=s?ua.call(la,e,()=>t):e+t;return Ky(h,n,u)}}throw fs(r,e,n,a,i)}if(Np.exec(e.slice(2))!==null)if(Bp.exec(e.slice(2))===null){if(!o){const p=s?r.replace("*",()=>t):r+t,h=s?ua.call(la,e,()=>t):e;Lp(h,p,r,n,a,i,!0)}}else throw fs(r,e,n,a,i);const l=new Dt(e,n),c=l.pathname,f=new Dt(".",n).pathname;if(!c.startsWith(f))throw fs(r,e,n,a,i);if(t==="")return l;if(Np.exec(t)!==null){const p=s?r.replace("*",()=>t):r+t;if(Bp.exec(t)===null){if(!o){const h=s?ua.call(la,e,()=>t):e;Lp(h,p,r,n,a,i,!1)}}else mx(p,r,n,a,i)}return s?new Dt(ua.call(la,l.href,()=>t)):new Dt(t,l)}function Dx(e){const t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Li(e,t,r,n,i,s,a,o,u){if(typeof t=="string")return yx(t,r,n,e,i,s,a,o,u);if(Array.isArray(t)){const l=t;if(l.length===0)return null;let c,f=-1;for(;++f<l.length;){const p=l[f];let h;try{h=Li(e,p,r,n,i,s,a,o,u)}catch(d){const m=d;if(c=m,m.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw d}if(h!==void 0){if(h===null){c=null;continue}return h}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){const l=Object.getOwnPropertyNames(t);let c=-1;for(;++c<l.length;){const f=l[c];if(Dx(f))throw new $y(tt(e),i,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<l.length;){const f=l[c];if(f==="default"||u&&u.has(f)){const p=t[f],h=Li(e,p,r,n,i,s,a,o,u);if(h===void 0)continue;return h}}return null}if(t===null)return null;throw fs(n,t,e,a,i)}function gx(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;const n=Object.getOwnPropertyNames(e);let i=!1,s=0,a=-1;for(;++a<n.length;){const o=n[a],u=o===""||o[0]!==".";if(s++===0)i=u;else if(i!==u)throw new $y(tt(t),r,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return i}function Ex(e,t,r){if(Fr.noDeprecation)return;const n=tt(t);kp.has(n+"|"+e)||(kp.add(n+"|"+e),Fr.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${n}${r?` imported from ${tt(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Mp(e,t,r,n,i){let s=r.exports;if(gx(s,e,n)&&(s={".":s}),Uy.call(s,t)&&!t.includes("*")&&!t.endsWith("/")){const c=s[t],f=Li(e,c,"",t,n,!1,!1,!1,i);if(f==null)throw Pu(t,e,n);return f}let a="",o="";const u=Object.getOwnPropertyNames(s);let l=-1;for(;++l<u.length;){const c=u[l],f=c.indexOf("*");if(f!==-1&&t.startsWith(c.slice(0,f))){t.endsWith("/")&&Ex(t,e,n);const p=c.slice(f+1);t.length>=c.length&&t.endsWith(p)&&qy(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=t.slice(f,t.length-p.length))}}if(a){const c=s[a],f=Li(e,c,o,a,n,!0,!1,t.endsWith("/"),i);if(f==null)throw Pu(t,e,n);return f}throw Pu(t,e,n)}function qy(e,t){const r=e.indexOf("*"),n=t.indexOf("*"),i=r===-1?e.length:r+1,s=n===-1?t.length:n+1;return i>s?-1:s>i||r===-1?1:n===-1||e.length>t.length?-1:t.length>e.length?1:0}function bx(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){const s="is not a valid internal imports specifier name";throw new Fo(e,s,tt(t))}let n;const i=Cc(t);if(i.exists){n=ni(i.pjsonPath);const s=i.imports;if(s)if(Uy.call(s,e)&&!e.includes("*")){const a=Li(n,s[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",o="";const u=Object.getOwnPropertyNames(s);let l=-1;for(;++l<u.length;){const c=u[l],f=c.indexOf("*");if(f!==-1&&e.startsWith(c.slice(0,-1))){const p=c.slice(f+1);e.length>=c.length&&e.endsWith(p)&&qy(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=e.slice(f,e.length-p.length))}}if(a){const c=s[a],f=Li(n,c,o,a,t,!0,!0,!1,r);if(f!=null)return f}}}throw dx(e,n,t)}function Tx(e,t){let r=e.indexOf("/"),n=!0,i=!1;e[0]==="@"&&(i=!0,r===-1||e.length===0?n=!1:r=e.indexOf("/",r+1));const s=r===-1?e:e.slice(0,r);if(lx.exec(s)!==null&&(n=!1),!n)throw new Fo(e,"is not a valid package name",tt(t));const a="."+(r===-1?"":e.slice(r));return{packageName:s,packageSubpath:a,isScoped:i}}function Ky(e,t,r){if(rc.includes(e))return new Dt("node:"+e);const{packageName:n,packageSubpath:i,isScoped:s}=Tx(e,t),a=Cc(t);if(a.exists){const c=ni(a.pjsonPath);if(a.name===n&&a.exports!==void 0&&a.exports!==null)return Mp(c,i,a,t,r)}let o=new Dt("./node_modules/"+n+"/package.json",t),u=tt(o),l;do{const c=Vy(u.slice(0,-13));if(!c||!c.isDirectory()){l=u,o=new Dt((s?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",o),u=tt(o);continue}const f=Ry(u,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?Mp(o,i,f,t,r):i==="."?px(o,f,t):new Dt(i,o)}while(u.length!==l.length);throw new Pc(n,tt(t),!1)}function Sx(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function xc(e){return e===""?!1:e[0]==="/"?!0:Sx(e)}function vx(e,t,r,n){const i=t.protocol,a=i==="data:"||i==="http:"||i==="https:";let o;if(xc(e))try{o=new Dt(e,t)}catch(u){const l=new Op(e,t);throw l.cause=u,l}else if(i==="file:"&&e[0]==="#")o=bx(e,t,r);else try{o=new Dt(e)}catch(u){if(a&&!rc.includes(e)){const l=new Op(e,t);throw l.cause=u,l}o=Ky(e,t,r)}return rr(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:hx(o,t)}function Ax(e,t,r){if(r){const n=r.protocol;if(n==="http:"||n==="https:"){if(xc(e)){const i=t==null?void 0:t.protocol;if(i&&i!=="https:"&&i!=="http:")throw new Au(e,r,"remote imports cannot import from a local location.");return{url:(t==null?void 0:t.href)||""}}throw rc.includes(e)?new Au(e,r,"remote imports cannot import from a local location."):new Au(e,r,"only relative and absolute specifiers are supported.")}}}function Cx(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function Px(e){if(e!==void 0&&typeof e!="string"&&!Cx(e))throw new It.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function xx(e,t={}){const{parentURL:r}=t;rr(r!==void 0,"expected `parentURL` to be defined"),Px(r);let n;if(r)try{n=new Dt(r)}catch{}let i,s;try{if(i=xc(e)?new Dt(e,n):new Dt(e),s=i.protocol,s==="data:")return{url:i.href,format:null}}catch{}const a=Ax(e,i,n);if(a)return a;if(s===void 0&&i&&(s=i.protocol),s==="node:")return{url:e};if(i&&i.protocol==="node:")return{url:e};const o=ix(t.conditions),u=vx(e,new Dt(r),o);return{url:u.href,format:My(u,{parentURL:r})}}function Fx(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return xx(e,{parentURL:t}).url}catch(r){const n=r;if((n.code==="ERR_UNSUPPORTED_DIR_IMPORT"||n.code==="ERR_MODULE_NOT_FOUND")&&typeof n.url=="string")return n.url;throw r}}function _x(e,t){return import(Fx(e,ni(t).href))}var Wy=_x;function wx(e,t){return vm(t)(e)}var Ix=wx,Ox=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED"]);async function Nx(e,t){try{return Ix(e,t)}catch(n){if(!Ox.has(n==null?void 0:n.code))throw n}return(await Wy(e,t)).default}var Bx=Nx;async function kx(e){const{base:t,ext:r}=it.parse(e),n=t==="package.json"?By:t==="package.yaml"?ky:OP[r];if(!n)throw new Error(`No loader specified for extension "${r||"noExt"}"`);let i=await n(e);if(i){if(typeof i=="string"&&(i=await Bx(i,e)),typeof i!="object")throw new TypeError(`Config is only allowed to be an object, but received ${typeof i} in "${e}"`);return delete i.$schema,i}}var Lx=kx,Ga=new Map,Ya=new Map;function Rx(){Ga.clear(),Ya.clear()}function Mx(e,{shouldCache:t}){return e=it.resolve(e),(!t||!Ga.has(e))&&Ga.set(e,Lx(e)),Ga.get(e)}function jx(e){if(e=e?it.resolve(e):void 0,!Ya.has(e)){const t=LP(e),r=t.search.bind(t);Ya.set(e,r)}return Ya.get(e)}function Hy(e,t={}){e=e?it.resolve(e):process.cwd();const r=bc.getPrettierConfigSearchStopDirectory();return jx(r)(e,{shouldCache:t.shouldCache})}function $x(){Rx(),dA()}function Ux(e,t){if(!e||!t.editorconfig)return;const r=t.useCache;return yA(e,{shouldCache:r})}async function Vx(e,t){const r=t.useCache;let n=t.config;if(!n){const s=e?it.dirname(it.resolve(e)):void 0;n=await Hy(s,{shouldCache:r})}return n?{config:await Mx(n,{shouldCache:r}),configFile:n}:void 0}async function Gy(e,t){t={useCache:!0,...t};const r=$i(e),[n,i]=await Promise.all([Vx(r,t),Ux(r,t)]);if(!n&&!i)return null;const s={...i,...Kx(n,r)};return Array.isArray(s.plugins)&&(s.plugins=s.plugins.map(a=>typeof a=="string"&&a.startsWith(".")?it.resolve(it.dirname(n.configFile),a):a)),s}async function qx(e){const t=e?it.dirname(it.resolve($i(e))):void 0;return await Hy(t,{shouldCache:!1})??null}function Kx(e,t){const{config:r,configFile:n}=e||{},{overrides:i,...s}=r||{};if(t&&i){const a=it.relative(it.dirname(n),t);for(const o of i)Wx(a,o.files,o.excludeFiles)&&Object.assign(s,o.options)}return s}function Wx(e,t,r){const n=Array.isArray(t)?t:[t],[i,s]=dy(n,a=>a.includes("/"));return dp.default.isMatch(e,s,{ignore:r,basename:!0,dot:!0})||dp.default.isMatch(e,i,{ignore:r,basename:!1,dot:!0})}var Hx=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},ks=Hx,Gx=Qr(pv()),Yx=Gx.default.default,Xx=it.sep==="\\"?e=>ks(!1,e,"\\","/"):e=>e;function Jx(e,t){const r=$i(t),n=hy(e)?gT.fileURLToPath(e):it.resolve(e);return it.relative(r?it.dirname(r):process.cwd(),n)}async function zx(e,t){let r="";if(e&&(r+=await Os(e)??""),t||(r+=`
81
+ node_modules`),!r)return;const n=Yx({allowRelativePaths:!0}).add(r);return i=>n.ignores(Xx(Jx(i,e)))}async function Yy(e,t){e.length===0&&!t&&(e=[void 0]);const r=(await Promise.all(e.map(n=>zx(n,t)))).filter(Boolean);return n=>r.some(i=>i(n))}async function Qx(e,t){const{ignorePath:r,withNodeModules:n}=t;return(await Yy(r,n))(e)}var Zx=Qr(hv());function eF(e){let t;try{t=fl.openSync(e,"r")}catch{return}try{const n=new Zx.default(t).next().toString("utf8"),i=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/u);if(i)return i[1];const s=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/u);if(s)return s[1]}finally{try{fl.closeSync(t)}catch{}}}var tF=eF,Xy=e=>String(e).split(/[/\\]/u).pop();function jp(e,t){if(!t)return;const r=Xy(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function rF(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function nF(e,t){if(!t||Xy(t).includes("."))return;const r=tF(t);if(r)return e.find(({interpreters:n})=>n==null?void 0:n.includes(r))}function iF(e,t){const r=e.plugins.flatMap(i=>i.languages??[]),n=rF(r,t.language)??jp(r,t.physicalFile)??jp(r,t.file)??nF(r,t.physicalFile);return n==null?void 0:n.parsers[0]}var Jy=iF;async function sF(e,t){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`expect \`file\` to be a string or URL, got \`${typeof e}\``);let{ignorePath:r,withNodeModules:n}=t;Array.isArray(r)||(r=[r]);const i=await Qx(e,{ignorePath:r,withNodeModules:n});let s;return i||(s=await aF(e,t)),{ignored:i,inferredParser:s??null}}async function aF(e,t){let r;return t.resolveConfig!==!1&&(r=await Gy(e)),(r==null?void 0:r.parser)??Jy(t,{physicalFile:e})}var oF=sF;function uF(e){const t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
82
+ `?"crlf":"cr":"lf"}function Fc(e){switch(e){case"cr":return"\r";case"crlf":return`\r
83
+ `;default:return`
84
+ `}}function zy(e,t){let r;switch(t){case`
85
+ `:r=/\n/gu;break;case"\r":r=/\r/gu;break;case`\r
86
+ `:r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}const n=e.match(r);return n?n.length:0}function lF(e){return ks(!1,e,/\r\n?/gu,`
87
+ `)}var li="string",zr="array",ci="cursor",Zr="indent",en="align",Bn="trim",ir="group",Ir="fill",Dr="if-break",kn="indent-if-break",tn="line-suffix",Ln="line-suffix-boundary",sr="line",rn="label",gr="break-parent",Qy=new Set([ci,Zr,en,Bn,ir,Ir,Dr,kn,tn,Ln,sr,rn,gr]);function cF(e){if(typeof e=="string")return li;if(Array.isArray(e))return zr;if(!e)return;const{type:t}=e;if(Qy.has(t))return t}var fi=cF,fF=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function pF(e){const t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
88
+ Expected it to be 'string' or 'object'.`;if(fi(e))throw new Error("doc is valid.");const r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;const n=fF([...Qy].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
89
+ Expected it to be ${n}.`}var hF=class extends Error{constructor(t){super(pF(t));Di(this,"name","InvalidDocError");this.doc=t}},Ri=hF,$p={};function dF(e,t,r,n){const i=[e];for(;i.length>0;){const s=i.pop();if(s===$p){r(i.pop());continue}r&&i.push(s,$p);const a=fi(s);if(!a)throw new Ri(s);if((t==null?void 0:t(s))!==!1)switch(a){case zr:case Ir:{const o=a===zr?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Dr:i.push(s.flatContents,s.breakContents);break;case ir:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case en:case Zr:case kn:case rn:case tn:i.push(s.contents);break;case li:case ci:case Bn:case Ln:case sr:case gr:break;default:throw new Ri(s)}}}var mF=dF;function Il(e){return{type:Zr,contents:e}}function Up(e,t){return{type:en,contents:t,n:e}}function yF(e){return{type:Ir,parts:e}}function Vp(e){return{type:tn,contents:e}}var Zy={type:gr},e0={type:sr,hard:!0},DF={type:sr},Fi=[e0,Zy],qp={type:ci};function gF(e,t,r){let n=e;if(t>0){for(let i=0;i<Math.floor(t/r);++i)n=Il(n);n=Up(t%r,n),n=Up(Number.NEGATIVE_INFINITY,n)}return n}function jr(e){var t;if(!e)return"";if(Array.isArray(e)){const r=[];for(const n of e)if(Array.isArray(n))r.push(...jr(n));else{const i=jr(n);i!==""&&r.push(i)}return r}return e.type===Dr?{...e,breakContents:jr(e.breakContents),flatContents:jr(e.flatContents)}:e.type===ir?{...e,contents:jr(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(jr)}:e.type===Ir?{type:"fill",parts:e.parts.map(jr)}:e.contents?{...e,contents:jr(e.contents)}:e}function EF(e){const t=Object.create(null),r=new Set;return n(jr(e));function n(s,a,o){var u,l;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){const c=s.map(n).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(s.type===sr){const c=((u=o==null?void 0:o[a+1])==null?void 0:u.type)===gr;return s.literal?c?"literalline":"literallineWithoutBreakParent":s.hard?c?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===gr)return((l=o==null?void 0:o[a-1])==null?void 0:l.type)===sr&&o[a-1].hard?void 0:"breakParent";if(s.type===Bn)return"trim";if(s.type===Zr)return"indent("+n(s.contents)+")";if(s.type===en)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(s.contents)+")":s.n<0?"dedent("+n(s.contents)+")":s.n.type==="root"?"markAsRoot("+n(s.contents)+")":"align("+JSON.stringify(s.n)+", "+n(s.contents)+")";if(s.type===Dr)return"ifBreak("+n(s.breakContents)+(s.flatContents?", "+n(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===kn){const c=[];s.negate&&c.push("negate: true"),s.groupId&&c.push(`groupId: ${i(s.groupId)}`);const f=c.length>0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${f})`}if(s.type===ir){const c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);const f=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(p=>n(p)).join(",")}]${f})`:`group(${n(s.contents)}${f})`}if(s.type===Ir)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===tn)return"lineSuffix("+n(s.contents)+")";if(s.type===Ln)return"lineSuffixBoundary";if(s.type===rn)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];const a=s.description||"symbol";for(let o=0;;o++){const u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),t[s]=`Symbol.for(${JSON.stringify(u)})`}}}var bF=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Ft=bF,TF=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function SF(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function vF(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var AF=e=>!(SF(e)||vF(e)),CF=/[^\x20-\x7F]/u;function PF(e){if(!e)return 0;if(!CF.test(e))return e.length;e=e.replace(TF()," ");let t=0;for(const r of e){const n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=AF(n)?1:2)}return t}var _c=PF;function xF(e,t){if(typeof e=="string")return t(e);const r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);const a=i(s);return r.set(s,a),a}function i(s){switch(fi(s)){case zr:return t(s.map(n));case Ir:return t({...s,parts:s.parts.map(n)});case Dr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ir:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case en:case Zr:case kn:case rn:case tn:return t({...s,contents:n(s.contents)});case li:case ci:case Bn:case Ln:case sr:case gr:return t(s);default:throw new Ri(s)}}}function Kp(e){if(e.length>0){const t=Ft(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function FF(e){const t=new Set,r=[];function n(s){if(s.type===gr&&Kp(r),s.type===ir){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===ir&&r.pop().break&&Kp(r)}mF(e,n,i,!0)}function Wp(e){for(e=[...e];e.length>=2&&Ft(!1,e,-2).type===sr&&Ft(!1,e,-1).type===gr;)e.length-=2;if(e.length>0){const t=As(Ft(!1,e,-1));e[e.length-1]=t}return e}function As(e){switch(fi(e)){case Zr:case kn:case ir:case tn:case rn:{const t=As(e.contents);return{...e,contents:t}}case Dr:return{...e,breakContents:As(e.breakContents),flatContents:As(e.flatContents)};case Ir:return{...e,parts:Wp(e.parts)};case zr:return Wp(e);case li:return e.replace(/[\n\r]*$/u,"");case en:case ci:case Bn:case Ln:case sr:case gr:break;default:throw new Ri(e)}return e}function _F(e){return As(IF(e))}function wF(e){switch(fi(e)){case Ir:if(e.parts.every(t=>t===""))return"";break;case ir:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ir&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case en:case Zr:case kn:case tn:if(!e.contents)return"";break;case Dr:if(!e.flatContents&&!e.breakContents)return"";break;case zr:{const t=[];for(const r of e){if(!r)continue;const[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Ft(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case li:case ci:case Bn:case Ln:case sr:case rn:case gr:break;default:throw new Ri(e)}return e}function IF(e){return xF(e,t=>wF(t))}function t0(e,t){return e.type===rn?{...e,contents:t(e.contents)}:t(e)}var qt=Symbol("MODE_BREAK"),Pr=Symbol("MODE_FLAT"),Cs=Symbol("cursor");function r0(){return{value:"",length:0,queue:[]}}function OF(e,t){return Ol(e,{type:"indent"},t)}function NF(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||r0():t<0?Ol(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:Ol(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function Ol(e,t,r){const n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t];let i="",s=0,a=0,o=0;for(const d of n)switch(d.type){case"indent":c(),r.useTabs?u(1):l(r.tabWidth);break;case"stringAlign":c(),i+=d.n,s+=d.n.length;break;case"numberAlign":a+=1,o+=d.n;break;default:throw new Error(`Unexpected type '${d.type}'`)}return p(),{...e,value:i,length:s,queue:n};function u(d){i+=" ".repeat(d),s+=r.tabWidth*d}function l(d){i+=" ".repeat(d),s+=d}function c(){r.useTabs?f():p()}function f(){a>0&&u(a),h()}function p(){o>0&&l(o),h()}function h(){a=0,o=0}}function Nl(e){let t=0,r=0,n=e.length;e:for(;n--;){const i=e[n];if(i===Cs){r++;continue}for(let s=i.length-1;s>=0;s--){const a=i[s];if(a===" "||a===" ")t++;else{e[n]=i.slice(0,s+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Cs);return t}function ca(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length;const o=[e],u=[];for(;r>=0;){if(o.length===0){if(a===0)return!0;o.push(t[--a]);continue}const{mode:l,doc:c}=o.pop(),f=fi(c);switch(f){case li:u.push(c),r-=_c(c);break;case zr:case Ir:{const p=f===zr?c:c.parts;for(let h=p.length-1;h>=0;h--)o.push({mode:l,doc:p[h]});break}case Zr:case en:case kn:case rn:o.push({mode:l,doc:c.contents});break;case Bn:r+=Nl(u);break;case ir:{if(s&&c.break)return!1;const p=c.break?qt:l,h=c.expandedStates&&p===qt?Ft(!1,c.expandedStates,-1):c.contents;o.push({mode:p,doc:h});break}case Dr:{const h=(c.groupId?i[c.groupId]||Pr:l)===qt?c.breakContents:c.flatContents;h&&o.push({mode:l,doc:h});break}case sr:if(l===qt||c.hard)return!0;c.soft||(u.push(" "),r--);break;case tn:n=!0;break;case Ln:if(n)return!1;break}}return!1}function wc(e,t){const r={},n=t.printWidth,i=Fc(t.endOfLine);let s=0;const a=[{ind:r0(),mode:qt,doc:e}],o=[];let u=!1;const l=[];let c=0;for(FF(e);a.length>0;){const{ind:p,mode:h,doc:d}=a.pop();switch(fi(d)){case li:{const m=i!==`
90
+ `?ks(!1,d,`
91
+ `,i):d;o.push(m),a.length>0&&(s+=_c(m));break}case zr:for(let m=d.length-1;m>=0;m--)a.push({ind:p,mode:h,doc:d[m]});break;case ci:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Cs),c++;break;case Zr:a.push({ind:OF(p,t),mode:h,doc:d.contents});break;case en:a.push({ind:NF(p,d.n,t),mode:h,doc:d.contents});break;case Bn:s-=Nl(o);break;case ir:switch(h){case Pr:if(!u){a.push({ind:p,mode:d.break?qt:Pr,doc:d.contents});break}case qt:{u=!1;const m={ind:p,mode:Pr,doc:d.contents},D=n-s,g=l.length>0;if(!d.break&&ca(m,a,D,g,r))a.push(m);else if(d.expandedStates){const y=Ft(!1,d.expandedStates,-1);if(d.break){a.push({ind:p,mode:qt,doc:y});break}else for(let b=1;b<d.expandedStates.length+1;b++)if(b>=d.expandedStates.length){a.push({ind:p,mode:qt,doc:y});break}else{const O=d.expandedStates[b],C={ind:p,mode:Pr,doc:O};if(ca(C,a,D,g,r)){a.push(C);break}}}else a.push({ind:p,mode:qt,doc:d.contents});break}}d.id&&(r[d.id]=Ft(!1,a,-1).mode);break;case Ir:{const m=n-s,{parts:D}=d;if(D.length===0)break;const[g,y]=D,b={ind:p,mode:Pr,doc:g},O={ind:p,mode:qt,doc:g},C=ca(b,[],m,l.length>0,r,!0);if(D.length===1){C?a.push(b):a.push(O);break}const $={ind:p,mode:Pr,doc:y},w={ind:p,mode:qt,doc:y};if(D.length===2){C?a.push($,b):a.push(w,O);break}D.splice(0,2);const P={ind:p,mode:h,doc:yF(D)},I=D[0];ca({ind:p,mode:Pr,doc:[g,y,I]},[],m,l.length>0,r,!0)?a.push(P,$,b):C?a.push(P,w,b):a.push(P,w,O);break}case Dr:case kn:{const m=d.groupId?r[d.groupId]:h;if(m===qt){const D=d.type===Dr?d.breakContents:d.negate?d.contents:Il(d.contents);D&&a.push({ind:p,mode:h,doc:D})}if(m===Pr){const D=d.type===Dr?d.flatContents:d.negate?Il(d.contents):d.contents;D&&a.push({ind:p,mode:h,doc:D})}break}case tn:l.push({ind:p,mode:h,doc:d.contents});break;case Ln:l.length>0&&a.push({ind:p,mode:h,doc:e0});break;case sr:switch(h){case Pr:if(d.hard)u=!0;else{d.soft||(o.push(" "),s+=1);break}case qt:if(l.length>0){a.push({ind:p,mode:h,doc:d},...l.reverse()),l.length=0;break}d.literal?p.root?(o.push(i,p.root.value),s=p.root.length):(o.push(i),s=0):(s-=Nl(o),o.push(i+p.value),s=p.length);break}break;case rn:a.push({ind:p,mode:h,doc:d.contents});break;case gr:break;default:throw new Ri(d)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}const f=o.indexOf(Cs);if(f!==-1){const p=o.indexOf(Cs,f+1),h=o.slice(0,f).join(""),d=o.slice(f+1,p).join(""),m=o.slice(p+1).join("");return{formatted:h+d+m,cursorNodeStart:h.length,cursorNodeText:d}}return{formatted:o.join("")}}function BF(e,t,r=0){let n=0;for(let i=r;i<e.length;++i)e[i]===" "?n=n+t-n%t:n++;return n}var Ic=BF,Xn,Bl,Xa,kF=class{constructor(e){zn(this,Xn),this.stack=[e]}get key(){const{stack:e,siblings:t}=this;return Ft(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ft(!1,this.stack,-2)}get node(){return Ft(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){const{stack:e}=this,t=Ft(!1,e,-3);return Array.isArray(t)?t:null}get next(){const{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){const{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){const{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Ti(this,Xn,Xa).call(this)]}getName(){const{stack:e}=this,{length:t}=e;return t>1?Ft(!1,e,-2):null}getValue(){return Ft(!1,this.stack,-1)}getNode(e=0){const t=Ti(this,Xn,Bl).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){const{stack:r}=this,{length:n}=r;let i=Ft(!1,r,-1);for(const s of t)i=i[s],r.push(s,i);try{return e(this)}finally{r.length=n}}callParent(e,t=0){const r=Ti(this,Xn,Bl).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){const{stack:r}=this,{length:n}=r;let i=Ft(!1,r,-1);for(const s of t)i=i[s],r.push(s,i);try{for(let s=0;s<i.length;++s)r.push(s,i[s]),e(this,s,i),r.length-=2}finally{r.length=n}}map(e,...t){const r=[];return this.each((n,i,s)=>{r[i]=e(n,i,s)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(const i of e){if(n===void 0)return!1;let s=null;if(typeof r=="number"&&(s=r,r=this.stack[t--],n=this.stack[t--]),i&&!i(n,r,s))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(const t of Ti(this,Xn,Xa).call(this))if(e(t))return t}hasAncestor(e){for(const t of Ti(this,Xn,Xa).call(this))if(e(t))return!0;return!1}};Xn=new WeakSet;Bl=function(e){const{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1};Xa=function*(){const{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){const r=e[t];Array.isArray(r)||(yield r)}};var LF=kF;function RF(e){return e!==null&&typeof e=="object"}var MF=RF;function*n0(e,t){const{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>MF(s)&&n(s);for(const s of r(e)){const a=e[s];if(Array.isArray(a))for(const o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*jF(e,t){const r=[e];for(let n=0;n<r.length;n++){const i=r[n];for(const s of n0(i,t))yield s,r.push(s)}}function Ls(e){return(t,r,n)=>{const i=!!(n!=null&&n.backwards);if(r===!1)return!1;const{length:s}=t;let a=r;for(;a>=0&&a<s;){const o=t.charAt(a);if(e instanceof RegExp){if(!e.test(o))return a}else if(!e.includes(o))return a;i?a--:a++}return a===-1||a===s?a:!1}}var $F=Ls(/\s/u),Sn=Ls(" "),i0=Ls(",; "),s0=Ls(/[^\n\r]/u);function UF(e,t,r){const n=!!(r!=null&&r.backwards);if(t===!1)return!1;const i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
92
+ `)return t-2;if(i===`
93
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
94
+ `)return t+2;if(i===`
95
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var si=UF;function VF(e,t,r={}){const n=Sn(e,r.backwards?t-1:t,r),i=si(e,n,r);return n!==i}var Dn=VF;function qF(e){return Array.isArray(e)&&e.length>0}var a0=qF,o0=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),KF=e=>Object.keys(e).filter(t=>!o0.has(t));function WF(e){return e?t=>e(t,o0):KF}var _o=WF;function HF(e){const t=e.type||e.kind||"(unknown type)";let r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Oc(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=HF(e)}function Ci(e,t){t.leading=!0,t.trailing=!1,Oc(e,t)}function Jn(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Oc(e,t)}function Pi(e,t){t.leading=!1,t.trailing=!0,Oc(e,t)}var xu=new WeakMap;function Nc(e,t){if(xu.has(e))return xu.get(e);const{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:i},locStart:s,locEnd:a}=t;if(!n)return[];const o=((r==null?void 0:r(e,t))??[...n0(e,{getVisitorKeys:_o(i)})]).flatMap(u=>n(u)?[u]:Nc(u,t));return o.sort((u,l)=>s(u)-s(l)||a(u)-a(l)),xu.set(e,o),o}function u0(e,t,r,n){const{locStart:i,locEnd:s}=r,a=i(t),o=s(t),u=Nc(e,r);let l,c,f=0,p=u.length;for(;f<p;){const h=f+p>>1,d=u[h],m=i(d),D=s(d);if(m<=a&&o<=D)return u0(d,t,r,d);if(D<=a){l=d,f=h+1;continue}if(o<=m){c=d,p=h;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){const{quasis:h}=n,d=_u(h,t,r);l&&_u(h,l,r)!==d&&(l=null),c&&_u(h,c,r)!==d&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}var Fu=()=>!1;function GF(e,t){const{comments:r}=e;if(delete e.comments,!a0(r)||!t.printer.canAttachComment)return;const n=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:a=!1}={},handleComments:o={}},originalText:u}=t,{ownLine:l=Fu,endOfLine:c=Fu,remaining:f=Fu}=o,p=r.map((h,d)=>({...u0(e,h,t),comment:h,text:u,options:t,ast:e,isLastComment:r.length-1===d}));for(const[h,d]of p.entries()){const{comment:m,precedingNode:D,enclosingNode:g,followingNode:y,text:b,options:O,ast:C,isLastComment:$}=d;if(O.parser==="json"||O.parser==="json5"||O.parser==="jsonc"||O.parser==="__js_expression"||O.parser==="__ts_expression"||O.parser==="__vue_expression"||O.parser==="__vue_ts_expression"){if(i(m)-i(C)<=0){Ci(C,m);continue}if(s(m)-s(C)>=0){Pi(C,m);continue}}let w;if(a?w=[d]:(m.enclosingNode=g,m.precedingNode=D,m.followingNode=y,w=[m,b,O,C,$]),YF(b,O,p,h))m.placement="ownLine",l(...w)||(y?Ci(y,m):D?Pi(D,m):Jn(g||C,m));else if(XF(b,O,p,h))m.placement="endOfLine",c(...w)||(D?Pi(D,m):y?Ci(y,m):Jn(g||C,m));else if(m.placement="remaining",!f(...w))if(D&&y){const P=n.length;P>0&&n[P-1].followingNode!==y&&Hp(n,O),n.push(d)}else D?Pi(D,m):y?Ci(y,m):Jn(g||C,m)}if(Hp(n,t),!a)for(const h of r)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}var l0=e=>!/[\S\n\u2028\u2029]/u.test(e);function YF(e,t,r,n){const{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t;let u=a(i);if(s)for(let l=n-1;l>=0;l--){const{comment:c,precedingNode:f}=r[l];if(f!==s||!l0(e.slice(o(c),u)))break;u=a(c)}return Dn(e,u,{backwards:!0})}function XF(e,t,r,n){const{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t;let u=o(i);if(s)for(let l=n+1;l<r.length;l++){const{comment:c,followingNode:f}=r[l];if(f!==s||!l0(e.slice(u,a(c))))break;u=o(c)}return Dn(e,u)}function Hp(e,t){var r,n;const i=e.length;if(i===0)return;const{precedingNode:s,followingNode:a}=e[0];let o=t.locStart(a),u;for(u=i;u>0;--u){const{comment:l,precedingNode:c,followingNode:f}=e[u-1];rr.strictEqual(c,s),rr.strictEqual(f,a);const p=t.originalText.slice(t.locEnd(l),o);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,p,t))??/^[\s(]*$/u.test(p))o=t.locStart(l);else break}for(const[l,{comment:c}]of e.entries())l<u?Pi(s,c):Ci(a,c);for(const l of[s,a])l.comments&&l.comments.length>1&&l.comments.sort((c,f)=>t.locStart(c)-t.locStart(f));e.length=0}function _u(e,t,r){const n=r.locStart(t)-1;for(let i=1;i<e.length;++i)if(n<r.locStart(e[i]))return i-1;return 0}function JF(e,t){let r=t-1;r=Sn(e,r,{backwards:!0}),r=si(e,r,{backwards:!0}),r=Sn(e,r,{backwards:!0});const n=si(e,r,{backwards:!0});return r!==n}var Bc=JF;function c0(e,t){const r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function zF(e,t){var r;const n=e.node,i=[c0(e,t)],{printer:s,originalText:a,locStart:o,locEnd:u}=t;if((r=s.isBlockComment)==null?void 0:r.call(s,n)){const f=Dn(a,u(n))?Dn(a,o(n),{backwards:!0})?Fi:DF:" ";i.push(f)}else i.push(Fi);const c=si(a,Sn(a,u(n)));return c!==!1&&Dn(a,c)&&i.push(Fi),i}function QF(e,t,r){var n;const i=e.node,s=c0(e,t),{printer:a,originalText:o,locStart:u}=t,l=(n=a.isBlockComment)==null?void 0:n.call(a,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Dn(o,u(i),{backwards:!0})){const c=Bc(o,u(i));return{doc:Vp([Fi,c?Fi:"",s]),isBlock:l,hasLineSuffix:!0}}return!l||r!=null&&r.hasLineSuffix?{doc:[Vp([" ",s]),Zy],isBlock:l,hasLineSuffix:!0}:{doc:[" ",s],isBlock:l,hasLineSuffix:!1}}function ZF(e,t){const r=e.node;if(!r)return{};const n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(u=>!n.has(u)).length===0)return{leading:"",trailing:""};const s=[],a=[];let o;return e.each(()=>{const u=e.node;if(n!=null&&n.has(u))return;const{leading:l,trailing:c}=u;l?s.push(zF(e,t)):c&&(o=QF(e,t,o),a.push(o.doc))},"comments"),{leading:s,trailing:a}}function e2(e,t,r){const{leading:n,trailing:i}=ZF(e,r);return!n&&!i?t:t0(t,s=>[n,s,i])}function t2(e){const{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(const n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function r2(e){return()=>{}}var n2=r2,i2={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
96
+ (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
97
+ The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
98
+ The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
99
+ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function kc({plugins:e=[],showDeprecated:t=!1}={}){const r=e.flatMap(i=>i.languages??[]),n=[];for(const i of f0(Object.assign({},...e.map(({options:s})=>s),i2)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...s2(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>{var a;return((a=s.defaultOptions)==null?void 0:a[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*s2(e,t,r){const n=new Set(e.map(i=>i.value));for(const i of t)if(i.parsers){for(const s of i.parsers)if(!n.has(s)){n.add(s);const a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s));let o=i.name;a!=null&&a.name&&(o+=` (plugin: ${a.name})`),yield{value:s,description:o}}}}function f0(e){const t=[];for(const[r,n]of Object.entries(e)){const i={name:r,...n};Array.isArray(i.default)&&(i.default=Ft(!1,i.default,-1).value),t.push(i)}return t}var wu;function a2(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:a}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=Qn;const o=i?Array.isArray(i)?(p,h)=>i.includes(p)?{[p]:h}:void 0:(p,h)=>({[p]:h}):(p,h,d)=>{const{_:m,...D}=d.schemas;return uy(p,h,{...d,schemas:D})},u=o2(t,{isCLI:n,FlagSchema:s}),l=new zv(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&wu&&(l._hasDeprecationWarned=wu);const f=l.normalize(e);return c&&(wu=l._hasDeprecationWarned),f}function o2(e,{isCLI:t,FlagSchema:r}){const n=[];t&&n.push(Bv.create({name:"_"}));for(const i of e)n.push(u2(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(Nv.create({name:i.alias,sourceName:i.name}));return n}function u2(e,{isCLI:t,optionInfos:r,FlagSchema:n}){const{name:i}=e,s={name:i};let a;const o={};switch(e.type){case"int":a=Hv,t&&(s.preprocess=Number);break;case"string":a=hp;break;case"choice":a=cy,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=Lv;break;case"flag":a=n,s.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=hp;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(u,l,c)=>e.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),e.redirect&&(o.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const u=s.preprocess||(l=>l);s.preprocess=(l,c,f)=>c.preprocess(u(Array.isArray(l)?Ft(!1,l,-1):l),f)}return e.array?kv.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var p0=a2,l2=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){const i=t[n];if(r(i,n,t))return i}}},h0=l2;function d0(e,t){if(!t)throw new Error("parserName is required.");const r=h0(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw new Ec(n)}function c2(e,t){if(!t)throw new Error("astFormat is required.");const r=h0(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw new Ec(n)}function m0({plugins:e,parser:t}){const r=d0(e,t);return y0(r,t)}function y0(e,t){const r=e.parsers[t];return typeof r=="function"?r():r}function f2(e,t){const r=e.printers[t];return typeof r=="function"?r():r}var kl={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function p2(e,t={}){var r;const n={...e};if(!n.parser)if(n.filepath){if(n.parser=Jy(n,{physicalFile:n.filepath}),!n.parser)throw new Al(`No parser could be inferred for file "${n.filepath}".`)}else throw new Al("No parser and no file path given, couldn't infer a parser.");const i=kc({plugins:e.plugins,showDeprecated:!0}).options,s={...kl,...Object.fromEntries(i.filter(p=>p.default!==void 0).map(p=>[p.name,p.default]))},a=d0(n.plugins,n.parser),o=await y0(a,n.parser);n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const u=(r=a.printers)!=null&&r[o.astFormat]?a:c2(n.plugins,o.astFormat),l=await f2(u,o.astFormat);n.printer=l;const c=u.defaultOptions?Object.fromEntries(Object.entries(u.defaultOptions).filter(([,p])=>p!==void 0)):{},f={...s,...c};for(const[p,h]of Object.entries(f))(n[p]===null||n[p]===void 0)&&(n[p]=h);return n.parser==="json"&&(n.trailingComma="none"),p0(n,i,{passThrough:Object.keys(kl),...t})}var Ui=p2,h2=Qr(ty());async function d2(e,t){const r=await m0(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(s){m2(s,e)}return{text:n,ast:i}}function m2(e,t){const{loc:r}=e;if(r){const n=(0,h2.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=`
100
+ `+n,e.codeFrame=n,e}throw e}var Rs=d2;async function y2(e,t,r,n,i){const{embeddedLanguageFormatting:s,printer:{embed:a,hasPrettierIgnore:o=()=>!1,getVisitorKeys:u}}=r;if(!a||s!=="auto")return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");const l=_o(a.getVisitorKeys??u),c=[];h();const f=e.stack;for(const{print:d,node:m,pathStack:D}of c)try{e.stack=D;const g=await d(p,t,e,r);g&&i.set(m,g)}catch(g){if(process.env.PRETTIER_DEBUG)throw g}e.stack=f;function p(d,m){return D2(d,m,r,n)}function h(){const{node:d}=e;if(d===null||typeof d!="object"||o(e))return;for(const D of l(d))Array.isArray(d[D])?e.each(h,D):e.call(h,D);const m=a(e,r);if(m){if(typeof m=="function"){c.push({print:m,node:d,pathStack:[...e.stack]});return}i.set(d,m)}}}async function D2(e,t,r,n){const i=await Ui({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:s}=await Rs(e,i),a=await n(s,i);return _F(a)}function g2(e,t){const{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:s,[Symbol.for("printedComments")]:a}=t,{node:o}=e,u=i(o),l=s(o);for(const c of n)i(c)>=u&&s(c)<=l&&a.add(c);return r.slice(u,l)}var E2=g2;async function wo(e,t){({ast:e}=await D0(e,t));const r=new Map,n=new LF(e),i=n2(),s=new Map;await y2(n,o,t,wo,s);const a=await Gp(n,t,o,void 0,s);return t2(t),a;function o(l,c){return l===void 0||l===n?u(c):Array.isArray(l)?n.call(()=>u(c),...l):n.call(()=>u(c),l)}function u(l){i(n);const c=n.node;if(c==null)return"";const f=c&&typeof c=="object"&&l===void 0;if(f&&r.has(c))return r.get(c);const p=Gp(n,t,o,l,s);return f&&r.set(c,p),p}}function Gp(e,t,r,n,i){var s;const{node:a}=e,{printer:o}=t;let u;return(s=o.hasPrettierIgnore)!=null&&s.call(o,e)?u=E2(e,t):i.has(a)?u=i.get(a):u=o.print(e,t,r,n),a===t.cursorNode&&(u=t0(u,l=>[qp,l,qp])),o.printComment&&(!o.willPrintOwnComments||!o.willPrintOwnComments(e,t))&&(u=e2(e,u,t)),u}async function D0(e,t){const r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,GF(e,t);const{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function b2(e,t){const{cursorOffset:r,locStart:n,locEnd:i}=t,s=_o(t.printer.getVisitorKeys),a=u=>n(u)<=r&&i(u)>=r;let o=e;for(const u of jF(e,{getVisitorKeys:s,filter:a}))o=u;return o}var T2=b2;function S2(e,t){const{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;const i=_o(n),s=r.ignoredProperties??new Set;return a(e);function a(o,u){if(!(o!==null&&typeof o=="object"))return o;if(Array.isArray(o))return o.map(p=>a(p,u)).filter(Boolean);const l={},c=new Set(i(o));for(const p in o)!Object.prototype.hasOwnProperty.call(o,p)||s.has(p)||(c.has(p)?l[p]=a(o[p],o):l[p]=o[p]);const f=r(o,l,u);if(f!==null)return f??l}}var v2=S2,A2=(e,t,r)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){const i=t[n];if(r(i,n,t))return n}return-1}},C2=A2,P2=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function x2(e,t){const r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(i=>g0.has(i.type)&&n.has(i))}function Yp(e){const t=C2(!1,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function F2(e,t,{locStart:r,locEnd:n}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};const a=r(e.node);for(const u of Yp(t.parentNodes))if(r(u)>=a)s=u;else break;const o=n(t.node);for(const u of Yp(e.parentNodes)){if(n(u)<=o)i=u;else break;if(i===s)break}return{startNode:i,endNode:s}}function Ll(e,t,r,n,i=[],s){const{locStart:a,locEnd:o}=r,u=a(e),l=o(e);if(!(t>l||t<u||s==="rangeEnd"&&t===u||s==="rangeStart"&&t===l)){for(const c of Nc(e,r)){const f=Ll(c,t,r,n,[e,...i],s);if(f)return f}if(!n||n(e,i[0]))return{node:e,parentNodes:i}}}function _2(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var g0=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),w2=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Xp(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return _2(t.type,r==null?void 0:r.type);case"json":case"json5":case"jsonc":case"json-stringify":return g0.has(t.type);case"graphql":return w2.has(t.kind);case"vue":return t.tag!=="root"}return!1}function I2(e,t,r){let{rangeStart:n,rangeEnd:i,locStart:s,locEnd:a}=t;rr.ok(i>n);const o=e.slice(n,i).search(/\S/u),u=o===-1;if(!u)for(n+=o;i>n&&!/\S/u.test(e[i-1]);--i);const l=Ll(r,n,t,(h,d)=>Xp(t,h,d),[],"rangeStart"),c=u?l:Ll(r,i,t,h=>Xp(t,h),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let f,p;if(P2(t)){const h=x2(l,c);f=h,p=h}else({startNode:f,endNode:p}=F2(l,c,t));return{rangeStart:Math.min(s(f),s(p)),rangeEnd:Math.max(a(f),a(p))}}var E0="\uFEFF",Jp=Symbol("cursor");async function b0(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};const{ast:n,text:i}=await Rs(e,t);t.cursorOffset>=0&&(t.cursorNode=T2(n,t));let s=await wo(n,t);r>0&&(s=gF([Fi,s],r,t.tabWidth));const a=wc(s,t);if(r>0){const u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u)),a.formatted=u+Fc(t.endOfLine)}const o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,l,c,f,p;if(t.cursorNode&&a.cursorNodeText?(u=t.locStart(t.cursorNode),l=i.slice(u,t.locEnd(t.cursorNode)),c=t.cursorOffset-u,f=a.cursorNodeStart,p=a.cursorNodeText):(u=0,l=i,c=t.cursorOffset,f=0,p=a.formatted),l===p)return{formatted:a.formatted,cursorOffset:f+c,comments:o};const h=l.split("");h.splice(c,0,Jp);const d=p.split(""),m=vv(h,d);let D=f;for(const g of m)if(g.removed){if(g.value.includes(Jp))break}else D+=g.count;return{formatted:a.formatted,cursorOffset:D,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function O2(e,t){const{ast:r,text:n}=await Rs(e,t),{rangeStart:i,rangeEnd:s}=I2(n,t,r),a=n.slice(i,s),o=Math.min(i,n.lastIndexOf(`
101
+ `,i)+1),u=n.slice(o,i).match(/^\s*/u)[0],l=Ic(u,t.tabWidth),c=await b0(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),f=c.formatted.trimEnd();let{cursorOffset:p}=t;p>s?p+=f.length-a.length:c.cursorOffset>=0&&(p=c.cursorOffset+i);let h=n.slice(0,i)+f+n.slice(s);if(t.endOfLine!=="lf"){const d=Fc(t.endOfLine);p>=0&&d===`\r
102
+ `&&(p+=zy(h.slice(0,p),`
103
+ `)),h=ks(!1,h,`
104
+ `,d)}return{formatted:h,cursorOffset:p,comments:c.comments}}function Iu(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function zp(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Iu(e,r,-1),n=Iu(e,n,0),i=Iu(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function T0(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=zp(e,t);const a=e.charAt(0)===E0;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=uF(e)),e.includes("\r")){const o=u=>zy(e.slice(0,Math.max(u,0)),`\r
105
+ `);r-=o(r),n-=o(n),i-=o(i),e=lF(e)}return{hasBOM:a,text:e,options:zp(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function Qp(e,t){const r=await m0(t);return!r.hasPragma||r.hasPragma(e)}async function S0(e,t){let{hasBOM:r,text:n,options:i}=T0(e,await Ui(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Qp(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<n.length?s=await O2(n,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Qp(n,i)&&(n=i.printer.insertPragma(n)),s=await b0(n,i)),r&&(s.formatted=E0+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function N2(e,t,r){const{text:n,options:i}=T0(e,await Ui(t)),s=await Rs(n,i);return r&&(r.preprocessForPrint&&(s.ast=await D0(s.ast,i)),r.massage&&(s.ast=v2(s.ast,i))),s}async function B2(e,t){t=await Ui(t);const r=await wo(e,t);return wc(r,t)}async function k2(e,t){const r=EF(e),{formatted:n}=await S0(r,{...t,parser:"__js_expression"});return n}async function L2(e,t){t=await Ui(t);const{ast:r}=await Rs(e,t);return wo(r,t)}async function R2(e,t){return wc(e,await Ui(t))}var v0={};Mi(v0,{CATEGORY_CONFIG:()=>M2,CATEGORY_EDITOR:()=>j2,CATEGORY_FORMAT:()=>$2,CATEGORY_GLOBAL:()=>q2,CATEGORY_OTHER:()=>U2,CATEGORY_OUTPUT:()=>V2,CATEGORY_SPECIAL:()=>K2});var M2="Config",j2="Editor",$2="Format",U2="Other",V2="Output",q2="Global",K2="Special",A0={};Mi(A0,{languages:()=>h_,options:()=>p_,parsers:()=>d_,printers:()=>m_});var W2=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],Xt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},H2={singleQuote:Xt.singleQuote},G2=H2,Y2=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],X2={bracketSpacing:Xt.bracketSpacing},J2=X2,z2=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],Q2=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Zp="HTML",Z2={bracketSameLine:Xt.bracketSameLine,htmlWhitespaceSensitivity:{category:Zp,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Xt.singleAttributePerLine,vueIndentScriptAndStyle:{category:Zp,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},e_=Z2,t_=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],Hn="JavaScript",r_={arrowParens:{category:Hn,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Xt.bracketSameLine,bracketSpacing:Xt.bracketSpacing,jsxBracketSameLine:{category:Hn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Hn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:Hn,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Xt.singleQuote,jsxSingleQuote:{category:Hn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Hn,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Hn,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Xt.singleAttributePerLine},n_=r_,i_=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],s_=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],a_={proseWrap:Xt.proseWrap,singleQuote:Xt.singleQuote},o_=a_,u_=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"]}],l_={bracketSpacing:Xt.bracketSpacing,singleQuote:Xt.singleQuote,proseWrap:Xt.proseWrap},c_=l_;function f_(e){const t=Object.create(null),r=Object.create(null);for(const{importPlugin:n,parsers:i=[],printers:s=[]}of e){const a=async()=>{const o=await n();return Object.assign(t,o.parsers),Object.assign(r,o.printers),o};for(const o of i)t[o]=async()=>(await a()).parsers[o];for(const o of s)r[o]=async()=>(await a()).printers[o]}return{parsers:t,printers:r}}var p_={...G2,...J2,...e_,...n_,...o_,...c_},h_=[...W2,...Y2,...z2,...Q2,...t_,...i_,...s_,...u_],{parsers:d_,printers:m_}=f_([{importPlugin:()=>import("./deps/acorn-tklbyr11e.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./deps/angular-m17t0gdsi.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./deps/babel-48ei1aig4.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./deps/estree-4o5bj9gvd.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./deps/flow-xlruu7boa.js"),parsers:["flow"]},{importPlugin:()=>import("./deps/glimmer-kyfivr6g7.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./deps/graphql-xojtytb2p.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./deps/html-jal5w2b1p.js"),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>import("./deps/markdown-qhqqns7vp.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./deps/meriyah-sl495y757.js"),parsers:["meriyah"]},{importPlugin:()=>import("./deps/postcss-vq400h6ym.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./deps/typescript-jihynpl9y.js"),parsers:["typescript"]},{importPlugin:()=>import("./deps/yaml-auqgv4vnk.js"),parsers:["yaml"],printers:["yaml"]}]);function y_(){return[A0]}var D_=y_;function g_(e,t){return Wy(e,it.join(t,"noop.js"))}var E_=g_;async function b_(e,t){if(it.isAbsolute(e))return import(ni(e).href);try{return await import(ni(it.resolve(e)).href)}catch{return E_(e,t)}}async function T_(e,t){const r=await b_(e,t);return{name:e,...r.default??r}}var Ja=new Map;function S_(e){if(typeof e!="string")return e;const t=process.cwd(),r=JSON.stringify({name:e,cwd:t});return Ja.has(r)||Ja.set(r,T_(e,t)),Ja.get(r)}function v_(){Ja.clear()}function A_(e=[]){return Promise.all(e.map(t=>S_(t)))}var C_=A_;function P_(e,t){return t=new Set(t),Object.fromEntries(Object.entries(e).filter(([r])=>!t.has(r)))}var x_=P_,F_="3.3.3",C0={};Mi(C0,{addDanglingComment:()=>Jn,addLeadingComment:()=>Ci,addTrailingComment:()=>Pi,getAlignmentSize:()=>Ic,getIndentSize:()=>B_,getMaxContinuousCount:()=>R_,getNextNonSpaceNonCommentCharacter:()=>j_,getNextNonSpaceNonCommentCharacterIndex:()=>G_,getStringWidth:()=>_c,hasNewline:()=>Dn,hasNewlineInRange:()=>U_,hasSpaces:()=>q_,isNextLineEmpty:()=>z_,isNextLineEmptyAfterIndex:()=>jc,isPreviousLineEmpty:()=>X_,makeString:()=>W_,skip:()=>Ls,skipEverythingButNewLine:()=>s0,skipInlineComment:()=>Lc,skipNewline:()=>si,skipSpaces:()=>Sn,skipToLineEnd:()=>i0,skipTrailingComment:()=>Rc,skipWhitespace:()=>$F});function __(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Lc=__;function w_(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?s0(e,t):t}var Rc=w_;function I_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Sn(e,n),n=Lc(e,n),n=Rc(e,n),n=si(e,n);return n}var Mc=I_;function O_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=i0(e,n),n=Lc(e,n),n=Sn(e,n);return n=Rc(e,n),n=si(e,n),n!==!1&&Dn(e,n)}var jc=O_;function N_(e,t){const r=e.lastIndexOf(`
106
+ `);return r===-1?0:Ic(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var B_=N_;function k_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function L_(e,t){const r=e.match(new RegExp(`(${k_(t)})+`,"gu"));return r===null?0:r.reduce((n,i)=>Math.max(n,i.length/t.length),0)}var R_=L_;function M_(e,t){const r=Mc(e,t);return r===!1?"":e.charAt(r)}var j_=M_;function $_(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
107
+ `)return!0;return!1}var U_=$_;function V_(e,t,r={}){return Sn(e,r.backwards?t-1:t,r)!==t}var q_=V_;function K_(e,t,r){const n=t==='"'?"'":'"',s=ks(!1,e,/\\(.)|(["'])/gsu,(a,o,u)=>o===n?o:u===t?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+s+t}var W_=K_;function H_(e,t,r){return Mc(e,r(t))}function G_(e,t){return arguments.length===2||typeof t=="number"?Mc(e,t):H_(...arguments)}function Y_(e,t,r){return Bc(e,r(t))}function X_(e,t){return arguments.length===2||typeof t=="number"?Bc(e,t):Y_(...arguments)}function J_(e,t,r){return jc(e,r(t))}function z_(e,t){return arguments.length===2||typeof t=="number"?jc(e,t):J_(...arguments)}function dn(e,t=1){return async(...r)=>{const n=r[t]??{},{plugins:i=[]}=n;return r[t]={...n,plugins:(await Promise.all([D_(),C_(i)])).flat()},e(...r)}}var P0=dn(S0);async function x0(e,t){const{formatted:r}=await P0(e,{...t,cursorOffset:-1});return r}async function Q_(e,t){return await x0(e,t)===e}async function Z_(){$x(),v_()}var ew=dn(oF),tw=dn(kc,0),rw={errors:fy,optionCategories:v0,createIsIgnoredFunction:Yy,formatOptionsHiddenDefaults:kl,normalizeOptions:p0,getSupportInfoWithoutPlugins:kc,normalizeOptionSettings:f0,vnopts:{ChoiceSchema:cy,apiDescriptor:Qn},fastGlob:Pv.default,createTwoFilesPatch:Cv,utils:{isNonEmptyArray:a0,partition:dy,omit:x_},mockable:bc},nw={parse:dn(N2),formatAST:dn(B2),formatDoc:dn(k2),printToDoc:dn(L2),printDocToString:dn(R2),mockable:bc},iw=ry,Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});function sw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}class gn{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}}class yo{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}}function $t(e,t){const{line:r,column:n,index:i}=e;return new gn(r,n+t,i+t)}const eh="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var aw={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:eh},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:eh}};const th={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},za=e=>e.type==="UpdateExpression"?th.UpdateExpression[`${e.prefix}`]:th[e.type];var ow={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
108
+ - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
109
+ - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${za(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${za(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${za(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},uw={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."};const lw=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var cw={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${za({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const fw=["message"];function rh(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function pw({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){const i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function s(a,o){const u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),rh(u,"clone",function(c={}){var f;const{line:p,column:h,index:d}=(f=c.loc)!=null?f:a;return s(new gn(p,h,d),Object.assign({},o,c.details))}),rh(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){const l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),u}}function Gr(e,t){if(Array.isArray(e))return n=>Gr(n,e[0]);const r={};for(const n of Object.keys(e)){const i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=sw(s,fw),u=typeof a=="string"?()=>a:a;r[n]=pw(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}const ee=Object.assign({},Gr(aw),Gr(ow),Gr(uw),Gr`pipelineOperator`(cw)),{defineProperty:hw}=Object,nh=(e,t)=>{e&&hw(e,t,{enumerable:!1,value:e[t]})};function Xi(e){return nh(e.loc.start,"index"),nh(e.loc.end,"index"),e}var dw=e=>class extends e{parse(){const r=Xi(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(Xi)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n)}catch{}const s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}const i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){const i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){const n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;const i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,a){super.parseBlockBody(r,n,i,s,a);const o=r.directives.map(u=>this.directiveToStmt(u));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,n,i,s,a,o){this.parseMethod(n,i,s,a,o,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n)}parsePrivateName(){const r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){const n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){const i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,i,s,a,o,u=!1){let l=this.startNode();return l.kind=r.kind,l=super.parseMethod(l,n,i,s,a,o,u),l.type="FunctionExpression",delete l.kind,r.value=l,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){const n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){const n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,a){const o=super.parseObjectMethod(r,n,i,s,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,i,s){const a=super.parseObjectProperty(r,n,i,s);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){const{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(ee.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(ee.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i)}finishCallExpression(r,n){const i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,a;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(a=i.arguments[1])!=null?a:null}delete i.arguments,delete i.callee}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){const i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var a;const{declaration:o}=s;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,i)}break}return s}parseSubscript(r,n,i,s){const a=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),s.stop){const o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return Xi(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),Xi(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),Xi(r)}};class ps{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}}const lt={brace:new ps("{"),j_oTag:new ps("<tag"),j_cTag:new ps("</tag"),j_expr:new ps("<tag>...</tag>",!0)};lt.template=new ps("`",!0);const Ye=!0,be=!0,Ou=!0,Ji=!0,un=!0,mw=!0;class F0{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}}const $c=new Map;function Ze(e,t={}){t.keyword=e;const r=we(e,t);return $c.set(e,r),r}function kt(e,t){return we(e,{beforeExpr:Ye,binop:t})}let Ps=-1;const Vr=[],Uc=[],Vc=[],qc=[],Kc=[],Wc=[];function we(e,t={}){var r,n,i,s;return++Ps,Uc.push(e),Vc.push((r=t.binop)!=null?r:-1),qc.push((n=t.beforeExpr)!=null?n:!1),Kc.push((i=t.startsExpr)!=null?i:!1),Wc.push((s=t.prefix)!=null?s:!1),Vr.push(new F0(e,t)),Ps}function Ge(e,t={}){var r,n,i,s;return++Ps,$c.set(e,Ps),Uc.push(e),Vc.push((r=t.binop)!=null?r:-1),qc.push((n=t.beforeExpr)!=null?n:!1),Kc.push((i=t.startsExpr)!=null?i:!1),Wc.push((s=t.prefix)!=null?s:!1),Vr.push(new F0("name",t)),Ps}const yw={bracketL:we("[",{beforeExpr:Ye,startsExpr:be}),bracketHashL:we("#[",{beforeExpr:Ye,startsExpr:be}),bracketBarL:we("[|",{beforeExpr:Ye,startsExpr:be}),bracketR:we("]"),bracketBarR:we("|]"),braceL:we("{",{beforeExpr:Ye,startsExpr:be}),braceBarL:we("{|",{beforeExpr:Ye,startsExpr:be}),braceHashL:we("#{",{beforeExpr:Ye,startsExpr:be}),braceR:we("}"),braceBarR:we("|}"),parenL:we("(",{beforeExpr:Ye,startsExpr:be}),parenR:we(")"),comma:we(",",{beforeExpr:Ye}),semi:we(";",{beforeExpr:Ye}),colon:we(":",{beforeExpr:Ye}),doubleColon:we("::",{beforeExpr:Ye}),dot:we("."),question:we("?",{beforeExpr:Ye}),questionDot:we("?."),arrow:we("=>",{beforeExpr:Ye}),template:we("template"),ellipsis:we("...",{beforeExpr:Ye}),backQuote:we("`",{startsExpr:be}),dollarBraceL:we("${",{beforeExpr:Ye,startsExpr:be}),templateTail:we("...`",{startsExpr:be}),templateNonTail:we("...${",{beforeExpr:Ye,startsExpr:be}),at:we("@"),hash:we("#",{startsExpr:be}),interpreterDirective:we("#!..."),eq:we("=",{beforeExpr:Ye,isAssign:Ji}),assign:we("_=",{beforeExpr:Ye,isAssign:Ji}),slashAssign:we("_=",{beforeExpr:Ye,isAssign:Ji}),xorAssign:we("_=",{beforeExpr:Ye,isAssign:Ji}),moduloAssign:we("_=",{beforeExpr:Ye,isAssign:Ji}),incDec:we("++/--",{prefix:un,postfix:mw,startsExpr:be}),bang:we("!",{beforeExpr:Ye,prefix:un,startsExpr:be}),tilde:we("~",{beforeExpr:Ye,prefix:un,startsExpr:be}),doubleCaret:we("^^",{startsExpr:be}),doubleAt:we("@@",{startsExpr:be}),pipeline:kt("|>",0),nullishCoalescing:kt("??",1),logicalOR:kt("||",1),logicalAND:kt("&&",2),bitwiseOR:kt("|",3),bitwiseXOR:kt("^",4),bitwiseAND:kt("&",5),equality:kt("==/!=/===/!==",6),lt:kt("</>/<=/>=",7),gt:kt("</>/<=/>=",7),relational:kt("</>/<=/>=",7),bitShift:kt("<</>>/>>>",8),bitShiftL:kt("<</>>/>>>",8),bitShiftR:kt("<</>>/>>>",8),plusMin:we("+/-",{beforeExpr:Ye,binop:9,prefix:un,startsExpr:be}),modulo:we("%",{binop:10,startsExpr:be}),star:we("*",{binop:10}),slash:kt("/",10),exponent:we("**",{beforeExpr:Ye,binop:11,rightAssociative:!0}),_in:Ze("in",{beforeExpr:Ye,binop:7}),_instanceof:Ze("instanceof",{beforeExpr:Ye,binop:7}),_break:Ze("break"),_case:Ze("case",{beforeExpr:Ye}),_catch:Ze("catch"),_continue:Ze("continue"),_debugger:Ze("debugger"),_default:Ze("default",{beforeExpr:Ye}),_else:Ze("else",{beforeExpr:Ye}),_finally:Ze("finally"),_function:Ze("function",{startsExpr:be}),_if:Ze("if"),_return:Ze("return",{beforeExpr:Ye}),_switch:Ze("switch"),_throw:Ze("throw",{beforeExpr:Ye,prefix:un,startsExpr:be}),_try:Ze("try"),_var:Ze("var"),_const:Ze("const"),_with:Ze("with"),_new:Ze("new",{beforeExpr:Ye,startsExpr:be}),_this:Ze("this",{startsExpr:be}),_super:Ze("super",{startsExpr:be}),_class:Ze("class",{startsExpr:be}),_extends:Ze("extends",{beforeExpr:Ye}),_export:Ze("export"),_import:Ze("import",{startsExpr:be}),_null:Ze("null",{startsExpr:be}),_true:Ze("true",{startsExpr:be}),_false:Ze("false",{startsExpr:be}),_typeof:Ze("typeof",{beforeExpr:Ye,prefix:un,startsExpr:be}),_void:Ze("void",{beforeExpr:Ye,prefix:un,startsExpr:be}),_delete:Ze("delete",{beforeExpr:Ye,prefix:un,startsExpr:be}),_do:Ze("do",{isLoop:Ou,beforeExpr:Ye}),_for:Ze("for",{isLoop:Ou}),_while:Ze("while",{isLoop:Ou}),_as:Ge("as",{startsExpr:be}),_assert:Ge("assert",{startsExpr:be}),_async:Ge("async",{startsExpr:be}),_await:Ge("await",{startsExpr:be}),_defer:Ge("defer",{startsExpr:be}),_from:Ge("from",{startsExpr:be}),_get:Ge("get",{startsExpr:be}),_let:Ge("let",{startsExpr:be}),_meta:Ge("meta",{startsExpr:be}),_of:Ge("of",{startsExpr:be}),_sent:Ge("sent",{startsExpr:be}),_set:Ge("set",{startsExpr:be}),_source:Ge("source",{startsExpr:be}),_static:Ge("static",{startsExpr:be}),_using:Ge("using",{startsExpr:be}),_yield:Ge("yield",{startsExpr:be}),_asserts:Ge("asserts",{startsExpr:be}),_checks:Ge("checks",{startsExpr:be}),_exports:Ge("exports",{startsExpr:be}),_global:Ge("global",{startsExpr:be}),_implements:Ge("implements",{startsExpr:be}),_intrinsic:Ge("intrinsic",{startsExpr:be}),_infer:Ge("infer",{startsExpr:be}),_is:Ge("is",{startsExpr:be}),_mixins:Ge("mixins",{startsExpr:be}),_proto:Ge("proto",{startsExpr:be}),_require:Ge("require",{startsExpr:be}),_satisfies:Ge("satisfies",{startsExpr:be}),_keyof:Ge("keyof",{startsExpr:be}),_readonly:Ge("readonly",{startsExpr:be}),_unique:Ge("unique",{startsExpr:be}),_abstract:Ge("abstract",{startsExpr:be}),_declare:Ge("declare",{startsExpr:be}),_enum:Ge("enum",{startsExpr:be}),_module:Ge("module",{startsExpr:be}),_namespace:Ge("namespace",{startsExpr:be}),_interface:Ge("interface",{startsExpr:be}),_type:Ge("type",{startsExpr:be}),_opaque:Ge("opaque",{startsExpr:be}),name:we("name",{startsExpr:be}),string:we("string",{startsExpr:be}),num:we("num",{startsExpr:be}),bigint:we("bigint",{startsExpr:be}),decimal:we("decimal",{startsExpr:be}),regexp:we("regexp",{startsExpr:be}),privateName:we("#name",{startsExpr:be}),eof:we("eof"),jsxName:we("jsxName"),jsxText:we("jsxText",{beforeExpr:!0}),jsxTagStart:we("jsxTagStart",{startsExpr:!0}),jsxTagEnd:we("jsxTagEnd"),placeholder:we("%%",{startsExpr:!0})};function at(e){return e>=93&&e<=132}function Dw(e){return e<=92}function dr(e){return e>=58&&e<=132}function _0(e){return e>=58&&e<=136}function gw(e){return qc[e]}function Rl(e){return Kc[e]}function Ew(e){return e>=29&&e<=33}function ih(e){return e>=129&&e<=131}function bw(e){return e>=90&&e<=92}function Hc(e){return e>=58&&e<=92}function Tw(e){return e>=39&&e<=59}function Sw(e){return e===34}function vw(e){return Wc[e]}function Aw(e){return e>=121&&e<=123}function Cw(e){return e>=124&&e<=130}function En(e){return Uc[e]}function Qa(e){return Vc[e]}function Pw(e){return e===57}function Do(e){return e>=24&&e<=25}function $r(e){return Vr[e]}Vr[8].updateContext=e=>{e.pop()},Vr[5].updateContext=Vr[7].updateContext=Vr[23].updateContext=e=>{e.push(lt.brace)},Vr[22].updateContext=e=>{e[e.length-1]===lt.template?e.pop():e.push(lt.template)},Vr[142].updateContext=e=>{e.push(lt.j_expr,lt.j_oTag)};let Gc="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",w0="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const xw=new RegExp("["+Gc+"]"),Fw=new RegExp("["+Gc+w0+"]");Gc=w0=null;const I0=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],_w=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function Ml(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Wr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&xw.test(String.fromCharCode(e)):Ml(e,I0)}function _i(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Fw.test(String.fromCharCode(e)):Ml(e,I0)||Ml(e,_w)}const Yc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ww=new Set(Yc.keyword),Iw=new Set(Yc.strict),Ow=new Set(Yc.strictBind);function O0(e,t){return t&&e==="await"||e==="enum"}function N0(e,t){return O0(e,t)||Iw.has(e)}function B0(e){return Ow.has(e)}function k0(e,t){return N0(e,t)||B0(e)}function Nw(e){return ww.has(e)}function Bw(e,t,r){return e===64&&t===64&&Wr(r)}const kw=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Lw(e){return kw.has(e)}class Xc{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class Jc{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Xc(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(ee.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);const i=t.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){const{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}}class Rw extends Xc{constructor(...t){super(...t),this.declareFunctions=new Set}}class Mw extends Jc{createScope(t){return new Rw(t)}declareName(t,r,n){const i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){const i=t.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class jw{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{const[r,n]=t;if(!this.hasPlugin(r))return!1;const i=this.plugins.get(r);for(const s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}}function L0(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function $w(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Ns(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function zi(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?Ns(e,r.comments):L0(n,r.comments)}class Uw extends jw{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1;const s=r[i];s.start===t.end&&(s.leadingNode=t,i--);const{start:a}=t;for(;i>=0;i--){const o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else{u===a&&(o.trailingNode=t);break}}}finalizeComment(t){const{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&L0(t.leadingNode,r),t.trailingNode!==null&&$w(t.trailingNode,r);else{const{containingNode:n,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":zi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":zi(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":zi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":zi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":zi(n,n.specifiers,t);break;default:Ns(n,r)}else Ns(n,r)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:r}=this.state,{length:n}=r;if(n===0)return;const i=r[n-1];i.leadingNode===t&&(i.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){const{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null))}takeSurroundingComments(t,r,n){const{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){const o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u<r)break}}}const Vw=/\r\n|[\r\n\u2028\u2029]/,fa=new RegExp(Vw.source,"g");function wi(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function sh(e,t,r){for(let n=t;n<r;n++)if(wi(e.charCodeAt(n)))return!0;return!1}const Nu=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Bu=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function qw(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class zc{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[lt.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new gn(n,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new gn(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const t=new zc;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var Kw=function(t){return t>=48&&t<=57};const ah={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},pa={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function oh(e,t,r,n,i,s){const a=r,o=n,u=i;let l="",c=null,f=r;const{length:p}=t;for(;;){if(r>=p){s.unterminated(a,o,u),l+=t.slice(f,r);break}const h=t.charCodeAt(r);if(Ww(e,h,t,r)){l+=t.slice(f,r);break}if(h===92){l+=t.slice(f,r);const d=Hw(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,f=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?e==="template"?(l+=t.slice(f,r)+`
110
+ `,++r,h===13&&t.charCodeAt(r)===10&&++r,++i,f=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function Ww(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Hw(e,t,r,n,i,s){const a=!i;t++;const o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
111
+ `);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=jl(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=M0(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){const l=t-1;let f=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;const h=e.charCodeAt(t);if(f!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function jl(e,t,r,n,i,s,a,o){const u=t;let l;return{n:l,pos:t}=R0(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function R0(e,t,r,n,i,s,a,o,u,l){const c=t,f=i===16?ah.hex:ah.decBinOct,p=i===16?pa.hex:i===10?pa.dec:i===8?pa.oct:pa.bin;let h=!1,d=0;for(let m=0,D=s??1/0;m<D;++m){const g=e.charCodeAt(t);let y;if(g===95&&o!=="bail"){const b=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(b)||f.has(O)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(g>=97?y=g-97+10:g>=65?y=g-65+10:Kw(g)?y=g-48:y=1/0,y>=i){if(y<=9&&l)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,n,i))y=0;else if(a)y=0,h=!0;else break}++t,d=d*i+y}return t===c||s!=null&&t-c!==s||h?{n:null,pos:t}:{n:d,pos:t}}function M0(e,t,r,n,i,s){const a=e.charCodeAt(t);let o;if(a===123){if(++t,{code:o,pos:t}=jl(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=jl(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function Qi(e,t,r){return new gn(r,e-t,e)}const Gw=new Set([103,109,115,105,121,117,100,118]);class pn{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new yo(t.startLoc,t.endLoc)}}class Yw extends Uw{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,i,s,a)=>this.options.errorRecovery?(this.raise(ee.InvalidDigit,Qi(n,i,s),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(ee.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(ee.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(ee.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(ee.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,i,s)=>{this.recordStrictModeErrors(ee.StrictNumericEscape,Qi(n,i,s))},unterminated:(n,i,s)=>{throw this.raise(ee.UnterminatedString,Qi(n-1,i,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(ee.StrictNumericEscape),unterminated:(n,i,s)=>{throw this.raise(ee.UnterminatedTemplate,Qi(n,i,s))}}),this.state=new zc,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new pn(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Nu.lastIndex=t,Nu.test(this.input)?Nu.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Bu.lastIndex=t,Bu.test(this.input)?Bu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){const n=this.input.charCodeAt(t);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,n])=>this.raise(r,n)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());const n=this.state.pos,i=this.input.indexOf(t,n+2);if(i===-1)throw this.raise(ee.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,fa.lastIndex=n+2;fa.test(this.input)&&fa.lastIndex<=i;)++this.state.curLine,this.state.lineStart=fa.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(n+2,i),start:n,end:i+t.length,loc:new yo(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(t){const r=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!wi(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,s),start:r,end:s,loc:new yo(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){const t=this.state.pos,r=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}case 47:{const i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}default:break e}break;default:if(qw(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){const i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(t===0||this.state.lineStart>t)){const s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s))}else break e}else if(n===60&&!this.inModule&&this.options.annexB){const i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){const s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s))}else break e}else break e}}if(r.length>0){const n=this.state.pos,i={start:t,end:n,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(ee.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?ee.RecordExpressionHashIncorrectStartSyntaxType:ee.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Wr(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;const r=this.state.pos;for(this.state.pos+=1;!wi(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const n=this.input.slice(r+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let r=t===42?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);t===42&&i===42&&(n++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(n++,r=t===37?33:30),this.finishOp(r,n)}readToken_pipe_amp(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){const{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){const n=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){const r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(ee.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Wr(t)){this.readWord(t);return}}throw this.raise(ee.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){const n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n)}readRegexp(){const t=this.state.startLoc,r=this.state.start+1;let n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(ee.UnterminatedRegExp,$t(t,1));const l=this.input.charCodeAt(s);if(wi(l))throw this.raise(ee.UnterminatedRegExp,$t(t,1));if(n)n=!1;else{if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;n=l===92}}const a=this.input.slice(r,s);++s;let o="";const u=()=>$t(t,s+2-r);for(;s<this.length;){const l=this.codePointAtPos(s),c=String.fromCharCode(l);if(Gw.has(l))l===118?o.includes("u")&&this.raise(ee.IncompatibleRegExpUVFlags,u()):l===117&&o.includes("v")&&this.raise(ee.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(ee.DuplicateRegExpFlags,u());else if(_i(l)||l===92)this.raise(ee.MalformedRegExpFlags,u());else break;++s,o+=c}this.state.pos=s,this.finishToken(137,{pattern:a,flags:o})}readInt(t,r,n=!1,i=!0){const{n:s,pos:a}=R0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,n,i,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(t){const r=this.state.curPosition();let n=!1;this.state.pos+=2;const i=this.readInt(t);i==null&&this.raise(ee.InvalidDigit,$t(r,2),{radix:t});const s=this.input.charCodeAt(this.state.pos);if(s===110)++this.state.pos,n=!0;else if(s===109)throw this.raise(ee.InvalidDecimal,r);if(Wr(this.codePointAtPos(this.state.pos)))throw this.raise(ee.NumberIdentifier,this.state.curPosition());if(n){const a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a);return}this.finishToken(134,i)}readNumber(t){const r=this.state.pos,n=this.state.curPosition();let i=!1,s=!1,a=!1,o=!1,u=!1;!t&&this.readInt(10)===null&&this.raise(ee.InvalidNumber,this.state.curPosition());const l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){const h=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(ee.StrictOctalLiteral,n),!this.state.strict){const d=h.indexOf("_");d>0&&this.raise(ee.ZeroDigitNumericSeparator,$t(n,d))}u=l&&!/[89]/.test(h)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!u&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!u&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(ee.InvalidOrMissingExponent,n),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(ee.InvalidBigIntLiteral,n),++this.state.pos,s=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(ee.InvalidDecimal,n),++this.state.pos,a=!0),Wr(this.codePointAtPos(this.state.pos)))throw this.raise(ee.NumberIdentifier,this.state.curPosition());const f=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(135,f);return}if(a){this.finishToken(136,f);return}const p=u?parseInt(f,8):parseFloat(f);this.finishToken(134,p)}readCodePoint(t){const{code:r,pos:n}=M0(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){const{str:r,pos:n,curLine:i,lineStart:s}=oh(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,this.finishToken(133,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=oh("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new gn(n.curLine,n.pos-n.lineStart,n.pos)),this.input.codePointAt(i)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"))}recordStrictModeErrors(t,r){const n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,r):this.state.strictErrors.set(n,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="";const n=this.state.pos;let i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const s=this.codePointAtPos(this.state.pos);if(_i(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);const a=this.state.curPosition(),o=this.state.pos===n?Wr:_i;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(ee.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;const u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(ee.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),i=this.state.pos}else break}return r+this.input.slice(i,this.state.pos)}readWord(t){const r=this.readWord1(t),n=$c.get(r);n!==void 0?this.finishToken(n,En(n)):this.finishToken(132,r)}checkKeywordEscapes(){const{type:t}=this.state;Hc(t)&&this.state.containsEsc&&this.raise(ee.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:En(t)})}raise(t,r,n={}){const i=r instanceof gn?r:r.loc.start,s=t(i,n);if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,r,n={}){const i=r instanceof gn?r:r.loc.start,s=i.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){const u=a[o];if(u.loc.index===s)return a[o]=t(i,n);if(u.loc.index<s)break}return this.raise(t,r,n)}updateContext(t){}unexpected(t,r){throw this.raise(ee.UnexpectedToken,t??this.state.startLoc,{expected:r?En(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(ee.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(ee.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,n,i)=>{this.raise(t,Qi(r,n,i))}}}class Xw{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Jw{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Xw)}exit(){const t=this.stack.pop(),r=this.current();for(const[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(ee.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(t,r,n){const{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current();let o=i.has(t);if(r&3){const u=o&&s.get(t);if(u){const l=u&4,c=r&4,f=u&3,p=r&3;o=f===p||l!==c,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(ee.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(ee.InvalidPrivateFieldResolution,r,{identifierName:t})}}class Io{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class j0 extends Io{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){const n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class zw{constructor(t){this.parser=void 0,this.stack=[new Io],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){const n=r.loc.start,{stack:i}=this;let s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){const{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){const{stack:r}=this;let n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(ee.AwaitBindingIdentifier,t),i=r[--n]}validateAsPattern(){const{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s]})}}function Qw(){return new Io(3)}function Zw(){return new j0(1)}function eI(){return new j0(2)}function $0(){return new Io}class tI{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function Za(e,t){return(e?2:0)|(t?1:0)}class rI extends Yw{addExtra(t,r,n,i=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){const n=t+r.length;if(this.input.slice(t,n)===r){const i=this.input.charCodeAt(n);return!(_i(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){const r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return sh(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return sh(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(ee.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){const n={node:null};try{const i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){const s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){const s=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a}=t,o=!!n||!!i||!!a||!!s;if(!r)return o;n!=null&&this.raise(ee.InvalidCoverInitializedName,n),i!=null&&this.raise(ee.DuplicateProto,i),s!=null&&this.raise(ee.UnexpectedPrivateField,s),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return _0(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){const r=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const i=this.inModule;this.inModule=t;const s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);const o=this.prodParam;this.prodParam=new tI;const u=this.classScope;this.classScope=new Jw(this);const l=this.expressionScope;return this.expressionScope=new zw(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}}class eo{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class go{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new yo(n),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}}const Qc=go.prototype;Qc.__clone=function(){const e=new go(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const i=t[r];i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments"&&(e[i]=this[i])}return e};function nI(e){return Xr(e)}function Xr(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(Qc);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,t==="Placeholder"&&(u.expectedNode=e.expectedNode),u}function iI(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if(t==="Placeholder")return nI(e);const o=Object.create(Qc);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,e.raw!==void 0?o.raw=e.raw:o.extra=a,o.value=e.value,o}class sI extends rI{startNode(){const t=this.state.startLoc;return new go(this,t.index,t)}startNodeAt(t){return new go(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.options.ranges&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}}const aI=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ke=Gr`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function oI(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function uh(e){return e.importKind==="type"||e.importKind==="typeof"}const uI={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function lI(e,t){const r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}const cI=/\*?\s*@((?:no)?flow)\b/;var fI=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Mw}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,n){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){const n=cI.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){const n=this.state.inType;this.state.inType=!0,this.expect(r||14);const i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){const r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(ke.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();const n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);const a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(ke.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();const n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ke.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,ke.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o)}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{oI(o)?(s==="CommonJS"&&this.raise(ke.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ke.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(ke.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){const i=this.state.value;throw this.raise(ke.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:uI[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();const n=this.flowParseTypeAlias(r);return n.type="DeclareTypeAlias",n}flowParseDeclareOpaqueType(r){this.next();const n=this.flowParseOpaqueType(r,!0);return n.type="DeclareOpaqueType",n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){const r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ke.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){aI.has(r)&&this.raise(i?ke.AssignReservedType:ke.UnexpectedReservedType,n,{reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){const n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(ke.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){const r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{const s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const r=this.startNode(),n=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);const i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){const r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){const i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){const o=this.state.inType;this.state.inType=!0;const u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,f=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let h=!1,d=null,m=null;const D=this.startNode();if(s&&this.isContextual(118)){const y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),d=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){const y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),h=!0)}const g=this.flowParseVariance();if(this.eat(0))d!=null&&this.unexpected(d),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(D,h))):u.indexers.push(this.flowParseObjectTypeIndexer(D,h,g));else if(this.match(10)||this.match(47))d!=null&&this.unexpected(d),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(D,h));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){const O=this.lookahead();_0(O.type)&&(y=this.state.value,this.next())}const b=this.flowParseObjectTypeProperty(D,h,d,g,y,i,a??!c);b===null?(f=!0,m=this.state.lastTokStartLoc):u.properties.push(b)}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(ke.UnexpectedExplicitInexactInObject,m)}this.expect(l),i&&(u.inexact=f);const p=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,p}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(ke.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ke.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(ke.InexactVariance,s),null):(o||this.raise(ke.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(ke.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ke.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){const n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ke.GetterMayNotHaveThisParam:ke.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?ee.BadGetterArity:ee.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(ee.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){var i;(i=r)!=null||(r=this.state.startLoc);let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const a=this.startNodeAt(r);a.qualification=s,a.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(a,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,n){const i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){const r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let n=null,i=!1,s=null;const a=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!r&&this.raise(ke.ThisParamMustBeFirst,a),n=this.parseIdentifier(u),this.eat(17)&&(i=!0,u&&this.raise(ke.ThisParamMayNotBeOptional,a)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=n,a.optional=i,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){const n=this.startNodeAt(r.loc.start);return n.name=null,n.optional=!1,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let n=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n=this.flowParseFunctionTypeParam(!1)),{params:r,rest:n,_this:i}}flowIdentToTypeAnnotation(r,n,i){switch(i.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){const r=this.state.startLoc,n=this.startNode();let i,s,a=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{const u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{const u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(at(this.state.type)||this.match(78)){const l=this.lookahead().type;a=l!==17&&l!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12)}return s?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(ke.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Hc(this.state.type)){const u=En(this.state.type);return this.next(),super.createIdentifier(n,u)}else if(at(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const r=this.state.startLoc;let n=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(r),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(s.elementType=n,this.next(),n=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=n,s.indexType=this.flowParseType(),this.expect(3),i?(s.optional=a,n=this.finishNode(s,"OptionalIndexedAccessType")):n=this.finishNode(s,"IndexedAccessType"))}return n}flowParsePrefixType(){const r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const n=this.startNodeAt(r.loc.start);return n.params=[this.reinterpretTypeAsFunctionTypeParam(r)],n.rest=null,n.this=null,n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){const r=this.startNode();this.eat(45);const n=this.flowParseAnonFunctionWithoutParens();for(r.types=[n];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?n:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){const r=this.startNode();this.eat(43);const n=this.flowParseIntersectionType();for(r.types=[n];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?n:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){const r=this.state.inType;this.state.inType=!0;const n=this.flowParseUnionType();return this.state.inType=r,n}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const r=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(r,n)}else return this.flowParseType()}flowParseTypeAnnotation(){const r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){const n=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n)),n}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,n,i=!1){if(n){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){const s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){const i=this.lookahead();if(dr(i.type)){const s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}const n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||at(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(at(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){const{type:r}=this.state;return ih(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:r}=this.state;return ih(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){const p=this.lookaheadCharCode();if(p===44||p===61||p===58||p===41)return this.setOptionalParametersError(i),r}this.expect(17);const s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n);let{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,f]=this.getArrowLikeExpressions(u);if(l||f.length>0){const p=[...a];if(f.length>0){this.state=s,this.state.noArrowAt=p;for(let h=0;h<f.length;h++)p.push(f[h].start);({consequent:u,failed:l}=this.tryParseConditionalConsequent()),[c,f]=this.getArrowLikeExpressions(u)}l&&c.length>1&&this.raise(ke.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,p.push(c[0].start),this.state.noArrowAt=p,{consequent:u,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){const i=[r],s=[];for(;i.length!==0;){const a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):lI(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.includes(r.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){const i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){const s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";const n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";const n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";const n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";const n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){const{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,i){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(ke.DeclareClassElement,s):n.value&&this.raise(ke.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){const r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(ee.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){const n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):Bw(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){const a=r[s];(a==null?void 0:a.type)==="TypeCastExpression"&&(r[s]=this.typeCastToParameter(a))}super.toAssignableList(r,n,i)}toReferencedList(r,n){for(let s=0;s<r.length;s++){var i;const a=r[s];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!n)&&this.raise(ke.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,n,i,s){const a=super.parseArrayLike(r,n,i,s);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,n,i){return r==="TypeCastExpression"||super.isValidLVal(r,n,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){const u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(ke.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&a&&n.value.params){const u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(ke.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const n=r.implements=[];do{const i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);const n=this.getObjectOrClassMethodParams(r);if(n.length>0){const i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(ke.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(ke.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ke.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ke.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ke.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ke.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){const i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(ke.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ke.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,n,i){n.local=uh(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(n,i))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;const n=this.lookaheadCharCode();return n===123||n===42}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){if(super.applyImportPhase(r,n,i,s),n){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value"}else i==="type"&&this.match(55)&&this.unexpected(),r.importKind=i==="type"||i==="typeof"?i:"value"}parseImportSpecifier(r,n,i,s,a){const o=r.imported;let u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let l=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const f=this.parseIdentifier(!0);u!==null&&!dr(this.state.type)?(r.imported=f,r.importKind=u,r.local=Xr(f)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(u!==null&&dr(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=u;else{if(n)throw this.raise(ee.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(l=!0,r.local=Xr(r.imported))}const c=uh(r);return i&&c&&this.raise(ke.ImportTypeShorthandOnlyInPureImport,r),(i||c)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),l&&!i&&!c&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,n){const i=r.kind;i!=="get"&&i!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){if(this.match(14)){const i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(r,n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,n){var i;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,n),s),!a.error)return a.node;const{context:l}=this.state,c=l[l.length-1];(c===lt.j_oTag||c===lt.j_expr)&&l.pop()}if((i=a)!=null&&i.error||this.match(47)){var o,u;s=s||this.state.clone();let l;const c=this.tryParse(p=>{var h;l=this.flowParseTypeParameterDeclaration();const d=this.forwardNoArrowParamsConversionAt(l,()=>{const D=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(D,l),D});(h=d.extra)!=null&&h.parenthesized&&p();const m=this.maybeUnwrapTypeCastExpression(d);return m.type!=="ArrowFunctionExpression"&&p(),m.typeParameters=l,this.resetStartLocationFromNode(m,l),d},s);let f=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(ke.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;f=c.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(f)return this.state=c.failState,f;throw(u=a)!=null&&u.thrown?a.error:c.thrown?c.error:this.raise(ke.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){const n=this.tryParse(()=>{const i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(r.start)?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(r.start))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ke.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();const s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){const s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;const o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();const a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){const a=this.startNodeAt(n);a.callee=r;const o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){const n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){const n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){const n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){const i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(ke.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ke.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:r}=this.state;let n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;const i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(ee.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(ke.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?ke.EnumInvalidMemberInitializerSymbolType:ke.EnumInvalidMemberInitializerPrimaryType:ke.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(ke.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(ke.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){const r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 133:{const i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{const i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){const r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){const{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){const i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}const o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(ke.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(ke.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);const f={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,f,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,f);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,f);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(const s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else{for(const s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!at(this.state.type))throw this.raise(ke.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});const{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(ke.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){const i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);const{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{const l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;const c=o.booleanMembers.length,f=o.numberMembers.length,p=o.stringMembers.length,h=o.defaultedMembers.length;if(!c&&!f&&!p&&!h)return l();if(!c&&!f)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!f&&!p&&c>=h){for(const d of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!p&&f>=h){for(const d of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ke.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){const n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){const r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){const n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}};const pI={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Gn=Gr`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ln(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function xi(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return xi(e.object)+"."+xi(e.property);throw new Error("Node had unexpected type: "+e.type)}var hI=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Gn.UnterminatedJsxContent,this.state.startLoc);const i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}r+=this.input.slice(n,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:wi(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){const n=this.input.charCodeAt(this.state.pos);let i;return++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=r?`
112
+ `:`\r
113
+ `):i=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let n="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ee.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadEntity(),i=this.state.pos):wi(s)?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}n+=this.input.slice(i,this.state.pos++),this.finishToken(133,n)}jsxReadEntity(){const r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);const i=this.readInt(n,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let n=0,i=!1;for(;n++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){const s=this.input.slice(r,this.state.pos),a=pI[s];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r;const n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(_i(r)||r===45);this.finishToken(140,this.input.slice(n,this.state.pos))}jsxParseIdentifier(){const r=this.startNode();return this.match(140)?r.name=this.state.value:Hc(this.state.type)?r.name=En(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){const r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;const i=this.startNodeAt(r);return i.namespace=n,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const r=this.state.startLoc;let n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){const i=this.startNodeAt(r);i.object=n,i.property=this.jsxParseIdentifier(),n=this.finishNode(i,"JSXMemberExpression")}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(lt.brace),this.next(),r=this.jsxParseExpressionContainer(r,lt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Gn.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(Gn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(lt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{const i=this.parseExpression();r.expression=i}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){const r=this.startNode();return this.match(5)?(this.setContext(lt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(lt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){const n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){const n=[];for(;!this.match(56)&&!this.match(143);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){const n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(143),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){const n=this.startNodeAt(r),i=[],s=this.jsxParseOpeningElementAt(r);let a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 141:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const o=this.startNode();this.setContext(lt.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,lt.j_expr));break}default:this.unexpected()}ln(s)&&!ln(a)&&a!==null?this.raise(Gn.MissingClosingTagFragment,a):!ln(s)&&ln(a)?this.raise(Gn.MissingClosingTagElement,a,{openingTagName:xi(s.name)}):!ln(s)&&!ln(a)&&xi(a.name)!==xi(s.name)&&this.raise(Gn.MissingClosingTagElement,a,{openingTagName:xi(s.name)})}if(ln(s)?(n.openingFragment=s,n.closingFragment=a):(n.openingElement=s,n.closingElement=a),n.children=i,this.match(47))throw this.raise(Gn.UnwrappedAdjacentJSXElements,this.state.startLoc);return ln(s)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){const r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){const{context:n}=this.state;n[n.length-1]=r}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){const n=this.curContext();if(n===lt.j_expr){this.jsxReadToken();return}if(n===lt.j_oTag||n===lt.j_cTag){if(Wr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&n===lt.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r)}updateContext(r){const{context:n,type:i}=this.state;if(i===56&&r===142)n.splice(-2,2,lt.j_cTag),this.state.canStartJSXElement=!1;else if(i===142)n.push(lt.j_oTag);else if(i===143){const s=n[n.length-1];s===lt.j_oTag&&r===56||s===lt.j_cTag?(n.pop(),this.state.canStartJSXElement=n[n.length-1]===lt.j_expr):(this.setContext(lt.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=gw(i)}};class dI extends Xc{constructor(...t){super(...t),this.tsNames=new Map}}class mI extends Jc{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new dI(t)}enter(t){t===256&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return t===256&&this.importsStack.pop(),t}hasImport(t,r){const n=this.importsStack.length;if(this.importsStack[n-1].has(t))return!0;if(!r&&n>1){for(let i=0;i<n-1;i++)if(this.importsStack[i].has(t))return!0}return!1}declareName(t,r,n){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(ee.VarRedeclaration,n,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}const i=this.currentScope();let s=i.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(i,t),i.tsNames.set(t,s|16);return}super.declareName(t,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&i.tsNames.set(t,s)}isRedeclaredInScope(t,r,n){const i=t.tsNames.get(r);if((i&2)>0){if(n&256){const s=!!(n&512),a=(i&4)>0;return s!==a}return!0}return n&128&&(i&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){const{name:r}=t;if(this.hasImport(r))return;const n=this.scopeStack.length;for(let i=n-1;i>=0;i--){const a=this.scopeStack[i].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}}const U0=e=>e.type==="ParenthesizedExpression"?U0(e.expression):e;class yI extends sI{toAssignable(t,r=!1){var n,i;let s;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(s=U0(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(ee.InvalidParenthesizedAssignment,t):s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(ee.InvalidParenthesizedAssignment,t):this.raise(ee.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,u=t.properties.length,l=u-1;o<u;o++){var a;const c=t.properties[o],f=o===l;this.toAssignableObjectExpressionProp(c,f,r),f&&c.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(ee.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:o,value:u}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,(i=t.extra)==null?void 0:i.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(ee.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(t,r,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?ee.PatternHasAccessor:ee.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){t.type="RestElement";const i=t.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),r||this.raise(ee.RestTrailingComma,t)}else this.toAssignable(t,n)}toAssignableList(t,r,n){const i=t.length-1;for(let s=0;s<=i;s++){const a=t[s];if(a){if(a.type==="SpreadElement"){a.type="RestElement";const o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,n)}else this.toAssignable(a,n);a.type==="RestElement"&&(s<i?this.raise(ee.RestTrailingComma,a):r&&this.raise(ee.RestTrailingComma,r))}}}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const n=t.properties.length-1;return t.properties.every((i,s)=>i.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(const n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,n){const i=n&1,s=[];let a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){if(s.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{const o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(ee.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,o))}}return s}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseAssignableListItem(t,r){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,t);const i=this.parseMaybeDefault(n.loc.start,n);return r.length&&(n.decorators=r),i}parseAssignableListItemTypes(t,r){return t}parseMaybeDefault(t,r){var n,i;if((n=t)!=null||(t=this.state.startLoc),r=(i=r)!=null?i:this.parseBindingAtom(),!this.eat(29))return r;const s=this.startNodeAt(t);return s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(t,r,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,i=!1,s=!1,a=!1){var o;const u=t.type;if(this.isObjectMethod(t))return;const l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(ee.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(ee.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);const{name:m}=t;i&&(i.has(m)?this.raise(ee.ParamDupe,t):i.add(m));return}const c=this.isValidLVal(u,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){const m=n===64?ee.InvalidLhs:ee.InvalidLhsBinding;this.raise(m,t,{ancestor:r});return}let f,p;typeof c=="string"?(f=c,p=u==="ParenthesizedExpression"):[f,p]=c;const h=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,d=t[f];if(Array.isArray(d))for(const m of d)m&&this.checkLVal(m,h,n,i,s,p);else d&&this.checkLVal(d,h,n,i,s,p)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?k0(t.name,this.inModule):B0(t.name))&&(r===64?this.raise(ee.StrictEvalArguments,t,{referenceName:t.name}):this.raise(ee.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(ee.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(ee.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?ee.RestTrailingComma:ee.ElementAfterRest,this.state.startLoc),!0):!1}}function DI(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function lh(e){if(!e)throw new Error("Assert fail")}const xe=Gr`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function gI(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function ch(e){return e==="private"||e==="public"||e==="protected"}function EI(e){return e==="in"||e==="out"}var bI=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter})}getScopeHandler(){return mI}tsIsIdentifier(){return at(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,n){if(!at(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const i=this.state.value;if(r.includes(i)){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=xe.InvalidModifierOnTypeMember},a){const o=(l,c,f,p)=>{c===f&&a[p]&&this.raise(xe.InvalidModifiersOrder,l,{orderedModifiers:[f,p]})},u=(l,c,f,p)=>{(a[f]&&c===p||a[p]&&c===f)&&this.raise(xe.IncompatibleModifiers,l,{modifiers:[f,p]})};for(;;){const{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i);if(!c)break;ch(c)?a.accessibility?this.raise(xe.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):EI(c)?(a[c]&&this.raise(xe.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(xe.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){const i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return DI(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){const a=[];let o=-1;for(;!this.tsIsListTerminator(r);){o=-1;const u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){const r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(xe.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let n=this.parseIdentifier(r);for(;this.eat(16);){const i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(r),n=this.finishNode(i,"TSQualifiedName")}return n}tsParseTypeReference(){const r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();const n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){const r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){const r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){const n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){const n=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(xe.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){const i=r===19,s="parameters",a="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){const r=super.parseBindingList(11,41,2);for(const n of r){const{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(xe.UnsupportedSignatureParameterKind,n,{type:i})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),at(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];const i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){this.eat(17)&&(r.optional=!0);const i=r;if(this.match(10)||this.match(47)){n&&this.raise(xe.ReadonlyForMethodSignature,r);const s=i;s.kind&&this.match(47)&&this.raise(xe.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();const a="parameters",o="typeAnnotation";if(s.kind==="get")s[a].length>0&&(this.raise(ee.BadGetterArity,this.state.curPosition()),this.isThisParam(s[a][0])&&this.raise(xe.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[a].length!==1)this.raise(ee.BadSetterArity,this.state.curPosition());else{const u=s[a][0];this.isThisParam(u)&&this.raise(xe.AccesorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(xe.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(xe.SetAccesorCannotHaveRestParameter,this.state.curPosition())}s[o]&&this.raise(xe.SetAccesorCannotHaveReturnType,s[o])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{const s=i;n&&(s.readonly=!0);const a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){const r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){const i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);const n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){const r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){const r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){const r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){const r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{const{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(xe.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){const{startLoc:r}=this.state,n=this.eat(21);let i,s,a,o;const l=dr(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,a=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){a=!0;const c=this.state.startLoc,f=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(c),f),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=p,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),i=this.eat(14);if(i){let c;s?(c=this.startNodeAtNode(s),c.optional=a,c.label=s,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(xe.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(a){const c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(n){const c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){const r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){const i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){const r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){const r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const r=this.startNode(),n=this.lookahead();return n.type!==134&&n.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:r}=this.state;if(at(r)||r===88||r===84){const n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":gI(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){const i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAtNode(r);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAtNode(r);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){const r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(xe.UnexpectedReadonly,r)}}tsParseInferType(){const r=this.startNode();this.expectContextual(115);const n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return Aw(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){const s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(at(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();const{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{const n=this.startNode();this.expect(r);const i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}const a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);const o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const r=this.state.containsEsc;return this.next(),!at(this.state.type)&&!this.match(78)?!1:(r&&this.raise(ee.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){lh(this.state.inType);const r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;const n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedTypeAssertion,this.state.startLoc);const r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){const n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{const s=this.startNode();return s.expression=this.tsParseEntityName(),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")});return i.length||this.raise(xe.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),at(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(xe.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));const i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){const n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){const n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}tsInType(r){const n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){const n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){const n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){const r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){const i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.isExport=i||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);const s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(xe.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){const n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){const n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){const n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type,i;return this.isContextual(100)&&(n=74,i="let"),this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{const s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(at(n))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,n,i){switch(n.name){case"declare":{const s=this.tsTryParseDeclare(r);return s&&(s.declare=!0),s}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const s=r;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,n.name,!1,i)}}tsParseDeclaration(r,n,i,s){switch(n){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||at(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(at(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&at(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(i)&&at(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;const n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch(()=>{const s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){const r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(xe.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===lt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Cw(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,n){const i=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(xe.UnexpectedParameterModifier,i);const l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,r);const c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){const f=this.startNodeAt(i);return n.length&&(f.decorators=n),a&&(f.accessibility=a),u&&(f.readonly=u),o&&(f.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(xe.UnsupportedParameterPropertyKind,f),f.parameter=c,this.finishNode(f,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(const n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(xe.PatternIsOptional,n)}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(xe.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(xe.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i,s){const a=super.parseArrayLike(r,n,i,s);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o;const u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){const p=this.tsTryParseGenericAsyncArrowFunction(n);if(p)return p}const l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Do(this.state.type)){const p=super.parseTaggedTemplateExpression(r,n,s);return p.typeParameters=l,p}if(!i&&this.eat(10)){const p=this.startNodeAt(n);return p.callee=r,p.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(p.arguments),p.typeParameters=l,s.optionalChainMember&&(p.optional=a),this.finishCallExpression(p,s.optionalChainMember)}const c=this.state.type;if(c===48||c===52||c!==10&&Rl(c)&&!this.hasPrecedingLineBreak())return;const f=this.startNodeAt(n);return f.expression=r,f.typeParameters=l,this.finishNode(f,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var n;super.parseNewCallee(r);const{callee:i}=r;i.type==="TSInstantiationExpression"&&!((n=i.extra)!=null&&n.parenthesized)&&(r.typeParameters=i.typeParameters,r.callee=i.expression)}parseExprOp(r,n,i){let s;if(Qa(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(ee.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(xe.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){const n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let n;if(at(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){const i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(xe.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){this.next();const i=r;let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,s,!0)}else if(this.eat(29)){const i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){const i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){const r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){const{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;for(const{id:o,init:u}of a.declarations)u&&(n!=="const"||o.typeAnnotation?this.raise(xe.InitializerNotAllowedInAmbientContext,u):SI(u,this.hasPlugin("estree"))||this.raise(xe.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(this.match(75)&&this.isLookaheadContextual("enum")){const i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>ch(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xe.InvalidModifierOnTypeParameterPositions},n);const a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(xe.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static)};n.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,n,i,s){const a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(xe.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(xe.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(xe.IndexSignatureHasDeclare,n),n.override&&this.raise(xe.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(xe.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(xe.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(xe.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(xe.ClassMethodHasDeclare,r)}parseExpressionStatement(r,n,i){return(n.type==="Identifier"?this.tsParseExpressionStatement(r,n,i):void 0)||super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,n,i);const s=this.tryParse(()=>super.parseConditional(r,n));return s.node?(s.error&&(this.state=s.failState),s.node):(s.error&&super.setOptionalParametersError(i,s.error),r)}parseParenItem(r,n){const i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){const s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));const n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const a=at(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&(this.resetStartLocation(a,n),a.declare=!0),a):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);const a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));const n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(xe.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){const{key:n}=r;this.raise(xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(n.start,n.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(xe.PrivateElementHasAbstract,r),r.accessibility&&this.raise(xe.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(xe.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){const u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(xe.ConstructorHasTypeParameters,u);const{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(xe.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o)}pushClassPrivateMethod(r,n,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,i,s,a,o,u){const l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);const i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var i,s,a,o,u;let l,c,f;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!c.error)return c.node;const{context:d}=this.state,m=d[d.length-1];(m===lt.j_oTag||m===lt.j_expr)&&d.pop()}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!l||l===this.state)&&(l=this.state.clone());let p;const h=this.tryParse(d=>{var m,D;p=this.tsParseTypeParameters(this.tsParseConstModifier);const g=super.parseMaybeAssign(r,n);return(g.type!=="ArrowFunctionExpression"||(m=g.extra)!=null&&m.parenthesized)&&d(),((D=p)==null?void 0:D.params.length)!==0&&this.resetStartLocationFromNode(g,p),g.typeParameters=p,g},l);if(!h.error&&!h.aborted)return p&&this.reportReservedArrowTypeParam(p),h.node;if(!c&&(lh(!this.hasPlugin("jsx")),f=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!f.error))return f.node;if((s=c)!=null&&s.node)return this.state=c.failState,c.node;if(h.node)return this.state=h.failState,p&&this.reportReservedArrowTypeParam(p),h.node;if((a=f)!=null&&a.node)return this.state=f.failState,f.node;throw((o=c)==null?void 0:o.error)||h.error||((u=f)==null?void 0:u.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(xe.ReservedArrowTypeParam,r)}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){const n=this.tryParse(i=>{const s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,n){if(!(n&2))return r;this.eat(17)&&(r.optional=!0);const i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(xe.UnexpectedTypeCastInParameter,r):this.raise(xe.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,i){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(i!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,n,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const i=super.parseMaybeDecoratorArguments(r);return i.typeParameters=n,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){const i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(xe.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){const{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){const a=r[s];(a==null?void 0:a.type)==="TSTypeCastExpression"&&(r[s]=this.typeCastToParameter(a))}super.toAssignableList(r,n,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(n=>this.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){const n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){const n=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?n+1:n}parseCatchClauseParam(){const r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){const{isAmbientContext:n,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=i}}parseClass(r,n,i){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(xe.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,n,i,s,a,o,u){const l=super.parseMethod(r,n,i,s,a,o,u);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){const{key:f}=l;this.raise(xe.AbstractMethodHasImplementation,l,{methodName:f.type==="Identifier"&&!l.computed?f.name:`[${this.input.slice(f.start,f.end)}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){const s=n?"imported":"local",a=n?"local":"exported";let o=r[s],u,l=!1,c=!0;const f=o.loc.start;if(this.isContextual(93)){const h=this.parseIdentifier();if(this.isContextual(93)){const d=this.parseIdentifier();dr(this.state.type)?(l=!0,o=h,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=d,c=!1)}else dr(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=h)}else dr(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?xe.TypeModifierIsUsedInTypeImports:xe.TypeModifierIsUsedInTypeExports,f),r[s]=o,r[a]=u;const p=n?"importKind":"exportKind";r[p]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=Xr(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096)}};function TI(e){if(e.type!=="MemberExpression")return!1;const{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:q0(e.object)}function SI(e,t){var r;const{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(n==="Literal"){const{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return!0;return!!(V0(e,t)||vI(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||TI(e))}function V0(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function vI(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:n}=e;if(r==="-"&&V0(n,t))return!0}return!1}function q0(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:q0(e.object)}const fh=Gr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var AI=e=>class extends e{parsePlaceholder(r){if(this.match(144)){const n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let i=r;return(!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=n,i}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,i,s){r!==void 0&&super.checkReservedWord(r,n,i,s)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,i){return r==="Placeholder"||super.isValidLVal(r,n,i)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n)}chStartsBindingIdentifier(r,n){return!!(super.chStartsBindingIdentifier(r,n)||this.lookahead().type===144)}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n)}parseExpressionStatement(r,n){var i;if(n.type!=="Placeholder"||(i=n.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){const a=r;return a.label=this.finishPlaceholder(n,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();const s=r;return s.name=n.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,n,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,i){const s=n?"ClassDeclaration":"ClassExpression";this.next();const a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else{if(i||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(fh.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,n,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,s)}parseExport(r,n){const i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,n);const s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const a=this.startNode();return a.exported=i,s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(s,n)}isExportDefaultSpecifier(){if(this.match(65)){const r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(En(144),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var i;return(i=r.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){const{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(i=>i.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n}parseImport(r){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");const i=this.startNodeAtNode(n);return i.local=n,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(fh.UnexpectedSpace,this.state.lastTokEndLoc)}},CI=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const r=this.state.startLoc,n=this.startNode();if(this.next(),at(this.state.type)){const i=this.parseIdentifierName(),s=this.createIdentifier(n,i);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};const ph=["minimal","fsharp","hack","smart"],hh=["^^","@@","^","%","#"];function PI(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=e.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!ph.includes(r)){const i=ph.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}const n=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const i=e.get("pipelineOperator").topicToken;if(!hh.includes(i)){const s=hh.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(i==="#"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(r==="smart"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAttributes")&&e.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){const r=e.get("recordAndTuple").syntaxType;if(r!=null){const n=["hash","bar"];if(!n.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(i=>`'${i}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}const K0={estree:dw,jsx:hI,flow:fI,typescript:bI,v8intrinsic:CI,placeholders:AI},xI=Object.keys(K0),ku={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function FI(e){if(e==null)return Object.assign({},ku);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const n of Object.keys(ku)){var r;t[n]=(r=e[n])!=null?r:ku[n]}return t}class _I extends yI{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;const s=t.key;if((s.type==="Identifier"?s.name:s.value)==="__proto__"){if(r){this.raise(ee.RecordNoProto,s);return}n.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(ee.DuplicateProto,s)),n.used=!0}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){const r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){const i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var n;t.optionalParametersLoc=(n=r==null?void 0:r.loc)!=null?n:this.state.startLoc}parseMaybeAssign(t,r){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,n)),o}let i;t?i=!1:(t=new eo,i=!0);const{type:s}=this.state;(s===10||at(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,n)),Ew(this.state.type)){const o=this.startNodeAt(n),u=this.state.value;if(o.operator=u,this.match(29)){this.toAssignable(a,!0),o.left=a;const l=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression")),o}else i&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){const i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){const s=this.getPrivateNameSV(t);(n>=Qa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(ee.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}const i=this.state.type;if(Tw(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Qa(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}const a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;const o=i===41||i===42,u=i===40;if(u&&(s=Qa(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(ee.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(i,s);const l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(ee.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){const n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(ee.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,Pw(t)?r-1:r)}parseHackPipeBody(){var t;const{startLoc:r}=this.state,n=this.parseMaybeAssign();return lw.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(ee.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(ee.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(ee.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){const n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();const u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}const s=this.match(34),a=this.startNode();if(vw(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){const l=a.argument;l.type==="Identifier"?this.raise(ee.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(ee.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}const o=this.parseUpdate(a,s,t);if(i){const{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Rl(u):Rl(u)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(ee.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){const a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}const i=this.state.startLoc;let s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;Sw(this.state.type)&&!this.canInsertSemicolon();){const a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(t){const r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){const{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(Do(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(ee.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{const o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):(i.stop=!0,t)}}parseMember(t,r,n,i,s){const a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(ee.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){const s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){const s=this.state.maybeInArrowParameters;let a=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(r);o.callee=t;const{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(eI()),a=new eo),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){const i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(ee.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(ee.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const n of t.arguments)n.type==="SpreadElement"&&this.raise(ee.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n,i,s){const a=[];let o=!0;const u=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(ee.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(!1,s,n))}return this.state.inFSharpPipelineDirectBody=u,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&Ns(t,r.innerComments),r.callee.trailingComments&&Ns(t,r.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null;const{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(ee.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;const s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(ee.UnsupportedBind,s)}case 138:return this.raise(ee.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break}case 47:{const s=this.input.codePointAt(this.nextTokenStart());Wr(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(at(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){const{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(at(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=$t(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(t){const r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i)){const s=n==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n==="smart"?ee.PrimaryTopicNotAllowed:ee.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,s)}else throw this.raise(ee.PipeTopicUnconfiguredToken,r,{token:En(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:En(n)}]);case"smart":return n===27;default:throw this.raise(ee.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Za(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(ee.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();const n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(ee.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(ee.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(ee.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),r=this.startNodeAt($t(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;const i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(ee.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(ee.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(ee.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=n?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){const n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const r=this.startNode();return this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){const r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const r=this.state.startLoc;let n;this.next(),this.expressionScope.enter(Zw());const i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.startLoc,o=[],u=new eo;let l=!0,c,f;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){f=this.state.startLoc;break}if(this.match(21)){const d=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),d)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let h=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,o,!1),h):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),f&&this.unexpected(f),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;const n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const n=this.parseMetaProperty(t,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(ee.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(ee.ImportCallNotNewExpression,n)}parseTemplateElement(t){const{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt($t(n,1));s===null&&(t||this.raise(ee.InvalidEscapeSequenceTemplate,$t(this.state.firstInvalidTemplateEscapePos,1)));const u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
114
+ `),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();const f=this.finishNode(o,"TemplateElement");return this.resetEndLocation(f,$t(this.state.lastTokEndLoc,l)),f}parseTemplate(t){const r=this.startNode();let n=this.parseTemplateElement(t);const i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const a=Object.create(null);let o=!0;const u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(ee.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),u.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(ee.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());const n=this.startNode();let i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);const u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){const{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(ee.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;const n=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==n&&this.raise(t.kind==="get"?ee.BadGetterArity:ee.BadSetterArity,t),t.kind==="set"&&((r=i[i.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(ee.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,i,s){if(s){const a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,Xr(t.key));else if(this.match(29)){const s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(ee.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,Xr(t.key))}else t.value=Xr(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,n,i,s,a,o){const u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:i}=this.state;let s;if(dr(n))s=this.parseIdentifier(!0);else switch(n){case 134:s=this.parseNumericLiteral(i);break;case 133:s=this.parseStringLiteral(i);break;case 135:s=this.parseBigIntLiteral(i);break;case 136:s=this.parseDecimalLiteral(i);break;case 138:{const a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(ee.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected()}t.key=s,n!==138&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(Za(n,t.generator)),this.parseFunctionParams(t,i);const u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!n,i,a),this.state.inFSharpPipelineDirectBody=s,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(6);let s=Za(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);const a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){const i=r&&!this.match(5);if(this.expressionScope.enter($0()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{const s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{const u=!this.isSimpleParamList(t.params);o&&u&&this.raise(ee.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);const l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r<n;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,n,i=!0){const s=!r&&new Set,a={type:"FormalParameters"};for(const o of t.params)this.checkLVal(o,a,5,s,i)}parseExprList(t,r,n,i){const s=[];let a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(r,n))}return s}parseExprListItem(t,r,n){let i;if(this.match(12))t||this.raise(ee.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const s=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),s)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(ee.UnexpectedArgumentPlaceholder,this.state.startLoc);const s=this.startNode();this.next(),i=this.finishNode(s,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return i}parseIdentifier(t){const r=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(r,n)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}parseIdentifierName(t){let r;const{startLoc:n,type:i}=this.state;dr(i)?r=this.state.value:this.unexpected();const s=Dw(i);return t?s&&this.replaceToken(132):this.checkReservedWord(r,n,s,!1),this.next(),r}checkReservedWord(t,r,n,i){if(t.length>10||!Lw(t))return;if(n&&Nw(t)){this.raise(ee.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?k0:N0:O0)(t,this.inModule)){this.raise(ee.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(ee.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(ee.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(ee.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(ee.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(ee.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(ee.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return t===53||t===10||t===0||Do(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(ee.YieldInParameter,t),this.next();let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(ee.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){const n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{const n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(ee.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(ee.PipelineTopicUnused,t)}withTopicBindingContext(t){const r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){const r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){const r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const r=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Lu={kind:1},wI={kind:2},II=/[\uD800-\uDFFF]/u,Ru=/in(?:stanceof)?/y;function OI(e,t){for(let r=0;r<e.length;r++){const n=e[r],{type:i}=n;if(typeof i=="number"){{if(i===138){const{loc:s,start:a,value:o,end:u}=n,l=a+1,c=$t(s.start,1);e.splice(r,1,new pn({type:$r(27),value:"#",start:a,end:l,startLoc:s.start,endLoc:c}),new pn({type:$r(132),value:o,start:l,end:u,startLoc:c,endLoc:s.end})),r++;continue}if(Do(i)){const{loc:s,start:a,value:o,end:u}=n,l=a+1,c=$t(s.start,1);let f;t.charCodeAt(a)===96?f=new pn({type:$r(22),value:"`",start:a,end:l,startLoc:s.start,endLoc:c}):f=new pn({type:$r(8),value:"}",start:a,end:l,startLoc:s.start,endLoc:c});let p,h,d,m;i===24?(h=u-1,d=$t(s.end,-1),p=o===null?null:o.slice(1,-1),m=new pn({type:$r(22),value:"`",start:h,end:u,startLoc:d,endLoc:s.end})):(h=u-2,d=$t(s.end,-2),p=o===null?null:o.slice(1,-2),m=new pn({type:$r(23),value:"${",start:h,end:u,startLoc:d,endLoc:s.end})),e.splice(r,1,f,new pn({type:$r(20),value:p,start:l,end:h,startLoc:c,endLoc:d}),m),r+=2;continue}}n.type=$r(i)}}return e}class NI extends _I{parseTopLevel(t,r){return t.program=this.parseProgram(r),t.comments=this.comments,this.options.tokens&&(t.tokens=OI(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,r=139,n=this.options.sourceType){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[s,a]of Array.from(this.scope.undefinedExports))this.raise(ee.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",$t(this.state.startLoc,-1)),i}stmtToDirective(t){const r=t;r.type="Directive",r.value=r.expression,delete r.expression;const n=r.value,i=n.value,s=this.input.slice(n.start,n.end),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),n.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(Wr(t)){if(Ru.lastIndex=r,Ru.test(this.input)){const n=this.codePointAtPos(Ru.lastIndex);if(!_i(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){const t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){const{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return!1;if(at(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){const n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?ee.StrictFunction:this.options.annexB?ee.SloppyFunctionAnnexB:ee.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?s||this.raise(ee.UnexpectedLexicalDeclaration,i):this.raise(ee.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(ee.UnexpectedUsingDeclaration,this.state.startLoc):s||this.raise(ee.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;const c=this.nextTokenStart(),f=this.codePointAtPos(c);if(f!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(f,c)&&f!==123))break}case 75:s||this.raise(ee.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{const c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(ee.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(ee.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}const u=this.state.value,l=this.parseExpression();return at(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(ee.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(ee.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(ee.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(ee.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const r=this.state.startLoc;let n;if(this.match(10)){const i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);const s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(ee.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const i=this.startNodeAt(r);i.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;n<this.state.labels.length;++n){const i=this.state.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind===1)||t.label&&r))break}if(n===this.state.labels.length){const i=r?"BreakStatement":"ContinueStatement";this.raise(ee.IllegalBreakContinue,t,{type:i})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Lu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Lu);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);const n=this.isContextual(100);{const u=this.isContextual(96)&&this.startsAwaitUsing(),l=u||this.isContextual(107)&&this.startsUsingForOf(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){const f=this.startNode();let p;u?(p="await using",this.recordAwaitIfAllowed()||this.raise(ee.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):p=this.state.value,this.next(),this.parseVar(f,!0,p);const h=this.finishNode(f,"VariableDeclaration"),d=this.match(58);return d&&l&&this.raise(ee.ForInUsing,h),(d||this.isContextual(102))&&h.declarations.length===1?this.parseForIn(t,h,r):(r!==null&&this.unexpected(r),this.parseFor(t,h))}}const i=this.isContextual(95),s=new eo,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(ee.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(ee.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);const u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(ee.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const r=t.cases=[];this.expect(5),this.state.labels.push(wI),this.scope.enter(0);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(ee.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(ee.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(ee.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Lu),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(ee.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(const a of this.state.labels)a.name===r&&this.raise(ee.LabelRedeclaration,n,{labelName:r});const s=bw(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){const o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){const i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){const a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(t,r,n,i,s){const a=this.state.strict;let o=!1,u=!1;for(;!this.match(i);){const l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){const c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}t.push(l)}s==null||s.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){const i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(ee.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(ee.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){const s=t.declarations=[];for(t.kind=n;;){const a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(ee.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(ee.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){const n=this.parseBindingAtom();(r==="using"||r==="await using")&&(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(ee.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){const n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(ee.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Za(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||at(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Qw()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();const i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:t};let i=[];const s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(ee.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}const a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(ee.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(ee.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){const i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i)}parseClassMemberWithIsStatic(t,r,n,i){const s=r,a=r,o=r,u=r,l=r,c=s,f=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";const g=this.match(138);if(this.parseClassElementName(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}const p=!this.state.containsEsc&&at(this.state.type),h=this.parseClassElementName(r),d=p?h.name:null,m=this.isPrivateName(h),D=this.state.startLoc;if(this.parsePostMemberNameModifiers(f),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(t,a,!1,!1);return}const g=this.isNonstaticConstructor(s);let y=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(ee.DuplicateConstructor,h),g&&this.hasPlugin("typescript")&&r.override&&this.raise(ee.OverrideOnConstructor,h),n.hadConstructor=!0,y=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,y)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(d==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);const g=this.eat(55);f.optional&&this.unexpected(D),c.kind="method";const y=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(f),y?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1))}else if((d==="get"||d==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(h),c.kind=d;const g=this.match(138);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(ee.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(d==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const g=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){const{type:r,value:n}=this.state;if((r===132||r===133)&&t.static&&n==="prototype"&&this.raise(ee.StaticPrototype,this.state.startLoc),r===138){n==="constructor"&&this.raise(ee.ConstructorClassPrivateField,this.state.startLoc);const i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(208);const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(ee.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(ee.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){const n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(ee.ConstructorClassField,r.key);const i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,i){const s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);const a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter($0()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,i=8331){if(at(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(ee.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){const n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let f;if(l||c){if(f=!1,r)throw this.raise(ee.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else f=this.maybeParseExportDeclaration(t);if(l||c||f){var p;const h=t;if(this.checkExport(h,!0,!1,!!h.source),((p=h.declaration)==null?void 0:p.type)==="ClassDeclaration")this.maybeTakeDecorators(r,h.declaration,h);else if(r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.finishNode(h,"ExportNamedDeclaration")}if(this.eat(65)){const h=t,d=this.parseExportDefaultExpression();if(h.declaration=d,d.type==="ClassDeclaration")this.maybeTakeDecorators(r,d,h);else if(r)throw this.raise(ee.UnsupportedDecoratorExport,t);return this.checkExport(h,!0,!0),this.finishNode(h,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);const n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,n;(n=(r=t).specifiers)!=null||(r.specifiers=[]);const i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const r=t;r.specifiers||(r.specifiers=[]);const n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(ee.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(ee.UnsupportedDefaultExport,this.state.startLoc);const r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(at(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){const{type:i}=this.lookahead();if(at(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||at(this.state.type)&&n)return!0;if(this.match(65)&&n){const i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(ee.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(ee.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(ee.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){if(r){var s;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;const o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(ee.ExportDefaultFromAsIdentifier,o)}}else if((s=t.specifiers)!=null&&s.length)for(const o of t.specifiers){const{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){const{local:c}=o;c.type!=="Identifier"?this.raise(ee.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){const o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){const{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name)}else if(o.type==="VariableDeclaration")for(const u of o.declarations)this.checkDeclaration(u.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(const r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(const r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(ee.DuplicateDefaultExport,t):this.raise(ee.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){const r=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const i=this.isContextual(130),s=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i))}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=iI(t.local):t.exported||(t.exported=Xr(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const t=this.parseStringLiteral(this.state.value),r=II.exec(t.value);return r&&this.raise(ee.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){const{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(ee.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(ee.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var i;n!=="ImportDefaultSpecifier"&&this.raise(ee.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(ee.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){const{specifiers:r}=t;if(r!=null){const n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(ee.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,i){r||(n==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;const n=this.parseIdentifier(!0),{type:i}=this.state;return(dr(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,r,n.name,n.loc.start),null):(this.applyImportPhase(t,r,null),n)}isPrecedingIdImportPhase(t){const{type:r}=this.state;return at(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];const i=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(t);return i&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);const t=[],r=new Set;do{if(this.match(8))break;const n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(ee.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(133)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(ee.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],r=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(ee.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(ee.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(ee.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(ee.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){const n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(dr(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){const r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(ee.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),i=this.match(133),s=this.isContextual(130);n.imported=this.parseModuleExportName();const a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:a}=t;if(r)throw this.raise(ee.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=Xr(a))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}}class W0 extends NI{constructor(t,r,n){t=FI(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=n,this.filename=t.sourceFilename}getScopeHandler(){return Jc}parse(){this.enterInitialScopes();const t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}function BI(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const n=hs(t,e),i=n.parse();if(n.sawUnambiguousESM)return i;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",hs(t,e).parse()}catch{}else i.program.sourceType="script";return i}catch(n){try{return t.sourceType="script",hs(t,e).parse()}catch{}throw n}}else return hs(t,e).parse()}function kI(e,t){const r=hs(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function LI(e){const t={};for(const r of Object.keys(e))t[r]=$r(e[r]);return t}const RI=LI(yw);function hs(e,t){let r=W0;const n=new Map;if(e!=null&&e.plugins){for(const i of e.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{})}PI(n),r=MI(n)}return new r(e,t,n)}const dh=new Map;function MI(e){const t=[];for(const i of xI)e.has(i)&&t.push(i);const r=t.join("|");let n=dh.get(r);if(!n){n=W0;for(const i of t)n=K0[i](n);dh.set(r,n)}return n}var jI=Vi.parse=BI;Vi.parseExpression=kI;Vi.tokTypes=RI;var Mu={},ht={},ha={},Zi={},pr={},Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.Var=Xe.User=Xe.Statement=Xe.SpreadProperty=Xe.Scope=Xe.RestProperty=Xe.ReferencedMemberExpression=Xe.ReferencedIdentifier=Xe.Referenced=Xe.Pure=Xe.NumericLiteralTypeAnnotation=Xe.Generated=Xe.ForAwaitStatement=Xe.Flow=Xe.Expression=Xe.ExistentialTypeParam=Xe.BlockScoped=Xe.BindingIdentifier=void 0;Xe.ReferencedIdentifier=["Identifier","JSXIdentifier"];Xe.ReferencedMemberExpression=["MemberExpression"];Xe.BindingIdentifier=["Identifier"];Xe.Statement=["Statement"];Xe.Expression=["Expression"];Xe.Scope=["Scopable","Pattern"];Xe.Referenced=null;Xe.BlockScoped=null;Xe.Var=["VariableDeclaration"];Xe.User=null;Xe.Generated=null;Xe.Pure=null;Xe.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];Xe.RestProperty=["RestElement"];Xe.SpreadProperty=["RestElement"];Xe.ExistentialTypeParam=["ExistsTypeAnnotation"];Xe.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];Xe.ForAwaitStatement=["ForOfStatement"];var $l={exports:{}},da={exports:{}},ju,mh;function $I(){if(mh)return ju;mh=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,s=n*365.25;ju=function(c,f){f=f||{};var p=typeof c;if(p==="string"&&c.length>0)return a(c);if(p==="number"&&isFinite(c))return f.long?u(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var p=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return p*s;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*r;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function o(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=t?Math.round(c/t)+"m":f>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var f=Math.abs(c);return f>=n?l(c,f,n,"day"):f>=r?l(c,f,r,"hour"):f>=t?l(c,f,t,"minute"):f>=e?l(c,f,e,"second"):c+" ms"}function l(c,f,p,h){var d=f>=p*1.5;return Math.round(c/p)+" "+h+(d?"s":"")}return ju}var $u,yh;function H0(){if(yh)return $u;yh=1;function e(t){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=s,n.enabled=o,n.humanize=$I(),n.destroy=c,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function r(f){let p=0;for(let h=0;h<f.length;h++)p=(p<<5)-p+f.charCodeAt(h),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=r;function n(f){let p,h=null,d,m;function D(...g){if(!D.enabled)return;const y=D,b=Number(new Date),O=b-(p||b);y.diff=O,y.prev=p,y.curr=b,p=b,g[0]=n.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(w,P)=>{if(w==="%%")return"%";C++;const I=n.formatters[P];if(typeof I=="function"){const k=g[C];w=I.call(y,k),g.splice(C,1),C--}return w}),n.formatArgs.call(y,g),(y.log||n.log).apply(y,g)}return D.namespace=f,D.useColors=n.useColors(),D.color=n.selectColor(f),D.extend=i,D.destroy=n.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(d!==n.namespaces&&(d=n.namespaces,m=n.enabled(f)),m),set:g=>{h=g}}),typeof n.init=="function"&&n.init(D),D}function i(f,p){const h=n(this.namespace+(typeof p>"u"?":":p)+f);return h.log=this.log,h}function s(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let p;const h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(p=0;p<d;p++)h[p]&&(f=h[p].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.slice(1)+"$")):n.names.push(new RegExp("^"+f+"$")))}function a(){const f=[...n.names.map(u),...n.skips.map(u).map(p=>"-"+p)].join(",");return n.enable(""),f}function o(f){if(f[f.length-1]==="*")return!0;let p,h;for(p=0,h=n.skips.length;p<h;p++)if(n.skips[p].test(f))return!1;for(p=0,h=n.names.length;p<h;p++)if(n.names[p].test(f))return!0;return!1}function u(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function l(f){return f instanceof Error?f.stack||f.message:f}function c(){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 $u=e,$u}var Dh;function UI(){return Dh||(Dh=1,function(e,t){t.formatArgs=n,t.save=i,t.load=s,t.useColors=r,t.storage=a(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!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=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){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 u;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&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;u.splice(1,0,l,"color: inherit");let c=0,f=0;u[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(c++,p==="%c"&&(f=c))}),u.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function i(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function s(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function a(){try{return localStorage}catch{}}e.exports=H0()(t);const{formatters:o}=e.exports;o.j=function(u){try{return JSON.stringify(u)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(da,da.exports)),da.exports}var ma={exports:{}},Uu,gh;function VI(){return gh||(gh=1,Uu=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}),Uu}var Vu,Eh;function qI(){if(Eh)return Vu;Eh=1;const e=nc,t=_s,r=VI(),{env:n}=process;let i;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?i=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(i=1);function s(){if("FORCE_COLOR"in n)return n.FORCE_COLOR==="true"?1:n.FORCE_COLOR==="false"?0:n.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(n.FORCE_COLOR,10),3)}function a(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,{streamIsTTY:c,sniffFlags:f=!0}={}){const p=s();p!==void 0&&(i=p);const h=f?i:p;if(h===0)return 0;if(f){if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2}if(l&&!c&&h===void 0)return 0;const d=h||0;if(n.TERM==="dumb")return d;if(process.platform==="win32"){const m=e.release().split(".");return Number(m[0])>=10&&Number(m[2])>=10586?Number(m[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(m=>m in n)||n.CI_NAME==="codeship"?1:d;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const m=Number.parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return m>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:d}function u(l,c={}){const f=o(l,{streamIsTTY:l&&l.isTTY,...c});return a(f)}return Vu={supportsColor:u,stdout:u({isTTY:t.isatty(1)}),stderr:u({isTTY:t.isatty(2)})},Vu}var bh;function KI(){return bh||(bh=1,function(e,t){const r=_s,n=bT;t.init=c,t.log=o,t.formatArgs=s,t.save=u,t.load=l,t.useColors=i,t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const p=qI();p&&(p.stderr||p).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(p=>/^debug_/i.test(p)).reduce((p,h)=>{const d=h.substring(6).toLowerCase().replace(/_([a-z])/g,(D,g)=>g.toUpperCase());let m=process.env[h];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),p[d]=m,p},{});function i(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(p){const{namespace:h,useColors:d}=this;if(d){const m=this.color,D="\x1B[3"+(m<8?m:"8;5;"+m),g=` ${D};1m${h} \x1B[0m`;p[0]=g+p[0].split(`
115
+ `).join(`
116
+ `+g),p.push(D+"m+"+e.exports.humanize(this.diff)+"\x1B[0m")}else p[0]=a()+h+" "+p[0]}function a(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function o(...p){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...p)+`
117
+ `)}function u(p){p?process.env.DEBUG=p:delete process.env.DEBUG}function l(){return process.env.DEBUG}function c(p){p.inspectOpts={};const h=Object.keys(t.inspectOpts);for(let d=0;d<h.length;d++)p.inspectOpts[h[d]]=t.inspectOpts[h[d]]}e.exports=H0()(t);const{formatters:f}=e.exports;f.o=function(p){return this.inspectOpts.colors=this.useColors,n.inspect(p,this.inspectOpts).split(`
118
+ `).map(h=>h.trim()).join(" ")},f.O=function(p){return this.inspectOpts.colors=this.useColors,n.inspect(p,this.inspectOpts)}}(ma,ma.exports)),ma.exports}typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$l.exports=UI():$l.exports=KI();var WI=$l.exports,es={},ts={},qu={},Oo={},No={},Bo={},M={},Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.default=HI;function HI(e,t){const r=Object.keys(t);for(const n of r)if(e[n]!==t[n])return!1;return!0}var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.default=GI;const Th=new Set;function GI(e,t,r=""){if(Th.has(e))return;Th.add(e);const{internal:n,trace:i}=YI(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
119
+ ${i}`)}function YI(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return{internal:!1,trace:""};const s=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(`
120
+ `)}}Object.defineProperty(M,"__esModule",{value:!0});M.isAccessor=uL;M.isAnyTypeAnnotation=_N;M.isArgumentPlaceholder=iB;M.isArrayExpression=XI;M.isArrayPattern=GO;M.isArrayTypeAnnotation=wN;M.isArrowFunctionExpression=YO;M.isAssignmentExpression=JI;M.isAssignmentPattern=HO;M.isAwaitExpression=DN;M.isBigIntLiteral=EN;M.isBinary=Ik;M.isBinaryExpression=zI;M.isBindExpression=sB;M.isBlock=Bk;M.isBlockParent=Nk;M.isBlockStatement=tO;M.isBooleanLiteral=SO;M.isBooleanLiteralTypeAnnotation=ON;M.isBooleanTypeAnnotation=IN;M.isBreakStatement=rO;M.isCallExpression=nO;M.isCatchClause=iO;M.isClass=sL;M.isClassAccessorProperty=AN;M.isClassBody=XO;M.isClassDeclaration=zO;M.isClassExpression=JO;M.isClassImplements=BN;M.isClassMethod=lN;M.isClassPrivateMethod=PN;M.isClassPrivateProperty=CN;M.isClassProperty=vN;M.isCompletionStatement=Rk;M.isConditional=Mk;M.isConditionalExpression=sO;M.isContinueStatement=aO;M.isDebuggerStatement=oO;M.isDecimalLiteral=pB;M.isDeclaration=Gk;M.isDeclareClass=kN;M.isDeclareExportAllDeclaration=KN;M.isDeclareExportDeclaration=qN;M.isDeclareFunction=LN;M.isDeclareInterface=RN;M.isDeclareModule=MN;M.isDeclareModuleExports=jN;M.isDeclareOpaqueType=UN;M.isDeclareTypeAlias=$N;M.isDeclareVariable=VN;M.isDeclaredPredicate=WN;M.isDecorator=oB;M.isDirective=ZI;M.isDirectiveLiteral=eO;M.isDoExpression=uB;M.isDoWhileStatement=uO;M.isEmptyStatement=lO;M.isEmptyTypeAnnotation=r3;M.isEnumBody=mL;M.isEnumBooleanBody=w3;M.isEnumBooleanMember=B3;M.isEnumDeclaration=_3;M.isEnumDefaultedMember=R3;M.isEnumMember=yL;M.isEnumNumberBody=I3;M.isEnumNumberMember=k3;M.isEnumStringBody=O3;M.isEnumStringMember=L3;M.isEnumSymbolBody=N3;M.isExistsTypeAnnotation=HN;M.isExportAllDeclaration=QO;M.isExportDeclaration=aL;M.isExportDefaultDeclaration=ZO;M.isExportDefaultSpecifier=lB;M.isExportNamedDeclaration=eN;M.isExportNamespaceSpecifier=bN;M.isExportSpecifier=tN;M.isExpression=wk;M.isExpressionStatement=cO;M.isExpressionWrapper=Uk;M.isFile=fO;M.isFlow=cL;M.isFlowBaseAnnotation=pL;M.isFlowDeclaration=hL;M.isFlowPredicate=dL;M.isFlowType=fL;M.isFor=Vk;M.isForInStatement=pO;M.isForOfStatement=rN;M.isForStatement=hO;M.isForXStatement=qk;M.isFunction=Kk;M.isFunctionDeclaration=dO;M.isFunctionExpression=mO;M.isFunctionParent=Wk;M.isFunctionTypeAnnotation=GN;M.isFunctionTypeParam=YN;M.isGenericTypeAnnotation=XN;M.isIdentifier=yO;M.isIfStatement=DO;M.isImmutable=Qk;M.isImport=gN;M.isImportAttribute=aB;M.isImportDeclaration=nN;M.isImportDefaultSpecifier=iN;M.isImportExpression=oN;M.isImportNamespaceSpecifier=sN;M.isImportOrExportDeclaration=G0;M.isImportSpecifier=aN;M.isIndexedAccessType=M3;M.isInferredPredicate=JN;M.isInterfaceDeclaration=QN;M.isInterfaceExtends=zN;M.isInterfaceTypeAnnotation=ZN;M.isInterpreterDirective=QI;M.isIntersectionTypeAnnotation=e3;M.isJSX=DL;M.isJSXAttribute=$3;M.isJSXClosingElement=U3;M.isJSXClosingFragment=eB;M.isJSXElement=V3;M.isJSXEmptyExpression=q3;M.isJSXExpressionContainer=K3;M.isJSXFragment=Q3;M.isJSXIdentifier=H3;M.isJSXMemberExpression=G3;M.isJSXNamespacedName=Y3;M.isJSXOpeningElement=X3;M.isJSXOpeningFragment=Z3;M.isJSXSpreadAttribute=J3;M.isJSXSpreadChild=W3;M.isJSXText=z3;M.isLVal=Xk;M.isLabeledStatement=gO;M.isLiteral=zk;M.isLogicalExpression=AO;M.isLoop=jk;M.isMemberExpression=CO;M.isMetaProperty=uN;M.isMethod=eL;M.isMiscellaneous=gL;M.isMixedTypeAnnotation=t3;M.isModuleDeclaration=xL;M.isModuleExpression=hB;M.isModuleSpecifier=oL;M.isNewExpression=PO;M.isNoop=tB;M.isNullLiteral=TO;M.isNullLiteralTypeAnnotation=NN;M.isNullableTypeAnnotation=n3;M.isNumberLiteral=vL;M.isNumberLiteralTypeAnnotation=i3;M.isNumberTypeAnnotation=s3;M.isNumericLiteral=bO;M.isObjectExpression=FO;M.isObjectMember=tL;M.isObjectMethod=_O;M.isObjectPattern=cN;M.isObjectProperty=wO;M.isObjectTypeAnnotation=a3;M.isObjectTypeCallProperty=u3;M.isObjectTypeIndexer=l3;M.isObjectTypeInternalSlot=o3;M.isObjectTypeProperty=c3;M.isObjectTypeSpreadProperty=f3;M.isOpaqueType=p3;M.isOptionalCallExpression=SN;M.isOptionalIndexedAccessType=j3;M.isOptionalMemberExpression=TN;M.isParenthesizedExpression=BO;M.isPattern=iL;M.isPatternLike=Yk;M.isPipelineBareFunction=yB;M.isPipelinePrimaryTopicReference=DB;M.isPipelineTopicExpression=mB;M.isPlaceholder=rB;M.isPrivate=lL;M.isPrivateName=xN;M.isProgram=xO;M.isProperty=rL;M.isPureish=Hk;M.isQualifiedTypeIdentifier=h3;M.isRecordExpression=cB;M.isRegExpLiteral=vO;M.isRegexLiteral=AL;M.isRestElement=IO;M.isRestProperty=CL;M.isReturnStatement=OO;M.isScopable=Ok;M.isSequenceExpression=NO;M.isSpreadElement=fN;M.isSpreadProperty=PL;M.isStandardized=_k;M.isStatement=kk;M.isStaticBlock=FN;M.isStringLiteral=EO;M.isStringLiteralTypeAnnotation=d3;M.isStringTypeAnnotation=m3;M.isSuper=pN;M.isSwitchCase=kO;M.isSwitchStatement=LO;M.isSymbolTypeAnnotation=y3;M.isTSAnyKeyword=xB;M.isTSArrayType=GB;M.isTSAsExpression=pk;M.isTSBaseType=SL;M.isTSBigIntKeyword=_B;M.isTSBooleanKeyword=FB;M.isTSCallSignatureDeclaration=SB;M.isTSConditionalType=ek;M.isTSConstructSignatureDeclaration=vB;M.isTSConstructorType=VB;M.isTSDeclareFunction=EB;M.isTSDeclareMethod=bB;M.isTSEntityName=Jk;M.isTSEnumDeclaration=mk;M.isTSEnumMember=yk;M.isTSExportAssignment=vk;M.isTSExpressionWithTypeArguments=ok;M.isTSExternalModuleReference=Tk;M.isTSFunctionType=UB;M.isTSImportEqualsDeclaration=bk;M.isTSImportType=Ek;M.isTSIndexSignature=PB;M.isTSIndexedAccessType=ik;M.isTSInferType=tk;M.isTSInstantiationExpression=fk;M.isTSInterfaceBody=lk;M.isTSInterfaceDeclaration=uk;M.isTSIntersectionType=ZB;M.isTSIntrinsicKeyword=wB;M.isTSLiteralType=ak;M.isTSMappedType=sk;M.isTSMethodSignature=CB;M.isTSModuleBlock=gk;M.isTSModuleDeclaration=Dk;M.isTSNamedTupleMember=zB;M.isTSNamespaceExportDeclaration=Ak;M.isTSNeverKeyword=IB;M.isTSNonNullExpression=Sk;M.isTSNullKeyword=OB;M.isTSNumberKeyword=NB;M.isTSObjectKeyword=BB;M.isTSOptionalType=XB;M.isTSParameterProperty=gB;M.isTSParenthesizedType=rk;M.isTSPropertySignature=AB;M.isTSQualifiedName=TB;M.isTSRestType=JB;M.isTSSatisfiesExpression=hk;M.isTSStringKeyword=kB;M.isTSSymbolKeyword=LB;M.isTSThisType=$B;M.isTSTupleType=YB;M.isTSType=TL;M.isTSTypeAliasDeclaration=ck;M.isTSTypeAnnotation=Ck;M.isTSTypeAssertion=dk;M.isTSTypeElement=bL;M.isTSTypeLiteral=HB;M.isTSTypeOperator=nk;M.isTSTypeParameter=Fk;M.isTSTypeParameterDeclaration=xk;M.isTSTypeParameterInstantiation=Pk;M.isTSTypePredicate=KB;M.isTSTypeQuery=WB;M.isTSTypeReference=qB;M.isTSUndefinedKeyword=RB;M.isTSUnionType=QB;M.isTSUnknownKeyword=MB;M.isTSVoidKeyword=jB;M.isTaggedTemplateExpression=hN;M.isTemplateElement=dN;M.isTemplateLiteral=mN;M.isTerminatorless=Lk;M.isThisExpression=RO;M.isThisTypeAnnotation=D3;M.isThrowStatement=MO;M.isTopicReference=dB;M.isTryStatement=jO;M.isTupleExpression=fB;M.isTupleTypeAnnotation=g3;M.isTypeAlias=b3;M.isTypeAnnotation=T3;M.isTypeCastExpression=S3;M.isTypeParameter=v3;M.isTypeParameterDeclaration=A3;M.isTypeParameterInstantiation=C3;M.isTypeScript=EL;M.isTypeofTypeAnnotation=E3;M.isUnaryExpression=$O;M.isUnaryLike=nL;M.isUnionTypeAnnotation=P3;M.isUpdateExpression=UO;M.isUserWhitespacable=Zk;M.isV8IntrinsicIdentifier=nB;M.isVariableDeclaration=VO;M.isVariableDeclarator=qO;M.isVariance=x3;M.isVoidTypeAnnotation=F3;M.isWhile=$k;M.isWhileStatement=KO;M.isWithStatement=WO;M.isYieldExpression=yN;var K=Ms,js=qi;function XI(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,K.default)(e,t)}function JI(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,K.default)(e,t)}function zI(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,K.default)(e,t)}function QI(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,K.default)(e,t)}function ZI(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,K.default)(e,t)}function eO(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,K.default)(e,t)}function tO(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,K.default)(e,t)}function rO(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,K.default)(e,t)}function nO(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,K.default)(e,t)}function iO(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,K.default)(e,t)}function sO(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,K.default)(e,t)}function aO(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,K.default)(e,t)}function oO(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,K.default)(e,t)}function uO(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,K.default)(e,t)}function lO(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,K.default)(e,t)}function cO(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,K.default)(e,t)}function fO(e,t){return!e||e.type!=="File"?!1:t==null||(0,K.default)(e,t)}function pO(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,K.default)(e,t)}function hO(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,K.default)(e,t)}function dO(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,K.default)(e,t)}function mO(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,K.default)(e,t)}function yO(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,K.default)(e,t)}function DO(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,K.default)(e,t)}function gO(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,K.default)(e,t)}function EO(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,K.default)(e,t)}function bO(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,K.default)(e,t)}function TO(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,K.default)(e,t)}function SO(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,K.default)(e,t)}function vO(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,K.default)(e,t)}function AO(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,K.default)(e,t)}function CO(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,K.default)(e,t)}function PO(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,K.default)(e,t)}function xO(e,t){return!e||e.type!=="Program"?!1:t==null||(0,K.default)(e,t)}function FO(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,K.default)(e,t)}function _O(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,K.default)(e,t)}function wO(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,K.default)(e,t)}function IO(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,K.default)(e,t)}function OO(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,K.default)(e,t)}function NO(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,K.default)(e,t)}function BO(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,K.default)(e,t)}function kO(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,K.default)(e,t)}function LO(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,K.default)(e,t)}function RO(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,K.default)(e,t)}function MO(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,K.default)(e,t)}function jO(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,K.default)(e,t)}function $O(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,K.default)(e,t)}function UO(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,K.default)(e,t)}function VO(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,K.default)(e,t)}function qO(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,K.default)(e,t)}function KO(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,K.default)(e,t)}function WO(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,K.default)(e,t)}function HO(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,K.default)(e,t)}function GO(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,K.default)(e,t)}function YO(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,K.default)(e,t)}function XO(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,K.default)(e,t)}function JO(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,K.default)(e,t)}function zO(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,K.default)(e,t)}function QO(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,K.default)(e,t)}function ZO(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,K.default)(e,t)}function eN(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,K.default)(e,t)}function tN(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,K.default)(e,t)}function rN(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,K.default)(e,t)}function nN(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,K.default)(e,t)}function iN(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,K.default)(e,t)}function sN(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,K.default)(e,t)}function aN(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,K.default)(e,t)}function oN(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,K.default)(e,t)}function uN(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,K.default)(e,t)}function lN(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,K.default)(e,t)}function cN(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,K.default)(e,t)}function fN(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,K.default)(e,t)}function pN(e,t){return!e||e.type!=="Super"?!1:t==null||(0,K.default)(e,t)}function hN(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,K.default)(e,t)}function dN(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,K.default)(e,t)}function mN(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,K.default)(e,t)}function yN(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,K.default)(e,t)}function DN(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,K.default)(e,t)}function gN(e,t){return!e||e.type!=="Import"?!1:t==null||(0,K.default)(e,t)}function EN(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,K.default)(e,t)}function bN(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,K.default)(e,t)}function TN(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,K.default)(e,t)}function SN(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,K.default)(e,t)}function vN(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,K.default)(e,t)}function AN(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,K.default)(e,t)}function CN(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,K.default)(e,t)}function PN(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,K.default)(e,t)}function xN(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,K.default)(e,t)}function FN(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,K.default)(e,t)}function _N(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function wN(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function IN(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function ON(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function NN(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function BN(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,K.default)(e,t)}function kN(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,K.default)(e,t)}function LN(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,K.default)(e,t)}function RN(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,K.default)(e,t)}function MN(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,K.default)(e,t)}function jN(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,K.default)(e,t)}function $N(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,K.default)(e,t)}function UN(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,K.default)(e,t)}function VN(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,K.default)(e,t)}function qN(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,K.default)(e,t)}function KN(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,K.default)(e,t)}function WN(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,K.default)(e,t)}function HN(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function GN(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function YN(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,K.default)(e,t)}function XN(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function JN(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,K.default)(e,t)}function zN(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,K.default)(e,t)}function QN(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,K.default)(e,t)}function ZN(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function e3(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function t3(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function r3(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function n3(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function i3(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function s3(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function a3(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function o3(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,K.default)(e,t)}function u3(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,K.default)(e,t)}function l3(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,K.default)(e,t)}function c3(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,K.default)(e,t)}function f3(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,K.default)(e,t)}function p3(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,K.default)(e,t)}function h3(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,K.default)(e,t)}function d3(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function m3(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function y3(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function D3(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function g3(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function E3(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function b3(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,K.default)(e,t)}function T3(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function S3(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,K.default)(e,t)}function v3(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,K.default)(e,t)}function A3(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,K.default)(e,t)}function C3(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,K.default)(e,t)}function P3(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function x3(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,K.default)(e,t)}function F3(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function _3(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,K.default)(e,t)}function w3(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,K.default)(e,t)}function I3(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,K.default)(e,t)}function O3(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,K.default)(e,t)}function N3(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,K.default)(e,t)}function B3(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,K.default)(e,t)}function k3(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,K.default)(e,t)}function L3(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,K.default)(e,t)}function R3(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,K.default)(e,t)}function M3(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function j3(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function $3(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,K.default)(e,t)}function U3(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,K.default)(e,t)}function V3(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,K.default)(e,t)}function q3(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,K.default)(e,t)}function K3(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,K.default)(e,t)}function W3(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,K.default)(e,t)}function H3(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,K.default)(e,t)}function G3(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,K.default)(e,t)}function Y3(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,K.default)(e,t)}function X3(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,K.default)(e,t)}function J3(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,K.default)(e,t)}function z3(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,K.default)(e,t)}function Q3(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,K.default)(e,t)}function Z3(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,K.default)(e,t)}function eB(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,K.default)(e,t)}function tB(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,K.default)(e,t)}function rB(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,K.default)(e,t)}function nB(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,K.default)(e,t)}function iB(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,K.default)(e,t)}function sB(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,K.default)(e,t)}function aB(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,K.default)(e,t)}function oB(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,K.default)(e,t)}function uB(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,K.default)(e,t)}function lB(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,K.default)(e,t)}function cB(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,K.default)(e,t)}function fB(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,K.default)(e,t)}function pB(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,K.default)(e,t)}function hB(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,K.default)(e,t)}function dB(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,K.default)(e,t)}function mB(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,K.default)(e,t)}function yB(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,K.default)(e,t)}function DB(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,K.default)(e,t)}function gB(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,K.default)(e,t)}function EB(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,K.default)(e,t)}function bB(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,K.default)(e,t)}function TB(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,K.default)(e,t)}function SB(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,K.default)(e,t)}function vB(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,K.default)(e,t)}function AB(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,K.default)(e,t)}function CB(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,K.default)(e,t)}function PB(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,K.default)(e,t)}function xB(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,K.default)(e,t)}function FB(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,K.default)(e,t)}function _B(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,K.default)(e,t)}function wB(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,K.default)(e,t)}function IB(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,K.default)(e,t)}function OB(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,K.default)(e,t)}function NB(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,K.default)(e,t)}function BB(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,K.default)(e,t)}function kB(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,K.default)(e,t)}function LB(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,K.default)(e,t)}function RB(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,K.default)(e,t)}function MB(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,K.default)(e,t)}function jB(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,K.default)(e,t)}function $B(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,K.default)(e,t)}function UB(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,K.default)(e,t)}function VB(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,K.default)(e,t)}function qB(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,K.default)(e,t)}function KB(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,K.default)(e,t)}function WB(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,K.default)(e,t)}function HB(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,K.default)(e,t)}function GB(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,K.default)(e,t)}function YB(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,K.default)(e,t)}function XB(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,K.default)(e,t)}function JB(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,K.default)(e,t)}function zB(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,K.default)(e,t)}function QB(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,K.default)(e,t)}function ZB(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,K.default)(e,t)}function ek(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,K.default)(e,t)}function tk(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,K.default)(e,t)}function rk(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,K.default)(e,t)}function nk(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,K.default)(e,t)}function ik(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,K.default)(e,t)}function sk(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,K.default)(e,t)}function ak(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,K.default)(e,t)}function ok(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,K.default)(e,t)}function uk(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,K.default)(e,t)}function lk(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,K.default)(e,t)}function ck(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,K.default)(e,t)}function fk(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,K.default)(e,t)}function pk(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,K.default)(e,t)}function hk(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,K.default)(e,t)}function dk(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,K.default)(e,t)}function mk(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,K.default)(e,t)}function yk(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,K.default)(e,t)}function Dk(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,K.default)(e,t)}function gk(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,K.default)(e,t)}function Ek(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,K.default)(e,t)}function bk(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,K.default)(e,t)}function Tk(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,K.default)(e,t)}function Sk(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,K.default)(e,t)}function vk(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,K.default)(e,t)}function Ak(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,K.default)(e,t)}function Ck(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,K.default)(e,t)}function Pk(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,K.default)(e,t)}function xk(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,K.default)(e,t)}function Fk(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,K.default)(e,t)}function _k(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function wk(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function Ik(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function Ok(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function Nk(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function Bk(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,K.default)(e,t)}function kk(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function Lk(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function Rk(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function Mk(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function jk(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function $k(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function Uk(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,K.default)(e,t)}function Vk(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function qk(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,K.default)(e,t)}function Kk(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,K.default)(e,t)}function Wk(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,K.default)(e,t)}function Hk(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function Gk(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,K.default)(e,t)}function Yk(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function Xk(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,K.default)(e,t)}function Jk(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,K.default)(e,t)}function zk(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function Qk(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,K.default)(e,t)}function Zk(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function eL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,K.default)(e,t)}function tL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function rL(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function nL(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,K.default)(e,t)}function iL(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,K.default)(e,t)}function sL(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function G0(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function aL(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,K.default)(e,t)}function oL(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,K.default)(e,t)}function uL(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,K.default)(e,t)}function lL(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,K.default)(e,t)}function cL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,K.default)(e,t)}function fL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,K.default)(e,t)}function pL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,K.default)(e,t)}function hL(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,K.default)(e,t)}function dL(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,K.default)(e,t)}function mL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,K.default)(e,t)}function yL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,K.default)(e,t)}function DL(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,K.default)(e,t)}function gL(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,K.default)(e,t)}function EL(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,K.default)(e,t)}function bL(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,K.default)(e,t)}function TL(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,K.default)(e,t)}function SL(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return t==null||(0,K.default)(e,t)}function vL(e,t){return(0,js.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,K.default)(e,t)}function AL(e,t){return(0,js.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,K.default)(e,t)}function CL(e,t){return(0,js.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,K.default)(e,t)}function PL(e,t){return(0,js.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,K.default)(e,t)}function xL(e,t){return(0,js.default)("isModuleDeclaration","isImportOrExportDeclaration"),G0(e,t)}Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=FL;var rs=M;function FL(e,t,r){if(!(0,rs.isMemberExpression)(e))return!1;const n=Array.isArray(t)?t:t.split("."),i=[];let s;for(s=e;(0,rs.isMemberExpression)(s);s=s.object)i.push(s.property);if(i.push(s),i.length<n.length||!r&&i.length>n.length)return!1;for(let a=0,o=i.length-1;a<n.length;a++,o--){const u=i[o];let l;if((0,rs.isIdentifier)(u))l=u.name;else if((0,rs.isStringLiteral)(u))l=u.value;else if((0,rs.isThisExpression)(u))l="this";else return!1;if(n[a]!==l)return!1}return!0}Object.defineProperty(No,"__esModule",{value:!0});No.default=wL;var _L=Bo;function wL(e,t){const r=e.split(".");return n=>(0,_L.default)(n,r,t)}Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=void 0;var IL=No;const OL=(0,IL.default)("React.Component");Oo.default=OL;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.default=NL;function NL(e){return!!e&&/^[a-z]/.test(e)}var ya={},Da={},L={},ga={},bi={},Ku={};let ns=null;function xs(e){if(ns!==null&&typeof ns.property){const t=ns;return ns=xs.prototype=null,t}return ns=xs.prototype=e??Object.create(null),new xs}xs();var BL=function(t){return xs(t)},Lt={},Ea={},ba={},Sh;function ef(){if(Sh)return ba;Sh=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=t;var e=br();function t(r,n){if(r===n)return!0;if(r==null||e.ALIAS_KEYS[n])return!1;const i=e.FLIPPED_ALIAS_KEYS[n];if(i){if(i[0]===r)return!0;for(const s of i)if(r===s)return!0}return!1}return ba}var Ta={},vh;function Y0(){if(vh)return Ta;vh=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=t;var e=br();function t(r,n){if(r===n)return!0;const i=e.PLACEHOLDERS_ALIAS[r];if(i){for(const s of i)if(n===s)return!0}return!1}return Ta}var Ah;function $s(){if(Ah)return Ea;Ah=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=i;var e=Ms,t=ef(),r=Y0(),n=br();function i(s,a,o){return a?(0,t.default)(a.type,s)?typeof o>"u"?!0:(0,e.default)(a,o):!o&&a.type==="Placeholder"&&s in n.FLIPPED_ALIAS_KEYS?(0,r.default)(a.expectedNode,s):!1:!1}return Ea}var pi={},Us={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.isIdentifierChar=Q0;Vs.isIdentifierName=ML;Vs.isIdentifierStart=z0;let tf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",X0="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const kL=new RegExp("["+tf+"]"),LL=new RegExp("["+tf+X0+"]");tf=X0=null;const J0=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],RL=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function Ul(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function z0(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&kL.test(String.fromCharCode(e)):Ul(e,J0)}function Q0(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&LL.test(String.fromCharCode(e)):Ul(e,J0)||Ul(e,RL)}function ML(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023))}if(t){if(t=!1,!z0(n))return!1}else if(!Q0(n))return!1}return!t}var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.isKeyword=qL;hi.isReservedWord=Z0;hi.isStrictBindOnlyReservedWord=tD;hi.isStrictBindReservedWord=VL;hi.isStrictReservedWord=eD;const rf={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},jL=new Set(rf.keyword),$L=new Set(rf.strict),UL=new Set(rf.strictBind);function Z0(e,t){return t&&e==="await"||e==="enum"}function eD(e,t){return Z0(e,t)||$L.has(e)}function tD(e){return UL.has(e)}function VL(e,t){return eD(e,t)||tD(e)}function qL(e){return jL.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=Vs,r=hi})(Us);Object.defineProperty(pi,"__esModule",{value:!0});pi.default=KL;var Wu=Us;function KL(e,t=!0){return typeof e!="string"||t&&((0,Wu.isKeyword)(e)||(0,Wu.isStrictReservedWord)(e,!0))?!1:(0,Wu.isIdentifierName)(e)}var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.readCodePoint=nD;qs.readInt=rD;qs.readStringContents=HL;var WL=function(t){return t>=48&&t<=57};const Ch={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Sa={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function HL(e,t,r,n,i,s){const a=r,o=n,u=i;let l="",c=null,f=r;const{length:p}=t;for(;;){if(r>=p){s.unterminated(a,o,u),l+=t.slice(f,r);break}const h=t.charCodeAt(r);if(GL(e,h,t,r)){l+=t.slice(f,r);break}if(h===92){l+=t.slice(f,r);const d=YL(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,f=r}else h===8232||h===8233?(++r,++i,n=r):h===10||h===13?e==="template"?(l+=t.slice(f,r)+`
121
+ `,++r,h===13&&t.charCodeAt(r)===10&&++r,++i,f=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function GL(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function YL(e,t,r,n,i,s){const a=!i;t++;const o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
122
+ `);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Vl(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=nD(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){const l=t-1;let f=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;const h=e.charCodeAt(t);if(f!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function Vl(e,t,r,n,i,s,a,o){const u=t;let l;return{n:l,pos:t}=rD(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function rD(e,t,r,n,i,s,a,o,u,l){const c=t,f=i===16?Ch.hex:Ch.decBinOct,p=i===16?Sa.hex:i===10?Sa.dec:i===8?Sa.oct:Sa.bin;let h=!1,d=0;for(let m=0,D=s??1/0;m<D;++m){const g=e.charCodeAt(t);let y;if(g===95&&o!=="bail"){const b=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(b)||f.has(O)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(g>=97?y=g-97+10:g>=65?y=g-65+10:WL(g)?y=g-48:y=1/0,y>=i){if(y<=9&&l)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,n,i))y=0;else if(a)y=0,h=!0;else break}++t,d=d*i+y}return t===c||s!=null&&t-c!==s||h?{n:null,pos:t}:{n:d,pos:t}}function nD(e,t,r,n,i,s){const a=e.charCodeAt(t);let o;if(a===123){if(++t,{code:o,pos:t}=Vl(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Vl(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}var je={};Object.defineProperty(je,"__esModule",{value:!0});je.UPDATE_OPERATORS=je.UNARY_OPERATORS=je.STRING_UNARY_OPERATORS=je.STATEMENT_OR_BLOCK_KEYS=je.NUMBER_UNARY_OPERATORS=je.NUMBER_BINARY_OPERATORS=je.NOT_LOCAL_BINDING=je.LOGICAL_OPERATORS=je.INHERIT_KEYS=je.FOR_INIT_KEYS=je.FLATTENABLE_KEYS=je.EQUALITY_BINARY_OPERATORS=je.COMPARISON_BINARY_OPERATORS=je.COMMENT_KEYS=je.BOOLEAN_UNARY_OPERATORS=je.BOOLEAN_NUMBER_BINARY_OPERATORS=je.BOOLEAN_BINARY_OPERATORS=je.BLOCK_SCOPED_SYMBOL=je.BINARY_OPERATORS=je.ASSIGNMENT_OPERATORS=void 0;je.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];je.FLATTENABLE_KEYS=["body","expressions"];je.FOR_INIT_KEYS=["left","init"];je.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const XL=je.LOGICAL_OPERATORS=["||","&&","??"];je.UPDATE_OPERATORS=["++","--"];const JL=je.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],zL=je.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],QL=je.COMPARISON_BINARY_OPERATORS=[...zL,"in","instanceof"],ZL=je.BOOLEAN_BINARY_OPERATORS=[...QL,...JL],iD=je.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];je.BINARY_OPERATORS=["+",...iD,...ZL,"|>"];je.ASSIGNMENT_OPERATORS=["=","+=",...iD.map(e=>e+"="),...XL.map(e=>e+"=")];const e6=je.BOOLEAN_UNARY_OPERATORS=["delete","!"],t6=je.NUMBER_UNARY_OPERATORS=["+","-","~"],r6=je.STRING_UNARY_OPERATORS=["typeof"];je.UNARY_OPERATORS=["void","throw",...e6,...t6,...r6];je.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};je.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");je.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");var et={},Ph;function Rn(){if(Ph)return et;Ph=1,Object.defineProperty(et,"__esModule",{value:!0}),et.VISITOR_KEYS=et.NODE_PARENT_VALIDATIONS=et.NODE_FIELDS=et.FLIPPED_ALIAS_KEYS=et.DEPRECATED_KEYS=et.BUILDER_KEYS=et.ALIAS_KEYS=void 0,et.arrayOf=m,et.arrayOfType=D,et.assertEach=y,et.assertNodeOrValueType=C,et.assertNodeType=O,et.assertOneOf=b,et.assertOptionalChainStart=P,et.assertShape=w,et.assertValueType=$,et.chain=I,et.default=B,et.defineAliasedType=A,et.typeIs=f,et.validate=c,et.validateArrayOfType=g,et.validateOptional=h,et.validateOptionalType=d,et.validateType=p;var e=$s(),t=nf();const r=et.VISITOR_KEYS={},n=et.ALIAS_KEYS={},i=et.FLIPPED_ALIAS_KEYS={},s=et.NODE_FIELDS={},a=et.BUILDER_KEYS={},o=et.DEPRECATED_KEYS={},u=et.NODE_PARENT_VALIDATIONS={};function l(x){return Array.isArray(x)?"array":x===null?"null":typeof x}function c(x){return{validate:x}}function f(x){return typeof x=="string"?O(x):O(...x)}function p(x){return c(f(x))}function h(x){return{validate:x,optional:!0}}function d(x){return{validate:f(x),optional:!0}}function m(x){return I($("array"),y(x))}function D(x){return m(f(x))}function g(x){return c(D(x))}function y(x){function N(H,T,_){if(Array.isArray(_))for(let R=0;R<_.length;R++){const Q=`${T}[${R}]`,ne=_[R];x(H,Q,ne),process.env.BABEL_TYPES_8_BREAKING&&(0,t.validateChild)(H,Q,ne)}}return N.each=x,N}function b(...x){function N(H,T,_){if(!x.includes(_))throw new TypeError(`Property ${T} expected value to be one of ${JSON.stringify(x)} but got ${JSON.stringify(_)}`)}return N.oneOf=x,N}function O(...x){function N(H,T,_){for(const R of x)if((0,e.default)(R,_)){(0,t.validateChild)(H,T,_);return}throw new TypeError(`Property ${T} of ${H.type} expected node to be of a type ${JSON.stringify(x)} but instead got ${JSON.stringify(_==null?void 0:_.type)}`)}return N.oneOfNodeTypes=x,N}function C(...x){function N(H,T,_){for(const R of x)if(l(_)===R||(0,e.default)(R,_)){(0,t.validateChild)(H,T,_);return}throw new TypeError(`Property ${T} of ${H.type} expected node to be of a type ${JSON.stringify(x)} but instead got ${JSON.stringify(_==null?void 0:_.type)}`)}return N.oneOfNodeOrValueTypes=x,N}function $(x){function N(H,T,_){if(!(l(_)===x))throw new TypeError(`Property ${T} expected type of ${x} but got ${l(_)}`)}return N.type=x,N}function w(x){function N(H,T,_){const R=[];for(const Q of Object.keys(x))try{(0,t.validateField)(H,Q,_[Q],x[Q])}catch(ne){if(ne instanceof TypeError){R.push(ne.message);continue}throw ne}if(R.length)throw new TypeError(`Property ${T} of ${H.type} expected to have the following:
123
+ ${R.join(`
124
+ `)}`)}return N.shapeOf=x,N}function P(){function x(N){var H;let T=N;for(;N;){const{type:_}=T;if(_==="OptionalCallExpression"){if(T.optional)return;T=T.callee;continue}if(_==="OptionalMemberExpression"){if(T.optional)return;T=T.object;continue}break}throw new TypeError(`Non-optional ${N.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(H=T)==null?void 0:H.type}`)}return x}function I(...x){function N(...H){for(const T of x)T(...H)}if(N.chainOf=x,x.length>=2&&"type"in x[0]&&x[0].type==="array"&&!("each"in x[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return N}const k=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],F=["default","optional","deprecated","validate"],S={};function A(...x){return(N,H={})=>{let T=H.aliases;if(!T){var _,R;H.inherits&&(T=(_=S[H.inherits].aliases)==null?void 0:_.slice()),(R=T)!=null||(T=[]),H.aliases=T}const Q=x.filter(ne=>!T.includes(ne));T.unshift(...Q),B(N,H)}}function B(x,N={}){const H=N.inherits&&S[N.inherits]||{};let T=N.fields;if(!T&&(T={},H.fields)){const ne=Object.getOwnPropertyNames(H.fields);for(const X of ne){const ae=H.fields[X],ie=ae.default;if(Array.isArray(ie)?ie.length>0:ie&&typeof ie=="object")throw new Error("field defaults can only be primitives or empty arrays currently");T[X]={default:Array.isArray(ie)?[]:ie,optional:ae.optional,deprecated:ae.deprecated,validate:ae.validate}}}const _=N.visitor||H.visitor||[],R=N.aliases||H.aliases||[],Q=N.builder||H.builder||N.visitor||[];for(const ne of Object.keys(N))if(!k.includes(ne))throw new Error(`Unknown type option "${ne}" on ${x}`);N.deprecatedAlias&&(o[N.deprecatedAlias]=x);for(const ne of _.concat(Q))T[ne]=T[ne]||{};for(const ne of Object.keys(T)){const X=T[ne];X.default!==void 0&&!Q.includes(ne)&&(X.optional=!0),X.default===void 0?X.default=null:!X.validate&&X.default!=null&&(X.validate=$(l(X.default)));for(const ae of Object.keys(X))if(!F.includes(ae))throw new Error(`Unknown field key "${ae}" on ${x}.${ne}`)}r[x]=N.visitor=_,a[x]=N.builder=Q,s[x]=N.fields=T,n[x]=N.aliases=R,R.forEach(ne=>{i[ne]=i[ne]||[],i[ne].push(x)}),N.validate&&(u[x]=N.validate),S[x]=N}return et}var xh;function sD(){if(xh)return Lt;xh=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.patternLikeCommon=Lt.functionTypeAnnotationCommon=Lt.functionDeclarationCommon=Lt.functionCommon=Lt.classMethodOrPropertyCommon=Lt.classMethodOrDeclareMethodCommon=void 0;var e=$s(),t=pi,r=Us,n=qs,i=je,s=Rn();const a=(0,s.defineAliasedType)("Standardized");a("ArrayExpression",{fields:{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),a("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertValueType)("string");const h=(0,s.assertOneOf)(...i.ASSIGNMENT_OPERATORS),d=(0,s.assertOneOf)("=");return function(m,D,g){((0,e.default)("Pattern",m.left)?d:h)(m,D,g)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,s.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),a("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,s.assertOneOf)(...i.BINARY_OPERATORS)},left:{validate:function(){const h=(0,s.assertNodeType)("Expression"),d=(0,s.assertNodeType)("Expression","PrivateName");return Object.assign(function(D,g,y){(D.operator==="in"?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,s.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),a("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("Directive",{visitor:["value"],fields:{value:{validate:(0,s.assertNodeType)("DirectiveLiteral")}}}),a("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Directive"))),default:[]},body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),a("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),a("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),a("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Expression")},alternate:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),a("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("DebuggerStatement",{aliases:["Statement"]}),a("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),a("EmptyStatement",{aliases:["Statement"]}),a("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),a("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,s.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertEach)((0,s.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,s.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),a("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,s.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},update:{validate:(0,s.assertNodeType)("Expression"),optional:!0},body:{validate:(0,s.assertNodeType)("Statement")}}});const o=()=>({params:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});Lt.functionCommon=o;const u=()=>({returnType:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Lt.functionTypeAnnotationCommon=u;const l=()=>Object.assign({},o(),{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}});Lt.functionDeclarationCommon=l,a("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},l(),u(),{body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};const h=(0,s.assertNodeType)("Identifier");return function(d,m,D){(0,e.default)("ExportDefaultDeclaration",d)||h(D,"id",D.id)}}()}),a("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),u(),{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const c=()=>({typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}});Lt.patternLikeCommon=c,a("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},c(),{name:{validate:(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,t.default)(m,!1))throw new TypeError(`"${m}" is not a valid identifier name`)},{type:"string"}))}}),validate(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;const D=/\.(\w+)$/.exec(d);if(!D)return;const[,g]=D,y={computed:!1};if(g==="property"){if((0,e.default)("MemberExpression",h,y)||(0,e.default)("OptionalMemberExpression",h,y))return}else if(g==="key"){if((0,e.default)("Property",h,y)||(0,e.default)("Method",h,y))return}else if(g==="exported"){if((0,e.default)("ExportSpecifier",h))return}else if(g==="imported"){if((0,e.default)("ImportSpecifier",h,{imported:m}))return}else if(g==="meta"&&(0,e.default)("MetaProperty",h,{meta:m}))return;if(((0,r.isKeyword)(m.name)||(0,r.isReservedWord)(m.name,!1))&&m.name!=="this")throw new TypeError(`"${m.name}" is not a valid identifier`)}}),a("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,s.assertNodeType)("Statement")}}}),a("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,s.assertNodeType)("Identifier")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("StringLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,s.chain)((0,s.assertValueType)("number"),Object.assign(function(h,d,m){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),a("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,s.assertValueType)("string")},flags:{validate:(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;const D=/[^gimsuy]/.exec(m);if(D)throw new TypeError(`"${D[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}}),a("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,s.assertOneOf)(...i.LOGICAL_OPERATORS)},left:{validate:(0,s.assertNodeType)("Expression")},right:{validate:(0,s.assertNodeType)("Expression")}}}),a("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,s.assertNodeType)("Expression","Super")},property:{validate:function(){const h=(0,s.assertNodeType)("Identifier","PrivateName"),d=(0,s.assertNodeType)("Expression"),m=function(D,g,y){(D.computed?d:h)(D,g,y)};return m.oneOfNodeTypes=["Expression","Identifier","PrivateName"],m}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertOneOf)(!0,!1),optional:!0}})}),a("NewExpression",{inherits:"CallExpression"}),a("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,s.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,s.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Directive"))),default:[]},body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]}),a("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}}),a("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},o(),u(),{kind:Object.assign({validate:(0,s.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=(0,s.assertNodeType)("Expression"),m=function(D,g,y){(D.computed?d:h)(D,g,y)};return m.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],m}()},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),a("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),d=(0,s.assertNodeType)("Expression");return Object.assign(function(D,g,y){(D.computed?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,s.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&!(0,e.default)("Identifier",h.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){const h=(0,s.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,e.default)("ObjectPattern",m)?h:d)(g,"value",g.value)}}()}),a("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},c(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal")}}),validate(h,d){if(!process.env.BABEL_TYPES_8_BREAKING)return;const m=/(\w+)\[(\d+)\]/.exec(d);if(!m)throw new Error("Internal Babel error: malformed key.");const[,D,g]=m;if(h[D].length>+g+1)throw new TypeError(`RestElement must be last element of ${D}`)}}),a("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression")))}},aliases:["Expression"]}),a("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),a("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}}}),a("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,s.assertNodeType)("Expression")},cases:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("SwitchCase")))}}}),a("ThisExpression",{aliases:["Expression"]}),a("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,s.chain)((0,s.assertNodeType)("BlockStatement"),Object.assign(function(h){if(process.env.BABEL_TYPES_8_BREAKING&&!h.handler&&!h.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,s.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,s.assertNodeType)("BlockStatement")}}}),a("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),a("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression"):(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),a("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},kind:{validate:(0,s.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("VariableDeclarator")))}},validate(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&(0,e.default)("ForXStatement",h,{left:m})&&m.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${h.type}`)}}),a("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("LVal");const h=(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),d=(0,s.assertNodeType)("Identifier");return function(m,D,g){(m.init?h:d)(m,D,g)}}()},definite:{optional:!0,validate:(0,s.assertValueType)("boolean")},init:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{left:{validate:(0,s.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,s.assertNodeType)("Expression")},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}})}),a("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","PatternLike","LVal")))}})}),a("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),u(),{expression:{validate:(0,s.assertValueType)("boolean")},body:{validate:(0,s.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),a("ClassBody",{visitor:["body"],fields:{body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}}),a("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0}}}),a("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0}},validate:function(){const h=(0,s.assertNodeType)("Identifier");return function(d,m,D){process.env.BABEL_TYPES_8_BREAKING&&((0,e.default)("ExportDefaultDeclaration",d)||h(D,"id",D.id))}}()}),a("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,s.assertNodeType)("StringLiteral")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))}}}),a("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,s.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("value"))}}),a("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,s.chain)((0,s.assertNodeType)("Declaration"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&h.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)(function(){const h=(0,s.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),d=(0,s.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(m,D,g){(m.source?h:d)(m,D,g)}:h}()))},source:{validate:(0,s.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))}}),a("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},exported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}}}),a("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("VariableDeclaration","LVal");const h=(0,s.assertNodeType)("VariableDeclaration"),d=(0,s.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(m,D,g){(0,e.default)("VariableDeclaration",g)?h(m,D,g):d(m,D,g)}}()},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")},await:{default:!1}}}),a("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,s.assertValueType)("boolean")},phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},specifiers:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,s.assertNodeType)("StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),a("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},imported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),a("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},source:{validate:(0,s.assertNodeType)("Expression")},options:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,s.chain)((0,s.assertNodeType)("Identifier"),Object.assign(function(h,d,m){if(!process.env.BABEL_TYPES_8_BREAKING)return;let D;switch(m.name){case"function":D="sent";break;case"new":D="target";break;case"import":D="meta";break}if(!(0,e.default)("Identifier",h.property,{name:D}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,s.assertNodeType)("Identifier")}}});const f=()=>({abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},key:{validate:(0,s.chain)(function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){(m.computed?d:h)(m,D,g)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Lt.classMethodOrPropertyCommon=f;const p=()=>Object.assign({},o(),f(),{params:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,s.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,s.chain)((0,s.assertValueType)("string"),(0,s.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0}});return Lt.classMethodOrDeclareMethodCommon=p,a("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},p(),u(),{body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},c(),{properties:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("RestElement","ObjectProperty")))}})}),a("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Super",{aliases:["Expression"]}),a("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,s.assertNodeType)("Expression")},quasi:{validate:(0,s.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,s.chain)((0,s.assertShape)({raw:{validate:(0,s.assertValueType)("string")},cooked:{validate:(0,s.assertValueType)("string"),optional:!0}}),function(d){const m=d.value.raw;let D=!1;const g=()=>{throw new Error("Internal @babel/types error.")},{str:y,firstInvalidLoc:b}=(0,n.readStringContents)("template",m,0,0,0,{unterminated(){D=!0},strictNumericEscape:g,invalidEscapeSequence:g,numericSeparatorInEscapeSequence:g,unexpectedNumericSeparator:g,invalidDigit:g,invalidCodePoint:g});if(!D)throw new Error("Invalid raw");d.value.cooked=b?null:y})},tail:{default:!1}}}),a("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("TemplateElement")))},expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","TSType")),function(h,d,m){if(h.quasis.length!==m.length+1)throw new TypeError(`Number of ${h.type} quasis should be exactly one more than the number of expressions.
125
+ Expected ${m.length+1} quasis but got ${h.quasis.length}`)})}}}),a("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(h,d,m){if(process.env.BABEL_TYPES_8_BREAKING&&m&&!h.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Import",{aliases:["Expression"]}),a("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}}),a("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},property:{validate:function(){const h=(0,s.assertNodeType)("Identifier"),d=(0,s.assertNodeType)("Expression");return Object.assign(function(D,g,y){(D.computed?d:h)(D,g,y)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")}}}),a("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,s.assertNodeType)("Expression")},arguments:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")},typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}}),a("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},f(),{value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},f(),{key:{validate:(0,s.chain)(function(){const h=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),d=(0,s.assertNodeType)("Expression");return function(m,D,g){(m.computed?d:h)(m,D,g)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,s.assertNodeType)("PrivateName")},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,s.assertValueType)("boolean"),default:!1},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}}}),a("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},p(),u(),{kind:{validate:(0,s.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,s.assertNodeType)("PrivateName")},body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,s.assertNodeType)("Identifier")}}}),a("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]}),Lt}var Fh={},_h;function n6(){if(_h)return Fh;_h=1;var e=Rn();const t=(0,e.defineAliasedType)("Flow"),r=n=>{const i=n==="DeclareClass";t(n,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...i?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends"))},i?{mixins:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),implements:(0,e.validateOptional)((0,e.arrayOfType)("ClassImplements"))}:{},{body:(0,e.validateType)("ObjectTypeAnnotation")})})};return t("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,e.validateType)("FlowType")}}),t("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("DeclareClass"),t("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),predicate:(0,e.validateOptionalType)("DeclaredPredicate")}}),r("DeclareInterface"),t("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)("BlockStatement"),kind:(0,e.validateOptional)((0,e.assertOneOf)("CommonJS","ES"))}}),t("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateOptionalType)("FlowType")}}),t("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier")}}),t("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,e.validateOptionalType)("Flow"),specifiers:(0,e.validateOptional)((0,e.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,e.validateOptionalType)("StringLiteral"),default:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,e.validateType)("StringLiteral"),exportKind:(0,e.validateOptional)((0,e.assertOneOf)("type","value"))}}),t("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,e.validateType)("Flow")}}),t("ExistsTypeAnnotation",{aliases:["FlowType"]}),t("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),params:(0,e.validate)((0,e.arrayOfType)("FunctionTypeParam")),rest:(0,e.validateOptionalType)("FunctionTypeParam"),this:(0,e.validateOptionalType)("FunctionTypeParam"),returnType:(0,e.validateType)("FlowType")}}),t("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,e.validateOptionalType)("Identifier"),typeAnnotation:(0,e.validateType)("FlowType"),optional:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),t("InferredPredicate",{aliases:["FlowPredicate"]}),t("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("InterfaceDeclaration"),t("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),body:(0,e.validateType)("ObjectTypeAnnotation")}}),t("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("number"))}}),t("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,e.validate)((0,e.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,e.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,e.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,e.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,e.assertValueType)("boolean"),default:!1},inexact:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateType)("Identifier"),value:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean")),static:(0,e.validate)((0,e.assertValueType)("boolean")),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateOptionalType)("Identifier"),key:(0,e.validateType)("FlowType"),value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance")}}),t("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,e.validateType)(["Identifier","StringLiteral"]),value:(0,e.validateType)("FlowType"),kind:(0,e.validate)((0,e.assertOneOf)("init","get","set")),static:(0,e.validate)((0,e.assertValueType)("boolean")),proto:(0,e.validate)((0,e.assertValueType)("boolean")),optional:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance"),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,e.validateType)("FlowType")}}),t("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateType)("FlowType")}}),t("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,e.validateType)("Identifier"),qualification:(0,e.validateType)(["Identifier","QualifiedTypeIdentifier"])}}),t("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("string"))}}),t("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,e.validateType)("FlowType")}}),t("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),t("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),t("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),t("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,e.validate)((0,e.assertValueType)("string")),bound:(0,e.validateOptionalType)("TypeAnnotation"),default:(0,e.validateOptionalType)("FlowType"),variance:(0,e.validateOptionalType)("Variance")}}),t("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("TypeParameter"))}}),t("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),t("Variance",{builder:["kind"],fields:{kind:(0,e.validate)((0,e.assertOneOf)("minus","plus"))}}),t("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),t("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,e.validateType)("Identifier"),body:(0,e.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}}),t("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),t("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("BooleanLiteral")}}),t("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("NumericLiteral")}}),t("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("StringLiteral")}}),t("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),t("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType")}}),t("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean"))}}),Fh}var wh={},Ih;function i6(){if(Ih)return wh;Ih=1;var e=Rn();const t=(0,e.defineAliasedType)("JSX");return t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,e.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]}),wh}var Oh={},Nr={},Nh;function aD(){if(Nh)return Nr;Nh=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.PLACEHOLDERS_FLIPPED_ALIAS=Nr.PLACEHOLDERS_ALIAS=Nr.PLACEHOLDERS=void 0;var e=Rn();const t=Nr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=Nr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const i of t){const s=e.ALIAS_KEYS[i];s!=null&&s.length&&(r[i]=s)}const n=Nr.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach(i=>{r[i].forEach(s=>{hasOwnProperty.call(n,s)||(n[s]=[]),n[s].push(i)})}),Nr}var Bh;function s6(){if(Bh)return Oh;Bh=1;var e=Rn(),t=aD();const r=(0,e.defineAliasedType)("Miscellaneous");return r("Noop",{visitor:[]}),r("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}}}),r("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),Oh}var kh={},Lh;function a6(){if(Lh)return kh;Lh=1;var e=Rn();return(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,e.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,e.assertNodeType)("StringLiteral")}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("ObjectProperty","SpreadElement")))}}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),kh}var Rh={},Mh;function o6(){if(Mh)return Rh;Mh=1;var e=Rn(),t=sD(),r=$s();const n=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),s=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("Decorator"))),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),s())}),n("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),s())}),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});const a=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};n("TSCallSignatureDeclaration",o),n("TSConstructSignatureDeclaration",o);const u=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0,e.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),u(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});const l=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const h of l)n(h,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const c={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},c,{fields:a()})),n("TSConstructorType",Object.assign({},c,{fields:Object.assign({},a(),{abstract:(0,e.validateOptional)(i)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)(["TSType","TSNamedTupleMember"])}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};n("TSUnionType",f),n("TSIntersectionType",f),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,e.validate)((0,e.assertValueType)("string")),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeParameter:(0,e.validateType)("TSTypeParameter"),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const h=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),d=(0,e.assertOneOf)("-"),m=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function D(g,y,b){(0,r.default)("UnaryExpression",b)?(d(b,"operator",b.operator),h(b,"argument",b.argument)):m(g,y,b)}return D.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],D}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});const p={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};return n("TSAsExpression",p),n("TSSatisfiesExpression",p),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)(["Identifier","StringLiteral"]),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,e.validateOptional)(i),global:(0,e.validateOptional)(i),id:(0,e.validateType)(["Identifier","StringLiteral"]),body:(0,e.validateType)(["TSModuleBlock","TSModuleDeclaration"])}}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,e.assertNodeType)("Expression"),optional:!0}}}),n("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,e.validate)(i),id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}}}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")))}}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSTypeParameter")))}}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}}),Rh}var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.DEPRECATED_ALIASES=void 0;ko.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};var jh;function br(){return jh||(jh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return i.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}});var t=BL;sD(),n6(),i6(),s6(),a6(),o6();var r=Rn(),n=aD(),i=ko;Object.keys(i.DEPRECATED_ALIASES).forEach(s=>{r.FLIPPED_ALIAS_KEYS[s]=r.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[s]]}),t(r.VISITOR_KEYS),t(r.ALIAS_KEYS),t(r.FLIPPED_ALIAS_KEYS),t(r.NODE_FIELDS),t(r.BUILDER_KEYS),t(r.DEPRECATED_KEYS),t(n.PLACEHOLDERS_ALIAS),t(n.PLACEHOLDERS_FLIPPED_ALIAS),e.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))}(Ku)),Ku}var $h;function nf(){if($h)return bi;$h=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=t,bi.validateChild=n,bi.validateField=r;var e=br();function t(i,s,a){if(!i)return;const o=e.NODE_FIELDS[i.type];if(!o)return;const u=o[s];r(i,s,a,u),n(i,s,a)}function r(i,s,a,o){o!=null&&o.validate&&(o.optional&&a==null||o.validate(i,s,a))}function n(i,s,a){if(a==null)return;const o=e.NODE_PARENT_VALIDATIONS[a.type];o&&o(i,s,a)}return bi}var Uh;function u6(){if(Uh)return ga;Uh=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=r;var e=nf(),t=He();function r(n){const i=t.BUILDER_KEYS[n.type];for(const s of i)(0,e.default)(n,s,n[s]);return n}return ga}var Vh;function Ht(){if(Vh)return L;Vh=1,Object.defineProperty(L,"__esModule",{value:!0}),L.anyTypeAnnotation=ta,L.argumentPlaceholder=IE,L.arrayExpression=r,L.arrayPattern=ge,L.arrayTypeAnnotation=ye,L.arrowFunctionExpression=Ae,L.assignmentExpression=n,L.assignmentPattern=Oe,L.awaitExpression=ft,L.bigIntLiteral=Or,L.binaryExpression=i,L.bindExpression=OE,L.blockStatement=u,L.booleanLiteral=A,L.booleanLiteralTypeAnnotation=Vf,L.booleanTypeAnnotation=bt,L.breakStatement=l,L.callExpression=c,L.catchClause=f,L.classAccessorProperty=Tr,L.classBody=st,L.classDeclaration=$e,L.classExpression=fe,L.classImplements=rt,L.classMethod=ue,L.classPrivateMethod=jn,L.classPrivateProperty=an,L.classProperty=wt,L.conditionalExpression=p,L.continueStatement=h,L.debuggerStatement=d,L.decimalLiteral=jE,L.declareClass=zt,L.declareExportAllDeclaration=Dg,L.declareExportDeclaration=yg,L.declareFunction=Gt,L.declareInterface=cg,L.declareModule=fg,L.declareModuleExports=pg,L.declareOpaqueType=dg,L.declareTypeAlias=hg,L.declareVariable=mg,L.declaredPredicate=gg,L.decorator=BE,L.directive=a,L.directiveLiteral=o,L.doExpression=kE,L.doWhileStatement=m,L.emptyStatement=D,L.emptyTypeAnnotation=_g,L.enumBooleanBody=nE,L.enumBooleanMember=oE,L.enumDeclaration=rE,L.enumDefaultedMember=cE,L.enumNumberBody=iE,L.enumNumberMember=uE,L.enumStringBody=sE,L.enumStringMember=lE,L.enumSymbolBody=aE,L.existsTypeAnnotation=Eg,L.exportAllDeclaration=Z,L.exportDefaultDeclaration=G,L.exportDefaultSpecifier=LE,L.exportNamedDeclaration=V,L.exportNamespaceSpecifier=cr,L.exportSpecifier=E,L.expressionStatement=g,L.file=y,L.forInStatement=b,L.forOfStatement=j,L.forStatement=O,L.functionDeclaration=C,L.functionExpression=$,L.functionTypeAnnotation=bg,L.functionTypeParam=Tg,L.genericTypeAnnotation=Sg,L.identifier=w,L.ifStatement=P,L.import=lr,L.importAttribute=NE,L.importDeclaration=z,L.importDefaultSpecifier=se,L.importExpression=Pe,L.importNamespaceSpecifier=oe,L.importSpecifier=ce,L.indexedAccessType=fE,L.inferredPredicate=vg,L.interfaceDeclaration=Cg,L.interfaceExtends=Ag,L.interfaceTypeAnnotation=Pg,L.interpreterDirective=s,L.intersectionTypeAnnotation=xg,L.jSXAttribute=L.jsxAttribute=hE,L.jSXClosingElement=L.jsxClosingElement=dE,L.jSXClosingFragment=L.jsxClosingFragment=xE,L.jSXElement=L.jsxElement=mE,L.jSXEmptyExpression=L.jsxEmptyExpression=yE,L.jSXExpressionContainer=L.jsxExpressionContainer=DE,L.jSXFragment=L.jsxFragment=CE,L.jSXIdentifier=L.jsxIdentifier=EE,L.jSXMemberExpression=L.jsxMemberExpression=bE,L.jSXNamespacedName=L.jsxNamespacedName=TE,L.jSXOpeningElement=L.jsxOpeningElement=SE,L.jSXOpeningFragment=L.jsxOpeningFragment=PE,L.jSXSpreadAttribute=L.jsxSpreadAttribute=vE,L.jSXSpreadChild=L.jsxSpreadChild=gE,L.jSXText=L.jsxText=AE,L.labeledStatement=I,L.logicalExpression=x,L.memberExpression=N,L.metaProperty=Ue,L.mixedTypeAnnotation=Fg,L.moduleExpression=$E,L.newExpression=H,L.noop=FE,L.nullLiteral=S,L.nullLiteralTypeAnnotation=Ee,L.nullableTypeAnnotation=wg,L.numberLiteral=rT,L.numberLiteralTypeAnnotation=Ig,L.numberTypeAnnotation=Og,L.numericLiteral=F,L.objectExpression=_,L.objectMethod=R,L.objectPattern=Me,L.objectProperty=Q,L.objectTypeAnnotation=Ng,L.objectTypeCallProperty=kg,L.objectTypeIndexer=Lg,L.objectTypeInternalSlot=Bg,L.objectTypeProperty=Rg,L.objectTypeSpreadProperty=Mg,L.opaqueType=jg,L.optionalCallExpression=Jt,L.optionalIndexedAccessType=pE,L.optionalMemberExpression=fr,L.parenthesizedExpression=ie,L.pipelineBareFunction=qE,L.pipelinePrimaryTopicReference=KE,L.pipelineTopicExpression=VE,L.placeholder=_E,L.privateName=on,L.program=T,L.qualifiedTypeIdentifier=$g,L.recordExpression=RE,L.regExpLiteral=B,L.regexLiteral=nT,L.restElement=ne,L.restProperty=iT,L.returnStatement=X,L.sequenceExpression=ae,L.spreadElement=Ve,L.spreadProperty=sT,L.staticBlock=ea,L.stringLiteral=k,L.stringLiteralTypeAnnotation=Ug,L.stringTypeAnnotation=Vg,L.super=Ke,L.switchCase=te,L.switchStatement=Y,L.symbolTypeAnnotation=qg,L.taggedTemplateExpression=Le,L.templateElement=W,L.templateLiteral=Se,L.thisExpression=re,L.thisTypeAnnotation=Kg,L.throwStatement=De,L.topicReference=UE,L.tryStatement=de,L.tSAnyKeyword=L.tsAnyKeyword=eb,L.tSArrayType=L.tsArrayType=bb,L.tSAsExpression=L.tsAsExpression=jb,L.tSBigIntKeyword=L.tsBigIntKeyword=rb,L.tSBooleanKeyword=L.tsBooleanKeyword=tb,L.tSCallSignatureDeclaration=L.tsCallSignatureDeclaration=XE,L.tSConditionalType=L.tsConditionalType=xb,L.tSConstructSignatureDeclaration=L.tsConstructSignatureDeclaration=JE,L.tSConstructorType=L.tsConstructorType=mb,L.tSDeclareFunction=L.tsDeclareFunction=HE,L.tSDeclareMethod=L.tsDeclareMethod=GE,L.tSEnumDeclaration=L.tsEnumDeclaration=Vb,L.tSEnumMember=L.tsEnumMember=qb,L.tSExportAssignment=L.tsExportAssignment=Jb,L.tSExpressionWithTypeArguments=L.tsExpressionWithTypeArguments=Bb,L.tSExternalModuleReference=L.tsExternalModuleReference=Yb,L.tSFunctionType=L.tsFunctionType=db,L.tSImportEqualsDeclaration=L.tsImportEqualsDeclaration=Gb,L.tSImportType=L.tsImportType=Hb,L.tSIndexSignature=L.tsIndexSignature=ZE,L.tSIndexedAccessType=L.tsIndexedAccessType=Ib,L.tSInferType=L.tsInferType=Fb,L.tSInstantiationExpression=L.tsInstantiationExpression=Mb,L.tSInterfaceBody=L.tsInterfaceBody=Lb,L.tSInterfaceDeclaration=L.tsInterfaceDeclaration=kb,L.tSIntersectionType=L.tsIntersectionType=Pb,L.tSIntrinsicKeyword=L.tsIntrinsicKeyword=nb,L.tSLiteralType=L.tsLiteralType=Nb,L.tSMappedType=L.tsMappedType=Ob,L.tSMethodSignature=L.tsMethodSignature=QE,L.tSModuleBlock=L.tsModuleBlock=Wb,L.tSModuleDeclaration=L.tsModuleDeclaration=Kb,L.tSNamedTupleMember=L.tsNamedTupleMember=Ab,L.tSNamespaceExportDeclaration=L.tsNamespaceExportDeclaration=zb,L.tSNeverKeyword=L.tsNeverKeyword=ib,L.tSNonNullExpression=L.tsNonNullExpression=Xb,L.tSNullKeyword=L.tsNullKeyword=sb,L.tSNumberKeyword=L.tsNumberKeyword=ab,L.tSObjectKeyword=L.tsObjectKeyword=ob,L.tSOptionalType=L.tsOptionalType=Sb,L.tSParameterProperty=L.tsParameterProperty=WE,L.tSParenthesizedType=L.tsParenthesizedType=_b,L.tSPropertySignature=L.tsPropertySignature=zE,L.tSQualifiedName=L.tsQualifiedName=YE,L.tSRestType=L.tsRestType=vb,L.tSSatisfiesExpression=L.tsSatisfiesExpression=$b,L.tSStringKeyword=L.tsStringKeyword=ub,L.tSSymbolKeyword=L.tsSymbolKeyword=lb,L.tSThisType=L.tsThisType=hb,L.tSTupleType=L.tsTupleType=Tb,L.tSTypeAliasDeclaration=L.tsTypeAliasDeclaration=Rb,L.tSTypeAnnotation=L.tsTypeAnnotation=Qb,L.tSTypeAssertion=L.tsTypeAssertion=Ub,L.tSTypeLiteral=L.tsTypeLiteral=Eb,L.tSTypeOperator=L.tsTypeOperator=wb,L.tSTypeParameter=L.tsTypeParameter=tT,L.tSTypeParameterDeclaration=L.tsTypeParameterDeclaration=eT,L.tSTypeParameterInstantiation=L.tsTypeParameterInstantiation=Zb,L.tSTypePredicate=L.tsTypePredicate=Db,L.tSTypeQuery=L.tsTypeQuery=gb,L.tSTypeReference=L.tsTypeReference=yb,L.tSUndefinedKeyword=L.tsUndefinedKeyword=cb,L.tSUnionType=L.tsUnionType=Cb,L.tSUnknownKeyword=L.tsUnknownKeyword=fb,L.tSVoidKeyword=L.tsVoidKeyword=pb,L.tupleExpression=ME,L.tupleTypeAnnotation=Wg,L.typeAlias=Gg,L.typeAnnotation=Yg,L.typeCastExpression=Xg,L.typeParameter=Jg,L.typeParameterDeclaration=zg,L.typeParameterInstantiation=Qg,L.typeofTypeAnnotation=Hg,L.unaryExpression=Ce,L.unionTypeAnnotation=Zg,L.updateExpression=Ie,L.v8IntrinsicIdentifier=wE,L.variableDeclaration=Te,L.variableDeclarator=Ne,L.variance=eE,L.voidTypeAnnotation=tE,L.whileStatement=Je,L.withStatement=Fe,L.yieldExpression=ze;var e=u6(),t=qi;function r(v=[]){return(0,e.default)({type:"ArrayExpression",elements:v})}function n(v,J,le){return(0,e.default)({type:"AssignmentExpression",operator:v,left:J,right:le})}function i(v,J,le){return(0,e.default)({type:"BinaryExpression",operator:v,left:J,right:le})}function s(v){return(0,e.default)({type:"InterpreterDirective",value:v})}function a(v){return(0,e.default)({type:"Directive",value:v})}function o(v){return(0,e.default)({type:"DirectiveLiteral",value:v})}function u(v,J=[]){return(0,e.default)({type:"BlockStatement",body:v,directives:J})}function l(v=null){return(0,e.default)({type:"BreakStatement",label:v})}function c(v,J){return(0,e.default)({type:"CallExpression",callee:v,arguments:J})}function f(v=null,J){return(0,e.default)({type:"CatchClause",param:v,body:J})}function p(v,J,le){return(0,e.default)({type:"ConditionalExpression",test:v,consequent:J,alternate:le})}function h(v=null){return(0,e.default)({type:"ContinueStatement",label:v})}function d(){return{type:"DebuggerStatement"}}function m(v,J){return(0,e.default)({type:"DoWhileStatement",test:v,body:J})}function D(){return{type:"EmptyStatement"}}function g(v){return(0,e.default)({type:"ExpressionStatement",expression:v})}function y(v,J=null,le=null){return(0,e.default)({type:"File",program:v,comments:J,tokens:le})}function b(v,J,le){return(0,e.default)({type:"ForInStatement",left:v,right:J,body:le})}function O(v=null,J=null,le=null,_e){return(0,e.default)({type:"ForStatement",init:v,test:J,update:le,body:_e})}function C(v=null,J,le,_e=!1,Tt=!1){return(0,e.default)({type:"FunctionDeclaration",id:v,params:J,body:le,generator:_e,async:Tt})}function $(v=null,J,le,_e=!1,Tt=!1){return(0,e.default)({type:"FunctionExpression",id:v,params:J,body:le,generator:_e,async:Tt})}function w(v){return(0,e.default)({type:"Identifier",name:v})}function P(v,J,le=null){return(0,e.default)({type:"IfStatement",test:v,consequent:J,alternate:le})}function I(v,J){return(0,e.default)({type:"LabeledStatement",label:v,body:J})}function k(v){return(0,e.default)({type:"StringLiteral",value:v})}function F(v){return(0,e.default)({type:"NumericLiteral",value:v})}function S(){return{type:"NullLiteral"}}function A(v){return(0,e.default)({type:"BooleanLiteral",value:v})}function B(v,J=""){return(0,e.default)({type:"RegExpLiteral",pattern:v,flags:J})}function x(v,J,le){return(0,e.default)({type:"LogicalExpression",operator:v,left:J,right:le})}function N(v,J,le=!1,_e=null){return(0,e.default)({type:"MemberExpression",object:v,property:J,computed:le,optional:_e})}function H(v,J){return(0,e.default)({type:"NewExpression",callee:v,arguments:J})}function T(v,J=[],le="script",_e=null){return(0,e.default)({type:"Program",body:v,directives:J,sourceType:le,interpreter:_e})}function _(v){return(0,e.default)({type:"ObjectExpression",properties:v})}function R(v="method",J,le,_e,Tt=!1,$n=!1,hu=!1){return(0,e.default)({type:"ObjectMethod",kind:v,key:J,params:le,body:_e,computed:Tt,generator:$n,async:hu})}function Q(v,J,le=!1,_e=!1,Tt=null){return(0,e.default)({type:"ObjectProperty",key:v,value:J,computed:le,shorthand:_e,decorators:Tt})}function ne(v){return(0,e.default)({type:"RestElement",argument:v})}function X(v=null){return(0,e.default)({type:"ReturnStatement",argument:v})}function ae(v){return(0,e.default)({type:"SequenceExpression",expressions:v})}function ie(v){return(0,e.default)({type:"ParenthesizedExpression",expression:v})}function te(v=null,J){return(0,e.default)({type:"SwitchCase",test:v,consequent:J})}function Y(v,J){return(0,e.default)({type:"SwitchStatement",discriminant:v,cases:J})}function re(){return{type:"ThisExpression"}}function De(v){return(0,e.default)({type:"ThrowStatement",argument:v})}function de(v,J=null,le=null){return(0,e.default)({type:"TryStatement",block:v,handler:J,finalizer:le})}function Ce(v,J,le=!0){return(0,e.default)({type:"UnaryExpression",operator:v,argument:J,prefix:le})}function Ie(v,J,le=!1){return(0,e.default)({type:"UpdateExpression",operator:v,argument:J,prefix:le})}function Te(v,J){return(0,e.default)({type:"VariableDeclaration",kind:v,declarations:J})}function Ne(v,J=null){return(0,e.default)({type:"VariableDeclarator",id:v,init:J})}function Je(v,J){return(0,e.default)({type:"WhileStatement",test:v,body:J})}function Fe(v,J){return(0,e.default)({type:"WithStatement",object:v,body:J})}function Oe(v,J){return(0,e.default)({type:"AssignmentPattern",left:v,right:J})}function ge(v){return(0,e.default)({type:"ArrayPattern",elements:v})}function Ae(v,J,le=!1){return(0,e.default)({type:"ArrowFunctionExpression",params:v,body:J,async:le,expression:null})}function st(v){return(0,e.default)({type:"ClassBody",body:v})}function fe(v=null,J=null,le,_e=null){return(0,e.default)({type:"ClassExpression",id:v,superClass:J,body:le,decorators:_e})}function $e(v=null,J=null,le,_e=null){return(0,e.default)({type:"ClassDeclaration",id:v,superClass:J,body:le,decorators:_e})}function Z(v){return(0,e.default)({type:"ExportAllDeclaration",source:v})}function G(v){return(0,e.default)({type:"ExportDefaultDeclaration",declaration:v})}function V(v=null,J=[],le=null){return(0,e.default)({type:"ExportNamedDeclaration",declaration:v,specifiers:J,source:le})}function E(v,J){return(0,e.default)({type:"ExportSpecifier",local:v,exported:J})}function j(v,J,le,_e=!1){return(0,e.default)({type:"ForOfStatement",left:v,right:J,body:le,await:_e})}function z(v,J){return(0,e.default)({type:"ImportDeclaration",specifiers:v,source:J})}function se(v){return(0,e.default)({type:"ImportDefaultSpecifier",local:v})}function oe(v){return(0,e.default)({type:"ImportNamespaceSpecifier",local:v})}function ce(v,J){return(0,e.default)({type:"ImportSpecifier",local:v,imported:J})}function Pe(v,J=null){return(0,e.default)({type:"ImportExpression",source:v,options:J})}function Ue(v,J){return(0,e.default)({type:"MetaProperty",meta:v,property:J})}function ue(v="method",J,le,_e,Tt=!1,$n=!1,hu=!1,aT=!1){return(0,e.default)({type:"ClassMethod",kind:v,key:J,params:le,body:_e,computed:Tt,static:$n,generator:hu,async:aT})}function Me(v){return(0,e.default)({type:"ObjectPattern",properties:v})}function Ve(v){return(0,e.default)({type:"SpreadElement",argument:v})}function Ke(){return{type:"Super"}}function Le(v,J){return(0,e.default)({type:"TaggedTemplateExpression",tag:v,quasi:J})}function W(v,J=!1){return(0,e.default)({type:"TemplateElement",value:v,tail:J})}function Se(v,J){return(0,e.default)({type:"TemplateLiteral",quasis:v,expressions:J})}function ze(v=null,J=!1){return(0,e.default)({type:"YieldExpression",argument:v,delegate:J})}function ft(v){return(0,e.default)({type:"AwaitExpression",argument:v})}function lr(){return{type:"Import"}}function Or(v){return(0,e.default)({type:"BigIntLiteral",value:v})}function cr(v){return(0,e.default)({type:"ExportNamespaceSpecifier",exported:v})}function fr(v,J,le=!1,_e){return(0,e.default)({type:"OptionalMemberExpression",object:v,property:J,computed:le,optional:_e})}function Jt(v,J,le){return(0,e.default)({type:"OptionalCallExpression",callee:v,arguments:J,optional:le})}function wt(v,J=null,le=null,_e=null,Tt=!1,$n=!1){return(0,e.default)({type:"ClassProperty",key:v,value:J,typeAnnotation:le,decorators:_e,computed:Tt,static:$n})}function Tr(v,J=null,le=null,_e=null,Tt=!1,$n=!1){return(0,e.default)({type:"ClassAccessorProperty",key:v,value:J,typeAnnotation:le,decorators:_e,computed:Tt,static:$n})}function an(v,J=null,le=null,_e=!1){return(0,e.default)({type:"ClassPrivateProperty",key:v,value:J,decorators:le,static:_e})}function jn(v="method",J,le,_e,Tt=!1){return(0,e.default)({type:"ClassPrivateMethod",kind:v,key:J,params:le,body:_e,static:Tt})}function on(v){return(0,e.default)({type:"PrivateName",id:v})}function ea(v){return(0,e.default)({type:"StaticBlock",body:v})}function ta(){return{type:"AnyTypeAnnotation"}}function ye(v){return(0,e.default)({type:"ArrayTypeAnnotation",elementType:v})}function bt(){return{type:"BooleanTypeAnnotation"}}function Vf(v){return(0,e.default)({type:"BooleanLiteralTypeAnnotation",value:v})}function Ee(){return{type:"NullLiteralTypeAnnotation"}}function rt(v,J=null){return(0,e.default)({type:"ClassImplements",id:v,typeParameters:J})}function zt(v,J=null,le=null,_e){return(0,e.default)({type:"DeclareClass",id:v,typeParameters:J,extends:le,body:_e})}function Gt(v){return(0,e.default)({type:"DeclareFunction",id:v})}function cg(v,J=null,le=null,_e){return(0,e.default)({type:"DeclareInterface",id:v,typeParameters:J,extends:le,body:_e})}function fg(v,J,le=null){return(0,e.default)({type:"DeclareModule",id:v,body:J,kind:le})}function pg(v){return(0,e.default)({type:"DeclareModuleExports",typeAnnotation:v})}function hg(v,J=null,le){return(0,e.default)({type:"DeclareTypeAlias",id:v,typeParameters:J,right:le})}function dg(v,J=null,le=null){return(0,e.default)({type:"DeclareOpaqueType",id:v,typeParameters:J,supertype:le})}function mg(v){return(0,e.default)({type:"DeclareVariable",id:v})}function yg(v=null,J=null,le=null){return(0,e.default)({type:"DeclareExportDeclaration",declaration:v,specifiers:J,source:le})}function Dg(v){return(0,e.default)({type:"DeclareExportAllDeclaration",source:v})}function gg(v){return(0,e.default)({type:"DeclaredPredicate",value:v})}function Eg(){return{type:"ExistsTypeAnnotation"}}function bg(v=null,J,le=null,_e){return(0,e.default)({type:"FunctionTypeAnnotation",typeParameters:v,params:J,rest:le,returnType:_e})}function Tg(v=null,J){return(0,e.default)({type:"FunctionTypeParam",name:v,typeAnnotation:J})}function Sg(v,J=null){return(0,e.default)({type:"GenericTypeAnnotation",id:v,typeParameters:J})}function vg(){return{type:"InferredPredicate"}}function Ag(v,J=null){return(0,e.default)({type:"InterfaceExtends",id:v,typeParameters:J})}function Cg(v,J=null,le=null,_e){return(0,e.default)({type:"InterfaceDeclaration",id:v,typeParameters:J,extends:le,body:_e})}function Pg(v=null,J){return(0,e.default)({type:"InterfaceTypeAnnotation",extends:v,body:J})}function xg(v){return(0,e.default)({type:"IntersectionTypeAnnotation",types:v})}function Fg(){return{type:"MixedTypeAnnotation"}}function _g(){return{type:"EmptyTypeAnnotation"}}function wg(v){return(0,e.default)({type:"NullableTypeAnnotation",typeAnnotation:v})}function Ig(v){return(0,e.default)({type:"NumberLiteralTypeAnnotation",value:v})}function Og(){return{type:"NumberTypeAnnotation"}}function Ng(v,J=[],le=[],_e=[],Tt=!1){return(0,e.default)({type:"ObjectTypeAnnotation",properties:v,indexers:J,callProperties:le,internalSlots:_e,exact:Tt})}function Bg(v,J,le,_e,Tt){return(0,e.default)({type:"ObjectTypeInternalSlot",id:v,value:J,optional:le,static:_e,method:Tt})}function kg(v){return(0,e.default)({type:"ObjectTypeCallProperty",value:v,static:null})}function Lg(v=null,J,le,_e=null){return(0,e.default)({type:"ObjectTypeIndexer",id:v,key:J,value:le,variance:_e,static:null})}function Rg(v,J,le=null){return(0,e.default)({type:"ObjectTypeProperty",key:v,value:J,variance:le,kind:null,method:null,optional:null,proto:null,static:null})}function Mg(v){return(0,e.default)({type:"ObjectTypeSpreadProperty",argument:v})}function jg(v,J=null,le=null,_e){return(0,e.default)({type:"OpaqueType",id:v,typeParameters:J,supertype:le,impltype:_e})}function $g(v,J){return(0,e.default)({type:"QualifiedTypeIdentifier",id:v,qualification:J})}function Ug(v){return(0,e.default)({type:"StringLiteralTypeAnnotation",value:v})}function Vg(){return{type:"StringTypeAnnotation"}}function qg(){return{type:"SymbolTypeAnnotation"}}function Kg(){return{type:"ThisTypeAnnotation"}}function Wg(v){return(0,e.default)({type:"TupleTypeAnnotation",types:v})}function Hg(v){return(0,e.default)({type:"TypeofTypeAnnotation",argument:v})}function Gg(v,J=null,le){return(0,e.default)({type:"TypeAlias",id:v,typeParameters:J,right:le})}function Yg(v){return(0,e.default)({type:"TypeAnnotation",typeAnnotation:v})}function Xg(v,J){return(0,e.default)({type:"TypeCastExpression",expression:v,typeAnnotation:J})}function Jg(v=null,J=null,le=null){return(0,e.default)({type:"TypeParameter",bound:v,default:J,variance:le,name:null})}function zg(v){return(0,e.default)({type:"TypeParameterDeclaration",params:v})}function Qg(v){return(0,e.default)({type:"TypeParameterInstantiation",params:v})}function Zg(v){return(0,e.default)({type:"UnionTypeAnnotation",types:v})}function eE(v){return(0,e.default)({type:"Variance",kind:v})}function tE(){return{type:"VoidTypeAnnotation"}}function rE(v,J){return(0,e.default)({type:"EnumDeclaration",id:v,body:J})}function nE(v){return(0,e.default)({type:"EnumBooleanBody",members:v,explicitType:null,hasUnknownMembers:null})}function iE(v){return(0,e.default)({type:"EnumNumberBody",members:v,explicitType:null,hasUnknownMembers:null})}function sE(v){return(0,e.default)({type:"EnumStringBody",members:v,explicitType:null,hasUnknownMembers:null})}function aE(v){return(0,e.default)({type:"EnumSymbolBody",members:v,hasUnknownMembers:null})}function oE(v){return(0,e.default)({type:"EnumBooleanMember",id:v,init:null})}function uE(v,J){return(0,e.default)({type:"EnumNumberMember",id:v,init:J})}function lE(v,J){return(0,e.default)({type:"EnumStringMember",id:v,init:J})}function cE(v){return(0,e.default)({type:"EnumDefaultedMember",id:v})}function fE(v,J){return(0,e.default)({type:"IndexedAccessType",objectType:v,indexType:J})}function pE(v,J){return(0,e.default)({type:"OptionalIndexedAccessType",objectType:v,indexType:J,optional:null})}function hE(v,J=null){return(0,e.default)({type:"JSXAttribute",name:v,value:J})}function dE(v){return(0,e.default)({type:"JSXClosingElement",name:v})}function mE(v,J=null,le,_e=null){return(0,e.default)({type:"JSXElement",openingElement:v,closingElement:J,children:le,selfClosing:_e})}function yE(){return{type:"JSXEmptyExpression"}}function DE(v){return(0,e.default)({type:"JSXExpressionContainer",expression:v})}function gE(v){return(0,e.default)({type:"JSXSpreadChild",expression:v})}function EE(v){return(0,e.default)({type:"JSXIdentifier",name:v})}function bE(v,J){return(0,e.default)({type:"JSXMemberExpression",object:v,property:J})}function TE(v,J){return(0,e.default)({type:"JSXNamespacedName",namespace:v,name:J})}function SE(v,J,le=!1){return(0,e.default)({type:"JSXOpeningElement",name:v,attributes:J,selfClosing:le})}function vE(v){return(0,e.default)({type:"JSXSpreadAttribute",argument:v})}function AE(v){return(0,e.default)({type:"JSXText",value:v})}function CE(v,J,le){return(0,e.default)({type:"JSXFragment",openingFragment:v,closingFragment:J,children:le})}function PE(){return{type:"JSXOpeningFragment"}}function xE(){return{type:"JSXClosingFragment"}}function FE(){return{type:"Noop"}}function _E(v,J){return(0,e.default)({type:"Placeholder",expectedNode:v,name:J})}function wE(v){return(0,e.default)({type:"V8IntrinsicIdentifier",name:v})}function IE(){return{type:"ArgumentPlaceholder"}}function OE(v,J){return(0,e.default)({type:"BindExpression",object:v,callee:J})}function NE(v,J){return(0,e.default)({type:"ImportAttribute",key:v,value:J})}function BE(v){return(0,e.default)({type:"Decorator",expression:v})}function kE(v,J=!1){return(0,e.default)({type:"DoExpression",body:v,async:J})}function LE(v){return(0,e.default)({type:"ExportDefaultSpecifier",exported:v})}function RE(v){return(0,e.default)({type:"RecordExpression",properties:v})}function ME(v=[]){return(0,e.default)({type:"TupleExpression",elements:v})}function jE(v){return(0,e.default)({type:"DecimalLiteral",value:v})}function $E(v){return(0,e.default)({type:"ModuleExpression",body:v})}function UE(){return{type:"TopicReference"}}function VE(v){return(0,e.default)({type:"PipelineTopicExpression",expression:v})}function qE(v){return(0,e.default)({type:"PipelineBareFunction",callee:v})}function KE(){return{type:"PipelinePrimaryTopicReference"}}function WE(v){return(0,e.default)({type:"TSParameterProperty",parameter:v})}function HE(v=null,J=null,le,_e=null){return(0,e.default)({type:"TSDeclareFunction",id:v,typeParameters:J,params:le,returnType:_e})}function GE(v=null,J,le=null,_e,Tt=null){return(0,e.default)({type:"TSDeclareMethod",decorators:v,key:J,typeParameters:le,params:_e,returnType:Tt})}function YE(v,J){return(0,e.default)({type:"TSQualifiedName",left:v,right:J})}function XE(v=null,J,le=null){return(0,e.default)({type:"TSCallSignatureDeclaration",typeParameters:v,parameters:J,typeAnnotation:le})}function JE(v=null,J,le=null){return(0,e.default)({type:"TSConstructSignatureDeclaration",typeParameters:v,parameters:J,typeAnnotation:le})}function zE(v,J=null){return(0,e.default)({type:"TSPropertySignature",key:v,typeAnnotation:J,kind:null})}function QE(v,J=null,le,_e=null){return(0,e.default)({type:"TSMethodSignature",key:v,typeParameters:J,parameters:le,typeAnnotation:_e,kind:null})}function ZE(v,J=null){return(0,e.default)({type:"TSIndexSignature",parameters:v,typeAnnotation:J})}function eb(){return{type:"TSAnyKeyword"}}function tb(){return{type:"TSBooleanKeyword"}}function rb(){return{type:"TSBigIntKeyword"}}function nb(){return{type:"TSIntrinsicKeyword"}}function ib(){return{type:"TSNeverKeyword"}}function sb(){return{type:"TSNullKeyword"}}function ab(){return{type:"TSNumberKeyword"}}function ob(){return{type:"TSObjectKeyword"}}function ub(){return{type:"TSStringKeyword"}}function lb(){return{type:"TSSymbolKeyword"}}function cb(){return{type:"TSUndefinedKeyword"}}function fb(){return{type:"TSUnknownKeyword"}}function pb(){return{type:"TSVoidKeyword"}}function hb(){return{type:"TSThisType"}}function db(v=null,J,le=null){return(0,e.default)({type:"TSFunctionType",typeParameters:v,parameters:J,typeAnnotation:le})}function mb(v=null,J,le=null){return(0,e.default)({type:"TSConstructorType",typeParameters:v,parameters:J,typeAnnotation:le})}function yb(v,J=null){return(0,e.default)({type:"TSTypeReference",typeName:v,typeParameters:J})}function Db(v,J=null,le=null){return(0,e.default)({type:"TSTypePredicate",parameterName:v,typeAnnotation:J,asserts:le})}function gb(v,J=null){return(0,e.default)({type:"TSTypeQuery",exprName:v,typeParameters:J})}function Eb(v){return(0,e.default)({type:"TSTypeLiteral",members:v})}function bb(v){return(0,e.default)({type:"TSArrayType",elementType:v})}function Tb(v){return(0,e.default)({type:"TSTupleType",elementTypes:v})}function Sb(v){return(0,e.default)({type:"TSOptionalType",typeAnnotation:v})}function vb(v){return(0,e.default)({type:"TSRestType",typeAnnotation:v})}function Ab(v,J,le=!1){return(0,e.default)({type:"TSNamedTupleMember",label:v,elementType:J,optional:le})}function Cb(v){return(0,e.default)({type:"TSUnionType",types:v})}function Pb(v){return(0,e.default)({type:"TSIntersectionType",types:v})}function xb(v,J,le,_e){return(0,e.default)({type:"TSConditionalType",checkType:v,extendsType:J,trueType:le,falseType:_e})}function Fb(v){return(0,e.default)({type:"TSInferType",typeParameter:v})}function _b(v){return(0,e.default)({type:"TSParenthesizedType",typeAnnotation:v})}function wb(v){return(0,e.default)({type:"TSTypeOperator",typeAnnotation:v,operator:null})}function Ib(v,J){return(0,e.default)({type:"TSIndexedAccessType",objectType:v,indexType:J})}function Ob(v,J=null,le=null){return(0,e.default)({type:"TSMappedType",typeParameter:v,typeAnnotation:J,nameType:le})}function Nb(v){return(0,e.default)({type:"TSLiteralType",literal:v})}function Bb(v,J=null){return(0,e.default)({type:"TSExpressionWithTypeArguments",expression:v,typeParameters:J})}function kb(v,J=null,le=null,_e){return(0,e.default)({type:"TSInterfaceDeclaration",id:v,typeParameters:J,extends:le,body:_e})}function Lb(v){return(0,e.default)({type:"TSInterfaceBody",body:v})}function Rb(v,J=null,le){return(0,e.default)({type:"TSTypeAliasDeclaration",id:v,typeParameters:J,typeAnnotation:le})}function Mb(v,J=null){return(0,e.default)({type:"TSInstantiationExpression",expression:v,typeParameters:J})}function jb(v,J){return(0,e.default)({type:"TSAsExpression",expression:v,typeAnnotation:J})}function $b(v,J){return(0,e.default)({type:"TSSatisfiesExpression",expression:v,typeAnnotation:J})}function Ub(v,J){return(0,e.default)({type:"TSTypeAssertion",typeAnnotation:v,expression:J})}function Vb(v,J){return(0,e.default)({type:"TSEnumDeclaration",id:v,members:J})}function qb(v,J=null){return(0,e.default)({type:"TSEnumMember",id:v,initializer:J})}function Kb(v,J){return(0,e.default)({type:"TSModuleDeclaration",id:v,body:J})}function Wb(v){return(0,e.default)({type:"TSModuleBlock",body:v})}function Hb(v,J=null,le=null){return(0,e.default)({type:"TSImportType",argument:v,qualifier:J,typeParameters:le})}function Gb(v,J){return(0,e.default)({type:"TSImportEqualsDeclaration",id:v,moduleReference:J,isExport:null})}function Yb(v){return(0,e.default)({type:"TSExternalModuleReference",expression:v})}function Xb(v){return(0,e.default)({type:"TSNonNullExpression",expression:v})}function Jb(v){return(0,e.default)({type:"TSExportAssignment",expression:v})}function zb(v){return(0,e.default)({type:"TSNamespaceExportDeclaration",id:v})}function Qb(v){return(0,e.default)({type:"TSTypeAnnotation",typeAnnotation:v})}function Zb(v){return(0,e.default)({type:"TSTypeParameterInstantiation",params:v})}function eT(v){return(0,e.default)({type:"TSTypeParameterDeclaration",params:v})}function tT(v=null,J=null,le){return(0,e.default)({type:"TSTypeParameter",constraint:v,default:J,name:le})}function rT(v){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),F(v)}function nT(v,J=""){return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),B(v,J)}function iT(v){return(0,t.default)("RestProperty","RestElement","The node type "),ne(v)}function sT(v){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),Ve(v)}return L}var qh;function l6(){if(qh)return Da;qh=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.default=r;var e=Ht(),t=He();function r(n,i){const s=n.value.split(/\r\n|\n|\r/);let a=0;for(let u=0;u<s.length;u++)/[^ \t]/.exec(s[u])&&(a=u);let o="";for(let u=0;u<s.length;u++){const l=s[u],c=u===0,f=u===s.length-1,p=u===a;let h=l.replace(/\t/g," ");c||(h=h.replace(/^ +/,"")),f||(h=h.replace(/ +$/,"")),h&&(p||(h+=" "),o+=h)}o&&i.push((0,t.inherits)((0,e.stringLiteral)(o),n))}return Da}var Kh;function c6(){if(Kh)return ya;Kh=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=r;var e=M,t=l6();function r(n){const i=[];for(let s=0;s<n.children.length;s++){let a=n.children[s];if((0,e.isJSXText)(a)){(0,t.default)(a,i);continue}(0,e.isJSXExpressionContainer)(a)&&(a=a.expression),!(0,e.isJSXEmptyExpression)(a)&&i.push(a)}return i}return ya}var sf={},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=p6;var f6=br();function p6(e){return!!(e&&f6.VISITOR_KEYS[e.type])}Object.defineProperty(sf,"__esModule",{value:!0});sf.default=d6;var h6=Lo;function d6(e){if(!(0,h6.default)(e)){var t;const r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}var U={};Object.defineProperty(U,"__esModule",{value:!0});U.assertAccessor=w4;U.assertAnyTypeAnnotation=J8;U.assertArgumentPlaceholder=CM;U.assertArrayExpression=y6;U.assertArrayPattern=d8;U.assertArrayTypeAnnotation=z8;U.assertArrowFunctionExpression=m8;U.assertAssignmentExpression=D6;U.assertAssignmentPattern=h8;U.assertAwaitExpression=M8;U.assertBigIntLiteral=$8;U.assertBinary=Q9;U.assertBinaryExpression=g6;U.assertBindExpression=PM;U.assertBlock=t4;U.assertBlockParent=e4;U.assertBlockStatement=S6;U.assertBooleanLiteral=q6;U.assertBooleanLiteralTypeAnnotation=Z8;U.assertBooleanTypeAnnotation=Q8;U.assertBreakStatement=v6;U.assertCallExpression=A6;U.assertCatchClause=C6;U.assertClass=P4;U.assertClassAccessorProperty=W8;U.assertClassBody=y8;U.assertClassDeclaration=g8;U.assertClassExpression=D8;U.assertClassImplements=tR;U.assertClassMethod=w8;U.assertClassPrivateMethod=G8;U.assertClassPrivateProperty=H8;U.assertClassProperty=K8;U.assertCompletionStatement=i4;U.assertConditional=s4;U.assertConditionalExpression=P6;U.assertContinueStatement=x6;U.assertDebuggerStatement=F6;U.assertDecimalLiteral=NM;U.assertDeclaration=d4;U.assertDeclareClass=rR;U.assertDeclareExportAllDeclaration=fR;U.assertDeclareExportDeclaration=cR;U.assertDeclareFunction=nR;U.assertDeclareInterface=iR;U.assertDeclareModule=sR;U.assertDeclareModuleExports=aR;U.assertDeclareOpaqueType=uR;U.assertDeclareTypeAlias=oR;U.assertDeclareVariable=lR;U.assertDeclaredPredicate=pR;U.assertDecorator=FM;U.assertDirective=b6;U.assertDirectiveLiteral=T6;U.assertDoExpression=_M;U.assertDoWhileStatement=_6;U.assertEmptyStatement=w6;U.assertEmptyTypeAnnotation=vR;U.assertEnumBody=R4;U.assertEnumBooleanBody=zR;U.assertEnumBooleanMember=tM;U.assertEnumDeclaration=JR;U.assertEnumDefaultedMember=iM;U.assertEnumMember=M4;U.assertEnumNumberBody=QR;U.assertEnumNumberMember=rM;U.assertEnumStringBody=ZR;U.assertEnumStringMember=nM;U.assertEnumSymbolBody=eM;U.assertExistsTypeAnnotation=hR;U.assertExportAllDeclaration=E8;U.assertExportDeclaration=F4;U.assertExportDefaultDeclaration=b8;U.assertExportDefaultSpecifier=wM;U.assertExportNamedDeclaration=T8;U.assertExportNamespaceSpecifier=U8;U.assertExportSpecifier=S8;U.assertExpression=z9;U.assertExpressionStatement=I6;U.assertExpressionWrapper=u4;U.assertFile=O6;U.assertFlow=O4;U.assertFlowBaseAnnotation=B4;U.assertFlowDeclaration=k4;U.assertFlowPredicate=L4;U.assertFlowType=N4;U.assertFor=l4;U.assertForInStatement=N6;U.assertForOfStatement=v8;U.assertForStatement=B6;U.assertForXStatement=c4;U.assertFunction=f4;U.assertFunctionDeclaration=k6;U.assertFunctionExpression=L6;U.assertFunctionParent=p4;U.assertFunctionTypeAnnotation=dR;U.assertFunctionTypeParam=mR;U.assertGenericTypeAnnotation=yR;U.assertIdentifier=R6;U.assertIfStatement=M6;U.assertImmutable=E4;U.assertImport=j8;U.assertImportAttribute=xM;U.assertImportDeclaration=A8;U.assertImportDefaultSpecifier=C8;U.assertImportExpression=F8;U.assertImportNamespaceSpecifier=P8;U.assertImportOrExportDeclaration=x4;U.assertImportSpecifier=x8;U.assertIndexedAccessType=sM;U.assertInferredPredicate=DR;U.assertInterfaceDeclaration=ER;U.assertInterfaceExtends=gR;U.assertInterfaceTypeAnnotation=bR;U.assertInterpreterDirective=E6;U.assertIntersectionTypeAnnotation=TR;U.assertJSX=j4;U.assertJSXAttribute=oM;U.assertJSXClosingElement=uM;U.assertJSXClosingFragment=TM;U.assertJSXElement=lM;U.assertJSXEmptyExpression=cM;U.assertJSXExpressionContainer=fM;U.assertJSXFragment=EM;U.assertJSXIdentifier=hM;U.assertJSXMemberExpression=dM;U.assertJSXNamespacedName=mM;U.assertJSXOpeningElement=yM;U.assertJSXOpeningFragment=bM;U.assertJSXSpreadAttribute=DM;U.assertJSXSpreadChild=pM;U.assertJSXText=gM;U.assertLVal=y4;U.assertLabeledStatement=j6;U.assertLiteral=g4;U.assertLogicalExpression=W6;U.assertLoop=a4;U.assertMemberExpression=H6;U.assertMetaProperty=_8;U.assertMethod=T4;U.assertMiscellaneous=$4;U.assertMixedTypeAnnotation=SR;U.assertModuleDeclaration=X4;U.assertModuleExpression=BM;U.assertModuleSpecifier=_4;U.assertNewExpression=G6;U.assertNoop=SM;U.assertNullLiteral=V6;U.assertNullLiteralTypeAnnotation=eR;U.assertNullableTypeAnnotation=AR;U.assertNumberLiteral=W4;U.assertNumberLiteralTypeAnnotation=CR;U.assertNumberTypeAnnotation=PR;U.assertNumericLiteral=U6;U.assertObjectExpression=X6;U.assertObjectMember=S4;U.assertObjectMethod=J6;U.assertObjectPattern=I8;U.assertObjectProperty=z6;U.assertObjectTypeAnnotation=xR;U.assertObjectTypeCallProperty=_R;U.assertObjectTypeIndexer=wR;U.assertObjectTypeInternalSlot=FR;U.assertObjectTypeProperty=IR;U.assertObjectTypeSpreadProperty=OR;U.assertOpaqueType=NR;U.assertOptionalCallExpression=q8;U.assertOptionalIndexedAccessType=aM;U.assertOptionalMemberExpression=V8;U.assertParenthesizedExpression=t8;U.assertPattern=C4;U.assertPatternLike=m4;U.assertPipelineBareFunction=RM;U.assertPipelinePrimaryTopicReference=MM;U.assertPipelineTopicExpression=LM;U.assertPlaceholder=vM;U.assertPrivate=I4;U.assertPrivateName=Y8;U.assertProgram=Y6;U.assertProperty=v4;U.assertPureish=h4;U.assertQualifiedTypeIdentifier=BR;U.assertRecordExpression=IM;U.assertRegExpLiteral=K6;U.assertRegexLiteral=H4;U.assertRestElement=Q6;U.assertRestProperty=G4;U.assertReturnStatement=Z6;U.assertScopable=Z9;U.assertSequenceExpression=e8;U.assertSpreadElement=O8;U.assertSpreadProperty=Y4;U.assertStandardized=J9;U.assertStatement=r4;U.assertStaticBlock=X8;U.assertStringLiteral=$6;U.assertStringLiteralTypeAnnotation=kR;U.assertStringTypeAnnotation=LR;U.assertSuper=N8;U.assertSwitchCase=r8;U.assertSwitchStatement=n8;U.assertSymbolTypeAnnotation=RR;U.assertTSAnyKeyword=YM;U.assertTSArrayType=d9;U.assertTSAsExpression=N9;U.assertTSBaseType=K4;U.assertTSBigIntKeyword=JM;U.assertTSBooleanKeyword=XM;U.assertTSCallSignatureDeclaration=qM;U.assertTSConditionalType=T9;U.assertTSConstructSignatureDeclaration=KM;U.assertTSConstructorType=l9;U.assertTSDeclareFunction=$M;U.assertTSDeclareMethod=UM;U.assertTSEntityName=D4;U.assertTSEnumDeclaration=L9;U.assertTSEnumMember=R9;U.assertTSExportAssignment=K9;U.assertTSExpressionWithTypeArguments=F9;U.assertTSExternalModuleReference=V9;U.assertTSFunctionType=u9;U.assertTSImportEqualsDeclaration=U9;U.assertTSImportType=$9;U.assertTSIndexSignature=GM;U.assertTSIndexedAccessType=C9;U.assertTSInferType=S9;U.assertTSInstantiationExpression=O9;U.assertTSInterfaceBody=w9;U.assertTSInterfaceDeclaration=_9;U.assertTSIntersectionType=b9;U.assertTSIntrinsicKeyword=zM;U.assertTSLiteralType=x9;U.assertTSMappedType=P9;U.assertTSMethodSignature=HM;U.assertTSModuleBlock=j9;U.assertTSModuleDeclaration=M9;U.assertTSNamedTupleMember=g9;U.assertTSNamespaceExportDeclaration=W9;U.assertTSNeverKeyword=QM;U.assertTSNonNullExpression=q9;U.assertTSNullKeyword=ZM;U.assertTSNumberKeyword=e9;U.assertTSObjectKeyword=t9;U.assertTSOptionalType=y9;U.assertTSParameterProperty=jM;U.assertTSParenthesizedType=v9;U.assertTSPropertySignature=WM;U.assertTSQualifiedName=VM;U.assertTSRestType=D9;U.assertTSSatisfiesExpression=B9;U.assertTSStringKeyword=r9;U.assertTSSymbolKeyword=n9;U.assertTSThisType=o9;U.assertTSTupleType=m9;U.assertTSType=q4;U.assertTSTypeAliasDeclaration=I9;U.assertTSTypeAnnotation=H9;U.assertTSTypeAssertion=k9;U.assertTSTypeElement=V4;U.assertTSTypeLiteral=h9;U.assertTSTypeOperator=A9;U.assertTSTypeParameter=X9;U.assertTSTypeParameterDeclaration=Y9;U.assertTSTypeParameterInstantiation=G9;U.assertTSTypePredicate=f9;U.assertTSTypeQuery=p9;U.assertTSTypeReference=c9;U.assertTSUndefinedKeyword=i9;U.assertTSUnionType=E9;U.assertTSUnknownKeyword=s9;U.assertTSVoidKeyword=a9;U.assertTaggedTemplateExpression=B8;U.assertTemplateElement=k8;U.assertTemplateLiteral=L8;U.assertTerminatorless=n4;U.assertThisExpression=i8;U.assertThisTypeAnnotation=MR;U.assertThrowStatement=s8;U.assertTopicReference=kM;U.assertTryStatement=a8;U.assertTupleExpression=OM;U.assertTupleTypeAnnotation=jR;U.assertTypeAlias=UR;U.assertTypeAnnotation=VR;U.assertTypeCastExpression=qR;U.assertTypeParameter=KR;U.assertTypeParameterDeclaration=WR;U.assertTypeParameterInstantiation=HR;U.assertTypeScript=U4;U.assertTypeofTypeAnnotation=$R;U.assertUnaryExpression=o8;U.assertUnaryLike=A4;U.assertUnionTypeAnnotation=GR;U.assertUpdateExpression=u8;U.assertUserWhitespacable=b4;U.assertV8IntrinsicIdentifier=AM;U.assertVariableDeclaration=l8;U.assertVariableDeclarator=c8;U.assertVariance=YR;U.assertVoidTypeAnnotation=XR;U.assertWhile=o4;U.assertWhileStatement=f8;U.assertWithStatement=p8;U.assertYieldExpression=R8;var m6=$s(),Ks=qi;function q(e,t,r){if(!(0,m6.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function y6(e,t){q("ArrayExpression",e,t)}function D6(e,t){q("AssignmentExpression",e,t)}function g6(e,t){q("BinaryExpression",e,t)}function E6(e,t){q("InterpreterDirective",e,t)}function b6(e,t){q("Directive",e,t)}function T6(e,t){q("DirectiveLiteral",e,t)}function S6(e,t){q("BlockStatement",e,t)}function v6(e,t){q("BreakStatement",e,t)}function A6(e,t){q("CallExpression",e,t)}function C6(e,t){q("CatchClause",e,t)}function P6(e,t){q("ConditionalExpression",e,t)}function x6(e,t){q("ContinueStatement",e,t)}function F6(e,t){q("DebuggerStatement",e,t)}function _6(e,t){q("DoWhileStatement",e,t)}function w6(e,t){q("EmptyStatement",e,t)}function I6(e,t){q("ExpressionStatement",e,t)}function O6(e,t){q("File",e,t)}function N6(e,t){q("ForInStatement",e,t)}function B6(e,t){q("ForStatement",e,t)}function k6(e,t){q("FunctionDeclaration",e,t)}function L6(e,t){q("FunctionExpression",e,t)}function R6(e,t){q("Identifier",e,t)}function M6(e,t){q("IfStatement",e,t)}function j6(e,t){q("LabeledStatement",e,t)}function $6(e,t){q("StringLiteral",e,t)}function U6(e,t){q("NumericLiteral",e,t)}function V6(e,t){q("NullLiteral",e,t)}function q6(e,t){q("BooleanLiteral",e,t)}function K6(e,t){q("RegExpLiteral",e,t)}function W6(e,t){q("LogicalExpression",e,t)}function H6(e,t){q("MemberExpression",e,t)}function G6(e,t){q("NewExpression",e,t)}function Y6(e,t){q("Program",e,t)}function X6(e,t){q("ObjectExpression",e,t)}function J6(e,t){q("ObjectMethod",e,t)}function z6(e,t){q("ObjectProperty",e,t)}function Q6(e,t){q("RestElement",e,t)}function Z6(e,t){q("ReturnStatement",e,t)}function e8(e,t){q("SequenceExpression",e,t)}function t8(e,t){q("ParenthesizedExpression",e,t)}function r8(e,t){q("SwitchCase",e,t)}function n8(e,t){q("SwitchStatement",e,t)}function i8(e,t){q("ThisExpression",e,t)}function s8(e,t){q("ThrowStatement",e,t)}function a8(e,t){q("TryStatement",e,t)}function o8(e,t){q("UnaryExpression",e,t)}function u8(e,t){q("UpdateExpression",e,t)}function l8(e,t){q("VariableDeclaration",e,t)}function c8(e,t){q("VariableDeclarator",e,t)}function f8(e,t){q("WhileStatement",e,t)}function p8(e,t){q("WithStatement",e,t)}function h8(e,t){q("AssignmentPattern",e,t)}function d8(e,t){q("ArrayPattern",e,t)}function m8(e,t){q("ArrowFunctionExpression",e,t)}function y8(e,t){q("ClassBody",e,t)}function D8(e,t){q("ClassExpression",e,t)}function g8(e,t){q("ClassDeclaration",e,t)}function E8(e,t){q("ExportAllDeclaration",e,t)}function b8(e,t){q("ExportDefaultDeclaration",e,t)}function T8(e,t){q("ExportNamedDeclaration",e,t)}function S8(e,t){q("ExportSpecifier",e,t)}function v8(e,t){q("ForOfStatement",e,t)}function A8(e,t){q("ImportDeclaration",e,t)}function C8(e,t){q("ImportDefaultSpecifier",e,t)}function P8(e,t){q("ImportNamespaceSpecifier",e,t)}function x8(e,t){q("ImportSpecifier",e,t)}function F8(e,t){q("ImportExpression",e,t)}function _8(e,t){q("MetaProperty",e,t)}function w8(e,t){q("ClassMethod",e,t)}function I8(e,t){q("ObjectPattern",e,t)}function O8(e,t){q("SpreadElement",e,t)}function N8(e,t){q("Super",e,t)}function B8(e,t){q("TaggedTemplateExpression",e,t)}function k8(e,t){q("TemplateElement",e,t)}function L8(e,t){q("TemplateLiteral",e,t)}function R8(e,t){q("YieldExpression",e,t)}function M8(e,t){q("AwaitExpression",e,t)}function j8(e,t){q("Import",e,t)}function $8(e,t){q("BigIntLiteral",e,t)}function U8(e,t){q("ExportNamespaceSpecifier",e,t)}function V8(e,t){q("OptionalMemberExpression",e,t)}function q8(e,t){q("OptionalCallExpression",e,t)}function K8(e,t){q("ClassProperty",e,t)}function W8(e,t){q("ClassAccessorProperty",e,t)}function H8(e,t){q("ClassPrivateProperty",e,t)}function G8(e,t){q("ClassPrivateMethod",e,t)}function Y8(e,t){q("PrivateName",e,t)}function X8(e,t){q("StaticBlock",e,t)}function J8(e,t){q("AnyTypeAnnotation",e,t)}function z8(e,t){q("ArrayTypeAnnotation",e,t)}function Q8(e,t){q("BooleanTypeAnnotation",e,t)}function Z8(e,t){q("BooleanLiteralTypeAnnotation",e,t)}function eR(e,t){q("NullLiteralTypeAnnotation",e,t)}function tR(e,t){q("ClassImplements",e,t)}function rR(e,t){q("DeclareClass",e,t)}function nR(e,t){q("DeclareFunction",e,t)}function iR(e,t){q("DeclareInterface",e,t)}function sR(e,t){q("DeclareModule",e,t)}function aR(e,t){q("DeclareModuleExports",e,t)}function oR(e,t){q("DeclareTypeAlias",e,t)}function uR(e,t){q("DeclareOpaqueType",e,t)}function lR(e,t){q("DeclareVariable",e,t)}function cR(e,t){q("DeclareExportDeclaration",e,t)}function fR(e,t){q("DeclareExportAllDeclaration",e,t)}function pR(e,t){q("DeclaredPredicate",e,t)}function hR(e,t){q("ExistsTypeAnnotation",e,t)}function dR(e,t){q("FunctionTypeAnnotation",e,t)}function mR(e,t){q("FunctionTypeParam",e,t)}function yR(e,t){q("GenericTypeAnnotation",e,t)}function DR(e,t){q("InferredPredicate",e,t)}function gR(e,t){q("InterfaceExtends",e,t)}function ER(e,t){q("InterfaceDeclaration",e,t)}function bR(e,t){q("InterfaceTypeAnnotation",e,t)}function TR(e,t){q("IntersectionTypeAnnotation",e,t)}function SR(e,t){q("MixedTypeAnnotation",e,t)}function vR(e,t){q("EmptyTypeAnnotation",e,t)}function AR(e,t){q("NullableTypeAnnotation",e,t)}function CR(e,t){q("NumberLiteralTypeAnnotation",e,t)}function PR(e,t){q("NumberTypeAnnotation",e,t)}function xR(e,t){q("ObjectTypeAnnotation",e,t)}function FR(e,t){q("ObjectTypeInternalSlot",e,t)}function _R(e,t){q("ObjectTypeCallProperty",e,t)}function wR(e,t){q("ObjectTypeIndexer",e,t)}function IR(e,t){q("ObjectTypeProperty",e,t)}function OR(e,t){q("ObjectTypeSpreadProperty",e,t)}function NR(e,t){q("OpaqueType",e,t)}function BR(e,t){q("QualifiedTypeIdentifier",e,t)}function kR(e,t){q("StringLiteralTypeAnnotation",e,t)}function LR(e,t){q("StringTypeAnnotation",e,t)}function RR(e,t){q("SymbolTypeAnnotation",e,t)}function MR(e,t){q("ThisTypeAnnotation",e,t)}function jR(e,t){q("TupleTypeAnnotation",e,t)}function $R(e,t){q("TypeofTypeAnnotation",e,t)}function UR(e,t){q("TypeAlias",e,t)}function VR(e,t){q("TypeAnnotation",e,t)}function qR(e,t){q("TypeCastExpression",e,t)}function KR(e,t){q("TypeParameter",e,t)}function WR(e,t){q("TypeParameterDeclaration",e,t)}function HR(e,t){q("TypeParameterInstantiation",e,t)}function GR(e,t){q("UnionTypeAnnotation",e,t)}function YR(e,t){q("Variance",e,t)}function XR(e,t){q("VoidTypeAnnotation",e,t)}function JR(e,t){q("EnumDeclaration",e,t)}function zR(e,t){q("EnumBooleanBody",e,t)}function QR(e,t){q("EnumNumberBody",e,t)}function ZR(e,t){q("EnumStringBody",e,t)}function eM(e,t){q("EnumSymbolBody",e,t)}function tM(e,t){q("EnumBooleanMember",e,t)}function rM(e,t){q("EnumNumberMember",e,t)}function nM(e,t){q("EnumStringMember",e,t)}function iM(e,t){q("EnumDefaultedMember",e,t)}function sM(e,t){q("IndexedAccessType",e,t)}function aM(e,t){q("OptionalIndexedAccessType",e,t)}function oM(e,t){q("JSXAttribute",e,t)}function uM(e,t){q("JSXClosingElement",e,t)}function lM(e,t){q("JSXElement",e,t)}function cM(e,t){q("JSXEmptyExpression",e,t)}function fM(e,t){q("JSXExpressionContainer",e,t)}function pM(e,t){q("JSXSpreadChild",e,t)}function hM(e,t){q("JSXIdentifier",e,t)}function dM(e,t){q("JSXMemberExpression",e,t)}function mM(e,t){q("JSXNamespacedName",e,t)}function yM(e,t){q("JSXOpeningElement",e,t)}function DM(e,t){q("JSXSpreadAttribute",e,t)}function gM(e,t){q("JSXText",e,t)}function EM(e,t){q("JSXFragment",e,t)}function bM(e,t){q("JSXOpeningFragment",e,t)}function TM(e,t){q("JSXClosingFragment",e,t)}function SM(e,t){q("Noop",e,t)}function vM(e,t){q("Placeholder",e,t)}function AM(e,t){q("V8IntrinsicIdentifier",e,t)}function CM(e,t){q("ArgumentPlaceholder",e,t)}function PM(e,t){q("BindExpression",e,t)}function xM(e,t){q("ImportAttribute",e,t)}function FM(e,t){q("Decorator",e,t)}function _M(e,t){q("DoExpression",e,t)}function wM(e,t){q("ExportDefaultSpecifier",e,t)}function IM(e,t){q("RecordExpression",e,t)}function OM(e,t){q("TupleExpression",e,t)}function NM(e,t){q("DecimalLiteral",e,t)}function BM(e,t){q("ModuleExpression",e,t)}function kM(e,t){q("TopicReference",e,t)}function LM(e,t){q("PipelineTopicExpression",e,t)}function RM(e,t){q("PipelineBareFunction",e,t)}function MM(e,t){q("PipelinePrimaryTopicReference",e,t)}function jM(e,t){q("TSParameterProperty",e,t)}function $M(e,t){q("TSDeclareFunction",e,t)}function UM(e,t){q("TSDeclareMethod",e,t)}function VM(e,t){q("TSQualifiedName",e,t)}function qM(e,t){q("TSCallSignatureDeclaration",e,t)}function KM(e,t){q("TSConstructSignatureDeclaration",e,t)}function WM(e,t){q("TSPropertySignature",e,t)}function HM(e,t){q("TSMethodSignature",e,t)}function GM(e,t){q("TSIndexSignature",e,t)}function YM(e,t){q("TSAnyKeyword",e,t)}function XM(e,t){q("TSBooleanKeyword",e,t)}function JM(e,t){q("TSBigIntKeyword",e,t)}function zM(e,t){q("TSIntrinsicKeyword",e,t)}function QM(e,t){q("TSNeverKeyword",e,t)}function ZM(e,t){q("TSNullKeyword",e,t)}function e9(e,t){q("TSNumberKeyword",e,t)}function t9(e,t){q("TSObjectKeyword",e,t)}function r9(e,t){q("TSStringKeyword",e,t)}function n9(e,t){q("TSSymbolKeyword",e,t)}function i9(e,t){q("TSUndefinedKeyword",e,t)}function s9(e,t){q("TSUnknownKeyword",e,t)}function a9(e,t){q("TSVoidKeyword",e,t)}function o9(e,t){q("TSThisType",e,t)}function u9(e,t){q("TSFunctionType",e,t)}function l9(e,t){q("TSConstructorType",e,t)}function c9(e,t){q("TSTypeReference",e,t)}function f9(e,t){q("TSTypePredicate",e,t)}function p9(e,t){q("TSTypeQuery",e,t)}function h9(e,t){q("TSTypeLiteral",e,t)}function d9(e,t){q("TSArrayType",e,t)}function m9(e,t){q("TSTupleType",e,t)}function y9(e,t){q("TSOptionalType",e,t)}function D9(e,t){q("TSRestType",e,t)}function g9(e,t){q("TSNamedTupleMember",e,t)}function E9(e,t){q("TSUnionType",e,t)}function b9(e,t){q("TSIntersectionType",e,t)}function T9(e,t){q("TSConditionalType",e,t)}function S9(e,t){q("TSInferType",e,t)}function v9(e,t){q("TSParenthesizedType",e,t)}function A9(e,t){q("TSTypeOperator",e,t)}function C9(e,t){q("TSIndexedAccessType",e,t)}function P9(e,t){q("TSMappedType",e,t)}function x9(e,t){q("TSLiteralType",e,t)}function F9(e,t){q("TSExpressionWithTypeArguments",e,t)}function _9(e,t){q("TSInterfaceDeclaration",e,t)}function w9(e,t){q("TSInterfaceBody",e,t)}function I9(e,t){q("TSTypeAliasDeclaration",e,t)}function O9(e,t){q("TSInstantiationExpression",e,t)}function N9(e,t){q("TSAsExpression",e,t)}function B9(e,t){q("TSSatisfiesExpression",e,t)}function k9(e,t){q("TSTypeAssertion",e,t)}function L9(e,t){q("TSEnumDeclaration",e,t)}function R9(e,t){q("TSEnumMember",e,t)}function M9(e,t){q("TSModuleDeclaration",e,t)}function j9(e,t){q("TSModuleBlock",e,t)}function $9(e,t){q("TSImportType",e,t)}function U9(e,t){q("TSImportEqualsDeclaration",e,t)}function V9(e,t){q("TSExternalModuleReference",e,t)}function q9(e,t){q("TSNonNullExpression",e,t)}function K9(e,t){q("TSExportAssignment",e,t)}function W9(e,t){q("TSNamespaceExportDeclaration",e,t)}function H9(e,t){q("TSTypeAnnotation",e,t)}function G9(e,t){q("TSTypeParameterInstantiation",e,t)}function Y9(e,t){q("TSTypeParameterDeclaration",e,t)}function X9(e,t){q("TSTypeParameter",e,t)}function J9(e,t){q("Standardized",e,t)}function z9(e,t){q("Expression",e,t)}function Q9(e,t){q("Binary",e,t)}function Z9(e,t){q("Scopable",e,t)}function e4(e,t){q("BlockParent",e,t)}function t4(e,t){q("Block",e,t)}function r4(e,t){q("Statement",e,t)}function n4(e,t){q("Terminatorless",e,t)}function i4(e,t){q("CompletionStatement",e,t)}function s4(e,t){q("Conditional",e,t)}function a4(e,t){q("Loop",e,t)}function o4(e,t){q("While",e,t)}function u4(e,t){q("ExpressionWrapper",e,t)}function l4(e,t){q("For",e,t)}function c4(e,t){q("ForXStatement",e,t)}function f4(e,t){q("Function",e,t)}function p4(e,t){q("FunctionParent",e,t)}function h4(e,t){q("Pureish",e,t)}function d4(e,t){q("Declaration",e,t)}function m4(e,t){q("PatternLike",e,t)}function y4(e,t){q("LVal",e,t)}function D4(e,t){q("TSEntityName",e,t)}function g4(e,t){q("Literal",e,t)}function E4(e,t){q("Immutable",e,t)}function b4(e,t){q("UserWhitespacable",e,t)}function T4(e,t){q("Method",e,t)}function S4(e,t){q("ObjectMember",e,t)}function v4(e,t){q("Property",e,t)}function A4(e,t){q("UnaryLike",e,t)}function C4(e,t){q("Pattern",e,t)}function P4(e,t){q("Class",e,t)}function x4(e,t){q("ImportOrExportDeclaration",e,t)}function F4(e,t){q("ExportDeclaration",e,t)}function _4(e,t){q("ModuleSpecifier",e,t)}function w4(e,t){q("Accessor",e,t)}function I4(e,t){q("Private",e,t)}function O4(e,t){q("Flow",e,t)}function N4(e,t){q("FlowType",e,t)}function B4(e,t){q("FlowBaseAnnotation",e,t)}function k4(e,t){q("FlowDeclaration",e,t)}function L4(e,t){q("FlowPredicate",e,t)}function R4(e,t){q("EnumBody",e,t)}function M4(e,t){q("EnumMember",e,t)}function j4(e,t){q("JSX",e,t)}function $4(e,t){q("Miscellaneous",e,t)}function U4(e,t){q("TypeScript",e,t)}function V4(e,t){q("TSTypeElement",e,t)}function q4(e,t){q("TSType",e,t)}function K4(e,t){q("TSBaseType",e,t)}function W4(e,t){(0,Ks.default)("assertNumberLiteral","assertNumericLiteral"),q("NumberLiteral",e,t)}function H4(e,t){(0,Ks.default)("assertRegexLiteral","assertRegExpLiteral"),q("RegexLiteral",e,t)}function G4(e,t){(0,Ks.default)("assertRestProperty","assertRestElement"),q("RestProperty",e,t)}function Y4(e,t){(0,Ks.default)("assertSpreadProperty","assertSpreadElement"),q("SpreadProperty",e,t)}function X4(e,t){(0,Ks.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),q("ModuleDeclaration",e,t)}var is={},Wh;function J4(){if(Wh)return is;Wh=1,Object.defineProperty(is,"__esModule",{value:!0}),is.default=void 0;var e=Ht();is.default=t;function t(r){switch(r){case"string":return(0,e.stringTypeAnnotation)();case"number":return(0,e.numberTypeAnnotation)();case"undefined":return(0,e.voidTypeAnnotation)();case"boolean":return(0,e.booleanTypeAnnotation)();case"function":return(0,e.genericTypeAnnotation)((0,e.identifier)("Function"));case"object":return(0,e.genericTypeAnnotation)((0,e.identifier)("Object"));case"symbol":return(0,e.genericTypeAnnotation)((0,e.identifier)("Symbol"));case"bigint":return(0,e.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}return is}var va={},Ro={};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=uD;var ds=M;function oD(e){return(0,ds.isIdentifier)(e)?e.name:`${e.id.name}.${oD(e.qualification)}`}function uD(e){const t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){const o=t[a];if(o&&!s.includes(o)){if((0,ds.isAnyTypeAnnotation)(o))return[o];if((0,ds.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0,ds.isUnionTypeAnnotation)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0,ds.isGenericTypeAnnotation)(o)){const u=oD(o.id);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=uD(l.typeParameters.params)):l=o.typeParameters}else r.set(u,o);continue}s.push(o)}}for(const[,a]of n)s.push(a);for(const[,a]of r)s.push(a);return s}var Hh;function z4(){if(Hh)return va;Hh=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=r;var e=Ht(),t=Ro;function r(n){const i=(0,t.default)(n);return i.length===1?i[0]:(0,e.unionTypeAnnotation)(i)}return va}var Aa={},af={};Object.defineProperty(af,"__esModule",{value:!0});af.default=cD;var ms=M;function lD(e){return(0,ms.isIdentifier)(e)?e.name:`${e.right.name}.${lD(e.left)}`}function cD(e){const t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){const o=t[a];if(o&&!s.includes(o)){if((0,ms.isTSAnyKeyword)(o))return[o];if((0,ms.isTSBaseType)(o)){n.set(o.type,o);continue}if((0,ms.isTSUnionType)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0,ms.isTSTypeReference)(o)&&o.typeParameters){const u=lD(o.typeName);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=cD(l.typeParameters.params)):l=o.typeParameters}else r.set(u,o);continue}s.push(o)}}for(const[,a]of n)s.push(a);for(const[,a]of r)s.push(a);return s}var Gh;function Q4(){if(Gh)return Aa;Gh=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=n;var e=Ht(),t=af,r=M;function n(i){const s=i.map(o=>(0,r.isTSTypeAnnotation)(o)?o.typeAnnotation:o),a=(0,t.default)(s);return a.length===1?a[0]:(0,e.tsUnionType)(a)}return Aa}var Hu={},Yh;function Z4(){return Yh||(Yh=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnyTypeAnnotation",{enumerable:!0,get:function(){return t.anyTypeAnnotation}}),Object.defineProperty(e,"ArgumentPlaceholder",{enumerable:!0,get:function(){return t.argumentPlaceholder}}),Object.defineProperty(e,"ArrayExpression",{enumerable:!0,get:function(){return t.arrayExpression}}),Object.defineProperty(e,"ArrayPattern",{enumerable:!0,get:function(){return t.arrayPattern}}),Object.defineProperty(e,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return t.arrayTypeAnnotation}}),Object.defineProperty(e,"ArrowFunctionExpression",{enumerable:!0,get:function(){return t.arrowFunctionExpression}}),Object.defineProperty(e,"AssignmentExpression",{enumerable:!0,get:function(){return t.assignmentExpression}}),Object.defineProperty(e,"AssignmentPattern",{enumerable:!0,get:function(){return t.assignmentPattern}}),Object.defineProperty(e,"AwaitExpression",{enumerable:!0,get:function(){return t.awaitExpression}}),Object.defineProperty(e,"BigIntLiteral",{enumerable:!0,get:function(){return t.bigIntLiteral}}),Object.defineProperty(e,"BinaryExpression",{enumerable:!0,get:function(){return t.binaryExpression}}),Object.defineProperty(e,"BindExpression",{enumerable:!0,get:function(){return t.bindExpression}}),Object.defineProperty(e,"BlockStatement",{enumerable:!0,get:function(){return t.blockStatement}}),Object.defineProperty(e,"BooleanLiteral",{enumerable:!0,get:function(){return t.booleanLiteral}}),Object.defineProperty(e,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.booleanLiteralTypeAnnotation}}),Object.defineProperty(e,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return t.booleanTypeAnnotation}}),Object.defineProperty(e,"BreakStatement",{enumerable:!0,get:function(){return t.breakStatement}}),Object.defineProperty(e,"CallExpression",{enumerable:!0,get:function(){return t.callExpression}}),Object.defineProperty(e,"CatchClause",{enumerable:!0,get:function(){return t.catchClause}}),Object.defineProperty(e,"ClassAccessorProperty",{enumerable:!0,get:function(){return t.classAccessorProperty}}),Object.defineProperty(e,"ClassBody",{enumerable:!0,get:function(){return t.classBody}}),Object.defineProperty(e,"ClassDeclaration",{enumerable:!0,get:function(){return t.classDeclaration}}),Object.defineProperty(e,"ClassExpression",{enumerable:!0,get:function(){return t.classExpression}}),Object.defineProperty(e,"ClassImplements",{enumerable:!0,get:function(){return t.classImplements}}),Object.defineProperty(e,"ClassMethod",{enumerable:!0,get:function(){return t.classMethod}}),Object.defineProperty(e,"ClassPrivateMethod",{enumerable:!0,get:function(){return t.classPrivateMethod}}),Object.defineProperty(e,"ClassPrivateProperty",{enumerable:!0,get:function(){return t.classPrivateProperty}}),Object.defineProperty(e,"ClassProperty",{enumerable:!0,get:function(){return t.classProperty}}),Object.defineProperty(e,"ConditionalExpression",{enumerable:!0,get:function(){return t.conditionalExpression}}),Object.defineProperty(e,"ContinueStatement",{enumerable:!0,get:function(){return t.continueStatement}}),Object.defineProperty(e,"DebuggerStatement",{enumerable:!0,get:function(){return t.debuggerStatement}}),Object.defineProperty(e,"DecimalLiteral",{enumerable:!0,get:function(){return t.decimalLiteral}}),Object.defineProperty(e,"DeclareClass",{enumerable:!0,get:function(){return t.declareClass}}),Object.defineProperty(e,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return t.declareExportAllDeclaration}}),Object.defineProperty(e,"DeclareExportDeclaration",{enumerable:!0,get:function(){return t.declareExportDeclaration}}),Object.defineProperty(e,"DeclareFunction",{enumerable:!0,get:function(){return t.declareFunction}}),Object.defineProperty(e,"DeclareInterface",{enumerable:!0,get:function(){return t.declareInterface}}),Object.defineProperty(e,"DeclareModule",{enumerable:!0,get:function(){return t.declareModule}}),Object.defineProperty(e,"DeclareModuleExports",{enumerable:!0,get:function(){return t.declareModuleExports}}),Object.defineProperty(e,"DeclareOpaqueType",{enumerable:!0,get:function(){return t.declareOpaqueType}}),Object.defineProperty(e,"DeclareTypeAlias",{enumerable:!0,get:function(){return t.declareTypeAlias}}),Object.defineProperty(e,"DeclareVariable",{enumerable:!0,get:function(){return t.declareVariable}}),Object.defineProperty(e,"DeclaredPredicate",{enumerable:!0,get:function(){return t.declaredPredicate}}),Object.defineProperty(e,"Decorator",{enumerable:!0,get:function(){return t.decorator}}),Object.defineProperty(e,"Directive",{enumerable:!0,get:function(){return t.directive}}),Object.defineProperty(e,"DirectiveLiteral",{enumerable:!0,get:function(){return t.directiveLiteral}}),Object.defineProperty(e,"DoExpression",{enumerable:!0,get:function(){return t.doExpression}}),Object.defineProperty(e,"DoWhileStatement",{enumerable:!0,get:function(){return t.doWhileStatement}}),Object.defineProperty(e,"EmptyStatement",{enumerable:!0,get:function(){return t.emptyStatement}}),Object.defineProperty(e,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return t.emptyTypeAnnotation}}),Object.defineProperty(e,"EnumBooleanBody",{enumerable:!0,get:function(){return t.enumBooleanBody}}),Object.defineProperty(e,"EnumBooleanMember",{enumerable:!0,get:function(){return t.enumBooleanMember}}),Object.defineProperty(e,"EnumDeclaration",{enumerable:!0,get:function(){return t.enumDeclaration}}),Object.defineProperty(e,"EnumDefaultedMember",{enumerable:!0,get:function(){return t.enumDefaultedMember}}),Object.defineProperty(e,"EnumNumberBody",{enumerable:!0,get:function(){return t.enumNumberBody}}),Object.defineProperty(e,"EnumNumberMember",{enumerable:!0,get:function(){return t.enumNumberMember}}),Object.defineProperty(e,"EnumStringBody",{enumerable:!0,get:function(){return t.enumStringBody}}),Object.defineProperty(e,"EnumStringMember",{enumerable:!0,get:function(){return t.enumStringMember}}),Object.defineProperty(e,"EnumSymbolBody",{enumerable:!0,get:function(){return t.enumSymbolBody}}),Object.defineProperty(e,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return t.existsTypeAnnotation}}),Object.defineProperty(e,"ExportAllDeclaration",{enumerable:!0,get:function(){return t.exportAllDeclaration}}),Object.defineProperty(e,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return t.exportDefaultDeclaration}}),Object.defineProperty(e,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return t.exportDefaultSpecifier}}),Object.defineProperty(e,"ExportNamedDeclaration",{enumerable:!0,get:function(){return t.exportNamedDeclaration}}),Object.defineProperty(e,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return t.exportNamespaceSpecifier}}),Object.defineProperty(e,"ExportSpecifier",{enumerable:!0,get:function(){return t.exportSpecifier}}),Object.defineProperty(e,"ExpressionStatement",{enumerable:!0,get:function(){return t.expressionStatement}}),Object.defineProperty(e,"File",{enumerable:!0,get:function(){return t.file}}),Object.defineProperty(e,"ForInStatement",{enumerable:!0,get:function(){return t.forInStatement}}),Object.defineProperty(e,"ForOfStatement",{enumerable:!0,get:function(){return t.forOfStatement}}),Object.defineProperty(e,"ForStatement",{enumerable:!0,get:function(){return t.forStatement}}),Object.defineProperty(e,"FunctionDeclaration",{enumerable:!0,get:function(){return t.functionDeclaration}}),Object.defineProperty(e,"FunctionExpression",{enumerable:!0,get:function(){return t.functionExpression}}),Object.defineProperty(e,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return t.functionTypeAnnotation}}),Object.defineProperty(e,"FunctionTypeParam",{enumerable:!0,get:function(){return t.functionTypeParam}}),Object.defineProperty(e,"GenericTypeAnnotation",{enumerable:!0,get:function(){return t.genericTypeAnnotation}}),Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return t.identifier}}),Object.defineProperty(e,"IfStatement",{enumerable:!0,get:function(){return t.ifStatement}}),Object.defineProperty(e,"Import",{enumerable:!0,get:function(){return t.import}}),Object.defineProperty(e,"ImportAttribute",{enumerable:!0,get:function(){return t.importAttribute}}),Object.defineProperty(e,"ImportDeclaration",{enumerable:!0,get:function(){return t.importDeclaration}}),Object.defineProperty(e,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return t.importDefaultSpecifier}}),Object.defineProperty(e,"ImportExpression",{enumerable:!0,get:function(){return t.importExpression}}),Object.defineProperty(e,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return t.importNamespaceSpecifier}}),Object.defineProperty(e,"ImportSpecifier",{enumerable:!0,get:function(){return t.importSpecifier}}),Object.defineProperty(e,"IndexedAccessType",{enumerable:!0,get:function(){return t.indexedAccessType}}),Object.defineProperty(e,"InferredPredicate",{enumerable:!0,get:function(){return t.inferredPredicate}}),Object.defineProperty(e,"InterfaceDeclaration",{enumerable:!0,get:function(){return t.interfaceDeclaration}}),Object.defineProperty(e,"InterfaceExtends",{enumerable:!0,get:function(){return t.interfaceExtends}}),Object.defineProperty(e,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return t.interfaceTypeAnnotation}}),Object.defineProperty(e,"InterpreterDirective",{enumerable:!0,get:function(){return t.interpreterDirective}}),Object.defineProperty(e,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return t.intersectionTypeAnnotation}}),Object.defineProperty(e,"JSXAttribute",{enumerable:!0,get:function(){return t.jsxAttribute}}),Object.defineProperty(e,"JSXClosingElement",{enumerable:!0,get:function(){return t.jsxClosingElement}}),Object.defineProperty(e,"JSXClosingFragment",{enumerable:!0,get:function(){return t.jsxClosingFragment}}),Object.defineProperty(e,"JSXElement",{enumerable:!0,get:function(){return t.jsxElement}}),Object.defineProperty(e,"JSXEmptyExpression",{enumerable:!0,get:function(){return t.jsxEmptyExpression}}),Object.defineProperty(e,"JSXExpressionContainer",{enumerable:!0,get:function(){return t.jsxExpressionContainer}}),Object.defineProperty(e,"JSXFragment",{enumerable:!0,get:function(){return t.jsxFragment}}),Object.defineProperty(e,"JSXIdentifier",{enumerable:!0,get:function(){return t.jsxIdentifier}}),Object.defineProperty(e,"JSXMemberExpression",{enumerable:!0,get:function(){return t.jsxMemberExpression}}),Object.defineProperty(e,"JSXNamespacedName",{enumerable:!0,get:function(){return t.jsxNamespacedName}}),Object.defineProperty(e,"JSXOpeningElement",{enumerable:!0,get:function(){return t.jsxOpeningElement}}),Object.defineProperty(e,"JSXOpeningFragment",{enumerable:!0,get:function(){return t.jsxOpeningFragment}}),Object.defineProperty(e,"JSXSpreadAttribute",{enumerable:!0,get:function(){return t.jsxSpreadAttribute}}),Object.defineProperty(e,"JSXSpreadChild",{enumerable:!0,get:function(){return t.jsxSpreadChild}}),Object.defineProperty(e,"JSXText",{enumerable:!0,get:function(){return t.jsxText}}),Object.defineProperty(e,"LabeledStatement",{enumerable:!0,get:function(){return t.labeledStatement}}),Object.defineProperty(e,"LogicalExpression",{enumerable:!0,get:function(){return t.logicalExpression}}),Object.defineProperty(e,"MemberExpression",{enumerable:!0,get:function(){return t.memberExpression}}),Object.defineProperty(e,"MetaProperty",{enumerable:!0,get:function(){return t.metaProperty}}),Object.defineProperty(e,"MixedTypeAnnotation",{enumerable:!0,get:function(){return t.mixedTypeAnnotation}}),Object.defineProperty(e,"ModuleExpression",{enumerable:!0,get:function(){return t.moduleExpression}}),Object.defineProperty(e,"NewExpression",{enumerable:!0,get:function(){return t.newExpression}}),Object.defineProperty(e,"Noop",{enumerable:!0,get:function(){return t.noop}}),Object.defineProperty(e,"NullLiteral",{enumerable:!0,get:function(){return t.nullLiteral}}),Object.defineProperty(e,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.nullLiteralTypeAnnotation}}),Object.defineProperty(e,"NullableTypeAnnotation",{enumerable:!0,get:function(){return t.nullableTypeAnnotation}}),Object.defineProperty(e,"NumberLiteral",{enumerable:!0,get:function(){return t.numberLiteral}}),Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.numberLiteralTypeAnnotation}}),Object.defineProperty(e,"NumberTypeAnnotation",{enumerable:!0,get:function(){return t.numberTypeAnnotation}}),Object.defineProperty(e,"NumericLiteral",{enumerable:!0,get:function(){return t.numericLiteral}}),Object.defineProperty(e,"ObjectExpression",{enumerable:!0,get:function(){return t.objectExpression}}),Object.defineProperty(e,"ObjectMethod",{enumerable:!0,get:function(){return t.objectMethod}}),Object.defineProperty(e,"ObjectPattern",{enumerable:!0,get:function(){return t.objectPattern}}),Object.defineProperty(e,"ObjectProperty",{enumerable:!0,get:function(){return t.objectProperty}}),Object.defineProperty(e,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return t.objectTypeAnnotation}}),Object.defineProperty(e,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return t.objectTypeCallProperty}}),Object.defineProperty(e,"ObjectTypeIndexer",{enumerable:!0,get:function(){return t.objectTypeIndexer}}),Object.defineProperty(e,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return t.objectTypeInternalSlot}}),Object.defineProperty(e,"ObjectTypeProperty",{enumerable:!0,get:function(){return t.objectTypeProperty}}),Object.defineProperty(e,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return t.objectTypeSpreadProperty}}),Object.defineProperty(e,"OpaqueType",{enumerable:!0,get:function(){return t.opaqueType}}),Object.defineProperty(e,"OptionalCallExpression",{enumerable:!0,get:function(){return t.optionalCallExpression}}),Object.defineProperty(e,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return t.optionalIndexedAccessType}}),Object.defineProperty(e,"OptionalMemberExpression",{enumerable:!0,get:function(){return t.optionalMemberExpression}}),Object.defineProperty(e,"ParenthesizedExpression",{enumerable:!0,get:function(){return t.parenthesizedExpression}}),Object.defineProperty(e,"PipelineBareFunction",{enumerable:!0,get:function(){return t.pipelineBareFunction}}),Object.defineProperty(e,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return t.pipelinePrimaryTopicReference}}),Object.defineProperty(e,"PipelineTopicExpression",{enumerable:!0,get:function(){return t.pipelineTopicExpression}}),Object.defineProperty(e,"Placeholder",{enumerable:!0,get:function(){return t.placeholder}}),Object.defineProperty(e,"PrivateName",{enumerable:!0,get:function(){return t.privateName}}),Object.defineProperty(e,"Program",{enumerable:!0,get:function(){return t.program}}),Object.defineProperty(e,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return t.qualifiedTypeIdentifier}}),Object.defineProperty(e,"RecordExpression",{enumerable:!0,get:function(){return t.recordExpression}}),Object.defineProperty(e,"RegExpLiteral",{enumerable:!0,get:function(){return t.regExpLiteral}}),Object.defineProperty(e,"RegexLiteral",{enumerable:!0,get:function(){return t.regexLiteral}}),Object.defineProperty(e,"RestElement",{enumerable:!0,get:function(){return t.restElement}}),Object.defineProperty(e,"RestProperty",{enumerable:!0,get:function(){return t.restProperty}}),Object.defineProperty(e,"ReturnStatement",{enumerable:!0,get:function(){return t.returnStatement}}),Object.defineProperty(e,"SequenceExpression",{enumerable:!0,get:function(){return t.sequenceExpression}}),Object.defineProperty(e,"SpreadElement",{enumerable:!0,get:function(){return t.spreadElement}}),Object.defineProperty(e,"SpreadProperty",{enumerable:!0,get:function(){return t.spreadProperty}}),Object.defineProperty(e,"StaticBlock",{enumerable:!0,get:function(){return t.staticBlock}}),Object.defineProperty(e,"StringLiteral",{enumerable:!0,get:function(){return t.stringLiteral}}),Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return t.stringLiteralTypeAnnotation}}),Object.defineProperty(e,"StringTypeAnnotation",{enumerable:!0,get:function(){return t.stringTypeAnnotation}}),Object.defineProperty(e,"Super",{enumerable:!0,get:function(){return t.super}}),Object.defineProperty(e,"SwitchCase",{enumerable:!0,get:function(){return t.switchCase}}),Object.defineProperty(e,"SwitchStatement",{enumerable:!0,get:function(){return t.switchStatement}}),Object.defineProperty(e,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return t.symbolTypeAnnotation}}),Object.defineProperty(e,"TSAnyKeyword",{enumerable:!0,get:function(){return t.tsAnyKeyword}}),Object.defineProperty(e,"TSArrayType",{enumerable:!0,get:function(){return t.tsArrayType}}),Object.defineProperty(e,"TSAsExpression",{enumerable:!0,get:function(){return t.tsAsExpression}}),Object.defineProperty(e,"TSBigIntKeyword",{enumerable:!0,get:function(){return t.tsBigIntKeyword}}),Object.defineProperty(e,"TSBooleanKeyword",{enumerable:!0,get:function(){return t.tsBooleanKeyword}}),Object.defineProperty(e,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return t.tsCallSignatureDeclaration}}),Object.defineProperty(e,"TSConditionalType",{enumerable:!0,get:function(){return t.tsConditionalType}}),Object.defineProperty(e,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return t.tsConstructSignatureDeclaration}}),Object.defineProperty(e,"TSConstructorType",{enumerable:!0,get:function(){return t.tsConstructorType}}),Object.defineProperty(e,"TSDeclareFunction",{enumerable:!0,get:function(){return t.tsDeclareFunction}}),Object.defineProperty(e,"TSDeclareMethod",{enumerable:!0,get:function(){return t.tsDeclareMethod}}),Object.defineProperty(e,"TSEnumDeclaration",{enumerable:!0,get:function(){return t.tsEnumDeclaration}}),Object.defineProperty(e,"TSEnumMember",{enumerable:!0,get:function(){return t.tsEnumMember}}),Object.defineProperty(e,"TSExportAssignment",{enumerable:!0,get:function(){return t.tsExportAssignment}}),Object.defineProperty(e,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return t.tsExpressionWithTypeArguments}}),Object.defineProperty(e,"TSExternalModuleReference",{enumerable:!0,get:function(){return t.tsExternalModuleReference}}),Object.defineProperty(e,"TSFunctionType",{enumerable:!0,get:function(){return t.tsFunctionType}}),Object.defineProperty(e,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return t.tsImportEqualsDeclaration}}),Object.defineProperty(e,"TSImportType",{enumerable:!0,get:function(){return t.tsImportType}}),Object.defineProperty(e,"TSIndexSignature",{enumerable:!0,get:function(){return t.tsIndexSignature}}),Object.defineProperty(e,"TSIndexedAccessType",{enumerable:!0,get:function(){return t.tsIndexedAccessType}}),Object.defineProperty(e,"TSInferType",{enumerable:!0,get:function(){return t.tsInferType}}),Object.defineProperty(e,"TSInstantiationExpression",{enumerable:!0,get:function(){return t.tsInstantiationExpression}}),Object.defineProperty(e,"TSInterfaceBody",{enumerable:!0,get:function(){return t.tsInterfaceBody}}),Object.defineProperty(e,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return t.tsInterfaceDeclaration}}),Object.defineProperty(e,"TSIntersectionType",{enumerable:!0,get:function(){return t.tsIntersectionType}}),Object.defineProperty(e,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return t.tsIntrinsicKeyword}}),Object.defineProperty(e,"TSLiteralType",{enumerable:!0,get:function(){return t.tsLiteralType}}),Object.defineProperty(e,"TSMappedType",{enumerable:!0,get:function(){return t.tsMappedType}}),Object.defineProperty(e,"TSMethodSignature",{enumerable:!0,get:function(){return t.tsMethodSignature}}),Object.defineProperty(e,"TSModuleBlock",{enumerable:!0,get:function(){return t.tsModuleBlock}}),Object.defineProperty(e,"TSModuleDeclaration",{enumerable:!0,get:function(){return t.tsModuleDeclaration}}),Object.defineProperty(e,"TSNamedTupleMember",{enumerable:!0,get:function(){return t.tsNamedTupleMember}}),Object.defineProperty(e,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return t.tsNamespaceExportDeclaration}}),Object.defineProperty(e,"TSNeverKeyword",{enumerable:!0,get:function(){return t.tsNeverKeyword}}),Object.defineProperty(e,"TSNonNullExpression",{enumerable:!0,get:function(){return t.tsNonNullExpression}}),Object.defineProperty(e,"TSNullKeyword",{enumerable:!0,get:function(){return t.tsNullKeyword}}),Object.defineProperty(e,"TSNumberKeyword",{enumerable:!0,get:function(){return t.tsNumberKeyword}}),Object.defineProperty(e,"TSObjectKeyword",{enumerable:!0,get:function(){return t.tsObjectKeyword}}),Object.defineProperty(e,"TSOptionalType",{enumerable:!0,get:function(){return t.tsOptionalType}}),Object.defineProperty(e,"TSParameterProperty",{enumerable:!0,get:function(){return t.tsParameterProperty}}),Object.defineProperty(e,"TSParenthesizedType",{enumerable:!0,get:function(){return t.tsParenthesizedType}}),Object.defineProperty(e,"TSPropertySignature",{enumerable:!0,get:function(){return t.tsPropertySignature}}),Object.defineProperty(e,"TSQualifiedName",{enumerable:!0,get:function(){return t.tsQualifiedName}}),Object.defineProperty(e,"TSRestType",{enumerable:!0,get:function(){return t.tsRestType}}),Object.defineProperty(e,"TSSatisfiesExpression",{enumerable:!0,get:function(){return t.tsSatisfiesExpression}}),Object.defineProperty(e,"TSStringKeyword",{enumerable:!0,get:function(){return t.tsStringKeyword}}),Object.defineProperty(e,"TSSymbolKeyword",{enumerable:!0,get:function(){return t.tsSymbolKeyword}}),Object.defineProperty(e,"TSThisType",{enumerable:!0,get:function(){return t.tsThisType}}),Object.defineProperty(e,"TSTupleType",{enumerable:!0,get:function(){return t.tsTupleType}}),Object.defineProperty(e,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return t.tsTypeAliasDeclaration}}),Object.defineProperty(e,"TSTypeAnnotation",{enumerable:!0,get:function(){return t.tsTypeAnnotation}}),Object.defineProperty(e,"TSTypeAssertion",{enumerable:!0,get:function(){return t.tsTypeAssertion}}),Object.defineProperty(e,"TSTypeLiteral",{enumerable:!0,get:function(){return t.tsTypeLiteral}}),Object.defineProperty(e,"TSTypeOperator",{enumerable:!0,get:function(){return t.tsTypeOperator}}),Object.defineProperty(e,"TSTypeParameter",{enumerable:!0,get:function(){return t.tsTypeParameter}}),Object.defineProperty(e,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return t.tsTypeParameterDeclaration}}),Object.defineProperty(e,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return t.tsTypeParameterInstantiation}}),Object.defineProperty(e,"TSTypePredicate",{enumerable:!0,get:function(){return t.tsTypePredicate}}),Object.defineProperty(e,"TSTypeQuery",{enumerable:!0,get:function(){return t.tsTypeQuery}}),Object.defineProperty(e,"TSTypeReference",{enumerable:!0,get:function(){return t.tsTypeReference}}),Object.defineProperty(e,"TSUndefinedKeyword",{enumerable:!0,get:function(){return t.tsUndefinedKeyword}}),Object.defineProperty(e,"TSUnionType",{enumerable:!0,get:function(){return t.tsUnionType}}),Object.defineProperty(e,"TSUnknownKeyword",{enumerable:!0,get:function(){return t.tsUnknownKeyword}}),Object.defineProperty(e,"TSVoidKeyword",{enumerable:!0,get:function(){return t.tsVoidKeyword}}),Object.defineProperty(e,"TaggedTemplateExpression",{enumerable:!0,get:function(){return t.taggedTemplateExpression}}),Object.defineProperty(e,"TemplateElement",{enumerable:!0,get:function(){return t.templateElement}}),Object.defineProperty(e,"TemplateLiteral",{enumerable:!0,get:function(){return t.templateLiteral}}),Object.defineProperty(e,"ThisExpression",{enumerable:!0,get:function(){return t.thisExpression}}),Object.defineProperty(e,"ThisTypeAnnotation",{enumerable:!0,get:function(){return t.thisTypeAnnotation}}),Object.defineProperty(e,"ThrowStatement",{enumerable:!0,get:function(){return t.throwStatement}}),Object.defineProperty(e,"TopicReference",{enumerable:!0,get:function(){return t.topicReference}}),Object.defineProperty(e,"TryStatement",{enumerable:!0,get:function(){return t.tryStatement}}),Object.defineProperty(e,"TupleExpression",{enumerable:!0,get:function(){return t.tupleExpression}}),Object.defineProperty(e,"TupleTypeAnnotation",{enumerable:!0,get:function(){return t.tupleTypeAnnotation}}),Object.defineProperty(e,"TypeAlias",{enumerable:!0,get:function(){return t.typeAlias}}),Object.defineProperty(e,"TypeAnnotation",{enumerable:!0,get:function(){return t.typeAnnotation}}),Object.defineProperty(e,"TypeCastExpression",{enumerable:!0,get:function(){return t.typeCastExpression}}),Object.defineProperty(e,"TypeParameter",{enumerable:!0,get:function(){return t.typeParameter}}),Object.defineProperty(e,"TypeParameterDeclaration",{enumerable:!0,get:function(){return t.typeParameterDeclaration}}),Object.defineProperty(e,"TypeParameterInstantiation",{enumerable:!0,get:function(){return t.typeParameterInstantiation}}),Object.defineProperty(e,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return t.typeofTypeAnnotation}}),Object.defineProperty(e,"UnaryExpression",{enumerable:!0,get:function(){return t.unaryExpression}}),Object.defineProperty(e,"UnionTypeAnnotation",{enumerable:!0,get:function(){return t.unionTypeAnnotation}}),Object.defineProperty(e,"UpdateExpression",{enumerable:!0,get:function(){return t.updateExpression}}),Object.defineProperty(e,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return t.v8IntrinsicIdentifier}}),Object.defineProperty(e,"VariableDeclaration",{enumerable:!0,get:function(){return t.variableDeclaration}}),Object.defineProperty(e,"VariableDeclarator",{enumerable:!0,get:function(){return t.variableDeclarator}}),Object.defineProperty(e,"Variance",{enumerable:!0,get:function(){return t.variance}}),Object.defineProperty(e,"VoidTypeAnnotation",{enumerable:!0,get:function(){return t.voidTypeAnnotation}}),Object.defineProperty(e,"WhileStatement",{enumerable:!0,get:function(){return t.whileStatement}}),Object.defineProperty(e,"WithStatement",{enumerable:!0,get:function(){return t.withStatement}}),Object.defineProperty(e,"YieldExpression",{enumerable:!0,get:function(){return t.yieldExpression}});var t=Ht()}(Hu)),Hu}var Ca={},Xh;function fD(){if(Xh)return Ca;Xh=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.buildUndefinedNode=t;var e=Ht();function t(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)}return Ca}var nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.default=e5;var Jh=br(),zh=M;const{hasOwn:Sr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Qh(e,t,r,n){return e&&typeof e.type=="string"?pD(e,t,r,n):e}function Gu(e,t,r,n){return Array.isArray(e)?e.map(i=>Qh(i,t,r,n)):Qh(e,t,r,n)}function e5(e,t=!0,r=!1){return pD(e,t,r,new Map)}function pD(e,t=!0,r=!1,n){if(!e)return e;const{type:i}=e,s={type:e.type};if((0,zh.isIdentifier)(e))s.name=e.name,Sr(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),Sr(e,"typeAnnotation")&&(s.typeAnnotation=t?Gu(e.typeAnnotation,!0,r,n):e.typeAnnotation),Sr(e,"decorators")&&(s.decorators=t?Gu(e.decorators,!0,r,n):e.decorators);else if(Sr(Jh.NODE_FIELDS,i))for(const a of Object.keys(Jh.NODE_FIELDS[i]))Sr(e,a)&&(t?s[a]=(0,zh.isFile)(e)&&a==="comments"?Pa(e.comments,t,r,n):Gu(e[a],!0,r,n):s[a]=e[a]);else throw new Error(`Unknown node type: "${i}"`);return Sr(e,"loc")&&(r?s.loc=null:s.loc=e.loc),Sr(e,"leadingComments")&&(s.leadingComments=Pa(e.leadingComments,t,r,n)),Sr(e,"innerComments")&&(s.innerComments=Pa(e.innerComments,t,r,n)),Sr(e,"trailingComments")&&(s.trailingComments=Pa(e.trailingComments,t,r,n)),Sr(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function Pa(e,t,r,n){return!e||!t?e:e.map(i=>{const s=n.get(i);if(s)return s;const{type:a,value:o,loc:u}=i,l={type:a,value:o,loc:u};return r&&(l.loc=null),n.set(i,l),l})}var of={};Object.defineProperty(of,"__esModule",{value:!0});of.default=r5;var t5=nn;function r5(e){return(0,t5.default)(e,!1)}var uf={};Object.defineProperty(uf,"__esModule",{value:!0});uf.default=i5;var n5=nn;function i5(e){return(0,n5.default)(e)}var lf={};Object.defineProperty(lf,"__esModule",{value:!0});lf.default=a5;var s5=nn;function a5(e){return(0,s5.default)(e,!0,!0)}var cf={};Object.defineProperty(cf,"__esModule",{value:!0});cf.default=u5;var o5=nn;function u5(e){return(0,o5.default)(e,!1,!0)}var ff={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=l5;function l5(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}Object.defineProperty(ff,"__esModule",{value:!0});ff.default=f5;var c5=Mo;function f5(e,t,r,n){return(0,c5.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}var jo={},Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=p5;function p5(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}Object.defineProperty(jo,"__esModule",{value:!0});jo.default=d5;var h5=Ws;function d5(e,t){(0,h5.default)("innerComments",e,t)}var $o={};Object.defineProperty($o,"__esModule",{value:!0});$o.default=y5;var m5=Ws;function y5(e,t){(0,m5.default)("leadingComments",e,t)}var Uo={},Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=g5;var D5=Ws;function g5(e,t){(0,D5.default)("trailingComments",e,t)}Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=S5;var E5=Vo,b5=$o,T5=jo;function S5(e,t){return(0,E5.default)(e,t),(0,b5.default)(e,t),(0,T5.default)(e,t),e}var pf={};Object.defineProperty(pf,"__esModule",{value:!0});pf.default=A5;var v5=je;function A5(e){return v5.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}var me={};Object.defineProperty(me,"__esModule",{value:!0});me.WHILE_TYPES=me.USERWHITESPACABLE_TYPES=me.UNARYLIKE_TYPES=me.TYPESCRIPT_TYPES=me.TSTYPE_TYPES=me.TSTYPEELEMENT_TYPES=me.TSENTITYNAME_TYPES=me.TSBASETYPE_TYPES=me.TERMINATORLESS_TYPES=me.STATEMENT_TYPES=me.STANDARDIZED_TYPES=me.SCOPABLE_TYPES=me.PUREISH_TYPES=me.PROPERTY_TYPES=me.PRIVATE_TYPES=me.PATTERN_TYPES=me.PATTERNLIKE_TYPES=me.OBJECTMEMBER_TYPES=me.MODULESPECIFIER_TYPES=me.MODULEDECLARATION_TYPES=me.MISCELLANEOUS_TYPES=me.METHOD_TYPES=me.LVAL_TYPES=me.LOOP_TYPES=me.LITERAL_TYPES=me.JSX_TYPES=me.IMPORTOREXPORTDECLARATION_TYPES=me.IMMUTABLE_TYPES=me.FUNCTION_TYPES=me.FUNCTIONPARENT_TYPES=me.FOR_TYPES=me.FORXSTATEMENT_TYPES=me.FLOW_TYPES=me.FLOWTYPE_TYPES=me.FLOWPREDICATE_TYPES=me.FLOWDECLARATION_TYPES=me.FLOWBASEANNOTATION_TYPES=me.EXPRESSION_TYPES=me.EXPRESSIONWRAPPER_TYPES=me.EXPORTDECLARATION_TYPES=me.ENUMMEMBER_TYPES=me.ENUMBODY_TYPES=me.DECLARATION_TYPES=me.CONDITIONAL_TYPES=me.COMPLETIONSTATEMENT_TYPES=me.CLASS_TYPES=me.BLOCK_TYPES=me.BLOCKPARENT_TYPES=me.BINARY_TYPES=me.ACCESSOR_TYPES=void 0;var Re=br();me.STANDARDIZED_TYPES=Re.FLIPPED_ALIAS_KEYS.Standardized;me.EXPRESSION_TYPES=Re.FLIPPED_ALIAS_KEYS.Expression;me.BINARY_TYPES=Re.FLIPPED_ALIAS_KEYS.Binary;me.SCOPABLE_TYPES=Re.FLIPPED_ALIAS_KEYS.Scopable;me.BLOCKPARENT_TYPES=Re.FLIPPED_ALIAS_KEYS.BlockParent;me.BLOCK_TYPES=Re.FLIPPED_ALIAS_KEYS.Block;me.STATEMENT_TYPES=Re.FLIPPED_ALIAS_KEYS.Statement;me.TERMINATORLESS_TYPES=Re.FLIPPED_ALIAS_KEYS.Terminatorless;me.COMPLETIONSTATEMENT_TYPES=Re.FLIPPED_ALIAS_KEYS.CompletionStatement;me.CONDITIONAL_TYPES=Re.FLIPPED_ALIAS_KEYS.Conditional;me.LOOP_TYPES=Re.FLIPPED_ALIAS_KEYS.Loop;me.WHILE_TYPES=Re.FLIPPED_ALIAS_KEYS.While;me.EXPRESSIONWRAPPER_TYPES=Re.FLIPPED_ALIAS_KEYS.ExpressionWrapper;me.FOR_TYPES=Re.FLIPPED_ALIAS_KEYS.For;me.FORXSTATEMENT_TYPES=Re.FLIPPED_ALIAS_KEYS.ForXStatement;me.FUNCTION_TYPES=Re.FLIPPED_ALIAS_KEYS.Function;me.FUNCTIONPARENT_TYPES=Re.FLIPPED_ALIAS_KEYS.FunctionParent;me.PUREISH_TYPES=Re.FLIPPED_ALIAS_KEYS.Pureish;me.DECLARATION_TYPES=Re.FLIPPED_ALIAS_KEYS.Declaration;me.PATTERNLIKE_TYPES=Re.FLIPPED_ALIAS_KEYS.PatternLike;me.LVAL_TYPES=Re.FLIPPED_ALIAS_KEYS.LVal;me.TSENTITYNAME_TYPES=Re.FLIPPED_ALIAS_KEYS.TSEntityName;me.LITERAL_TYPES=Re.FLIPPED_ALIAS_KEYS.Literal;me.IMMUTABLE_TYPES=Re.FLIPPED_ALIAS_KEYS.Immutable;me.USERWHITESPACABLE_TYPES=Re.FLIPPED_ALIAS_KEYS.UserWhitespacable;me.METHOD_TYPES=Re.FLIPPED_ALIAS_KEYS.Method;me.OBJECTMEMBER_TYPES=Re.FLIPPED_ALIAS_KEYS.ObjectMember;me.PROPERTY_TYPES=Re.FLIPPED_ALIAS_KEYS.Property;me.UNARYLIKE_TYPES=Re.FLIPPED_ALIAS_KEYS.UnaryLike;me.PATTERN_TYPES=Re.FLIPPED_ALIAS_KEYS.Pattern;me.CLASS_TYPES=Re.FLIPPED_ALIAS_KEYS.Class;const C5=me.IMPORTOREXPORTDECLARATION_TYPES=Re.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;me.EXPORTDECLARATION_TYPES=Re.FLIPPED_ALIAS_KEYS.ExportDeclaration;me.MODULESPECIFIER_TYPES=Re.FLIPPED_ALIAS_KEYS.ModuleSpecifier;me.ACCESSOR_TYPES=Re.FLIPPED_ALIAS_KEYS.Accessor;me.PRIVATE_TYPES=Re.FLIPPED_ALIAS_KEYS.Private;me.FLOW_TYPES=Re.FLIPPED_ALIAS_KEYS.Flow;me.FLOWTYPE_TYPES=Re.FLIPPED_ALIAS_KEYS.FlowType;me.FLOWBASEANNOTATION_TYPES=Re.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;me.FLOWDECLARATION_TYPES=Re.FLIPPED_ALIAS_KEYS.FlowDeclaration;me.FLOWPREDICATE_TYPES=Re.FLIPPED_ALIAS_KEYS.FlowPredicate;me.ENUMBODY_TYPES=Re.FLIPPED_ALIAS_KEYS.EnumBody;me.ENUMMEMBER_TYPES=Re.FLIPPED_ALIAS_KEYS.EnumMember;me.JSX_TYPES=Re.FLIPPED_ALIAS_KEYS.JSX;me.MISCELLANEOUS_TYPES=Re.FLIPPED_ALIAS_KEYS.Miscellaneous;me.TYPESCRIPT_TYPES=Re.FLIPPED_ALIAS_KEYS.TypeScript;me.TSTYPEELEMENT_TYPES=Re.FLIPPED_ALIAS_KEYS.TSTypeElement;me.TSTYPE_TYPES=Re.FLIPPED_ALIAS_KEYS.TSType;me.TSBASETYPE_TYPES=Re.FLIPPED_ALIAS_KEYS.TSBaseType;me.MODULEDECLARATION_TYPES=C5;var xa={},Fa={},Zh;function hD(){if(Zh)return Fa;Zh=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.default=r;var e=M,t=Ht();function r(n,i){if((0,e.isBlockStatement)(n))return n;let s=[];return(0,e.isEmptyStatement)(n)?s=[]:((0,e.isStatement)(n)||((0,e.isFunction)(i)?n=(0,t.returnStatement)(n):n=(0,t.expressionStatement)(n)),s=[n]),(0,t.blockStatement)(s)}return Fa}var ed;function P5(){if(ed)return xa;ed=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=t;var e=hD();function t(r,n="body"){const i=(0,e.default)(r[n],r);return r[n]=i,i}return xa}var hf={},qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.default=_5;var x5=pi,F5=Us;function _5(e){e=e+"";let t="";for(const r of e)t+=(0,F5.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0,x5.default)(t)||(t=`_${t}`),t||"_"}Object.defineProperty(hf,"__esModule",{value:!0});hf.default=I5;var w5=qo;function I5(e){return e=(0,w5.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}var _a={},td;function O5(){if(td)return _a;td=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=r;var e=M,t=Ht();function r(n,i=n.key||n.property){return!n.computed&&(0,e.isIdentifier)(i)&&(i=(0,t.stringLiteral)(i.name)),i}return _a}var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=void 0;var ss=M;Ko.default=N5;function N5(e){if((0,ss.isExpressionStatement)(e)&&(e=e.expression),(0,ss.isExpression)(e))return e;if((0,ss.isClass)(e)?e.type="ClassExpression":(0,ss.isFunction)(e)&&(e.type="FunctionExpression"),!(0,ss.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}var df={},Wo={},Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=ql;var B5=br();function ql(e,t,r){if(!e)return;const n=B5.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(const i of n){const s=e[i];if(Array.isArray(s))for(const a of s)ql(a,t,r);else ql(s,t,r)}}}var Go={};Object.defineProperty(Go,"__esModule",{value:!0});Go.default=R5;var k5=je;const dD=["tokens","start","end","loc","raw","rawValue"],L5=[...k5.COMMENT_KEYS,"comments",...dD];function R5(e,t={}){const r=t.preserveComments?dD:L5;for(const i of r)e[i]!=null&&(e[i]=void 0);for(const i of Object.keys(e))i[0]==="_"&&e[i]!=null&&(e[i]=void 0);const n=Object.getOwnPropertySymbols(e);for(const i of n)e[i]=null}Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=$5;var M5=Ho,j5=Go;function $5(e,t){return(0,M5.default)(e,j5.default,t),e}Object.defineProperty(df,"__esModule",{value:!0});df.default=Zn;var rd=M,U5=nn,V5=Wo;function Zn(e,t=e.key){let r;return e.kind==="method"?Zn.increment()+"":((0,rd.isIdentifier)(t)?r=t.name:(0,rd.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,V5.default)((0,U5.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Zn.uid=0;Zn.increment=function(){return Zn.uid>=Number.MAX_SAFE_INTEGER?Zn.uid=0:Zn.uid++};var as={},nd;function q5(){if(nd)return as;nd=1,Object.defineProperty(as,"__esModule",{value:!0}),as.default=void 0;var e=M,t=Ht();as.default=r;function r(n,i){if((0,e.isStatement)(n))return n;let s=!1,a;if((0,e.isClass)(n))s=!0,a="ClassDeclaration";else if((0,e.isFunction)(n))s=!0,a="FunctionDeclaration";else if((0,e.isAssignmentExpression)(n))return(0,t.expressionStatement)(n);if(s&&!n.id&&(a=!1),!a){if(i)return!1;throw new Error(`cannot turn ${n.type} to a statement`)}return n.type=a,n}return as}var os={},id;function K5(){if(id)return os;id=1,Object.defineProperty(os,"__esModule",{value:!0}),os.default=void 0;var e=pi,t=Ht();os.default=s;const r=Function.call.bind(Object.prototype.toString);function n(a){return r(a)==="[object RegExp]"}function i(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;const o=Object.getPrototypeOf(a);return o===null||Object.getPrototypeOf(o)===null}function s(a){if(a===void 0)return(0,t.identifier)("undefined");if(a===!0||a===!1)return(0,t.booleanLiteral)(a);if(a===null)return(0,t.nullLiteral)();if(typeof a=="string")return(0,t.stringLiteral)(a);if(typeof a=="number"){let o;if(Number.isFinite(a))o=(0,t.numericLiteral)(Math.abs(a));else{let u;Number.isNaN(a)?u=(0,t.numericLiteral)(0):u=(0,t.numericLiteral)(1),o=(0,t.binaryExpression)("/",u,(0,t.numericLiteral)(0))}return(a<0||Object.is(a,-0))&&(o=(0,t.unaryExpression)("-",o)),o}if(n(a)){const o=a.source,u=/\/([a-z]*)$/.exec(a.toString())[1];return(0,t.regExpLiteral)(o,u)}if(Array.isArray(a))return(0,t.arrayExpression)(a.map(s));if(i(a)){const o=[];for(const u of Object.keys(a)){let l;(0,e.default)(u)?l=(0,t.identifier)(u):l=(0,t.stringLiteral)(u),o.push((0,t.objectProperty)(l,s(a[u])))}return(0,t.objectExpression)(o)}throw new Error("don't know how to turn this value into a node")}return os}var wa={},sd;function W5(){if(sd)return wa;sd=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=t;var e=Ht();function t(r,n,i=!1){return r.object=(0,e.memberExpression)(r.object,r.property,r.computed),r.property=n,r.computed=!!i,r}return wa}var mf={};Object.defineProperty(mf,"__esModule",{value:!0});mf.default=G5;var ad=je,H5=Uo;function G5(e,t){if(!e||!t)return e;for(const r of ad.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(const r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(const r of ad.INHERIT_KEYS.force)e[r]=t[r];return(0,H5.default)(e,t),e}var Ia={},od;function Y5(){if(od)return Ia;od=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=r;var e=Ht(),t=He();function r(n,i){if((0,t.isSuper)(n.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return n.object=(0,e.memberExpression)(i,n.object),n}return Ia}var yf={};Object.defineProperty(yf,"__esModule",{value:!0});yf.default=X5;function X5(e){const t=[].concat(e),r=Object.create(null);for(;t.length;){const n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push(...n.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push(...n.properties);break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":n.operator==="delete"&&t.push(n.argument);break;case"Identifier":r[n.name]=n;break}}return r}var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.default=Df;var Br=M;function Df(e,t,r,n){const i=[].concat(e),s=Object.create(null);for(;i.length;){const a=i.shift();if(!a||n&&((0,Br.isAssignmentExpression)(a)||(0,Br.isUnaryExpression)(a)||(0,Br.isUpdateExpression)(a)))continue;if((0,Br.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0,Br.isExportDeclaration)(a)&&!(0,Br.isExportAllDeclaration)(a)){(0,Br.isDeclaration)(a.declaration)&&i.push(a.declaration);continue}if(r){if((0,Br.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0,Br.isFunctionExpression)(a))continue}const o=Df.keys[a.type];if(o)for(let u=0;u<o.length;u++){const l=o[u],c=a[l];c&&(Array.isArray(c)?i.push(...c):i.push(c))}}return s}const J5={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};Df.keys=J5;var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=void 0;var z5=Ki;Yo.default=Q5;function Q5(e,t){return(0,z5.default)(e,t,!0)}var gf={};Object.defineProperty(gf,"__esModule",{value:!0});gf.default=e7;var Zt=M;function Z5(e){return(0,Zt.isNullLiteral)(e)?"null":(0,Zt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Zt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function ud(e){if(!e.computed||(0,Zt.isLiteral)(e.key))return e.key}function e7(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",n;if((0,Zt.isObjectProperty)(t,{value:e})?n=ud(t):(0,Zt.isObjectMethod)(e)||(0,Zt.isClassMethod)(e)?(n=ud(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Zt.isVariableDeclarator)(t,{init:e})?n=t.id:(0,Zt.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;const i=(0,Zt.isLiteral)(n)?Z5(n):(0,Zt.isIdentifier)(n)?n.name:(0,Zt.isPrivateName)(n)?n.id.name:null;return i==null?null:{name:r+i,originalNode:n}}var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});Ef.default=r7;var t7=br();function r7(e,t,r){typeof t=="function"&&(t={enter:t});const{enter:n,exit:i}=t;Kl(e,n,i,r,[])}function Kl(e,t,r,n,i){const s=t7.VISITOR_KEYS[e.type];if(s){t&&t(e,i,n);for(const a of s){const o=e[a];if(Array.isArray(o))for(let u=0;u<o.length;u++){const l=o[u];l&&(i.push({node:e,key:a,index:u}),Kl(l,t,r,n,i),i.pop())}else o&&(i.push({node:e,key:a}),Kl(o,t,r,n,i),i.pop())}r&&r(e,i,n)}}var bf={};Object.defineProperty(bf,"__esModule",{value:!0});bf.default=i7;var n7=Ki;function i7(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;const n=n7.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){const s=n[i],a=t[s];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}var Tf={},Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=o7;var s7=M,a7=je;function o7(e){return(0,s7.isVariableDeclaration)(e)&&(e.kind!=="var"||e[a7.BLOCK_SCOPED_SYMBOL])}Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=l7;var ld=M,u7=Xo;function l7(e){return(0,ld.isFunctionDeclaration)(e)||(0,ld.isClassDeclaration)(e)||(0,u7.default)(e)}var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=p7;var c7=ef(),f7=M;function p7(e){return(0,c7.default)(e.type,"Immutable")?!0:(0,f7.isIdentifier)(e)?e.name==="undefined":!1}var vf={};Object.defineProperty(vf,"__esModule",{value:!0});vf.default=Wl;var cd=br();function Wl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;const r=Object.keys(cd.NODE_FIELDS[e.type]||e.type),n=cd.VISITOR_KEYS[e.type];for(const i of r){const s=e[i],a=t[i];if(typeof s!=typeof a)return!1;if(!(s==null&&a==null)){if(s==null||a==null)return!1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let o=0;o<s.length;o++)if(!Wl(s[o],a[o]))return!1;continue}if(typeof s=="object"&&!(n!=null&&n.includes(i))){for(const o of Object.keys(s))if(s[o]!==a[o])return!1;continue}if(!Wl(s,a))return!1}}return!0}var Af={};Object.defineProperty(Af,"__esModule",{value:!0});Af.default=h7;function h7(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}var Cf={};Object.defineProperty(Cf,"__esModule",{value:!0});Cf.default=d7;var Yn=M;function d7(e,t){return(0,Yn.isBlockStatement)(e)&&((0,Yn.isFunction)(t)||(0,Yn.isCatchClause)(t))?!1:(0,Yn.isPattern)(e)&&((0,Yn.isFunction)(t)||(0,Yn.isCatchClause)(t))?!0:(0,Yn.isScopable)(e)}var Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=m7;var fd=M;function m7(e){return(0,fd.isImportDefaultSpecifier)(e)||(0,fd.isIdentifier)(e.imported||e.exported,{name:"default"})}var xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.default=g7;var y7=pi;const D7=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function g7(e){return(0,y7.default)(e)&&!D7.has(e)}var Ff={};Object.defineProperty(Ff,"__esModule",{value:!0});Ff.default=T7;var E7=M,b7=je;function T7(e){return(0,E7.isVariableDeclaration)(e,{kind:"var"})&&!e[b7.BLOCK_SCOPED_SYMBOL]}var Oa={},Na={},pd;function S7(){if(pd)return Na;pd=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.default=s;var e=Ki,t=M,r=Ht(),n=fD(),i=nn;function s(a,o){const u=[];let l=!0;for(const c of a)if((0,t.isEmptyStatement)(c)||(l=!1),(0,t.isExpression)(c))u.push(c);else if((0,t.isExpressionStatement)(c))u.push(c.expression);else if((0,t.isVariableDeclaration)(c)){if(c.kind!=="var")return;for(const f of c.declarations){const p=(0,e.default)(f);for(const h of Object.keys(p))o.push({kind:c.kind,id:(0,i.default)(p[h])});f.init&&u.push((0,r.assignmentExpression)("=",f.id,f.init))}l=!0}else if((0,t.isIfStatement)(c)){const f=c.consequent?s([c.consequent],o):(0,n.buildUndefinedNode)(),p=c.alternate?s([c.alternate],o):(0,n.buildUndefinedNode)();if(!f||!p)return;u.push((0,r.conditionalExpression)(c.test,f,p))}else if((0,t.isBlockStatement)(c)){const f=s(c.body,o);if(!f)return;u.push(f)}else if((0,t.isEmptyStatement)(c))a.indexOf(c)===0&&(l=!0);else return;return l&&u.push((0,n.buildUndefinedNode)()),u.length===1?u[0]:(0,r.sequenceExpression)(u)}return Na}var hd;function v7(){if(hd)return Oa;hd=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.default=t;var e=S7();function t(r,n){if(!(r!=null&&r.length))return;const i=[],s=(0,e.default)(r,i);if(s){for(const a of i)n.push(a);return s}}return Oa}var dd;function He(){return dd||(dd=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return Je.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return X.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return _.default}});var r=Oo,n=Zc,i=c6(),s=sf,a=U;Object.keys(a).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===a[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return a[ue]}})});var o=J4(),u=z4(),l=Q4(),c=Ht();Object.keys(c).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===c[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return c[ue]}})});var f=Z4();Object.keys(f).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===f[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return f[ue]}})});var p=fD();Object.keys(p).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===p[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return p[ue]}})});var h=nn,d=of,m=uf,D=lf,g=cf,y=ff,b=Mo,O=jo,C=$o,$=Uo,w=Vo,P=pf,I=me;Object.keys(I).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===I[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return I[ue]}})});var k=je;Object.keys(k).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===k[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return k[ue]}})});var F=P5(),S=hf,A=hD(),B=O5(),x=Ko,N=qo,H=df,T=q5(),_=K5(),R=br();Object.keys(R).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===R[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return R[ue]}})});var Q=W5(),ne=mf,X=Y5(),ae=Go,ie=Wo,te=Ro,Y=yf,re=Ki,De=Yo,de=gf,Ce=Ef;Object.keys(Ce).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===Ce[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return Ce[ue]}})});var Ie=Ho,Te=Ms,Ne=$s(),Je=bf,Fe=Tf,Oe=Sf,ge=Xo,Ae=Lo,st=vf,fe=Y0(),$e=Af,Z=Cf,G=Pf,V=ef(),E=xf,j=pi,z=Ff,se=Bo,oe=nf(),ce=No,Pe=M;Object.keys(Pe).forEach(function(ue){ue==="default"||ue==="__esModule"||Object.prototype.hasOwnProperty.call(t,ue)||ue in e&&e[ue]===Pe[ue]||Object.defineProperty(e,ue,{enumerable:!0,get:function(){return Pe[ue]}})});var Ue=qi;e.react={isReactComponent:r.default,isCompatTag:n.default,buildChildren:i.default},e.toSequenceExpression=v7().default}(qu)),qu}var cn={},St={};Object.defineProperty(St,"__esModule",{value:!0});St.isBindingIdentifier=H7;St.isBlockScoped=z7;St.isExpression=Y7;St.isFlow=rj;St.isForAwaitStatement=sj;St.isGenerated=ej;St.isPure=tj;St.isReferenced=J7;St.isReferencedIdentifier=K7;St.isReferencedMemberExpression=W7;St.isRestProperty=nj;St.isScope=X7;St.isSpreadProperty=ij;St.isStatement=G7;St.isUser=Z7;St.isVar=Q7;var A7=He();const{isBinding:C7,isBlockScoped:P7,isExportDeclaration:x7,isExpression:F7,isFlow:_7,isForStatement:w7,isForXStatement:I7,isIdentifier:mD,isImportDeclaration:O7,isImportSpecifier:N7,isJSXIdentifier:B7,isJSXMemberExpression:k7,isMemberExpression:L7,isRestElement:yD,isReferenced:_f,isScope:R7,isStatement:M7,isVar:j7,isVariableDeclaration:$7,react:U7,isForOfStatement:V7}=A7,{isCompatTag:q7}=U7;function K7(e){const{node:t,parent:r}=this;if(!mD(t,e)&&!k7(r,e))if(B7(t,e)){if(q7(t.name))return!1}else return!1;return _f(t,r,this.parentPath.parent)}function W7(){const{node:e,parent:t}=this;return L7(e)&&_f(e,t)}function H7(){const{node:e,parent:t}=this,r=this.parentPath.parent;return mD(e)&&C7(e,t,r)}function G7(){const{node:e,parent:t}=this;return M7(e)?!($7(e)&&(I7(t,{left:e})||w7(t,{init:e}))):!1}function Y7(){return this.isIdentifier()?this.isReferencedIdentifier():F7(this.node)}function X7(){return R7(this.node,this.parent)}function J7(){return _f(this.node,this.parent)}function z7(){return P7(this.node)}function Q7(){return j7(this.node)}function Z7(){return this.node&&!!this.node.loc}function ej(){return!this.isUser()}function tj(e){return this.scope.isPure(this.node,e)}function rj(){const{node:e}=this;return _7(e)?!0:O7(e)?e.importKind==="type"||e.importKind==="typeof":x7(e)?e.exportKind==="type":N7(e)?e.importKind==="type"||e.importKind==="typeof":!1}function nj(){var e;return yD(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function ij(){var e;return yD(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function sj(){return V7(this.node,{await:!0})}St.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},St.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var md;function Jo(){if(md)return cn;md=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.environmentVisitor=$,cn.explode=f,cn.isExplodedVisitor=c,cn.merge=d,cn.verify=p;var e=Xe,t=St,r=He(),n=Zs();const{DEPRECATED_KEYS:i,DEPRECATED_ALIASES:s,FLIPPED_ALIAS_KEYS:a,TYPES:o,__internal__deprecationWarning:u}=r;function l(w){return w in e}function c(w){return w==null?void 0:w._exploded}function f(w){if(c(w))return w;w._exploded=!0;for(const P of Object.keys(w)){if(b(P))continue;const I=P.split("|");if(I.length===1)continue;const k=w[P];delete w[P];for(const F of I)w[F]=k}p(w),delete w.__esModule,D(w),g(w);for(const P of Object.keys(w)){if(b(P)||!l(P))continue;const I=w[P];for(const F of Object.keys(I))I[F]=y(P,I[F]);delete w[P];const k=e[P];if(k!==null)for(const F of k)w[F]?O(w[F],I):w[F]=I;else O(w,I)}for(const P of Object.keys(w)){if(b(P))continue;let I=a[P];if(P in i){const F=i[P];u(P,F,"Visitor "),I=[F]}else if(P in s){const F=s[P];u(P,F,"Visitor "),I=a[F]}if(!I)continue;const k=w[P];delete w[P];for(const F of I){const S=w[F];S?O(S,k):w[F]=Object.assign({},k)}}for(const P of Object.keys(w))b(P)||g(w[P]);return w}function p(w){if(!w._verified){if(typeof w=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const P of Object.keys(w)){if((P==="enter"||P==="exit")&&h(P,w[P]),b(P))continue;if(!o.includes(P))throw new Error(`You gave us a visitor for the node type ${P} but it's not a valid type in @babel/traverse 7.25.3`);const I=w[P];if(typeof I=="object")for(const k of Object.keys(I))if(k==="enter"||k==="exit")h(`${P}.${k}`,I[k]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${P} that has the invalid property ${k}`)}w._verified=!0}}function h(w,P){const I=[].concat(P);for(const k of I)if(typeof k!="function")throw new TypeError(`Non-function found defined in ${w} with type ${typeof k}`)}function d(w,P=[],I){const k={_verified:!0,_exploded:!0};Object.defineProperty(k,"_exploded",{enumerable:!1}),Object.defineProperty(k,"_verified",{enumerable:!1});for(let F=0;F<w.length;F++){const S=f(w[F]),A=P[F];let B=S;(A||I)&&(B=m(B,A,I)),O(k,B);for(const x of Object.keys(S)){if(b(x))continue;let N=S[x];(A||I)&&(N=m(N,A,I));const H=k[x]||(k[x]={});O(H,N)}}return k}function m(w,P,I){const k={};for(const F of["enter","exit"]){let S=w[F];Array.isArray(S)&&(S=S.map(function(A){let B=A;return P&&(B=function(x){A.call(P,x,P)}),I&&(B=I(P==null?void 0:P.key,F,B)),B!==A&&(B.toString=()=>A.toString()),B}),k[F]=S)}return k}function D(w){for(const P of Object.keys(w)){if(b(P))continue;const I=w[P];typeof I=="function"&&(w[P]={enter:I})}}function g(w){w.enter&&!Array.isArray(w.enter)&&(w.enter=[w.enter]),w.exit&&!Array.isArray(w.exit)&&(w.exit=[w.exit])}function y(w,P){const I=`is${w}`,k=t[I],F=function(S){if(k.call(S))return P.apply(this,arguments)};return F.toString=()=>P.toString(),F}function b(w){return w[0]==="_"||w==="enter"||w==="exit"||w==="shouldSkip"||w==="denylist"||w==="noScope"||w==="skipKeys"||w==="blacklist"}function O(w,P){for(const I of["enter","exit"])P[I]&&(w[I]=[].concat(w[I]||[],P[I]))}const C={FunctionParent(w){w.isArrowFunctionExpression()||(w.skip(),w.isMethod()&&(w.requeueComputedKeyAndDecorators?w.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(w)))},Property(w){w.isObjectProperty()||(w.skip(),w.requeueComputedKeyAndDecorators?w.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(w))}};function $(w){return d([C,w])}return cn}var yd;function aj(){if(yd)return ts;yd=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var e=He(),t=Uf(),r=Jo(),n=Zs();const i={ReferencedIdentifier({node:a},o){a.name===o.oldName&&(a.name=o.newName)},Scope(a,o){a.scope.bindingIdentifierEquals(o.oldName,o.binding.identifier)||(a.skip(),a.isMethod()&&(a.requeueComputedKeyAndDecorators?a.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(a)))},ObjectProperty({node:a,scope:o},u){const{name:l}=a.key;if(a.shorthand&&(l===u.oldName||l===u.newName)&&o.getBindingIdentifier(l)===u.binding.identifier){a.shorthand=!1;{var c;(c=a.extra)!=null&&c.shorthand&&(a.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(a,o){if(a.isVariableDeclaration())return;const u=a.isAssignmentExpression()?a.getAssignmentIdentifiers():a.getOuterBindingIdentifiers();for(const l in u)l===o.oldName&&(u[l].name=o.newName)}};class s{constructor(o,u,l){this.newName=l,this.oldName=u,this.binding=o}maybeConvertFromExportDeclaration(o){const u=o.parentPath;if(u.isExportDeclaration()){if(u.isExportDefaultDeclaration()){const{declaration:l}=u.node;if(e.isDeclaration(l)&&!l.id)return}u.isExportAllDeclaration()||u.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(o){return o}maybeConvertFromClassFunctionExpression(o){return o}rename(){const{binding:o,oldName:u,newName:l}=this,{scope:c,path:f}=o,p=f.find(d=>d.isDeclaration()||d.isFunctionExpression()||d.isClassExpression());p&&p.getOuterBindingIdentifiers()[u]===o.identifier&&this.maybeConvertFromExportDeclaration(p);const h=arguments[0]||c.block;(0,t.traverseNode)(h,(0,r.explode)(i),c,this,c.path,{discriminant:!0}),arguments[0]||(c.removeOwnBinding(u),c.bindings[l]=o,this.binding.identifier.name=l),p&&(this.maybeConvertFromClassFunctionDeclaration(f),this.maybeConvertFromClassFunctionExpression(f))}}return ts.default=s,ts}var zo={};Object.defineProperty(zo,"__esModule",{value:!0});zo.default=void 0;class oj{constructor({identifier:t,scope:r,path:n,kind:i}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=i,(i==="var"||i==="hoisted")&&uj(n)&&this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}}zo.default=oj;function uj(e){for(let{parentPath:t,key:r}=e;t;{parentPath:t,key:r}=t){if(t.isFunctionParent())return!1;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&r==="body")return!0}return!1}const lj={Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},cj={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},fj={Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},pj={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},hj={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},dj={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},mj={__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},yj={exports:!0,global:!1,module:!1,require:!1},Dj={define:!1,require:!1},gj={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},Ej={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},bj={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},Tj={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},Sj={console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},vj={emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},Aj={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},Cj={__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},Pj={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},xj={$:!1,jQuery:!1},Fj={YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},_j={cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},wj={$:!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},Ij={_:!1,$:!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},Oj={_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},Nj={$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},Bj={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},kj={advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},Lj={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},Rj={$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},Mj={browser:!1,chrome:!1,opr:!1},jj={cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},$j={$:!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},Uj={builtin:lj,es5:cj,es2015:fj,es2017:pj,browser:hj,worker:dj,node:mj,commonjs:yj,amd:Dj,mocha:gj,jasmine:Ej,jest:bj,qunit:Tj,phantomjs:Sj,couch:vj,rhino:Aj,nashorn:Cj,wsh:Pj,jquery:xj,yui:Fj,shelljs:_j,prototypejs:wj,meteor:Ij,mongo:Oj,applescript:Nj,serviceworker:Bj,atomtest:kj,embertest:Lj,protractor:Rj,"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:Mj,greasemonkey:jj,devtools:$j};var Vj=Uj,_t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.clear=qj;_t.clearPath=DD;_t.clearScope=gD;_t.getCachedPaths=Kj;_t.getOrCreateCachedPaths=Wj;_t.scope=_t.path=void 0;let Eo=_t.path=new WeakMap;_t.scope=new WeakMap;function qj(){DD(),gD()}function DD(){_t.path=Eo=new WeakMap}function gD(){_t.scope=new WeakMap}const Hl=Object.freeze({});function Kj(e,t){var r,n;return e=null,(r=Eo.get((n=e)!=null?n:Hl))==null?void 0:r.get(t)}function Wj(e,t){var r,n;e=null;let i=Eo.get((r=e)!=null?r:Hl);i||Eo.set((n=e)!=null?n:Hl,i=new WeakMap);let s=i.get(t);return s||i.set(t,s=new Map),s}var Dd;function ED(){if(Dd)return es;Dd=1,Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;var e=aj(),t=pu(),r=zo,n=Vj,i=He(),s=i,a=_t,o=Jo();const{NOT_LOCAL_BINDING:u,assignmentExpression:l,callExpression:c,cloneNode:f,getBindingIdentifiers:p,identifier:h,isArrayExpression:d,isBinary:m,isCallExpression:D,isClass:g,isClassBody:y,isClassDeclaration:b,isExportAllDeclaration:O,isExportDefaultDeclaration:C,isExportNamedDeclaration:$,isFunctionDeclaration:w,isIdentifier:P,isImportDeclaration:I,isLiteral:k,isMemberExpression:F,isMethod:S,isModuleSpecifier:A,isNullLiteral:B,isObjectExpression:x,isProperty:N,isPureish:H,isRegExpLiteral:T,isSuper:_,isTaggedTemplateExpression:R,isTemplateLiteral:Q,isThisExpression:ne,isUnaryExpression:X,isVariableDeclaration:ae,expressionStatement:ie,matchesPattern:te,memberExpression:Y,numericLiteral:re,toIdentifier:De,variableDeclaration:de,variableDeclarator:Ce,isRecordExpression:Ie,isTupleExpression:Te,isObjectProperty:Ne,isTopicReference:Je,isMetaProperty:Fe,isPrivateName:Oe,isExportDeclaration:ge,buildUndefinedNode:Ae,sequenceExpression:st}=i;function fe(V,E){switch(V==null?void 0:V.type){default:if(I(V)||ge(V)){var j;if((O(V)||$(V)||I(V))&&V.source)fe(V.source,E);else if(($(V)||I(V))&&(j=V.specifiers)!=null&&j.length)for(const z of V.specifiers)fe(z,E);else(C(V)||$(V))&&V.declaration&&fe(V.declaration,E)}else A(V)?fe(V.local,E):k(V)&&!B(V)&&!T(V)&&!Q(V)&&E.push(V.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":fe(V.object,E),fe(V.property,E);break;case"Identifier":case"JSXIdentifier":E.push(V.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":fe(V.callee,E);break;case"ObjectExpression":case"ObjectPattern":for(const z of V.properties)fe(z,E);break;case"SpreadElement":case"RestElement":fe(V.argument,E);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":fe(V.key,E);break;case"ThisExpression":E.push("this");break;case"Super":E.push("super");break;case"Import":E.push("import");break;case"DoExpression":E.push("do");break;case"YieldExpression":E.push("yield"),fe(V.argument,E);break;case"AwaitExpression":E.push("await"),fe(V.argument,E);break;case"AssignmentExpression":fe(V.left,E);break;case"VariableDeclarator":fe(V.id,E);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":fe(V.id,E);break;case"PrivateName":fe(V.id,E);break;case"ParenthesizedExpression":fe(V.expression,E);break;case"UnaryExpression":case"UpdateExpression":fe(V.argument,E);break;case"MetaProperty":fe(V.meta,E),fe(V.property,E);break;case"JSXElement":fe(V.openingElement,E);break;case"JSXOpeningElement":fe(V.name,E);break;case"JSXFragment":fe(V.openingFragment,E);break;case"JSXOpeningFragment":E.push("Fragment");break;case"JSXNamespacedName":fe(V.namespace,E),fe(V.name,E);break}}const $e={ForStatement(V){const E=V.get("init");if(E.isVar()){const{scope:j}=V;(j.getFunctionParent()||j.getProgramParent()).registerBinding("var",E)}},Declaration(V){if(V.isBlockScoped()||V.isImportDeclaration()||V.isExportDeclaration())return;(V.scope.getFunctionParent()||V.scope.getProgramParent()).registerDeclaration(V)},ImportDeclaration(V){V.scope.getBlockParent().registerDeclaration(V)},ReferencedIdentifier(V,E){E.references.push(V)},ForXStatement(V,E){const j=V.get("left");if(j.isPattern()||j.isIdentifier())E.constantViolations.push(V);else if(j.isVar()){const{scope:z}=V;(z.getFunctionParent()||z.getProgramParent()).registerBinding("var",j)}},ExportDeclaration:{exit(V){const{node:E,scope:j}=V;if(O(E))return;const z=E.declaration;if(b(z)||w(z)){const se=z.id;if(!se)return;const oe=j.getBinding(se.name);oe==null||oe.reference(V)}else if(ae(z))for(const se of z.declarations)for(const oe of Object.keys(p(se))){const ce=j.getBinding(oe);ce==null||ce.reference(V)}}},LabeledStatement(V){V.scope.getBlockParent().registerDeclaration(V)},AssignmentExpression(V,E){E.assignments.push(V)},UpdateExpression(V,E){E.constantViolations.push(V)},UnaryExpression(V,E){V.node.operator==="delete"&&E.constantViolations.push(V)},BlockScoped(V){let E=V.scope;if(E.path===V&&(E=E.parent),E.getBlockParent().registerDeclaration(V),V.isClassDeclaration()&&V.node.id){const se=V.node.id.name;V.scope.bindings[se]=V.scope.parent.getBinding(se)}},CatchClause(V){V.scope.registerBinding("let",V)},Function(V){const E=V.get("params");for(const j of E)V.scope.registerBinding("param",j);V.isFunctionExpression()&&V.has("id")&&!V.get("id").node[u]&&V.scope.registerBinding("local",V.get("id"),V)},ClassExpression(V){V.has("id")&&!V.get("id").node[u]&&V.scope.registerBinding("local",V.get("id"),V)},TSTypeAnnotation(V){V.skip()}};let Z=0;class G{constructor(E){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node:j}=E,z=a.scope.get(j);if((z==null?void 0:z.path)===E)return z;a.scope.set(j,this),this.uid=Z++,this.block=j,this.path=E,this.labels=new Map,this.inited=!1}get parent(){var E;let j,z=this.path;do{var se;const oe=z.key==="key"||z.listKey==="decorators";z=z.parentPath,oe&&z.isMethod()&&(z=z.parentPath),(se=z)!=null&&se.isScope()&&(j=z)}while(z&&!j);return(E=j)==null?void 0:E.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(E,j,z){(0,t.default)(E,j,this,z,this.path)}generateDeclaredUidIdentifier(E){const j=this.generateUidIdentifier(E);return this.push({id:j}),f(j)}generateUidIdentifier(E){return h(this.generateUid(E))}generateUid(E="temp"){E=De(E).replace(/^_+/,"").replace(/\d+$/g,"");let j,z=1;do j=this._generateUid(E,z),z++;while(this.hasLabel(j)||this.hasBinding(j)||this.hasGlobal(j)||this.hasReference(j));const se=this.getProgramParent();return se.references[j]=!0,se.uids[j]=!0,j}_generateUid(E,j){let z=E;return j>1&&(z+=j),`_${z}`}generateUidBasedOnNode(E,j){const z=[];fe(E,z);let se=z.join("$");return se=se.replace(/^_/,"")||j||"ref",this.generateUid(se.slice(0,20))}generateUidIdentifierBasedOnNode(E,j){return h(this.generateUidBasedOnNode(E,j))}isStatic(E){if(ne(E)||_(E)||Je(E))return!0;if(P(E)){const j=this.getBinding(E.name);return j?j.constant:this.hasBinding(E.name)}return!1}maybeGenerateMemoised(E,j){if(this.isStatic(E))return null;{const z=this.generateUidIdentifierBasedOnNode(E);return j?z:(this.push({id:z}),f(z))}}checkBlockScopedCollisions(E,j,z,se){if(j==="param"||E.kind==="local")return;if(j==="let"||E.kind==="let"||E.kind==="const"||E.kind==="module"||E.kind==="param"&&j==="const")throw this.hub.buildError(se,`Duplicate declaration "${z}"`,TypeError)}rename(E,j){const z=this.getBinding(E);z&&(j||(j=this.generateUidIdentifier(E).name),new e.default(z,E,j).rename(arguments[2]))}_renameFromMap(E,j,z,se){E[j]&&(E[z]=se,E[j]=null)}dump(){const E="-".repeat(60);console.log(E);let j=this;do{console.log("#",j.block.type);for(const z of Object.keys(j.bindings)){const se=j.bindings[z];console.log(" -",z,{constant:se.constant,references:se.references,violations:se.constantViolations.length,kind:se.kind})}}while(j=j.parent);console.log(E)}toArray(E,j,z){if(P(E)){const ce=this.getBinding(E.name);if(ce!=null&&ce.constant&&ce.path.isGenericType("Array"))return E}if(d(E))return E;if(P(E,{name:"arguments"}))return c(Y(Y(Y(h("Array"),h("prototype")),h("slice")),h("call")),[E]);let se;const oe=[E];return j===!0?se="toConsumableArray":typeof j=="number"?(oe.push(re(j)),se="slicedToArray"):se="toArray",z&&(oe.unshift(this.hub.addHelper(se)),se="maybeArrayLike"),c(this.hub.addHelper(se),oe)}hasLabel(E){return!!this.getLabel(E)}getLabel(E){return this.labels.get(E)}registerLabel(E){this.labels.set(E.node.label.name,E)}registerDeclaration(E){if(E.isLabeledStatement())this.registerLabel(E);else if(E.isFunctionDeclaration())this.registerBinding("hoisted",E.get("id"),E);else if(E.isVariableDeclaration()){const j=E.get("declarations"),{kind:z}=E.node;for(const se of j)this.registerBinding(z==="using"||z==="await using"?"const":z,se)}else if(E.isClassDeclaration()){if(E.node.declare)return;this.registerBinding("let",E)}else if(E.isImportDeclaration()){const j=E.node.importKind==="type"||E.node.importKind==="typeof",z=E.get("specifiers");for(const se of z){const oe=j||se.isImportSpecifier()&&(se.node.importKind==="type"||se.node.importKind==="typeof");this.registerBinding(oe?"unknown":"module",se)}}else if(E.isExportDeclaration()){const j=E.get("declaration");(j.isClassDeclaration()||j.isFunctionDeclaration()||j.isVariableDeclaration())&&this.registerDeclaration(j)}else this.registerBinding("unknown",E)}buildUndefinedNode(){return Ae()}registerConstantViolation(E){const j=E.getAssignmentIdentifiers();for(const se of Object.keys(j)){var z;(z=this.getBinding(se))==null||z.reassign(E)}}registerBinding(E,j,z=j){if(!E)throw new ReferenceError("no `kind`");if(j.isVariableDeclaration()){const ce=j.get("declarations");for(const Pe of ce)this.registerBinding(E,Pe);return}const se=this.getProgramParent(),oe=j.getOuterBindingIdentifiers(!0);for(const ce of Object.keys(oe)){se.references[ce]=!0;for(const Pe of oe[ce]){const Ue=this.getOwnBinding(ce);if(Ue){if(Ue.identifier===Pe)continue;this.checkBlockScopedCollisions(Ue,E,ce,Pe)}Ue?Ue.reassign(z):this.bindings[ce]=new r.default({identifier:Pe,scope:this,path:z,kind:E})}}}addGlobal(E){this.globals[E.name]=E}hasUid(E){let j=this;do if(j.uids[E])return!0;while(j=j.parent);return!1}hasGlobal(E){let j=this;do if(j.globals[E])return!0;while(j=j.parent);return!1}hasReference(E){return!!this.getProgramParent().references[E]}isPure(E,j){if(P(E)){const ce=this.getBinding(E.name);return ce?j?ce.constant:!0:!1}else{if(ne(E)||Fe(E)||Je(E)||Oe(E))return!0;if(g(E)){var z;return E.superClass&&!this.isPure(E.superClass,j)||((z=E.decorators)==null?void 0:z.length)>0?!1:this.isPure(E.body,j)}else if(y(E)){for(const ce of E.body)if(!this.isPure(ce,j))return!1;return!0}else{if(m(E))return this.isPure(E.left,j)&&this.isPure(E.right,j);if(d(E)||Te(E)){for(const ce of E.elements)if(ce!==null&&!this.isPure(ce,j))return!1;return!0}else if(x(E)||Ie(E)){for(const ce of E.properties)if(!this.isPure(ce,j))return!1;return!0}else if(S(E)){var se;return!(E.computed&&!this.isPure(E.key,j)||((se=E.decorators)==null?void 0:se.length)>0)}else if(N(E)){var oe;return!(E.computed&&!this.isPure(E.key,j)||((oe=E.decorators)==null?void 0:oe.length)>0||(Ne(E)||E.static)&&E.value!==null&&!this.isPure(E.value,j))}else{if(X(E))return this.isPure(E.argument,j);if(Q(E)){for(const ce of E.expressions)if(!this.isPure(ce,j))return!1;return!0}else return R(E)?te(E.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(E.quasi,j):F(E)?!E.computed&&P(E.object)&&E.object.name==="Symbol"&&P(E.property)&&E.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):D(E)?te(E.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&E.arguments.length===1&&s.isStringLiteral(E.arguments[0]):H(E)}}}}setData(E,j){return this.data[E]=j}getData(E){let j=this;do{const z=j.data[E];if(z!=null)return z}while(j=j.parent)}removeData(E){let j=this;do j.data[E]!=null&&(j.data[E]=null);while(j=j.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const E=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const j=this.getProgramParent();if(j.crawling)return;const z={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,E.type!=="Program"&&(0,o.isExplodedVisitor)($e)){for(const oe of $e.enter)oe.call(z,E,z);const se=$e[E.type];if(se)for(const oe of se.enter)oe.call(z,E,z)}E.traverse($e,z),this.crawling=!1;for(const se of z.assignments){const oe=se.getAssignmentIdentifiers();for(const ce of Object.keys(oe))se.scope.getBinding(ce)||j.addGlobal(oe[ce]);se.scope.registerConstantViolation(se)}for(const se of z.references){const oe=se.scope.getBinding(se.node.name);oe?oe.reference(se):j.addGlobal(se.node)}for(const se of z.constantViolations)se.scope.registerConstantViolation(se)}push(E){let j=this.path;j.isPattern()?j=this.getPatternParent().path:!j.isBlockStatement()&&!j.isProgram()&&(j=this.getBlockParent().path),j.isSwitchStatement()&&(j=(this.getFunctionParent()||this.getProgramParent()).path);const{init:z,unique:se,kind:oe="var",id:ce}=E;if(!z&&!se&&(oe==="var"||oe==="let")&&j.isFunction()&&!j.node.name&&D(j.parent,{callee:j.node})&&j.parent.arguments.length<=j.node.params.length&&P(ce)){j.pushContainer("params",ce),j.scope.registerBinding("param",j.get("params")[j.node.params.length-1]);return}(j.isLoop()||j.isCatchClause()||j.isFunction())&&(j.ensureBlock(),j=j.get("body"));const Pe=E._blockHoist==null?2:E._blockHoist,Ue=`declaration:${oe}:${Pe}`;let ue=!se&&j.getData(Ue);if(!ue){const Ke=de(oe,[]);Ke._blockHoist=Pe,[ue]=j.unshiftContainer("body",[Ke]),se||j.setData(Ue,ue)}const Me=Ce(ce,z),Ve=ue.node.declarations.push(Me);j.scope.registerBinding(oe,ue.get("declarations")[Ve-1])}getProgramParent(){let E=this;do if(E.path.isProgram())return E;while(E=E.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let E=this;do if(E.path.isFunctionParent())return E;while(E=E.parent);return null}getBlockParent(){let E=this;do if(E.path.isBlockParent())return E;while(E=E.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let E=this;do if(!E.path.isPattern())return E.getBlockParent();while(E=E.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const E=Object.create(null);let j=this;do{for(const z of Object.keys(j.bindings))z in E||(E[z]=j.bindings[z]);j=j.parent}while(j);return E}getAllBindingsOfKind(...E){const j=Object.create(null);for(const z of E){let se=this;do{for(const oe of Object.keys(se.bindings)){const ce=se.bindings[oe];ce.kind===z&&(j[oe]=ce)}se=se.parent}while(se)}return j}bindingIdentifierEquals(E,j){return this.getBindingIdentifier(E)===j}getBinding(E){let j=this,z;do{const oe=j.getOwnBinding(E);if(oe){var se;if(!((se=z)!=null&&se.isPattern()&&oe.kind!=="param"&&oe.kind!=="local"))return oe}else if(!oe&&E==="arguments"&&j.path.isFunction()&&!j.path.isArrowFunctionExpression())break;z=j.path}while(j=j.parent)}getOwnBinding(E){return this.bindings[E]}getBindingIdentifier(E){var j;return(j=this.getBinding(E))==null?void 0:j.identifier}getOwnBindingIdentifier(E){const j=this.bindings[E];return j==null?void 0:j.identifier}hasOwnBinding(E){return!!this.getOwnBinding(E)}hasBinding(E,j){if(!E)return!1;let z=this;do if(z.hasOwnBinding(E))return!0;while(z=z.parent);let se,oe;return typeof j=="object"?(se=j.noGlobals,oe=j.noUids):typeof j=="boolean"&&(se=j),!!(!oe&&this.hasUid(E)||!se&&G.globals.includes(E)||!se&&G.contextVariables.includes(E))}parentHasBinding(E,j){var z;return(z=this.parent)==null?void 0:z.hasBinding(E,j)}moveBindingTo(E,j){const z=this.getBinding(E);z&&(z.scope.removeOwnBinding(E),z.scope=j,j.bindings[E]=z)}removeOwnBinding(E){delete this.bindings[E]}removeBinding(E){var j;(j=this.getBinding(E))==null||j.scope.removeOwnBinding(E);let z=this;do z.uids[E]&&(z.uids[E]=!1);while(z=z.parent)}hoistVariables(E=j=>this.push({id:j})){this.crawl();const j=new Set;for(const se of Object.keys(this.bindings)){const oe=this.bindings[se];if(!oe)continue;const{path:ce}=oe;if(!ce.isVariableDeclarator())continue;const{parent:Pe,parentPath:Ue}=ce;if(Pe.kind!=="var"||j.has(Pe))continue;j.add(ce.parent);let ue;const Me=[];for(const Ve of Pe.declarations){var z;(z=ue)!=null||(ue=Ve.id),Ve.init&&Me.push(l("=",Ve.id,Ve.init));const Ke=Object.keys(p(Ve,!1,!0,!0));for(const Le of Ke)E(h(Le),Ve.init!=null)}if(Ue.parentPath.isFor({left:Pe}))Ue.replaceWith(ue);else if(Me.length===0)Ue.remove();else{const Ve=Me.length===1?Me[0]:st(Me);Ue.parentPath.isForStatement({init:Pe})?Ue.replaceWith(Ve):Ue.replaceWith(ie(Ve))}}}}return es.default=G,G.globals=Object.keys(n.builtin),G.contextVariables=["arguments","undefined","Infinity","NaN"],es}var Qo={},Zo={},Gl={exports:{}},Ba={exports:{}},gd;function Hj(){return gd||(gd=1,function(e,t){(function(r,n){n(t)})(ii,function(r){class n{constructor(){this._indexes={__proto__:null},this.array=[]}}function i(l){return l}function s(l,c){return l._indexes[c]}function a(l,c){const f=s(l,c);if(f!==void 0)return f;const{array:p,_indexes:h}=l,d=p.push(c);return h[c]=d-1}function o(l){const{array:c,_indexes:f}=l;if(c.length===0)return;const p=c.pop();f[p]=void 0}function u(l,c){const f=s(l,c);if(f===void 0)return;const{array:p,_indexes:h}=l;for(let d=f+1;d<p.length;d++){const m=p[d];p[d-1]=m,h[m]--}h[c]=void 0,p.pop()}r.SetArray=n,r.get=s,r.pop=o,r.put=a,r.remove=u,Object.defineProperty(r,"__esModule",{value:!0})})}(Ba,Ba.exports)),Ba.exports}var ka={exports:{}},Ed;function bD(){return Ed||(Ed=1,function(e,t){(function(r,n){n(t)})(ii,function(r){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),o=new Uint8Array(128);for(let F=0;F<s.length;F++){const S=s.charCodeAt(F);a[F]=S,o[S]=F}function u(F,S){let A=0,B=0,x=0;do{const H=F.next();x=o[H],A|=(x&31)<<B,B+=5}while(x&32);const N=A&1;return A>>>=1,N&&(A=-2147483648|-A),S+A}function l(F,S,A){let B=S-A;B=B<0?-B<<1|1:B<<1;do{let x=B&31;B>>>=5,B>0&&(x|=32),F.write(a[x])}while(B>0);return S}function c(F,S){return F.pos>=S?!1:F.peek()!==44}const f=1024*16,p=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(F){return Buffer.from(F.buffer,F.byteOffset,F.byteLength).toString()}}:{decode(F){let S="";for(let A=0;A<F.length;A++)S+=String.fromCharCode(F[A]);return S}};class h{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(f)}write(S){const{buffer:A}=this;A[this.pos++]=S,this.pos===f&&(this.out+=p.decode(A),this.pos=0)}flush(){const{buffer:S,out:A,pos:B}=this;return B>0?A+p.decode(S.subarray(0,B)):A}}class d{constructor(S){this.pos=0,this.buffer=S}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(S){const{buffer:A,pos:B}=this,x=A.indexOf(S,B);return x===-1?A.length:x}}const m=[];function D(F){const{length:S}=F,A=new d(F),B=[],x=[];let N=0;for(;A.pos<S;A.pos++){N=u(A,N);const H=u(A,0);if(!c(A,S)){const X=x.pop();X[2]=N,X[3]=H;continue}const T=u(A,0),Q=u(A,0)&1?[N,H,0,0,T,u(A,0)]:[N,H,0,0,T];let ne=m;if(c(A,S)){ne=[];do{const X=u(A,0);ne.push(X)}while(c(A,S))}Q.vars=ne,B.push(Q),x.push(Q)}return B}function g(F){const S=new h;for(let A=0;A<F.length;)A=y(F,A,S,[0]);return S.flush()}function y(F,S,A,B){const x=F[S],{0:N,1:H,2:T,3:_,4:R,vars:Q}=x;S>0&&A.write(44),B[0]=l(A,N,B[0]),l(A,H,0),l(A,R,0);const ne=x.length===6?1:0;l(A,ne,0),x.length===6&&l(A,x[5],0);for(const X of Q)l(A,X,0);for(S++;S<F.length;){const X=F[S],{0:ae,1:ie}=X;if(ae>T||ae===T&&ie>=_)break;S=y(F,S,A,B)}return A.write(44),B[0]=l(A,T,B[0]),l(A,_,0),S}function b(F){const{length:S}=F,A=new d(F),B=[],x=[];let N=0,H=0,T=0,_=0,R=0,Q=0,ne=0,X=0;do{const ae=A.indexOf(";");let ie=0;for(;A.pos<ae;A.pos++){if(ie=u(A,ie),!c(A,ae)){const Te=x.pop();Te[2]=N,Te[3]=ie;continue}const te=u(A,0),Y=te&1,re=te&2,De=te&4;let de=null,Ce=m,Ie;if(Y){const Te=u(A,H);T=u(A,H===Te?T:0),H=Te,Ie=[N,ie,0,0,Te,T]}else Ie=[N,ie,0,0];if(Ie.isScope=!!De,re){const Te=_,Ne=R;_=u(A,_);const Je=Te===_;R=u(A,Je?R:0),Q=u(A,Je&&Ne===R?Q:0),de=[_,R,Q]}if(Ie.callsite=de,c(A,ae)){Ce=[];do{ne=N,X=ie;const Te=u(A,0);let Ne;if(Te<-1){Ne=[[u(A,0)]];for(let Je=-1;Je>Te;Je--){const Fe=ne;ne=u(A,ne),X=u(A,ne===Fe?X:0);const Oe=u(A,0);Ne.push([Oe,ne,X])}}else Ne=[[Te]];Ce.push(Ne)}while(c(A,ae))}Ie.bindings=Ce,B.push(Ie),x.push(Ie)}N++,A.pos=ae+1}while(A.pos<S);return B}function O(F){if(F.length===0)return"";const S=new h;for(let A=0;A<F.length;)A=C(F,A,S,[0,0,0,0,0,0,0]);return S.flush()}function C(F,S,A,B){const x=F[S],{0:N,1:H,2:T,3:_,isScope:R,callsite:Q,bindings:ne}=x;B[0]<N?($(A,B[0],N),B[0]=N,B[1]=0):S>0&&A.write(44),B[1]=l(A,x[1],B[1]);const X=(x.length===6?1:0)|(Q?2:0)|(R?4:0);if(l(A,X,0),x.length===6){const{4:ae,5:ie}=x;ae!==B[2]&&(B[3]=0),B[2]=l(A,ae,B[2]),B[3]=l(A,ie,B[3])}if(Q){const{0:ae,1:ie,2:te}=x.callsite;ae!==B[4]?(B[5]=0,B[6]=0):ie!==B[5]&&(B[6]=0),B[4]=l(A,ae,B[4]),B[5]=l(A,ie,B[5]),B[6]=l(A,te,B[6])}if(ne)for(const ae of ne){ae.length>1&&l(A,-ae.length,0);const ie=ae[0][0];l(A,ie,0);let te=N,Y=H;for(let re=1;re<ae.length;re++){const De=ae[re];te=l(A,De[1],te),Y=l(A,De[2],Y),l(A,De[0],0)}}for(S++;S<F.length;){const ae=F[S],{0:ie,1:te}=ae;if(ie>T||ie===T&&te>=_)break;S=C(F,S,A,B)}return B[0]<T?($(A,B[0],T),B[0]=T,B[1]=0):A.write(44),B[1]=l(A,_,B[1]),S}function $(F,S,A){do F.write(59);while(++S<A)}function w(F){const{length:S}=F,A=new d(F),B=[];let x=0,N=0,H=0,T=0,_=0;do{const R=A.indexOf(";"),Q=[];let ne=!0,X=0;for(x=0;A.pos<R;){let ae;x=u(A,x),x<X&&(ne=!1),X=x,c(A,R)?(N=u(A,N),H=u(A,H),T=u(A,T),c(A,R)?(_=u(A,_),ae=[x,N,H,T,_]):ae=[x,N,H,T]):ae=[x],Q.push(ae),A.pos++}ne||P(Q),B.push(Q),A.pos=R+1}while(A.pos<=S);return B}function P(F){F.sort(I)}function I(F,S){return F[0]-S[0]}function k(F){const S=new h;let A=0,B=0,x=0,N=0;for(let H=0;H<F.length;H++){const T=F[H];if(H>0&&S.write(59),T.length===0)continue;let _=0;for(let R=0;R<T.length;R++){const Q=T[R];R>0&&S.write(44),_=l(S,Q[0],_),Q.length!==1&&(A=l(S,Q[1],A),B=l(S,Q[2],B),x=l(S,Q[3],x),Q.length!==4&&(N=l(S,Q[4],N)))}}return S.flush()}r.decode=w,r.decodeGeneratedRanges=b,r.decodeOriginalScopes=D,r.encode=k,r.encodeGeneratedRanges=O,r.encodeOriginalScopes=g,Object.defineProperty(r,"__esModule",{value:!0})})}(ka,ka.exports)),ka.exports}var Yl={exports:{}},Yu={exports:{}},bd;function Gj(){return bd||(bd=1,function(e,t){(function(r,n){e.exports=n()})(ii,function(){const r=/^[\w+.-]+:\/\//,n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(y){return r.test(y)}function a(y){return y.startsWith("//")}function o(y){return y.startsWith("/")}function u(y){return y.startsWith("file:")}function l(y){return/^[.?#]/.test(y)}function c(y){const b=n.exec(y);return p(b[1],b[2]||"",b[3],b[4]||"",b[5]||"/",b[6]||"",b[7]||"")}function f(y){const b=i.exec(y),O=b[2];return p("file:","",b[1]||"","",o(O)?O:"/"+O,b[3]||"",b[4]||"")}function p(y,b,O,C,$,w,P){return{scheme:y,user:b,host:O,port:C,path:$,query:w,hash:P,type:7}}function h(y){if(a(y)){const O=c("http:"+y);return O.scheme="",O.type=6,O}if(o(y)){const O=c("http://foo.com"+y);return O.scheme="",O.host="",O.type=5,O}if(u(y))return f(y);if(s(y))return c(y);const b=c("http://foo.com/"+y);return b.scheme="",b.host="",b.type=y?y.startsWith("?")?3:y.startsWith("#")?2:4:1,b}function d(y){if(y.endsWith("/.."))return y;const b=y.lastIndexOf("/");return y.slice(0,b+1)}function m(y,b){D(b,b.type),y.path==="/"?y.path=b.path:y.path=d(b.path)+y.path}function D(y,b){const O=b<=4,C=y.path.split("/");let $=1,w=0,P=!1;for(let k=1;k<C.length;k++){const F=C[k];if(!F){P=!0;continue}if(P=!1,F!=="."){if(F===".."){w?(P=!0,w--,$--):O&&(C[$++]=F);continue}C[$++]=F,w++}}let I="";for(let k=1;k<$;k++)I+="/"+C[k];(!I||P&&!I.endsWith("/.."))&&(I+="/"),y.path=I}function g(y,b){if(!y&&!b)return"";const O=h(y);let C=O.type;if(b&&C!==7){const w=h(b),P=w.type;switch(C){case 1:O.hash=w.hash;case 2:O.query=w.query;case 3:case 4:m(O,w);case 5:O.user=w.user,O.host=w.host,O.port=w.port;case 6:O.scheme=w.scheme}P>C&&(C=P)}D(O,C);const $=O.query+O.hash;switch(C){case 2:case 3:return $;case 4:{const w=O.path.slice(1);return w?l(b||y)&&!l(w)?"./"+w+$:w+$:$||"."}case 5:return O.path+$;default:return O.scheme+"//"+O.user+O.host+O.port+O.path+$}}return g})}(Yu)),Yu.exports}(function(e,t){(function(r,n){n(t,bD(),Gj())})(ii,function(r,n,i){function s(Z,G){return G&&!G.endsWith("/")&&(G+="/"),i(Z,G)}function a(Z){if(!Z)return"";const G=Z.lastIndexOf("/");return Z.slice(0,G+1)}const o=0,u=1,l=2,c=3,f=4,p=1,h=2;function d(Z,G){const V=m(Z,0);if(V===Z.length)return Z;G||(Z=Z.slice());for(let E=V;E<Z.length;E=m(Z,E+1))Z[E]=g(Z[E],G);return Z}function m(Z,G){for(let V=G;V<Z.length;V++)if(!D(Z[V]))return V;return Z.length}function D(Z){for(let G=1;G<Z.length;G++)if(Z[G][o]<Z[G-1][o])return!1;return!0}function g(Z,G){return G||(Z=Z.slice()),Z.sort(y)}function y(Z,G){return Z[o]-G[o]}let b=!1;function O(Z,G,V,E){for(;V<=E;){const j=V+(E-V>>1),z=Z[j][o]-G;if(z===0)return b=!0,j;z<0?V=j+1:E=j-1}return b=!1,V-1}function C(Z,G,V){for(let E=V+1;E<Z.length&&Z[E][o]===G;V=E++);return V}function $(Z,G,V){for(let E=V-1;E>=0&&Z[E][o]===G;V=E--);return V}function w(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function P(Z,G,V,E){const{lastKey:j,lastNeedle:z,lastIndex:se}=V;let oe=0,ce=Z.length-1;if(E===j){if(G===z)return b=se!==-1&&Z[se][o]===G,se;G>=z?oe=se===-1?0:se:ce=se}return V.lastKey=E,V.lastNeedle=G,V.lastIndex=O(Z,G,oe,ce)}function I(Z,G){const V=G.map(F);for(let E=0;E<Z.length;E++){const j=Z[E];for(let z=0;z<j.length;z++){const se=j[z];if(se.length===1)continue;const oe=se[u],ce=se[l],Pe=se[c],Ue=V[oe],ue=Ue[ce]||(Ue[ce]=[]),Me=G[oe];let Ve=C(ue,Pe,P(ue,Pe,Me,ce));Me.lastIndex=++Ve,k(ue,Ve,[Pe,E,se[o]])}}return V}function k(Z,G,V){for(let E=Z.length;E>G;E--)Z[E]=Z[E-1];Z[G]=V}function F(){return{__proto__:null}}const S=function(Z,G){const V=A(Z);if(!("sections"in V))return new ne(V,G);const E=[],j=[],z=[],se=[],oe=[];B(V,G,E,j,z,se,oe,0,0,1/0,1/0);const ce={version:3,file:V.file,names:se,sources:j,sourcesContent:z,mappings:E,ignoreList:oe};return Ne(ce)};function A(Z){return typeof Z=="string"?JSON.parse(Z):Z}function B(Z,G,V,E,j,z,se,oe,ce,Pe,Ue){const{sections:ue}=Z;for(let Me=0;Me<ue.length;Me++){const{map:Ve,offset:Ke}=ue[Me];let Le=Pe,W=Ue;if(Me+1<ue.length){const Se=ue[Me+1].offset;Le=Math.min(Pe,oe+Se.line),Le===Pe?W=Math.min(Ue,ce+Se.column):Le<Pe&&(W=ce+Se.column)}x(Ve,G,V,E,j,z,se,oe+Ke.line,ce+Ke.column,Le,W)}}function x(Z,G,V,E,j,z,se,oe,ce,Pe,Ue){const ue=A(Z);if("sections"in ue)return B(...arguments);const Me=new ne(ue,G),Ve=E.length,Ke=z.length,Le=ie(Me),{resolvedSources:W,sourcesContent:Se,ignoreList:ze}=Me;if(N(E,W),N(z,Me.names),Se)N(j,Se);else for(let ft=0;ft<W.length;ft++)j.push(null);if(ze)for(let ft=0;ft<ze.length;ft++)se.push(ze[ft]+Ve);for(let ft=0;ft<Le.length;ft++){const lr=oe+ft;if(lr>Pe)return;const Or=H(V,lr),cr=ft===0?ce:0,fr=Le[ft];for(let Jt=0;Jt<fr.length;Jt++){const wt=fr[Jt],Tr=cr+wt[o];if(lr===Pe&&Tr>=Ue)return;if(wt.length===1){Or.push([Tr]);continue}const an=Ve+wt[u],jn=wt[l],on=wt[c];Or.push(wt.length===4?[Tr,an,jn,on]:[Tr,an,jn,on,Ke+wt[f]])}}}function N(Z,G){for(let V=0;V<G.length;V++)Z.push(G[V])}function H(Z,G){for(let V=Z.length;V<=G;V++)Z[V]=[];return Z[G]}const T="`line` must be greater than 0 (lines start at line 1)",_="`column` must be greater than or equal to 0 (columns start at column 0)",R=-1,Q=1;class ne{constructor(G,V){const E=typeof G=="string";if(!E&&G._decodedMemo)return G;const j=E?JSON.parse(G):G,{version:z,file:se,names:oe,sourceRoot:ce,sources:Pe,sourcesContent:Ue}=j;this.version=z,this.file=se,this.names=oe||[],this.sourceRoot=ce,this.sources=Pe,this.sourcesContent=Ue,this.ignoreList=j.ignoreList||j.x_google_ignoreList||void 0;const ue=s(ce||"",a(V));this.resolvedSources=Pe.map(Ve=>s(Ve||"",ue));const{mappings:Me}=j;typeof Me=="string"?(this._encoded=Me,this._decoded=void 0):(this._encoded=void 0,this._decoded=d(Me,E)),this._decodedMemo=w(),this._bySources=void 0,this._bySourceMemos=void 0}}function X(Z){return Z}function ae(Z){var G,V;return(G=(V=Z)._encoded)!==null&&G!==void 0?G:V._encoded=n.encode(Z._decoded)}function ie(Z){var G;return(G=Z)._decoded||(G._decoded=n.decode(Z._encoded))}function te(Z,G,V){const E=ie(Z);if(G>=E.length)return null;const j=E[G],z=st(j,Z._decodedMemo,G,V,Q);return z===-1?null:j[z]}function Y(Z,G){let{line:V,column:E,bias:j}=G;if(V--,V<0)throw new Error(T);if(E<0)throw new Error(_);const z=ie(Z);if(V>=z.length)return ge(null,null,null,null);const se=z[V],oe=st(se,Z._decodedMemo,V,E,j||Q);if(oe===-1)return ge(null,null,null,null);const ce=se[oe];if(ce.length===1)return ge(null,null,null,null);const{names:Pe,resolvedSources:Ue}=Z;return ge(Ue[ce[u]],ce[l]+1,ce[c],ce.length===5?Pe[ce[f]]:null)}function re(Z,G){const{source:V,line:E,column:j,bias:z}=G;return $e(Z,V,E,j,z||Q,!1)}function De(Z,G){const{source:V,line:E,column:j,bias:z}=G;return $e(Z,V,E,j,z||R,!0)}function de(Z,G){const V=ie(Z),{names:E,resolvedSources:j}=Z;for(let z=0;z<V.length;z++){const se=V[z];for(let oe=0;oe<se.length;oe++){const ce=se[oe],Pe=z+1,Ue=ce[0];let ue=null,Me=null,Ve=null,Ke=null;ce.length!==1&&(ue=j[ce[1]],Me=ce[2]+1,Ve=ce[3]),ce.length===5&&(Ke=E[ce[4]]),G({generatedLine:Pe,generatedColumn:Ue,source:ue,originalLine:Me,originalColumn:Ve,name:Ke})}}}function Ce(Z,G){const{sources:V,resolvedSources:E}=Z;let j=V.indexOf(G);return j===-1&&(j=E.indexOf(G)),j}function Ie(Z,G){const{sourcesContent:V}=Z;if(V==null)return null;const E=Ce(Z,G);return E===-1?null:V[E]}function Te(Z,G){const{ignoreList:V}=Z;if(V==null)return!1;const E=Ce(Z,G);return E===-1?!1:V.includes(E)}function Ne(Z,G){const V=new ne(Oe(Z,[]),G);return V._decoded=Z.mappings,V}function Je(Z){return Oe(Z,ie(Z))}function Fe(Z){return Oe(Z,ae(Z))}function Oe(Z,G){return{version:Z.version,file:Z.file,names:Z.names,sourceRoot:Z.sourceRoot,sources:Z.sources,sourcesContent:Z.sourcesContent,mappings:G,ignoreList:Z.ignoreList||Z.x_google_ignoreList}}function ge(Z,G,V,E){return{source:Z,line:G,column:V,name:E}}function Ae(Z,G){return{line:Z,column:G}}function st(Z,G,V,E,j){let z=P(Z,E,G,V);return b?z=(j===R?C:$)(Z,E,z):j===R&&z++,z===-1||z===Z.length?-1:z}function fe(Z,G,V,E,j){let z=st(Z,G,V,E,Q);if(!b&&j===R&&z++,z===-1||z===Z.length)return[];const se=b?E:Z[z][o];b||(z=$(Z,se,z));const oe=C(Z,se,z),ce=[];for(;z<=oe;z++){const Pe=Z[z];ce.push(Ae(Pe[p]+1,Pe[h]))}return ce}function $e(Z,G,V,E,j,z){var se;if(V--,V<0)throw new Error(T);if(E<0)throw new Error(_);const{sources:oe,resolvedSources:ce}=Z;let Pe=oe.indexOf(G);if(Pe===-1&&(Pe=ce.indexOf(G)),Pe===-1)return z?[]:Ae(null,null);const ue=((se=Z)._bySources||(se._bySources=I(ie(Z),Z._bySourceMemos=oe.map(w))))[Pe][V];if(ue==null)return z?[]:Ae(null,null);const Me=Z._bySourceMemos[Pe];if(z)return fe(ue,Me,V,E,j);const Ve=st(ue,Me,V,E,j);if(Ve===-1)return Ae(null,null);const Ke=ue[Ve];return Ae(Ke[p]+1,Ke[h])}r.AnyMap=S,r.GREATEST_LOWER_BOUND=Q,r.LEAST_UPPER_BOUND=R,r.TraceMap=ne,r.allGeneratedPositionsFor=De,r.decodedMap=Je,r.decodedMappings=ie,r.eachMapping=de,r.encodedMap=Fe,r.encodedMappings=ae,r.generatedPositionFor=re,r.isIgnored=Te,r.originalPositionFor=Y,r.presortedDecodedMap=Ne,r.sourceContentFor=Ie,r.traceSegment=te})})(Yl,Yl.exports);var TD=Yl.exports;(function(e,t){(function(r,n){n(t,Hj(),bD(),TD)})(ii,function(r,n,i,s){class p{constructor({file:T,sourceRoot:_}={}){this._names=new n.SetArray,this._sources=new n.SetArray,this._sourcesContent=[],this._mappings=[],this.file=T,this.sourceRoot=_,this._ignoreList=new n.SetArray}}function h(H){return H}function d(H,T,_,R,Q,ne,X,ae){return P(!1,H,T,_,R,Q,ne,X,ae)}function m(H,T){return N(!1,H,T)}const D=(H,T,_,R,Q,ne,X,ae)=>P(!0,H,T,_,R,Q,ne,X,ae),g=(H,T)=>N(!0,H,T);function y(H,T,_){const{_sources:R,_sourcesContent:Q}=H,ne=n.put(R,T);Q[ne]=_}function b(H,T,_=!0){const{_sources:R,_sourcesContent:Q,_ignoreList:ne}=H,X=n.put(R,T);X===Q.length&&(Q[X]=null),_?n.put(ne,X):n.remove(ne,X)}function O(H){const{_mappings:T,_sources:_,_sourcesContent:R,_names:Q,_ignoreList:ne}=H;return S(T),{version:3,file:H.file||void 0,names:Q.array,sourceRoot:H.sourceRoot||void 0,sources:_.array,sourcesContent:R,mappings:T,ignoreList:ne.array}}function C(H){const T=O(H);return Object.assign(Object.assign({},T),{mappings:i.encode(T.mappings)})}function $(H){const T=new s.TraceMap(H),_=new p({file:T.file,sourceRoot:T.sourceRoot});return A(_._names,T.names),A(_._sources,T.sources),_._sourcesContent=T.sourcesContent||T.sources.map(()=>null),_._mappings=s.decodedMappings(T),T.ignoreList&&A(_._ignoreList,T.ignoreList),_}function w(H){const T=[],{_mappings:_,_sources:R,_names:Q}=H;for(let ne=0;ne<_.length;ne++){const X=_[ne];for(let ae=0;ae<X.length;ae++){const ie=X[ae],te={line:ne+1,column:ie[0]};let Y,re,De;ie.length!==1&&(Y=R.array[ie[1]],re={line:ie[2]+1,column:ie[3]},ie.length===5&&(De=Q.array[ie[4]])),T.push({generated:te,source:Y,original:re,name:De})}}return T}function P(H,T,_,R,Q,ne,X,ae,ie){const{_mappings:te,_sources:Y,_sourcesContent:re,_names:De}=T,de=I(te,_),Ce=k(de,R);if(!Q)return H&&B(de,Ce)?void 0:F(de,Ce,[R]);const Ie=n.put(Y,Q),Te=ae?n.put(De,ae):-1;if(Ie===re.length&&(re[Ie]=ie??null),!(H&&x(de,Ce,Ie,ne,X,Te)))return F(de,Ce,ae?[R,Ie,ne,X,Te]:[R,Ie,ne,X])}function I(H,T){for(let _=H.length;_<=T;_++)H[_]=[];return H[T]}function k(H,T){let _=H.length;for(let R=_-1;R>=0;_=R--){const Q=H[R];if(T>=Q[0])break}return _}function F(H,T,_){for(let R=H.length;R>T;R--)H[R]=H[R-1];H[T]=_}function S(H){const{length:T}=H;let _=T;for(let R=_-1;R>=0&&!(H[R].length>0);_=R,R--);_<T&&(H.length=_)}function A(H,T){for(let _=0;_<T.length;_++)n.put(H,T[_])}function B(H,T){return T===0?!0:H[T-1].length===1}function x(H,T,_,R,Q,ne){if(T===0)return!1;const X=H[T-1];return X.length===1?!1:_===X[1]&&R===X[2]&&Q===X[3]&&ne===(X.length===5?X[4]:-1)}function N(H,T,_){const{generated:R,source:Q,original:ne,name:X,content:ae}=_;return Q?P(H,T,R.line-1,R.column,Q,ne.line-1,ne.column,X,ae):P(H,T,R.line-1,R.column,null,null,null,null,null)}r.GenMapping=p,r.addMapping=m,r.addSegment=d,r.allMappings=w,r.fromMap=$,r.maybeAddMapping=g,r.maybeAddSegment=D,r.setIgnore=b,r.setSourceContent=y,r.toDecodedMap=O,r.toEncodedMap=C,Object.defineProperty(r,"__esModule",{value:!0})})})(Gl,Gl.exports);var Yj=Gl.exports;Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var fn=Yj,Xu=TD;class Xj{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const i=this._map=new fn.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Xu.TraceMap(t.inputSourceMap);const a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var s;(0,fn.setSourceContent)(i,a[o],(s=this._inputMap.sourcesContent)==null?void 0:s[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,fn.setSourceContent)(i,this._sourceFileName,r);else if(typeof r=="object")for(const a of Object.keys(r))(0,fn.setSourceContent)(i,a.replace(/\\/g,"/"),r[a])}get(){return(0,fn.toEncodedMap)(this._map)}getDecoded(){return(0,fn.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,fn.allMappings)(this._map))}mark(t,r,n,i,s,a){var o;this._rawMappings=void 0;let u;if(r!=null)if(this._inputMap){if(u=(0,Xu.originalPositionFor)(this._inputMap,{line:r,column:n}),!u.name&&s){const l=(0,Xu.originalPositionFor)(this._inputMap,s);l.name&&(i=l.name)}}else u={source:(a==null?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:r,column:n};(0,fn.maybeAddMapping)(this._map,{name:i,generated:t,source:(o=u)==null?void 0:o.source,original:u})}}Zo.default=Xj;var eu={},tu={};Object.defineProperty(tu,"__esModule",{value:!0});tu.default=void 0;let Jj=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue()}_allocQueue(){const t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,n,i,s){const a=this._queueCursor;a===this._queue.length&&this._allocQueue();const o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=i,o.filename=s,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){const n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0})},get rawMappings(){const n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){const n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--}const r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){const t=this._queueCursor,r=this._queue;for(let n=0;n<t;n++){const i=r[n];this._appendChar(i.char,i.repeat,i)}this._queueCursor=0}_appendChar(t,r,n){if(this._last=t,t===-1){const i=this._fastIndentations[r];i!==void 0?this._str+=i:this._str+=r>1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(t,r,n){const i=t.length,s=this._position;if(this._last=t.charCodeAt(i-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){s.column+=i;return}const{column:a,identifierName:o,identifierNamePos:u,filename:l}=r;let c=r.line;(o!=null||u!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let f=t.indexOf(`
126
+ `),p=0;for(f!==0&&this._mark(c,a,o,u,l);f!==-1;)s.line++,s.column=0,p=f+1,p<i&&c!==void 0&&this._mark(++c,0,null,null,l),f=t.indexOf(`
127
+ `,p);s.column+=i-p}_mark(t,r,n,i,s){var a;(a=this._map)==null||a.mark(this._position,t,r,n,i,s)}removeTrailingNewline(){const t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--}removeLastSemicolon(){const t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--}getLastChar(){const t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){const t=this._queueCursor;let r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){const t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);const n=t.identifierName,i=this._sourcePosition;n&&(this._canMarkIdName=!1,i.identifierName=n),r(),n&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){const i=r[t],s=this._sourcePosition;i&&(s.line=i.line,s.column=Math.max(i.column+n,0),s.filename=r.filename)}getCurrentColumn(){const t=this._queue,r=this._queueCursor;let n=-1,i=0;for(let s=0;s<r;s++){const a=t[s];a.char===10&&(n=i),i+=a.repeat}return n===-1?this._position.column+i:i-1-n}getCurrentLine(){let t=0;const r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};tu.default=Jj;var kr={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.nodes=void 0;var zj=He();const{FLIPPED_ALIAS_KEYS:Qj,isArrayExpression:Zj,isAssignmentExpression:SD,isBinary:vD,isBlockStatement:e$,isCallExpression:AD,isFunction:ys,isIdentifier:bo,isLiteral:t$,isMemberExpression:wf,isObjectExpression:r$,isOptionalCallExpression:n$,isOptionalMemberExpression:i$,isStringLiteral:s$}=zj;function Si(e,t){return e&&(wf(e)||i$(e)?(Si(e.object,t),e.computed&&Si(e.property,t)):vD(e)||SD(e)?(Si(e.left,t),Si(e.right,t)):AD(e)||n$(e)?(t.hasCall=!0,Si(e.callee,t)):ys(e)?t.hasFunction=!0:bo(e)&&(t.hasHelper=t.hasHelper||e.callee&&Hr(e.callee))),t}function Td(e){return Si(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Hr(e){return e?wf(e)?Hr(e.object)||Hr(e.property):bo(e)?e.name==="require"||e.name.charCodeAt(0)===95:AD(e)?Hr(e.callee):vD(e)||SD(e)?bo(e.left)&&Hr(e.left)||Hr(e.right):!1:!1}function a$(e){return t$(e)||r$(e)||Zj(e)||bo(e)||wf(e)}const ri=ru.nodes={AssignmentExpression(e){const t=Td(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(ys(e.left)||ys(e.right))return 2},Literal(e){if(s$(e)&&e.value==="use strict")return 2},CallExpression(e){if(ys(e.callee)||Hr(e))return 3},OptionalCallExpression(e){if(ys(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let n=Hr(r.id)&&!a$(r.init);if(!n&&r.init){const i=Td(r.init);n=Hr(r.init)&&i.hasCall||i.hasFunction}if(n)return 3}},IfStatement(e){if(e$(e.consequent))return 3}};ri.ObjectProperty=ri.ObjectTypeProperty=ri.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};ri.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};ri.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};ri.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((i=t.indexers)!=null&&i.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(Qj[e]||[]).forEach(function(r){const n=t?3:0;ri[r]=()=>n})});var nt={},Sd;function o$(){if(Sd)return nt;Sd=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.ArrowFunctionExpression=_,nt.AssignmentExpression=ne,nt.Binary=$,nt.BinaryExpression=A,nt.ClassExpression=N,nt.ConditionalExpression=R,nt.DoExpression=C,nt.FunctionExpression=T,nt.FunctionTypeAnnotation=y,nt.Identifier=ae,nt.LogicalExpression=X,nt.NullableTypeAnnotation=g,nt.ObjectExpression=O,nt.OptionalIndexedAccessType=P,nt.OptionalCallExpression=nt.OptionalMemberExpression=Q,nt.SequenceExpression=B,nt.TSSatisfiesExpression=nt.TSAsExpression=I,nt.TSInferType=F,nt.TSInstantiationExpression=S,nt.UnaryLike=nt.TSTypeAssertion=H,nt.TSIntersectionType=nt.TSUnionType=k,nt.IntersectionTypeAnnotation=nt.UnionTypeAnnotation=w,nt.UpdateExpression=b,nt.AwaitExpression=nt.YieldExpression=x;var e=He(),t=di();const{isArrayTypeAnnotation:r,isBinaryExpression:n,isCallExpression:i,isExportDeclaration:s,isForOfStatement:a,isIndexedAccessType:o,isMemberExpression:u,isObjectPattern:l,isOptionalMemberExpression:c,isYieldExpression:f}=e,p=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function h(ie,te){if(te==="BinaryExpression"||te==="LogicalExpression")return p.get(ie.operator);if(te==="TSAsExpression"||te==="TSSatisfiesExpression")return p.get("in")}function d(ie){return ie==="TSAsExpression"||ie==="TSSatisfiesExpression"||ie==="TSTypeAssertion"}const m=(ie,te)=>{const Y=te.type;return(Y==="ClassDeclaration"||Y==="ClassExpression")&&te.superClass===ie},D=(ie,te)=>{const Y=te.type;return(Y==="MemberExpression"||Y==="OptionalMemberExpression")&&te.object===ie||(Y==="CallExpression"||Y==="OptionalCallExpression"||Y==="NewExpression")&&te.callee===ie||Y==="TaggedTemplateExpression"&&te.tag===ie||Y==="TSNonNullExpression"};function g(ie,te){return r(te)}function y(ie,te,Y){const re=te.type;return re==="UnionTypeAnnotation"||re==="IntersectionTypeAnnotation"||re==="ArrayTypeAnnotation"||!!(Y&t.TokenContext.arrowFlowReturnType)}function b(ie,te){return D(ie,te)||m(ie,te)}function O(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.arrowBody))}function C(ie,te,Y){return!ie.async&&!!(Y&t.TokenContext.expressionStatement)}function $(ie,te){const Y=te.type;if(ie.type==="BinaryExpression"&&ie.operator==="**"&&Y==="BinaryExpression"&&te.operator==="**")return te.left===ie;if(m(ie,te)||D(ie,te)||Y==="UnaryExpression"||Y==="SpreadElement"||Y==="AwaitExpression")return!0;const re=h(te,Y);if(re!=null){const De=h(ie,ie.type);if(re===De&&Y==="BinaryExpression"&&te.right===ie||re>De)return!0}}function w(ie,te){const Y=te.type;return Y==="ArrayTypeAnnotation"||Y==="NullableTypeAnnotation"||Y==="IntersectionTypeAnnotation"||Y==="UnionTypeAnnotation"}function P(ie,te){return o(te)&&te.objectType===ie}function I(ie,te){return(te.type==="AssignmentExpression"||te.type==="AssignmentPattern")&&te.left===ie||te.type==="BinaryExpression"&&(te.operator==="|"||te.operator==="&")&&ie===te.left?!0:$(ie,te)}function k(ie,te){const Y=te.type;return Y==="TSArrayType"||Y==="TSOptionalType"||Y==="TSIntersectionType"||Y==="TSUnionType"||Y==="TSRestType"}function F(ie,te){const Y=te.type;return Y==="TSArrayType"||Y==="TSOptionalType"}function S(ie,te){const Y=te.type;return(Y==="CallExpression"||Y==="OptionalCallExpression"||Y==="NewExpression"||Y==="TSInstantiationExpression")&&!!te.typeParameters}function A(ie,te,Y,re){return ie.operator==="in"&&re}function B(ie,te){const Y=te.type;return!(Y==="ForStatement"||Y==="ThrowStatement"||Y==="ReturnStatement"||Y==="IfStatement"&&te.test===ie||Y==="WhileStatement"&&te.test===ie||Y==="ForInStatement"&&te.right===ie||Y==="SwitchStatement"&&te.discriminant===ie||Y==="ExpressionStatement"&&te.expression===ie)}function x(ie,te){const Y=te.type;return Y==="BinaryExpression"||Y==="LogicalExpression"||Y==="UnaryExpression"||Y==="SpreadElement"||D(ie,te)||Y==="AwaitExpression"&&f(ie)||Y==="ConditionalExpression"&&ie===te.test||m(ie,te)||d(Y)}function N(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))}function H(ie,te){return D(ie,te)||n(te)&&te.operator==="**"&&te.left===ie||m(ie,te)}function T(ie,te,Y){return!!(Y&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))}function _(ie,te){return s(te)||R(ie,te)}function R(ie,te){const Y=te.type;return Y==="UnaryExpression"||Y==="SpreadElement"||Y==="BinaryExpression"||Y==="LogicalExpression"||Y==="ConditionalExpression"&&te.test===ie||Y==="AwaitExpression"||d(Y)?!0:H(ie,te)}function Q(ie,te){return i(te)&&te.callee===ie||u(te)&&te.object===ie}function ne(ie,te){return l(ie.left)?!0:R(ie,te)}function X(ie,te){const Y=te.type;if(d(Y))return!0;if(Y!=="LogicalExpression")return!1;switch(ie.operator){case"||":return te.operator==="??"||te.operator==="&&";case"&&":return te.operator==="??";case"??":return te.operator!=="??"}}function ae(ie,te,Y){var re;const De=te.type;if((re=ie.extra)!=null&&re.parenthesized&&De==="AssignmentExpression"&&te.left===ie){const de=te.right.type;if((de==="FunctionExpression"||de==="ClassExpression")&&te.right.id==null)return!0}return ie.name==="let"?(u(te,{object:ie,computed:!0})||c(te,{object:ie,computed:!0,optional:!1}))&&Y&(t.TokenContext.expressionStatement|t.TokenContext.forHead|t.TokenContext.forInHead)?!0:!!(Y&t.TokenContext.forOfHead):ie.name==="async"&&a(te,{left:ie,await:!1})}return nt}var vd;function di(){if(vd)return kr;vd=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.TokenContext=void 0,kr.needsParens=g,kr.needsWhitespace=d,kr.needsWhitespaceAfter=D,kr.needsWhitespaceBefore=m;var e=ru,t=o$(),r=He();const{FLIPPED_ALIAS_KEYS:n,isCallExpression:i,isDecorator:s,isExpressionStatement:a,isMemberExpression:o,isNewExpression:u,isParenthesizedExpression:l}=r;kr.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function c(b){const O=new Map;function C($,w){const P=O.get($);O.set($,P?function(I,k,F,S){var A;return(A=P(I,k,F,S))!=null?A:w(I,k,F,S)}:w)}for(const $ of Object.keys(b)){const w=n[$];if(w)for(const P of w)C(P,b[$]);else C($,b[$])}return O}const f=c(t),p=c(e.nodes);function h(b){return i(b)?!0:o(b)&&h(b.object)}function d(b,O,C){var $;if(!b)return!1;a(b)&&(b=b.expression);const w=($=p.get(b.type))==null?void 0:$(b,O);return typeof w=="number"?(w&C)!==0:!1}function m(b,O){return d(b,O,1)}function D(b,O){return d(b,O,2)}function g(b,O,C,$){var w;return O?u(O)&&O.callee===b&&h(b)?!0:s(O)?!y(b)&&!(i(b)&&y(b.callee))&&!l(b):(w=f.get(b.type))==null?void 0:w(b,O,C,$):!1}function y(b){switch(b.type){case"Identifier":return!0;case"MemberExpression":return!b.computed&&b.property.type==="Identifier"&&y(b.object);default:return!1}}return kr}var CD={},Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.TaggedTemplateExpression=u$;Hs.TemplateElement=l$;Hs.TemplateLiteral=c$;function u$(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)}function l$(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function c$(e){const t=e.quasis;let r="`";for(let n=0;n<t.length;n++)r+=t[n].value.raw,n+1<t.length&&(this.token(r+"${",!0),this.print(e.expressions[n],e),r="}");this.token(r+"`",!0)}var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.LogicalExpression=ut.BinaryExpression=ut.AssignmentExpression=k$;ut.AssignmentPattern=B$;ut.AwaitExpression=w$;ut.BindExpression=L$;ut.CallExpression=F$;ut.ConditionalExpression=E$;ut.Decorator=C$;ut.DoExpression=y$;ut.EmptyStatement=O$;ut.ExpressionStatement=N$;ut.Import=_$;ut.MemberExpression=R$;ut.MetaProperty=M$;ut.ModuleExpression=U$;ut.NewExpression=b$;ut.OptionalCallExpression=x$;ut.OptionalMemberExpression=P$;ut.ParenthesizedExpression=D$;ut.PrivateName=j$;ut.SequenceExpression=T$;ut.Super=v$;ut.ThisExpression=S$;ut.UnaryExpression=m$;ut.UpdateExpression=g$;ut.V8IntrinsicIdentifier=$$;ut.YieldExpression=I$;ut._shouldPrintDecoratorsBeforeExport=A$;var f$=He(),p$=di();const{isCallExpression:h$,isLiteral:PD,isMemberExpression:If,isNewExpression:d$}=f$;function m$(e){const{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument,e)}function y$(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e)}function D$(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e)}function g$(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator))}function E$(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e)}function b$(e,t){if(this.word("new"),this.space(),this.print(e.callee,e),this.format.minified&&e.arguments.length===0&&!e.optional&&!h$(t,{callee:e})&&!If(t)&&!d$(t))return;this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40);const r=this.enterForStatementInit(!1);this.printList(e.arguments,e),r(),this.rightParens(e)}function T$(e){this.printList(e.expressions,e)}function S$(){this.word("this")}function v$(){this.word("super")}function A$(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function C$(e){this.tokenChar(64),this.print(e.expression,e),this.newline()}function P$(e){let{computed:t}=e;const{optional:r,property:n}=e;if(this.print(e.object,e),!t&&If(n))throw new TypeError("Got a MemberExpression for MemberExpression property");PD(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n,e))}function x$(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40);const t=this.enterForStatementInit(!1);this.printList(e.arguments,e),t(),this.rightParens(e)}function F$(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40);const t=this.enterForStatementInit(!1);this.printList(e.arguments,e),t(),this.rightParens(e)}function _$(){this.word("import")}function w$(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))}function I$(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))}function O$(){this.semicolon(!0)}function N$(e){this.tokenContext|=p$.TokenContext.expressionStatement,this.print(e.expression,e),this.semicolon()}function B$(e){this.print(e.left,e),e.left.type==="Identifier"&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e)),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e)}function k$(e){this.print(e.left,e),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e)}function L$(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)}function R$(e){if(this.print(e.object,e),!e.computed&&If(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(PD(e.property)&&typeof e.property.value=="number"&&(t=!0),t){const r=this.enterForStatementInit(!1);this.tokenChar(91),this.print(e.property,e),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property,e)}function M$(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e)}function j$(e){this.tokenChar(35),this.print(e.id,e)}function $$(e){this.tokenChar(37),this.word(e.name)}function U$(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e)}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.BreakStatement=z$;gt.CatchClause=nU;gt.ContinueStatement=Q$;gt.DebuggerStatement=aU;gt.DoWhileStatement=J$;gt.ForOfStatement=gt.ForInStatement=void 0;gt.ForStatement=Y$;gt.IfStatement=G$;gt.LabeledStatement=tU;gt.ReturnStatement=Z$;gt.SwitchCase=sU;gt.SwitchStatement=iU;gt.ThrowStatement=eU;gt.TryStatement=rU;gt.VariableDeclaration=oU;gt.VariableDeclarator=uU;gt.WhileStatement=X$;gt.WithStatement=H$;var V$=He(),Xl=di();const{isFor:Ad,isForStatement:q$,isIfStatement:K$,isStatement:W$}=V$;function H$(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e)}function G$(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();const t=e.alternate&&K$(xD(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))}function xD(e){const{body:t}=e;return W$(t)===!1?e:xD(t)}function Y$(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit(!0);this.tokenContext|=Xl.TokenContext.forHead,this.print(e.init,e),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e)}function X$(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e)}function FD(e){this.word("for"),this.space();const t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const r=t?null:this.enterForStatementInit(!0);this.tokenContext|=t?Xl.TokenContext.forOfHead:Xl.TokenContext.forInHead,this.print(e.left,e),r==null||r()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e)}gt.ForInStatement=FD;gt.ForOfStatement=FD;function J$(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon()}function nu(e,t,r,n){t&&(e.space(),e.printTerminatorless(t,r,n)),e.semicolon()}function z$(e){this.word("break"),nu(this,e.label,e,!0)}function Q$(e){this.word("continue"),nu(this,e.label,e,!0)}function Z$(e){this.word("return"),nu(this,e.argument,e,!1)}function eU(e){this.word("throw"),nu(this,e.argument,e,!1)}function tU(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e)}function rU(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))}function nU(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e)}function iU(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.rightBrace(e)}function sU(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))}function aU(){this.word("debugger"),this.semicolon()}function oU(e,t){e.declare&&(this.word("declare"),this.space());const{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let n=!1;if(!Ad(t))for(const i of e.declarations)i.init&&(n=!0);if(this.printList(e.declarations,e,{separator:n?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),Ad(t)){if(q$(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function uU(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))}var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.ClassAccessorProperty=mU;ar.ClassBody=hU;ar.ClassExpression=ar.ClassDeclaration=pU;ar.ClassMethod=DU;ar.ClassPrivateMethod=gU;ar.ClassPrivateProperty=yU;ar.ClassProperty=dU;ar.StaticBlock=bU;ar._classMethodHead=EU;var lU=He();const{isExportDefaultDeclaration:cU,isExportNamedDeclaration:fU}=lU;function pU(e,t){(!(cU(t)||fU(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)}function hU(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();const t=this.enterForStatementInit(!1);this.printSequence(e.body,e,{indent:!0}),t(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function dU(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function mU(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function yU(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()}function DU(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function gU(e){this._classMethodHead(e),this.space(),this.print(e.body,e)}function EU(e){var t;this.printJoin(e.decorators,e);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function bU(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))}var Er={};Object.defineProperty(Er,"__esModule",{value:!0});Er.ArrowFunctionExpression=IU;Er.FunctionDeclaration=Er.FunctionExpression=wU;Er._functionHead=_U;Er._methodHead=xU;Er._param=PU;Er._parameters=CU;Er._params=AU;Er._predicate=FU;var TU=He(),SU=di();const{isIdentifier:vU}=TU;function AU(e,t,r){this.print(e.typeParameters,e);const n=NU.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);const i=e.type==="ArrowFunctionExpression";this.print(e.returnType,e,i),this._noLineTerminator=i}function CU(e,t){const r=this.enterForStatementInit(!1),n=e.length;for(let i=0;i<n;i++)this._param(e[i],t),i<e.length-1&&(this.tokenChar(44),this.space());r()}function PU(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)}function xU(e){const t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):this.print(r,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key,void 0)}function FU(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t))}function _U(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),e.type!=="TSDeclareFunction"&&this._predicate(e)}function wU(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e)}function IU(e,t){e.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&e.params.length===1&&vU(r=e.params[0])&&!OU(e,r)?this.print(r,e,!0):this._params(e,void 0,t),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=SU.TokenContext.arrowBody,this.print(e.body,e)}function OU(e,t){var r,n;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}function NU(e,t){let r=e;if(!r&&t){const u=t.type;u==="VariableDeclarator"?r=t.id:u==="AssignmentExpression"||u==="AssignmentPattern"?r=t.left:u==="ObjectProperty"||u==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(u==="ClassPrivateProperty"||u==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let n;if(r.type==="Identifier"){var i,s;n={pos:(i=r.loc)==null?void 0:i.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}var Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.ExportAllDeclaration=GU;Bt.ExportDefaultDeclaration=XU;Bt.ExportDefaultSpecifier=qU;Bt.ExportNamedDeclaration=YU;Bt.ExportNamespaceSpecifier=WU;Bt.ExportSpecifier=KU;Bt.ImportAttribute=zU;Bt.ImportDeclaration=JU;Bt.ImportDefaultSpecifier=VU;Bt.ImportExpression=ZU;Bt.ImportNamespaceSpecifier=QU;Bt.ImportSpecifier=UU;Bt._printAttributes=HU;var BU=He(),kU=di();const{isClassDeclaration:LU,isExportDefaultSpecifier:RU,isExportNamespaceSpecifier:MU,isImportDefaultSpecifier:jU,isImportNamespaceSpecifier:$U,isStatement:_D}=BU;function UU(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))}function VU(e){this.print(e.local,e)}function qU(e){this.print(e.exported,e)}function KU(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))}function WU(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)}let Cd=!1;function HU(e){const{importAttributesKeyword:t}=this.format,{attributes:r,assertions:n}=e;r&&!t&&!Cd&&(Cd=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const i=t==="assert"||!t&&n;if(this.word(i?"assert":"with"),this.space(),!i&&t!=="with"){this.printList(r||n,e);return}this.tokenChar(123),this.space(),this.printList(r||n,e),this.space(),this.tokenChar(125)}function GU(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function wD(e,t){LU(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}function YU(e){if(wD(this,e),this.word("export"),this.space(),e.declaration){const n=e.declaration;this.print(n,e),_D(n)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());const n=e.specifiers.slice(0);let i=!1;for(;;){const s=n[0];if(RU(s)||MU(s))i=!0,this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space());else break}if((n.length||!n.length&&!i)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)}this.semicolon()}}function XU(e){wD(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=kU.TokenContext.exportDefault;const t=e.declaration;this.print(t,e),_D(t)||this.semicolon()}function JU(e){var t,r;this.word("import"),this.space();const n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),s=!!i.length;for(;s;){const a=i[0];if(jU(a)||$U(a))this.print(i.shift(),e),i.length&&(this.tokenChar(44),this.space());else break}i.length?(this.tokenChar(123),this.space(),this.printList(i,e),this.space(),this.tokenChar(125)):n&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()}function zU(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function QU(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)}function ZU(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41)}var ct={};const ID={},eV=ID.hasOwnProperty,OD=(e,t)=>{for(const r in e)eV.call(e,r)&&t(r,e[r])},tV=(e,t)=>(t&&OD(t,(r,n)=>{e[r]=n}),e),rV=(e,t)=>{const r=e.length;let n=-1;for(;++n<r;)t(e[n])},Gs=ID.toString,nV=Array.isArray,iV=Buffer.isBuffer,sV=e=>Gs.call(e)=="[object Object]",aV=e=>typeof e=="string"||Gs.call(e)=="[object String]",oV=e=>typeof e=="number"||Gs.call(e)=="[object Number]",uV=e=>typeof e=="function",lV=e=>Gs.call(e)=="[object Map]",cV=e=>Gs.call(e)=="[object Set]",fV={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},pV=/["'\\\b\f\n\r\t]/,hV=/[0-9]/,dV=/[ !#-&\(-\[\]-_a-~]/,hn=(e,t)=>{const r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=tV(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");const s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex;let u=t.indent.repeat(t.indentLevel),l="";const c=t.__inline1__,f=t.__inline2__,p=a?"":`
128
+ `;let h,d=!0;const m=t.numbers=="binary",D=t.numbers=="octal",g=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(i&&e&&uV(e.toJSON)&&(e=e.toJSON()),!aV(e)){if(lV(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+hn(Array.from(e),t)+")");if(cV(e))return e.size==0?"new Set()":"new Set("+hn(Array.from(e),t)+")";if(iV(e))return e.length==0?"Buffer.from([])":"Buffer.from("+hn(Array.from(e),t)+")";if(nV(e))return h=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||r(),rV(e,$=>{d=!1,f&&(t.__inline2__=!1),h.push((a||f?"":u)+hn($,t))}),d?"[]":f?"["+h.join(", ")+"]":"["+p+h.join(","+p)+p+(a?"":l)+"]";if(oV(e)){if(i)return JSON.stringify(e);if(g)return String(e);if(y){let $=e.toString(16);return o||($=$.toUpperCase()),"0x"+$}if(m)return"0b"+e.toString(2);if(D)return"0o"+e.toString(8)}else return sV(e)?(h=[],t.wrap=!0,r(),OD(e,($,w)=>{d=!1,h.push((a?"":u)+hn($,t)+":"+(a?"":" ")+hn(w,t))}),d?"{}":"{"+p+h.join(","+p)+p+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}const b=e;let O=-1;const C=b.length;for(h="";++O<C;){const $=b.charAt(O);if(t.es6){const F=b.charCodeAt(O);if(F>=55296&&F<=56319&&C>O+1){const S=b.charCodeAt(O+1);if(S>=56320&&S<=57343){let B=((F-55296)*1024+S-56320+65536).toString(16);o||(B=B.toUpperCase()),h+="\\u{"+B+"}",++O;continue}}}if(!t.escapeEverything){if(dV.test($)){h+=$;continue}if($=='"'){h+=s==$?'\\"':$;continue}if($=="`"){h+=s==$?"\\`":$;continue}if($=="'"){h+=s==$?"\\'":$;continue}}if($=="\0"&&!i&&!hV.test(b.charAt(O+1))){h+="\\0";continue}if(pV.test($)){h+=fV[$];continue}const w=$.charCodeAt(0);if(t.minimal&&w!=8232&&w!=8233){h+=$;continue}let P=w.toString(16);o||(P=P.toUpperCase());const I=P.length>2||i,k="\\"+(I?"u":"x")+("0000"+P).slice(I?-4:-2);h+=k}return t.wrap&&(h=s+h+s),s=="`"&&(h=h.replace(/\$\{/g,"\\${")),t.isScriptContext?h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--"):h};hn.version="2.5.2";var mV=hn;Object.defineProperty(ct,"__esModule",{value:!0});ct.ArgumentPlaceholder=EV;ct.ArrayPattern=ct.ArrayExpression=AV;ct.BigIntLiteral=OV;ct.BooleanLiteral=FV;ct.DecimalLiteral=NV;ct.Identifier=gV;ct.NullLiteral=_V;ct.NumericLiteral=wV;ct.ObjectPattern=ct.ObjectExpression=TV;ct.ObjectMethod=SV;ct.ObjectProperty=vV;ct.PipelineBareFunction=LV;ct.PipelinePrimaryTopicReference=RV;ct.PipelineTopicExpression=kV;ct.RecordExpression=CV;ct.RegExpLiteral=xV;ct.SpreadElement=ct.RestElement=bV;ct.StringLiteral=IV;ct.TopicReference=BV;ct.TupleExpression=PV;var yV=He(),ND=mV;const{isAssignmentPattern:DV,isIdentifier:Ju}=yV;function gV(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name)}function EV(){this.tokenChar(63)}function bV(e){this.token("..."),this.print(e.argument,e)}function TV(e){const t=e.properties;if(this.tokenChar(123),t.length){const r=this.enterForStatementInit(!1);this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function SV(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)}function vV(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(DV(e.value)&&Ju(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}if(this.print(e.key,e),e.shorthand&&Ju(e.key)&&Ju(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)}function AV(e){const t=e.elements,r=t.length;this.tokenChar(91);const n=this.enterForStatementInit(!1);for(let i=0;i<t.length;i++){const s=t[i];s?(i>0&&this.space(),this.print(s,e),i<r-1&&this.tokenChar(44)):this.tokenChar(44)}n(),this.tokenChar(93)}function CV(e){const t=e.properties;let r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}"}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(n)}function PV(e){const t=e.elements,r=t.length;let n,i;if(this.format.recordAndTupleSyntaxType==="bar")n="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")n="#[",i="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(n);for(let s=0;s<t.length;s++){const a=t[s];a&&(s>0&&this.space(),this.print(a,e),s<r-1&&this.tokenChar(44))}this.token(i)}function xV(e){this.word(`/${e.pattern}/${e.flags}`)}function FV(e){this.word(e.value?"true":"false")}function _V(){this.word("null")}function wV(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number(ND(n,r),n):t==null?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n)}function IV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}const r=ND(e.value,this.format.jsescOption);this.token(r)}function OV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}function NV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}const Pd=new Set(["^^","@@","^","%","#"]);function BV(){const{topicToken:e}=this.format;if(Pd.has(e))this.token(e);else{const t=JSON.stringify(e),r=Array.from(Pd,n=>JSON.stringify(n));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function kV(e){this.print(e.expression,e)}function LV(e){this.print(e.callee,e)}function RV(){this.tokenChar(35)}var BD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnyTypeAnnotation=o,e.ArrayTypeAnnotation=u,e.BooleanLiteralTypeAnnotation=c,e.BooleanTypeAnnotation=l,e.DeclareClass=p,e.DeclareExportAllDeclaration=w,e.DeclareExportDeclaration=$,e.DeclareFunction=h,e.DeclareInterface=D,e.DeclareModule=g,e.DeclareModuleExports=y,e.DeclareOpaqueType=O,e.DeclareTypeAlias=b,e.DeclareVariable=C,e.DeclaredPredicate=m,e.EmptyTypeAnnotation=Ie,e.EnumBooleanBody=F,e.EnumBooleanMember=H,e.EnumDeclaration=P,e.EnumDefaultedMember=x,e.EnumNumberBody=S,e.EnumNumberMember=T,e.EnumStringBody=A,e.EnumStringMember=_,e.EnumSymbolBody=B,e.ExistsTypeAnnotation=Q,e.FunctionTypeAnnotation=ne,e.FunctionTypeParam=X,e.IndexedAccessType=Ke,e.InferredPredicate=d,e.InterfaceDeclaration=Y,e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=ae,e.InterfaceTypeAnnotation=De,e.IntersectionTypeAnnotation=de,e.MixedTypeAnnotation=Ce,e.NullLiteralTypeAnnotation=f,e.NullableTypeAnnotation=Te,Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),e.NumberTypeAnnotation=Ne,e.ObjectTypeAnnotation=G,e.ObjectTypeCallProperty=E,e.ObjectTypeIndexer=j,e.ObjectTypeInternalSlot=V,e.ObjectTypeProperty=z,e.ObjectTypeSpreadProperty=se,e.OpaqueType=Z,e.OptionalIndexedAccessType=Le,e.QualifiedTypeIdentifier=oe,Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),e.StringTypeAnnotation=Je,e.SymbolTypeAnnotation=ce,e.ThisTypeAnnotation=Fe,e.TupleTypeAnnotation=Oe,e.TypeAlias=Ae,e.TypeAnnotation=st,e.TypeCastExpression=ue,e.TypeParameter=$e,e.TypeParameterDeclaration=e.TypeParameterInstantiation=fe,e.TypeofTypeAnnotation=ge,e.UnionTypeAnnotation=Ue,e.Variance=Me,e.VoidTypeAnnotation=Ve,e._interfaceish=ie,e._variance=te;var t=He(),r=Bt,n=di(),i=ct;const{isDeclareExportDeclaration:s,isStatement:a}=t;function o(){this.word("any")}function u(W){this.print(W.elementType,W,!0),this.tokenChar(91),this.tokenChar(93)}function l(){this.word("boolean")}function c(W){this.word(W.value?"true":"false")}function f(){this.word("null")}function p(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(W)}function h(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(W.id,W),this.print(W.id.typeAnnotation.typeAnnotation,W),W.predicate&&(this.space(),this.print(W.predicate,W)),this.semicolon()}function d(){this.tokenChar(37),this.word("checks")}function m(W){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(W.value,W),this.tokenChar(41)}function D(W){this.word("declare"),this.space(),this.InterfaceDeclaration(W)}function g(W){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(W.id,W),this.space(),this.print(W.body,W)}function y(W){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(W.typeAnnotation,W)}function b(W){this.word("declare"),this.space(),this.TypeAlias(W)}function O(W,Se){s(Se)||(this.word("declare"),this.space()),this.OpaqueType(W)}function C(W,Se){s(Se)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(W.id,W),this.print(W.id.typeAnnotation,W),this.semicolon()}function $(W){this.word("declare"),this.space(),this.word("export"),this.space(),W.default&&(this.word("default"),this.space()),R.call(this,W)}function w(W){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,W)}function P(W){const{id:Se,body:ze}=W;this.word("enum"),this.space(),this.print(Se,W),this.print(ze,W)}function I(W,Se,ze){ze&&(W.space(),W.word("of"),W.space(),W.word(Se)),W.space()}function k(W,Se){const{members:ze}=Se;W.token("{"),W.indent(),W.newline();for(const ft of ze)W.print(ft,Se),W.newline();Se.hasUnknownMembers&&(W.token("..."),W.newline()),W.dedent(),W.token("}")}function F(W){const{explicitType:Se}=W;I(this,"boolean",Se),k(this,W)}function S(W){const{explicitType:Se}=W;I(this,"number",Se),k(this,W)}function A(W){const{explicitType:Se}=W;I(this,"string",Se),k(this,W)}function B(W){I(this,"symbol",!0),k(this,W)}function x(W){const{id:Se}=W;this.print(Se,W),this.tokenChar(44)}function N(W,Se){const{id:ze,init:ft}=Se;W.print(ze,Se),W.space(),W.token("="),W.space(),W.print(ft,Se),W.token(",")}function H(W){N(this,W)}function T(W){N(this,W)}function _(W){N(this,W)}function R(W){if(W.declaration){const Se=W.declaration;this.print(Se,W),a(Se)||this.semicolon()}else this.tokenChar(123),W.specifiers.length&&(this.space(),this.printList(W.specifiers,W),this.space()),this.tokenChar(125),W.source&&(this.space(),this.word("from"),this.space(),this.print(W.source,W)),this.semicolon()}function Q(){this.tokenChar(42)}function ne(W,Se){this.print(W.typeParameters,W),this.tokenChar(40),W.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(W.this.typeAnnotation,W),(W.params.length||W.rest)&&(this.tokenChar(44),this.space())),this.printList(W.params,W),W.rest&&(W.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(W.rest,W)),this.tokenChar(41);const ze=Se==null?void 0:Se.type;ze!=null&&(ze==="ObjectTypeCallProperty"||ze==="ObjectTypeInternalSlot"||ze==="DeclareFunction"||ze==="ObjectTypeProperty"&&Se.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(W.returnType,W)}function X(W){this.print(W.name,W),W.optional&&this.tokenChar(63),W.name&&(this.tokenChar(58),this.space()),this.print(W.typeAnnotation,W)}function ae(W){this.print(W.id,W),this.print(W.typeParameters,W,!0)}function ie(W){var Se;if(this.print(W.id,W),this.print(W.typeParameters,W),(Se=W.extends)!=null&&Se.length&&(this.space(),this.word("extends"),this.space(),this.printList(W.extends,W)),W.type==="DeclareClass"){var ze,ft;(ze=W.mixins)!=null&&ze.length&&(this.space(),this.word("mixins"),this.space(),this.printList(W.mixins,W)),(ft=W.implements)!=null&&ft.length&&(this.space(),this.word("implements"),this.space(),this.printList(W.implements,W))}this.space(),this.print(W.body,W)}function te(W){var Se;const ze=(Se=W.variance)==null?void 0:Se.kind;ze!=null&&(ze==="plus"?this.tokenChar(43):ze==="minus"&&this.tokenChar(45))}function Y(W){this.word("interface"),this.space(),this._interfaceish(W)}function re(){this.space(),this.tokenChar(38),this.space()}function De(W){var Se;this.word("interface"),(Se=W.extends)!=null&&Se.length&&(this.space(),this.word("extends"),this.space(),this.printList(W.extends,W)),this.space(),this.print(W.body,W)}function de(W){this.printJoin(W.types,W,{separator:re})}function Ce(){this.word("mixed")}function Ie(){this.word("empty")}function Te(W){this.tokenChar(63),this.print(W.typeAnnotation,W)}function Ne(){this.word("number")}function Je(){this.word("string")}function Fe(){this.word("this")}function Oe(W){this.tokenChar(91),this.printList(W.types,W),this.tokenChar(93)}function ge(W){this.word("typeof"),this.space(),this.print(W.argument,W)}function Ae(W){this.word("type"),this.space(),this.print(W.id,W),this.print(W.typeParameters,W),this.space(),this.tokenChar(61),this.space(),this.print(W.right,W),this.semicolon()}function st(W,Se){this.tokenChar(58),this.space(),Se.type==="ArrowFunctionExpression"?this.tokenContext|=n.TokenContext.arrowFlowReturnType:W.optional&&this.tokenChar(63),this.print(W.typeAnnotation,W)}function fe(W){this.tokenChar(60),this.printList(W.params,W,{}),this.tokenChar(62)}function $e(W){this._variance(W),this.word(W.name),W.bound&&this.print(W.bound,W),W.default&&(this.space(),this.tokenChar(61),this.space(),this.print(W.default,W))}function Z(W){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(W.id,W),this.print(W.typeParameters,W),W.supertype&&(this.tokenChar(58),this.space(),this.print(W.supertype,W)),W.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(W.impltype,W)),this.semicolon()}function G(W){W.exact?this.token("{|"):this.tokenChar(123);const Se=[...W.properties,...W.callProperties||[],...W.indexers||[],...W.internalSlots||[]];Se.length&&(this.newline(),this.space(),this.printJoin(Se,W,{addNewlines(ze){if(ze&&!Se[0])return 1},indent:!0,statement:!0,iterator:()=>{(Se.length!==1||W.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),W.inexact&&(this.indent(),this.token("..."),Se.length&&this.newline(),this.dedent()),W.exact?this.token("|}"):this.tokenChar(125)}function V(W){W.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(W.id,W),this.tokenChar(93),this.tokenChar(93),W.optional&&this.tokenChar(63),W.method||(this.tokenChar(58),this.space()),this.print(W.value,W)}function E(W){W.static&&(this.word("static"),this.space()),this.print(W.value,W)}function j(W){W.static&&(this.word("static"),this.space()),this._variance(W),this.tokenChar(91),W.id&&(this.print(W.id,W),this.tokenChar(58),this.space()),this.print(W.key,W),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(W.value,W)}function z(W){W.proto&&(this.word("proto"),this.space()),W.static&&(this.word("static"),this.space()),(W.kind==="get"||W.kind==="set")&&(this.word(W.kind),this.space()),this._variance(W),this.print(W.key,W),W.optional&&this.tokenChar(63),W.method||(this.tokenChar(58),this.space()),this.print(W.value,W)}function se(W){this.token("..."),this.print(W.argument,W)}function oe(W){this.print(W.qualification,W),this.tokenChar(46),this.print(W.id,W)}function ce(){this.word("symbol")}function Pe(){this.space(),this.tokenChar(124),this.space()}function Ue(W){this.printJoin(W.types,W,{separator:Pe})}function ue(W){this.tokenChar(40),this.print(W.expression,W),this.print(W.typeAnnotation,W),this.tokenChar(41)}function Me(W){W.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function Ve(){this.word("void")}function Ke(W){this.print(W.objectType,W,!0),this.tokenChar(91),this.print(W.indexType,W),this.tokenChar(93)}function Le(W){this.print(W.objectType,W),W.optional&&this.token("?."),this.tokenChar(91),this.print(W.indexType,W),this.tokenChar(93)}})(BD);var sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.BlockStatement=$V;sn.Directive=UV;sn.DirectiveLiteral=KV;sn.File=MV;sn.InterpreterDirective=WV;sn.Placeholder=HV;sn.Program=jV;function MV(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)}function jV(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const i=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:i}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(i)}this.printSequence(e.body,e)}function $V(e){var t;this.tokenChar(123);const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const s=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:s}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(s)}const i=this.enterForStatementInit(!1);this.printSequence(e.body,e,{indent:!0}),i(),this.rightBrace(e)}function UV(e){this.print(e.value,e),this.semicolon()}const VV=/(?:^|[^\\])(?:\\\\)*'/,qV=/(?:^|[^\\])(?:\\\\)*"/;function KV(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}const{value:r}=e;if(!qV.test(r))this.token(`"${r}"`);else if(!VV.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function WV(e){this.token(`#!${e.value}`),this.newline(1,!0)}function HV(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.JSXAttribute=GV;Ot.JSXClosingElement=iq;Ot.JSXClosingFragment=uq;Ot.JSXElement=tq;Ot.JSXEmptyExpression=sq;Ot.JSXExpressionContainer=QV;Ot.JSXFragment=aq;Ot.JSXIdentifier=YV;Ot.JSXMemberExpression=JV;Ot.JSXNamespacedName=XV;Ot.JSXOpeningElement=nq;Ot.JSXOpeningFragment=oq;Ot.JSXSpreadAttribute=zV;Ot.JSXSpreadChild=ZV;Ot.JSXText=eq;function GV(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e))}function YV(e){this.word(e.name)}function XV(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e)}function JV(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e)}function zV(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125)}function QV(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125)}function ZV(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125)}function eq(e){const t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function tq(e){const t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(const r of e.children)this.print(r,e);this.dedent(),this.print(e.closingElement,e)}}function rq(){this.space()}function nq(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:rq})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)}function iq(e){this.token("</"),this.print(e.name,e),this.tokenChar(62)}function sq(){this.printInnerComments()}function aq(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)}function oq(){this.tokenChar(60),this.tokenChar(62)}function uq(){this.token("</"),this.tokenChar(62)}var ve={};Object.defineProperty(ve,"__esModule",{value:!0});ve.TSAnyKeyword=Sq;ve.TSArrayType=Kq;ve.TSSatisfiesExpression=ve.TSAsExpression=uK;ve.TSBigIntKeyword=vq;ve.TSBooleanKeyword=xq;ve.TSCallSignatureDeclaration=yq;ve.TSConditionalType=zq;ve.TSConstructSignatureDeclaration=Dq;ve.TSConstructorType=Rq;ve.TSDeclareFunction=hq;ve.TSDeclareMethod=dq;ve.TSEnumDeclaration=fK;ve.TSEnumMember=pK;ve.TSExportAssignment=EK;ve.TSExpressionWithTypeArguments=iK;ve.TSExternalModuleReference=DK;ve.TSFunctionType=Lq;ve.TSImportEqualsDeclaration=yK;ve.TSImportType=mK;ve.TSIndexSignature=Tq;ve.TSIndexedAccessType=tK;ve.TSInferType=Qq;ve.TSInstantiationExpression=cK;ve.TSInterfaceBody=aK;ve.TSInterfaceDeclaration=sK;ve.TSIntersectionType=Jq;ve.TSIntrinsicKeyword=Bq;ve.TSLiteralType=nK;ve.TSMappedType=rK;ve.TSMethodSignature=bq;ve.TSModuleBlock=dK;ve.TSModuleDeclaration=hK;ve.TSNamedTupleMember=Yq;ve.TSNamespaceExportDeclaration=bK;ve.TSNeverKeyword=Nq;ve.TSNonNullExpression=gK;ve.TSNullKeyword=Oq;ve.TSNumberKeyword=Cq;ve.TSObjectKeyword=Pq;ve.TSOptionalType=Hq;ve.TSParameterProperty=pq;ve.TSParenthesizedType=Zq;ve.TSPropertySignature=gq;ve.TSQualifiedName=mq;ve.TSRestType=Gq;ve.TSStringKeyword=Fq;ve.TSSymbolKeyword=_q;ve.TSThisType=kq;ve.TSTupleType=Wq;ve.TSTypeAliasDeclaration=oK;ve.TSTypeAnnotation=lq;ve.TSTypeAssertion=lK;ve.TSTypeLiteral=Vq;ve.TSTypeOperator=eK;ve.TSTypeParameter=fq;ve.TSTypeParameterDeclaration=ve.TSTypeParameterInstantiation=cq;ve.TSTypePredicate=$q;ve.TSTypeQuery=Uq;ve.TSTypeReference=jq;ve.TSUndefinedKeyword=Iq;ve.TSUnionType=Xq;ve.TSUnknownKeyword=Aq;ve.TSVoidKeyword=wq;ve.tsPrintClassMemberModifiers=SK;ve.tsPrintFunctionOrConstructorType=Mq;ve.tsPrintPropertyOrMethodName=Eq;ve.tsPrintSignatureDeclarationBase=TK;ve.tsPrintTypeLiteralOrInterfaceBody=qq;function lq(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)}function cq(e,t){this.tokenChar(60),this.printList(e.params,e,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62)}function fq(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))}function pq(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)}function hq(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59)}function dq(e){this._classMethodHead(e),this.tokenChar(59)}function mq(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e)}function yq(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function Dq(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function gq(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),this.tokenChar(59)}function Eq(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function bq(e){const{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)}function Tq(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59)}function Sq(){this.word("any")}function vq(){this.word("bigint")}function Aq(){this.word("unknown")}function Cq(){this.word("number")}function Pq(){this.word("object")}function xq(){this.word("boolean")}function Fq(){this.word("string")}function _q(){this.word("symbol")}function wq(){this.word("void")}function Iq(){this.word("undefined")}function Oq(){this.word("null")}function Nq(){this.word("never")}function Bq(){this.word("intrinsic")}function kq(){this.word("this")}function Lq(e){this.tsPrintFunctionOrConstructorType(e)}function Rq(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)}function Mq(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();const n=e.typeAnnotation;this.print(n.typeAnnotation,e)}function jq(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0)}function $q(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function Uq(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e)}function Vq(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function qq(e,t){Of(this,e,t)}function Of(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(const n of t)e.print(n,r),e.newline();e.dedent()}e.rightBrace(r)}function Kq(e){this.print(e.elementType,e,!0),this.token("[]")}function Wq(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93)}function Hq(e){this.print(e.typeAnnotation,e),this.tokenChar(63)}function Gq(e){this.token("..."),this.print(e.typeAnnotation,e)}function Yq(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e)}function Xq(e){kD(this,e,"|")}function Jq(e){kD(this,e,"&")}function kD(e,t,r){e.printJoin(t.types,t,{separator(){this.space(),this.token(r),this.space()}})}function zq(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function Qq(e){this.token("infer"),this.space(),this.print(e.typeParameter)}function Zq(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41)}function eK(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)}function tK(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)}function rK(e){const{nameType:t,optional:r,readonly:n,typeParameter:i,typeAnnotation:s}=e;this.tokenChar(123),this.space(),n&&(xd(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(i.name),this.space(),this.word("in"),this.space(),this.print(i.constraint,i),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),r&&(xd(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,e)),this.space(),this.tokenChar(125)}function xd(e,t){t!==!0&&e.token(t)}function nK(e){this.print(e.literal,e)}function iK(e){this.print(e.expression,e),this.print(e.typeParameters,e)}function sK(e){const{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(n,e),i!=null&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e)),this.space(),this.print(s,e)}function aK(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function oK(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(n,e),this.space(),this.tokenChar(61),this.space(),this.print(i,e),this.tokenChar(59)}function uK(e){var t;const{type:r,expression:n,typeAnnotation:i}=e,s=!!((t=n.trailingComments)!=null&&t.length);this.print(n,e,!0,void 0,s),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(i,e)}function lK(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(r,e)}function cK(e){this.print(e.expression,e),this.print(e.typeParameters,e)}function fK(e){const{declare:t,const:r,id:n,members:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),Of(this,i,e)}function pK(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(44)}function hK(e){const{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r,e),!e.body){this.tokenChar(59);return}let n=e.body;for(;n.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(n.id,n),n=n.body;this.space(),this.print(n,e)}function dK(e){Of(this,e.body,e)}function mK(e){const{argument:t,qualifier:r,typeParameters:n}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,e)),n&&this.print(n,e)}function yK(e){const{isExport:t,id:r,moduleReference:n}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(n,e),this.tokenChar(59)}function DK(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41)}function gK(e){this.print(e.expression,e),this.tokenChar(33)}function EK(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59)}function bK(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)}function TK(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41);const n=e.typeAnnotation;this.print(n,e)}function SK(e){const t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Hs;Object.keys(t).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===t[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return t[p]}})});var r=ut;Object.keys(r).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===r[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return r[p]}})});var n=gt;Object.keys(n).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===n[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return n[p]}})});var i=ar;Object.keys(i).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===i[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return i[p]}})});var s=Er;Object.keys(s).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===s[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return s[p]}})});var a=Bt;Object.keys(a).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===a[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return a[p]}})});var o=ct;Object.keys(o).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===o[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return o[p]}})});var u=BD;Object.keys(u).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===u[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return u[p]}})});var l=sn;Object.keys(l).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===l[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return l[p]}})});var c=Ot;Object.keys(c).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===c[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return c[p]}})});var f=ve;Object.keys(f).forEach(function(p){p==="default"||p==="__esModule"||p in e&&e[p]===f[p]||Object.defineProperty(e,p,{enumerable:!0,get:function(){return f[p]}})})})(CD);Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var vK=tu,AK=di(),CK=He(),PK=CD;const{isFunction:xK,isStatement:FK,isClassBody:_K,isTSInterfaceBody:wK,isTSEnumDeclaration:IK}=CK,OK=/e/i,NK=/\.0+$/,Fd=/[\n\r\u2028\u2029]/,BK=/[\n\r\u2028\u2029]|\*\//,{needsParens:kK}=AK;class Nf{constructor(t,r){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r==null?void 0:r._inputMap,this._buf=new vK.default(r,t.indent.style[0])}enterForStatementInit(t){const r=this.inForStatementInit;return r===t?()=>{}:(this.inForStatementInit=t,()=>{this.inForStatementInit=r})}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){const r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments(),(this._endsWithWord||t.charCodeAt(0)===47&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(t,r){function n(i){if(i.length>2&&i.charCodeAt(0)===48){const s=i.charCodeAt(1);return s===98||s===111||s===120}return!1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!n(t)&&!OK.test(t)&&!NK.test(t)&&t.charCodeAt(t.length-1)!==46}token(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments();const n=this.getLastChar(),i=t.charCodeAt(0);(n===33&&(t==="--"||i===61)||i===43&&n===43||i===45&&n===45||i===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1}tokenChar(t){this.tokenContext=0,this._maybePrintInnerComments();const r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let n=0;n<t;n++)this._newline()}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,n){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,n))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=r,n.identifierName=t}_space(){this._queue(32)}_newline(){this._queue(10)}_append(t,r){this._maybeAddParen(t),this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return!0}_maybeAddParenChar(t){const r=this._parenPushNewlineState;if(r&&t!==32){if(t!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0}}_maybeAddParen(t){const r=this._parenPushNewlineState;if(!r)return;const n=t.length;let i;for(i=0;i<n&&t.charCodeAt(i)===32;i++);if(i===n)return;const s=t.charCodeAt(i);if(s!==10){if(s!==47||i+1===n){this._parenPushNewlineState=null;return}const a=t.charCodeAt(i+1);if(a===42)return;if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0}catchUp(t){if(!this.format.retainLines)return;const r=t-this._buf.getCurrentLine();for(let n=0;n<r;n++)this._newline()}_catchUp(t,r){var n;if(!this.format.retainLines)return;const i=r==null||(n=r[t])==null?void 0:n.line;if(i!=null){const s=i-this._buf.getCurrentLine();for(let a=0;a<s;a++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t,r,n){if(n)this._noLineTerminator=!0,this.print(t,r);else{const i={printed:!1};this._parenPushNewlineState=i,this.print(t,r),i.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(t,r,n,i,s){var a,o;if(!t)return;this._endsWithInnerRaw=!1;const u=t.type,l=this.format,c=l.concise;t._compact&&(l.concise=!0);const f=this[u];if(f===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(u)} with constructor ${JSON.stringify(t.constructor.name)}`);const p=this._currentNode;this._currentNode=t;const h=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!h);const d=(a=t.extra)==null?void 0:a.parenthesized;let m=s||d&&l.retainFunctionParens&&u==="FunctionExpression"||kK(t,r,this.tokenContext,this.inForStatementInit);if(!m&&d&&(o=t.leadingComments)!=null&&o.length&&t.leadingComments[0].type==="CommentBlock")switch(r==null?void 0:r.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(r.callee!==t)break;default:m=!0}let D;m&&(this.tokenChar(40),this._endsWithInnerRaw=!1,D=this.enterForStatementInit(!1)),this._lastCommentLine=0,this._printLeadingComments(t,r);const g=u==="Program"||u==="File"?null:t.loc;this.exactSource(g,f.bind(this,t,r)),m?(this._printTrailingComments(t,r),this.tokenChar(41),this._noLineTerminator=n,D()):n&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,r)):this._printTrailingComments(t,r,i),this._currentNode=p,l.concise=c,this._insideAux=h,this._endsWithInnerRaw=!1}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){const r=t.extra;if((r==null?void 0:r.raw)!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,n={}){if(!(t!=null&&t.length))return;let{indent:i}=n;if(i==null&&this.format.retainLines){var s;const f=(s=t[0].loc)==null?void 0:s.start.line;f!=null&&f!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();const a={addNewlines:n.addNewlines,nextNodeStartLine:0},o=n.separator?n.separator.bind(this):null,u=t.length;for(let f=0;f<u;f++){const p=t[f];if(p&&(n.statement&&this._printNewline(f===0,a),this.print(p,r,void 0,n.trailingCommentsLineOffset||0),n.iterator==null||n.iterator(p,f),f<u-1&&(o==null||o()),n.statement)){var l;if((l=p.trailingComments)!=null&&l.length||(this._lastCommentLine=0),f+1===u)this.newline(1);else{var c;const h=t[f+1];a.nextNodeStartLine=((c=h.loc)==null?void 0:c.start.line)||0,this._printNewline(!0,a)}}}i&&this.dedent()}printAndIndentOnComments(t,r){const n=t.leadingComments&&t.leadingComments.length>0;n&&this.indent(),this.print(t,r),n&&this.dedent()}printBlock(t){const r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r,t)}_printTrailingComments(t,r,n){const{innerComments:i,trailingComments:s}=t;i!=null&&i.length&&this._printComments(2,i,t,r,n),s!=null&&s.length&&this._printComments(2,s,t,r,n)}_printLeadingComments(t,r){const n=t.leadingComments;n!=null&&n.length&&this._printComments(0,n,t,r)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const t=this._currentNode,r=t.innerComments;if(!(r!=null&&r.length))return;const n=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t),n&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(t,r,n={}){var i;n.statement=!0,(i=n.indent)!=null||(n.indent=!1),this.printJoin(t,r,n)}printList(t,r,n={}){n.separator==null&&(n.separator=LK),this.printJoin(t,r,n)}_printNewline(t,r){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise){this.space();return}if(!t)return;const i=r.nextNodeStartLine,s=this._lastCommentLine;if(i>0&&s>0){const a=i-s;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&BK.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){const n=this._noLineTerminator,i=t.type==="CommentBlock",s=i&&r!==1&&!this._noLineTerminator;s&&this._buf.hasContent()&&r!==2&&this.newline(1);const a=this.getLastChar();a!==91&&a!==123&&this.space();let o;if(i){const{_parenPushNewlineState:l}=this;if((l==null?void 0:l.printed)===!1&&Fd.test(t.value)&&(this.tokenChar(40),this.indent(),l.printed=!0),o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var u;const c=(u=t.loc)==null?void 0:u.start.column;if(c){const f=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(f,`
129
+ `)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
130
+ `);else{let f=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(f+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
131
+ ${" ".repeat(f)}`)}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;this.endsWith(47)&&this._space(),this.source("start",t.loc),this._append(o,i),!i&&!n&&this.newline(1,!0),s&&r!==3&&this.newline(1)}_printComments(t,r,n,i,s=0){const a=n.loc,o=r.length;let u=!!a;const l=u?a.start.line:0,c=u?a.end.line:0;let f=0,p=0;const h=this._noLineTerminator?function(){}:this.newline.bind(this);for(let d=0;d<o;d++){const m=r[d],D=this._shouldPrintComment(m);if(D===2){u=!1;break}if(u&&m.loc&&D===1){const g=m.loc.start.line,y=m.loc.end.line;if(t===0){let b=0;d===0?this._buf.hasContent()&&(m.type==="CommentLine"||g!==y)&&(b=p=1):b=g-f,f=y,h(b),this._printComment(m,1),d+1===o&&(h(Math.max(l-f,p)),f=l)}else if(t===1){const b=g-(d===0?l:f);f=y,h(b),this._printComment(m,1),d+1===o&&(h(Math.min(1,c-f)),f=c)}else{const b=g-(d===0?c-s:f);f=y,h(b),this._printComment(m,1)}}else{if(u=!1,D!==1)continue;if(o===1){const g=m.loc?m.loc.start.line===m.loc.end.line:!Fd.test(m.value),y=g&&!FK(n)&&!_K(i)&&!wK(i)&&!IK(i);t===0?this._printComment(m,y&&n.type!=="ObjectExpression"||g&&xK(i,{body:n})?1:0):y&&t===2?this._printComment(m,1):this._printComment(m,0)}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(m,d===0?2:d===o-1?3:0):this._printComment(m,0)}}t===2&&u&&f&&(this._lastCommentLine=f)}}Object.assign(Nf.prototype,PK);Nf.prototype.Noop=function(){};eu.default=Nf;function LK(){this.tokenChar(44),this.space()}Object.defineProperty(Qo,"__esModule",{value:!0});var RK=Qo.default=MK,LD=Zo,RD=eu;function MD(e,t){const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var n;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(n=t.recordAndTupleSyntaxType)!=null?n:"hash"}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=r;return i&&!a(i)&&(r.auxiliaryCommentBefore=void 0),s&&!a(s)&&(r.auxiliaryCommentAfter=void 0),r}Qo.CodeGenerator=class{constructor(t,r={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=MD(n,r),this._map=r.sourceMaps?new LD.default(r,n):null}generate(){return new RD.default(this._format,this._map).generate(this._ast)}};function MK(e,t={},r){const n=MD(r,t),i=t.sourceMaps?new LD.default(t,r):null;return new RD.default(n,i).generate(e)}var ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.find=VK;ur.findParent=UK;ur.getAncestry=GK;ur.getDeepestCommonAncestorFrom=HK;ur.getEarliestCommonAncestorFrom=WK;ur.getFunctionParent=qK;ur.getStatementParent=KK;ur.inType=JK;ur.isAncestor=YK;ur.isDescendant=XK;var jK=He();const{VISITOR_KEYS:$K}=jK;function UK(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function VK(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function qK(){return this.findParent(e=>e.isFunction())}function KK(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function WK(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,n){let i;const s=$K[t.type];for(const a of n){const o=a[r+1];if(!i){i=o;continue}if(o.listKey&&i.listKey===o.listKey&&o.key<i.key){i=o;continue}const u=s.indexOf(i.parentKey),l=s.indexOf(o.parentKey);u>l&&(i=o)}return i})}function HK(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,n,i;const s=e.map(o=>{const u=[];do u.unshift(o);while((o=o.parentPath)&&o!==this);return u.length<r&&(r=u.length),u}),a=s[0];e:for(let o=0;o<r;o++){const u=a[o];for(const l of s)if(l[o]!==u)break e;n=o,i=u}if(i)return t?t(i,n,s):i;throw new Error("Couldn't find intersection")}function GK(){let e=this;const t=[];do t.push(e);while(e=e.parentPath);return t}function YK(e){return e.isDescendant(this)}function XK(e){return!!this.findParent(t=>t===e)}function JK(...e){let t=this;for(;t;){for(const r of e)if(t.node.type===r)return!0;t=t.parentPath}return!1}var Mn={},jD={},Bf={},iu={};Object.defineProperty(iu,"__esModule",{value:!0});iu.createUnionType=tW;var zK=He();const{createFlowUnionType:_d,createTSUnionType:wd,createUnionTypeAnnotation:QK,isFlowType:ZK,isTSType:eW}=zK;function tW(e){{if(e.every(t=>ZK(t)))return _d?_d(e):QK(e);if(e.every(t=>eW(t))&&wd)return wd(e)}}Object.defineProperty(Bf,"__esModule",{value:!0});Bf.default=aW;var rW=He(),$D=iu;const{BOOLEAN_NUMBER_BINARY_OPERATORS:nW,createTypeAnnotationBasedOnTypeof:iW,numberTypeAnnotation:UD,voidTypeAnnotation:sW}=rW;function aW(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:oW(t,this,e.name);if(e.name==="undefined")return sW();if(e.name==="NaN"||e.name==="Infinity")return UD();e.name}function oW(e,t,r){const n=[],i=[];let s=Id(e,t,i);const a=VD(e,t,r);if(a){const o=Id(e,a.ifStatement);s=s.filter(u=>!o.includes(u)),n.push(a.typeAnnotation)}if(s.length){s.push(...i);for(const o of s)n.push(o.getTypeAnnotation())}if(n.length)return(0,$D.createUnionType)(n)}function Id(e,t,r){const n=e.constantViolations.slice();return n.unshift(e.path),n.filter(i=>{i=i.resolve();const s=i._guessExecutionStatusRelativeTo(t);return r&&s==="unknown"&&r.push(i),s==="before"})}function uW(e,t){const r=t.node.operator,n=t.get("right").resolve(),i=t.get("left").resolve();let s;if(i.isIdentifier({name:e})?s=n:n.isIdentifier({name:e})&&(s=i),s)return r==="==="?s.getTypeAnnotation():nW.includes(r)?UD():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(i.isUnaryExpression({operator:"typeof"})?(a=i,o=n):n.isUnaryExpression({operator:"typeof"})&&(a=n,o=i),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;const u=o.node.value;if(typeof u=="string")return iW(u)}function lW(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression())return t.key==="test"?void 0:n;if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n}}function VD(e,t,r){const n=lW(e,t,r);if(!n)return;const s=[n.get("test")],a=[];for(let o=0;o<s.length;o++){const u=s[o];if(u.isLogicalExpression())u.node.operator==="&&"&&(s.push(u.get("left")),s.push(u.get("right")));else if(u.isBinaryExpression()){const l=uW(r,u);l&&a.push(l)}}return a.length?{typeAnnotation:(0,$D.createUnionType)(a),ifStatement:n}:VD(e,n,r)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExpression=te,e.AssignmentExpression=T,e.BinaryExpression=A,e.BooleanLiteral=ne,e.CallExpression=Te,e.ConditionalExpression=x,e.ClassDeclaration=e.ClassExpression=e.FunctionDeclaration=e.ArrowFunctionExpression=e.FunctionExpression=re,Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return r.default}}),e.LogicalExpression=B,e.NewExpression=k,e.NullLiteral=X,e.NumericLiteral=Q,e.ObjectExpression=ie,e.ParenthesizedExpression=H,e.RegExpLiteral=ae,e.RestElement=Y,e.SequenceExpression=N,e.StringLiteral=R,e.TSAsExpression=P,e.TSNonNullExpression=I,e.TaggedTemplateExpression=Ne,e.TemplateLiteral=F,e.TypeCastExpression=w,e.UnaryExpression=S,e.UpdateExpression=_,e.VariableDeclarator=$;var t=He(),r=Bf,n=iu;const{BOOLEAN_BINARY_OPERATORS:i,BOOLEAN_UNARY_OPERATORS:s,NUMBER_BINARY_OPERATORS:a,NUMBER_UNARY_OPERATORS:o,STRING_UNARY_OPERATORS:u,anyTypeAnnotation:l,arrayTypeAnnotation:c,booleanTypeAnnotation:f,buildMatchMemberExpression:p,genericTypeAnnotation:h,identifier:d,nullLiteralTypeAnnotation:m,numberTypeAnnotation:D,stringTypeAnnotation:g,tupleTypeAnnotation:y,unionTypeAnnotation:b,voidTypeAnnotation:O,isIdentifier:C}=t;function $(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function w(Fe){return Fe.typeAnnotation}w.validParent=!0;function P(Fe){return Fe.typeAnnotation}P.validParent=!0;function I(){return this.get("expression").getTypeAnnotation()}function k(Fe){if(Fe.callee.type==="Identifier")return h(Fe.callee)}function F(){return g()}function S(Fe){const Oe=Fe.operator;if(Oe==="void")return O();if(o.includes(Oe))return D();if(u.includes(Oe))return g();if(s.includes(Oe))return f()}function A(Fe){const Oe=Fe.operator;if(a.includes(Oe))return D();if(i.includes(Oe))return f();if(Oe==="+"){const ge=this.get("right"),Ae=this.get("left");return Ae.isBaseType("number")&&ge.isBaseType("number")?D():Ae.isBaseType("string")||ge.isBaseType("string")?g():b([g(),D()])}}function B(){const Fe=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,n.createUnionType)(Fe)}function x(){const Fe=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,n.createUnionType)(Fe)}function N(){return this.get("expressions").pop().getTypeAnnotation()}function H(){return this.get("expression").getTypeAnnotation()}function T(){return this.get("right").getTypeAnnotation()}function _(Fe){const Oe=Fe.operator;if(Oe==="++"||Oe==="--")return D()}function R(){return g()}function Q(){return D()}function ne(){return f()}function X(){return m()}function ae(){return h(d("RegExp"))}function ie(){return h(d("Object"))}function te(){return h(d("Array"))}function Y(){return te()}Y.validParent=!0;function re(){return h(d("Function"))}const De=p("Array.from"),de=p("Object.keys"),Ce=p("Object.values"),Ie=p("Object.entries");function Te(){const{callee:Fe}=this.node;return de(Fe)?c(g()):De(Fe)||Ce(Fe)||C(Fe,{name:"Array"})?c(l()):Ie(Fe)?c(y([g(),l()])):Je(this.get("callee"))}function Ne(){return Je(this.get("tag"))}function Je(Fe){if(Fe=Fe.resolve(),Fe.isFunction()){const{node:Oe}=Fe;if(Oe.async)return Oe.generator?h(d("AsyncIterator")):h(d("Promise"));if(Oe.generator)return h(d("Iterator"));if(Fe.node.returnType)return Fe.node.returnType}}})(jD);Object.defineProperty(Mn,"__esModule",{value:!0});Mn._getTypeAnnotation=KD;Mn.baseTypeStrictlyMatches=IW;Mn.couldBeBaseType=wW;Mn.getTypeAnnotation=FW;Mn.isBaseType=_W;Mn.isGenericType=OW;var Od=jD,cW=He();const{anyTypeAnnotation:qD,isAnyTypeAnnotation:To,isArrayTypeAnnotation:fW,isBooleanTypeAnnotation:pW,isEmptyTypeAnnotation:hW,isFlowBaseAnnotation:dW,isGenericTypeAnnotation:mW,isIdentifier:Nd,isMixedTypeAnnotation:yW,isNumberTypeAnnotation:DW,isStringTypeAnnotation:gW,isTSArrayType:EW,isTSTypeAnnotation:bW,isTSTypeReference:TW,isTupleTypeAnnotation:SW,isTypeAnnotation:vW,isUnionTypeAnnotation:AW,isVoidTypeAnnotation:CW,stringTypeAnnotation:PW,voidTypeAnnotation:xW}=cW;function FW(){let e=this.getData("typeAnnotation");return e!=null||(e=KD.call(this)||qD(),(vW(e)||bW(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}const zu=new WeakSet;function KD(){const e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const r=this.parentPath.parentPath,n=r.parentPath;return r.key==="left"&&n.isForInStatement()?PW():r.key==="left"&&n.isForOfStatement()?qD():xW()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!zu.has(e)){zu.add(e);try{var t;let r=Od[e.type];if(r)return r.call(this,e);if(r=Od[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{zu.delete(e)}}}function _W(e,t){return Jl(e,this.getTypeAnnotation(),t)}function Jl(e,t,r){if(e==="string")return gW(t);if(e==="number")return DW(t);if(e==="boolean")return pW(t);if(e==="any")return To(t);if(e==="mixed")return yW(t);if(e==="empty")return hW(t);if(e==="void")return CW(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function wW(e){const t=this.getTypeAnnotation();if(To(t))return!0;if(AW(t)){for(const r of t.types)if(To(r)||Jl(e,r,!0))return!0;return!1}else return Jl(e,t,!0)}function IW(e){const t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!To(t)&&dW(t)?r.type===t.type:!1}function OW(e){const t=this.getTypeAnnotation();return e==="Array"&&(EW(t)||fW(t)||SW(t))?!0:mW(t)&&Nd(t.id,{name:e})||TW(t)&&Nd(t.typeName,{name:e})}var Lr={},Ys={},Xs={},su={};Object.defineProperty(su,"__esModule",{value:!0});su.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;su.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};function NW(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kf={exports:{}};let Bd=process.argv||[],La=process.env,BW=!("NO_COLOR"in La||Bd.includes("--no-color"))&&("FORCE_COLOR"in La||Bd.includes("--color")||process.platform==="win32"||NW!=null&&_s.isatty(1)&&La.TERM!=="dumb"||"CI"in La),kW=(e,t,r=e)=>n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+LW(i,t,r,s)+t:e+i+t},LW=(e,t,r,n)=>{let i="",s=0;do i+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return i+e.substring(s)},WD=(e=BW)=>{let t=e?kW:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};kf.exports=WD();kf.exports.createColors=WD;var HD=kf.exports,Qu={exports:{}},Zu,kd;function RW(){if(kd)return Zu;kd=1;var e=/[|\\{}()[\]^$+*?.]/g;return Zu=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(e,"\\$&")},Zu}var to={exports:{}},el={exports:{}},tl,Ld;function MW(){return Ld||(Ld=1,tl={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),tl}var Rd;function GD(){if(Rd)return el.exports;Rd=1;var e=MW(),t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);var n=el.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var s=n[i].channels,a=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:s}),Object.defineProperty(n[i],"labels",{value:a})}n.rgb.hsl=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p=Math.min(l,c,f),h=Math.max(l,c,f),d=h-p,m,D,g;return h===p?m=0:l===h?m=(c-f)/d:c===h?m=2+(f-l)/d:f===h&&(m=4+(l-c)/d),m=Math.min(m*60,360),m<0&&(m+=360),g=(p+h)/2,h===p?D=0:g<=.5?D=d/(h+p):D=d/(2-h-p),[m,D*100,g*100]},n.rgb.hsv=function(u){var l,c,f,p,h,d=u[0]/255,m=u[1]/255,D=u[2]/255,g=Math.max(d,m,D),y=g-Math.min(d,m,D),b=function(O){return(g-O)/6/y+1/2};return y===0?p=h=0:(h=y/g,l=b(d),c=b(m),f=b(D),d===g?p=f-c:m===g?p=1/3+l-f:D===g&&(p=2/3+c-l),p<0?p+=1:p>1&&(p-=1)),[p*360,h*100,g*100]},n.rgb.hwb=function(u){var l=u[0],c=u[1],f=u[2],p=n.rgb.hsl(u)[0],h=1/255*Math.min(l,Math.min(c,f));return f=1-1/255*Math.max(l,Math.max(c,f)),[p,h*100,f*100]},n.rgb.cmyk=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p,h,d,m;return m=Math.min(1-l,1-c,1-f),p=(1-l-m)/(1-m)||0,h=(1-c-m)/(1-m)||0,d=(1-f-m)/(1-m)||0,[p*100,h*100,d*100,m*100]};function o(u,l){return Math.pow(u[0]-l[0],2)+Math.pow(u[1]-l[1],2)+Math.pow(u[2]-l[2],2)}return n.rgb.keyword=function(u){var l=t[u];if(l)return l;var c=1/0,f;for(var p in e)if(e.hasOwnProperty(p)){var h=e[p],d=o(u,h);d<c&&(c=d,f=p)}return f},n.keyword.rgb=function(u){return e[u]},n.rgb.xyz=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255;l=l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92,c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92;var p=l*.4124+c*.3576+f*.1805,h=l*.2126+c*.7152+f*.0722,d=l*.0193+c*.1192+f*.9505;return[p*100,h*100,d*100]},n.rgb.lab=function(u){var l=n.rgb.xyz(u),c=l[0],f=l[1],p=l[2],h,d,m;return c/=95.047,f/=100,p/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,h=116*f-16,d=500*(c-f),m=200*(f-p),[h,d,m]},n.hsl.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100,p,h,d,m,D;if(c===0)return D=f*255,[D,D,D];f<.5?h=f*(1+c):h=f+c-f*c,p=2*f-h,m=[0,0,0];for(var g=0;g<3;g++)d=l+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?D=p+(h-p)*6*d:2*d<1?D=h:3*d<2?D=p+(h-p)*(2/3-d)*6:D=p,m[g]=D*255;return m},n.hsl.hsv=function(u){var l=u[0],c=u[1]/100,f=u[2]/100,p=c,h=Math.max(f,.01),d,m;return f*=2,c*=f<=1?f:2-f,p*=h<=1?h:2-h,m=(f+c)/2,d=f===0?2*p/(h+p):2*c/(f+c),[l,d*100,m*100]},n.hsv.rgb=function(u){var l=u[0]/60,c=u[1]/100,f=u[2]/100,p=Math.floor(l)%6,h=l-Math.floor(l),d=255*f*(1-c),m=255*f*(1-c*h),D=255*f*(1-c*(1-h));switch(f*=255,p){case 0:return[f,D,d];case 1:return[m,f,d];case 2:return[d,f,D];case 3:return[d,m,f];case 4:return[D,d,f];case 5:return[f,d,m]}},n.hsv.hsl=function(u){var l=u[0],c=u[1]/100,f=u[2]/100,p=Math.max(f,.01),h,d,m;return m=(2-c)*f,h=(2-c)*p,d=c*p,d/=h<=1?h:2-h,d=d||0,m/=2,[l,d*100,m*100]},n.hwb.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100,p=c+f,h,d,m,D;p>1&&(c/=p,f/=p),h=Math.floor(6*l),d=1-f,m=6*l-h,h&1&&(m=1-m),D=c+m*(d-c);var g,y,b;switch(h){default:case 6:case 0:g=d,y=D,b=c;break;case 1:g=D,y=d,b=c;break;case 2:g=c,y=d,b=D;break;case 3:g=c,y=D,b=d;break;case 4:g=D,y=c,b=d;break;case 5:g=d,y=c,b=D;break}return[g*255,y*255,b*255]},n.cmyk.rgb=function(u){var l=u[0]/100,c=u[1]/100,f=u[2]/100,p=u[3]/100,h,d,m;return h=1-Math.min(1,l*(1-p)+p),d=1-Math.min(1,c*(1-p)+p),m=1-Math.min(1,f*(1-p)+p),[h*255,d*255,m*255]},n.xyz.rgb=function(u){var l=u[0]/100,c=u[1]/100,f=u[2]/100,p,h,d;return p=l*3.2406+c*-1.5372+f*-.4986,h=l*-.9689+c*1.8758+f*.0415,d=l*.0557+c*-.204+f*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,d=d>.0031308?1.055*Math.pow(d,1/2.4)-.055:d*12.92,p=Math.min(Math.max(0,p),1),h=Math.min(Math.max(0,h),1),d=Math.min(Math.max(0,d),1),[p*255,h*255,d*255]},n.xyz.lab=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return l/=95.047,c/=100,f/=108.883,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,p=116*c-16,h=500*(l-c),d=200*(c-f),[p,h,d]},n.lab.xyz=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;h=(l+16)/116,p=c/500+h,d=h-f/200;var m=Math.pow(h,3),D=Math.pow(p,3),g=Math.pow(d,3);return h=m>.008856?m:(h-16/116)/7.787,p=D>.008856?D:(p-16/116)/7.787,d=g>.008856?g:(d-16/116)/7.787,p*=95.047,h*=100,d*=108.883,[p,h,d]},n.lab.lch=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return p=Math.atan2(f,c),h=p*360/2/Math.PI,h<0&&(h+=360),d=Math.sqrt(c*c+f*f),[l,d,h]},n.lch.lab=function(u){var l=u[0],c=u[1],f=u[2],p,h,d;return d=f/360*2*Math.PI,p=c*Math.cos(d),h=c*Math.sin(d),[l,p,h]},n.rgb.ansi16=function(u){var l=u[0],c=u[1],f=u[2],p=1 in arguments?arguments[1]:n.rgb.hsv(u)[2];if(p=Math.round(p/50),p===0)return 30;var h=30+(Math.round(f/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return p===2&&(h+=60),h},n.hsv.ansi16=function(u){return n.rgb.ansi16(n.hsv.rgb(u),u[2])},n.rgb.ansi256=function(u){var l=u[0],c=u[1],f=u[2];if(l===c&&c===f)return l<8?16:l>248?231:Math.round((l-8)/247*24)+232;var p=16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(f/255*5);return p},n.ansi16.rgb=function(u){var l=u%10;if(l===0||l===7)return u>50&&(l+=3.5),l=l/10.5*255,[l,l,l];var c=(~~(u>50)+1)*.5,f=(l&1)*c*255,p=(l>>1&1)*c*255,h=(l>>2&1)*c*255;return[f,p,h]},n.ansi256.rgb=function(u){if(u>=232){var l=(u-232)*10+8;return[l,l,l]}u-=16;var c,f=Math.floor(u/36)/5*255,p=Math.floor((c=u%36)/6)/5*255,h=c%6/5*255;return[f,p,h]},n.rgb.hex=function(u){var l=((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255),c=l.toString(16).toUpperCase();return"000000".substring(c.length)+c},n.hex.rgb=function(u){var l=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];var c=l[0];l[0].length===3&&(c=c.split("").map(function(m){return m+m}).join(""));var f=parseInt(c,16),p=f>>16&255,h=f>>8&255,d=f&255;return[p,h,d]},n.rgb.hcg=function(u){var l=u[0]/255,c=u[1]/255,f=u[2]/255,p=Math.max(Math.max(l,c),f),h=Math.min(Math.min(l,c),f),d=p-h,m,D;return d<1?m=h/(1-d):m=0,d<=0?D=0:p===l?D=(c-f)/d%6:p===c?D=2+(f-l)/d:D=4+(l-c)/d+4,D/=6,D%=1,[D*360,d*100,m*100]},n.hsl.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=1,p=0;return c<.5?f=2*l*c:f=2*l*(1-c),f<1&&(p=(c-.5*f)/(1-f)),[u[0],f*100,p*100]},n.hsv.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=l*c,p=0;return f<1&&(p=(c-f)/(1-f)),[u[0],f*100,p*100]},n.hcg.rgb=function(u){var l=u[0]/360,c=u[1]/100,f=u[2]/100;if(c===0)return[f*255,f*255,f*255];var p=[0,0,0],h=l%1*6,d=h%1,m=1-d,D=0;switch(Math.floor(h)){case 0:p[0]=1,p[1]=d,p[2]=0;break;case 1:p[0]=m,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=d;break;case 3:p[0]=0,p[1]=m,p[2]=1;break;case 4:p[0]=d,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=m}return D=(1-c)*f,[(c*p[0]+D)*255,(c*p[1]+D)*255,(c*p[2]+D)*255]},n.hcg.hsv=function(u){var l=u[1]/100,c=u[2]/100,f=l+c*(1-l),p=0;return f>0&&(p=l/f),[u[0],p*100,f*100]},n.hcg.hsl=function(u){var l=u[1]/100,c=u[2]/100,f=c*(1-l)+.5*l,p=0;return f>0&&f<.5?p=l/(2*f):f>=.5&&f<1&&(p=l/(2*(1-f))),[u[0],p*100,f*100]},n.hcg.hwb=function(u){var l=u[1]/100,c=u[2]/100,f=l+c*(1-l);return[u[0],(f-l)*100,(1-f)*100]},n.hwb.hcg=function(u){var l=u[1]/100,c=u[2]/100,f=1-c,p=f-l,h=0;return p<1&&(h=(f-p)/(1-p)),[u[0],p*100,h*100]},n.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},n.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},n.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},n.gray.hsl=n.gray.hsv=function(u){return[0,0,u[0]]},n.gray.hwb=function(u){return[0,100,u[0]]},n.gray.cmyk=function(u){return[0,0,0,u[0]]},n.gray.lab=function(u){return[u[0],0,0]},n.gray.hex=function(u){var l=Math.round(u[0]/100*255)&255,c=(l<<16)+(l<<8)+l,f=c.toString(16).toUpperCase();return"000000".substring(f.length)+f},n.rgb.gray=function(u){var l=(u[0]+u[1]+u[2])/3;return[l/255*100]},el.exports}var rl,Md;function jW(){if(Md)return rl;Md=1;var e=GD();function t(){for(var s={},a=Object.keys(e),o=a.length,u=0;u<o;u++)s[a[u]]={distance:-1,parent:null};return s}function r(s){var a=t(),o=[s];for(a[s].distance=0;o.length;)for(var u=o.pop(),l=Object.keys(e[u]),c=l.length,f=0;f<c;f++){var p=l[f],h=a[p];h.distance===-1&&(h.distance=a[u].distance+1,h.parent=u,o.unshift(p))}return a}function n(s,a){return function(o){return a(s(o))}}function i(s,a){for(var o=[a[s].parent,s],u=e[a[s].parent][s],l=a[s].parent;a[l].parent;)o.unshift(a[l].parent),u=n(e[a[l].parent][l],u),l=a[l].parent;return u.conversion=o,u}return rl=function(s){for(var a=r(s),o={},u=Object.keys(a),l=u.length,c=0;c<l;c++){var f=u[c],p=a[f];p.parent!==null&&(o[f]=i(f,a))}return o},rl}var nl,jd;function $W(){if(jd)return nl;jd=1;var e=GD(),t=jW(),r={},n=Object.keys(e);function i(a){var o=function(u){return u==null?u:(arguments.length>1&&(u=Array.prototype.slice.call(arguments)),a(u))};return"conversion"in a&&(o.conversion=a.conversion),o}function s(a){var o=function(u){if(u==null)return u;arguments.length>1&&(u=Array.prototype.slice.call(arguments));var l=a(u);if(typeof l=="object")for(var c=l.length,f=0;f<c;f++)l[f]=Math.round(l[f]);return l};return"conversion"in a&&(o.conversion=a.conversion),o}return n.forEach(function(a){r[a]={},Object.defineProperty(r[a],"channels",{value:e[a].channels}),Object.defineProperty(r[a],"labels",{value:e[a].labels});var o=t(a),u=Object.keys(o);u.forEach(function(l){var c=o[l];r[a][l]=s(c),r[a][l].raw=i(c)})}),nl=r,nl}to.exports;var $d;function UW(){return $d||($d=1,function(e){const t=$W(),r=(a,o)=>function(){return`\x1B[${a.apply(t,arguments)+o}m`},n=(a,o)=>function(){const u=a.apply(t,arguments);return`\x1B[${38+o};5;${u}m`},i=(a,o)=>function(){const u=a.apply(t,arguments);return`\x1B[${38+o};2;${u[0]};${u[1]};${u[2]}m`};function s(){const a=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const c of Object.keys(o)){const f=o[c];for(const p of Object.keys(f)){const h=f[p];o[p]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},f[p]=o[p],a.set(h[0],h[1])}Object.defineProperty(o,c,{value:f,enumerable:!1}),Object.defineProperty(o,"codes",{value:a,enumerable:!1})}const u=c=>c,l=(c,f,p)=>[c,f,p];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:r(u,0)},o.color.ansi256={ansi256:n(u,0)},o.color.ansi16m={rgb:i(l,0)},o.bgColor.ansi={ansi:r(u,10)},o.bgColor.ansi256={ansi256:n(u,10)},o.bgColor.ansi16m={rgb:i(l,10)};for(let c of Object.keys(t)){if(typeof t[c]!="object")continue;const f=t[c];c==="ansi16"&&(c="ansi"),"ansi16"in f&&(o.color.ansi[c]=r(f.ansi16,0),o.bgColor.ansi[c]=r(f.ansi16,10)),"ansi256"in f&&(o.color.ansi256[c]=n(f.ansi256,0),o.bgColor.ansi256[c]=n(f.ansi256,10)),"rgb"in f&&(o.color.ansi16m[c]=i(f.rgb,0),o.bgColor.ansi16m[c]=i(f.rgb,10))}return o}Object.defineProperty(e,"exports",{enumerable:!0,get:s})}(to)),to.exports}var il,Ud;function VW(){return Ud||(Ud=1,il=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}),il}var sl,Vd;function qW(){if(Vd)return sl;Vd=1;const e=nc,t=VW(),r=process.env;let n;t("no-color")||t("no-colors")||t("color=false")?n=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(n=!0),"FORCE_COLOR"in r&&(n=r.FORCE_COLOR.length===0||parseInt(r.FORCE_COLOR,10)!==0);function i(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function s(o){if(n===!1)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(o&&!o.isTTY&&n!==!0)return 0;const u=n?1:0;if(process.platform==="win32"){const l=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(l[0])>=10&&Number(l[2])>=10586?Number(l[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(l=>l in r)||r.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){const l=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM==="dumb",u)}function a(o){const u=s(o);return i(u)}return sl={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)},sl}var al,qd;function KW(){if(qd)return al;qd=1;const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n",`
132
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(l){return l[0]==="u"&&l.length===5||l[0]==="x"&&l.length===3?String.fromCharCode(parseInt(l.slice(1),16)):i.get(l)||l}function a(l,c){const f=[],p=c.trim().split(/\s*,\s*/g);let h;for(const d of p)if(!isNaN(d))f.push(Number(d));else if(h=d.match(r))f.push(h[2].replace(n,(m,D,g)=>D?s(D):g));else throw new Error(`Invalid Chalk template style argument: ${d} (in style '${l}')`);return f}function o(l){t.lastIndex=0;const c=[];let f;for(;(f=t.exec(l))!==null;){const p=f[1];if(f[2]){const h=a(p,f[2]);c.push([p].concat(h))}else c.push([p])}return c}function u(l,c){const f={};for(const h of c)for(const d of h.styles)f[d[0]]=h.inverse?null:d.slice(1);let p=l;for(const h of Object.keys(f))if(Array.isArray(f[h])){if(!(h in p))throw new Error(`Unknown Chalk style: ${h}`);f[h].length>0?p=p[h].apply(p,f[h]):p=p[h]}return p}return al=(l,c)=>{const f=[],p=[];let h=[];if(c.replace(e,(d,m,D,g,y,b)=>{if(m)h.push(s(m));else if(g){const O=h.join("");h=[],p.push(f.length===0?O:u(l,f)(O)),f.push({inverse:D,styles:o(g)})}else if(y){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(u(l,f)(h.join(""))),h=[],f.pop()}else h.push(b)}),p.push(h.join("")),f.length>0){const d=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(d)}return p.join("")},al}var Kd;function WW(){return Kd||(Kd=1,function(e){const t=RW(),r=UW(),n=qW().stdout,i=KW(),s=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),a=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),u=Object.create(null);function l(m,D){D=D||{};const g=n?n.level:0;m.level=D.level===void 0?g:D.level,m.enabled="enabled"in D?D.enabled:m.level>0}function c(m){if(!this||!(this instanceof c)||this.template){const D={};return l(D,m),D.template=function(){const g=[].slice.call(arguments);return d.apply(null,[D.template].concat(g))},Object.setPrototypeOf(D,c.prototype),Object.setPrototypeOf(D.template,D),D.template.constructor=c,D.template}l(this,m)}s&&(r.blue.open="\x1B[94m");for(const m of Object.keys(r))r[m].closeRe=new RegExp(t(r[m].close),"g"),u[m]={get(){const D=r[m];return p.call(this,this._styles?this._styles.concat(D):[D],this._empty,m)}};u.visible={get(){return p.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(const m of Object.keys(r.color.ansi))o.has(m)||(u[m]={get(){const D=this.level;return function(){const y={open:r.color[a[D]][m].apply(null,arguments),close:r.color.close,closeRe:r.color.closeRe};return p.call(this,this._styles?this._styles.concat(y):[y],this._empty,m)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(const m of Object.keys(r.bgColor.ansi)){if(o.has(m))continue;const D="bg"+m[0].toUpperCase()+m.slice(1);u[D]={get(){const g=this.level;return function(){const b={open:r.bgColor[a[g]][m].apply(null,arguments),close:r.bgColor.close,closeRe:r.bgColor.closeRe};return p.call(this,this._styles?this._styles.concat(b):[b],this._empty,m)}}}}const f=Object.defineProperties(()=>{},u);function p(m,D,g){const y=function(){return h.apply(y,arguments)};y._styles=m,y._empty=D;const b=this;return Object.defineProperty(y,"level",{enumerable:!0,get(){return b.level},set(O){b.level=O}}),Object.defineProperty(y,"enabled",{enumerable:!0,get(){return b.enabled},set(O){b.enabled=O}}),y.hasGrey=this.hasGrey||g==="gray"||g==="grey",y.__proto__=f,y}function h(){const m=arguments,D=m.length;let g=String(arguments[0]);if(D===0)return"";if(D>1)for(let b=1;b<D;b++)g+=" "+m[b];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;const y=r.dim.open;s&&this.hasGrey&&(r.dim.open="");for(const b of this._styles.slice().reverse())g=b.open+g.replace(b.closeRe,b.open)+b.close,g=g.replace(/\r?\n/g,`${b.close}$&${b.open}`);return r.dim.open=y,g}function d(m,D){if(!Array.isArray(D))return[].slice.call(arguments,1).join(" ");const g=[].slice.call(arguments,2),y=[D.raw[0]];for(let b=1;b<D.length;b++)y.push(String(g[b-1]).replace(/[{}\\]/g,"\\$&")),y.push(String(D.raw[b]));return i(m,y.join(""))}Object.defineProperties(c.prototype,u),e.exports=c(),e.exports.supportsColor=n,e.exports.default=e.exports}(Qu)),Qu.exports}Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=ZW;Xs.shouldHighlight=zD;var Wd=su,Hd=Us,zl=HW(HD,!0);function YD(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(YD=function(n){return n?r:t})(e)}function HW(e,t){if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=YD(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}const XD=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,zl.createColors)(!1):zl.default,Gd=(e,t)=>r=>e(t(r)),GW=new Set(["as","async","from","get","of","set"]);function YW(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Gd(Gd(e.white,e.bgRed),e.bold)}}const XW=/\r\n|[\n\r\u2028\u2029]/,JW=/^[()[\]{}]$/;let JD;{const e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0,Hd.isKeyword)(r.value)||(0,Hd.isStrictReservedWord)(r.value,!0)||GW.has(r.value))return"keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&JW.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};JD=function*(r){let n;for(;n=Wd.default.exec(r);){const i=Wd.matchToToken(n);yield{type:t(i,n.index,r),value:i.value}}}}function zW(e,t){let r="";for(const{type:n,value:i}of JD(t)){const s=e[n];s?r+=i.split(XW).map(a=>s(a)).join(`
133
+ `):r+=i}return r}function zD(e){return XD.isColorSupported||e.forceColor}let ol;function QW(e){if(e){var t;return(t=ol)!=null||(ol=(0,zl.createColors)(!0)),ol}return XD}function ZW(e,t={}){if(e!==""&&zD(t)){const r=YW(QW(t.forceColor));return zW(r,e)}else return e}{let e,t;Xs.getChalk=({forceColor:r})=>{var n;if((n=e)!=null||(e=WW()),r){var i;return(i=t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e}}Object.defineProperty(Ys,"__esModule",{value:!0});Ys.codeFrameColumns=ZD;Ys.default=sH;var Yd=Xs,Ql=eH(HD,!0);function QD(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(QD=function(n){return n?r:t})(e)}function eH(e,t){if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=QD(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}const tH=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,Ql.createColors)(!1):Ql.default,Xd=(e,t)=>r=>e(t(r));let ul;function rH(e){if(e){var t;return(t=ul)!=null||(ul=(0,Ql.createColors)(!0)),ul}return tH}let Jd=!1;function nH(e){return{gutter:e.gray,marker:Xd(e.red,e.bold),message:Xd(e.red,e.bold)}}const zd=/\r\n|[\n\r\u2028\u2029]/;function iH(e,t,r){const n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column;let f=Math.max(o-(s+1),0),p=Math.min(t.length,l+a);o===-1&&(f=0),l===-1&&(p=t.length);const h=l-o,d={};if(h)for(let m=0;m<=h;m++){const D=m+o;if(!u)d[D]=!0;else if(m===0){const g=t[D-1].length;d[D]=[u,g-u+1]}else if(m===h)d[D]=[0,c];else{const g=t[D-m].length;d[D]=[0,g]}}else u===c?u?d[o]=[u,0]:d[o]=!0:d[o]=[u,c-u];return{start:f,end:p,markerLines:d}}function ZD(e,t,r={}){const n=(r.highlightCode||r.forceColor)&&(0,Yd.shouldHighlight)(r),i=rH(r.forceColor),s=nH(i),a=(m,D)=>n?m(D):D,o=e.split(zd),{start:u,end:l,markerLines:c}=iH(t,o,r),f=t.start&&typeof t.start.column=="number",p=String(l).length;let d=(n?(0,Yd.default)(e,r):e).split(zd,l).slice(u,l).map((m,D)=>{const g=u+1+D,b=` ${` ${g}`.slice(-p)} |`,O=c[g],C=!c[g+1];if(O){let $="";if(Array.isArray(O)){const w=m.slice(0,Math.max(O[0]-1,0)).replace(/[^\t]/g," "),P=O[1]||1;$=[`
134
+ `,a(s.gutter,b.replace(/\d/g," "))," ",w,a(s.marker,"^").repeat(P)].join(""),C&&r.message&&($+=" "+a(s.message,r.message))}return[a(s.marker,">"),a(s.gutter,b),m.length>0?` ${m}`:"",$].join("")}else return` ${a(s.gutter,b)}${m.length>0?` ${m}`:""}`}).join(`
135
+ `);return r.message&&!f&&(d=`${" ".repeat(p+1)}${r.message}
136
+ ${d}`),n?i.reset(d):d}function sH(e,t,r,n={}){if(!Jd){Jd=!0;const s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{const a=new Error(s);a.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),ZD(e,{start:{column:r,line:t}},n)}var Yt={},au={};Object.defineProperty(au,"__esModule",{value:!0});au.default=void 0;var eg=He(),aH=eg;const{react:oH}=eg,{cloneNode:uH,jsxExpressionContainer:lH,variableDeclaration:cH,variableDeclarator:fH}=aH,pH={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&oH.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}const r=e.scope.getBinding(e.node.name);if(r){for(const n of r.constantViolations)if(n.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}};class hH{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(const r of Object.keys(this.bindings)){const n=this.bindings[r];if(!t.bindingIdentifierEquals(r,n.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(const n of Object.keys(this.bindings)){if(!r.hasOwnBinding(n))continue;const i=this.bindings[n];if(i.kind==="param"||i.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(i.path).key>=t.key){this.attachAfter=!0,t=i.path;for(const a of i.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){const r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;const n=r.path.get("body").get("body");for(let i=0;i<n.length;i++)if(!n[i].node._blockHoist)return n[i]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath)}hasOwnParamBindings(t){for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const n=this.bindings[r];if(n.kind==="param"&&n.constant)return!0}return!1}run(){if(this.path.traverse(pH,this),this.mutableBinding)return;this.getCompatibleScopes();const t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref");const n=fH(r,this.path.node),i=this.attachAfter?"insertAfter":"insertBefore",[s]=t[i]([t.isVariableDeclarator()?n:cH("var",[n])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=lH(r)),this.path.replaceWith(uH(r)),t.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}}au.default=hH;var Rr={},ou={};Object.defineProperty(ou,"__esModule",{value:!0});ou.hooks=void 0;ou.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}];var Qd;function Lf(){if(Qd)return Rr;Qd=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr._assertUnremoved=f,Rr._callRemovalHooks=u,Rr._markRemoved=c,Rr._remove=l,Rr._removeFromScope=o,Rr.remove=a;var e=ou,t=_t,r=rg(),n=yi(),i=He();const{getBindingIdentifiers:s}=i;function a(){var p;if(f.call(this),this.resync(),u.call(this)){c.call(this);return}(p=this.opts)!=null&&p.noScope||o.call(this),this.shareCommentsWithSiblings(),l.call(this),c.call(this)}function o(){const p=s(this.node,!1,!1,!0);Object.keys(p).forEach(h=>this.scope.removeBinding(h))}function u(){if(this.parentPath){for(const p of e.hooks)if(p(this,this.parentPath))return!0}}function l(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):r._replaceWith.call(this,null)}function c(){this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.parent&&(0,t.getCachedPaths)(this.hub,this.parent).delete(this.node),this.node=null}function f(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Rr}var Zd;function tg(){if(Zd)return Yt;Zd=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt._containerInsert=$,Yt._containerInsertAfter=P,Yt._containerInsertBefore=w,Yt._verifyNodeList=B,Yt.hoist=H,Yt.insertAfter=S,Yt.insertBefore=C,Yt.pushContainer=N,Yt.unshiftContainer=x,Yt.updateSiblingKeys=A;var e=_t,t=au,r=yi(),n=Zs(),i=Lf(),s=He();const{arrowFunctionExpression:a,assertExpression:o,assignmentExpression:u,blockStatement:l,callExpression:c,cloneNode:f,expressionStatement:p,isAssignmentExpression:h,isCallExpression:d,isExportNamedDeclaration:m,isExpression:D,isIdentifier:g,isSequenceExpression:y,isSuper:b,thisExpression:O}=s;function C(T){i._assertUnremoved.call(this);const _=B.call(this,T),{parentPath:R,parent:Q}=this;if(R.isExpressionStatement()||R.isLabeledStatement()||m(Q)||R.isExportDefaultDeclaration()&&this.isDeclaration())return R.insertBefore(_);if(this.isNodeType("Expression")&&!this.isJSXElement()||R.isForStatement()&&this.key==="init")return this.node&&_.push(this.node),this.replaceExpressionWithStatements(_);if(Array.isArray(this.container))return w.call(this,_);if(this.isStatementOrBlock()){const ne=this.node,X=ne&&(!this.isExpressionStatement()||ne.expression!=null);return this.replaceWith(l(X?[ne]:[])),this.unshiftContainer("body",_)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function $(T,_){this.updateSiblingKeys(T,_.length);const R=[];this.container.splice(T,0,..._);for(let X=0;X<_.length;X++){var Q;const ae=T+X,ie=this.getSibling(ae);R.push(ie),(Q=this.context)!=null&&Q.queue&&ie.pushContext(this.context)}const ne=n._getQueueContexts.call(this);for(const X of R){X.setScope(),X.debug("Inserted.");for(const ae of ne)ae.maybeQueue(X,!0)}return R}function w(T){return $.call(this,this.key,T)}function P(T){return $.call(this,this.key+1,T)}const I=T=>T[T.length-1];function k(T){return y(T.parent)&&(I(T.parent.expressions)!==T.node||k(T.parentPath))}function F(T,_){if(!h(T)||!g(T.left))return!1;const R=_.getBlockParent();return R.hasOwnBinding(T.left.name)&&R.getOwnBinding(T.left.name).constantViolations.length<=1}function S(T){if(i._assertUnremoved.call(this),this.isSequenceExpression())return I(this.get("expressions")).insertAfter(T);const _=B.call(this,T),{parentPath:R,parent:Q}=this;if(R.isExpressionStatement()||R.isLabeledStatement()||m(Q)||R.isExportDefaultDeclaration()&&this.isDeclaration())return R.insertAfter(_.map(ne=>D(ne)?p(ne):ne));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!R.isJSXElement()||R.isForStatement()&&this.key==="init"){const ne=this;if(ne.node){const X=ne.node;let{scope:ae}=this;if(ae.path.isPattern())return o(X),ne.replaceWith(c(a([],X),[])),ne.get("callee.body").insertAfter(_),[ne];if(k(ne))_.unshift(X);else if(d(X)&&b(X.callee))_.unshift(X),_.push(O());else if(F(X,ae))_.unshift(X),_.push(f(X.left));else if(ae.isPure(X,!0))_.push(X);else{R.isMethod({computed:!0,key:X})&&(ae=ae.parent);const ie=ae.generateDeclaredUidIdentifier();_.unshift(p(u("=",f(ie),X))),_.push(p(f(ie)))}}return this.replaceExpressionWithStatements(_)}else{if(Array.isArray(this.container))return P.call(this,_);if(this.isStatementOrBlock()){const ne=this.node,X=ne&&(!this.isExpressionStatement()||ne.expression!=null);return this.replaceWith(l(X?[ne]:[])),this.pushContainer("body",_)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function A(T,_){if(!this.parent)return;const R=(0,e.getCachedPaths)(this.hub,this.parent)||[];for(const[,Q]of R)typeof Q.key=="number"&&Q.key>=T&&(Q.key+=_)}function B(T){if(!T)return[];Array.isArray(T)||(T=[T]);for(let _=0;_<T.length;_++){const R=T[_];let Q;if(R?typeof R!="object"?Q="contains a non-object node":R.type?R instanceof r.default&&(Q="has a NodePath when it expected a raw object"):Q="without a type":Q="has falsy node",Q){const ne=Array.isArray(R)?"array":typeof R;throw new Error(`Node list ${Q} with the index of ${_} and type of ${ne}`)}}return T}function x(T,_){i._assertUnremoved.call(this),_=B.call(this,_);const R=r.default.get({parentPath:this,parent:this.node,container:this.node[T],listKey:T,key:0}).setContext(this.context);return w.call(R,_)}function N(T,_){i._assertUnremoved.call(this);const R=B.call(this,_),Q=this.node[T];return r.default.get({parentPath:this,parent:this.node,container:Q,listKey:T,key:Q.length}).setContext(this.context).replaceWithMultiple(R)}function H(T=this.scope){return new t.default(this,T).run()}return Yt}var em;function rg(){if(em)return Lr;em=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr._replaceWith=ne,Lr.replaceExpressionWithStatements=X,Lr.replaceInline=ie,Lr.replaceWith=Q,Lr.replaceWithMultiple=_,Lr.replaceWithSourceString=R;var e=Ys,t=pu(),r=yi(),n=_t,i=tg(),s=Vi,a=He();const{FUNCTION_TYPES:o,arrowFunctionExpression:u,assignmentExpression:l,awaitExpression:c,blockStatement:f,buildUndefinedNode:p,callExpression:h,cloneNode:d,conditionalExpression:m,expressionStatement:D,getBindingIdentifiers:g,identifier:y,inheritLeadingComments:b,inheritTrailingComments:O,inheritsComments:C,isBlockStatement:$,isEmptyStatement:w,isExpression:P,isExpressionStatement:I,isIfStatement:k,isProgram:F,isStatement:S,isVariableDeclaration:A,removeComments:B,returnStatement:x,sequenceExpression:N,validate:H,yieldExpression:T}=a;function _(te){var Y;this.resync(),te=i._verifyNodeList.call(this,te),b(te[0],this.node),O(te[te.length-1],this.node),(Y=(0,n.getCachedPaths)(this.hub,this.parent))==null||Y.delete(this.node),this.node=this.container[this.key]=null;const re=this.insertAfter(te);return this.node?this.requeue():this.remove(),re}function R(te){this.resync();let Y;try{te=`(${te})`,Y=(0,s.parse)(te)}catch(De){const de=De.loc;throw de&&(De.message+=` - make sure this is an expression.
137
+ `+(0,e.codeFrameColumns)(te,{start:{line:de.line,column:de.column+1}}),De.code="BABEL_REPLACE_SOURCE_ERROR"),De}const re=Y.program.body[0].expression;return t.default.removeProperties(re),this.replaceWith(re)}function Q(te){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let Y=te instanceof r.default?te.node:te;if(!Y)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===Y)return[this];if(this.isProgram()&&!F(Y))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(Y))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof Y=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let re="";if(this.isNodeType("Statement")&&P(Y)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Y)&&!this.parentPath.isExportDefaultDeclaration()&&(Y=D(Y),re="expression"),this.isNodeType("Expression")&&S(Y)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(Y))return this.replaceExpressionWithStatements([Y]);const De=this.node;return De&&(C(Y,De),B(De)),ne.call(this,Y),this.type=Y.type,this.setScope(),this.requeue(),[re?this.get(re):this]}function ne(te){var Y;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?H(this.parent,this.key,[te]):H(this.parent,this.key,te),this.debug(`Replace with ${te==null?void 0:te.type}`),(Y=(0,n.getCachedPaths)(this.hub,this.parent))==null||Y.set(te,this).delete(this.node),this.node=this.container[this.key]=te}function X(te){this.resync();const Y=[],re=ae(te,Y);if(re){for(const ge of Y)this.scope.push({id:ge});return this.replaceWith(re)[0].get("expressions")}const De=this.getFunctionParent(),de=De==null?void 0:De.is("async"),Ce=De==null?void 0:De.is("generator"),Ie=u([],f(te));this.replaceWith(h(Ie,[]));const Te=this.get("callee");Te.get("body").scope.hoistVariables(ge=>this.scope.push({id:ge}));const Ne=Te.getCompletionRecords();for(const ge of Ne){if(!ge.isExpressionStatement())continue;const Ae=ge.findParent(st=>st.isLoop());if(Ae){let st=Ae.getData("expressionReplacementReturnUid");st?st=y(st.name):(st=Te.scope.generateDeclaredUidIdentifier("ret"),Te.get("body").pushContainer("body",x(d(st))),Ae.setData("expressionReplacementReturnUid",st)),ge.get("expression").replaceWith(l("=",d(st),ge.node.expression))}else ge.replaceWith(x(ge.node.expression))}Te.arrowFunctionToExpression();const Je=Te,Fe=de&&t.default.hasType(this.get("callee.body").node,"AwaitExpression",o),Oe=Ce&&t.default.hasType(this.get("callee.body").node,"YieldExpression",o);return Fe&&(Je.set("async",!0),Oe||this.replaceWith(c(this.node))),Oe&&(Je.set("generator",!0),this.replaceWith(T(this.node,!0))),Je.get("body.body")}function ae(te,Y){const re=[];let De=!0;for(const de of te)if(w(de)||(De=!1),P(de))re.push(de);else if(I(de))re.push(de.expression);else if(A(de)){if(de.kind!=="var")return;for(const Ce of de.declarations){const Ie=g(Ce);for(const Te of Object.keys(Ie))Y.push(d(Ie[Te]));Ce.init&&re.push(l("=",Ce.id,Ce.init))}De=!0}else if(k(de)){const Ce=de.consequent?ae([de.consequent],Y):p(),Ie=de.alternate?ae([de.alternate],Y):p();if(!Ce||!Ie)return;re.push(m(de.test,Ce,Ie))}else if($(de)){const Ce=ae(de.body,Y);if(!Ce)return;re.push(Ce)}else if(w(de))te.indexOf(de)===0&&(De=!0);else return;return De&&re.push(p()),re.length===1?re[0]:N(re)}function ie(te){if(this.resync(),Array.isArray(te))if(Array.isArray(this.container)){te=i._verifyNodeList.call(this,te);const Y=i._containerInsertAfter.call(this,te);return this.remove(),Y}else return this.replaceWithMultiple(te);else return this.replaceWith(te)}return Lr}var uu={};Object.defineProperty(uu,"__esModule",{value:!0});uu.evaluate=TH;uu.evaluateTruthy=EH;const dH=["Number","String","Math"],mH=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],yH=["random"];function tm(e){return dH.includes(e)}function DH(e){return mH.includes(e)}function gH(e){return yH.includes(e)}function EH(){const e=this.evaluate();if(e.confident)return!!e.value}function Ur(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const rm=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Rt(e,t){const{node:r}=e,{seen:n}=t;if(n.has(r)){const i=n.get(r);if(i.resolved)return i.value;Ur(e,t);return}else{const i={resolved:!1};n.set(r,i);const s=bH(e,t);return t.confident&&(i.resolved=!0,i.value=s),s}}function bH(e,t){if(t.confident){if(e.isSequenceExpression()){const r=e.get("expressions");return Rt(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return nm(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object"),{node:{name:n}}=r,i=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&i.isIdentifier()&&i.node.name==="raw")return nm(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){const r=Rt(e.get("test"),t);return t.confident?Rt(r?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Rt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property"),n=e.get("object");if(n.isLiteral()){const i=n.node.value,s=typeof i;let a=null;if(e.node.computed){if(a=Rt(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if((s==="number"||s==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return i[a]}}if(e.isReferencedIdentifier()){const r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end){Ur(r.path,t);return}if(r.hasValue)return r.value}const n=e.node.name;if(rm.has(n)){if(!r)return rm.get(n);Ur(r.path,t);return}const i=e.resolve();if(i===e){Ur(e,t);return}else return Rt(i,t)}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;const r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass()))return"function";const n=Rt(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){const r=[],n=e.get("elements");for(const i of n){const s=i.evaluate();if(s.confident)r.push(s.value);else{Ur(s.deopt,t);return}}return r}if(e.isObjectExpression()){const r={},n=e.get("properties");for(const i of n){if(i.isObjectMethod()||i.isSpreadElement()){Ur(i,t);return}const s=i.get("key");let a;if(i.node.computed){if(a=s.evaluate(),!a.confident){Ur(a.deopt,t);return}a=a.value}else s.isIdentifier()?a=s.node.name:a=s.node.value;let u=i.get("value").evaluate();if(!u.confident){Ur(u.deopt,t);return}u=u.value,r[a]=u}return r}if(e.isLogicalExpression()){const r=t.confident,n=Rt(e.get("left"),t),i=t.confident;t.confident=r;const s=Rt(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":return t.confident=i&&(!!n||a),t.confident?n||s:void 0;case"&&":return t.confident=i&&(!n||a),t.confident?n&&s:void 0;case"??":return t.confident=i&&(n!=null||a),t.confident?n??s:void 0}}if(e.isBinaryExpression()){const r=Rt(e.get("left"),t);if(!t.confident)return;const n=Rt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return Math.pow(r,n);case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){const r=e.get("callee");let n,i;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(tm(r.node.name)||DH(r.node.name))&&(i=ii[r.node.name]),r.isMemberExpression()){const s=r.get("object"),a=r.get("property");if(s.isIdentifier()&&a.isIdentifier()&&tm(s.node.name)&&!gH(a.node.name)){n=ii[s.node.name];const o=a.node.name;hasOwnProperty.call(n,o)&&(i=n[o])}if(s.isLiteral()&&a.isIdentifier()){const o=typeof s.node.value;(o==="string"||o==="number")&&(n=s.node.value,i=n[a.node.name])}}if(i){const s=e.get("arguments").map(a=>Rt(a,t));return t.confident?i.apply(n,s):void 0}}Ur(e,t)}}function nm(e,t,r,n=!1){let i="",s=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const o of t){if(!r.confident)break;i+=n?o.value.raw:o.value.cooked;const u=a[s++];u&&(i+=String(Rt(u,r)))}if(r.confident)return i}function TH(){const e={confident:!0,deoptPath:null,seen:new Map};let t=Rt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}var vr={},Kt={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.statements=er.statement=er.smart=er.program=er.expression=void 0;var SH=He();const{assertExpressionStatement:vH}=SH;function Rf(e){return{code:t=>`/* @babel/template */;
138
+ ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}er.smart=Rf(e=>e.length>1?e:e[0]);er.statements=Rf(e=>e);er.statement=Rf(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const AH=er.expression={code:e=>`(
139
+ ${e}
140
+ )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(AH.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[t]=e.body;return vH(t),t.expression}};er.program={code:e=>e,validate:()=>{},unwrap:e=>e.program};var Mf={},mi={};Object.defineProperty(mi,"__esModule",{value:!0});mi.merge=xH;mi.normalizeReplacements=_H;mi.validate=FH;const CH=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function PH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function xH(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}}function FH(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");const t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}=t,a=PH(t,CH);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(s===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n??void 0,preserveComments:i??void 0,syntacticPlaceholders:s??void 0}}function _H(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var jf={},lu={};Object.defineProperty(lu,"__esModule",{value:!0});lu.default=qH;var wH=He(),IH=Vi,OH=Ys;const{isCallExpression:NH,isExpressionStatement:BH,isFunction:kH,isIdentifier:LH,isJSXIdentifier:RH,isNewExpression:MH,isPlaceholder:Ra,isStatement:jH,isStringLiteral:im,removePropertiesDeep:$H,traverse:UH}=wH,VH=/^[_$A-Z0-9]+$/;function qH(e,t,r){const{placeholderWhitelist:n,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}=r,o=HH(t,r.parser,a);$H(o,{preserveComments:s}),e.validate(o);const u={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:i,syntacticPlaceholders:a};return UH(o,KH,u),Object.assign({ast:o},u.syntactic.placeholders.length?u.syntactic:u.legacy)}function KH(e,t,r){var n;let i,s=r.syntactic.placeholders.length>0;if(Ra(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(LH(e)||RH(e))i=e.name;else if(im(e))i=e.value;else return}if(s&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(r.placeholderPattern===!1||!(r.placeholderPattern||VH).test(i))&&!((n=r.placeholderWhitelist)!=null&&n.has(i)))return;t=t.slice();const{node:a,key:o}=t[t.length-1];let u;im(e)||Ra(e,{expectedNode:"StringLiteral"})?u="string":MH(a)&&o==="arguments"||NH(a)&&o==="arguments"||kH(a)&&o==="params"?u="param":BH(a)&&!Ra(e)?(u="statement",t=t.slice(0,-1)):jH(e)&&Ra(e)?u="statement":u="other";const{placeholders:l,placeholderNames:c}=s?r.syntactic:r.legacy;l.push({name:i,type:u,resolve:f=>WH(f,t),isDuplicate:c.has(i)}),c.add(i)}function WH(e,t){let r=e;for(let s=0;s<t.length-1;s++){const{key:a,index:o}=t[s];o===void 0?r=r[a]:r=r[a][o]}const{key:n,index:i}=t[t.length-1];return{parent:r,key:n,index:i}}function HH(e,t,r){const n=(t.plugins||[]).slice();r!==!1&&n.push("placeholders"),t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:n});try{return(0,IH.parse)(e,t)}catch(i){const s=i.loc;throw s&&(i.message+=`
141
+ `+(0,OH.codeFrameColumns)(e,{start:s}),i.code="BABEL_TEMPLATE_PARSE_ERROR"),i}}var cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.default=QH;var GH=He();const{blockStatement:YH,cloneNode:Zl,emptyStatement:XH,expressionStatement:ll,identifier:Ma,isStatement:sm,isStringLiteral:JH,stringLiteral:zH,validate:am}=GH;function QH(e,t){const r=Zl(e.ast);return t&&(e.placeholders.forEach(n=>{if(!hasOwnProperty.call(t,n.name)){const i=n.name;throw new Error(`Error: No substitution given for "${i}". If this is not meant to be a
142
+ placeholder you may want to consider passing one of the following options to @babel/template:
143
+ - { placeholderPattern: false, placeholderWhitelist: new Set(['${i}'])}
144
+ - { placeholderPattern: /^${i}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{ZH(n,r,t&&t[n.name]||null)}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function ZH(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>Zl(o)):typeof r=="object"&&(r=Zl(r)));const{parent:n,key:i,index:s}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=zH(r)),!r||!JH(r))throw new Error("Expected string substitution")}else if(e.type==="statement")s===void 0?r?Array.isArray(r)?r=YH(r):typeof r=="string"?r=ll(Ma(r)):sm(r)||(r=ll(r)):r=XH():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Ma(r)),sm(r)||(r=ll(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=Ma(r)),s===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Ma(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,u,l){const c=o[u];o[u]=l,c.type==="Identifier"&&(c.typeAnnotation&&(l.typeAnnotation=c.typeAnnotation),c.optional&&(l.optional=c.optional),c.decorators&&(l.decorators=c.decorators))}if(s===void 0)am(n,i,r),a(n,i,r);else{const o=n[i].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(s,1):Array.isArray(r)?o.splice(s,1,...r):a(o,s,r):a(o,s,r),am(n,i,o),n[i]=o}}Object.defineProperty(jf,"__esModule",{value:!0});jf.default=nG;var eG=mi,tG=lu,rG=cu;function nG(e,t,r){t=e.code(t);let n;return i=>{const s=(0,eG.normalizeReplacements)(i);return n||(n=(0,tG.default)(e,t,r)),e.unwrap((0,rG.default)(n,s))}}var $f={};Object.defineProperty($f,"__esModule",{value:!0});$f.default=oG;var iG=mi,sG=lu,aG=cu;function oG(e,t,r){const{metadata:n,names:i}=uG(e,t,r);return s=>{const a={};return s.forEach((o,u)=>{a[i[u]]=o}),o=>{const u=(0,iG.normalizeReplacements)(o);return u&&Object.keys(u).forEach(l=>{if(hasOwnProperty.call(a,l))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,aG.default)(n,u?Object.assign(u,a):a))}}}function uG(e,t,r){let n="BABEL_TPL$";const i=t.join("");do n="$$"+n;while(i.includes(n));const{names:s,code:a}=lG(t,n);return{metadata:(0,sG.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(s.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}function lG(e,t){const r=[];let n=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;r.push(s),n+=s+e[i]}return{names:r,code:n}}Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=ng;var xr=mi,om=jf,um=$f;const lm=(0,xr.validate)({placeholderPattern:!1});function ng(e,t){const r=new WeakMap,n=new WeakMap,i=t||(0,xr.validate)(null);return Object.assign((s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return cm((0,om.default)(e,s,(0,xr.merge)(i,(0,xr.validate)(a[0]))))}else if(Array.isArray(s)){let o=r.get(s);return o||(o=(0,um.default)(e,s,i),r.set(s,o)),cm(o(a))}else if(typeof s=="object"&&s){if(a.length>0)throw new Error("Unexpected extra params.");return ng(e,(0,xr.merge)(i,(0,xr.validate)(s)))}throw new Error(`Unexpected template param ${typeof s}`)},{ast:(s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,om.default)(e,s,(0,xr.merge)((0,xr.merge)(i,(0,xr.validate)(a[0])),lm))()}else if(Array.isArray(s)){let o=n.get(s);return o||(o=(0,um.default)(e,s,(0,xr.merge)(i,lm)),n.set(s,o)),o(a)()}throw new Error(`Unexpected template param ${typeof s}`)}})}function cm(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
145
+ `).slice(3).join(`
146
+ `))}return r=>{try{return e(r)}catch(n){throw n.stack+=`
147
+ =============
148
+ ${t}`,n}}}Object.defineProperty(Kt,"__esModule",{value:!0});Kt.statements=Kt.statement=Kt.smart=Kt.program=Kt.expression=Kt.default=void 0;var Js=er,zs=Mf;const cl=Kt.smart=(0,zs.default)(Js.smart),cG=Kt.statement=(0,zs.default)(Js.statement),fG=Kt.statements=(0,zs.default)(Js.statements),pG=Kt.expression=(0,zs.default)(Js.expression),hG=Kt.program=(0,zs.default)(Js.program);Kt.default=Object.assign(cl.bind(void 0),{smart:cl,statement:cG,statements:fG,expression:pG,program:hG,ast:cl.ast});var fm;function dG(){if(fm)return vr;fm=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.arrowFunctionToExpression=Y,vr.ensureBlock=ae,vr.ensureFunctionName=$e,vr.splitExportDeclaration=st,vr.toComputedKey=X,vr.unwrapFunctionEnvironment=ie;var e=He(),t=Kt,r=Jo();const{arrowFunctionExpression:n,assignmentExpression:i,binaryExpression:s,blockStatement:a,callExpression:o,conditionalExpression:u,expressionStatement:l,identifier:c,isIdentifier:f,jsxIdentifier:p,logicalExpression:h,LOGICAL_OPERATORS:d,memberExpression:m,metaProperty:D,numericLiteral:g,objectExpression:y,restElement:b,returnStatement:O,sequenceExpression:C,spreadElement:$,stringLiteral:w,super:P,thisExpression:I,toExpression:k,unaryExpression:F,toBindingIdentifierName:S,isFunction:A,isAssignmentPattern:B,isRestElement:x,getFunctionName:N,cloneNode:H,variableDeclaration:T,variableDeclarator:_,exportNamedDeclaration:R,exportSpecifier:Q,inherits:ne}=e;function X(){let G;if(this.isMemberExpression())G=this.node.property;else if(this.isProperty()||this.isMethod())G=this.node.key;else throw new ReferenceError("todo");return this.node.computed||f(G)&&(G=w(G.name)),G}function ae(){const G=this.get("body"),V=G.node;if(Array.isArray(G))throw new Error("Can't convert array path to a block statement");if(!V)throw new Error("Can't convert node without a body");if(G.isBlockStatement())return V;const E=[];let j="body",z,se;G.isStatement()?(se="body",z=0,E.push(G.node)):(j+=".body.0",this.isFunction()?(z="argument",E.push(O(G.node))):(z="expression",E.push(l(G.node)))),this.node.body=a(E);const oe=this.get(j);return G.setup(oe,se?oe.node[se]:oe.node,se,z),this.node}vr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function ie(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");De(this)}function te(G,V){G.node.type=V}function Y({allowInsertArrow:G=!0,allowInsertArrowWithRest:V=G,noNewArrows:E=!(j=>(j=arguments[0])==null?void 0:j.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let j=this;if(!E){var z;j=(z=j.ensureFunctionName(!1))!=null?z:j}const{thisBinding:se,fnPath:oe}=De(j,E,G,V);if(oe.ensureBlock(),te(oe,"FunctionExpression"),!E){const ce=se?null:oe.scope.generateUidIdentifier("arrowCheckId");return ce&&oe.parentPath.scope.push({id:ce,init:y([])}),oe.get("body").unshiftContainer("body",l(o(this.hub.addHelper("newArrowCheck"),[I(),c(ce?ce.name:se)]))),oe.replaceWith(o(m(oe.node,c("bind")),[ce?c(ce.name):I()])),oe.get("callee.object")}return oe}const re=(0,r.environmentVisitor)({CallExpression(G,{allSuperCalls:V}){G.get("callee").isSuper()&&V.push(G)}});function De(G,V=!0,E=!0,j=!0){let z,se=G.findParent(Ke=>{if(Ke.isArrowFunctionExpression()){var Le;return(Le=z)!=null||(z=Ke),!1}return Ke.isFunction()||Ke.isProgram()||Ke.isClassProperty({static:!1})||Ke.isClassPrivateProperty({static:!1})});const oe=se.isClassMethod({kind:"constructor"});if(se.isClassProperty()||se.isClassPrivateProperty())if(z)se=z;else if(E)G.replaceWith(o(n([],k(G.node)),[])),se=G.get("callee"),G=se.get("body");else throw G.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:ce,argumentsPaths:Pe,newTargetPaths:Ue,superProps:ue,superCalls:Me}=Ae(G);if(oe&&Me.length>0){if(!E)throw Me[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!j)throw Me[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const Ke=[];se.traverse(re,{allSuperCalls:Ke});const Le=Je(se);Ke.forEach(W=>{const Se=c(Le);Se.loc=W.node.callee.loc,W.get("callee").replaceWith(Se)})}if(Pe.length>0){const Ke=Oe(se,"arguments",()=>{const Le=()=>c("arguments");return se.scope.path.isProgram()?u(s("===",F("typeof",Le()),w("undefined")),se.scope.buildUndefinedNode(),Le()):Le()});Pe.forEach(Le=>{const W=c(Ke);W.loc=Le.node.loc,Le.replaceWith(W)})}if(Ue.length>0){const Ke=Oe(se,"newtarget",()=>D(c("new"),c("target")));Ue.forEach(Le=>{const W=c(Ke);W.loc=Le.node.loc,Le.replaceWith(W)})}if(ue.length>0){if(!E)throw ue[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");ue.reduce((Le,W)=>Le.concat(Ce(W)),[]).forEach(Le=>{const W=Le.node.computed?"":Le.get("property").node.name,Se=Le.parentPath,ze=Se.isAssignmentExpression({left:Le.node}),ft=Se.isCallExpression({callee:Le.node}),lr=Se.isTaggedTemplateExpression({tag:Le.node}),Or=Fe(se,ze,W),cr=[];if(Le.node.computed&&cr.push(Le.get("property").node),ze){const Jt=Se.node.right;cr.push(Jt)}const fr=o(c(Or),cr);ft?(Se.unshiftContainer("arguments",I()),Le.replaceWith(m(fr,c("call"))),ce.push(Se.get("arguments.0"))):ze?Se.replaceWith(fr):lr?(Le.replaceWith(o(m(fr,c("bind"),!1),[I()])),ce.push(Le.get("arguments.0"))):Le.replaceWith(fr)})}let Ve;return(ce.length>0||!V)&&(Ve=Ne(se,oe),(V||oe&&Ie(se))&&(ce.forEach(Ke=>{const Le=Ke.isJSX()?p(Ve):c(Ve);Le.loc=Ke.node.loc,Ke.replaceWith(Le)}),V||(Ve=null))),{thisBinding:Ve,fnPath:G}}function de(G){return d.includes(G)}function Ce(G){if(G.parentPath.isAssignmentExpression()&&G.parentPath.node.operator!=="="){const E=G.parentPath,j=E.node.operator.slice(0,-1),z=E.node.right,se=de(j);if(G.node.computed){const oe=G.scope.generateDeclaredUidIdentifier("tmp"),ce=G.node.object,Pe=G.node.property;E.get("left").replaceWith(m(ce,i("=",oe,Pe),!0)),E.get("right").replaceWith(V(se?"=":j,m(ce,c(oe.name),!0),z))}else{const oe=G.node.object,ce=G.node.property;E.get("left").replaceWith(m(oe,ce)),E.get("right").replaceWith(V(se?"=":j,m(oe,c(ce.name)),z))}return se?E.replaceWith(h(j,E.node.left,E.node.right)):E.node.operator="=",[E.get("left"),E.get("right").get("left")]}else if(G.parentPath.isUpdateExpression()){const E=G.parentPath,j=G.scope.generateDeclaredUidIdentifier("tmp"),z=G.node.computed?G.scope.generateDeclaredUidIdentifier("prop"):null,se=[i("=",j,m(G.node.object,z?i("=",z,G.node.property):G.node.property,G.node.computed)),i("=",m(G.node.object,z?c(z.name):G.node.property,G.node.computed),s(G.parentPath.node.operator[0],c(j.name),g(1)))];G.parentPath.node.prefix||se.push(c(j.name)),E.replaceWith(C(se));const oe=E.get("expressions.0.right"),ce=E.get("expressions.1.left");return[oe,ce]}return[G];function V(E,j,z){return E==="="?i("=",j,z):s(E,j,z)}}function Ie(G){return G.isClassMethod()&&!!G.parentPath.parentPath.node.superClass}const Te=(0,r.environmentVisitor)({CallExpression(G,{supers:V,thisBinding:E}){G.get("callee").isSuper()&&(V.has(G.node)||(V.add(G.node),G.replaceWithMultiple([G.node,i("=",c(E),c("this"))])))}});function Ne(G,V){return Oe(G,"this",E=>{if(!V||!Ie(G))return I();G.traverse(Te,{supers:new WeakSet,thisBinding:E})})}function Je(G){return Oe(G,"supercall",()=>{const V=G.scope.generateUidIdentifier("args");return n([b(V)],o(P(),[$(c(V.name))]))})}function Fe(G,V,E){return Oe(G,`superprop_${V?"set":"get"}:${E||""}`,()=>{const z=[];let se;if(E)se=m(P(),c(E));else{const oe=G.scope.generateUidIdentifier("prop");z.unshift(oe),se=m(P(),c(oe.name),!0)}if(V){const oe=G.scope.generateUidIdentifier("value");z.push(oe),se=i("=",se,c(oe.name))}return n(z,se)})}function Oe(G,V,E){const j="binding:"+V;let z=G.getData(j);if(!z){const se=G.scope.generateUidIdentifier(V);z=se.name,G.setData(j,z),G.scope.push({id:se,init:E(z)})}return z}const ge=(0,r.environmentVisitor)({ThisExpression(G,{thisPaths:V}){V.push(G)},JSXIdentifier(G,{thisPaths:V}){G.node.name==="this"&&(!G.parentPath.isJSXMemberExpression({object:G.node})&&!G.parentPath.isJSXOpeningElement({name:G.node})||V.push(G))},CallExpression(G,{superCalls:V}){G.get("callee").isSuper()&&V.push(G)},MemberExpression(G,{superProps:V}){G.get("object").isSuper()&&V.push(G)},Identifier(G,{argumentsPaths:V}){if(!G.isReferencedIdentifier({name:"arguments"}))return;let E=G.scope;do{if(E.hasOwnBinding("arguments")){E.rename("arguments");return}if(E.path.isFunction()&&!E.path.isArrowFunctionExpression())break}while(E=E.parent);V.push(G)},MetaProperty(G,{newTargetPaths:V}){G.get("meta").isIdentifier({name:"new"})&&G.get("property").isIdentifier({name:"target"})&&V.push(G)}});function Ae(G){const V=[],E=[],j=[],z=[],se=[];return G.traverse(ge,{thisPaths:V,argumentsPaths:E,newTargetPaths:j,superProps:z,superCalls:se}),{thisPaths:V,argumentsPaths:E,newTargetPaths:j,superProps:z,superCalls:se}}function st(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const G=this.get("declaration");if(this.isExportDefaultDeclaration()){const z=G.isFunctionDeclaration()||G.isClassDeclaration(),se=G.isFunctionExpression()||G.isClassExpression(),oe=G.isScope()?G.scope.parent:G.scope;let ce=G.node.id,Pe=!1;ce?se&&oe.hasBinding(ce.name)&&(Pe=!0,ce=oe.generateUidIdentifier(ce.name)):(Pe=!0,ce=oe.generateUidIdentifier("default"),(z||se)&&(G.node.id=H(ce)));const Ue=z?G.node:T("var",[_(H(ce),G.node)]),ue=R(null,[Q(H(ce),c("default"))]);return this.insertAfter(ue),this.replaceWith(Ue),Pe&&oe.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const V=G.getOuterBindingIdentifiers(),E=Object.keys(V).map(z=>Q(c(z),c(z))),j=R(null,E);return this.insertAfter(j),this.replaceWith(G.node),this}const fe={"ReferencedIdentifier|BindingIdentifier"(G,V){G.node.name===V.name&&(V.needsRename=!0,G.stop())},Scope(G,V){G.scope.hasOwnBinding(V.name)&&G.skip()}};function $e(G){if(this.node.id)return this;const V=N(this.node,this.parent);if(V==null)return this;let{name:E}=V;if(!G&&/[\uD800-\uDFFF]/.test(E)||E.startsWith("get ")||E.startsWith("set "))return null;E=S(E.replace(/[/ ]/g,"_"));const j=c(E);ne(j,V.originalNode);const z={needsRename:!1,name:E},{scope:se}=this,oe=se.getOwnBinding(E);if(oe?oe.kind==="param"&&(z.needsRename=!0):(se.parent.hasBinding(E)||se.hasGlobal(E))&&this.traverse(fe,z),!z.needsRename)return this.node.id=j,se.getProgramParent().references[j.name]=!0,this;if(se.hasBinding(j.name)&&!se.hasGlobal(j.name))return se.rename(j.name),this.node.id=j,se.getProgramParent().references[j.name]=!0,this;if(!A(this.node))return null;const ce=se.generateUidIdentifier(j.name),Pe=[];for(let ue=0,Me=Z(this.node);ue<Me;ue++)Pe.push(se.generateUidIdentifier("x"));const Ue=t.default.expression.ast`
149
+ (function (${ce}) {
150
+ function ${j}(${Pe}) {
151
+ return ${H(ce)}.apply(this, arguments);
152
+ }
153
+
154
+ ${H(j)}.toString = function () {
155
+ return ${H(ce)}.toString();
156
+ }
157
+
158
+ return ${H(j)};
159
+ })(${k(this.node)})
160
+ `;return this.replaceWith(Ue)[0].get("arguments.0")}function Z(G){const V=G.params.findIndex(E=>B(E)||x(E));return V===-1?G.params.length:V}return vr}var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et._guessExecutionStatusRelativeTo=RG;Et._resolve=ag;Et.canHaveVariableDeclarationOrExpression=_G;Et.canSwapBetweenExpressionAndStatement=wG;Et.equals=xG;Et.getSource=BG;Et.has=sg;Et.is=void 0;Et.isCompletionRecord=IG;Et.isConstantExpression=UG;Et.isInStrictMode=VG;Et.isNodeType=FG;Et.isStatementOrBlock=OG;Et.isStatic=CG;Et.isnt=PG;Et.matchesPattern=AG;Et.referencesImport=NG;Et.resolve=$G;Et.willIMaybeExecuteBefore=kG;var mG=He();const{STATEMENT_OR_BLOCK_KEYS:yG,VISITOR_KEYS:DG,isBlockStatement:ig,isExpression:gG,isIdentifier:EG,isLiteral:bG,isStringLiteral:TG,isType:SG,matchesPattern:vG}=mG;function AG(e,t){return vG(this.node,e,t)}function sg(e){var t;const r=(t=this.node)==null?void 0:t[e];return r&&Array.isArray(r)?!!r.length:!!r}function CG(){return this.scope.isStatic(this.node)}Et.is=sg;function PG(e){return!this.has(e)}function xG(e,t){return this.node[e]===t}function FG(e){return SG(this.type,e)}function _G(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function wG(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?ig(e):this.isBlockStatement()?gG(e):!1}function IG(e){let t=this,r=!0;do{const{type:n,container:i}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function OG(){return this.parentPath.isLabeledStatement()||ig(this.container)?!1:yG.includes(this.key)}function NG(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?TG(this.node.property,{value:t}):this.node.property.name===t)){const s=this.get("object");return s.isReferencedIdentifier()&&s.referencesImport(e,"*")}return!1}const r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;const n=r.path,i=n.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value===e){if(!t)return!0}else return!1;return!!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&EG(n.node.imported,{name:t}))}function BG(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function kG(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function pm(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function LG(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function hm(e,t){for(let r=0;r<t;r++){const n=e[r];if(LG(n.parent.type,n.parentKey))return!0}return!1}const dm=Symbol();function RG(e){return ec(this,e,new Map)}function ec(e,t,r){const n={this:pm(e),target:pm(t)};if(n.target.node!==n.this.node)return jG(e,n.target,r);const i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let s;const a={target:0,this:0};for(;!s&&a.this<i.this.length;){const c=i.this[a.this];a.target=i.target.indexOf(c),a.target>=0?s=c:a.this++}if(!s)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(hm(i.this,a.this-1)||hm(i.target,a.target-1))return"unknown";const o={this:i.this[a.this-1],target:i.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";const u=DG[s.type],l={this:u.indexOf(o.this.parentKey),target:u.indexOf(o.target.parentKey)};return l.target>l.this?"before":"after"}function MG(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return ec(e,t,r)==="before"?"before":"unknown";const n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";const i=n.referencePaths;let s;for(const a of i){if(!!a.find(l=>l.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";const u=ec(e,a,r);if(s&&s!==u)return"unknown";s=u}return s}function jG(e,t,r){let n=r.get(e.node),i;if(!n)r.set(e.node,n=new Map);else if(i=n.get(t.node))return i===dm?"unknown":i;n.set(t.node,dm);const s=MG(e,t,r);return n.set(t.node,s),s}function $G(e,t){return ag.call(this,e,t)||this}function ag(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const n=this.scope.getBinding(this.node.name);if(!n||!n.constant||n.kind==="module")return;if(n.path!==this){const i=n.path.resolve(e,t);return this.find(s=>s.node===i.node)?void 0:i}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const n=this.toComputedKey();if(!bG(n))return;const i=n.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const a=s.get("properties");for(const o of a){if(!o.isProperty())continue;const u=o.get("key");let l=o.isnt("computed")&&u.isIdentifier({name:i});if(l=l||u.isLiteral({value:i}),l)return o.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+i)){const o=s.get("elements")[i];if(o)return o.resolve(e,t)}}}}function UG(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function VG(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let n;if(r.isFunction())n=r.node.body;else if(r.isProgram())n=r.node;else return!1;for(const i of n.directives)if(i.value.value==="use strict")return!0})}var Ct={},mm;function qG(){if(mm)return Ct;mm=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct._getKey=I,Ct._getPattern=k,Ct.get=P,Ct.getAllNextSiblings=$,Ct.getAllPrevSiblings=w,Ct.getAssignmentIdentifiers=F,Ct.getBindingIdentifierPaths=B,Ct.getBindingIdentifiers=S,Ct.getCompletionRecords=y,Ct.getNextSibling=C,Ct.getOpposite=f,Ct.getOuterBindingIdentifierPaths=x,Ct.getOuterBindingIdentifiers=A,Ct.getPrevSibling=O,Ct.getSibling=b;var e=yi(),t=He();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:i,numericLiteral:s,unaryExpression:a}=t,o=0,u=1;function l(N){return{type:o,path:N}}function c(N){return{type:u,path:N}}function f(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function p(N,H,T){return N&&H.push(...g(N,T)),H}function h(N,H,T){let _=[];for(let R=0;R<N.length;R++){const Q=N[R],ne=g(Q,T),X=[],ae=[];for(const ie of ne)ie.type===o&&X.push(ie),ie.type===u&&ae.push(ie);X.length&&(_=X),H.push(...ae)}return H.push(..._),H}function d(N){N.forEach(H=>{H.type=u})}function m(N,H){N.forEach(T=>{T.path.isBreakStatement({label:null})&&(H?T.path.replaceWith(a("void",s(0))):T.path.remove())})}function D(N,H){const T=[];if(H.canHaveBreak){let _=[];for(let R=0;R<N.length;R++){const Q=N[R],ne=Object.assign({},H,{inCaseClause:!1});Q.isBlockStatement()&&(H.inCaseClause||H.shouldPopulateBreak)?ne.shouldPopulateBreak=!0:ne.shouldPopulateBreak=!1;const X=g(Q,ne);if(X.length>0&&X.every(ae=>ae.type===u)){_.length>0&&X.every(ae=>ae.path.isBreakStatement({label:null}))?(d(_),T.push(..._),_.some(ae=>ae.path.isDeclaration())&&(T.push(...X),m(X,!0)),m(X,!1)):(T.push(...X),H.shouldPopulateBreak||m(X,!0));break}if(R===N.length-1)T.push(...X);else{_=[];for(let ae=0;ae<X.length;ae++){const ie=X[ae];ie.type===u&&T.push(ie),ie.type===o&&_.push(ie)}}}}else if(N.length)for(let _=N.length-1;_>=0;_--){const R=g(N[_],H);if(R.length>1||R.length===1&&!R[0].path.isVariableDeclaration()){T.push(...R);break}}return T}function g(N,H){let T=[];if(N.isIfStatement())T=p(N.get("consequent"),T,H),T=p(N.get("alternate"),T,H);else{if(N.isDoExpression()||N.isFor()||N.isWhile()||N.isLabeledStatement())return p(N.get("body"),T,H);if(N.isProgram()||N.isBlockStatement())return D(N.get("body"),H);if(N.isFunction())return g(N.get("body"),H);if(N.isTryStatement())T=p(N.get("block"),T,H),T=p(N.get("handler"),T,H);else{if(N.isCatchClause())return p(N.get("body"),T,H);if(N.isSwitchStatement())return h(N.get("cases"),T,H);if(N.isSwitchCase())return D(N.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});N.isBreakStatement()?T.push(c(N)):T.push(l(N))}}return T}function y(){return g(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(H=>H.path)}function b(N){return e.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:N}).setContext(this.context)}function O(){return this.getSibling(this.key-1)}function C(){return this.getSibling(this.key+1)}function $(){let N=this.key,H=this.getSibling(++N);const T=[];for(;H.node;)T.push(H),H=this.getSibling(++N);return T}function w(){let N=this.key,H=this.getSibling(--N);const T=[];for(;H.node;)T.push(H),H=this.getSibling(--N);return T}function P(N,H=!0){H===!0&&(H=this.context);const T=N.split(".");return T.length===1?I.call(this,N,H):k.call(this,T,H)}function I(N,H){const T=this.node,_=T[N];return Array.isArray(_)?_.map((R,Q)=>e.default.get({listKey:N,parentPath:this,parent:T,container:_,key:Q}).setContext(H)):e.default.get({parentPath:this,parent:T,container:T,key:N}).setContext(H)}function k(N,H){let T=this;for(const _ of N)_==="."?T=T.parentPath:Array.isArray(T)?T=T[_]:T=T.get(_,H);return T}function F(){return r(this.node)}function S(N){return n(this.node,N)}function A(N){return i(this.node,N)}function B(N=!1,H=!1){const _=[this],R=Object.create(null);for(;_.length;){const Q=_.shift();if(!Q||!Q.node)continue;const ne=n.keys[Q.node.type];if(Q.isIdentifier()){N?(R[Q.node.name]=R[Q.node.name]||[]).push(Q):R[Q.node.name]=Q;continue}if(Q.isExportDeclaration()){const X=Q.get("declaration");X.isDeclaration()&&_.push(X);continue}if(H){if(Q.isFunctionDeclaration()){_.push(Q.get("id"));continue}if(Q.isFunctionExpression())continue}if(ne)for(let X=0;X<ne.length;X++){const ae=ne[X],ie=Q.get(ae);Array.isArray(ie)?_.push(...ie):ie.node&&_.push(ie)}}return R}function x(N=!1){return this.getBindingIdentifierPaths(N,!0)}return Ct}var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.addComment=YG;Qs.addComments=XG;Qs.shareCommentsWithSiblings=GG;var KG=He();const{addComment:WG,addComments:HG}=KG;function GG(){if(typeof this.key=="string")return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const n=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=!!n.node,a=!!i.node;s&&(r&&n.addComments("trailing",ym(r,n.node.trailingComments)),t&&!a&&n.addComments("trailing",t)),a&&(t&&i.addComments("leading",ym(t,i.node.leadingComments)),r&&!s&&i.addComments("leading",r))}function ym(e,t){if(!(t!=null&&t.length))return e;const r=new Set(t);return e.filter(n=>!r.has(n))}function YG(e,t,r){WG(this.node,e,t,r)}function XG(e,t){HG(this.node,e,t)}var Dm;function yi(){if(Dm)return pr;Dm=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=pr.SHOULD_STOP=pr.SHOULD_SKIP=pr.REMOVED=void 0;var e=Xe,t=WI,r=pu(),n=ED(),i=He(),s=i,a=_t,o=Qo,u=ur,l=Mn,c=rg(),f=uu,p=dG(),h=Et,d=Zs(),m=Lf(),D=tg(),g=qG(),y=Qs,b=St;const{validate:O}=i,C=t("babel");pr.REMOVED=1,pr.SHOULD_STOP=2,pr.SHOULD_SKIP=4;const $=pr.default=class og{constructor(I,k){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=k,this.hub=I,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(I){I?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(I){I?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(I){I?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:I,parentPath:k,parent:F,container:S,listKey:A,key:B}){if(!I&&k&&(I=k.hub),!F)throw new Error("To get a node path the parent needs to exist");const x=S[B],N=a.getOrCreateCachedPaths(I,F);let H=N.get(x);return H||(H=new og(I,F),x&&N.set(x,H)),H.setup(k,S,A,B),H}getScope(I){return this.isScope()?new n.default(this):I}setData(I,k){return this.data==null&&(this.data=Object.create(null)),this.data[I]=k}getData(I,k){this.data==null&&(this.data=Object.create(null));let F=this.data[I];return F===void 0&&k!==void 0&&(F=this.data[I]=k),F}hasNode(){return this.node!=null}buildCodeFrameError(I,k=SyntaxError){return this.hub.buildError(this.node,I,k)}traverse(I,k){(0,r.default)(this.node,I,this.scope,k,this)}set(I,k){O(this.node,I,k),this.node[I]=k}getPathLocation(){const I=[];let k=this;do{let F=k.key;k.inList&&(F=`${k.listKey}[${F}]`),I.unshift(F)}while(k=k.parentPath);return I.join(".")}debug(I){C.enabled&&C(`${this.getPathLocation()} ${this.type}: ${I}`)}toString(){return(0,o.default)(this.node).code}get inList(){return!!this.listKey}set inList(I){I||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},w={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:l.getTypeAnnotation,isBaseType:l.isBaseType,couldBeBaseType:l.couldBeBaseType,baseTypeStrictlyMatches:l.baseTypeStrictlyMatches,isGenericType:l.isGenericType,replaceWithMultiple:c.replaceWithMultiple,replaceWithSourceString:c.replaceWithSourceString,replaceWith:c.replaceWith,replaceExpressionWithStatements:c.replaceExpressionWithStatements,replaceInline:c.replaceInline,evaluateTruthy:f.evaluateTruthy,evaluate:f.evaluate,toComputedKey:p.toComputedKey,ensureBlock:p.ensureBlock,unwrapFunctionEnvironment:p.unwrapFunctionEnvironment,arrowFunctionToExpression:p.arrowFunctionToExpression,splitExportDeclaration:p.splitExportDeclaration,ensureFunctionName:p.ensureFunctionName,matchesPattern:h.matchesPattern,has:h.has,isStatic:h.isStatic,is:h.is,isnt:h.isnt,equals:h.equals,isNodeType:h.isNodeType,canHaveVariableDeclarationOrExpression:h.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:h.canSwapBetweenExpressionAndStatement,isCompletionRecord:h.isCompletionRecord,isStatementOrBlock:h.isStatementOrBlock,referencesImport:h.referencesImport,getSource:h.getSource,willIMaybeExecuteBefore:h.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:h._guessExecutionStatusRelativeTo,resolve:h.resolve,isConstantExpression:h.isConstantExpression,isInStrictMode:h.isInStrictMode,call:d.call,isDenylisted:d.isDenylisted,isBlacklisted:d.isBlacklisted,visit:d.visit,skip:d.skip,skipKey:d.skipKey,stop:d.stop,setScope:d.setScope,setContext:d.setContext,resync:d.resync,popContext:d.popContext,pushContext:d.pushContext,setup:d.setup,setKey:d.setKey,requeue:d.requeue,requeueComputedKeyAndDecorators:d.requeueComputedKeyAndDecorators,remove:m.remove,insertBefore:D.insertBefore,insertAfter:D.insertAfter,updateSiblingKeys:D.updateSiblingKeys,unshiftContainer:D.unshiftContainer,pushContainer:D.pushContainer,hoist:D.hoist,getOpposite:g.getOpposite,getCompletionRecords:g.getCompletionRecords,getSibling:g.getSibling,getPrevSibling:g.getPrevSibling,getNextSibling:g.getNextSibling,getAllNextSiblings:g.getAllNextSiblings,getAllPrevSiblings:g.getAllPrevSiblings,get:g.get,getAssignmentIdentifiers:g.getAssignmentIdentifiers,getBindingIdentifiers:g.getBindingIdentifiers,getOuterBindingIdentifiers:g.getOuterBindingIdentifiers,getBindingIdentifierPaths:g.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:g.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:y.shareCommentsWithSiblings,addComment:y.addComment,addComments:y.addComments};Object.assign($.prototype,w),$.prototype.arrowFunctionToShadowed=p.arrowFunctionToShadowed,$.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,$.prototype._guessExecutionStatusRelativeToDifferentFunctions=h._guessExecutionStatusRelativeTo,Object.assign($.prototype,{_getTypeAnnotation:l._getTypeAnnotation,_replaceWith:c._replaceWith,_resolve:h._resolve,_call:d._call,_resyncParent:d._resyncParent,_resyncKey:d._resyncKey,_resyncList:d._resyncList,_resyncRemoved:d._resyncRemoved,_getQueueContexts:d._getQueueContexts,_removeFromScope:m._removeFromScope,_callRemovalHooks:m._callRemovalHooks,_remove:m._remove,_markRemoved:m._markRemoved,_assertUnremoved:m._assertUnremoved,_containerInsert:D._containerInsert,_containerInsertBefore:D._containerInsertBefore,_containerInsertAfter:D._containerInsertAfter,_verifyNodeList:D._verifyNodeList,_getKey:g._getKey,_getPattern:g._getPattern});for(const P of s.TYPES){const I=`is${P}`,k=s[I];$.prototype[I]=function(F){return k(this.node,F)},$.prototype[`assert${P}`]=function(F){if(!k(this.node,F))throw new TypeError(`Expected node path of type ${P}`)}}Object.assign($.prototype,b);for(const P of Object.keys(e))P[0]!=="_"&&(s.TYPES.includes(P)||s.TYPES.push(P));return pr}var gm;function JG(){if(gm)return Zi;gm=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=void 0;var e=yi(),t=He();const{VISITOR_KEYS:r}=t;class n{constructor(s,a,o,u){this.queue=null,this.priorityQueue=null,this.parentPath=u,this.scope=s,this.state=o,this.opts=a}shouldVisit(s){const a=this.opts;if(a.enter||a.exit||a[s.type])return!0;const o=r[s.type];if(!(o!=null&&o.length))return!1;for(const u of o)if(s[u])return!0;return!1}create(s,a,o,u){return e.default.get({parentPath:this.parentPath,parent:s,container:a,key:o,listKey:u})}maybeQueue(s,a){this.queue&&(a?this.queue.push(s):this.priorityQueue.push(s))}visitMultiple(s,a,o){if(s.length===0)return!1;const u=[];for(let l=0;l<s.length;l++){const c=s[l];c&&this.shouldVisit(c)&&u.push(this.create(a,s,l,o))}return this.visitQueue(u)}visitSingle(s,a){return this.shouldVisit(s[a])?this.visitQueue([this.create(s,s,a)]):!1}visitQueue(s){this.queue=s,this.priorityQueue=[];const a=new WeakSet;let o=!1,u=0;for(;u<s.length;){const l=s[u];if(u++,l.resync(),(l.contexts.length===0||l.contexts[l.contexts.length-1]!==this)&&l.pushContext(this),l.key===null)continue;const{node:c}=l;if(!a.has(c)){if(c&&a.add(c),l.visit()){o=!0;break}if(this.priorityQueue.length&&(o=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=s,o))break}}for(let l=0;l<u;l++)s[l].popContext();return this.queue=null,o}visit(s,a){const o=s[a];return o?Array.isArray(o)?this.visitMultiple(o,s,a):this.visitSingle(s,a):!1}}return Zi.default=n,Zi}var Em;function Uf(){if(Em)return ha;Em=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.traverseNode=n;var e=JG(),t=He();const{VISITOR_KEYS:r}=t;function n(i,s,a,o,u,l,c){const f=r[i.type];if(!f)return!1;const p=new e.default(a,s,o,u);if(c)return l!=null&&l[u.parentKey]?!1:p.visitQueue([u]);for(const h of f)if(!(l!=null&&l[h])&&p.visit(i,h))return!0;return!1}return ha}var bm;function Zs(){if(bm)return ht;bm=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht._call=s,ht._getQueueContexts=I,ht._resyncKey=D,ht._resyncList=g,ht._resyncParent=m,ht._resyncRemoved=y,ht.call=i,ht.isBlacklisted=ht.isDenylisted=a,ht.popContext=b,ht.pushContext=O,ht.requeue=w,ht.requeueComputedKeyAndDecorators=P,ht.resync=d,ht.setContext=h,ht.setKey=$,ht.setScope=p,ht.setup=C,ht.skip=l,ht.skipKey=c,ht.stop=f,ht.visit=u;var e=Uf(),t=yi(),r=Lf(),n=He();function i(k){const F=this.opts;if(this.debug(k),this.node&&s.call(this,F[k]))return!0;if(this.node){var S;return s.call(this,(S=F[this.node.type])==null?void 0:S[k])}return!1}function s(k){if(!k)return!1;for(const F of k){if(!F)continue;const S=this.node;if(!S)return!0;const A=F.call(this.state,this,this.state);if(A&&typeof A=="object"&&typeof A.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(A)throw new Error(`Unexpected return value from visitor method ${F}`);if(this.node!==S||this._traverseFlags>0)return!0}return!1}function a(){var k;const F=(k=this.opts.denylist)!=null?k:this.opts.blacklist;return F&&F.indexOf(this.node.type)>-1}function o(k,F){k.context!==F&&(k.context=F,k.state=F.state,k.opts=F.opts)}function u(){var k,F;if(!this.node||this.isDenylisted()||(k=(F=this.opts).shouldSkip)!=null&&k.call(F,this))return!1;const S=this.context;return this.shouldSkip||this.call("enter")?(this.debug("Skip..."),this.shouldStop):(o(this,S),this.debug("Recursing into..."),this.shouldStop=(0,e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),o(this,S),this.call("exit"),this.shouldStop)}function l(){this.shouldSkip=!0}function c(k){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[k]=!0}function f(){this._traverseFlags|=t.SHOULD_SKIP|t.SHOULD_STOP}function p(){var k,F;if((k=this.opts)!=null&&k.noScope)return;let S=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&S.isMethod()||this.key==="discriminant"&&S.isSwitchStatement())&&(S=S.parentPath);let A;for(;S&&!A;){var B;if((B=S.opts)!=null&&B.noScope)return;A=S.scope,S=S.parentPath}this.scope=this.getScope(A),(F=this.scope)==null||F.init()}function h(k){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,k&&(this.context=k,this.state=k.state,this.opts=k.opts),this.setScope(),this}function d(){this.removed||(m.call(this),g.call(this),D.call(this))}function m(){this.parentPath&&(this.parent=this.parentPath.node)}function D(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let k=0;k<this.container.length;k++)if(this.container[k]===this.node){this.setKey(k);return}}else for(const k of Object.keys(this.container))if(this.container[k]===this.node){this.setKey(k);return}this.key=null}}function g(){if(!this.parent||!this.inList)return;const k=this.parent[this.listKey];this.container!==k&&(this.container=k||null)}function y(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&r._markRemoved.call(this)}function b(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function O(k){this.contexts.push(k),this.setContext(k)}function C(k,F,S,A){this.listKey=S,this.container=F,this.parentPath=k||this.parentPath,this.setKey(A)}function $(k){var F;this.key=k,this.node=this.container[this.key],this.type=(F=this.node)==null?void 0:F.type}function w(k=this){if(k.removed)return;const F=this.contexts;for(const S of F)S.maybeQueue(k)}function P(){const{context:k,node:F}=this;if(!n.isPrivate(F)&&F.computed&&k.maybeQueue(this.get("key")),F.decorators)for(const S of this.get("decorators"))k.maybeQueue(S)}function I(){let k=this,F=this.contexts;for(;!F.length&&(k=k.parentPath,!!k);)F=k.contexts;return F}return ht}var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.default=void 0;class zG{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,n=TypeError){return new n(r)}}fu.default=zG;var Tm;function pu(){return Tm||(Tm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Hub",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NodePath",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.default}}),e.visitors=e.default=void 0,Zs();var t=Jo();e.visitors=t;var r=He(),n=_t,i=Uf(),s=yi(),a=ED(),o=fu;const{VISITOR_KEYS:u,removeProperties:l,traverseFast:c}=r;function f(h,d={},m,D,g,y){if(h){if(!d.noScope&&!m&&h.type!=="Program"&&h.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${h.type} node without passing scope and parentPath.`);if(!g&&y)throw new Error("visitSelf can only be used when providing a NodePath.");u[h.type]&&(t.explode(d),(0,i.traverseNode)(h,d,m,D,g,null,y))}}e.default=f,f.visitors=t,f.verify=t.verify,f.explode=t.explode,f.cheap=function(h,d){c(h,d)},f.node=function(h,d,m,D,g,y){(0,i.traverseNode)(h,d,m,D,g,y)},f.clearNode=function(h,d){l(h,d)},f.removeProperties=function(h,d){return c(h,f.clearNode,d),h};function p(h,d){h.node.type===d.type&&(d.has=!0,h.stop())}f.hasType=function(h,d,m){if(m!=null&&m.includes(h.type))return!1;if(h.type===d)return!0;const D={has:!1,type:d};return f(h,{noScope:!0,denylist:m,enter:p},null,D),D.has},f.cache=n}(Mu)),Mu}var QG=pu();const ZG=ST(QG);var At=He();const eY=vT();function us(...e){}const Fs=["key","property","id"];function Ii(e,t,r,n=!1){var a;let i=n;!i&&e===r&&(i=!0);const s=(a=e==null?void 0:e.getOwnBinding)==null?void 0:a.call(e,t);return s?{isOverBound:i,binding:s,name:t}:e!=null&&e.parent?Ii(e.parent,t,r,i):{isOverBound:i,binding:null,name:t}}function tY(e=[]){return e.reduce((t,r)=>(t.some(n=>At.isNodesEquivalent(n.node,r.node))||t.push(r),t),[])}function ug(e=[]){const{arr:t}=e.reduce((r,n)=>(r.obj[n.name]||(r.obj[n.name]=!0,r.arr.push(n)),r),{obj:{},arr:[]});return t}function lg(e,t){return e===t||(e==null?void 0:e.parent)&&lg(e.parent,t)}function tc(e=[],t,r=[],n){ug(e).forEach(s=>{var u,l;if(!s.binding)return;if(s.binding.kind==="module")return r.push(s.binding.path.parentPath);let a;if(s.binding.kind==="let"||s.binding.kind==="var"||s.binding.kind==="const")a=s.binding.path.parentPath.get("declarations")[0].get("init"),r.push(s.binding.path.parentPath);else if(s.binding.kind==="hoisted")a=s.binding.path.get("body"),r.push(s.binding.path);else throw new Error("unknown binding kind");const o=[];a==null||a.traverse({Identifier(c){if(Fs.includes(c.key)||c.listKey==="params")return;const f=Ii(c.scope,c.node.name,a.scope);f.isOverBound&&o.push({...f,identifierPath:c})}}),tc(o,t,r,n),(l=(u=s.binding)==null?void 0:u.constantViolations)==null||l.forEach(c=>{if(!lg(t,c.scope))throw new Error(`${n} 静态依赖不能在作用域链之外被修改,: ${c.node.loc.start.line}:${c.node.loc.start.column+1} ${c.toString()}`);r.push(c);const f=c.get("right"),p=[];f==null||f.traverse({Identifier(h){if(Fs.includes(h.key)||h.listKey==="params")return;const d=Ii(h.scope,h.node.name,f.scope);d.isOverBound&&p.push({...d,identifierPath:h})}}),tc(p,t,r,n)})})}function rY({code:e,alias:t="s",moduleName:r="soonjs/auto/client",callRules:n=[]}){const i=new RegExp(`^${t}\\.`),s=jI(e,{plugins:["typescript"],sourceType:"module"}),a={calls:[]};return ZG(s,{CallExpression(o){var u,l,c,f,p,h,d,m,D;if(o.node.callee.type==="MemberExpression"&&i.test(o.get("callee").toString())&&(!o.scope.hasBinding(t)||((c=(l=(u=o.scope.getBinding(t))==null?void 0:u.path)==null?void 0:l.parent)==null?void 0:c.type)==="ImportDeclaration"&&((d=(h=(p=(f=o.scope.getBinding(t))==null?void 0:f.path)==null?void 0:p.parent)==null?void 0:h.source)==null?void 0:d.value)===r)){const g=o.get("callee").toString().replace(i,"");o.skip(),o.stateInfo={callName:g,bindings:[],namedParams:[],statics:{},deps:[]};const y=[],b=n.find(C=>C.callName===g||C.callNameTester&&C.callNameTester(g));if(b){if(b!=null&&b.isPureClient)return;(g===b.callName||b.callNameTester&&b.callNameTester(g))&&((m=b.staticParams)==null||m.forEach(C=>{var w,P,I,k,F;const $=(F=(k=(I=(P=(w=o.get("arguments"))==null?void 0:w[0])==null?void 0:P.get)==null?void 0:I.call(P,"properties"))==null?void 0:k.find)==null?void 0:F.call(k,S=>S.node.key.name===C);if($){const S=[];$.traverse({Identifier(A){if(us("[staticParams]",A.node.name,t,A.node.name===t),Fs.includes(A.key)||A.listKey==="params"||A.node.name===t)return;y.push($);const B=Ii(A.scope,A.node.name,o.scope);B.isOverBound&&S.push({...B,identifierPath:A})}}),o.stateInfo.statics[C]=$,tc(S,o.scope,o.stateInfo.deps,C)}}),(D=b.namedParams)==null||D.forEach(C=>{var w,P,I,k,F,S,A;const $=(A=(S=(F=(k=(I=(P=(w=o.get("arguments"))==null?void 0:w[0])==null?void 0:P.get)==null?void 0:I.call(P,"properties"))==null?void 0:k.find)==null?void 0:F.call(k,B=>B.node.key.name===C))==null?void 0:S.get)==null?void 0:A.call(S,"value");$&&(o.stateInfo.namedParams.push({key:C,path:$}),y.push($))}))}let O=0;o.traverse({CallExpression(C){var $,w,P,I,k,F,S;y.some(A=>At.isNodesEquivalent(C.node,A.node)||C.findParent(B=>At.isNodesEquivalent(B.node,A.node)))||C.node.callee.type==="MemberExpression"&&i.test(C.get("callee").toString())&&(!C.scope.hasBinding(t)||((P=(w=($=C.scope.getBinding(t))==null?void 0:$.path)==null?void 0:w.parent)==null?void 0:P.type)==="ImportDeclaration"&&((S=(F=(k=(I=C.scope.getBinding(t))==null?void 0:I.path)==null?void 0:k.parent)==null?void 0:F.source)==null?void 0:S.value)===r)||(us("[CallExpression]",C.toString(),C.node),C.get("callee").traverse({Identifier(A){if(Fs.includes(A.key)||A.listKey==="params")return;us("[CallExpression Identifier]",A.node.name);const B=Ii(A.scope,A.node.name,o.scope);if(B.isOverBound&&B.binding)throw new Error(`不能在 server 端调用本地方法 error: ${C.node.loc.start.line}:${C.node.loc.start.column+1} ${C.toString()}`)}}))},Identifier(C){if(O++===0||Fs.includes(C.key)||C.listKey==="params"||C.node.name===t||y.some(w=>At.isNodesEquivalent(C.node,w.node)||C.findParent(P=>At.isNodesEquivalent(P.node,w.node))))return;us("[Identifier]",C.node.name,C.key);const $=Ii(C.scope,C.node.name,o.scope);if($.isOverBound&&$.binding&&(o.stateInfo.bindings.push({...$,identifierPath:C}),C.key==="callee"))throw new Error(`不能在 server 端调用本地方法 error: ${C.parentPath.node.loc.start.line}:${C.parentPath.node.loc.start.column+1} ${C.parentPath.toString()}`);o.stateInfo.bindings=ug(o.stateInfo.bindings)}}),us("[binding]",o.stateInfo.bindings.map(C=>C.name)),o.stateInfo.deps=tY(o.stateInfo.deps),a.calls.push(o)}}}),a}function nY({filename:e,code:t,alias:r="s",moduleName:n="soonjs/auto/client"}){const i=rY({code:t,alias:r,moduleName:n,callRules:[{callName:"api",isPureClient:!0},{callName:"soonClientConfig",isPureClient:!0},{callName:"useApi",staticParams:["bodySchema","meta"],namedParams:["body"]}]});let s=t;const a=[];return i.calls.reverse().forEach((o,u)=>{var g,y,b,O;const l=o.stateInfo,c=AT("md5").update(`${e}_${l.callName}_${u}`).digest("base64url"),f=l.namedParams.map(C=>At.objectProperty(At.identifier(C.key),C.path.node)),p=l.bindings.map(C=>At.objectProperty(At.identifier(C.name),At.identifier(C.name))),h=At.callExpression(At.memberExpression(At.identifier(r),At.identifier("_auto")),[At.stringLiteral("_auto/"+c),At.objectExpression([...f,At.objectProperty(At.identifier("___auto_state___"),At.objectExpression(p))])]);s=s.substring(0,o.node.start)+((g=RK(h,{concise:!0}))==null?void 0:g.code)+"".padEnd(o.node.loc.end.line-o.node.loc.start.line,`
161
+ `)+s.substring(o.node.end);let d;const m=l.namedParams.map(C=>`${C.key}: ___${C.key+"_"+eY()}___`).join(", "),D=Object.keys(l.statics).reduce((C,$)=>{var w,P,I;return C[$]=(I=(P=(w=l.statics[$])==null?void 0:w.get("value"))==null?void 0:P.toString)==null?void 0:I.call(P),C},{});if((O=(b=(y=o.get("arguments"))==null?void 0:y[0])==null?void 0:b.get)==null||O.call(b,"properties").forEach(C=>{var $,w;(l.namedParams.some(P=>{var I,k;return P.key===((k=(I=C==null?void 0:C.node)==null?void 0:I.key)==null?void 0:k.name)})||l.statics[(w=($=C==null?void 0:C.node)==null?void 0:$.key)==null?void 0:w.name])&&C.remove()}),l.callName==="useApi"){let C=function(I,k=""){const A=`(function() { ${w.filter(B=>B.scope===I).sort((B,x)=>B.node.start-x.node.start).map(B=>B.toString()).join(`;
162
+ `)+`
163
+ `+k} })();`;return I!=null&&I.parent?C(I.parent,"return "+A):A};const{imports:$,deps:w}=l.deps.reduce((I,k)=>(k.type==="ImportDeclaration"?I.imports.push(k.toString()):I.deps.push(k),I),{imports:[],deps:[]});d=`import { defineApi as __defineApi_for_auto__ } from 'soonjs';
164
+ // import ${r} from 'soonjs/auto/server';
165
+ import { z as __zod_z_for_auto__ } from 'zod';
166
+ `+$.join(`
167
+ `);const P=`return __defineApi_for_auto__({${D.meta?`
168
+ meta: ${D.meta},`:""}
169
+ path: '/_auto/${c}',
170
+ name: 'auto in ${e}',
171
+ bodySchema: __zod_z_for_auto__.object({
172
+ valid: __zod_z_for_auto__.string(),
173
+ data: __zod_z_for_auto__.object({
174
+ ___auto_state___: __zod_z_for_auto__.any(),
175
+ ${D.bodySchema?`body: ${D.bodySchema},`:""}
176
+ }),
177
+ serverDep: __zod_z_for_auto__.any(),
178
+ }),
179
+ desc: 'auto ${l.callName} ${c} generate from ${e}',
180
+ disabled: false,
181
+ method: 'post',
182
+ tags: ['soon auto'],
183
+ action: async ({ serverDep: ${r}, data: { ___auto_state___: { ${[...l.bindings].map(I=>I.name).join(", ")} }, ${m} } }, __auto_context__) => {
184
+ return await ${o.toString()}({ context: __auto_context__, ${m} })
185
+ },
186
+ });
187
+ `;d+=`
188
+
189
+ export default `+C(o.scope,P)}else d=`import { defineApi as __defineApi_for_auto__ } from 'soonjs';
190
+ // import ${r} from 'soonjs/auto/server';
191
+ import { z as __zod_z_for_auto__ } from 'zod';
192
+
193
+ export default __defineApi_for_auto__({
194
+ path: '/_auto/${c}',
195
+ name: 'auto in ${e}',
196
+ bodySchema: __zod_z_for_auto__.object({
197
+ valid: __zod_z_for_auto__.string(),
198
+ data: __zod_z_for_auto__.any(),
199
+ serverDep: __zod_z_for_auto__.any(),
200
+ }),
201
+ desc: 'auto ${l.callName} ${c} generate from ${e}',
202
+ disabled: false,
203
+ method: 'post',
204
+ tags: ['soon auto'],
205
+ action: async ({ serverDep: ${r}, data: { ___auto_state___: { ${[...l.bindings].map(C=>C.name).join(", ")} }, ${m} } }) => {
206
+ return await ${o.toString()};
207
+ },
208
+ });
209
+ `;a.push({callId:c,serverCode:d})}),{srcCode:s,serverCodes:a}}function xY(e){const t=process.cwd(),r=e.serverDir;let n;const i="soonjs/auto/client",s="\0"+i,a=new RegExp(`${e.clientAlias}\\s*\\.(useApi\\(|service\\.)`),o="node_modules/.soonjs/auto";let u="";if(!e.projectName||!e.serverDir)throw new Error("soonjs client plugin: options.projectName and options.serverDir are required");return{name:"vite-plugin-soon-client",enforce:"post",configureServer(l){n=l,console.log(n.config.env)},config(l,c){u=it.join(o,c.command,e.projectName);const f=it.join(t,"generated/auto");Wi(it.join(t,"node_modules/.soonjs"))||cT(r,"node_modules/.soonjs","dir"),Wi(f)||fT(f,{recursive:!0});const p=it.join(r,"generated/auto/auto-client.d.ts");Wi(p)&&qf(p,it.join(f,"auto-client.d.ts")),Wi(u)&&pT(u,{recursive:!0}),c.command==="serve"&&hT(p,(h,d)=>{Wi(p)&&qf(p,it.join(f,"auto-client.d.ts"))})},resolveId(l){if(l===i)return s},async load(l){if(l===s)return`
210
+ const soonConfigStorage = {
211
+ baseUrl: "",
212
+ onFetch: null,
213
+ defaultMethod: "post"
214
+ };
215
+ const soonClientConfig = options=>{
216
+ soonConfigStorage["baseUrl"] = options.baseUrl ?? "";
217
+ soonConfigStorage["onFetch"] = options.onFetch;
218
+ soonClientConfig["defaultMethod"] = options.defaultMethod ?? "post";
219
+ };
220
+
221
+ const _auto = async(path,body)=>{
222
+ return await soonConfigStorage.onFetch?.({
223
+ headers: {},
224
+ method: "post",
225
+ body: {
226
+ data: body,
227
+ valid: (Math.random()).toString(36).substr(2)
228
+ },
229
+ url: soonConfigStorage.baseUrl + path
230
+ });
231
+ };
232
+
233
+ const api = async(path,body,options={})=>{
234
+ return await soonConfigStorage.onFetch?.({
235
+ headers: options.headers,
236
+ method: options.method ?? soonConfigStorage.defaultMethod,
237
+ body: options.body ?? body,
238
+ url: soonConfigStorage.baseUrl + (options.url ?? path),
239
+ query: options.query,
240
+ extra: options.extra ?? {}
241
+ });
242
+ };
243
+
244
+ export default {
245
+ soonClientConfig,
246
+ _auto,
247
+ api,
248
+ }
249
+ `},transform(l,c){if((/\.(ts|js|tsx|jsx)$/.test(c)||/\.vue/.test(c))&&a.test(l)){let f=function(){p.serverCodes.forEach(async h=>{let d=h.serverCode;try{d=await iw.format(d,{parser:"typescript",tabWidth:4,useTabs:!1,semi:!0,singleQuote:!0,trailingComma:"es5",bracketSpacing:!0,jsxBracketSameLine:!1,arrowParens:"avoid",printWidth:150,bracketSameLine:!1})}catch{}yT(it.join(u,h.callId+".ts"),d,m=>{m&&console.error(m)})})};const p=nY({filename:it.relative(t,c).replace(/\\/g,"/"),code:l,alias:e.clientAlias,moduleName:"soonjs/auto/client"});return dT(u,h=>{h?f():mT(u,{recursive:!0},d=>{if(d)throw d;f()})}),{code:p.srcCode,map:null}}}}}export{xY as vitePluginSoonClient};