@libp2p/daemon 6.0.29-404c7824a → 6.0.29-5e07d5963

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -1,21 +1,21 @@
1
1
  #! /usr/bin/env node
2
2
  (function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.Libp2PDaemon = factory()}(typeof self !== 'undefined' ? self : this, function () {
3
- "use strict";var Libp2PDaemon=(()=>{var Bs=Object.create;var Jt=Object.defineProperty;var As=Object.getOwnPropertyDescriptor;var xs=Object.getOwnPropertyNames;var ws=Object.getPrototypeOf,ys=Object.prototype.hasOwnProperty;var J=(u=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(u,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):u)(function(u){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+u+'" is not supported')});var Qt=(u,e)=>()=>{try{return e||u((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ee=(u,e)=>{for(var t in e)Jt(u,t,{get:e[t],enumerable:!0})},Xn=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of xs(e))!ys.call(u,r)&&r!==t&&Jt(u,r,{get:()=>e[r],enumerable:!(n=As(e,r))||n.enumerable});return u};var et=(u,e,t)=>(t=u!=null?Bs(ws(u)):{},Xn(e||!u||!u.__esModule?Jt(t,"default",{value:u,enumerable:!0}):t,u)),_s=u=>Xn(Jt({},"__esModule",{value:!0}),u);var kr=Qt((Cf,Xr)=>{Xr.exports=()=>/[#*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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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-\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-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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});var bi=Qt((Kf,gi)=>{gi.exports=()=>/[#*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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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-\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-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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});var Si=Qt((nh,Oi)=>{"use strict";Oi.exports=function(e){if(e===void 0&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var n=new Error().stack;if(Error.prepareStackTrace=t,n!==null&&typeof n=="object")return n[e]?n[e].getFileName():void 0}});var Cs=Qt((hF,ms)=>{var Jn=class{constructor(e,t){this.ctx=t||{},this.yargs=e,this.parse=this.parse.bind(this),this.command=this.yargs.command,this.commandDir=this.yargs.commandDir}parse(e){let t=this.yargs,n;return new Promise((r,i)=>{let s=Object.assign({},this.ctx,{resolve:r,reject:i});t.parse(e,s,function(D,l,m){return n=l,D?l.reject(D):l.resolve(m)})}).then(r=>Promise.resolve(r)).then(r=>r&&r.argv?r:{data:r,argv:n}).catch(r=>Promise.resolve(r).then(i=>i&&i.argv?Promise.reject(i):Promise.reject({error:i,argv:n})))}};ms.exports=Jn});var Wa={};Ee(Wa,{createLibp2pServer:()=>bs,default:()=>Zn});function Su(u,e){if(u===e)return!0;if(u.byteLength!==e.byteLength)return!1;for(let t=0;t<u.byteLength;t++)if(u[t]!==e[t])return!1;return!0}var kn=J("node:buffer");function tt(u){if(u.buffer instanceof ArrayBuffer)return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let e=u.slice();return new Uint8Array(e.buffer,0,e.byteLength)}function Tt(u=0){return tt(kn.Buffer.allocUnsafe(u))}var Os=Math.pow(2,7),Ss=Math.pow(2,14),Ps=Math.pow(2,21),Pu=Math.pow(2,28),Iu=Math.pow(2,35),vu=Math.pow(2,42),ju=Math.pow(2,49),ee=128,de=127;function Et(u){if(u<Os)return 1;if(u<Ss)return 2;if(u<Ps)return 3;if(u<Pu)return 4;if(u<Iu)return 5;if(u<vu)return 6;if(u<ju)return 7;if(Number.MAX_SAFE_INTEGER!=null&&u>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function Mu(u,e,t=0){switch(Et(u)){case 8:e[t++]=u&255|ee,u/=128;case 7:e[t++]=u&255|ee,u/=128;case 6:e[t++]=u&255|ee,u/=128;case 5:e[t++]=u&255|ee,u/=128;case 4:e[t++]=u&255|ee,u>>>=7;case 3:e[t++]=u&255|ee,u>>>=7;case 2:e[t++]=u&255|ee,u>>>=7;case 1:{e[t++]=u&255,u>>>=7;break}default:throw new Error("unreachable")}return e}function Is(u,e){let t=u[e],n=0;if(n+=t&de,t<ee||(t=u[e+1],n+=(t&de)<<7,t<ee)||(t=u[e+2],n+=(t&de)<<14,t<ee)||(t=u[e+3],n+=(t&de)<<21,t<ee)||(t=u[e+4],n+=(t&de)*Pu,t<ee)||(t=u[e+5],n+=(t&de)*Iu,t<ee)||(t=u[e+6],n+=(t&de)*vu,t<ee)||(t=u[e+7],n+=(t&de)*ju,t<ee))return n;throw new RangeError("Could not decode varint")}function vs(u,e){let t=u.get(e),n=0;if(n+=t&de,t<ee||(t=u.get(e+1),n+=(t&de)<<7,t<ee)||(t=u.get(e+2),n+=(t&de)<<14,t<ee)||(t=u.get(e+3),n+=(t&de)<<21,t<ee)||(t=u.get(e+4),n+=(t&de)*Pu,t<ee)||(t=u.get(e+5),n+=(t&de)*Iu,t<ee)||(t=u.get(e+6),n+=(t&de)*vu,t<ee)||(t=u.get(e+7),n+=(t&de)*ju,t<ee))return n;throw new RangeError("Could not decode varint")}function Tu(u,e=0){return u instanceof Uint8Array?Is(u,e):vs(u,e)}function Ms(u){return u.buffer instanceof ArrayBuffer}function $u(u){return Ms(u)?u:u.slice()}var er=J("node:buffer");function gt(u,e){return tt(er.Buffer.concat(u,e))}var Br=J("node:buffer");var Ru={};Ee(Ru,{base10:()=>Ws});var rc=new Uint8Array(0);function tr(u,e){if(u===e)return!0;if(u.byteLength!==e.byteLength)return!1;for(let t=0;t<u.byteLength;t++)if(u[t]!==e[t])return!1;return!0}function we(u){if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return ut(u);if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return ut(new Uint8Array(u.buffer,u.byteOffset,u.byteLength));throw new Error("Unknown type, must be binary type")}function ur(u){return new TextEncoder().encode(u)}function nr(u){return new TextDecoder().decode(u)}function Ts(u){return u?.buffer instanceof ArrayBuffer}function ut(u){return Ts(u)?u:u.slice()}function $s(u,e){if(u.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<u.length;r++){var i=u.charAt(r),s=i.charCodeAt(0);if(t[s]!==255)throw new TypeError(i+" is ambiguous");t[s]=r}var D=u.length,l=u.charAt(0),m=Math.log(D)/Math.log(256),d=Math.log(256)/Math.log(D);function c(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var b=0,F=0,v=0,z=E.length;v!==z&&E[v]===0;)v++,b++;for(var L=(z-v)*d+1>>>0,U=new Uint8Array(L);v!==z;){for(var R=E[v],W=0,H=L-1;(R!==0||W<F)&&H!==-1;H--,W++)R+=256*U[H]>>>0,U[H]=R%D>>>0,R=R/D>>>0;if(R!==0)throw new Error("Non-zero carry");F=W,v++}for(var K=L-F;K!==L&&U[K]===0;)K++;for(var Fe=l.repeat(b);K<L;++K)Fe+=u.charAt(U[K]);return Fe}function p(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;var b=0;if(E[b]!==" "){for(var F=0,v=0;E[b]===l;)F++,b++;for(var z=(E.length-b)*m+1>>>0,L=new Uint8Array(z);E[b];){var U=t[E.charCodeAt(b)];if(U===255)return;for(var R=0,W=z-1;(U!==0||R<v)&&W!==-1;W--,R++)U+=D*L[W]>>>0,L[W]=U%256>>>0,U=U/256>>>0;if(U!==0)throw new Error("Non-zero carry");v=R,b++}if(E[b]!==" "){for(var H=z-v;H!==z&&L[H]===0;)H++;for(var K=new Uint8Array(F+(z-H)),Fe=F;H!==z;)K[Fe++]=L[H++];return K}}}function g(E){var b=p(E);if(b)return b;throw new Error(`Non-${e} character`)}return{encode:c,decodeUnsafe:p,decode:g}}var Ns=$s,Ls=Ns,ir=Ls;var Nu=class{name;prefix;baseEncode;constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},Lu=class{name;prefix;baseDecode;prefixCodePoint;constructor(e,t,n){this.name=e,this.prefix=t;let r=t.codePointAt(0);if(r===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r,this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return sr(this,e)}},Uu=class{decoders;constructor(e){this.decoders=e}or(e){return sr(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n!=null)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function sr(u,e){return new Uu({...u.decoders??{[u.prefix]:u},...e.decoders??{[e.prefix]:e}})}var zu=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new Nu(e,t,n),this.decoder=new Lu(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};function bt({name:u,prefix:e,encode:t,decode:n}){return new zu(u,e,t,n)}function Ve({name:u,prefix:e,alphabet:t}){let{encode:n,decode:r}=ir(t,u);return bt({prefix:e,name:u,encode:n,decode:i=>we(r(i))})}function Us(u,e,t,n){let r=u.length;for(;u[r-1]==="=";)--r;let i=new Uint8Array(r*t/8|0),s=0,D=0,l=0;for(let m=0;m<r;++m){let d=e[u[m]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);D=D<<t|d,s+=t,s>=8&&(s-=8,i[l++]=255&D>>s)}if(s>=t||(255&D<<8-s)!==0)throw new SyntaxError("Unexpected end of data");return i}function zs(u,e,t){let n=e[e.length-1]==="=",r=(1<<t)-1,i="",s=0,D=0;for(let l=0;l<u.length;++l)for(D=D<<8|u[l],s+=8;s>t;)s-=t,i+=e[r&D>>s];if(s!==0&&(i+=e[r&D<<t-s]),n)for(;(i.length*t&7)!==0;)i+="=";return i}function Rs(u){let e={};for(let t=0;t<u.length;++t)e[u[t]]=t;return e}function ne({name:u,prefix:e,bitsPerChar:t,alphabet:n}){let r=Rs(n);return bt({prefix:e,name:u,encode(i){return zs(i,n,t)},decode(i){return Us(i,r,t,u)}})}var Ws=Ve({prefix:"9",name:"base10",alphabet:"0123456789"});var Wu={};Ee(Wu,{base16:()=>Vs,base16upper:()=>Hs});var Vs=ne({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Hs=ne({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Vu={};Ee(Vu,{base2:()=>qs});var qs=ne({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Hu={};Ee(Hu,{base256emoji:()=>Qs});var or=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Gs=or.reduce((u,e,t)=>(u[t]=e,u),[]),Ys=or.reduce((u,e,t)=>{let n=e.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${e}`);return u[n]=t,u},[]);function Ks(u){return u.reduce((e,t)=>(e+=Gs[t],e),"")}function Js(u){let e=[];for(let t of u){let n=t.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${t}`);let r=Ys[n];if(r==null)throw new Error(`Non-base256emoji character: ${t}`);e.push(r)}return new Uint8Array(e)}var Qs=bt({prefix:"\u{1F680}",name:"base256emoji",encode:Ks,decode:Js});var qu={};Ee(qu,{base32:()=>He,base32hex:()=>eo,base32hexpad:()=>uo,base32hexpadupper:()=>no,base32hexupper:()=>to,base32pad:()=>Xs,base32padupper:()=>ks,base32upper:()=>Zs,base32z:()=>ro});var He=ne({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Zs=ne({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Xs=ne({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ks=ne({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eo=ne({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),to=ne({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),uo=ne({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),no=ne({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ro=ne({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Gu={};Ee(Gu,{base36:()=>$t,base36upper:()=>io});var $t=Ve({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),io=Ve({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Yu={};Ee(Yu,{base58btc:()=>je,base58flickr:()=>so});var je=Ve({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),so=Ve({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ju={};Ee(Ju,{base64:()=>oo,base64pad:()=>Do,base64url:()=>Ku,base64urlpad:()=>ao});var oo=ne({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Do=ne({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ku=ne({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ao=ne({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Qu={};Ee(Qu,{base8:()=>co});var co=ne({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Zu={};Ee(Zu,{identity:()=>lo});var lo=bt({prefix:"\0",name:"identity",encode:u=>nr(u),decode:u=>ur(u)});var gc=new TextEncoder,bc=new TextDecoder;var ku={};Ee(ku,{identity:()=>To});var Fo=cr,Dr=128,po=127,mo=~po,Co=Math.pow(2,31);function cr(u,e,t){e=e||[],t=t||0;for(var n=t;u>=Co;)e[t++]=u&255|Dr,u/=128;for(;u&mo;)e[t++]=u&255|Dr,u>>>=7;return e[t]=u|0,cr.bytes=t-n+1,e}var Eo=Xu,go=128,ar=127;function Xu(u,n){var t=0,n=n||0,r=0,i=n,s,D=u.length;do{if(i>=D)throw Xu.bytes=0,new RangeError("Could not decode varint");s=u[i++],t+=r<28?(s&ar)<<r:(s&ar)*Math.pow(2,r),r+=7}while(s>=go);return Xu.bytes=i-n,t}var bo=Math.pow(2,7),Bo=Math.pow(2,14),Ao=Math.pow(2,21),xo=Math.pow(2,28),wo=Math.pow(2,35),yo=Math.pow(2,42),_o=Math.pow(2,49),Oo=Math.pow(2,56),So=Math.pow(2,63),Po=function(u){return u<bo?1:u<Bo?2:u<Ao?3:u<xo?4:u<wo?5:u<yo?6:u<_o?7:u<Oo?8:u<So?9:10},Io={encode:Fo,decode:Eo,encodingLength:Po},vo=Io,Nt=vo;function Lt(u,e=0){return[Nt.decode(u,e),Nt.decode.bytes]}function Bt(u,e,t=0){return Nt.encode(u,e,t),e}function At(u){return Nt.encodingLength(u)}function wt(u,e){let t=e.byteLength,n=At(u),r=n+At(t),i=new Uint8Array(r+t);return Bt(u,i,0),Bt(t,i,n),i.set(e,r),new xt(u,t,e,i)}function lr(u){let e=we(u),[t,n]=Lt(e),[r,i]=Lt(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==r)throw new Error("Incorrect length");return new xt(t,r,s,e)}function fr(u,e){if(u===e)return!0;{let t=e;return u.code===t.code&&u.size===t.size&&t.bytes instanceof Uint8Array&&tr(u.bytes,t.bytes)}}var xt=class{code;size;digest;bytes;constructor(e,t,n,r){this.code=e,this.size=t,this.digest=ut(n),this.bytes=ut(r)}};var hr=0,jo="identity",Fr=we;function Mo(u,e){if(e?.truncate!=null&&e.truncate!==u.byteLength){if(e.truncate<0||e.truncate>u.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${u.byteLength}`);u=u.subarray(0,e.truncate)}return wt(hr,Fr(u))}var To={code:hr,name:jo,encode:Fr,digest:Mo};var nn={};Ee(nn,{sha256:()=>No,sha512:()=>Lo});var un=et(J("node:crypto"),1);var $o=20;function tn({name:u,code:e,encode:t,minDigestLength:n,maxDigestLength:r}){return new en(u,e,t,n,r)}var en=class{name;code;encode;minDigestLength;maxDigestLength;constructor(e,t,n,r,i){this.name=e,this.code=t,this.encode=n,this.minDigestLength=r??$o,this.maxDigestLength=i}digest(e,t){if(t?.truncate!=null){if(t.truncate<this.minDigestLength)throw new Error(`Invalid truncate option, must be greater than or equal to ${this.minDigestLength}`);if(this.maxDigestLength!=null&&t.truncate>this.maxDigestLength)throw new Error(`Invalid truncate option, must be less than or equal to ${this.maxDigestLength}`)}if(e instanceof Uint8Array){let n=this.encode(e);return n instanceof Uint8Array?dr(n,this.code,t?.truncate):n.then(r=>dr(r,this.code,t?.truncate))}else throw Error("Unknown type, must be binary type")}};function dr(u,e,t){if(t!=null&&t!==u.byteLength){if(t>u.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${u.byteLength}`);u=u.subarray(0,t)}return wt(e,u)}var No=tn({name:"sha2-256",code:18,encode:u=>we(un.default.createHash("sha256").update(u).digest())}),Lo=tn({name:"sha2-512",code:19,encode:u=>we(un.default.createHash("sha512").update(u).digest())});function mr(u,e){let{bytes:t,version:n}=u;return n===0?zo(t,rn(u),e??je.encoder):Ro(t,rn(u),e??He.encoder)}var Cr=new WeakMap;function rn(u){let e=Cr.get(u);if(e==null){let t=new Map;return Cr.set(u,t),t}return e}var yt=class u{code;version;multihash;bytes;"/";constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=ut(r),this["/"]=this.bytes}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:e,multihash:t}=this;if(e!==zt)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==Wo)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(t)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=wt(e,t);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return u.equals(this,e)}static equals(e,t){let n=t;return n!=null&&e.code===n.code&&e.version===n.version&&fr(e.multihash,n.multihash)}toString(e){return mr(this,e)}toJSON(){return{"/":mr(this)}}link(){return this}[Symbol.toStringTag]="CID";[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(e){if(e==null)return null;let t=e;if(t instanceof u)return t;if(t["/"]!=null&&t["/"]===t.bytes||t.asCID===t){let{version:n,code:r,multihash:i,bytes:s}=t;return new u(n,r,i,s??Er(n,r,i.bytes))}else if(t[Vo]===!0){let{version:n,multihash:r,code:i}=t,s=lr(r);return u.create(n,i,s)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(e){case 0:{if(t!==zt)throw new Error(`Version 0 CID must use dag-pb (code: ${zt}) block encoding`);return new u(e,t,n,n.bytes)}case 1:{let r=Er(e,t,n.bytes);return new u(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return u.create(0,zt,e)}static createV1(e,t){return u.create(1,e,t)}static decode(e){let[t,n]=u.decodeFirst(e);if(n.length!==0)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=u.inspectBytes(e),n=t.size-t.multihashSize,r=we(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=r.subarray(t.multihashSize-t.digestSize),s=new xt(t.multihashCode,t.digestSize,i,r);return[t.version===0?u.createV0(s):u.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[c,p]=Lt(e.subarray(t));return t+=p,c},r=n(),i=zt;if(r===18?(r=0,t=0):i=n(),r!==0&&r!==1)throw new RangeError(`Invalid CID version ${r}`);let s=t,D=n(),l=n(),m=t+l,d=m-s;return{version:r,codec:i,multihashCode:D,digestSize:l,multihashSize:d,size:m}}static parse(e,t){let[n,r]=Uo(e,t),i=u.decode(r);if(i.version===0&&e[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return rn(i).set(n,e),i}};function Uo(u,e){switch(u[0]){case"Q":{let t=e??je;return[je.prefix,t.decode(`${je.prefix}${u}`)]}case je.prefix:{let t=e??je;return[je.prefix,t.decode(u)]}case He.prefix:{let t=e??He;return[He.prefix,t.decode(u)]}case $t.prefix:{let t=e??$t;return[$t.prefix,t.decode(u)]}default:{if(e==null)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[u[0],e.decode(u)]}}}function zo(u,e,t){let{prefix:n}=t;if(n!==je.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let r=e.get(n);if(r==null){let i=t.encode(u).slice(1);return e.set(n,i),i}else return r}function Ro(u,e,t){let{prefix:n}=t,r=e.get(n);if(r==null){let i=t.encode(u);return e.set(n,i),i}else return r}var zt=112,Wo=18;function Er(u,e,t){let n=At(u),r=n+At(e),i=new Uint8Array(r+t.byteLength);return Bt(u,i,0),Bt(e,i,n),i.set(t,r),i}var Vo=Symbol.for("@ipld/js-cid/CID");var Rt={...Zu,...Vu,...Qu,...Ru,...Wu,...qu,...Gu,...Yu,...Ju,...Hu},Hc={...nn,...ku};function br(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}var gr=br("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),sn=br("ascii","a",u=>{let e="a";for(let t=0;t<u.length;t++)e+=String.fromCharCode(u[t]);return e},u=>{u=u.substring(1);let e=Tt(u.length);for(let t=0;t<u.length;t++)e[t]=u.charCodeAt(t);return e}),Ho={utf8:gr,"utf-8":gr,hex:Rt.base16,latin1:sn,ascii:sn,binary:sn,...Rt},Xt=Ho;function _t(u,e="utf8"){let t=Xt[e];if(t==null)throw new Error(`Unsupported encoding "${e}"`);return e==="utf8"||e==="utf-8"?tt(Br.Buffer.from(u,"utf-8")):t.decoder.decode(`${t.prefix}${u}`)}var Ar=J("node:buffer");function qe(u,e="utf8"){let t=Xt[e];if(t==null)throw new Error(`Unsupported encoding "${e}"`);return e==="utf8"||e==="utf-8"?Ar.Buffer.from(u.buffer,u.byteOffset,u.byteLength).toString("utf8"):t.encoder.encode(u).substring(1)}var he=class extends Error{static name="InvalidMultiaddrError";name="InvalidMultiaddrError"},Le=class extends Error{static name="ValidationError";name="ValidationError"},kt=class extends Error{static name="InvalidParametersError";name="InvalidParametersError"},eu=class extends Error{static name="UnknownProtocolError";name="UnknownProtocolError"};var Ue=J("node:net");function Dn(u){return e=>qe(e,u)}function an(u){return e=>_t(e,u)}function Ot(u){return new DataView(u.buffer).getUint16(u.byteOffset).toString()}function nt(u){let e=new ArrayBuffer(2);return new DataView(e).setUint16(0,typeof u=="string"?parseInt(u):u),new Uint8Array(e)}function xr(u){let e=u.split(":");if(e.length!==2)throw new Error(`failed to parse onion addr: ["'${e.join('", "')}'"]' does not contain a port number`);if(e[0].length!==16)throw new Error(`failed to parse onion addr: ${e[0]} not a Tor onion address.`);let t=_t(e[0],"base32"),n=parseInt(e[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let r=nt(n);return gt([t,r],t.length+r.length)}function wr(u){let e=u.split(":");if(e.length!==2)throw new Error(`failed to parse onion addr: ["'${e.join('", "')}'"]' does not contain a port number`);if(e[0].length!==56)throw new Error(`failed to parse onion addr: ${e[0]} not a Tor onion3 address.`);let t=He.decode(`b${e[0]}`),n=parseInt(e[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let r=nt(n);return gt([t,r],t.length+r.length)}function cn(u){let e=u.subarray(0,u.length-2),t=u.subarray(u.length-2),n=qe(e,"base32"),r=Ot(t);return`${n}:${r}`}var ln=function(u){u=u.toString().trim();let e=new Uint8Array(4);return u.split(/\./g).forEach((t,n)=>{let r=parseInt(t,10);if(isNaN(r)||r<0||r>255)throw new he("Invalid byte value in IP address");e[n]=r}),e},yr=function(u){let e=0;u=u.toString().trim();let t=u.split(":",8),n;for(n=0;n<t.length;n++){let i=(0,Ue.isIPv4)(t[n]),s;i&&(s=ln(t[n]),t[n]=qe(s.subarray(0,2),"base16")),s!=null&&++n<8&&t.splice(n,0,qe(s.subarray(2,4),"base16"))}if(t[0]==="")for(;t.length<8;)t.unshift("0");else if(t[t.length-1]==="")for(;t.length<8;)t.push("0");else if(t.length<8){for(n=0;n<t.length&&t[n]!=="";n++);let i=[n,1];for(n=9-t.length;n>0;n--)i.push("0");t.splice.apply(t,i)}let r=new Uint8Array(e+16);for(n=0;n<t.length;n++){t[n]===""&&(t[n]="0");let i=parseInt(t[n],16);if(isNaN(i)||i<0||i>65535)throw new he("Invalid byte value in IP address");r[e++]=i>>8&255,r[e++]=i&255}return r},_r=function(u){if(u.byteLength!==4)throw new he("IPv4 address was incorrect length");let e=[];for(let t=0;t<u.byteLength;t++)e.push(u[t]);return e.join(".")},Or=function(u){if(u.byteLength!==16)throw new he("IPv6 address was incorrect length");let e=[];for(let n=0;n<u.byteLength;n+=2){let r=u[n],i=u[n+1],s=`${r.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}`;e.push(s)}let t=e.join(":");try{let n=new URL(`http://[${t}]`);return n.hostname.substring(1,n.hostname.length-1)}catch{throw new he(`Invalid IPv6 address "${t}"`)}};function Sr(u){try{let e=new URL(`http://[${u}]`);return e.hostname.substring(1,e.hostname.length-1)}catch{throw new he(`Invalid IPv6 address "${u}"`)}}var on=Object.values(Rt).map(u=>u.decoder),qo=(function(){let u=on[0].or(on[1]);return on.slice(2).forEach(e=>u=u.or(e)),u})();function Pr(u){return qo.decode(u)}function Ir(u){return e=>u.encoder.encode(e)}function Go(u){if(parseInt(u).toString()!==u)throw new Le("Value must be an integer")}function Yo(u){if(u<0)throw new Le("Value must be a positive integer, or zero")}function Ko(u){return e=>{if(e>u)throw new Le(`Value must be smaller than or equal to ${u}`)}}function Jo(...u){return e=>{for(let t of u)t(e)}}var Wt=Jo(Go,Yo,Ko(65535));var le=-1,fn=class{protocolsByCode=new Map;protocolsByName=new Map;getProtocol(e){let t;if(typeof e=="string"?t=this.protocolsByName.get(e):t=this.protocolsByCode.get(e),t==null)throw new eu(`Protocol ${e} was unknown`);return t}addProtocol(e){this.protocolsByCode.set(e.code,e),this.protocolsByName.set(e.name,e),e.aliases?.forEach(t=>{this.protocolsByName.set(t,e)})}removeProtocol(e){let t=this.protocolsByCode.get(e);t!=null&&(this.protocolsByCode.delete(t.code),this.protocolsByName.delete(t.name),t.aliases?.forEach(n=>{this.protocolsByName.delete(n)}))}},ze=new fn,$D=[{code:4,name:"ip4",size:32,valueToBytes:ln,bytesToValue:_r,validate:u=>{if(!(0,Ue.isIPv4)(u))throw new Le(`Invalid IPv4 address "${u}"`)}},{code:6,name:"tcp",size:16,valueToBytes:nt,bytesToValue:Ot,validate:Wt},{code:273,name:"udp",size:16,valueToBytes:nt,bytesToValue:Ot,validate:Wt},{code:33,name:"dccp",size:16,valueToBytes:nt,bytesToValue:Ot,validate:Wt},{code:41,name:"ip6",size:128,valueToBytes:yr,bytesToValue:Or,stringToValue:Sr,validate:u=>{if(!(0,Ue.isIPv6)(u))throw new Le(`Invalid IPv6 address "${u}"`)}},{code:42,name:"ip6zone",size:le},{code:43,name:"ipcidr",size:8,bytesToValue:Dn("base10"),valueToBytes:an("base10")},{code:53,name:"dns",size:le},{code:54,name:"dns4",size:le},{code:55,name:"dns6",size:le},{code:56,name:"dnsaddr",size:le},{code:132,name:"sctp",size:16,valueToBytes:nt,bytesToValue:Ot,validate:Wt},{code:301,name:"udt"},{code:302,name:"utp"},{code:400,name:"unix",size:le,stringToValue:u=>decodeURIComponent(u),valueToString:u=>encodeURIComponent(u)},{code:421,name:"p2p",aliases:["ipfs"],size:le,bytesToValue:Dn("base58btc"),valueToBytes:u=>u.startsWith("Q")||u.startsWith("1")?an("base58btc")(u):yt.parse(u).multihash.bytes},{code:444,name:"onion",size:96,bytesToValue:cn,valueToBytes:xr},{code:445,name:"onion3",size:296,bytesToValue:cn,valueToBytes:wr},{code:446,name:"garlic64",size:le},{code:447,name:"garlic32",size:le},{code:448,name:"tls"},{code:449,name:"sni",size:le},{code:454,name:"noise"},{code:460,name:"quic"},{code:461,name:"quic-v1"},{code:465,name:"webtransport"},{code:466,name:"certhash",size:le,bytesToValue:Ir(Ku),valueToBytes:Pr},{code:480,name:"http"},{code:481,name:"http-path",size:le,stringToValue:u=>`/${decodeURIComponent(u)}`,valueToString:u=>encodeURIComponent(u.substring(1))},{code:443,name:"https"},{code:477,name:"ws"},{code:478,name:"wss"},{code:479,name:"p2p-websocket-star"},{code:277,name:"p2p-stardust"},{code:275,name:"p2p-webrtc-star"},{code:276,name:"p2p-webrtc-direct"},{code:280,name:"webrtc-direct"},{code:281,name:"webrtc"},{code:290,name:"p2p-circuit"},{code:777,name:"memory",size:le}];$D.forEach(u=>{ze.addProtocol(u)});function vr(u){let e=[],t=0;for(;t<u.length;){let n=Tu(u,t),r=ze.getProtocol(n),i=Et(n),s=ND(r,u,t+i),D=0;s>0&&r.size===le&&(D=Et(s));let l=i+D+s,m={code:n,name:r.name,bytes:$u(u.subarray(t,t+l))};if(s>0){let d=t+i+D,c=u.subarray(d,d+s);m.value=r.bytesToValue?.(c)??qe(c)}e.push(m),t+=l}return e}function jr(u){let e=0,t=[];for(let n of u){if(n.bytes==null){let r=ze.getProtocol(n.code),i=Et(n.code),s,D=0,l=0;n.value!=null&&(s=r.valueToBytes?.(n.value)??_t(n.value),D=s.byteLength,r.size===le&&(l=Et(D)));let m=new Uint8Array(i+l+D),d=0;Mu(n.code,m,d),d+=i,s!=null&&(r.size===le&&(Mu(D,m,d),d+=l),m.set(s,d)),n.bytes=m}t.push(n.bytes),e+=n.bytes.byteLength}return gt(t,e)}function Mr(u){if(u.charAt(0)!=="/")throw new he('String multiaddr must start with "/"');let e=[],t="protocol",n="",r="";for(let i=1;i<u.length;i++){let s=u.charAt(i);s!=="/"&&(t==="protocol"?r+=u.charAt(i):n+=u.charAt(i));let D=i===u.length-1;if(s==="/"||D){let l=ze.getProtocol(r);if(t==="protocol"){if(l.size==null||l.size===0){e.push({code:l.code,name:l.name}),n="",r="",t="protocol";continue}else if(D)throw new he(`Component ${r} was missing value`);t="value"}else if(t==="value"){let m={code:l.code,name:l.name};if(l.size!=null&&l.size!==0){if(n==="")throw new he(`Component ${r} was missing value`);m.value=l.stringToValue?.(n)??n}e.push(m),n="",r="",t="protocol"}}}if(r!==""&&n!=="")throw new he("Incomplete multiaddr");return e}function Tr(u){return`/${u.flatMap(e=>{if(e.value==null)return e.name;let t=ze.getProtocol(e.code);if(t==null)throw new he(`Unknown protocol code ${e.code}`);return[e.name,t.valueToString?.(e.value)??e.value]}).join("/")}`}function ND(u,e,t){return u.size==null||u.size===0?0:u.size>0?u.size/8:Tu(e,t)}var LD=Symbol.for("nodejs.util.inspect.custom"),hn=Symbol.for("@multiformats/multiaddr");function UD(u){if(u==null&&(u="/"),$r(u))return u.getComponents();if(u instanceof Uint8Array)return vr(u);if(typeof u=="string")return u=u.replace(/\/(\/)+/,"/").replace(/(\/)+$/,""),u===""&&(u="/"),Mr(u);if(Array.isArray(u))return u;throw new he("Must be a string, Uint8Array, Component[], or another Multiaddr")}var tu=class u{[hn]=!0;#e;#t;#u;constructor(e="/",t={}){this.#e=UD(e),t.validate!==!1&&zD(this)}get bytes(){return this.#u==null&&(this.#u=jr(this.#e)),this.#u}toString(){return this.#t==null&&(this.#t=Tr(this.#e)),this.#t}toJSON(){return this.toString()}getComponents(){return[...this.#e.map(e=>({...e}))]}encapsulate(e){let t=new u(e);return new u([...this.#e,...t.getComponents()],{validate:!1})}decapsulate(e){let t=e.toString(),n=this.toString(),r=n.lastIndexOf(t);if(r<0)throw new kt(`Address ${this.toString()} does not contain subaddress: ${t}`);return new u(n.slice(0,r),{validate:!1})}decapsulateCode(e){let t;for(let n=this.#e.length-1;n>-1;n--)if(this.#e[n].code===e){t=n;break}return new u(this.#e.slice(0,t),{validate:!1})}equals(e){return Su(this.bytes,e.bytes)}[LD](){return`Multiaddr(${this.toString()})`}};function zD(u){u.getComponents().forEach(e=>{let t=ze.getProtocol(e.code);e.value!=null&&t.validate?.(e.value)})}function $r(u){return!!u?.[hn]}function Nr(u){return new tu(u)}var Lr=J("module"),dn=et(J("path"),1),Fn=et(J("process"),1),Ur=J("url");function RD(u){let e=dn.default.extname(u);return e?u.slice(0,-e.length):u}function pn(u){if(!u)return!1;if("main"in u)return!!u.main;if(!Fn.default.argv[1])return!1;let t=(0,Lr.createRequire)(u.url).resolve(Fn.default.argv[1]),n=(0,Ur.fileURLToPath)(u.url);return dn.default.extname(t)?n===t:RD(n)===t}var hu=J("assert");var WD={right:YD,center:KD},VD=0,uu=1,HD=2,nu=3,mn=class{constructor(e){var t;this.width=e.width,this.wrap=(t=e.wrap)!==null&&t!==void 0?t:!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let t=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
4
- `).map(r=>r.split(" ")),n=0;return t.forEach(r=>{r.length>1&&ge.stringWidth(r[0])>n&&(n=Math.min(Math.floor(this.width*.5),ge.stringWidth(r[0])))}),t.forEach(r=>{this.div(...r.map((i,s)=>({text:i.trim(),padding:this.measurePadding(i),width:s===0&&r.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=ge.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(t=>!t.hidden).map(t=>t.text).join(`
5
- `)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i="";n.forEach((s,D)=>{let{width:l}=e[D],m=this.negatePadding(e[D]),d=s;if(m>ge.stringWidth(s)&&(d+=" ".repeat(m-ge.stringWidth(s))),e[D].align&&e[D].align!=="left"&&this.wrap){let p=WD[e[D].align];d=p(d,m),ge.stringWidth(d)<m&&(d+=" ".repeat((l||0)-ge.stringWidth(d)-1))}let c=e[D].padding||[0,0,0,0];c[nu]&&(i+=" ".repeat(c[nu])),i+=zr(e[D],d,"| "),i+=d,i+=zr(e[D],d," |"),c[uu]&&(i+=" ".repeat(c[uu])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,s=ge.stringWidth(i.trimRight());return t.span?this.wrap?r<s?e:(t.hidden=!0,i.trimRight()+" ".repeat(r-s)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((i,s)=>{i.width=n[s],this.wrap?r=ge.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
3
+ "use strict";var Libp2PDaemon=(()=>{var bs=Object.create;var Ke=Object.defineProperty;var Bs=Object.getOwnPropertyDescriptor;var As=Object.getOwnPropertyNames;var xs=Object.getPrototypeOf,ws=Object.prototype.hasOwnProperty;var J=(u=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(u,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):u)(function(u){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+u+'" is not supported')});var Je=(u,t)=>()=>{try{return t||u((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},Et=(u,t)=>{for(var e in t)Ke(u,e,{get:t[e],enumerable:!0})},Zn=(u,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of As(t))!ws.call(u,r)&&r!==e&&Ke(u,r,{get:()=>t[r],enumerable:!(n=Bs(t,r))||n.enumerable});return u};var ee=(u,t,e)=>(e=u!=null?bs(xs(u)):{},Zn(t||!u||!u.__esModule?Ke(e,"default",{value:u,enumerable:!0}):e,u)),ys=u=>Zn(Ke({},"__esModule",{value:!0}),u);var Xr=Je((pf,Zr)=>{Zr.exports=()=>/[#*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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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-\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-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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});var gi=Je((Hf,Ei)=>{Ei.exports=()=>/[#*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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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-\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-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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});var Oi=Je((kf,_i)=>{"use strict";_i.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var n=new Error().stack;if(Error.prepareStackTrace=e,n!==null&&typeof n=="object")return n[t]?n[t].getFileName():void 0}});var ms=Je((aF,ps)=>{var Kn=class{constructor(t,e){this.ctx=e||{},this.yargs=t,this.parse=this.parse.bind(this),this.command=this.yargs.command,this.commandDir=this.yargs.commandDir}parse(t){let e=this.yargs,n;return new Promise((r,i)=>{let s=Object.assign({},this.ctx,{resolve:r,reject:i});e.parse(t,s,function(D,l,m){return n=l,D?l.reject(D):l.resolve(m)})}).then(r=>Promise.resolve(r)).then(r=>r&&r.argv?r:{data:r,argv:n}).catch(r=>Promise.resolve(r).then(i=>i&&i.argv?Promise.reject(i):Promise.reject({error:i,argv:n})))}};ps.exports=Kn});var za={};Et(za,{createLibp2pServer:()=>gs,default:()=>Qn});function Ou(u,t){if(u===t)return!0;if(u.byteLength!==t.byteLength)return!1;for(let e=0;e<u.byteLength;e++)if(u[e]!==t[e])return!1;return!0}var Xn=J("node:buffer");function ue(u){if(u.buffer instanceof ArrayBuffer)return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let t=u.slice();return new Uint8Array(t.buffer,0,t.byteLength)}function Te(u=0){return ue(Xn.Buffer.allocUnsafe(u))}var _s=Math.pow(2,7),Os=Math.pow(2,14),Ss=Math.pow(2,21),Su=Math.pow(2,28),Pu=Math.pow(2,35),Iu=Math.pow(2,42),vu=Math.pow(2,49),tt=128,dt=127;function Ee(u){if(u<_s)return 1;if(u<Os)return 2;if(u<Ss)return 3;if(u<Su)return 4;if(u<Pu)return 5;if(u<Iu)return 6;if(u<vu)return 7;if(Number.MAX_SAFE_INTEGER!=null&&u>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function ju(u,t,e=0){switch(Ee(u)){case 8:t[e++]=u&255|tt,u/=128;case 7:t[e++]=u&255|tt,u/=128;case 6:t[e++]=u&255|tt,u/=128;case 5:t[e++]=u&255|tt,u/=128;case 4:t[e++]=u&255|tt,u>>>=7;case 3:t[e++]=u&255|tt,u>>>=7;case 2:t[e++]=u&255|tt,u>>>=7;case 1:{t[e++]=u&255,u>>>=7;break}default:throw new Error("unreachable")}return t}function Ps(u,t){let e=u[t],n=0;if(n+=e&dt,e<tt||(e=u[t+1],n+=(e&dt)<<7,e<tt)||(e=u[t+2],n+=(e&dt)<<14,e<tt)||(e=u[t+3],n+=(e&dt)<<21,e<tt)||(e=u[t+4],n+=(e&dt)*Su,e<tt)||(e=u[t+5],n+=(e&dt)*Pu,e<tt)||(e=u[t+6],n+=(e&dt)*Iu,e<tt)||(e=u[t+7],n+=(e&dt)*vu,e<tt))return n;throw new RangeError("Could not decode varint")}function Is(u,t){let e=u.get(t),n=0;if(n+=e&dt,e<tt||(e=u.get(t+1),n+=(e&dt)<<7,e<tt)||(e=u.get(t+2),n+=(e&dt)<<14,e<tt)||(e=u.get(t+3),n+=(e&dt)<<21,e<tt)||(e=u.get(t+4),n+=(e&dt)*Su,e<tt)||(e=u.get(t+5),n+=(e&dt)*Pu,e<tt)||(e=u.get(t+6),n+=(e&dt)*Iu,e<tt)||(e=u.get(t+7),n+=(e&dt)*vu,e<tt))return n;throw new RangeError("Could not decode varint")}function Mu(u,t=0){return u instanceof Uint8Array?Ps(u,t):Is(u,t)}function js(u){return u.buffer instanceof ArrayBuffer}function Tu(u){return js(u)?u:u.slice()}var kn=J("node:buffer");function ge(u,t){return ue(kn.Buffer.concat(u,t))}var br=J("node:buffer");var zu={};Et(zu,{base10:()=>Rs});var uc=new Uint8Array(0);function tr(u,t){if(u===t)return!0;if(u.byteLength!==t.byteLength)return!1;for(let e=0;e<u.byteLength;e++)if(u[e]!==t[e])return!1;return!0}function wt(u){if(u instanceof Uint8Array&&u.constructor.name==="Uint8Array")return ne(u);if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return ne(new Uint8Array(u.buffer,u.byteOffset,u.byteLength));throw new Error("Unknown type, must be binary type")}function er(u){return new TextEncoder().encode(u)}function ur(u){return new TextDecoder().decode(u)}function Ms(u){return u?.buffer instanceof ArrayBuffer}function ne(u){return Ms(u)?u:u.slice()}function Ts(u,t){if(u.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var r=0;r<u.length;r++){var i=u.charAt(r),s=i.charCodeAt(0);if(e[s]!==255)throw new TypeError(i+" is ambiguous");e[s]=r}var D=u.length,l=u.charAt(0),m=Math.log(D)/Math.log(256),d=Math.log(256)/Math.log(D);function c(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var b=0,F=0,v=0,z=E.length;v!==z&&E[v]===0;)v++,b++;for(var L=(z-v)*d+1>>>0,U=new Uint8Array(L);v!==z;){for(var R=E[v],W=0,H=L-1;(R!==0||W<F)&&H!==-1;H--,W++)R+=256*U[H]>>>0,U[H]=R%D>>>0,R=R/D>>>0;if(R!==0)throw new Error("Non-zero carry");F=W,v++}for(var K=L-F;K!==L&&U[K]===0;)K++;for(var Ft=l.repeat(b);K<L;++K)Ft+=u.charAt(U[K]);return Ft}function p(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;var b=0;if(E[b]!==" "){for(var F=0,v=0;E[b]===l;)F++,b++;for(var z=(E.length-b)*m+1>>>0,L=new Uint8Array(z);E[b];){var U=e[E.charCodeAt(b)];if(U===255)return;for(var R=0,W=z-1;(U!==0||R<v)&&W!==-1;W--,R++)U+=D*L[W]>>>0,L[W]=U%256>>>0,U=U/256>>>0;if(U!==0)throw new Error("Non-zero carry");v=R,b++}if(E[b]!==" "){for(var H=z-v;H!==z&&L[H]===0;)H++;for(var K=new Uint8Array(F+(z-H)),Ft=F;H!==z;)K[Ft++]=L[H++];return K}}}function g(E){var b=p(E);if(b)return b;throw new Error(`Non-${t} character`)}return{encode:c,decodeUnsafe:p,decode:g}}var $s=Ts,Ns=$s,rr=Ns;var $u=class{name;prefix;baseEncode;constructor(t,e,n){this.name=t,this.prefix=e,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},Nu=class{name;prefix;baseDecode;prefixCodePoint;constructor(t,e,n){this.name=t,this.prefix=e;let r=e.codePointAt(0);if(r===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r,this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return ir(this,t)}},Lu=class{decoders;constructor(t){this.decoders=t}or(t){return ir(this,t)}decode(t){let e=t[0],n=this.decoders[e];if(n!=null)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function ir(u,t){return new Lu({...u.decoders??{[u.prefix]:u},...t.decoders??{[t.prefix]:t}})}var Uu=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(t,e,n,r){this.name=t,this.prefix=e,this.baseEncode=n,this.baseDecode=r,this.encoder=new $u(t,e,n),this.decoder=new Nu(t,e,r)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}};function be({name:u,prefix:t,encode:e,decode:n}){return new Uu(u,t,e,n)}function Ht({name:u,prefix:t,alphabet:e}){let{encode:n,decode:r}=rr(e,u);return be({prefix:t,name:u,encode:n,decode:i=>wt(r(i))})}function Ls(u,t,e,n){let r=u.length;for(;u[r-1]==="=";)--r;let i=new Uint8Array(r*e/8|0),s=0,D=0,l=0;for(let m=0;m<r;++m){let d=t[u[m]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);D=D<<e|d,s+=e,s>=8&&(s-=8,i[l++]=255&D>>s)}if(s>=e||(255&D<<8-s)!==0)throw new SyntaxError("Unexpected end of data");return i}function Us(u,t,e){let n=t[t.length-1]==="=",r=(1<<e)-1,i="",s=0,D=0;for(let l=0;l<u.length;++l)for(D=D<<8|u[l],s+=8;s>e;)s-=e,i+=t[r&D>>s];if(s!==0&&(i+=t[r&D<<e-s]),n)for(;(i.length*e&7)!==0;)i+="=";return i}function zs(u){let t={};for(let e=0;e<u.length;++e)t[u[e]]=e;return t}function nt({name:u,prefix:t,bitsPerChar:e,alphabet:n}){let r=zs(n);return be({prefix:t,name:u,encode(i){return Us(i,n,e)},decode(i){return Ls(i,r,e,u)}})}var Rs=Ht({prefix:"9",name:"base10",alphabet:"0123456789"});var Ru={};Et(Ru,{base16:()=>Ws,base16upper:()=>Vs});var Ws=nt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Vs=nt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Wu={};Et(Wu,{base2:()=>Hs});var Hs=nt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Vu={};Et(Vu,{base256emoji:()=>Js});var sr=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),qs=sr.reduce((u,t,e)=>(u[e]=t,u),[]),Gs=sr.reduce((u,t,e)=>{let n=t.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${t}`);return u[n]=e,u},[]);function Ys(u){return u.reduce((t,e)=>(t+=qs[e],t),"")}function Ks(u){let t=[];for(let e of u){let n=e.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${e}`);let r=Gs[n];if(r==null)throw new Error(`Non-base256emoji character: ${e}`);t.push(r)}return new Uint8Array(t)}var Js=be({prefix:"\u{1F680}",name:"base256emoji",encode:Ys,decode:Ks});var Hu={};Et(Hu,{base32:()=>qt,base32hex:()=>ks,base32hexpad:()=>eo,base32hexpadupper:()=>uo,base32hexupper:()=>to,base32pad:()=>Zs,base32padupper:()=>Xs,base32upper:()=>Qs,base32z:()=>no});var qt=nt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Qs=nt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Zs=nt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Xs=nt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ks=nt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),to=nt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eo=nt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),uo=nt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),no=nt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var qu={};Et(qu,{base36:()=>$e,base36upper:()=>ro});var $e=Ht({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ro=Ht({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Gu={};Et(Gu,{base58btc:()=>jt,base58flickr:()=>io});var jt=Ht({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),io=Ht({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ku={};Et(Ku,{base64:()=>so,base64pad:()=>oo,base64url:()=>Yu,base64urlpad:()=>Do});var so=nt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),oo=nt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Yu=nt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Do=nt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Ju={};Et(Ju,{base8:()=>ao});var ao=nt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Qu={};Et(Qu,{identity:()=>co});var co=be({prefix:"\0",name:"identity",encode:u=>ur(u),decode:u=>er(u)});var Cc=new TextEncoder,Ec=new TextDecoder;var Xu={};Et(Xu,{identity:()=>Mo});var ho=ar,or=128,Fo=127,po=~Fo,mo=Math.pow(2,31);function ar(u,t,e){t=t||[],e=e||0;for(var n=e;u>=mo;)t[e++]=u&255|or,u/=128;for(;u&po;)t[e++]=u&255|or,u>>>=7;return t[e]=u|0,ar.bytes=e-n+1,t}var Co=Zu,Eo=128,Dr=127;function Zu(u,n){var e=0,n=n||0,r=0,i=n,s,D=u.length;do{if(i>=D)throw Zu.bytes=0,new RangeError("Could not decode varint");s=u[i++],e+=r<28?(s&Dr)<<r:(s&Dr)*Math.pow(2,r),r+=7}while(s>=Eo);return Zu.bytes=i-n,e}var go=Math.pow(2,7),bo=Math.pow(2,14),Bo=Math.pow(2,21),Ao=Math.pow(2,28),xo=Math.pow(2,35),wo=Math.pow(2,42),yo=Math.pow(2,49),_o=Math.pow(2,56),Oo=Math.pow(2,63),So=function(u){return u<go?1:u<bo?2:u<Bo?3:u<Ao?4:u<xo?5:u<wo?6:u<yo?7:u<_o?8:u<Oo?9:10},Po={encode:ho,decode:Co,encodingLength:So},Io=Po,Ne=Io;function Le(u,t=0){return[Ne.decode(u,t),Ne.decode.bytes]}function Be(u,t,e=0){return Ne.encode(u,t,e),t}function Ae(u){return Ne.encodingLength(u)}function we(u,t){let e=t.byteLength,n=Ae(u),r=n+Ae(e),i=new Uint8Array(r+e);return Be(u,i,0),Be(e,i,n),i.set(t,r),new xe(u,e,t,i)}function cr(u){let t=wt(u),[e,n]=Le(t),[r,i]=Le(t.subarray(n)),s=t.subarray(n+i);if(s.byteLength!==r)throw new Error("Incorrect length");return new xe(e,r,s,t)}function lr(u,t){if(u===t)return!0;{let e=t;return u.code===e.code&&u.size===e.size&&e.bytes instanceof Uint8Array&&tr(u.bytes,e.bytes)}}var xe=class{code;size;digest;bytes;constructor(t,e,n,r){this.code=t,this.size=e,this.digest=ne(n),this.bytes=ne(r)}};var fr=0,vo="identity",hr=wt;function jo(u,t){if(t?.truncate!=null&&t.truncate!==u.byteLength){if(t.truncate<0||t.truncate>u.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${u.byteLength}`);u=u.subarray(0,t.truncate)}return we(fr,hr(u))}var Mo={code:fr,name:vo,encode:hr,digest:jo};var un={};Et(un,{sha256:()=>$o,sha512:()=>No});var en=ee(J("node:crypto"),1);var To=20;function tn({name:u,code:t,encode:e,minDigestLength:n,maxDigestLength:r}){return new ku(u,t,e,n,r)}var ku=class{name;code;encode;minDigestLength;maxDigestLength;constructor(t,e,n,r,i){this.name=t,this.code=e,this.encode=n,this.minDigestLength=r??To,this.maxDigestLength=i}digest(t,e){if(e?.truncate!=null){if(e.truncate<this.minDigestLength)throw new Error(`Invalid truncate option, must be greater than or equal to ${this.minDigestLength}`);if(this.maxDigestLength!=null&&e.truncate>this.maxDigestLength)throw new Error(`Invalid truncate option, must be less than or equal to ${this.maxDigestLength}`)}if(t instanceof Uint8Array){let n=this.encode(t);return n instanceof Uint8Array?Fr(n,this.code,e?.truncate):n.then(r=>Fr(r,this.code,e?.truncate))}else throw Error("Unknown type, must be binary type")}};function Fr(u,t,e){if(e!=null&&e!==u.byteLength){if(e>u.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${u.byteLength}`);u=u.subarray(0,e)}return we(t,u)}var $o=tn({name:"sha2-256",code:18,encode:u=>wt(en.default.createHash("sha256").update(u).digest())}),No=tn({name:"sha2-512",code:19,encode:u=>wt(en.default.createHash("sha512").update(u).digest())});function pr(u,t){let{bytes:e,version:n}=u;return n===0?Uo(e,nn(u),t??jt.encoder):zo(e,nn(u),t??qt.encoder)}var mr=new WeakMap;function nn(u){let t=mr.get(u);if(t==null){let e=new Map;return mr.set(u,e),e}return t}var ye=class u{code;version;multihash;bytes;"/";constructor(t,e,n,r){this.code=e,this.version=t,this.multihash=n,this.bytes=ne(r),this["/"]=this.bytes}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:t,multihash:e}=this;if(t!==ze)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==Ro)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(e)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:t,digest:e}=this.multihash,n=we(t,e);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(t){return u.equals(this,t)}static equals(t,e){let n=e;return n!=null&&t.code===n.code&&t.version===n.version&&lr(t.multihash,n.multihash)}toString(t){return pr(this,t)}toJSON(){return{"/":pr(this)}}link(){return this}[Symbol.toStringTag]="CID";[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(t){if(t==null)return null;let e=t;if(e instanceof u)return e;if(e["/"]!=null&&e["/"]===e.bytes||e.asCID===e){let{version:n,code:r,multihash:i,bytes:s}=e;return new u(n,r,i,s??Cr(n,r,i.bytes))}else if(e[Wo]===!0){let{version:n,multihash:r,code:i}=e,s=cr(r);return u.create(n,i,s)}else return null}static create(t,e,n){if(typeof e!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(t){case 0:{if(e!==ze)throw new Error(`Version 0 CID must use dag-pb (code: ${ze}) block encoding`);return new u(t,e,n,n.bytes)}case 1:{let r=Cr(t,e,n.bytes);return new u(t,e,n,r)}default:throw new Error("Invalid version")}}static createV0(t){return u.create(0,ze,t)}static createV1(t,e){return u.create(1,t,e)}static decode(t){let[e,n]=u.decodeFirst(t);if(n.length!==0)throw new Error("Incorrect length");return e}static decodeFirst(t){let e=u.inspectBytes(t),n=e.size-e.multihashSize,r=wt(t.subarray(n,n+e.multihashSize));if(r.byteLength!==e.multihashSize)throw new Error("Incorrect length");let i=r.subarray(e.multihashSize-e.digestSize),s=new xe(e.multihashCode,e.digestSize,i,r);return[e.version===0?u.createV0(s):u.createV1(e.codec,s),t.subarray(e.size)]}static inspectBytes(t){let e=0,n=()=>{let[c,p]=Le(t.subarray(e));return e+=p,c},r=n(),i=ze;if(r===18?(r=0,e=0):i=n(),r!==0&&r!==1)throw new RangeError(`Invalid CID version ${r}`);let s=e,D=n(),l=n(),m=e+l,d=m-s;return{version:r,codec:i,multihashCode:D,digestSize:l,multihashSize:d,size:m}}static parse(t,e){let[n,r]=Lo(t,e),i=u.decode(r);if(i.version===0&&t[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return nn(i).set(n,t),i}};function Lo(u,t){switch(u[0]){case"Q":{let e=t??jt;return[jt.prefix,e.decode(`${jt.prefix}${u}`)]}case jt.prefix:{let e=t??jt;return[jt.prefix,e.decode(u)]}case qt.prefix:{let e=t??qt;return[qt.prefix,e.decode(u)]}case $e.prefix:{let e=t??$e;return[$e.prefix,e.decode(u)]}default:{if(t==null)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[u[0],t.decode(u)]}}}function Uo(u,t,e){let{prefix:n}=e;if(n!==jt.prefix)throw Error(`Cannot string encode V0 in ${e.name} encoding`);let r=t.get(n);if(r==null){let i=e.encode(u).slice(1);return t.set(n,i),i}else return r}function zo(u,t,e){let{prefix:n}=e,r=t.get(n);if(r==null){let i=e.encode(u);return t.set(n,i),i}else return r}var ze=112,Ro=18;function Cr(u,t,e){let n=Ae(u),r=n+Ae(t),i=new Uint8Array(r+e.byteLength);return Be(u,i,0),Be(t,i,n),i.set(e,r),i}var Wo=Symbol.for("@ipld/js-cid/CID");var Re={...Qu,...Wu,...Ju,...zu,...Ru,...Hu,...qu,...Gu,...Ku,...Vu},Wc={...un,...Xu};function gr(u,t,e,n){return{name:u,prefix:t,encoder:{name:u,prefix:t,encode:e},decoder:{decode:n}}}var Er=gr("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),rn=gr("ascii","a",u=>{let t="a";for(let e=0;e<u.length;e++)t+=String.fromCharCode(u[e]);return t},u=>{u=u.substring(1);let t=Te(u.length);for(let e=0;e<u.length;e++)t[e]=u.charCodeAt(e);return t}),Vo={utf8:Er,"utf-8":Er,hex:Re.base16,latin1:rn,ascii:rn,binary:rn,...Re},Ze=Vo;function _e(u,t="utf8"){let e=Ze[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return t==="utf8"||t==="utf-8"?ue(br.Buffer.from(u,"utf-8")):e.decoder.decode(`${e.prefix}${u}`)}var Br=J("node:buffer");function Gt(u,t="utf8"){let e=Ze[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return t==="utf8"||t==="utf-8"?Br.Buffer.from(u.buffer,u.byteOffset,u.byteLength).toString("utf8"):e.encoder.encode(u).substring(1)}var ht=class extends Error{static name="InvalidMultiaddrError";name="InvalidMultiaddrError"},Lt=class extends Error{static name="ValidationError";name="ValidationError"},Xe=class extends Error{static name="InvalidParametersError";name="InvalidParametersError"},ke=class extends Error{static name="UnknownProtocolError";name="UnknownProtocolError"};var Ut=J("node:net");function on(u){return t=>Gt(t,u)}function Dn(u){return t=>_e(t,u)}function Oe(u){return new DataView(u.buffer).getUint16(u.byteOffset).toString()}function re(u){let t=new ArrayBuffer(2);return new DataView(t).setUint16(0,typeof u=="string"?parseInt(u):u),new Uint8Array(t)}function Ar(u){let t=u.split(":");if(t.length!==2)throw new Error(`failed to parse onion addr: ["'${t.join('", "')}'"]' does not contain a port number`);if(t[0].length!==16)throw new Error(`failed to parse onion addr: ${t[0]} not a Tor onion address.`);let e=_e(t[0],"base32"),n=parseInt(t[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let r=re(n);return ge([e,r],e.length+r.length)}function xr(u){let t=u.split(":");if(t.length!==2)throw new Error(`failed to parse onion addr: ["'${t.join('", "')}'"]' does not contain a port number`);if(t[0].length!==56)throw new Error(`failed to parse onion addr: ${t[0]} not a Tor onion3 address.`);let e=qt.decode(`b${t[0]}`),n=parseInt(t[1],10);if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)");let r=re(n);return ge([e,r],e.length+r.length)}function an(u){let t=u.subarray(0,u.length-2),e=u.subarray(u.length-2),n=Gt(t,"base32"),r=Oe(e);return`${n}:${r}`}var cn=function(u){u=u.toString().trim();let t=new Uint8Array(4);return u.split(/\./g).forEach((e,n)=>{let r=parseInt(e,10);if(isNaN(r)||r<0||r>255)throw new ht("Invalid byte value in IP address");t[n]=r}),t},wr=function(u){let t=0;u=u.toString().trim();let e=u.split(":",8),n;for(n=0;n<e.length;n++){let i=(0,Ut.isIPv4)(e[n]),s;i&&(s=cn(e[n]),e[n]=Gt(s.subarray(0,2),"base16")),s!=null&&++n<8&&e.splice(n,0,Gt(s.subarray(2,4),"base16"))}if(e[0]==="")for(;e.length<8;)e.unshift("0");else if(e[e.length-1]==="")for(;e.length<8;)e.push("0");else if(e.length<8){for(n=0;n<e.length&&e[n]!=="";n++);let i=[n,1];for(n=9-e.length;n>0;n--)i.push("0");e.splice.apply(e,i)}let r=new Uint8Array(t+16);for(n=0;n<e.length;n++){e[n]===""&&(e[n]="0");let i=parseInt(e[n],16);if(isNaN(i)||i<0||i>65535)throw new ht("Invalid byte value in IP address");r[t++]=i>>8&255,r[t++]=i&255}return r},yr=function(u){if(u.byteLength!==4)throw new ht("IPv4 address was incorrect length");let t=[];for(let e=0;e<u.byteLength;e++)t.push(u[e]);return t.join(".")},_r=function(u){if(u.byteLength!==16)throw new ht("IPv6 address was incorrect length");let t=[];for(let n=0;n<u.byteLength;n+=2){let r=u[n],i=u[n+1],s=`${r.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}`;t.push(s)}let e=t.join(":");try{let n=new URL(`http://[${e}]`);return n.hostname.substring(1,n.hostname.length-1)}catch{throw new ht(`Invalid IPv6 address "${e}"`)}};function Or(u){try{let t=new URL(`http://[${u}]`);return t.hostname.substring(1,t.hostname.length-1)}catch{throw new ht(`Invalid IPv6 address "${u}"`)}}var sn=Object.values(Re).map(u=>u.decoder),Ho=(function(){let u=sn[0].or(sn[1]);return sn.slice(2).forEach(t=>u=u.or(t)),u})();function Sr(u){return Ho.decode(u)}function Pr(u){return t=>u.encoder.encode(t)}function qo(u){if(parseInt(u).toString()!==u)throw new Lt("Value must be an integer")}function Go(u){if(u<0)throw new Lt("Value must be a positive integer, or zero")}function Yo(u){return t=>{if(t>u)throw new Lt(`Value must be smaller than or equal to ${u}`)}}function Ko(...u){return t=>{for(let e of u)e(t)}}var We=Ko(qo,Go,Yo(65535));var lt=-1,ln=class{protocolsByCode=new Map;protocolsByName=new Map;getProtocol(t){let e;if(typeof t=="string"?e=this.protocolsByName.get(t):e=this.protocolsByCode.get(t),e==null)throw new ke(`Protocol ${t} was unknown`);return e}addProtocol(t){this.protocolsByCode.set(t.code,t),this.protocolsByName.set(t.name,t),t.aliases?.forEach(e=>{this.protocolsByName.set(e,t)})}removeProtocol(t){let e=this.protocolsByCode.get(t);e!=null&&(this.protocolsByCode.delete(e.code),this.protocolsByName.delete(e.name),e.aliases?.forEach(n=>{this.protocolsByName.delete(n)}))}},zt=new ln,TD=[{code:4,name:"ip4",size:32,valueToBytes:cn,bytesToValue:yr,validate:u=>{if(!(0,Ut.isIPv4)(u))throw new Lt(`Invalid IPv4 address "${u}"`)}},{code:6,name:"tcp",size:16,valueToBytes:re,bytesToValue:Oe,validate:We},{code:273,name:"udp",size:16,valueToBytes:re,bytesToValue:Oe,validate:We},{code:33,name:"dccp",size:16,valueToBytes:re,bytesToValue:Oe,validate:We},{code:41,name:"ip6",size:128,valueToBytes:wr,bytesToValue:_r,stringToValue:Or,validate:u=>{if(!(0,Ut.isIPv6)(u))throw new Lt(`Invalid IPv6 address "${u}"`)}},{code:42,name:"ip6zone",size:lt},{code:43,name:"ipcidr",size:8,bytesToValue:on("base10"),valueToBytes:Dn("base10")},{code:53,name:"dns",size:lt},{code:54,name:"dns4",size:lt},{code:55,name:"dns6",size:lt},{code:56,name:"dnsaddr",size:lt},{code:132,name:"sctp",size:16,valueToBytes:re,bytesToValue:Oe,validate:We},{code:301,name:"udt"},{code:302,name:"utp"},{code:400,name:"unix",size:lt,stringToValue:u=>decodeURIComponent(u),valueToString:u=>encodeURIComponent(u)},{code:421,name:"p2p",aliases:["ipfs"],size:lt,bytesToValue:on("base58btc"),valueToBytes:u=>u.startsWith("Q")||u.startsWith("1")?Dn("base58btc")(u):ye.parse(u).multihash.bytes},{code:444,name:"onion",size:96,bytesToValue:an,valueToBytes:Ar},{code:445,name:"onion3",size:296,bytesToValue:an,valueToBytes:xr},{code:446,name:"garlic64",size:lt},{code:447,name:"garlic32",size:lt},{code:448,name:"tls"},{code:449,name:"sni",size:lt},{code:454,name:"noise"},{code:460,name:"quic"},{code:461,name:"quic-v1"},{code:465,name:"webtransport"},{code:466,name:"certhash",size:lt,bytesToValue:Pr(Yu),valueToBytes:Sr},{code:480,name:"http"},{code:481,name:"http-path",size:lt,stringToValue:u=>`/${decodeURIComponent(u)}`,valueToString:u=>encodeURIComponent(u.substring(1))},{code:443,name:"https"},{code:477,name:"ws"},{code:478,name:"wss"},{code:479,name:"p2p-websocket-star"},{code:277,name:"p2p-stardust"},{code:275,name:"p2p-webrtc-star"},{code:276,name:"p2p-webrtc-direct"},{code:280,name:"webrtc-direct"},{code:281,name:"webrtc"},{code:290,name:"p2p-circuit"},{code:777,name:"memory",size:lt}];TD.forEach(u=>{zt.addProtocol(u)});function Ir(u){let t=[],e=0;for(;e<u.length;){let n=Mu(u,e),r=zt.getProtocol(n),i=Ee(n),s=$D(r,u,e+i),D=0;s>0&&r.size===lt&&(D=Ee(s));let l=i+D+s,m={code:n,name:r.name,bytes:Tu(u.subarray(e,e+l))};if(s>0){let d=e+i+D,c=u.subarray(d,d+s);m.value=r.bytesToValue?.(c)??Gt(c)}t.push(m),e+=l}return t}function vr(u){let t=0,e=[];for(let n of u){if(n.bytes==null){let r=zt.getProtocol(n.code),i=Ee(n.code),s,D=0,l=0;n.value!=null&&(s=r.valueToBytes?.(n.value)??_e(n.value),D=s.byteLength,r.size===lt&&(l=Ee(D)));let m=new Uint8Array(i+l+D),d=0;ju(n.code,m,d),d+=i,s!=null&&(r.size===lt&&(ju(D,m,d),d+=l),m.set(s,d)),n.bytes=m}e.push(n.bytes),t+=n.bytes.byteLength}return ge(e,t)}function jr(u){if(u.charAt(0)!=="/")throw new ht('String multiaddr must start with "/"');let t=[],e="protocol",n="",r="";for(let i=1;i<u.length;i++){let s=u.charAt(i);s!=="/"&&(e==="protocol"?r+=u.charAt(i):n+=u.charAt(i));let D=i===u.length-1;if(s==="/"||D){let l=zt.getProtocol(r);if(e==="protocol"){if(l.size==null||l.size===0){t.push({code:l.code,name:l.name}),n="",r="",e="protocol";continue}else if(D)throw new ht(`Component ${r} was missing value`);e="value"}else if(e==="value"){let m={code:l.code,name:l.name};if(l.size!=null&&l.size!==0){if(n==="")throw new ht(`Component ${r} was missing value`);m.value=l.stringToValue?.(n)??n}t.push(m),n="",r="",e="protocol"}}}if(r!==""&&n!=="")throw new ht("Incomplete multiaddr");return t}function Mr(u){return`/${u.flatMap(t=>{if(t.value==null)return t.name;let e=zt.getProtocol(t.code);if(e==null)throw new ht(`Unknown protocol code ${t.code}`);return[t.name,e.valueToString?.(t.value)??t.value]}).join("/")}`}function $D(u,t,e){return u.size==null||u.size===0?0:u.size>0?u.size/8:Mu(t,e)}var ND=Symbol.for("nodejs.util.inspect.custom"),fn=Symbol.for("@multiformats/multiaddr");function LD(u){if(u==null&&(u="/"),Tr(u))return u.getComponents();if(u instanceof Uint8Array)return Ir(u);if(typeof u=="string")return u=u.replace(/\/(\/)+/,"/").replace(/(\/)+$/,""),u===""&&(u="/"),jr(u);if(Array.isArray(u))return u;throw new ht("Must be a string, Uint8Array, Component[], or another Multiaddr")}var tu=class u{[fn]=!0;#t;#e;#u;constructor(t="/",e={}){this.#t=LD(t),e.validate!==!1&&UD(this)}get bytes(){return this.#u==null&&(this.#u=vr(this.#t)),this.#u}toString(){return this.#e==null&&(this.#e=Mr(this.#t)),this.#e}toJSON(){return this.toString()}getComponents(){return[...this.#t.map(t=>({...t}))]}encapsulate(t){let e=new u(t);return new u([...this.#t,...e.getComponents()],{validate:!1})}decapsulate(t){let e=t.toString(),n=this.toString(),r=n.lastIndexOf(e);if(r<0)throw new Xe(`Address ${this.toString()} does not contain subaddress: ${e}`);return new u(n.slice(0,r),{validate:!1})}decapsulateCode(t){let e;for(let n=this.#t.length-1;n>-1;n--)if(this.#t[n].code===t){e=n;break}return new u(this.#t.slice(0,e),{validate:!1})}equals(t){return Ou(this.bytes,t.bytes)}[ND](){return`Multiaddr(${this.toString()})`}};function UD(u){u.getComponents().forEach(t=>{let e=zt.getProtocol(t.code);t.value!=null&&e.validate?.(t.value)})}function Tr(u){return!!u?.[fn]}function $r(u){return new tu(u)}var Nr=J("module"),Fn=ee(J("path"),1),hn=ee(J("process"),1),Lr=J("url");function zD(u){let t=Fn.default.extname(u);return t?u.slice(0,-t.length):u}function dn(u){if(!u)return!1;if("main"in u)return!!u.main;if(!hn.default.argv[1])return!1;let e=(0,Nr.createRequire)(u.url).resolve(hn.default.argv[1]),n=(0,Lr.fileURLToPath)(u.url);return Fn.default.extname(e)?n===e:zD(n)===e}var fu=J("assert");var RD={right:GD,center:YD},WD=0,eu=1,VD=2,uu=3,pn=class{constructor(t){var e;this.width=t.width,this.wrap=(e=t.wrap)!==null&&e!==void 0?e:!0,this.rows=[]}span(...t){let e=this.div(...t);e.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let e=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(e),e}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let e=t.split(`
4
+ `).map(r=>r.split(" ")),n=0;return e.forEach(r=>{r.length>1&&gt.stringWidth(r[0])>n&&(n=Math.min(Math.floor(this.width*.5),gt.stringWidth(r[0])))}),e.forEach(r=>{this.div(...r.map((i,s)=>({text:i.trim(),padding:this.measurePadding(i),width:s===0&&r.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let e=gt.stripAnsi(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(e=>{this.rowToString(e,t)}),t.filter(e=>!e.hidden).map(e=>e.text).join(`
5
+ `)}rowToString(t,e){return this.rasterize(t).forEach((n,r)=>{let i="";n.forEach((s,D)=>{let{width:l}=t[D],m=this.negatePadding(t[D]),d=s;if(m>gt.stringWidth(s)&&(d+=" ".repeat(m-gt.stringWidth(s))),t[D].align&&t[D].align!=="left"&&this.wrap){let p=RD[t[D].align];d=p(d,m),gt.stringWidth(d)<m&&(d+=" ".repeat((l||0)-gt.stringWidth(d)-1))}let c=t[D].padding||[0,0,0,0];c[uu]&&(i+=" ".repeat(c[uu])),i+=Ur(t[D],d,"| "),i+=d,i+=Ur(t[D],d," |"),c[eu]&&(i+=" ".repeat(c[eu])),r===0&&e.length>0&&(i=this.renderInline(i,e[e.length-1]))}),e.push({text:i.replace(/ +$/,""),span:t.span})}),e}renderInline(t,e){let n=t.match(/^ */),r=n?n[0].length:0,i=e.text,s=gt.stringWidth(i.trimRight());return e.span?this.wrap?r<s?t:(e.hidden=!0,i.trimRight()+" ".repeat(r-s)+t.trimLeft()):(e.hidden=!0,i+t):t}rasterize(t){let e=[],n=this.columnWidths(t),r;return t.forEach((i,s)=>{i.width=n[s],this.wrap?r=gt.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
6
6
  `):r=i.text.split(`
7
- `),i.border&&(r.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(r.unshift(...new Array(i.padding[VD]||0).fill("")),r.push(...new Array(i.padding[HD]||0).fill(""))),r.forEach((D,l)=>{t[l]||t.push([]);let m=t[l];for(let d=0;d<s;d++)m[d]===void 0&&m.push("");m.push(D)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[nu]||0)+(e.padding[uu]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(s=>s.width||ge.stringWidth(s.text));let t=e.length,n=this.width,r=e.map(s=>{if(s.width)return t--,n-=s.width,s.width}),i=t?Math.floor(n/t):0;return r.map((s,D)=>s===void 0?Math.max(i,qD(e[D])):s)}};function zr(u,e,t){return u.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function qD(u){let e=u.padding||[],t=1+(e[nu]||0)+(e[uu]||0);return u.border?t+4:t}function GD(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function YD(u,e){u=u.trim();let t=ge.stringWidth(u);return t<e?" ".repeat(e-t)+u:u}function KD(u,e){u=u.trim();let t=ge.stringWidth(u);return t>=e?u:" ".repeat(e-t>>1)+u}var ge;function Rr(u,e){return ge=e,new mn({width:u?.width||GD(),wrap:u?.wrap})}function Vt({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var JD=Vt();function rt(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(JD,"")}var Wr=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Vr=12288,Hr=65510,qr=[12288,12288,65281,65376,65504,65510];var Gr=4352,Yr=262141,Cn=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var ru=(u,e)=>{let t=0,n=Math.floor(u.length/2)-1;for(;t<=n;){let r=Math.floor((t+n)/2),i=r*2;if(e<u[i])n=r-1;else if(e>u[i+1])t=r+1;else return!0}return!1};var Kr=19968,[XD,kD]=ea(Cn);function ea(u){let e=u[0],t=u[1];for(let n=0;n<u.length;n+=2){let r=u[n],i=u[n+1];if(Kr>=r&&Kr<=i)return[r,i];i-r>t-e&&(e=r,t=i)}return[e,t]}var Jr=u=>u<161||u>1114109?!1:ru(Wr,u),Qr=u=>u<Vr||u>Hr?!1:ru(qr,u);var Zr=u=>u>=XD&&u<=kD?!0:u<Gr||u>Yr?!1:ru(Cn,u);function ta(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function iu(u,{ambiguousAsWide:e=!1}={}){return ta(u),Qr(u)||Zr(u)||e&&Jr(u)?2:1}var ei=et(kr(),1),ua=new Intl.Segmenter,na=/^\p{Default_Ignorable_Code_Point}$/u;function Re(u,e={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(u=rt(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:s}of ua.segment(u)){let D=s.codePointAt(0);if(!(D<=31||D>=127&&D<=159)&&!(D>=8203&&D<=8207||D===65279)&&!(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)&&!(D>=55296&&D<=57343)&&!(D>=65024&&D<=65039)&&!na.test(s)){if((0,ei.default)().test(s)){r+=2;continue}r+=iu(D,i)}}return r}var ti=(u=0)=>e=>`\x1B[${e+u}m`,ui=(u=0)=>e=>`\x1B[${38+u};5;${e}m`,ni=(u=0)=>(e,t,n)=>`\x1B[${38+u};2;${e};${t};${n}m`,X={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]}},Bf=Object.keys(X.modifier),ra=Object.keys(X.color),ia=Object.keys(X.bgColor),Af=[...ra,...ia];function sa(){let u=new Map;for(let[e,t]of Object.entries(X)){for(let[n,r]of Object.entries(t))X[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[n]=X[n],u.set(r[0],r[1]);Object.defineProperty(X,e,{value:t,enumerable:!1})}return Object.defineProperty(X,"codes",{value:u,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=ti(),X.color.ansi256=ui(),X.color.ansi16m=ni(),X.bgColor.ansi=ti(10),X.bgColor.ansi256=ui(10),X.bgColor.ansi16m=ni(10),Object.defineProperties(X,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(i=>i+i).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>X.rgbToAnsi256(...X.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let D=e%36;t=Math.floor(e/36)/5,n=Math.floor(D/6)/5,r=D%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let s=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>X.ansi256ToAnsi(X.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>X.ansi256ToAnsi(X.hexToAnsi256(e)),enumerable:!1}}),X}var oa=sa(),ri=oa;var ou=new Set(["\x1B","\x9B"]),Da=39,gn="\x07",oi="[",aa="]",Di="m",su=`${aa}8;;`,ii=u=>`${ou.values().next().value}${oi}${u}${Di}`,si=u=>`${ou.values().next().value}${su}${u}${gn}`,ca=u=>u.split(" ").map(e=>Re(e)),En=(u,e,t)=>{let n=[...e],r=!1,i=!1,s=Re(rt(u.at(-1)));for(let[D,l]of n.entries()){let m=Re(l);if(s+m<=t?u[u.length-1]+=l:(u.push(l),s=0),ou.has(l)&&(r=!0,i=n.slice(D+1,D+1+su.length).join("")===su),r){i?l===gn&&(r=!1,i=!1):l===Di&&(r=!1);continue}s+=m,s===t&&D<n.length-1&&(u.push(""),s=0)}!s&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},la=u=>{let e=u.split(" "),t=e.length;for(;t>0&&!(Re(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},fa=(u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let n="",r,i,s=ca(u),D=[""];for(let[c,p]of u.split(" ").entries()){t.trim!==!1&&(D[D.length-1]=D.at(-1).trimStart());let g=Re(D.at(-1));if(c!==0&&(g>=e&&(t.wordWrap===!1||t.trim===!1)&&(D.push(""),g=0),(g>0||t.trim===!1)&&(D[D.length-1]+=" ",g++)),t.hard&&s[c]>e){let E=e-g,b=1+Math.floor((s[c]-E-1)/e);Math.floor((s[c]-1)/e)<b&&D.push(""),En(D,p,e);continue}if(g+s[c]>e&&g>0&&s[c]>0){if(t.wordWrap===!1&&g<e){En(D,p,e);continue}D.push("")}if(g+s[c]>e&&t.wordWrap===!1){En(D,p,e);continue}D[D.length-1]+=p}t.trim!==!1&&(D=D.map(c=>la(c)));let l=D.join(`
8
- `),m=[...l],d=0;for(let[c,p]of m.entries()){if(n+=p,ou.has(p)){let{groups:E}=new RegExp(`(?:\\${oi}(?<code>\\d+)m|\\${su}(?<uri>.*)${gn})`).exec(l.slice(d))||{groups:{}};if(E.code!==void 0){let b=Number.parseFloat(E.code);r=b===Da?void 0:b}else E.uri!==void 0&&(i=E.uri.length===0?void 0:E.uri)}let g=ri.codes.get(Number(r));m[c+1]===`
9
- `?(i&&(n+=si("")),r&&g&&(n+=ii(g))):p===`
10
- `&&(r&&g&&(n+=ii(r)),i&&(n+=si(i))),d+=p.length}return n};function bn(u,e,t){return String(u).normalize().replaceAll(`\r
7
+ `),i.border&&(r.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),r.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(r.unshift(...new Array(i.padding[WD]||0).fill("")),r.push(...new Array(i.padding[VD]||0).fill(""))),r.forEach((D,l)=>{e[l]||e.push([]);let m=e[l];for(let d=0;d<s;d++)m[d]===void 0&&m.push("");m.push(D)})}),e}negatePadding(t){let e=t.width||0;return t.padding&&(e-=(t.padding[uu]||0)+(t.padding[eu]||0)),t.border&&(e-=4),e}columnWidths(t){if(!this.wrap)return t.map(s=>s.width||gt.stringWidth(s.text));let e=t.length,n=this.width,r=t.map(s=>{if(s.width)return e--,n-=s.width,s.width}),i=e?Math.floor(n/e):0;return r.map((s,D)=>s===void 0?Math.max(i,HD(t[D])):s)}};function Ur(u,t,e){return u.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?e:" ":""}function HD(u){let t=u.padding||[],e=1+(t[uu]||0)+(t[eu]||0);return u.border?e+4:e}function qD(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function GD(u,t){u=u.trim();let e=gt.stringWidth(u);return e<t?" ".repeat(t-e)+u:u}function YD(u,t){u=u.trim();let e=gt.stringWidth(u);return e>=t?u:" ".repeat(t-e>>1)+u}var gt;function zr(u,t){return gt=t,new pn({width:u?.width||qD(),wrap:u?.wrap})}function mn({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var KD=mn();function Rt(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(KD,"")}var Rr=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Wr=12288,Vr=65510,Hr=[12288,12288,65281,65376,65504,65510];var qr=4352,Gr=262141,Cn=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var nu=(u,t)=>{let e=0,n=Math.floor(u.length/2)-1;for(;e<=n;){let r=Math.floor((e+n)/2),i=r*2;if(t<u[i])n=r-1;else if(t>u[i+1])e=r+1;else return!0}return!1};var Yr=19968,[ZD,XD]=kD(Cn);function kD(u){let t=u[0],e=u[1];for(let n=0;n<u.length;n+=2){let r=u[n],i=u[n+1];if(Yr>=r&&Yr<=i)return[r,i];i-r>e-t&&(t=r,e=i)}return[t,e]}var Kr=u=>u<161||u>1114109?!1:nu(Rr,u),Jr=u=>u<Wr||u>Vr?!1:nu(Hr,u);var Qr=u=>u>=ZD&&u<=XD?!0:u<qr||u>Gr?!1:nu(Cn,u);function ta(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function ru(u,{ambiguousAsWide:t=!1}={}){return ta(u),Jr(u)||Qr(u)||t&&Kr(u)?2:1}var kr=ee(Xr(),1),ea=new Intl.Segmenter,ua=/^\p{Default_Ignorable_Code_Point}$/u;function Wt(u,t={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(u=Rt(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!e};for(let{segment:s}of ea.segment(u)){let D=s.codePointAt(0);if(!(D<=31||D>=127&&D<=159)&&!(D>=8203&&D<=8207||D===65279)&&!(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)&&!(D>=55296&&D<=57343)&&!(D>=65024&&D<=65039)&&!ua.test(s)){if((0,kr.default)().test(s)){r+=2;continue}r+=ru(D,i)}}return r}var ti=(u=0)=>t=>`\x1B[${t+u}m`,ei=(u=0)=>t=>`\x1B[${38+u};5;${t}m`,ui=(u=0)=>(t,e,n)=>`\x1B[${38+u};2;${t};${e};${n}m`,X={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]}},gf=Object.keys(X.modifier),na=Object.keys(X.color),ra=Object.keys(X.bgColor),bf=[...na,...ra];function ia(){let u=new Map;for(let[t,e]of Object.entries(X)){for(let[n,r]of Object.entries(e))X[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[n]=X[n],u.set(r[0],r[1]);Object.defineProperty(X,t,{value:e,enumerable:!1})}return Object.defineProperty(X,"codes",{value:u,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=ti(),X.color.ansi256=ei(),X.color.ansi16m=ui(),X.bgColor.ansi=ti(10),X.bgColor.ansi256=ei(10),X.bgColor.ansi16m=ui(10),Object.defineProperties(X,{rgbToAnsi256:{value(t,e,n){return t===e&&e===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[n]=e;n.length===3&&(n=[...n].map(i=>i+i).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>X.rgbToAnsi256(...X.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let e,n,r;if(t>=232)e=((t-232)*10+8)/255,n=e,r=e;else{t-=16;let D=t%36;e=Math.floor(t/36)/5,n=Math.floor(D/6)/5,r=D%6/5}let i=Math.max(e,n,r)*2;if(i===0)return 30;let s=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(e));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,e,n)=>X.ansi256ToAnsi(X.rgbToAnsi256(t,e,n)),enumerable:!1},hexToAnsi:{value:t=>X.ansi256ToAnsi(X.hexToAnsi256(t)),enumerable:!1}}),X}var sa=ia(),ni=sa;var su=new Set(["\x1B","\x9B"]),oa=39,gn="\x07",si="[",Da="]",oi="m",iu=`${Da}8;;`,ri=u=>`${su.values().next().value}${si}${u}${oi}`,ii=u=>`${su.values().next().value}${iu}${u}${gn}`,aa=u=>u.split(" ").map(t=>Wt(t)),En=(u,t,e)=>{let n=[...t],r=!1,i=!1,s=Wt(Rt(u.at(-1)));for(let[D,l]of n.entries()){let m=Wt(l);if(s+m<=e?u[u.length-1]+=l:(u.push(l),s=0),su.has(l)&&(r=!0,i=n.slice(D+1,D+1+iu.length).join("")===iu),r){i?l===gn&&(r=!1,i=!1):l===oi&&(r=!1);continue}s+=m,s===e&&D<n.length-1&&(u.push(""),s=0)}!s&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},ca=u=>{let t=u.split(" "),e=t.length;for(;e>0&&!(Wt(t[e-1])>0);)e--;return e===t.length?u:t.slice(0,e).join(" ")+t.slice(e).join("")},la=(u,t,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,i,s=aa(u),D=[""];for(let[c,p]of u.split(" ").entries()){e.trim!==!1&&(D[D.length-1]=D.at(-1).trimStart());let g=Wt(D.at(-1));if(c!==0&&(g>=t&&(e.wordWrap===!1||e.trim===!1)&&(D.push(""),g=0),(g>0||e.trim===!1)&&(D[D.length-1]+=" ",g++)),e.hard&&s[c]>t){let E=t-g,b=1+Math.floor((s[c]-E-1)/t);Math.floor((s[c]-1)/t)<b&&D.push(""),En(D,p,t);continue}if(g+s[c]>t&&g>0&&s[c]>0){if(e.wordWrap===!1&&g<t){En(D,p,t);continue}D.push("")}if(g+s[c]>t&&e.wordWrap===!1){En(D,p,t);continue}D[D.length-1]+=p}e.trim!==!1&&(D=D.map(c=>ca(c)));let l=D.join(`
8
+ `),m=[...l],d=0;for(let[c,p]of m.entries()){if(n+=p,su.has(p)){let{groups:E}=new RegExp(`(?:\\${si}(?<code>\\d+)m|\\${iu}(?<uri>.*)${gn})`).exec(l.slice(d))||{groups:{}};if(E.code!==void 0){let b=Number.parseFloat(E.code);r=b===oa?void 0:b}else E.uri!==void 0&&(i=E.uri.length===0?void 0:E.uri)}let g=ni.codes.get(Number(r));m[c+1]===`
9
+ `?(i&&(n+=ii("")),r&&g&&(n+=ri(g))):p===`
10
+ `&&(r&&g&&(n+=ri(r)),i&&(n+=ii(i))),d+=p.length}return n};function bn(u,t,e){return String(u).normalize().replaceAll(`\r
11
11
  `,`
12
12
  `).split(`
13
- `).map(n=>fa(n,e,t)).join(`
14
- `)}function Bn(u){return Rr(u,{stringWidth:Re,stripAnsi:rt,wrap:bn})}var St=J("path"),Du=J("fs");function ai(u,e){let t=(0,St.resolve)(".",u),n;for((0,Du.statSync)(t).isDirectory()||(t=(0,St.dirname)(t));;){if(n=e(t,(0,Du.readdirSync)(t)),n)return(0,St.resolve)(t,n);if(t=(0,St.dirname)(n=t),n===t)break}}var Pi=J("util"),vn=J("url");var di=J("util"),fu=J("path");function it(u){if(u!==u.toLowerCase()&&u!==u.toUpperCase()||(u=u.toLowerCase()),u.indexOf("-")===-1&&u.indexOf("_")===-1)return u;{let t="",n=!1,r=u.match(/^-+/);for(let i=r?r[0].length:0;i<u.length;i++){let s=u.charAt(i);n&&(n=!1,s=s.toUpperCase()),i!==0&&(s==="-"||s==="_")?n=!0:s!=="-"&&s!=="_"&&(t+=s)}return t}}function au(u,e){let t=u.toLowerCase();e=e||"-";let n="";for(let r=0;r<u.length;r++){let i=t.charAt(r),s=u.charAt(r);i!==s&&r>0?n+=`${e}${t.charAt(r)}`:n+=s}return n}function cu(u){return u==null?!1:typeof u=="number"||/^0x[0-9a-f]+$/i.test(u)?!0:/^0[^.]/.test(u)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function ci(u){if(Array.isArray(u))return u.map(s=>typeof s!="string"?s+"":s);u=u.trim();let e=0,t=null,n=null,r=null,i=[];for(let s=0;s<u.length;s++){if(t=n,n=u.charAt(s),n===" "&&!r){t!==" "&&e++;continue}n===r?r=null:(n==="'"||n==='"')&&!r&&(r=n),i[e]||(i[e]=""),i[e]+=n}return i}var ye;(function(u){u.BOOLEAN="boolean",u.STRING="string",u.NUMBER="number",u.ARRAY="array"})(ye||(ye={}));var We,lu=class{constructor(e){We=e}parse(e,t){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),r=ci(e),i=typeof e=="string",s=ha(Object.assign(Object.create(null),n.alias)),D=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),m=n.configObjects||[],d=n.envPrefix,c=D["populate--"],p=c?"--":"_",g=Object.create(null),E=Object.create(null),b=n.__||We.format,F={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},v=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,z=new RegExp("^--"+D["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(a){let h=typeof a=="object"?a.key:a,B=Object.keys(a).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();B&&(F[B][h]=!0),F.arrays[h]=!0,F.keys.push(h)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(a){F.bools[a]=!0,F.keys.push(a)}),[].concat(n.string||[]).filter(Boolean).forEach(function(a){F.strings[a]=!0,F.keys.push(a)}),[].concat(n.number||[]).filter(Boolean).forEach(function(a){F.numbers[a]=!0,F.keys.push(a)}),[].concat(n.count||[]).filter(Boolean).forEach(function(a){F.counts[a]=!0,F.keys.push(a)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(a){F.normalize[a]=!0,F.keys.push(a)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([a,h])=>{typeof h=="number"&&(F.nargs[a]=h,F.keys.push(a))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([a,h])=>{typeof h=="function"&&(F.coercions[a]=h,F.keys.push(a))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(a){F.configs[a]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([a,h])=>{(typeof h=="boolean"||typeof h=="function")&&(F.configs[a]=h)})),ke(n.key,s,n.default,F.arrays),Object.keys(l).forEach(function(a){(F.aliases[a]||[]).forEach(function(h){l[h]=l[a]})});let L=null;Kt();let U=[],R=Object.assign(Object.create(null),{_:[]}),W={};for(let a=0;a<r.length;a++){let h=r[a],B=h.replace(/^-{3,}/,"---"),C,f,O,x,I,ce;if(h!=="--"&&/^-/.test(h)&&te(h))H(h);else if(B.match(/^---+(=|$)/)){H(h);continue}else if(h.match(/^--.+=/)||!D["short-option-groups"]&&h.match(/^-.+=/))x=h.match(/^--?([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&(T(x[1],F.arrays)?a=Fe(a,x[1],r,x[2]):T(x[1],F.nargs)!==!1?a=K(a,x[1],r,x[2]):Y(x[1],x[2],!0));else if(h.match(z)&&D["boolean-negation"])x=h.match(z),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],Y(f,T(f,F.arrays)?[!1]:!1));else if(h.match(/^--.+/)||!D["short-option-groups"]&&h.match(/^-[^-]+/))x=h.match(/^--?(.+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],T(f,F.arrays)?a=Fe(a,f,r):T(f,F.nargs)!==!1?a=K(a,f,r):(I=r[a+1],I!==void 0&&(!I.match(/^-/)||I.match(v))&&!T(f,F.bools)&&!T(f,F.counts)||/^(true|false)$/.test(I)?(Y(f,I),a++):Y(f,ue(f))));else if(h.match(/^-.\..+=/))x=h.match(/^-([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&Y(x[1],x[2]);else if(h.match(/^-.\..+/)&&!h.match(v))I=r[a+1],x=h.match(/^-(.\..+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],I!==void 0&&!I.match(/^-/)&&!T(f,F.bools)&&!T(f,F.counts)?(Y(f,I),a++):Y(f,ue(f)));else if(h.match(/^-[^-]+/)&&!h.match(v)){O=h.slice(1,-1).split(""),C=!1;for(let pe=0;pe<O.length;pe++){if(I=h.slice(pe+2),O[pe+1]&&O[pe+1]==="="){ce=h.slice(pe+3),f=O[pe],T(f,F.arrays)?a=Fe(a,f,r,ce):T(f,F.nargs)!==!1?a=K(a,f,r,ce):Y(f,ce),C=!0;break}if(I==="-"){Y(O[pe],I);continue}if(/[A-Za-z]/.test(O[pe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)&&T(I,F.bools)===!1){Y(O[pe],I),C=!0;break}if(O[pe+1]&&O[pe+1].match(/\W/)){Y(O[pe],I),C=!0;break}else Y(O[pe],ue(O[pe]))}f=h.slice(-1)[0],!C&&f!=="-"&&(T(f,F.arrays)?a=Fe(a,f,r):T(f,F.nargs)!==!1?a=K(a,f,r):(I=r[a+1],I!==void 0&&(!/^(-|--)[^-]/.test(I)||I.match(v))&&!T(f,F.bools)&&!T(f,F.counts)||/^(true|false)$/.test(I)?(Y(f,I),a++):Y(f,ue(f))))}else if(h.match(/^-[0-9]$/)&&h.match(v)&&T(h.slice(1),F.bools))f=h.slice(1),Y(f,ue(f));else if(h==="--"){U=r.slice(a+1);break}else if(D["halt-at-non-option"]){U=r.slice(a);break}else H(h)}q(R,!0),q(R,!1),N(R),De(),k(R,F.aliases,l,!0),ae(R),D["set-placeholder-key"]&&Xe(R),Object.keys(F.counts).forEach(function(a){$e(R,a.split("."))||Y(a,0)}),c&&U.length&&(R[p]=[]),U.forEach(function(a){R[p].push(a)}),D["camel-case-expansion"]&&D["strip-dashed"]&&Object.keys(R).filter(a=>a!=="--"&&a.includes("-")).forEach(a=>{delete R[a]}),D["strip-aliased"]&&[].concat(...Object.keys(s).map(a=>s[a])).forEach(a=>{D["camel-case-expansion"]&&a.includes("-")&&delete R[a.split(".").map(h=>it(h)).join(".")],delete R[a]});function H(a){let h=_("_",a);(typeof h=="string"||typeof h=="number")&&R._.push(h)}function K(a,h,B,C){let f,O=T(h,F.nargs);if(O=typeof O!="number"||isNaN(O)?1:O,O===0)return Ie(C)||(L=Error(b("Argument unexpected for: %s",h))),Y(h,ue(h)),a;let x=Ie(C)?0:1;if(D["nargs-eats-options"])B.length-(a+1)+x<O&&(L=Error(b("Not enough arguments following: %s",h))),x=O;else{for(f=a+1;f<B.length&&(!B[f].match(/^-[^0-9]/)||B[f].match(v)||te(B[f]));f++)x++;x<O&&(L=Error(b("Not enough arguments following: %s",h)))}let I=Math.min(x,O);for(!Ie(C)&&I>0&&(Y(h,C),I--),f=a+1;f<I+a+1;f++)Y(h,B[f]);return a+I}function Fe(a,h,B,C){let f=[],O=C||B[a+1],x=T(h,F.nargs);if(T(h,F.bools)&&!/^(true|false)$/.test(O))f.push(!0);else if(Ie(O)||Ie(C)&&/^-/.test(O)&&!v.test(O)&&!te(O)){if(l[h]!==void 0){let I=l[h];f=Array.isArray(I)?I:[I]}}else{Ie(C)||f.push(A(h,C,!0));for(let I=a+1;I<B.length&&!(!D["greedy-arrays"]&&f.length>0||x&&typeof x=="number"&&f.length>=x||(O=B[I],/^-/.test(O)&&!v.test(O)&&!te(O)));I++)a=I,f.push(A(h,O,i))}return typeof x=="number"&&(x&&f.length<x||isNaN(x)&&f.length===0)&&(L=Error(b("Not enough arguments following: %s",h))),Y(h,f),a}function Y(a,h,B=i){if(/-/.test(a)&&D["camel-case-expansion"]){let O=a.split(".").map(function(x){return it(x)}).join(".");S(a,O)}let C=A(a,h,B),f=a.split(".");Ne(R,f,C),F.aliases[a]&&F.aliases[a].forEach(function(O){let x=O.split(".");Ne(R,x,C)}),f.length>1&&D["dot-notation"]&&(F.aliases[f[0]]||[]).forEach(function(O){let x=O.split("."),I=[].concat(f);I.shift(),x=x.concat(I),(F.aliases[a]||[]).includes(x.join("."))||Ne(R,x,C)}),T(a,F.normalize)&&!T(a,F.arrays)&&[a].concat(F.aliases[a]||[]).forEach(function(x){Object.defineProperty(W,x,{enumerable:!0,get(){return h},set(I){h=typeof I=="string"?We.normalize(I):I}})})}function S(a,h){F.aliases[a]&&F.aliases[a].length||(F.aliases[a]=[h],g[h]=!0),F.aliases[h]&&F.aliases[h].length||S(h,a)}function A(a,h,B){B&&(h=Fa(h)),(T(a,F.bools)||T(a,F.counts))&&typeof h=="string"&&(h=h==="true");let C=Array.isArray(h)?h.map(function(f){return _(a,f)}):_(a,h);return T(a,F.counts)&&(Ie(C)||typeof C=="boolean")&&(C=An()),T(a,F.normalize)&&T(a,F.arrays)&&(Array.isArray(h)?C=h.map(f=>We.normalize(f)):C=We.normalize(h)),C}function _(a,h){return!D["parse-positional-numbers"]&&a==="_"||!T(a,F.strings)&&!T(a,F.bools)&&!Array.isArray(h)&&(cu(h)&&D["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${h}`)))||!Ie(h)&&T(a,F.numbers))&&(h=Number(h)),h}function N(a){let h=Object.create(null);k(h,F.aliases,l),Object.keys(F.configs).forEach(function(B){let C=a[B]||h[B];if(C)try{let f=null,O=We.resolve(We.cwd(),C),x=F.configs[B];if(typeof x=="function"){try{f=x(O)}catch(I){f=I}if(f instanceof Error){L=f;return}}else f=We.require(O);G(f)}catch(f){f.name==="PermissionDenied"?L=f:a[B]&&(L=Error(b("Invalid JSON config file: %s",C)))}})}function G(a,h){Object.keys(a).forEach(function(B){let C=a[B],f=h?h+"."+B:B;typeof C=="object"&&C!==null&&!Array.isArray(C)&&D["dot-notation"]?G(C,f):(!$e(R,f.split("."))||T(f,F.arrays)&&D["combine-arrays"])&&Y(f,C)})}function De(){typeof m<"u"&&m.forEach(function(a){G(a)})}function q(a,h){if(typeof d>"u")return;let B=typeof d=="string"?d:"",C=We.env();Object.keys(C).forEach(function(f){if(B===""||f.lastIndexOf(B,0)===0){let O=f.split("__").map(function(x,I){return I===0&&(x=x.substring(B.length)),it(x)});(h&&F.configs[O.join(".")]||!h)&&!$e(a,O)&&Y(O.join("."),C[f])}})}function ae(a){let h,B=new Set;Object.keys(a).forEach(function(C){if(!B.has(C)&&(h=T(C,F.coercions),typeof h=="function"))try{let f=_(C,h(a[C]));[].concat(F.aliases[C]||[],C).forEach(O=>{B.add(O),a[O]=f})}catch(f){L=f}})}function Xe(a){return F.keys.forEach(h=>{~h.indexOf(".")||typeof a[h]>"u"&&(a[h]=void 0)}),a}function k(a,h,B,C=!1){Object.keys(B).forEach(function(f){$e(a,f.split("."))||(Ne(a,f.split("."),B[f]),C&&(E[f]=!0),(h[f]||[]).forEach(function(O){$e(a,O.split("."))||Ne(a,O.split("."),B[f])}))})}function $e(a,h){let B=a;D["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(f){B=B[f]||{}});let C=h[h.length-1];return typeof B!="object"?!1:C in B}function Ne(a,h,B){let C=a;D["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(ce){ce=li(ce),typeof C=="object"&&C[ce]===void 0&&(C[ce]={}),typeof C[ce]!="object"||Array.isArray(C[ce])?(Array.isArray(C[ce])?C[ce].push({}):C[ce]=[C[ce],{}],C=C[ce][C[ce].length-1]):C=C[ce]});let f=li(h[h.length-1]),O=T(h.join("."),F.arrays),x=Array.isArray(B),I=D["duplicate-arguments-array"];!I&&T(f,F.nargs)&&(I=!0,(!Ie(C[f])&&F.nargs[f]===1||Array.isArray(C[f])&&C[f].length===F.nargs[f])&&(C[f]=void 0)),B===An()?C[f]=An(C[f]):Array.isArray(C[f])?I&&O&&x?C[f]=D["flatten-duplicate-arrays"]?C[f].concat(B):(Array.isArray(C[f][0])?C[f]:[C[f]]).concat([B]):!I&&!!O==!!x?C[f]=B:C[f]=C[f].concat([B]):C[f]===void 0&&O?C[f]=x?B:[B]:I&&!(C[f]===void 0||T(f,F.counts)||T(f,F.bools))?C[f]=[C[f],B]:C[f]=B}function ke(...a){a.forEach(function(h){Object.keys(h||{}).forEach(function(B){F.aliases[B]||(F.aliases[B]=[].concat(s[B]||[]),F.aliases[B].concat(B).forEach(function(C){if(/-/.test(C)&&D["camel-case-expansion"]){let f=it(C);f!==B&&F.aliases[B].indexOf(f)===-1&&(F.aliases[B].push(f),g[f]=!0)}}),F.aliases[B].concat(B).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&D["camel-case-expansion"]){let f=au(C,"-");f!==B&&F.aliases[B].indexOf(f)===-1&&(F.aliases[B].push(f),g[f]=!0)}}),F.aliases[B].forEach(function(C){F.aliases[C]=[B].concat(F.aliases[B].filter(function(f){return C!==f}))}))})})}function T(a,h){let B=[].concat(F.aliases[a]||[],a),C=Object.keys(h),f=B.find(O=>C.includes(O));return f?h[f]:!1}function Ou(a){let h=Object.keys(F);return[].concat(h.map(C=>F[C])).some(function(C){return Array.isArray(C)?C.includes(a):C[a]})}function j(a,...h){return[].concat(...h).some(function(C){let f=a.match(C);return f&&Ou(f[1])})}function Z(a){if(a.match(v)||!a.match(/^-[^-]+/))return!1;let h=!0,B,C=a.slice(1).split("");for(let f=0;f<C.length;f++){if(B=a.slice(f+2),!Ou(C[f])){h=!1;break}if(C[f+1]&&C[f+1]==="="||B==="-"||/[A-Za-z]/.test(C[f])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(B)||C[f+1]&&C[f+1].match(/\W/))break}return h}function te(a){return D["unknown-options-as-args"]&&V(a)}function V(a){return a=a.replace(/^-{3,}/,"--"),a.match(v)||Z(a)?!1:!j(a,/^-+([^=]+?)=[\s\S]*$/,z,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ue(a){return!T(a,F.bools)&&!T(a,F.counts)&&`${a}`in l?l[a]:ie(Pe(a))}function ie(a){return{[ye.BOOLEAN]:!0,[ye.STRING]:"",[ye.NUMBER]:void 0,[ye.ARRAY]:[]}[a]}function Pe(a){let h=ye.BOOLEAN;return T(a,F.strings)?h=ye.STRING:T(a,F.numbers)?h=ye.NUMBER:T(a,F.bools)?h=ye.BOOLEAN:T(a,F.arrays)&&(h=ye.ARRAY),h}function Ie(a){return a===void 0}function Kt(){Object.keys(F.counts).find(a=>T(a,F.arrays)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",a)),!0):T(a,F.nargs)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",a)),!0):!1)}return{aliases:Object.assign({},F.aliases),argv:Object.assign(W,R),configuration:D,defaulted:Object.assign({},E),error:L,newAliases:Object.assign({},g)}}};function ha(u){let e=[],t=Object.create(null),n=!0;for(Object.keys(u).forEach(function(r){e.push([].concat(u[r],r))});n;){n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(e[r].filter(function(D){return e[i].indexOf(D)!==-1}).length){e[r]=e[r].concat(e[i]),e.splice(i,1),n=!0;break}}return e.forEach(function(r){r=r.filter(function(s,D,l){return l.indexOf(s)===D});let i=r.pop();i!==void 0&&typeof i=="string"&&(t[i]=r)}),t}function An(u){return u!==void 0?u+1:1}function li(u){return u==="__proto__"?"___proto___":u}function Fa(u){return typeof u=="string"&&(u[0]==="'"||u[0]==='"')&&u[u.length-1]===u[0]?u.substring(1,u.length-1):u}var pi=J("fs"),_n=J("node:module"),pa={};var xn,wn,yn,fi=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,hi=(wn=(xn=process==null?void 0:process.versions)===null||xn===void 0?void 0:xn.node)!==null&&wn!==void 0?wn:(yn=process==null?void 0:process.version)===null||yn===void 0?void 0:yn.slice(1);if(hi&&Number(hi.match(/^([^.]+)/)[1])<fi)throw Error(`yargs parser supports a minimum Node.js version of ${fi}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var da=process?process.env:{},Fi=_n.createRequire?(0,_n.createRequire)(pa.url):void 0,mi=new lu({cwd:process.cwd,env:()=>da,format:di.format,normalize:fu.normalize,resolve:fu.resolve,require:u=>{if(typeof Fi<"u")return Fi(u);if(u.match(/\.json$/))return JSON.parse((0,pi.readFileSync)(u,"utf8"));throw Error("only .json config files are supported in ESM")}}),Ht=function(e,t){return mi.parse(e.slice(),t).argv};Ht.detailed=function(u,e){return mi.parse(u.slice(),e)};Ht.camelCase=it;Ht.decamelize=au;Ht.looksLikeNumber=cu;var Ci=Ht;var be=J("path");function ma(){return Ca()?0:1}function Ca(){return Ea()&&!process.defaultApp}function Ea(){return!!process.versions.electron}function Ei(){return process.argv[ma()]}var ga=Vt();function On(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(ga,"")}var Bi=et(bi(),1),ba=new Intl.Segmenter,Ba=/^\p{Default_Ignorable_Code_Point}$/u;function Sn(u,e={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(u=On(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:s}of ba.segment(u)){let D=s.codePointAt(0);if(!(D<=31||D>=127&&D<=159)&&!(D>=8203&&D<=8207||D===65279)&&!(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)&&!(D>=55296&&D<=57343)&&!(D>=65024&&D<=65039)&&!Ba.test(s)){if((0,Bi.default)().test(s)){r+=2;continue}r+=iu(D,i)}}return r}var Pt=J("fs"),Ai=J("util"),xi=J("path"),wi={fs:{readFileSync:Pt.readFileSync,writeFile:Pt.writeFile},format:Ai.format,resolve:xi.resolve,exists:u=>{try{return(0,Pt.statSync)(u).isFile()}catch{return!1}}};var ve,Pn=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),ve.format.apply(ve.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),r=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let s=r===1?t:n;this.cache[this.locale][t]&&(s=this.cache[this.locale][t][r===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let D=[s];return~s.indexOf("%d")&&D.push(r),ve.format.apply(ve.format,D.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(r,i){let s=t[i+1];n+=r,typeof s<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,r=t.locale,i=t.cb,s=this._resolveLocaleFile(n,r),D=JSON.stringify(this.cache[r],null,2);ve.fs.writeFile(s,D,"utf-8",function(l){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(l)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{ve.fs.readFileSync&&(e=JSON.parse(ve.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=ve.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let r=ve.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(e){return ve.exists(e)}};function yi(u,e){ve=e;let t=new Pn(u);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var Aa=u=>yi(u,wi),_i=Aa;var Ii=J("node:module"),vi=et(Si(),1),Fu=J("node:fs"),Mi={},In=(0,vn.fileURLToPath)(Mi.url),xa=In.substring(0,In.lastIndexOf("node_modules")),wa=(0,Ii.createRequire)(Mi.url),ji={assert:{notStrictEqual:hu.notStrictEqual,strictEqual:hu.strictEqual},cliui:Bn,findUp:ai,getEnv:u=>process.env[u],inspect:Pi.inspect,getProcessArgvBin:Ei,mainFilename:xa||process.cwd(),Parser:Ci,path:{basename:be.basename,dirname:be.dirname,extname:be.extname,relative:be.relative,resolve:be.resolve,join:be.join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(u,e)=>process.emitWarning(u,e),execPath:()=>process.execPath,exit:u=>{process.exit(u)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:Fu.readFileSync,readdirSync:Fu.readdirSync,require:wa,getCallerFile:()=>{let u=(0,vi.default)(3);return u.match(/^file:\/\//)?(0,vn.fileURLToPath)(u):u},stringWidth:Sn,y18n:_i({directory:(0,be.resolve)(In,"../../../locales"),updateFiles:!1})};function me(u,e,t,n){t.assert.notStrictEqual(u,e,n)}function jn(u,e){e.assert.strictEqual(typeof u,"string")}function It(u){return Object.keys(u)}function Q(u){return!!u&&!!u.then&&typeof u.then=="function"}var se=class u extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,u)}};function Ge(u){let t=u.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=t.shift();if(!r)throw new Error(`No command found in: ${u}`);let i={cmd:r.replace(n,""),demanded:[],optional:[]};return t.forEach((s,D)=>{let l=!1;s=s.replace(/\s/g,""),/\.+[\]>]/.test(s)&&D===t.length-1&&(l=!0),/^\[/.test(s)?i.optional.push({cmd:s.replace(n,"").split("|"),variadic:l}):i.demanded.push({cmd:s.replace(n,"").split("|"),variadic:l})}),i}var ya=["first","second","third","fourth","fifth","sixth"];function w(u,e,t){function n(){return typeof u=="object"?[{demanded:[],optional:[]},u,e]:[Ge(`cmd ${u}`),e,t]}try{let r=0,[i,s,D]=n(),l=[].slice.call(s);for(;l.length&&l[l.length-1]===void 0;)l.pop();let m=D||l.length;if(m<i.demanded.length)throw new se(`Not enough arguments provided. Expected ${i.demanded.length} but received ${l.length}.`);let d=i.demanded.length+i.optional.length;if(m>d)throw new se(`Too many arguments provided. Expected max ${d} but received ${m}.`);i.demanded.forEach(c=>{let p=l.shift(),g=Ti(p);c.cmd.filter(b=>b===g||b==="*").length===0&&$i(g,c.cmd,r),r+=1}),i.optional.forEach(c=>{if(l.length===0)return;let p=l.shift(),g=Ti(p);c.cmd.filter(b=>b===g||b==="*").length===0&&$i(g,c.cmd,r),r+=1})}catch(r){console.warn(r.stack)}}function Ti(u){return Array.isArray(u)?"array":u===null?"null":typeof u}function $i(u,e,t){throw new se(`Invalid ${ya[t]||"manyith"} argument. Expected ${e.join(" or ")} but received ${u}.`)}var du=class{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,n=!0,r=!1){if(w("<array|function> [boolean] [boolean] [boolean]",[e,t,n],arguments.length),Array.isArray(e)){for(let i=0;i<e.length;i++){if(typeof e[i]!="function")throw Error("middleware must be a function");let s=e[i];s.applyBeforeValidation=t,s.global=n}Array.prototype.push.apply(this.globalMiddleware,e)}else if(typeof e=="function"){let i=e;i.applyBeforeValidation=t,i.global=n,i.mutates=r,this.globalMiddleware.push(e)}return this.yargs}addCoerceMiddleware(e,t){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let i=[...n[t]||[],t];return r.option?!i.includes(r.option):!0}),e.option=t,this.addMiddleware(e,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let e=this.frozens.pop();e!==void 0&&(this.globalMiddleware=e)}reset(){this.globalMiddleware=this.globalMiddleware.filter(e=>e.global)}};function Ni(u){return u?u.map(e=>(e.applyBeforeValidation=!1,e)):[]}function st(u,e,t,n){return t.reduce((r,i)=>{if(i.applyBeforeValidation!==n)return r;if(i.mutates){if(i.applied)return r;i.applied=!0}if(Q(r))return r.then(s=>Promise.all([s,i(s,e)])).then(([s,D])=>Object.assign(s,D));{let s=i(r,e);return Q(s)?s.then(D=>Object.assign(r,D)):Object.assign(r,s)}},u)}function ot(u,e,t=n=>{throw n}){try{let n=_a(u)?u():u;return Q(n)?n.then(r=>e(r)):e(n)}catch(n){return t(n)}}function _a(u){return typeof u=="function"}var vt=/(^\*)|(^\$0)/,Mn=class{constructor(e,t,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=e,this.globalMiddleware=n,this.validation=t}addDirectory(e,t,n,r){r=r||{},this.requireCache.add(n);let i=this.shim.path.resolve(this.shim.path.dirname(n),e),s=this.shim.readdirSync(i,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let D=typeof r.visit=="function"?r.visit:l=>l;for(let l of s){let m=l.toString();if(r.exclude){let c=!1;if(typeof r.exclude=="function"?c=r.exclude(m):c=r.exclude.test(m),c)continue}if(r.include){let c=!1;if(typeof r.include=="function"?c=r.include(m):c=r.include.test(m),!c)continue}let d=!1;for(let c of r.extensions)m.endsWith(c)&&(d=!0);if(d){let c=this.shim.path.join(i,m),p=t(c),g=Object.create(null,Object.getOwnPropertyDescriptors({...p}));if(D(g,c,m)){if(this.requireCache.has(c))continue;this.requireCache.add(c),g.command||(g.command=this.shim.path.basename(c,this.shim.path.extname(c))),this.addHandler(g)}}}}addHandler(e,t,n,r,i,s){let D=[],l=Ni(i);if(r=r||(()=>{}),Array.isArray(e))if(Oa(e))[e,...D]=e;else for(let m of e)this.addHandler(m);else if(Pa(e)){let m=Array.isArray(e.command)||typeof e.command=="string"?e.command:null;if(m===null)throw new Error(`No command name given for module: ${this.shim.inspect(e)}`);e.aliases&&(m=[].concat(m).concat(e.aliases)),this.addHandler(m,this.extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}else if(Li(n)){this.addHandler([e].concat(D),t,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e=="string"){let m=Ge(e);D=D.map(p=>Ge(p).cmd);let d=!1,c=[m.cmd].concat(D).filter(p=>vt.test(p)?(d=!0,!1):!0);c.length===0&&d&&c.push("$0"),d&&(m.cmd=c[0],D=c.slice(1),e=e.replace(vt,m.cmd)),D.forEach(p=>{this.aliasMap[p]=m.cmd}),t!==!1&&this.usage.command(e,t,d,D,s),this.handlers[m.cmd]={original:e,description:t,handler:r,builder:n||{},middlewares:l,deprecated:s,demanded:m.demanded,optional:m.optional},d&&(this.defaultCommand=this.handlers[m.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(e,t,n,r,i,s){let D=this.handlers[e]||this.handlers[this.aliasMap[e]]||this.defaultCommand,l=t.getInternalMethods().getContext(),m=l.commands.slice(),d=!e;e&&(l.commands.push(e),l.fullCommands.push(D.original));let c=this.applyBuilderUpdateUsageAndParse(d,D,t,n.aliases,m,r,i,s);return Q(c)?c.then(p=>this.applyMiddlewareAndGetResult(d,D,p.innerArgv,l,i,p.aliases,t)):this.applyMiddlewareAndGetResult(d,D,c.innerArgv,l,i,c.aliases,t)}applyBuilderUpdateUsageAndParse(e,t,n,r,i,s,D,l){let m=t.builder,d=n;if(pu(m)){n.getInternalMethods().getUsageInstance().freeze();let c=m(n.getInternalMethods().reset(r),l);if(Q(c))return c.then(p=>(d=zi(p)?p:n,this.parseAndUpdateUsage(e,t,d,i,s,D)))}else Sa(m)&&(n.getInternalMethods().getUsageInstance().freeze(),d=n.getInternalMethods().reset(r),Object.keys(t.builder).forEach(c=>{d.option(c,m[c])}));return this.parseAndUpdateUsage(e,t,d,i,s,D)}parseAndUpdateUsage(e,t,n,r,i,s){e&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,t),t.description);let D=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return Q(D)?D.then(l=>({aliases:n.parsed.aliases,innerArgv:l})):{aliases:n.parsed.aliases,innerArgv:D}}shouldUpdateUsage(e){return!e.getInternalMethods().getUsageInstance().getUsageDisabled()&&e.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(e,t){let n=vt.test(t.original)?t.original.replace(vt,"").trim():t.original,r=e.filter(i=>!vt.test(i));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(e,t,n,r,i,s,D,l){if(!s.getInternalMethods().getHasOutput()){let m=s.getInternalMethods().runValidation(i,l,s.parsed.error,e);n=ot(n,d=>(m(d),d))}if(t.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();let m=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(n,m,!1,!1),n=st(n,s,D,!1),n=ot(n,d=>{let c=t.handler(d);return Q(c)?c.then(()=>d):d}),e||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),Q(n)&&!s.getInternalMethods().hasParseCallback()&&n.catch(d=>{try{s.getInternalMethods().getUsageInstance().fail(null,d)}catch{}})}return e||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(e,t,n,r,i,s,D){let l={};if(i)return n;D.getInternalMethods().getHasOutput()||(l=this.populatePositionals(t,n,r,D));let m=this.globalMiddleware.getMiddleware().slice(0).concat(t.middlewares),d=st(n,D,m,!0);return Q(d)?d.then(c=>this.handleValidationAndGetResult(e,t,c,r,s,D,m,l)):this.handleValidationAndGetResult(e,t,d,r,s,D,m,l)}populatePositionals(e,t,n,r){t._=t._.slice(n.commands.length);let i=e.demanded.slice(0),s=e.optional.slice(0),D={};for(this.validation.positionalCount(i.length,t._.length);i.length;){let l=i.shift();this.populatePositional(l,t,D)}for(;s.length;){let l=s.shift();this.populatePositional(l,t,D)}return t._=n.commands.concat(t._.map(l=>""+l)),this.postProcessPositionals(t,D,this.cmdToParseOptions(e.original),r),D}populatePositional(e,t,n){let r=e.cmd[0];e.variadic?n[r]=t._.splice(0).map(String):t._.length&&(n[r]=[String(t._.shift())])}cmdToParseOptions(e){let t={array:[],default:{},alias:{},demand:{}},n=Ge(e);return n.demanded.forEach(r=>{let[i,...s]=r.cmd;r.variadic&&(t.array.push(i),t.default[i]=[]),t.alias[i]=s,t.demand[i]=!0}),n.optional.forEach(r=>{let[i,...s]=r.cmd;r.variadic&&(t.array.push(i),t.default[i]=[]),t.alias[i]=s}),t}postProcessPositionals(e,t,n,r){let i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(let m of Object.keys(n.alias))i.alias[m]=(i.alias[m]||[]).concat(n.alias[m]);i.array=i.array.concat(n.array),i.config={};let s=[];if(Object.keys(t).forEach(m=>{t[m].map(d=>{i.configuration["unknown-options-as-args"]&&(i.key[m]=!0),s.push(`--${m}`),s.push(d)})}),!s.length)return;let D=Object.assign({},i.configuration,{"populate--":!1}),l=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:D}));if(l.error)r.getInternalMethods().getUsageInstance().fail(l.error.message,l.error);else{let m=Object.keys(t);Object.keys(t).forEach(d=>{m.push(...l.aliases[d])}),Object.keys(l.argv).forEach(d=>{m.includes(d)&&(t[d]||(t[d]=l.argv[d]),!this.isInConfigs(r,d)&&!this.isDefaulted(r,d)&&Object.prototype.hasOwnProperty.call(e,d)&&Object.prototype.hasOwnProperty.call(l.argv,d)&&(Array.isArray(e[d])||Array.isArray(l.argv[d]))?e[d]=[].concat(e[d],l.argv[d]):e[d]=l.argv[d])})}}isDefaulted(e,t){let{default:n}=e.getOptions();return Object.prototype.hasOwnProperty.call(n,t)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(t))}isInConfigs(e,t){let{configObjects:n}=e.getOptions();return n.some(r=>Object.prototype.hasOwnProperty.call(r,t))||n.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(t)))}runDefaultBuilderOn(e){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(e)){let n=vt.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");e.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let t=this.defaultCommand.builder;if(pu(t))return t(e,!0);Li(t)||Object.keys(t).forEach(n=>{e.option(n,t[n])})}extractDesc({describe:e,description:t,desc:n}){for(let r of[e,t,n]){if(typeof r=="string"||r===!1)return r;me(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let e=this.frozens.pop();me(e,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=e}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Ui(u,e,t,n){return new Mn(u,e,t,n)}function Li(u){return typeof u=="object"&&!!u.builder&&typeof u.handler=="function"}function Oa(u){return u.every(e=>typeof e=="string")}function pu(u){return typeof u=="function"}function Sa(u){return typeof u=="object"}function Pa(u){return typeof u=="object"&&!Array.isArray(u)}function Ye(u={},e=()=>!0){let t={};return It(u).forEach(n=>{e(n,u[n])&&(t[n]=u[n])}),t}function Ke(u){typeof process>"u"||[process.stdout,process.stderr].forEach(e=>{let t=e;t._handle&&t.isTTY&&typeof t._handle.setBlocking=="function"&&t._handle.setBlocking(u)})}function Ia(u){return typeof u=="boolean"}function Wi(u,e){let t=e.y18n.__,n={},r=[];n.failFn=function(A){r.push(A)};let i=null,s=null,D=!0;n.showHelpOnFail=function(A=!0,_){let[N,G]=typeof A=="string"?[!0,A]:[A,_];return u.getInternalMethods().isGlobalContext()&&(s=G),i=G,D=N,n};let l=!1;n.fail=function(A,_){let N=u.getInternalMethods().getLoggerInstance();if(r.length)for(let G=r.length-1;G>=0;--G){let De=r[G];if(Ia(De)){if(_)throw _;if(A)throw Error(A)}else De(A,_,n)}else{if(u.getExitProcess()&&Ke(!0),!l){l=!0,D&&(u.showHelp("error"),N.error()),(A||_)&&N.error(A||_);let G=i||s;G&&((A||_)&&N.error(""),N.error(G))}if(_=_||new se(A),u.getExitProcess())return u.exit(1);if(u.getInternalMethods().hasParseCallback())return u.exit(1,_);throw _}};let m=[],d=!1;n.usage=(S,A)=>S===null?(d=!0,m=[],n):(d=!1,m.push([S,A||""]),n),n.getUsage=()=>m,n.getUsageDisabled=()=>d,n.getPositionalGroupName=()=>t("Positionals:");let c=[];n.example=(S,A)=>{c.push([S,A||""])};let p=[];n.command=function(A,_,N,G,De=!1){N&&(p=p.map(q=>(q[2]=!1,q))),p.push([A,_||"",N,G,De])},n.getCommands=()=>p;let g={};n.describe=function(A,_){Array.isArray(A)?A.forEach(N=>{n.describe(N,_)}):typeof A=="object"?Object.keys(A).forEach(N=>{n.describe(N,A[N])}):g[A]=_},n.getDescriptions=()=>g;let E=[];n.epilog=S=>{E.push(S)};let b=!1,F;n.wrap=S=>{b=!0,F=S},n.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(b||(F=K(),b=!0),F);let v="__yargsString__:";n.deferY18nLookup=S=>v+S,n.help=function(){if(U)return U;L();let A=u.customScriptName?u.$0:e.path.basename(u.$0),_=u.getDemandedOptions(),N=u.getDemandedCommands(),G=u.getDeprecatedOptions(),De=u.getGroups(),q=u.getOptions(),ae=[];ae=ae.concat(Object.keys(g)),ae=ae.concat(Object.keys(_)),ae=ae.concat(Object.keys(N)),ae=ae.concat(Object.keys(q.default)),ae=ae.filter(W),ae=Object.keys(ae.reduce((j,Z)=>(Z!=="_"&&(j[Z]=!0),j),{}));let Xe=n.getWrap(),k=e.cliui({width:Xe,wrap:!!Xe});if(!d){if(m.length)m.forEach(j=>{k.div({text:`${j[0].replace(/\$0/g,A)}`}),j[1]&&k.div({text:`${j[1]}`,padding:[1,0,0,0]})}),k.div();else if(p.length){let j=null;N._?j=`${A} <${t("command")}>
15
- `:j=`${A} [${t("command")}]
16
- `,k.div(`${j}`)}}if(p.length>1||p.length===1&&!p[0][2]){k.div(t("Commands:"));let j=u.getInternalMethods().getContext(),Z=j.commands.length?`${j.commands.join(" ")} `:"";u.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(p=p.sort((V,ue)=>V[0].localeCompare(ue[0])));let te=A?`${A} `:"";p.forEach(V=>{let ue=`${te}${Z}${V[0].replace(/^\$0 ?/,"")}`;k.span({text:ue,padding:[0,2,0,2],width:z(p,Xe,`${A}${Z}`)+4},{text:V[1]});let ie=[];V[2]&&ie.push(`[${t("default")}]`),V[3]&&V[3].length&&ie.push(`[${t("aliases:")} ${V[3].join(", ")}]`),V[4]&&(typeof V[4]=="string"?ie.push(`[${t("deprecated: %s",V[4])}]`):ie.push(`[${t("deprecated")}]`)),ie.length?k.div({text:ie.join(" "),padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}let $e=(Object.keys(q.alias)||[]).concat(Object.keys(u.parsed.newAliases)||[]);ae=ae.filter(j=>!u.parsed.newAliases[j]&&$e.every(Z=>(q.alias[Z]||[]).indexOf(j)===-1));let Ne=t("Options:");De[Ne]||(De[Ne]=[]),R(ae,q.alias,De,Ne);let ke=j=>/^--/.test(mu(j)),T=Object.keys(De).filter(j=>De[j].length>0).map(j=>{let Z=De[j].filter(W).map(te=>{if($e.includes(te))return te;for(let V=0,ue;(ue=$e[V])!==void 0;V++)if((q.alias[ue]||[]).includes(te))return ue;return te});return{groupName:j,normalizedKeys:Z}}).filter(({normalizedKeys:j})=>j.length>0).map(({groupName:j,normalizedKeys:Z})=>{let te=Z.reduce((V,ue)=>(V[ue]=[ue].concat(q.alias[ue]||[]).map(ie=>j===n.getPositionalGroupName()?ie:(/^[0-9]$/.test(ie)?q.boolean.includes(ue)?"-":"--":ie.length>1?"--":"-")+ie).sort((ie,Pe)=>ke(ie)===ke(Pe)?0:ke(ie)?1:-1).join(", "),V),{});return{groupName:j,normalizedKeys:Z,switches:te}});if(T.filter(({groupName:j})=>j!==n.getPositionalGroupName()).some(({normalizedKeys:j,switches:Z})=>!j.every(te=>ke(Z[te])))&&T.filter(({groupName:j})=>j!==n.getPositionalGroupName()).forEach(({normalizedKeys:j,switches:Z})=>{j.forEach(te=>{ke(Z[te])&&(Z[te]=va(Z[te],4))})}),T.forEach(({groupName:j,normalizedKeys:Z,switches:te})=>{k.div(j),Z.forEach(V=>{let ue=te[V],ie=g[V]||"",Pe=null;ie.includes(v)&&(ie=t(ie.substring(v.length))),q.boolean.includes(V)&&(Pe=`[${t("boolean")}]`),q.count.includes(V)&&(Pe=`[${t("count")}]`),q.string.includes(V)&&(Pe=`[${t("string")}]`),q.normalize.includes(V)&&(Pe=`[${t("string")}]`),q.array.includes(V)&&(Pe=`[${t("array")}]`),q.number.includes(V)&&(Pe=`[${t("number")}]`);let Ie=h=>typeof h=="string"?`[${t("deprecated: %s",h)}]`:`[${t("deprecated")}]`,Kt=[V in G?Ie(G[V]):null,Pe,V in _?`[${t("required")}]`:null,q.choices&&q.choices[V]?`[${t("choices:")} ${n.stringifiedValues(q.choices[V])}]`:null,H(q.default[V],q.defaultDescription[V])].filter(Boolean).join(" ");k.span({text:mu(ue),padding:[0,2,0,2+Ri(ue)],width:z(te,Xe)+4},ie);let a=u.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Kt&&!a?k.div({text:Kt,padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}),c.length&&(k.div(t("Examples:")),c.forEach(j=>{j[0]=j[0].replace(/\$0/g,A)}),c.forEach(j=>{j[1]===""?k.div({text:j[0],padding:[0,2,0,2]}):k.div({text:j[0],padding:[0,2,0,2],width:z(c,Xe)+4},{text:j[1]})}),k.div()),E.length>0){let j=E.map(Z=>Z.replace(/\$0/g,A)).join(`
13
+ `).map(n=>la(n,t,e)).join(`
14
+ `)}function Bn(u){return zr(u,{stringWidth:Wt,stripAnsi:Rt,wrap:bn})}var Se=J("path"),ou=J("fs");function Di(u,t){let e=(0,Se.resolve)(".",u),n;for((0,ou.statSync)(e).isDirectory()||(e=(0,Se.dirname)(e));;){if(n=t(e,(0,ou.readdirSync)(e)),n)return(0,Se.resolve)(e,n);if(e=(0,Se.dirname)(n=e),n===e)break}}var Si=J("util"),In=J("url");var Fi=J("util"),lu=J("path");function ie(u){if(u!==u.toLowerCase()&&u!==u.toUpperCase()||(u=u.toLowerCase()),u.indexOf("-")===-1&&u.indexOf("_")===-1)return u;{let e="",n=!1,r=u.match(/^-+/);for(let i=r?r[0].length:0;i<u.length;i++){let s=u.charAt(i);n&&(n=!1,s=s.toUpperCase()),i!==0&&(s==="-"||s==="_")?n=!0:s!=="-"&&s!=="_"&&(e+=s)}return e}}function Du(u,t){let e=u.toLowerCase();t=t||"-";let n="";for(let r=0;r<u.length;r++){let i=e.charAt(r),s=u.charAt(r);i!==s&&r>0?n+=`${t}${e.charAt(r)}`:n+=s}return n}function au(u){return u==null?!1:typeof u=="number"||/^0x[0-9a-f]+$/i.test(u)?!0:/^0[^.]/.test(u)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(u)}function ai(u){if(Array.isArray(u))return u.map(s=>typeof s!="string"?s+"":s);u=u.trim();let t=0,e=null,n=null,r=null,i=[];for(let s=0;s<u.length;s++){if(e=n,n=u.charAt(s),n===" "&&!r){e!==" "&&t++;continue}n===r?r=null:(n==="'"||n==='"')&&!r&&(r=n),i[t]||(i[t]=""),i[t]+=n}return i}var yt;(function(u){u.BOOLEAN="boolean",u.STRING="string",u.NUMBER="number",u.ARRAY="array"})(yt||(yt={}));var Vt,cu=class{constructor(t){Vt=t}parse(t,e){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},e),r=ai(t),i=typeof t=="string",s=fa(Object.assign(Object.create(null),n.alias)),D=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),m=n.configObjects||[],d=n.envPrefix,c=D["populate--"],p=c?"--":"_",g=Object.create(null),E=Object.create(null),b=n.__||Vt.format,F={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},v=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,z=new RegExp("^--"+D["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(a){let h=typeof a=="object"?a.key:a,B=Object.keys(a).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();B&&(F[B][h]=!0),F.arrays[h]=!0,F.keys.push(h)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(a){F.bools[a]=!0,F.keys.push(a)}),[].concat(n.string||[]).filter(Boolean).forEach(function(a){F.strings[a]=!0,F.keys.push(a)}),[].concat(n.number||[]).filter(Boolean).forEach(function(a){F.numbers[a]=!0,F.keys.push(a)}),[].concat(n.count||[]).filter(Boolean).forEach(function(a){F.counts[a]=!0,F.keys.push(a)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(a){F.normalize[a]=!0,F.keys.push(a)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([a,h])=>{typeof h=="number"&&(F.nargs[a]=h,F.keys.push(a))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([a,h])=>{typeof h=="function"&&(F.coercions[a]=h,F.keys.push(a))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(a){F.configs[a]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([a,h])=>{(typeof h=="boolean"||typeof h=="function")&&(F.configs[a]=h)})),te(n.key,s,n.default,F.arrays),Object.keys(l).forEach(function(a){(F.aliases[a]||[]).forEach(function(h){l[h]=l[a]})});let L=null;Ye();let U=[],R=Object.assign(Object.create(null),{_:[]}),W={};for(let a=0;a<r.length;a++){let h=r[a],B=h.replace(/^-{3,}/,"---"),C,f,O,x,I,ct;if(h!=="--"&&/^-/.test(h)&&et(h))H(h);else if(B.match(/^---+(=|$)/)){H(h);continue}else if(h.match(/^--.+=/)||!D["short-option-groups"]&&h.match(/^-.+=/))x=h.match(/^--?([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&(T(x[1],F.arrays)?a=Ft(a,x[1],r,x[2]):T(x[1],F.nargs)!==!1?a=K(a,x[1],r,x[2]):Y(x[1],x[2],!0));else if(h.match(z)&&D["boolean-negation"])x=h.match(z),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],Y(f,T(f,F.arrays)?[!1]:!1));else if(h.match(/^--.+/)||!D["short-option-groups"]&&h.match(/^-[^-]+/))x=h.match(/^--?(.+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],T(f,F.arrays)?a=Ft(a,f,r):T(f,F.nargs)!==!1?a=K(a,f,r):(I=r[a+1],I!==void 0&&(!I.match(/^-/)||I.match(v))&&!T(f,F.bools)&&!T(f,F.counts)||/^(true|false)$/.test(I)?(Y(f,I),a++):Y(f,ut(f))));else if(h.match(/^-.\..+=/))x=h.match(/^-([^=]+)=([\s\S]*)$/),x!==null&&Array.isArray(x)&&x.length>=3&&Y(x[1],x[2]);else if(h.match(/^-.\..+/)&&!h.match(v))I=r[a+1],x=h.match(/^-(.\..+)/),x!==null&&Array.isArray(x)&&x.length>=2&&(f=x[1],I!==void 0&&!I.match(/^-/)&&!T(f,F.bools)&&!T(f,F.counts)?(Y(f,I),a++):Y(f,ut(f)));else if(h.match(/^-[^-]+/)&&!h.match(v)){O=h.slice(1,-1).split(""),C=!1;for(let pt=0;pt<O.length;pt++){if(I=h.slice(pt+2),O[pt+1]&&O[pt+1]==="="){ct=h.slice(pt+3),f=O[pt],T(f,F.arrays)?a=Ft(a,f,r,ct):T(f,F.nargs)!==!1?a=K(a,f,r,ct):Y(f,ct),C=!0;break}if(I==="-"){Y(O[pt],I);continue}if(/[A-Za-z]/.test(O[pt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)&&T(I,F.bools)===!1){Y(O[pt],I),C=!0;break}if(O[pt+1]&&O[pt+1].match(/\W/)){Y(O[pt],I),C=!0;break}else Y(O[pt],ut(O[pt]))}f=h.slice(-1)[0],!C&&f!=="-"&&(T(f,F.arrays)?a=Ft(a,f,r):T(f,F.nargs)!==!1?a=K(a,f,r):(I=r[a+1],I!==void 0&&(!/^(-|--)[^-]/.test(I)||I.match(v))&&!T(f,F.bools)&&!T(f,F.counts)||/^(true|false)$/.test(I)?(Y(f,I),a++):Y(f,ut(f))))}else if(h.match(/^-[0-9]$/)&&h.match(v)&&T(h.slice(1),F.bools))f=h.slice(1),Y(f,ut(f));else if(h==="--"){U=r.slice(a+1);break}else if(D["halt-at-non-option"]){U=r.slice(a);break}else H(h)}q(R,!0),q(R,!1),N(R),Dt(),k(R,F.aliases,l,!0),at(R),D["set-placeholder-key"]&&kt(R),Object.keys(F.counts).forEach(function(a){$t(R,a.split("."))||Y(a,0)}),c&&U.length&&(R[p]=[]),U.forEach(function(a){R[p].push(a)}),D["camel-case-expansion"]&&D["strip-dashed"]&&Object.keys(R).filter(a=>a!=="--"&&a.includes("-")).forEach(a=>{delete R[a]}),D["strip-aliased"]&&[].concat(...Object.keys(s).map(a=>s[a])).forEach(a=>{D["camel-case-expansion"]&&a.includes("-")&&delete R[a.split(".").map(h=>ie(h)).join(".")],delete R[a]});function H(a){let h=_("_",a);(typeof h=="string"||typeof h=="number")&&R._.push(h)}function K(a,h,B,C){let f,O=T(h,F.nargs);if(O=typeof O!="number"||isNaN(O)?1:O,O===0)return It(C)||(L=Error(b("Argument unexpected for: %s",h))),Y(h,ut(h)),a;let x=It(C)?0:1;if(D["nargs-eats-options"])B.length-(a+1)+x<O&&(L=Error(b("Not enough arguments following: %s",h))),x=O;else{for(f=a+1;f<B.length&&(!B[f].match(/^-[^0-9]/)||B[f].match(v)||et(B[f]));f++)x++;x<O&&(L=Error(b("Not enough arguments following: %s",h)))}let I=Math.min(x,O);for(!It(C)&&I>0&&(Y(h,C),I--),f=a+1;f<I+a+1;f++)Y(h,B[f]);return a+I}function Ft(a,h,B,C){let f=[],O=C||B[a+1],x=T(h,F.nargs);if(T(h,F.bools)&&!/^(true|false)$/.test(O))f.push(!0);else if(It(O)||It(C)&&/^-/.test(O)&&!v.test(O)&&!et(O)){if(l[h]!==void 0){let I=l[h];f=Array.isArray(I)?I:[I]}}else{It(C)||f.push(A(h,C,!0));for(let I=a+1;I<B.length&&!(!D["greedy-arrays"]&&f.length>0||x&&typeof x=="number"&&f.length>=x||(O=B[I],/^-/.test(O)&&!v.test(O)&&!et(O)));I++)a=I,f.push(A(h,O,i))}return typeof x=="number"&&(x&&f.length<x||isNaN(x)&&f.length===0)&&(L=Error(b("Not enough arguments following: %s",h))),Y(h,f),a}function Y(a,h,B=i){if(/-/.test(a)&&D["camel-case-expansion"]){let O=a.split(".").map(function(x){return ie(x)}).join(".");S(a,O)}let C=A(a,h,B),f=a.split(".");Nt(R,f,C),F.aliases[a]&&F.aliases[a].forEach(function(O){let x=O.split(".");Nt(R,x,C)}),f.length>1&&D["dot-notation"]&&(F.aliases[f[0]]||[]).forEach(function(O){let x=O.split("."),I=[].concat(f);I.shift(),x=x.concat(I),(F.aliases[a]||[]).includes(x.join("."))||Nt(R,x,C)}),T(a,F.normalize)&&!T(a,F.arrays)&&[a].concat(F.aliases[a]||[]).forEach(function(x){Object.defineProperty(W,x,{enumerable:!0,get(){return h},set(I){h=typeof I=="string"?Vt.normalize(I):I}})})}function S(a,h){F.aliases[a]&&F.aliases[a].length||(F.aliases[a]=[h],g[h]=!0),F.aliases[h]&&F.aliases[h].length||S(h,a)}function A(a,h,B){B&&(h=ha(h)),(T(a,F.bools)||T(a,F.counts))&&typeof h=="string"&&(h=h==="true");let C=Array.isArray(h)?h.map(function(f){return _(a,f)}):_(a,h);return T(a,F.counts)&&(It(C)||typeof C=="boolean")&&(C=An()),T(a,F.normalize)&&T(a,F.arrays)&&(Array.isArray(h)?C=h.map(f=>Vt.normalize(f)):C=Vt.normalize(h)),C}function _(a,h){return!D["parse-positional-numbers"]&&a==="_"||!T(a,F.strings)&&!T(a,F.bools)&&!Array.isArray(h)&&(au(h)&&D["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${h}`)))||!It(h)&&T(a,F.numbers))&&(h=Number(h)),h}function N(a){let h=Object.create(null);k(h,F.aliases,l),Object.keys(F.configs).forEach(function(B){let C=a[B]||h[B];if(C)try{let f=null,O=Vt.resolve(Vt.cwd(),C),x=F.configs[B];if(typeof x=="function"){try{f=x(O)}catch(I){f=I}if(f instanceof Error){L=f;return}}else f=Vt.require(O);G(f)}catch(f){f.name==="PermissionDenied"?L=f:a[B]&&(L=Error(b("Invalid JSON config file: %s",C)))}})}function G(a,h){Object.keys(a).forEach(function(B){let C=a[B],f=h?h+"."+B:B;typeof C=="object"&&C!==null&&!Array.isArray(C)&&D["dot-notation"]?G(C,f):(!$t(R,f.split("."))||T(f,F.arrays)&&D["combine-arrays"])&&Y(f,C)})}function Dt(){typeof m<"u"&&m.forEach(function(a){G(a)})}function q(a,h){if(typeof d>"u")return;let B=typeof d=="string"?d:"",C=Vt.env();Object.keys(C).forEach(function(f){if(B===""||f.lastIndexOf(B,0)===0){let O=f.split("__").map(function(x,I){return I===0&&(x=x.substring(B.length)),ie(x)});(h&&F.configs[O.join(".")]||!h)&&!$t(a,O)&&Y(O.join("."),C[f])}})}function at(a){let h,B=new Set;Object.keys(a).forEach(function(C){if(!B.has(C)&&(h=T(C,F.coercions),typeof h=="function"))try{let f=_(C,h(a[C]));[].concat(F.aliases[C]||[],C).forEach(O=>{B.add(O),a[O]=f})}catch(f){L=f}})}function kt(a){return F.keys.forEach(h=>{~h.indexOf(".")||typeof a[h]>"u"&&(a[h]=void 0)}),a}function k(a,h,B,C=!1){Object.keys(B).forEach(function(f){$t(a,f.split("."))||(Nt(a,f.split("."),B[f]),C&&(E[f]=!0),(h[f]||[]).forEach(function(O){$t(a,O.split("."))||Nt(a,O.split("."),B[f])}))})}function $t(a,h){let B=a;D["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(f){B=B[f]||{}});let C=h[h.length-1];return typeof B!="object"?!1:C in B}function Nt(a,h,B){let C=a;D["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(ct){ct=ci(ct),typeof C=="object"&&C[ct]===void 0&&(C[ct]={}),typeof C[ct]!="object"||Array.isArray(C[ct])?(Array.isArray(C[ct])?C[ct].push({}):C[ct]=[C[ct],{}],C=C[ct][C[ct].length-1]):C=C[ct]});let f=ci(h[h.length-1]),O=T(h.join("."),F.arrays),x=Array.isArray(B),I=D["duplicate-arguments-array"];!I&&T(f,F.nargs)&&(I=!0,(!It(C[f])&&F.nargs[f]===1||Array.isArray(C[f])&&C[f].length===F.nargs[f])&&(C[f]=void 0)),B===An()?C[f]=An(C[f]):Array.isArray(C[f])?I&&O&&x?C[f]=D["flatten-duplicate-arrays"]?C[f].concat(B):(Array.isArray(C[f][0])?C[f]:[C[f]]).concat([B]):!I&&!!O==!!x?C[f]=B:C[f]=C[f].concat([B]):C[f]===void 0&&O?C[f]=x?B:[B]:I&&!(C[f]===void 0||T(f,F.counts)||T(f,F.bools))?C[f]=[C[f],B]:C[f]=B}function te(...a){a.forEach(function(h){Object.keys(h||{}).forEach(function(B){F.aliases[B]||(F.aliases[B]=[].concat(s[B]||[]),F.aliases[B].concat(B).forEach(function(C){if(/-/.test(C)&&D["camel-case-expansion"]){let f=ie(C);f!==B&&F.aliases[B].indexOf(f)===-1&&(F.aliases[B].push(f),g[f]=!0)}}),F.aliases[B].concat(B).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&D["camel-case-expansion"]){let f=Du(C,"-");f!==B&&F.aliases[B].indexOf(f)===-1&&(F.aliases[B].push(f),g[f]=!0)}}),F.aliases[B].forEach(function(C){F.aliases[C]=[B].concat(F.aliases[B].filter(function(f){return C!==f}))}))})})}function T(a,h){let B=[].concat(F.aliases[a]||[],a),C=Object.keys(h),f=B.find(O=>C.includes(O));return f?h[f]:!1}function _u(a){let h=Object.keys(F);return[].concat(h.map(C=>F[C])).some(function(C){return Array.isArray(C)?C.includes(a):C[a]})}function j(a,...h){return[].concat(...h).some(function(C){let f=a.match(C);return f&&_u(f[1])})}function Z(a){if(a.match(v)||!a.match(/^-[^-]+/))return!1;let h=!0,B,C=a.slice(1).split("");for(let f=0;f<C.length;f++){if(B=a.slice(f+2),!_u(C[f])){h=!1;break}if(C[f+1]&&C[f+1]==="="||B==="-"||/[A-Za-z]/.test(C[f])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(B)||C[f+1]&&C[f+1].match(/\W/))break}return h}function et(a){return D["unknown-options-as-args"]&&V(a)}function V(a){return a=a.replace(/^-{3,}/,"--"),a.match(v)||Z(a)?!1:!j(a,/^-+([^=]+?)=[\s\S]*$/,z,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ut(a){return!T(a,F.bools)&&!T(a,F.counts)&&`${a}`in l?l[a]:it(Pt(a))}function it(a){return{[yt.BOOLEAN]:!0,[yt.STRING]:"",[yt.NUMBER]:void 0,[yt.ARRAY]:[]}[a]}function Pt(a){let h=yt.BOOLEAN;return T(a,F.strings)?h=yt.STRING:T(a,F.numbers)?h=yt.NUMBER:T(a,F.bools)?h=yt.BOOLEAN:T(a,F.arrays)&&(h=yt.ARRAY),h}function It(a){return a===void 0}function Ye(){Object.keys(F.counts).find(a=>T(a,F.arrays)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",a)),!0):T(a,F.nargs)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",a)),!0):!1)}return{aliases:Object.assign({},F.aliases),argv:Object.assign(W,R),configuration:D,defaulted:Object.assign({},E),error:L,newAliases:Object.assign({},g)}}};function fa(u){let t=[],e=Object.create(null),n=!0;for(Object.keys(u).forEach(function(r){t.push([].concat(u[r],r))});n;){n=!1;for(let r=0;r<t.length;r++)for(let i=r+1;i<t.length;i++)if(t[r].filter(function(D){return t[i].indexOf(D)!==-1}).length){t[r]=t[r].concat(t[i]),t.splice(i,1),n=!0;break}}return t.forEach(function(r){r=r.filter(function(s,D,l){return l.indexOf(s)===D});let i=r.pop();i!==void 0&&typeof i=="string"&&(e[i]=r)}),e}function An(u){return u!==void 0?u+1:1}function ci(u){return u==="__proto__"?"___proto___":u}function ha(u){return typeof u=="string"&&(u[0]==="'"||u[0]==='"')&&u[u.length-1]===u[0]?u.substring(1,u.length-1):u}var di=J("fs"),_n=J("node:module"),da={};var xn,wn,yn,li=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,fi=(wn=(xn=process==null?void 0:process.versions)===null||xn===void 0?void 0:xn.node)!==null&&wn!==void 0?wn:(yn=process==null?void 0:process.version)===null||yn===void 0?void 0:yn.slice(1);if(fi&&Number(fi.match(/^([^.]+)/)[1])<li)throw Error(`yargs parser supports a minimum Node.js version of ${li}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Fa=process?process.env:{},hi=_n.createRequire?(0,_n.createRequire)(da.url):void 0,pi=new cu({cwd:process.cwd,env:()=>Fa,format:Fi.format,normalize:lu.normalize,resolve:lu.resolve,require:u=>{if(typeof hi<"u")return hi(u);if(u.match(/\.json$/))return JSON.parse((0,di.readFileSync)(u,"utf8"));throw Error("only .json config files are supported in ESM")}}),Ve=function(t,e){return pi.parse(t.slice(),e).argv};Ve.detailed=function(u,t){return pi.parse(u.slice(),t)};Ve.camelCase=ie;Ve.decamelize=Du;Ve.looksLikeNumber=au;var mi=Ve;var bt=J("path");function pa(){return ma()?0:1}function ma(){return Ca()&&!process.defaultApp}function Ca(){return!!process.versions.electron}function Ci(){return process.argv[pa()]}var bi=ee(gi(),1),Ea=new Intl.Segmenter,ga=/^\p{Default_Ignorable_Code_Point}$/u;function On(u,t={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(u=Rt(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!e};for(let{segment:s}of Ea.segment(u)){let D=s.codePointAt(0);if(!(D<=31||D>=127&&D<=159)&&!(D>=8203&&D<=8207||D===65279)&&!(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)&&!(D>=55296&&D<=57343)&&!(D>=65024&&D<=65039)&&!ga.test(s)){if((0,bi.default)().test(s)){r+=2;continue}r+=ru(D,i)}}return r}var Pe=J("fs"),Bi=J("util"),Ai=J("path"),xi={fs:{readFileSync:Pe.readFileSync,writeFile:Pe.writeFile},format:Bi.format,resolve:Ai.resolve,exists:u=>{try{return(0,Pe.statSync)(u).isFile()}catch{return!1}}};var vt,Sn=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let e=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),vt.format.apply(vt.format,[this.cache[this.locale][e]||e].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),e=t.shift(),n=t.shift(),r=t.shift(),i=function(){};typeof t[t.length-1]=="function"&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();let s=r===1?e:n;this.cache[this.locale][e]&&(s=this.cache[this.locale][e][r===1?"one":"other"]),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let D=[s];return~s.indexOf("%d")&&D.push(r),vt.format.apply(vt.format,D.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.cache[this.locale][e]=t[e])}_taggedLiteral(t,...e){let n="";return t.forEach(function(r,i){let s=e[i+1];n+=r,typeof s<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(e,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,e=this.writeQueue[0],n=e.directory,r=e.locale,i=e.cb,s=this._resolveLocaleFile(n,r),D=JSON.stringify(this.cache[r],null,2);vt.fs.writeFile(s,D,"utf-8",function(l){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),i(l)})}_readLocaleFile(){let t={},e=this._resolveLocaleFile(this.directory,this.locale);try{vt.fs.readFileSync&&(t=JSON.parse(vt.fs.readFileSync(e,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+e),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,e){let n=vt.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~e.lastIndexOf("_")){let r=vt.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n}_fileExistsSync(t){return vt.exists(t)}};function wi(u,t){vt=t;let e=new Sn(u);return{__:e.__.bind(e),__n:e.__n.bind(e),setLocale:e.setLocale.bind(e),getLocale:e.getLocale.bind(e),updateLocale:e.updateLocale.bind(e),locale:e.locale}}var ba=u=>wi(u,xi),yi=ba;var Pi=J("node:module"),Ii=ee(Oi(),1),hu=J("node:fs"),ji={},Pn=(0,In.fileURLToPath)(ji.url),Ba=Pn.substring(0,Pn.lastIndexOf("node_modules")),Aa=(0,Pi.createRequire)(ji.url),vi={assert:{notStrictEqual:fu.notStrictEqual,strictEqual:fu.strictEqual},cliui:Bn,findUp:Di,getEnv:u=>process.env[u],inspect:Si.inspect,getProcessArgvBin:Ci,mainFilename:Ba||process.cwd(),Parser:mi,path:{basename:bt.basename,dirname:bt.dirname,extname:bt.extname,relative:bt.relative,resolve:bt.resolve,join:bt.join},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(u,t)=>process.emitWarning(u,t),execPath:()=>process.execPath,exit:u=>{process.exit(u)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:hu.readFileSync,readdirSync:hu.readdirSync,require:Aa,getCallerFile:()=>{let u=(0,Ii.default)(3);return u.match(/^file:\/\//)?(0,In.fileURLToPath)(u):u},stringWidth:On,y18n:yi({directory:(0,bt.resolve)(Pn,"../../../locales"),updateFiles:!1})};function mt(u,t,e,n){e.assert.notStrictEqual(u,t,n)}function vn(u,t){t.assert.strictEqual(typeof u,"string")}function Ie(u){return Object.keys(u)}function Q(u){return!!u&&!!u.then&&typeof u.then=="function"}var st=class u extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,u)}};function Yt(u){let e=u.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r=e.shift();if(!r)throw new Error(`No command found in: ${u}`);let i={cmd:r.replace(n,""),demanded:[],optional:[]};return e.forEach((s,D)=>{let l=!1;s=s.replace(/\s/g,""),/\.+[\]>]/.test(s)&&D===e.length-1&&(l=!0),/^\[/.test(s)?i.optional.push({cmd:s.replace(n,"").split("|"),variadic:l}):i.demanded.push({cmd:s.replace(n,"").split("|"),variadic:l})}),i}var xa=["first","second","third","fourth","fifth","sixth"];function w(u,t,e){function n(){return typeof u=="object"?[{demanded:[],optional:[]},u,t]:[Yt(`cmd ${u}`),t,e]}try{let r=0,[i,s,D]=n(),l=[].slice.call(s);for(;l.length&&l[l.length-1]===void 0;)l.pop();let m=D||l.length;if(m<i.demanded.length)throw new st(`Not enough arguments provided. Expected ${i.demanded.length} but received ${l.length}.`);let d=i.demanded.length+i.optional.length;if(m>d)throw new st(`Too many arguments provided. Expected max ${d} but received ${m}.`);i.demanded.forEach(c=>{let p=l.shift(),g=Mi(p);c.cmd.filter(b=>b===g||b==="*").length===0&&Ti(g,c.cmd,r),r+=1}),i.optional.forEach(c=>{if(l.length===0)return;let p=l.shift(),g=Mi(p);c.cmd.filter(b=>b===g||b==="*").length===0&&Ti(g,c.cmd,r),r+=1})}catch(r){console.warn(r.stack)}}function Mi(u){return Array.isArray(u)?"array":u===null?"null":typeof u}function Ti(u,t,e){throw new st(`Invalid ${xa[e]||"manyith"} argument. Expected ${t.join(" or ")} but received ${u}.`)}var Fu=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,n=!0,r=!1){if(w("<array|function> [boolean] [boolean] [boolean]",[t,e,n],arguments.length),Array.isArray(t)){for(let i=0;i<t.length;i++){if(typeof t[i]!="function")throw Error("middleware must be a function");let s=t[i];s.applyBeforeValidation=e,s.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let i=t;i.applyBeforeValidation=e,i.global=n,i.mutates=r,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(r=>{let i=[...n[e]||[],e];return r.option?!i.includes(r.option):!0}),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function $i(u){return u?u.map(t=>(t.applyBeforeValidation=!1,t)):[]}function se(u,t,e,n){return e.reduce((r,i)=>{if(i.applyBeforeValidation!==n)return r;if(i.mutates){if(i.applied)return r;i.applied=!0}if(Q(r))return r.then(s=>Promise.all([s,i(s,t)])).then(([s,D])=>Object.assign(s,D));{let s=i(r,t);return Q(s)?s.then(D=>Object.assign(r,D)):Object.assign(r,s)}},u)}function oe(u,t,e=n=>{throw n}){try{let n=wa(u)?u():u;return Q(n)?n.then(r=>t(r)):t(n)}catch(n){return e(n)}}function wa(u){return typeof u=="function"}var ve=/(^\*)|(^\$0)/,jn=class{constructor(t,e,n,r){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=r,this.usage=t,this.globalMiddleware=n,this.validation=e}addDirectory(t,e,n,r){r=r||{},this.requireCache.add(n);let i=this.shim.path.resolve(this.shim.path.dirname(n),t),s=this.shim.readdirSync(i,{recursive:!!r.recurse});Array.isArray(r.extensions)||(r.extensions=["js"]);let D=typeof r.visit=="function"?r.visit:l=>l;for(let l of s){let m=l.toString();if(r.exclude){let c=!1;if(typeof r.exclude=="function"?c=r.exclude(m):c=r.exclude.test(m),c)continue}if(r.include){let c=!1;if(typeof r.include=="function"?c=r.include(m):c=r.include.test(m),!c)continue}let d=!1;for(let c of r.extensions)m.endsWith(c)&&(d=!0);if(d){let c=this.shim.path.join(i,m),p=e(c),g=Object.create(null,Object.getOwnPropertyDescriptors({...p}));if(D(g,c,m)){if(this.requireCache.has(c))continue;this.requireCache.add(c),g.command||(g.command=this.shim.path.basename(c,this.shim.path.extname(c))),this.addHandler(g)}}}}addHandler(t,e,n,r,i,s){let D=[],l=$i(i);if(r=r||(()=>{}),Array.isArray(t))if(ya(t))[t,...D]=t;else for(let m of t)this.addHandler(m);else if(Oa(t)){let m=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(m===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(m=[].concat(m).concat(t.aliases)),this.addHandler(m,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Ni(n)){this.addHandler([t].concat(D),e,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let m=Yt(t);D=D.map(p=>Yt(p).cmd);let d=!1,c=[m.cmd].concat(D).filter(p=>ve.test(p)?(d=!0,!1):!0);c.length===0&&d&&c.push("$0"),d&&(m.cmd=c[0],D=c.slice(1),t=t.replace(ve,m.cmd)),D.forEach(p=>{this.aliasMap[p]=m.cmd}),e!==!1&&this.usage.command(t,e,d,D,s),this.handlers[m.cmd]={original:t,description:e,handler:r,builder:n||{},middlewares:l,deprecated:s,demanded:m.demanded,optional:m.optional},d&&(this.defaultCommand=this.handlers[m.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,n,r,i,s){let D=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,l=e.getInternalMethods().getContext(),m=l.commands.slice(),d=!t;t&&(l.commands.push(t),l.fullCommands.push(D.original));let c=this.applyBuilderUpdateUsageAndParse(d,D,e,n.aliases,m,r,i,s);return Q(c)?c.then(p=>this.applyMiddlewareAndGetResult(d,D,p.innerArgv,l,i,p.aliases,e)):this.applyMiddlewareAndGetResult(d,D,c.innerArgv,l,i,c.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,n,r,i,s,D,l){let m=e.builder,d=n;if(du(m)){n.getInternalMethods().getUsageInstance().freeze();let c=m(n.getInternalMethods().reset(r),l);if(Q(c))return c.then(p=>(d=Ui(p)?p:n,this.parseAndUpdateUsage(t,e,d,i,s,D)))}else _a(m)&&(n.getInternalMethods().getUsageInstance().freeze(),d=n.getInternalMethods().reset(r),Object.keys(e.builder).forEach(c=>{d.option(c,m[c])}));return this.parseAndUpdateUsage(t,e,d,i,s,D)}parseAndUpdateUsage(t,e,n,r,i,s){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(r,e),e.description);let D=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,i,s);return Q(D)?D.then(l=>({aliases:n.parsed.aliases,innerArgv:l})):{aliases:n.parsed.aliases,innerArgv:D}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,e){let n=ve.test(e.original)?e.original.replace(ve,"").trim():e.original,r=t.filter(i=>!ve.test(i));return r.push(n),`$0 ${r.join(" ")}`}handleValidationAndGetResult(t,e,n,r,i,s,D,l){if(!s.getInternalMethods().getHasOutput()){let m=s.getInternalMethods().runValidation(i,l,s.parsed.error,t);n=oe(n,d=>(m(d),d))}if(e.handler&&!s.getInternalMethods().getHasOutput()){s.getInternalMethods().setHasOutput();let m=!!s.getOptions().configuration["populate--"];s.getInternalMethods().postProcess(n,m,!1,!1),n=se(n,s,D,!1),n=oe(n,d=>{let c=e.handler(d);return Q(c)?c.then(()=>d):d}),t||s.getInternalMethods().getUsageInstance().cacheHelpMessage(),Q(n)&&!s.getInternalMethods().hasParseCallback()&&n.catch(d=>{try{s.getInternalMethods().getUsageInstance().fail(null,d)}catch{}})}return t||(r.commands.pop(),r.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,e,n,r,i,s,D){let l={};if(i)return n;D.getInternalMethods().getHasOutput()||(l=this.populatePositionals(e,n,r,D));let m=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),d=se(n,D,m,!0);return Q(d)?d.then(c=>this.handleValidationAndGetResult(t,e,c,r,s,D,m,l)):this.handleValidationAndGetResult(t,e,d,r,s,D,m,l)}populatePositionals(t,e,n,r){e._=e._.slice(n.commands.length);let i=t.demanded.slice(0),s=t.optional.slice(0),D={};for(this.validation.positionalCount(i.length,e._.length);i.length;){let l=i.shift();this.populatePositional(l,e,D)}for(;s.length;){let l=s.shift();this.populatePositional(l,e,D)}return e._=n.commands.concat(e._.map(l=>""+l)),this.postProcessPositionals(e,D,this.cmdToParseOptions(t.original),r),D}populatePositional(t,e,n){let r=t.cmd[0];t.variadic?n[r]=e._.splice(0).map(String):e._.length&&(n[r]=[String(e._.shift())])}cmdToParseOptions(t){let e={array:[],default:{},alias:{},demand:{}},n=Yt(t);return n.demanded.forEach(r=>{let[i,...s]=r.cmd;r.variadic&&(e.array.push(i),e.default[i]=[]),e.alias[i]=s,e.demand[i]=!0}),n.optional.forEach(r=>{let[i,...s]=r.cmd;r.variadic&&(e.array.push(i),e.default[i]=[]),e.alias[i]=s}),e}postProcessPositionals(t,e,n,r){let i=Object.assign({},r.getOptions());i.default=Object.assign(n.default,i.default);for(let m of Object.keys(n.alias))i.alias[m]=(i.alias[m]||[]).concat(n.alias[m]);i.array=i.array.concat(n.array),i.config={};let s=[];if(Object.keys(e).forEach(m=>{e[m].map(d=>{i.configuration["unknown-options-as-args"]&&(i.key[m]=!0),s.push(`--${m}`),s.push(d)})}),!s.length)return;let D=Object.assign({},i.configuration,{"populate--":!1}),l=this.shim.Parser.detailed(s,Object.assign({},i,{configuration:D}));if(l.error)r.getInternalMethods().getUsageInstance().fail(l.error.message,l.error);else{let m=Object.keys(e);Object.keys(e).forEach(d=>{m.push(...l.aliases[d])}),Object.keys(l.argv).forEach(d=>{m.includes(d)&&(e[d]||(e[d]=l.argv[d]),!this.isInConfigs(r,d)&&!this.isDefaulted(r,d)&&Object.prototype.hasOwnProperty.call(t,d)&&Object.prototype.hasOwnProperty.call(l.argv,d)&&(Array.isArray(t[d])||Array.isArray(l.argv[d]))?t[d]=[].concat(t[d],l.argv[d]):t[d]=l.argv[d])})}}isDefaulted(t,e){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,e)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(e))}isInConfigs(t,e){let{configObjects:n}=t.getOptions();return n.some(r=>Object.prototype.hasOwnProperty.call(r,e))||n.some(r=>Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(e)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=ve.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let e=this.defaultCommand.builder;if(du(e))return e(t,!0);Ni(e)||Object.keys(e).forEach(n=>{t.option(n,e[n])})}extractDesc({describe:t,description:e,desc:n}){for(let r of[t,e,n]){if(typeof r=="string"||r===!1)return r;mt(r,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();mt(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function Li(u,t,e,n){return new jn(u,t,e,n)}function Ni(u){return typeof u=="object"&&!!u.builder&&typeof u.handler=="function"}function ya(u){return u.every(t=>typeof t=="string")}function du(u){return typeof u=="function"}function _a(u){return typeof u=="object"}function Oa(u){return typeof u=="object"&&!Array.isArray(u)}function Kt(u={},t=()=>!0){let e={};return Ie(u).forEach(n=>{t(n,u[n])&&(e[n]=u[n])}),e}function Jt(u){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let e=t;e._handle&&e.isTTY&&typeof e._handle.setBlocking=="function"&&e._handle.setBlocking(u)})}function Sa(u){return typeof u=="boolean"}function Ri(u,t){let e=t.y18n.__,n={},r=[];n.failFn=function(A){r.push(A)};let i=null,s=null,D=!0;n.showHelpOnFail=function(A=!0,_){let[N,G]=typeof A=="string"?[!0,A]:[A,_];return u.getInternalMethods().isGlobalContext()&&(s=G),i=G,D=N,n};let l=!1;n.fail=function(A,_){let N=u.getInternalMethods().getLoggerInstance();if(r.length)for(let G=r.length-1;G>=0;--G){let Dt=r[G];if(Sa(Dt)){if(_)throw _;if(A)throw Error(A)}else Dt(A,_,n)}else{if(u.getExitProcess()&&Jt(!0),!l){l=!0,D&&(u.showHelp("error"),N.error()),(A||_)&&N.error(A||_);let G=i||s;G&&((A||_)&&N.error(""),N.error(G))}if(_=_||new st(A),u.getExitProcess())return u.exit(1);if(u.getInternalMethods().hasParseCallback())return u.exit(1,_);throw _}};let m=[],d=!1;n.usage=(S,A)=>S===null?(d=!0,m=[],n):(d=!1,m.push([S,A||""]),n),n.getUsage=()=>m,n.getUsageDisabled=()=>d,n.getPositionalGroupName=()=>e("Positionals:");let c=[];n.example=(S,A)=>{c.push([S,A||""])};let p=[];n.command=function(A,_,N,G,Dt=!1){N&&(p=p.map(q=>(q[2]=!1,q))),p.push([A,_||"",N,G,Dt])},n.getCommands=()=>p;let g={};n.describe=function(A,_){Array.isArray(A)?A.forEach(N=>{n.describe(N,_)}):typeof A=="object"?Object.keys(A).forEach(N=>{n.describe(N,A[N])}):g[A]=_},n.getDescriptions=()=>g;let E=[];n.epilog=S=>{E.push(S)};let b=!1,F;n.wrap=S=>{b=!0,F=S},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(F=K(),b=!0),F);let v="__yargsString__:";n.deferY18nLookup=S=>v+S,n.help=function(){if(U)return U;L();let A=u.customScriptName?u.$0:t.path.basename(u.$0),_=u.getDemandedOptions(),N=u.getDemandedCommands(),G=u.getDeprecatedOptions(),Dt=u.getGroups(),q=u.getOptions(),at=[];at=at.concat(Object.keys(g)),at=at.concat(Object.keys(_)),at=at.concat(Object.keys(N)),at=at.concat(Object.keys(q.default)),at=at.filter(W),at=Object.keys(at.reduce((j,Z)=>(Z!=="_"&&(j[Z]=!0),j),{}));let kt=n.getWrap(),k=t.cliui({width:kt,wrap:!!kt});if(!d){if(m.length)m.forEach(j=>{k.div({text:`${j[0].replace(/\$0/g,A)}`}),j[1]&&k.div({text:`${j[1]}`,padding:[1,0,0,0]})}),k.div();else if(p.length){let j=null;N._?j=`${A} <${e("command")}>
15
+ `:j=`${A} [${e("command")}]
16
+ `,k.div(`${j}`)}}if(p.length>1||p.length===1&&!p[0][2]){k.div(e("Commands:"));let j=u.getInternalMethods().getContext(),Z=j.commands.length?`${j.commands.join(" ")} `:"";u.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(p=p.sort((V,ut)=>V[0].localeCompare(ut[0])));let et=A?`${A} `:"";p.forEach(V=>{let ut=`${et}${Z}${V[0].replace(/^\$0 ?/,"")}`;k.span({text:ut,padding:[0,2,0,2],width:z(p,kt,`${A}${Z}`)+4},{text:V[1]});let it=[];V[2]&&it.push(`[${e("default")}]`),V[3]&&V[3].length&&it.push(`[${e("aliases:")} ${V[3].join(", ")}]`),V[4]&&(typeof V[4]=="string"?it.push(`[${e("deprecated: %s",V[4])}]`):it.push(`[${e("deprecated")}]`)),it.length?k.div({text:it.join(" "),padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}let $t=(Object.keys(q.alias)||[]).concat(Object.keys(u.parsed.newAliases)||[]);at=at.filter(j=>!u.parsed.newAliases[j]&&$t.every(Z=>(q.alias[Z]||[]).indexOf(j)===-1));let Nt=e("Options:");Dt[Nt]||(Dt[Nt]=[]),R(at,q.alias,Dt,Nt);let te=j=>/^--/.test(pu(j)),T=Object.keys(Dt).filter(j=>Dt[j].length>0).map(j=>{let Z=Dt[j].filter(W).map(et=>{if($t.includes(et))return et;for(let V=0,ut;(ut=$t[V])!==void 0;V++)if((q.alias[ut]||[]).includes(et))return ut;return et});return{groupName:j,normalizedKeys:Z}}).filter(({normalizedKeys:j})=>j.length>0).map(({groupName:j,normalizedKeys:Z})=>{let et=Z.reduce((V,ut)=>(V[ut]=[ut].concat(q.alias[ut]||[]).map(it=>j===n.getPositionalGroupName()?it:(/^[0-9]$/.test(it)?q.boolean.includes(ut)?"-":"--":it.length>1?"--":"-")+it).sort((it,Pt)=>te(it)===te(Pt)?0:te(it)?1:-1).join(", "),V),{});return{groupName:j,normalizedKeys:Z,switches:et}});if(T.filter(({groupName:j})=>j!==n.getPositionalGroupName()).some(({normalizedKeys:j,switches:Z})=>!j.every(et=>te(Z[et])))&&T.filter(({groupName:j})=>j!==n.getPositionalGroupName()).forEach(({normalizedKeys:j,switches:Z})=>{j.forEach(et=>{te(Z[et])&&(Z[et]=Pa(Z[et],4))})}),T.forEach(({groupName:j,normalizedKeys:Z,switches:et})=>{k.div(j),Z.forEach(V=>{let ut=et[V],it=g[V]||"",Pt=null;it.includes(v)&&(it=e(it.substring(v.length))),q.boolean.includes(V)&&(Pt=`[${e("boolean")}]`),q.count.includes(V)&&(Pt=`[${e("count")}]`),q.string.includes(V)&&(Pt=`[${e("string")}]`),q.normalize.includes(V)&&(Pt=`[${e("string")}]`),q.array.includes(V)&&(Pt=`[${e("array")}]`),q.number.includes(V)&&(Pt=`[${e("number")}]`);let It=h=>typeof h=="string"?`[${e("deprecated: %s",h)}]`:`[${e("deprecated")}]`,Ye=[V in G?It(G[V]):null,Pt,V in _?`[${e("required")}]`:null,q.choices&&q.choices[V]?`[${e("choices:")} ${n.stringifiedValues(q.choices[V])}]`:null,H(q.default[V],q.defaultDescription[V])].filter(Boolean).join(" ");k.span({text:pu(ut),padding:[0,2,0,2+zi(ut)],width:z(et,kt)+4},it);let a=u.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Ye&&!a?k.div({text:Ye,padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}),c.length&&(k.div(e("Examples:")),c.forEach(j=>{j[0]=j[0].replace(/\$0/g,A)}),c.forEach(j=>{j[1]===""?k.div({text:j[0],padding:[0,2,0,2]}):k.div({text:j[0],padding:[0,2,0,2],width:z(c,kt)+4},{text:j[1]})}),k.div()),E.length>0){let j=E.map(Z=>Z.replace(/\$0/g,A)).join(`
17
17
  `);k.div(`${j}
18
- `)}return k.toString().replace(/\s*$/,"")};function z(S,A,_){let N=0;return Array.isArray(S)||(S=Object.values(S).map(G=>[G])),S.forEach(G=>{N=Math.max(e.stringWidth(_?`${_} ${mu(G[0])}`:mu(G[0]))+Ri(G[0]),N)}),A&&(N=Math.min(N,parseInt((A*.5).toString(),10))),N}function L(){let S=u.getDemandedOptions(),A=u.getOptions();(Object.keys(A.alias)||[]).forEach(_=>{A.alias[_].forEach(N=>{g[N]&&n.describe(_,g[N]),N in S&&u.demandOption(_,S[N]),A.boolean.includes(N)&&u.boolean(_),A.count.includes(N)&&u.count(_),A.string.includes(N)&&u.string(_),A.normalize.includes(N)&&u.normalize(_),A.array.includes(N)&&u.array(_),A.number.includes(N)&&u.number(_)})})}let U;n.cacheHelpMessage=function(){U=this.help()},n.clearCachedHelpMessage=function(){U=void 0},n.hasCachedHelpMessage=function(){return!!U};function R(S,A,_,N){let G=[],De=null;return Object.keys(_).forEach(q=>{G=G.concat(_[q])}),S.forEach(q=>{De=[q].concat(A[q]),De.some(ae=>G.indexOf(ae)!==-1)||_[N].push(q)}),G}function W(S){return u.getOptions().hiddenOptions.indexOf(S)<0||u.parsed.argv[u.getOptions().showHiddenOpt]}n.showHelp=S=>{let A=u.getInternalMethods().getLoggerInstance();S||(S="error"),(typeof S=="function"?S:A[S])(n.help())},n.functionDescription=S=>["(",S.name?e.Parser.decamelize(S.name,"-"):t("generated-value"),")"].join(""),n.stringifiedValues=function(A,_){let N="",G=_||", ",De=[].concat(A);return!A||!De.length||De.forEach(q=>{N.length&&(N+=G),N+=JSON.stringify(q)}),N};function H(S,A){let _=`[${t("default:")} `;if(S===void 0&&!A)return null;if(A)_+=A;else switch(typeof S){case"string":_+=`"${S}"`;break;case"object":_+=JSON.stringify(S);break;default:_+=S}return`${_}]`}function K(){return e.process.stdColumns?Math.min(80,e.process.stdColumns):80}let Fe=null;n.version=S=>{Fe=S},n.showVersion=S=>{let A=u.getInternalMethods().getLoggerInstance();S||(S="error"),(typeof S=="function"?S:A[S])(Fe)},n.reset=function(A){return i=null,l=!1,m=[],d=!1,E=[],c=[],p=[],g=Ye(g,_=>!A[_]),n};let Y=[];return n.freeze=function(){Y.push({failMessage:i,failureOutput:l,usages:m,usageDisabled:d,epilogs:E,examples:c,commands:p,descriptions:g})},n.unfreeze=function(A=!1){let _=Y.pop();_&&(A?(g={..._.descriptions,...g},p=[..._.commands,...p],m=[..._.usages,...m],c=[..._.examples,...c],E=[..._.epilogs,...E]):{failMessage:i,failureOutput:l,usages:m,usageDisabled:d,epilogs:E,examples:c,commands:p,descriptions:g}=_)},n}function Tn(u){return typeof u=="object"}function va(u,e){return Tn(u)?{text:u.text,indentation:u.indentation+e}:{text:u,indentation:e}}function Ri(u){return Tn(u)?u.indentation:0}function mu(u){return Tn(u)?u.text:u}var Vi=`###-begin-{{app_name}}-completions-###
18
+ `)}return k.toString().replace(/\s*$/,"")};function z(S,A,_){let N=0;return Array.isArray(S)||(S=Object.values(S).map(G=>[G])),S.forEach(G=>{N=Math.max(t.stringWidth(_?`${_} ${pu(G[0])}`:pu(G[0]))+zi(G[0]),N)}),A&&(N=Math.min(N,parseInt((A*.5).toString(),10))),N}function L(){let S=u.getDemandedOptions(),A=u.getOptions();(Object.keys(A.alias)||[]).forEach(_=>{A.alias[_].forEach(N=>{g[N]&&n.describe(_,g[N]),N in S&&u.demandOption(_,S[N]),A.boolean.includes(N)&&u.boolean(_),A.count.includes(N)&&u.count(_),A.string.includes(N)&&u.string(_),A.normalize.includes(N)&&u.normalize(_),A.array.includes(N)&&u.array(_),A.number.includes(N)&&u.number(_)})})}let U;n.cacheHelpMessage=function(){U=this.help()},n.clearCachedHelpMessage=function(){U=void 0},n.hasCachedHelpMessage=function(){return!!U};function R(S,A,_,N){let G=[],Dt=null;return Object.keys(_).forEach(q=>{G=G.concat(_[q])}),S.forEach(q=>{Dt=[q].concat(A[q]),Dt.some(at=>G.indexOf(at)!==-1)||_[N].push(q)}),G}function W(S){return u.getOptions().hiddenOptions.indexOf(S)<0||u.parsed.argv[u.getOptions().showHiddenOpt]}n.showHelp=S=>{let A=u.getInternalMethods().getLoggerInstance();S||(S="error"),(typeof S=="function"?S:A[S])(n.help())},n.functionDescription=S=>["(",S.name?t.Parser.decamelize(S.name,"-"):e("generated-value"),")"].join(""),n.stringifiedValues=function(A,_){let N="",G=_||", ",Dt=[].concat(A);return!A||!Dt.length||Dt.forEach(q=>{N.length&&(N+=G),N+=JSON.stringify(q)}),N};function H(S,A){let _=`[${e("default:")} `;if(S===void 0&&!A)return null;if(A)_+=A;else switch(typeof S){case"string":_+=`"${S}"`;break;case"object":_+=JSON.stringify(S);break;default:_+=S}return`${_}]`}function K(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let Ft=null;n.version=S=>{Ft=S},n.showVersion=S=>{let A=u.getInternalMethods().getLoggerInstance();S||(S="error"),(typeof S=="function"?S:A[S])(Ft)},n.reset=function(A){return i=null,l=!1,m=[],d=!1,E=[],c=[],p=[],g=Kt(g,_=>!A[_]),n};let Y=[];return n.freeze=function(){Y.push({failMessage:i,failureOutput:l,usages:m,usageDisabled:d,epilogs:E,examples:c,commands:p,descriptions:g})},n.unfreeze=function(A=!1){let _=Y.pop();_&&(A?(g={..._.descriptions,...g},p=[..._.commands,...p],m=[..._.usages,...m],c=[..._.examples,...c],E=[..._.epilogs,...E]):{failMessage:i,failureOutput:l,usages:m,usageDisabled:d,epilogs:E,examples:c,commands:p,descriptions:g}=_)},n}function Mn(u){return typeof u=="object"}function Pa(u,t){return Mn(u)?{text:u.text,indentation:u.indentation+t}:{text:u,indentation:t}}function zi(u){return Mn(u)?u.indentation:0}function pu(u){return Mn(u)?u.text:u}var Wi=`###-begin-{{app_name}}-completions-###
19
19
  #
20
20
  # yargs command completion script
21
21
  #
@@ -44,7 +44,7 @@ _{{app_name}}_yargs_completions()
44
44
  }
45
45
  complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
46
46
  ###-end-{{app_name}}-completions-###
47
- `,Hi=`#compdef {{app_name}}
47
+ `,Vi=`#compdef {{app_name}}
48
48
  ###-begin-{{app_name}}-completions-###
49
49
  #
50
50
  # yargs command completion script
@@ -71,14 +71,14 @@ else
71
71
  compdef _{{app_name}}_yargs_completions {{app_name}}
72
72
  fi
73
73
  ###-end-{{app_name}}-completions-###
74
- `;var $n=class{constructor(e,t,n,r){var i,s,D;this.yargs=e,this.usage=t,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(D=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((s=this.shim.getEnv("ZSH_NAME"))===null||s===void 0?void 0:s.includes("zsh")))!==null&&D!==void 0?D:!1}defaultCompletion(e,t,n,r){let i=this.command.getCommandHandlers();for(let D=0,l=e.length;D<l;++D)if(i[e[D]]&&i[e[D]].builder){let m=i[e[D]].builder;if(pu(m)){this.indexAfterLastReset=D+1;let d=this.yargs.getInternalMethods().reset();return m(d,!0),d.argv}}let s=[];this.commandCompletions(s,e,n),this.optionCompletions(s,e,t,n),this.choicesFromOptionsCompletions(s,e,t,n),this.choicesFromPositionalsCompletions(s,e,t,n),r(null,s)}commandCompletions(e,t,n){let r=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&r[r.length-1]!==n&&!this.previousArgHasChoices(t)&&this.usage.getCommands().forEach(i=>{let s=Ge(i[0]).cmd;if(t.indexOf(s)===-1)if(!this.zshShell)e.push(s);else{let D=i[1]||"";e.push(s.replace(/:/g,"\\:")+":"+D)}})}optionCompletions(e,t,n,r){if((r.match(/^-/)||r===""&&e.length===0)&&!this.previousArgHasChoices(t)){let i=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach(D=>{let l=!!i.configuration["boolean-negation"]&&i.boolean.includes(D);!s.includes(D)&&!i.hiddenOptions.includes(D)&&!this.argsContainKey(t,D,l)&&this.completeOptionKey(D,e,r,l&&!!i.default[D])})}}choicesFromOptionsCompletions(e,t,n,r){if(this.previousArgHasChoices(t)){let i=this.getPreviousArgChoices(t);i&&i.length>0&&e.push(...i.map(s=>s.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(e,t,n,r){if(r===""&&e.length>0&&this.previousArgHasChoices(t))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),D=i[n._.length-s-1];if(!D)return;let l=this.yargs.getOptions().choices[D]||[];for(let m of l)m.startsWith(r)&&e.push(m.replace(/:/g,"\\:"))}getPreviousArgChoices(e){if(e.length<1)return;let t=e[e.length-1],n="";if(!t.startsWith("-")&&e.length>1&&(n=t,t=e[e.length-2]),!t.startsWith("-"))return;let r=t.replace(/^-+/,""),i=this.yargs.getOptions(),s=[r,...this.yargs.getAliases()[r]||[]],D;for(let l of s)if(Object.prototype.hasOwnProperty.call(i.key,l)&&Array.isArray(i.choices[l])){D=i.choices[l];break}if(D)return D.filter(l=>!n||l.startsWith(n))}previousArgHasChoices(e){let t=this.getPreviousArgChoices(e);return t!==void 0&&t.length>0}argsContainKey(e,t,n){let r=i=>e.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(r(t)||n&&r(`no-${t}`))return!0;if(this.aliases){for(let i of this.aliases[t])if(r(i))return!0}return!1}completeOptionKey(e,t,n,r){var i,s,D,l;let m=e;if(this.zshShell){let g=this.usage.getDescriptions(),E=(s=(i=this===null||this===void 0?void 0:this.aliases)===null||i===void 0?void 0:i[e])===null||s===void 0?void 0:s.find(v=>{let z=g[v];return typeof z=="string"&&z.length>0}),b=E?g[E]:void 0,F=(l=(D=g[e])!==null&&D!==void 0?D:b)!==null&&l!==void 0?l:"";m=`${e.replace(/:/g,"\\:")}:${F.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let d=g=>/^--/.test(g),c=g=>/^[^0-9]$/.test(g),p=!d(n)&&c(e)?"-":"--";t.push(p+m),r&&t.push(p+"no-"+m)}customCompletion(e,t,n,r){if(me(this.customCompletionFunction,null,this.shim),Ma(this.customCompletionFunction)){let i=this.customCompletionFunction(n,t);return Q(i)?i.then(s=>{this.shim.process.nextTick(()=>{r(null,s)})}).catch(s=>{this.shim.process.nextTick(()=>{r(s,void 0)})}):r(null,i)}else return Ta(this.customCompletionFunction)?this.customCompletionFunction(n,t,(i=r)=>this.defaultCompletion(e,t,n,i),i=>{r(null,i)}):this.customCompletionFunction(n,t,i=>{r(null,i)})}getCompletion(e,t){let n=e.length?e[e.length-1]:"",r=this.yargs.parse(e,!0),i=this.customCompletionFunction?s=>this.customCompletion(e,s,n,t):s=>this.defaultCompletion(e,s,n,t);return Q(r)?r.then(i):i(r)}generateCompletionScript(e,t){let n=this.zshShell?Hi:Vi,r=this.shim.path.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,t),n.replace(/{{app_path}}/g,e)}registerFunction(e){this.customCompletionFunction=e}setParsed(e){this.aliases=e.aliases}};function qi(u,e,t,n){return new $n(u,e,t,n)}function Ma(u){return u.length<3}function Ta(u){return u.length>3}function Gi(u,e){if(u.length===0)return e.length;if(e.length===0)return u.length;let t=[],n;for(n=0;n<=e.length;n++)t[n]=[n];let r;for(r=0;r<=u.length;r++)t[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=u.length;r++)e.charAt(n-1)===u.charAt(r-1)?t[n][r]=t[n-1][r-1]:n>1&&r>1&&e.charAt(n-2)===u.charAt(r-1)&&e.charAt(n-1)===u.charAt(r-2)?t[n][r]=t[n-2][r-2]+1:t[n][r]=Math.min(t[n-1][r-1]+1,Math.min(t[n][r-1]+1,t[n-1][r]+1));return t[e.length][u.length]}var Yi=["$0","--","_"];function Ki(u,e,t){let n=t.y18n.__,r=t.y18n.__n,i={};i.nonOptionCount=function(c){let p=u.getDemandedCommands(),E=c._.length+(c["--"]?c["--"].length:0)-u.getInternalMethods().getContext().commands.length;p._&&(E<p._.min||E>p._.max)&&(E<p._.min?p._.minMsg!==void 0?e.fail(p._.minMsg?p._.minMsg.replace(/\$0/g,E.toString()).replace(/\$1/,p._.min.toString()):null):e.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",E,E.toString(),p._.min.toString())):E>p._.max&&(p._.maxMsg!==void 0?e.fail(p._.maxMsg?p._.maxMsg.replace(/\$0/g,E.toString()).replace(/\$1/,p._.max.toString()):null):e.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",E,E.toString(),p._.max.toString()))))},i.positionalCount=function(c,p){p<c&&e.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p+"",c+""))},i.requiredArguments=function(c,p){let g=null;for(let E of Object.keys(p))(!Object.prototype.hasOwnProperty.call(c,E)||typeof c[E]>"u")&&(g=g||{},g[E]=p[E]);if(g){let E=[];for(let F of Object.keys(g)){let v=g[F];v&&E.indexOf(v)<0&&E.push(v)}let b=E.length?`
74
+ `;var Tn=class{constructor(t,e,n,r){var i,s,D;this.yargs=t,this.usage=e,this.command=n,this.shim=r,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(D=((i=this.shim.getEnv("SHELL"))===null||i===void 0?void 0:i.includes("zsh"))||((s=this.shim.getEnv("ZSH_NAME"))===null||s===void 0?void 0:s.includes("zsh")))!==null&&D!==void 0?D:!1}defaultCompletion(t,e,n,r){let i=this.command.getCommandHandlers();for(let D=0,l=t.length;D<l;++D)if(i[t[D]]&&i[t[D]].builder){let m=i[t[D]].builder;if(du(m)){this.indexAfterLastReset=D+1;let d=this.yargs.getInternalMethods().reset();return m(d,!0),d.argv}}let s=[];this.commandCompletions(s,t,n),this.optionCompletions(s,t,e,n),this.choicesFromOptionsCompletions(s,t,e,n),this.choicesFromPositionalsCompletions(s,t,e,n),r(null,s)}commandCompletions(t,e,n){let r=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&r[r.length-1]!==n&&!this.previousArgHasChoices(e)&&this.usage.getCommands().forEach(i=>{let s=Yt(i[0]).cmd;if(e.indexOf(s)===-1)if(!this.zshShell)t.push(s);else{let D=i[1]||"";t.push(s.replace(/:/g,"\\:")+":"+D)}})}optionCompletions(t,e,n,r){if((r.match(/^-/)||r===""&&t.length===0)&&!this.previousArgHasChoices(e)){let i=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(i.key).forEach(D=>{let l=!!i.configuration["boolean-negation"]&&i.boolean.includes(D);!s.includes(D)&&!i.hiddenOptions.includes(D)&&!this.argsContainKey(e,D,l)&&this.completeOptionKey(D,t,r,l&&!!i.default[D])})}}choicesFromOptionsCompletions(t,e,n,r){if(this.previousArgHasChoices(e)){let i=this.getPreviousArgChoices(e);i&&i.length>0&&t.push(...i.map(s=>s.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,e,n,r){if(r===""&&t.length>0&&this.previousArgHasChoices(e))return;let i=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],s=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),D=i[n._.length-s-1];if(!D)return;let l=this.yargs.getOptions().choices[D]||[];for(let m of l)m.startsWith(r)&&t.push(m.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],n="";if(!e.startsWith("-")&&t.length>1&&(n=e,e=t[t.length-2]),!e.startsWith("-"))return;let r=e.replace(/^-+/,""),i=this.yargs.getOptions(),s=[r,...this.yargs.getAliases()[r]||[]],D;for(let l of s)if(Object.prototype.hasOwnProperty.call(i.key,l)&&Array.isArray(i.choices[l])){D=i.choices[l];break}if(D)return D.filter(l=>!n||l.startsWith(n))}previousArgHasChoices(t){let e=this.getPreviousArgChoices(t);return e!==void 0&&e.length>0}argsContainKey(t,e,n){let r=i=>t.indexOf((/^[^0-9]$/.test(i)?"-":"--")+i)!==-1;if(r(e)||n&&r(`no-${e}`))return!0;if(this.aliases){for(let i of this.aliases[e])if(r(i))return!0}return!1}completeOptionKey(t,e,n,r){var i,s,D,l;let m=t;if(this.zshShell){let g=this.usage.getDescriptions(),E=(s=(i=this===null||this===void 0?void 0:this.aliases)===null||i===void 0?void 0:i[t])===null||s===void 0?void 0:s.find(v=>{let z=g[v];return typeof z=="string"&&z.length>0}),b=E?g[E]:void 0,F=(l=(D=g[t])!==null&&D!==void 0?D:b)!==null&&l!==void 0?l:"";m=`${t.replace(/:/g,"\\:")}:${F.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let d=g=>/^--/.test(g),c=g=>/^[^0-9]$/.test(g),p=!d(n)&&c(t)?"-":"--";e.push(p+m),r&&e.push(p+"no-"+m)}customCompletion(t,e,n,r){if(mt(this.customCompletionFunction,null,this.shim),va(this.customCompletionFunction)){let i=this.customCompletionFunction(n,e);return Q(i)?i.then(s=>{this.shim.process.nextTick(()=>{r(null,s)})}).catch(s=>{this.shim.process.nextTick(()=>{r(s,void 0)})}):r(null,i)}else return ja(this.customCompletionFunction)?this.customCompletionFunction(n,e,(i=r)=>this.defaultCompletion(t,e,n,i),i=>{r(null,i)}):this.customCompletionFunction(n,e,i=>{r(null,i)})}getCompletion(t,e){let n=t.length?t[t.length-1]:"",r=this.yargs.parse(t,!0),i=this.customCompletionFunction?s=>this.customCompletion(t,s,n,e):s=>this.defaultCompletion(t,s,n,e);return Q(r)?r.then(i):i(r)}generateCompletionScript(t,e){let n=this.zshShell?Vi:Wi,r=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,r),n=n.replace(/{{completion_command}}/g,e),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function Hi(u,t,e,n){return new Tn(u,t,e,n)}function va(u){return u.length<3}function ja(u){return u.length>3}function qi(u,t){if(u.length===0)return t.length;if(t.length===0)return u.length;let e=[],n;for(n=0;n<=t.length;n++)e[n]=[n];let r;for(r=0;r<=u.length;r++)e[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=u.length;r++)t.charAt(n-1)===u.charAt(r-1)?e[n][r]=e[n-1][r-1]:n>1&&r>1&&t.charAt(n-2)===u.charAt(r-1)&&t.charAt(n-1)===u.charAt(r-2)?e[n][r]=e[n-2][r-2]+1:e[n][r]=Math.min(e[n-1][r-1]+1,Math.min(e[n][r-1]+1,e[n-1][r]+1));return e[t.length][u.length]}var Gi=["$0","--","_"];function Yi(u,t,e){let n=e.y18n.__,r=e.y18n.__n,i={};i.nonOptionCount=function(c){let p=u.getDemandedCommands(),E=c._.length+(c["--"]?c["--"].length:0)-u.getInternalMethods().getContext().commands.length;p._&&(E<p._.min||E>p._.max)&&(E<p._.min?p._.minMsg!==void 0?t.fail(p._.minMsg?p._.minMsg.replace(/\$0/g,E.toString()).replace(/\$1/,p._.min.toString()):null):t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",E,E.toString(),p._.min.toString())):E>p._.max&&(p._.maxMsg!==void 0?t.fail(p._.maxMsg?p._.maxMsg.replace(/\$0/g,E.toString()).replace(/\$1/,p._.max.toString()):null):t.fail(r("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",E,E.toString(),p._.max.toString()))))},i.positionalCount=function(c,p){p<c&&t.fail(r("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",p,p+"",c+""))},i.requiredArguments=function(c,p){let g=null;for(let E of Object.keys(p))(!Object.prototype.hasOwnProperty.call(c,E)||typeof c[E]>"u")&&(g=g||{},g[E]=p[E]);if(g){let E=[];for(let F of Object.keys(g)){let v=g[F];v&&E.indexOf(v)<0&&E.push(v)}let b=E.length?`
75
75
  ${E.join(`
76
- `)}`:"";e.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(g).length,Object.keys(g).join(", ")+b))}},i.unknownArguments=function(c,p,g,E,b=!0){var F;let v=u.getInternalMethods().getCommandInstance().getCommands(),z=[],L=u.getInternalMethods().getContext();if(Object.keys(c).forEach(U=>{!Yi.includes(U)&&!Object.prototype.hasOwnProperty.call(g,U)&&!Object.prototype.hasOwnProperty.call(u.getInternalMethods().getParseContext(),U)&&!i.isValidAndSomeAliasIsNotNew(U,p)&&z.push(U)}),b&&(L.commands.length>0||v.length>0||E)&&c._.slice(L.commands.length).forEach(U=>{v.includes(""+U)||z.push(""+U)}),b){let R=((F=u.getDemandedCommands()._)===null||F===void 0?void 0:F.max)||0,W=L.commands.length+R;W<c._.length&&c._.slice(W).forEach(H=>{H=String(H),!L.commands.includes(H)&&!z.includes(H)&&z.push(H)})}z.length&&e.fail(r("Unknown argument: %s","Unknown arguments: %s",z.length,z.map(U=>U.trim()?U:`"${U}"`).join(", ")))},i.unknownCommands=function(c){let p=u.getInternalMethods().getCommandInstance().getCommands(),g=[],E=u.getInternalMethods().getContext();return(E.commands.length>0||p.length>0)&&c._.slice(E.commands.length).forEach(b=>{p.includes(""+b)||g.push(""+b)}),g.length>0?(e.fail(r("Unknown command: %s","Unknown commands: %s",g.length,g.join(", "))),!0):!1},i.isValidAndSomeAliasIsNotNew=function(c,p){if(!Object.prototype.hasOwnProperty.call(p,c))return!1;let g=u.parsed.newAliases;return[c,...p[c]].some(E=>!Object.prototype.hasOwnProperty.call(g,E)||!g[c])},i.limitedChoices=function(c){let p=u.getOptions(),g={};if(!Object.keys(p.choices).length)return;Object.keys(c).forEach(F=>{Yi.indexOf(F)===-1&&Object.prototype.hasOwnProperty.call(p.choices,F)&&[].concat(c[F]).forEach(v=>{p.choices[F].indexOf(v)===-1&&v!==void 0&&(g[F]=(g[F]||[]).concat(v))})});let E=Object.keys(g);if(!E.length)return;let b=n("Invalid values:");E.forEach(F=>{b+=`
77
- ${n("Argument: %s, Given: %s, Choices: %s",F,e.stringifiedValues(g[F]),e.stringifiedValues(p.choices[F]))}`}),e.fail(b)};let s={};i.implies=function(c,p){w("<string|object> [array|number|string]",[c,p],arguments.length),typeof c=="object"?Object.keys(c).forEach(g=>{i.implies(g,c[g])}):(u.global(c),s[c]||(s[c]=[]),Array.isArray(p)?p.forEach(g=>i.implies(c,g)):(me(p,void 0,t),s[c].push(p)))},i.getImplied=function(){return s};function D(d,c){let p=Number(c);return c=isNaN(p)?c:p,typeof c=="number"?c=d._.length>=c:c.match(/^--no-.+/)?(c=c.match(/^--no-(.+)/)[1],c=!Object.prototype.hasOwnProperty.call(d,c)):c=Object.prototype.hasOwnProperty.call(d,c),c}i.implications=function(c){let p=[];if(Object.keys(s).forEach(g=>{let E=g;(s[g]||[]).forEach(b=>{let F=E,v=b;F=D(c,F),b=D(c,b),F&&!b&&p.push(` ${E} -> ${v}`)})}),p.length){let g=`${n("Implications failed:")}
78
- `;p.forEach(E=>{g+=E}),e.fail(g)}};let l={};i.conflicts=function(c,p){w("<string|object> [array|string]",[c,p],arguments.length),typeof c=="object"?Object.keys(c).forEach(g=>{i.conflicts(g,c[g])}):(u.global(c),l[c]||(l[c]=[]),Array.isArray(p)?p.forEach(g=>i.conflicts(c,g)):l[c].push(p))},i.getConflicting=()=>l,i.conflicting=function(c){Object.keys(c).forEach(p=>{l[p]&&l[p].forEach(g=>{g&&c[p]!==void 0&&c[g]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",p,g))})}),u.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach(p=>{l[p].forEach(g=>{g&&c[t.Parser.camelCase(p)]!==void 0&&c[t.Parser.camelCase(g)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",p,g))})})},i.recommendCommands=function(c,p){p=p.sort((F,v)=>v.length-F.length);let E=null,b=1/0;for(let F=0,v;(v=p[F])!==void 0;F++){let z=Gi(c,v);z<=3&&z<b&&(b=z,E=v)}E&&e.fail(n("Did you mean %s?",E))},i.reset=function(c){return s=Ye(s,p=>!c[p]),l=Ye(l,p=>!c[p]),i};let m=[];return i.freeze=function(){m.push({implied:s,conflicting:l})},i.unfreeze=function(){let c=m.pop();me(c,void 0,t),{implied:s,conflicting:l}=c},i}var La={},Nn=[],qt;function Cu(u,e,t,n){qt=n;let r={};if(Object.prototype.hasOwnProperty.call(u,"extends")){if(typeof u.extends!="string")return r;let i=/\.json|\..*rc$/.test(u.extends),s=null;if(i)s=Na(e,u.extends);else try{s=La.resolve(u.extends)}catch{return u}$a(s),Nn.push(s),r=i?JSON.parse(qt.readFileSync(s,"utf8")):n.require(u.extends),delete u.extends,r=Cu(r,qt.path.dirname(s),t,qt)}return Nn=[],t?Ji(r,u):Object.assign({},r,u)}function $a(u){if(Nn.indexOf(u)>-1)throw new se(`Circular extended configurations: '${u}'.`)}function Na(u,e){return qt.path.resolve(u,e)}function Ji(u,e){let t={};function n(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(t,u);for(let r of Object.keys(e))n(e[r])&&n(t[r])?t[r]=Ji(u[r],e[r]):t[r]=e[r];return t}var y=function(u,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?u!==e||!r:!e.has(u))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(u,t):r?r.value=t:e.set(u,t),t},o=function(u,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?u!==e||!n:!e.has(u))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(u):n?n.value:e.get(u)},oe,Dt,Gt,Ce,Be,Eu,Je,at,gu,_e,bu,Oe,Me,Ae,Se,Bu,ct,fe,P,Au,xu,xe,lt,jt,ft,Qe,wu,M,ht,Ft,dt,$,yu,Te,re;function ds(u){return(e=[],t=u.process.cwd(),n)=>{let r=new Kn(e,t,n,u);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}}var Qi=Symbol("copyDoubleDash"),Zi=Symbol("copyDoubleDash"),Ln=Symbol("deleteFromParserHintObject"),Xi=Symbol("emitWarning"),ki=Symbol("freeze"),es=Symbol("getDollarZero"),pt=Symbol("getParserConfiguration"),ts=Symbol("getUsageConfiguration"),Un=Symbol("guessLocale"),us=Symbol("guessVersion"),ns=Symbol("parsePositionalNumbers"),zn=Symbol("pkgUp"),Ze=Symbol("populateParserHintArray"),Mt=Symbol("populateParserHintSingleValueDictionary"),Rn=Symbol("populateParserHintArrayDictionary"),Wn=Symbol("populateParserHintDictionary"),Vn=Symbol("sanitizeKey"),Hn=Symbol("setKey"),qn=Symbol("unfreeze"),rs=Symbol("validateAsync"),is=Symbol("getCommandInstance"),ss=Symbol("getContext"),os=Symbol("getHasOutput"),Ds=Symbol("getLoggerInstance"),as=Symbol("getParseContext"),cs=Symbol("getUsageInstance"),ls=Symbol("getValidationInstance"),_u=Symbol("hasParseCallback"),fs=Symbol("isGlobalContext"),mt=Symbol("postProcess"),hs=Symbol("rebase"),Gn=Symbol("reset"),Yt=Symbol("runYargsParserAndExecuteCommands"),Yn=Symbol("runValidation"),Fs=Symbol("setHasOutput"),Ct=Symbol("kTrackManuallySetKeys"),Ua="en_US",Kn=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,oe.set(this,void 0),Dt.set(this,void 0),Gt.set(this,{commands:[],fullCommands:[]}),Ce.set(this,null),Be.set(this,null),Eu.set(this,"show-hidden"),Je.set(this,null),at.set(this,!0),gu.set(this,{}),_e.set(this,!0),bu.set(this,[]),Oe.set(this,void 0),Me.set(this,{}),Ae.set(this,!1),Se.set(this,null),Bu.set(this,!0),ct.set(this,void 0),fe.set(this,""),P.set(this,void 0),Au.set(this,void 0),xu.set(this,{}),xe.set(this,null),lt.set(this,null),jt.set(this,{}),ft.set(this,{}),Qe.set(this,void 0),wu.set(this,!1),M.set(this,void 0),ht.set(this,!1),Ft.set(this,!1),dt.set(this,!1),$.set(this,void 0),yu.set(this,{}),Te.set(this,null),re.set(this,void 0),y(this,M,r,"f"),y(this,Qe,e,"f"),y(this,Dt,t,"f"),y(this,Au,n,"f"),y(this,Oe,new du(this),"f"),this.$0=this[es](),this[Gn](),y(this,oe,o(this,oe,"f"),"f"),y(this,$,o(this,$,"f"),"f"),y(this,re,o(this,re,"f"),"f"),y(this,P,o(this,P,"f"),"f"),o(this,P,"f").showHiddenOpt=o(this,Eu,"f"),y(this,ct,this[Zi](),"f"),o(this,M,"f").y18n.setLocale(Ua)}addHelpOpt(e,t){let n="help";return w("[string|boolean] [string]",[e,t],arguments.length),o(this,Se,"f")&&(this[Ln](o(this,Se,"f")),y(this,Se,null,"f")),e===!1&&t===void 0?this:(y(this,Se,typeof e=="string"?e:n,"f"),this.boolean(o(this,Se,"f")),this.describe(o(this,Se,"f"),t||o(this,$,"f").deferY18nLookup("Show help")),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if(w("[string|boolean] [string]",[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e=="string"?e:o(this,Eu,"f");return this.boolean(n),this.describe(n,t||o(this,$,"f").deferY18nLookup("Show hidden options")),o(this,P,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return w("<object|string|array> [string|array]",[e,t],arguments.length),this[Rn](this.alias.bind(this),"alias",e,t),this}array(e){return w("<array|string>",[e],arguments.length),this[Ze]("array",e),this[Ct](e),this}boolean(e){return w("<array|string>",[e],arguments.length),this[Ze]("boolean",e),this[Ct](e),this}check(e,t){return w("<function> [boolean]",[e,t],arguments.length),this.middleware((n,r)=>ot(()=>e(n,r.getOptions()),i=>(i?(typeof i=="string"||i instanceof Error)&&o(this,$,"f").fail(i.toString(),i):o(this,$,"f").fail(o(this,M,"f").y18n.__("Argument check failed: %s",e.toString())),n),i=>(o(this,$,"f").fail(i.message?i.message:i.toString(),i),n)),!1,t),this}choices(e,t){return w("<object|string|array> [string|array]",[e,t],arguments.length),this[Rn](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(w("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new se("coerce callback must be provided");for(let r of e)this.coerce(r,t);return this}else if(typeof e=="object"){for(let r of Object.keys(e))this.coerce(r,e[r]);return this}if(!t)throw new se("coerce callback must be provided");let n=e;return o(this,P,"f").key[n]=!0,o(this,Oe,"f").addCoerceMiddleware((r,i)=>{var s;let D=(s=i.getAliases()[n])!==null&&s!==void 0?s:[],l=[n,...D].filter(m=>Object.prototype.hasOwnProperty.call(r,m));return l.length===0?r:ot(()=>t(r[l[0]]),m=>(l.forEach(d=>{r[d]=m}),r),m=>{throw new se(m.message)})},n),this}conflicts(e,t){return w("<string|object> [string|array]",[e,t],arguments.length),o(this,re,"f").conflicts(e,t),this}config(e="config",t,n){return w("[object|string] [string|function] [function]",[e,t,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=Cu(e,o(this,Dt,"f"),this[pt]()["deep-merge-config"]||!1,o(this,M,"f")),o(this,P,"f").configObjects=(o(this,P,"f").configObjects||[]).concat(e),this):(typeof t=="function"&&(n=t,t=void 0),this.describe(e,t||o(this,$,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(r=>{o(this,P,"f").config[r]=n||!0}),this)}completion(e,t,n){return w("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),typeof t=="function"&&(n=t,t=void 0),y(this,Be,e||o(this,Be,"f")||"completion","f"),!t&&t!==!1&&(t="generate completion script"),this.command(o(this,Be,"f"),t),n&&o(this,Ce,"f").registerFunction(n),this}command(e,t,n,r,i,s){return w("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,i,s],arguments.length),o(this,oe,"f").addHandler(e,t,n,r,i,s),this}commands(e,t,n,r,i,s){return this.command(e,t,n,r,i,s)}commandDir(e,t){w("<string> [object]",[e,t],arguments.length);let n=o(this,Au,"f")||o(this,M,"f").require;return o(this,oe,"f").addDirectory(e,n,o(this,M,"f").getCallerFile(),t),this}count(e){return w("<array|string>",[e],arguments.length),this[Ze]("count",e),this[Ct](e),this}default(e,t,n){return w("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(jn(e,o(this,M,"f")),o(this,P,"f").defaultDescription[e]=n),typeof t=="function"&&(jn(e,o(this,M,"f")),o(this,P,"f").defaultDescription[e]||(o(this,P,"f").defaultDescription[e]=o(this,$,"f").functionDescription(t)),t=t.call()),this[Mt](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return w("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),typeof t!="number"&&(n=t,t=1/0),this.global("_",!1),o(this,P,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(r=>{me(n,!0,o(this,M,"f")),this.demandOption(r,n)}),t=1/0):typeof t!="number"&&(n=t,t=1/0),typeof e=="number"?(me(n,!0,o(this,M,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(r=>{me(n,!0,o(this,M,"f")),this.demandOption(r,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,t){return w("<object|string|array> [string]",[e,t],arguments.length),this[Mt](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return w("<string> [string|boolean]",[e,t],arguments.length),o(this,P,"f").deprecatedOptions[e]=t,this}describe(e,t){return w("<object|string|array> [string]",[e,t],arguments.length),this[Hn](e,!0),o(this,$,"f").describe(e,t),this}detectLocale(e){return w("<boolean>",[e],arguments.length),y(this,at,e,"f"),this}env(e){return w("[string|boolean]",[e],arguments.length),e===!1?delete o(this,P,"f").envPrefix:o(this,P,"f").envPrefix=e||"",this}epilogue(e){return w("<string>",[e],arguments.length),o(this,$,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return w("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):o(this,$,"f").example(e,t),this}exit(e,t){y(this,Ae,!0,"f"),y(this,Je,t,"f"),o(this,_e,"f")&&o(this,M,"f").process.exit(e)}exitProcess(e=!0){return w("[boolean]",[e],arguments.length),y(this,_e,e,"f"),this}fail(e){if(w("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new se("Invalid first argument. Expected function or boolean 'false'");return o(this,$,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return w("<array> [function]",[e,t],arguments.length),t?o(this,Ce,"f").getCompletion(e,t):new Promise((n,r)=>{o(this,Ce,"f").getCompletion(e,(i,s)=>{i?r(i):n(s)})})}getDemandedOptions(){return w([],0),o(this,P,"f").demandedOptions}getDemandedCommands(){return w([],0),o(this,P,"f").demandedCommands}getDeprecatedOptions(){return w([],0),o(this,P,"f").deprecatedOptions}getDetectLocale(){return o(this,at,"f")}getExitProcess(){return o(this,_e,"f")}getGroups(){return Object.assign({},o(this,Me,"f"),o(this,ft,"f"))}getHelp(){if(y(this,Ae,!0,"f"),!o(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let t=this[Yt](o(this,Qe,"f"),void 0,void 0,0,!0);if(Q(t))return t.then(()=>o(this,$,"f").help())}let e=o(this,oe,"f").runDefaultBuilderOn(this);if(Q(e))return e.then(()=>o(this,$,"f").help())}return Promise.resolve(o(this,$,"f").help())}getOptions(){return o(this,P,"f")}getStrict(){return o(this,ht,"f")}getStrictCommands(){return o(this,Ft,"f")}getStrictOptions(){return o(this,dt,"f")}global(e,t){return w("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),t!==!1?o(this,P,"f").local=o(this,P,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{o(this,P,"f").local.includes(n)||o(this,P,"f").local.push(n)}),this}group(e,t){w("<string|array> <string>",[e,t],arguments.length);let n=o(this,ft,"f")[t]||o(this,Me,"f")[t];o(this,ft,"f")[t]&&delete o(this,ft,"f")[t];let r={};return o(this,Me,"f")[t]=(n||[]).concat(e).filter(i=>r[i]?!1:r[i]=!0),this}hide(e){return w("<string>",[e],arguments.length),o(this,P,"f").hiddenOptions.push(e),this}implies(e,t){return w("<string|object> [number|string|array]",[e,t],arguments.length),o(this,re,"f").implies(e,t),this}locale(e){return w("[string]",[e],arguments.length),e===void 0?(this[Un](),o(this,M,"f").y18n.getLocale()):(y(this,at,!1,"f"),o(this,M,"f").y18n.setLocale(e),this)}middleware(e,t,n){return o(this,Oe,"f").addMiddleware(e,!!t,n)}nargs(e,t){return w("<string|object|array> [number]",[e,t],arguments.length),this[Mt](this.nargs.bind(this),"narg",e,t),this}normalize(e){return w("<array|string>",[e],arguments.length),this[Ze]("normalize",e),this}number(e){return w("<array|string>",[e],arguments.length),this[Ze]("number",e),this[Ct](e),this}option(e,t){if(w("<string|object> [object]",[e,t],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof t!="object"&&(t={}),this[Ct](e),o(this,Te,"f")&&(e==="version"||t?.alias==="version")&&this[Xi](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
79
- `),void 0,"versionWarning"),o(this,P,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption=="string"?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type==="boolean")&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type==="array")&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type==="number")&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type==="string")&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type==="count")&&this.count(e),typeof t.global=="boolean"&&this.global(e,t.global),t.defaultDescription&&(o(this,P,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let i=t.describe||t.description||t.desc,s=o(this,$,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(s,e)||typeof i=="string")&&this.describe(e,i),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){w("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[ki](),typeof e>"u"&&(e=o(this,Qe,"f")),typeof t=="object"&&(y(this,lt,t,"f"),t=n),typeof t=="function"&&(y(this,xe,t,"f"),t=!1),t||y(this,Qe,e,"f"),o(this,xe,"f")&&y(this,_e,!1,"f");let r=this[Yt](e,!!t),i=this.parsed;return o(this,Ce,"f").setParsed(this.parsed),Q(r)?r.then(s=>(o(this,xe,"f")&&o(this,xe,"f").call(this,o(this,Je,"f"),s,o(this,fe,"f")),s)).catch(s=>{throw o(this,xe,"f")&&o(this,xe,"f")(s,this.parsed.argv,o(this,fe,"f")),s}).finally(()=>{this[qn](),this.parsed=i}):(o(this,xe,"f")&&o(this,xe,"f").call(this,o(this,Je,"f"),r,o(this,fe,"f")),this[qn](),this.parsed=i,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return Q(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(Q(r))throw new se(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return w("<object>",[e],arguments.length),y(this,xu,e,"f"),this}pkgConf(e,t){w("<string> [string]",[e,t],arguments.length);let n=null,r=this[zn](t||o(this,Dt,"f"));return r[e]&&typeof r[e]=="object"&&(n=Cu(r[e],t||o(this,Dt,"f"),this[pt]()["deep-merge-config"]||!1,o(this,M,"f")),o(this,P,"f").configObjects=(o(this,P,"f").configObjects||[]).concat(n)),this}positional(e,t){w("<string> <object>",[e,t],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=Ye(t,(s,D)=>s==="type"&&!["string","number","boolean"].includes(D)?!1:n.includes(s));let r=o(this,Gt,"f").fullCommands[o(this,Gt,"f").fullCommands.length-1],i=r?o(this,oe,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return It(i).forEach(s=>{let D=i[s];Array.isArray(D)?D.indexOf(e)!==-1&&(t[s]=!0):D[e]&&!(s in t)&&(t[s]=D[e])}),this.group(e,o(this,$,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return w("[boolean]",[e],arguments.length),y(this,wu,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return w("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&o(this,P,"f").narg[e]?this:(this[Mt](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,t){return w("[string] [string]",[e,t],arguments.length),e=e||this.$0,o(this,ct,"f").log(o(this,Ce,"f").generateCompletionScript(e,t||o(this,Be,"f")||"completion")),this}showHelp(e){if(w("[string|function]",[e],arguments.length),y(this,Ae,!0,"f"),!o(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Yt](o(this,Qe,"f"),void 0,void 0,0,!0);if(Q(n))return n.then(()=>{o(this,$,"f").showHelp(e)}),this}let t=o(this,oe,"f").runDefaultBuilderOn(this);if(Q(t))return t.then(()=>{o(this,$,"f").showHelp(e)}),this}return o(this,$,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return w("[boolean|string] [string]",[e,t],arguments.length),o(this,$,"f").showHelpOnFail(e,t),this}showVersion(e){return w("[string|function]",[e],arguments.length),o(this,$,"f").showVersion(e),this}skipValidation(e){return w("<array|string>",[e],arguments.length),this[Ze]("skipValidation",e),this}strict(e){return w("[boolean]",[e],arguments.length),y(this,ht,e!==!1,"f"),this}strictCommands(e){return w("[boolean]",[e],arguments.length),y(this,Ft,e!==!1,"f"),this}strictOptions(e){return w("[boolean]",[e],arguments.length),y(this,dt,e!==!1,"f"),this}string(e){return w("<array|string>",[e],arguments.length),this[Ze]("string",e),this[Ct](e),this}terminalWidth(){return w([],0),o(this,M,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return w("<object>",[e],arguments.length),y(this,at,!1,"f"),o(this,M,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if(w("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),t!==void 0){if(me(e,null,o(this,M,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new se(".usage() description must start with $0 if being used as alias for .command()")}else return o(this,$,"f").usage(e),this}usageConfiguration(e){return w("<object>",[e],arguments.length),y(this,yu,e,"f"),this}version(e,t,n){let r="version";if(w("[boolean|string] [string] [string]",[e,t,n],arguments.length),o(this,Te,"f")&&(this[Ln](o(this,Te,"f")),o(this,$,"f").version(void 0),y(this,Te,null,"f")),arguments.length===0)n=this[us](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return y(this,Te,typeof e=="string"?e:r,"f"),t=t||o(this,$,"f").deferY18nLookup("Show version number"),o(this,$,"f").version(n||void 0),this.boolean(o(this,Te,"f")),this.describe(o(this,Te,"f"),t),this}wrap(e){return w("<number|null|undefined>",[e],arguments.length),o(this,$,"f").wrap(e),this}[(oe=new WeakMap,Dt=new WeakMap,Gt=new WeakMap,Ce=new WeakMap,Be=new WeakMap,Eu=new WeakMap,Je=new WeakMap,at=new WeakMap,gu=new WeakMap,_e=new WeakMap,bu=new WeakMap,Oe=new WeakMap,Me=new WeakMap,Ae=new WeakMap,Se=new WeakMap,Bu=new WeakMap,ct=new WeakMap,fe=new WeakMap,P=new WeakMap,Au=new WeakMap,xu=new WeakMap,xe=new WeakMap,lt=new WeakMap,jt=new WeakMap,ft=new WeakMap,Qe=new WeakMap,wu=new WeakMap,M=new WeakMap,ht=new WeakMap,Ft=new WeakMap,dt=new WeakMap,$=new WeakMap,yu=new WeakMap,Te=new WeakMap,re=new WeakMap,Qi)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Zi](){return{log:(...e)=>{this[_u]()||console.log(...e),y(this,Ae,!0,"f"),o(this,fe,"f").length&&y(this,fe,o(this,fe,"f")+`
80
- `,"f"),y(this,fe,o(this,fe,"f")+e.join(" "),"f")},error:(...e)=>{this[_u]()||console.error(...e),y(this,Ae,!0,"f"),o(this,fe,"f").length&&y(this,fe,o(this,fe,"f")+`
81
- `,"f"),y(this,fe,o(this,fe,"f")+e.join(" "),"f")}}}[Ln](e){It(o(this,P,"f")).forEach(t=>{if((r=>r==="configObjects")(t))return;let n=o(this,P,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete o(this,$,"f").getDescriptions()[e]}[Xi](e,t,n){o(this,gu,"f")[n]||(o(this,M,"f").process.emitWarning(e,t),o(this,gu,"f")[n]=!0)}[ki](){o(this,bu,"f").push({options:o(this,P,"f"),configObjects:o(this,P,"f").configObjects.slice(0),exitProcess:o(this,_e,"f"),groups:o(this,Me,"f"),strict:o(this,ht,"f"),strictCommands:o(this,Ft,"f"),strictOptions:o(this,dt,"f"),completionCommand:o(this,Be,"f"),output:o(this,fe,"f"),exitError:o(this,Je,"f"),hasOutput:o(this,Ae,"f"),parsed:this.parsed,parseFn:o(this,xe,"f"),parseContext:o(this,lt,"f")}),o(this,$,"f").freeze(),o(this,re,"f").freeze(),o(this,oe,"f").freeze(),o(this,Oe,"f").freeze()}[es](){let e="",t;return/\b(node|iojs|electron)(\.exe)?$/.test(o(this,M,"f").process.argv()[0])?t=o(this,M,"f").process.argv().slice(1,2):t=o(this,M,"f").process.argv().slice(0,1),e=t.map(n=>{let r=this[hs](o(this,Dt,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<n.length?r:n}).join(" ").trim(),o(this,M,"f").getEnv("_")&&o(this,M,"f").getProcessArgvBin()===o(this,M,"f").getEnv("_")&&(e=o(this,M,"f").getEnv("_").replace(`${o(this,M,"f").path.dirname(o(this,M,"f").process.execPath())}/`,"")),e}[pt](){return o(this,xu,"f")}[ts](){return o(this,yu,"f")}[Un](){if(!o(this,at,"f"))return;let e=o(this,M,"f").getEnv("LC_ALL")||o(this,M,"f").getEnv("LC_MESSAGES")||o(this,M,"f").getEnv("LANG")||o(this,M,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[us](){return this[zn]().version||"unknown"}[ns](e){let t=e["--"]?e["--"]:e._;for(let n=0,r;(r=t[n])!==void 0;n++)o(this,M,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(t[n]=Number(r));return e}[zn](e){let t=e||"*";if(o(this,jt,"f")[t])return o(this,jt,"f")[t];let n={};try{let r=e||o(this,M,"f").mainFilename;o(this,M,"f").path.extname(r)&&(r=o(this,M,"f").path.dirname(r));let i=o(this,M,"f").findUp(r,(s,D)=>{if(D.includes("package.json"))return"package.json"});me(i,void 0,o(this,M,"f")),n=JSON.parse(o(this,M,"f").readFileSync(i,"utf8"))}catch{}return o(this,jt,"f")[t]=n||{},o(this,jt,"f")[t]}[Ze](e,t){t=[].concat(t),t.forEach(n=>{n=this[Vn](n),o(this,P,"f")[e].push(n)})}[Mt](e,t,n,r){this[Wn](e,t,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=D})}[Rn](e,t,n,r){this[Wn](e,t,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=(o(this,P,"f")[i][s]||[]).concat(D)})}[Wn](e,t,n,r,i){if(Array.isArray(n))n.forEach(s=>{e(s,r)});else if((s=>typeof s=="object")(n))for(let s of It(n))e(s,n[s]);else i(t,this[Vn](n),r)}[Vn](e){return e==="__proto__"?"___proto___":e}[Hn](e,t){return this[Mt](this[Hn].bind(this),"key",e,t),this}[qn](){var e,t,n,r,i,s,D,l,m,d,c,p;let g=o(this,bu,"f").pop();me(g,void 0,o(this,M,"f"));let E;e=this,t=this,n=this,r=this,i=this,s=this,D=this,l=this,m=this,d=this,c=this,p=this,{options:{set value(b){y(e,P,b,"f")}}.value,configObjects:E,exitProcess:{set value(b){y(t,_e,b,"f")}}.value,groups:{set value(b){y(n,Me,b,"f")}}.value,output:{set value(b){y(r,fe,b,"f")}}.value,exitError:{set value(b){y(i,Je,b,"f")}}.value,hasOutput:{set value(b){y(s,Ae,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){y(D,ht,b,"f")}}.value,strictCommands:{set value(b){y(l,Ft,b,"f")}}.value,strictOptions:{set value(b){y(m,dt,b,"f")}}.value,completionCommand:{set value(b){y(d,Be,b,"f")}}.value,parseFn:{set value(b){y(c,xe,b,"f")}}.value,parseContext:{set value(b){y(p,lt,b,"f")}}.value}=g,o(this,P,"f").configObjects=E,o(this,$,"f").unfreeze(),o(this,re,"f").unfreeze(),o(this,oe,"f").unfreeze(),o(this,Oe,"f").unfreeze()}[rs](e,t){return ot(t,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[is].bind(this),getContext:this[ss].bind(this),getHasOutput:this[os].bind(this),getLoggerInstance:this[Ds].bind(this),getParseContext:this[as].bind(this),getParserConfiguration:this[pt].bind(this),getUsageConfiguration:this[ts].bind(this),getUsageInstance:this[cs].bind(this),getValidationInstance:this[ls].bind(this),hasParseCallback:this[_u].bind(this),isGlobalContext:this[fs].bind(this),postProcess:this[mt].bind(this),reset:this[Gn].bind(this),runValidation:this[Yn].bind(this),runYargsParserAndExecuteCommands:this[Yt].bind(this),setHasOutput:this[Fs].bind(this)}}[is](){return o(this,oe,"f")}[ss](){return o(this,Gt,"f")}[os](){return o(this,Ae,"f")}[Ds](){return o(this,ct,"f")}[as](){return o(this,lt,"f")||{}}[cs](){return o(this,$,"f")}[ls](){return o(this,re,"f")}[_u](){return!!o(this,xe,"f")}[fs](){return o(this,Bu,"f")}[mt](e,t,n,r){return n||Q(e)||(t||(e=this[Qi](e)),(this[pt]()["parse-positional-numbers"]||this[pt]()["parse-positional-numbers"]===void 0)&&(e=this[ns](e)),r&&(e=st(e,this,o(this,Oe,"f").getMiddleware(),!1))),e}[Gn](e={}){y(this,P,o(this,P,"f")||{},"f");let t={};t.local=o(this,P,"f").local||[],t.configObjects=o(this,P,"f").configObjects||[];let n={};t.local.forEach(s=>{n[s]=!0,(e[s]||[]).forEach(D=>{n[D]=!0})}),Object.assign(o(this,ft,"f"),Object.keys(o(this,Me,"f")).reduce((s,D)=>{let l=o(this,Me,"f")[D].filter(m=>!(m in n));return l.length>0&&(s[D]=l),s},{})),y(this,Me,{},"f");let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],i=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(s=>{t[s]=(o(this,P,"f")[s]||[]).filter(D=>!n[D])}),i.forEach(s=>{t[s]=Ye(o(this,P,"f")[s],D=>!n[D])}),t.envPrefix=o(this,P,"f").envPrefix,y(this,P,t,"f"),y(this,$,o(this,$,"f")?o(this,$,"f").reset(n):Wi(this,o(this,M,"f")),"f"),y(this,re,o(this,re,"f")?o(this,re,"f").reset(n):Ki(this,o(this,$,"f"),o(this,M,"f")),"f"),y(this,oe,o(this,oe,"f")?o(this,oe,"f").reset():Ui(o(this,$,"f"),o(this,re,"f"),o(this,Oe,"f"),o(this,M,"f")),"f"),o(this,Ce,"f")||y(this,Ce,qi(this,o(this,$,"f"),o(this,oe,"f"),o(this,M,"f")),"f"),o(this,Oe,"f").reset(),y(this,Be,null,"f"),y(this,fe,"","f"),y(this,Je,null,"f"),y(this,Ae,!1,"f"),this.parsed=!1,this}[hs](e,t){return o(this,M,"f").path.relative(e,t)}[Yt](e,t,n,r=0,i=!1){var s,D,l,m;let d=!!n||i;e=e||o(this,Qe,"f"),o(this,P,"f").__=o(this,M,"f").y18n.__,o(this,P,"f").configuration=this[pt]();let c=!!o(this,P,"f").configuration["populate--"],p=Object.assign({},o(this,P,"f").configuration,{"populate--":!0}),g=o(this,M,"f").Parser.detailed(e,Object.assign({},o(this,P,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),E=Object.assign(g.argv,o(this,lt,"f")),b,F=g.aliases,v=!1,z=!1;Object.keys(E).forEach(L=>{L===o(this,Se,"f")&&E[L]?v=!0:L===o(this,Te,"f")&&E[L]&&(z=!0)}),E.$0=this.$0,this.parsed=g,r===0&&o(this,$,"f").clearCachedHelpMessage();try{if(this[Un](),t)return this[mt](E,c,!!n,!1);o(this,Se,"f")&&[o(this,Se,"f")].concat(F[o(this,Se,"f")]||[]).filter(H=>H.length>1).includes(""+E._[E._.length-1])&&(E._.pop(),v=!0),y(this,Bu,!1,"f");let L=o(this,oe,"f").getCommands(),U=!((s=o(this,Ce,"f"))===null||s===void 0)&&s.completionKey?[(D=o(this,Ce,"f"))===null||D===void 0?void 0:D.completionKey,...(m=this.getAliases()[(l=o(this,Ce,"f"))===null||l===void 0?void 0:l.completionKey])!==null&&m!==void 0?m:[]].some(W=>Object.prototype.hasOwnProperty.call(E,W)):!1,R=v||U||i;if(E._.length){if(L.length){let W;for(let H=r||0,K;E._[H]!==void 0;H++)if(K=String(E._[H]),L.includes(K)&&K!==o(this,Be,"f")){let Fe=o(this,oe,"f").runCommand(K,this,g,H+1,i,v||z||i);return this[mt](Fe,c,!!n,!1)}else if(!W&&K!==o(this,Be,"f")){W=K;break}!o(this,oe,"f").hasDefaultCommand()&&o(this,wu,"f")&&W&&!R&&o(this,re,"f").recommendCommands(W,L)}o(this,Be,"f")&&E._.includes(o(this,Be,"f"))&&!U&&(o(this,_e,"f")&&Ke(!0),this.showCompletionScript(),this.exit(0))}if(o(this,oe,"f").hasDefaultCommand()&&!R){let W=o(this,oe,"f").runCommand(null,this,g,0,i,v||z||i);return this[mt](W,c,!!n,!1)}if(U){o(this,_e,"f")&&Ke(!0),e=[].concat(e);let W=e.slice(e.indexOf(`--${o(this,Ce,"f").completionKey}`)+1);return o(this,Ce,"f").getCompletion(W,(H,K)=>{if(H)throw new se(H.message);(K||[]).forEach(Fe=>{o(this,ct,"f").log(Fe)}),this.exit(0)}),this[mt](E,!c,!!n,!1)}if(o(this,Ae,"f")||(v?(o(this,_e,"f")&&Ke(!0),d=!0,this.showHelp(W=>{o(this,ct,"f").log(W),this.exit(0)})):z&&(o(this,_e,"f")&&Ke(!0),d=!0,o(this,$,"f").showVersion("log"),this.exit(0))),!d&&o(this,P,"f").skipValidation.length>0&&(d=Object.keys(E).some(W=>o(this,P,"f").skipValidation.indexOf(W)>=0&&E[W]===!0)),!d){if(g.error)throw new se(g.error.message);if(!U){let W=this[Yn](F,{},g.error);n||(b=st(E,this,o(this,Oe,"f").getMiddleware(),!0)),b=this[rs](W,b??E),Q(b)&&!n&&(b=b.then(()=>st(E,this,o(this,Oe,"f").getMiddleware(),!1)))}}}catch(L){if(L instanceof se)o(this,$,"f").fail(L.message,L);else throw L}return this[mt](b??E,c,!!n,!0)}[Yn](e,t,n,r){let i={...this.getDemandedOptions()};return s=>{if(n)throw new se(n.message);o(this,re,"f").nonOptionCount(s),o(this,re,"f").requiredArguments(s,i);let D=!1;o(this,Ft,"f")&&(D=o(this,re,"f").unknownCommands(s)),o(this,ht,"f")&&!D?o(this,re,"f").unknownArguments(s,e,t,!!r):o(this,dt,"f")&&o(this,re,"f").unknownArguments(s,e,{},!1,!1),o(this,re,"f").limitedChoices(s),o(this,re,"f").implications(s),o(this,re,"f").conflicting(s)}}[Fs](){y(this,Ae,!0,"f")}[Ct](e){if(typeof e=="string")o(this,P,"f").key[e]=!0;else for(let t of e)o(this,P,"f").key[t]=!0}};function zi(u){return!!u&&typeof u.getInternalMethods=="function"}var za=ds(ji),ps=za;var gs=et(Cs(),1),Va={},Ra=process.argv.slice(2),Es=new gs.default(ps),Qn=console.log;async function Zn(u){Es.yargs.option("listen",{desc:"daemon control listen multiaddr",type:"string",default:"/unix/tmp/p2pd.sock"}).option("quiet",{alias:"q",desc:"be quiet",type:"boolean",default:!1}).option("id",{desc:"peer identity; private key file",type:"string",default:""}).option("hostAddrs",{desc:"Comma separated list of multiaddrs the host should listen on",type:"string",default:""}).option("announceAddrs",{desc:"Comma separated list of multiaddrs the host should announce to the network",type:"string",default:""}).option("bootstrap",{alias:"b",desc:"Connects to bootstrap peers and bootstraps the dht if enabled",type:"boolean",default:!1}).option("bootstrapPeers",{desc:"Comma separated list of bootstrap peers; defaults to the IPFS DHT peers",type:"string",default:""}).option("dht",{desc:"Enables the DHT in full node mode",type:"boolean",default:!1}).option("dhtClient",{desc:"(Not yet supported) Enables the DHT in client mode",type:"boolean",default:!1}).option("nat",{desc:"Enables UPnP NAT hole punching",type:"boolean",default:!1}).option("connMgr",{desc:"(Not yet supported) Enables the Connection Manager",type:"boolean",default:!1}).option("connMgrLo",{desc:"Number identifying the number of peers below which this node will not activate preemptive disconnections",type:"number"}).option("connMgrHi",{desc:"Number identifying the maximum number of peers the current peer is willing to be connected to before is starts disconnecting",type:"number"}).option("pubsub",{desc:"Enables pubsub",type:"boolean",default:!1}).option("pubsubRouter",{desc:"Specifies the pubsub router implementation",type:"string",default:"gossipsub"}).fail((r,i,s)=>{if(i!=null)throw i;Ra.length>0&&Qn(r),s.showHelp()});let{data:e,argv:t}=await Es.parse(u);e!=null&&(Qn(e),process.exit(0)),await(await bs(Nr(t.listen),t)).start(),t.quiet!==!0&&Qn("daemon has started")}async function bs(u,e){throw new Error("Not implemented yet")}pn(Va)&&Zn(process.argv).catch(u=>{console.error(u),process.exit(1)});return _s(Wa);})();
76
+ `)}`:"";t.fail(r("Missing required argument: %s","Missing required arguments: %s",Object.keys(g).length,Object.keys(g).join(", ")+b))}},i.unknownArguments=function(c,p,g,E,b=!0){var F;let v=u.getInternalMethods().getCommandInstance().getCommands(),z=[],L=u.getInternalMethods().getContext();if(Object.keys(c).forEach(U=>{!Gi.includes(U)&&!Object.prototype.hasOwnProperty.call(g,U)&&!Object.prototype.hasOwnProperty.call(u.getInternalMethods().getParseContext(),U)&&!i.isValidAndSomeAliasIsNotNew(U,p)&&z.push(U)}),b&&(L.commands.length>0||v.length>0||E)&&c._.slice(L.commands.length).forEach(U=>{v.includes(""+U)||z.push(""+U)}),b){let R=((F=u.getDemandedCommands()._)===null||F===void 0?void 0:F.max)||0,W=L.commands.length+R;W<c._.length&&c._.slice(W).forEach(H=>{H=String(H),!L.commands.includes(H)&&!z.includes(H)&&z.push(H)})}z.length&&t.fail(r("Unknown argument: %s","Unknown arguments: %s",z.length,z.map(U=>U.trim()?U:`"${U}"`).join(", ")))},i.unknownCommands=function(c){let p=u.getInternalMethods().getCommandInstance().getCommands(),g=[],E=u.getInternalMethods().getContext();return(E.commands.length>0||p.length>0)&&c._.slice(E.commands.length).forEach(b=>{p.includes(""+b)||g.push(""+b)}),g.length>0?(t.fail(r("Unknown command: %s","Unknown commands: %s",g.length,g.join(", "))),!0):!1},i.isValidAndSomeAliasIsNotNew=function(c,p){if(!Object.prototype.hasOwnProperty.call(p,c))return!1;let g=u.parsed.newAliases;return[c,...p[c]].some(E=>!Object.prototype.hasOwnProperty.call(g,E)||!g[c])},i.limitedChoices=function(c){let p=u.getOptions(),g={};if(!Object.keys(p.choices).length)return;Object.keys(c).forEach(F=>{Gi.indexOf(F)===-1&&Object.prototype.hasOwnProperty.call(p.choices,F)&&[].concat(c[F]).forEach(v=>{p.choices[F].indexOf(v)===-1&&v!==void 0&&(g[F]=(g[F]||[]).concat(v))})});let E=Object.keys(g);if(!E.length)return;let b=n("Invalid values:");E.forEach(F=>{b+=`
77
+ ${n("Argument: %s, Given: %s, Choices: %s",F,t.stringifiedValues(g[F]),t.stringifiedValues(p.choices[F]))}`}),t.fail(b)};let s={};i.implies=function(c,p){w("<string|object> [array|number|string]",[c,p],arguments.length),typeof c=="object"?Object.keys(c).forEach(g=>{i.implies(g,c[g])}):(u.global(c),s[c]||(s[c]=[]),Array.isArray(p)?p.forEach(g=>i.implies(c,g)):(mt(p,void 0,e),s[c].push(p)))},i.getImplied=function(){return s};function D(d,c){let p=Number(c);return c=isNaN(p)?c:p,typeof c=="number"?c=d._.length>=c:c.match(/^--no-.+/)?(c=c.match(/^--no-(.+)/)[1],c=!Object.prototype.hasOwnProperty.call(d,c)):c=Object.prototype.hasOwnProperty.call(d,c),c}i.implications=function(c){let p=[];if(Object.keys(s).forEach(g=>{let E=g;(s[g]||[]).forEach(b=>{let F=E,v=b;F=D(c,F),b=D(c,b),F&&!b&&p.push(` ${E} -> ${v}`)})}),p.length){let g=`${n("Implications failed:")}
78
+ `;p.forEach(E=>{g+=E}),t.fail(g)}};let l={};i.conflicts=function(c,p){w("<string|object> [array|string]",[c,p],arguments.length),typeof c=="object"?Object.keys(c).forEach(g=>{i.conflicts(g,c[g])}):(u.global(c),l[c]||(l[c]=[]),Array.isArray(p)?p.forEach(g=>i.conflicts(c,g)):l[c].push(p))},i.getConflicting=()=>l,i.conflicting=function(c){Object.keys(c).forEach(p=>{l[p]&&l[p].forEach(g=>{g&&c[p]!==void 0&&c[g]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",p,g))})}),u.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach(p=>{l[p].forEach(g=>{g&&c[e.Parser.camelCase(p)]!==void 0&&c[e.Parser.camelCase(g)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",p,g))})})},i.recommendCommands=function(c,p){p=p.sort((F,v)=>v.length-F.length);let E=null,b=1/0;for(let F=0,v;(v=p[F])!==void 0;F++){let z=qi(c,v);z<=3&&z<b&&(b=z,E=v)}E&&t.fail(n("Did you mean %s?",E))},i.reset=function(c){return s=Kt(s,p=>!c[p]),l=Kt(l,p=>!c[p]),i};let m=[];return i.freeze=function(){m.push({implied:s,conflicting:l})},i.unfreeze=function(){let c=m.pop();mt(c,void 0,e),{implied:s,conflicting:l}=c},i}var $a={},$n=[],He;function mu(u,t,e,n){He=n;let r={};if(Object.prototype.hasOwnProperty.call(u,"extends")){if(typeof u.extends!="string")return r;let i=/\.json|\..*rc$/.test(u.extends),s=null;if(i)s=Ta(t,u.extends);else try{s=$a.resolve(u.extends)}catch{return u}Ma(s),$n.push(s),r=i?JSON.parse(He.readFileSync(s,"utf8")):n.require(u.extends),delete u.extends,r=mu(r,He.path.dirname(s),e,He)}return $n=[],e?Ki(r,u):Object.assign({},r,u)}function Ma(u){if($n.indexOf(u)>-1)throw new st(`Circular extended configurations: '${u}'.`)}function Ta(u,t){return He.path.resolve(u,t)}function Ki(u,t){let e={};function n(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(e,u);for(let r of Object.keys(t))n(t[r])&&n(e[r])?e[r]=Ki(u[r],t[r]):e[r]=t[r];return e}var y=function(u,t,e,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?u!==t||!r:!t.has(u))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(u,e):r?r.value=e:t.set(u,e),e},o=function(u,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?u!==t||!n:!t.has(u))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(u):n?n.value:t.get(u)},ot,De,qe,Ct,Bt,Cu,Qt,ae,Eu,_t,gu,Ot,Mt,At,St,bu,ce,ft,P,Bu,Au,xt,le,je,fe,Zt,xu,M,he,Fe,de,$,wu,Tt,rt;function Fs(u){return(t=[],e=u.process.cwd(),n)=>{let r=new Yn(t,e,n,u);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}}var Ji=Symbol("copyDoubleDash"),Qi=Symbol("copyDoubleDash"),Nn=Symbol("deleteFromParserHintObject"),Zi=Symbol("emitWarning"),Xi=Symbol("freeze"),ki=Symbol("getDollarZero"),pe=Symbol("getParserConfiguration"),ts=Symbol("getUsageConfiguration"),Ln=Symbol("guessLocale"),es=Symbol("guessVersion"),us=Symbol("parsePositionalNumbers"),Un=Symbol("pkgUp"),Xt=Symbol("populateParserHintArray"),Me=Symbol("populateParserHintSingleValueDictionary"),zn=Symbol("populateParserHintArrayDictionary"),Rn=Symbol("populateParserHintDictionary"),Wn=Symbol("sanitizeKey"),Vn=Symbol("setKey"),Hn=Symbol("unfreeze"),ns=Symbol("validateAsync"),rs=Symbol("getCommandInstance"),is=Symbol("getContext"),ss=Symbol("getHasOutput"),os=Symbol("getLoggerInstance"),Ds=Symbol("getParseContext"),as=Symbol("getUsageInstance"),cs=Symbol("getValidationInstance"),yu=Symbol("hasParseCallback"),ls=Symbol("isGlobalContext"),me=Symbol("postProcess"),fs=Symbol("rebase"),qn=Symbol("reset"),Ge=Symbol("runYargsParserAndExecuteCommands"),Gn=Symbol("runValidation"),hs=Symbol("setHasOutput"),Ce=Symbol("kTrackManuallySetKeys"),Na="en_US",Yn=class{constructor(t=[],e,n,r){this.customScriptName=!1,this.parsed=!1,ot.set(this,void 0),De.set(this,void 0),qe.set(this,{commands:[],fullCommands:[]}),Ct.set(this,null),Bt.set(this,null),Cu.set(this,"show-hidden"),Qt.set(this,null),ae.set(this,!0),Eu.set(this,{}),_t.set(this,!0),gu.set(this,[]),Ot.set(this,void 0),Mt.set(this,{}),At.set(this,!1),St.set(this,null),bu.set(this,!0),ce.set(this,void 0),ft.set(this,""),P.set(this,void 0),Bu.set(this,void 0),Au.set(this,{}),xt.set(this,null),le.set(this,null),je.set(this,{}),fe.set(this,{}),Zt.set(this,void 0),xu.set(this,!1),M.set(this,void 0),he.set(this,!1),Fe.set(this,!1),de.set(this,!1),$.set(this,void 0),wu.set(this,{}),Tt.set(this,null),rt.set(this,void 0),y(this,M,r,"f"),y(this,Zt,t,"f"),y(this,De,e,"f"),y(this,Bu,n,"f"),y(this,Ot,new Fu(this),"f"),this.$0=this[ki](),this[qn](),y(this,ot,o(this,ot,"f"),"f"),y(this,$,o(this,$,"f"),"f"),y(this,rt,o(this,rt,"f"),"f"),y(this,P,o(this,P,"f"),"f"),o(this,P,"f").showHiddenOpt=o(this,Cu,"f"),y(this,ce,this[Qi](),"f"),o(this,M,"f").y18n.setLocale(Na)}addHelpOpt(t,e){let n="help";return w("[string|boolean] [string]",[t,e],arguments.length),o(this,St,"f")&&(this[Nn](o(this,St,"f")),y(this,St,null,"f")),t===!1&&e===void 0?this:(y(this,St,typeof t=="string"?t:n,"f"),this.boolean(o(this,St,"f")),this.describe(o(this,St,"f"),e||o(this,$,"f").deferY18nLookup("Show help")),this)}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(w("[string|boolean] [string]",[t,e],arguments.length),t===!1&&e===void 0)return this;let n=typeof t=="string"?t:o(this,Cu,"f");return this.boolean(n),this.describe(n,e||o(this,$,"f").deferY18nLookup("Show hidden options")),o(this,P,"f").showHiddenOpt=n,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return w("<object|string|array> [string|array]",[t,e],arguments.length),this[zn](this.alias.bind(this),"alias",t,e),this}array(t){return w("<array|string>",[t],arguments.length),this[Xt]("array",t),this[Ce](t),this}boolean(t){return w("<array|string>",[t],arguments.length),this[Xt]("boolean",t),this[Ce](t),this}check(t,e){return w("<function> [boolean]",[t,e],arguments.length),this.middleware((n,r)=>oe(()=>t(n,r.getOptions()),i=>(i?(typeof i=="string"||i instanceof Error)&&o(this,$,"f").fail(i.toString(),i):o(this,$,"f").fail(o(this,M,"f").y18n.__("Argument check failed: %s",t.toString())),n),i=>(o(this,$,"f").fail(i.message?i.message:i.toString(),i),n)),!1,e),this}choices(t,e){return w("<object|string|array> [string|array]",[t,e],arguments.length),this[zn](this.choices.bind(this),"choices",t,e),this}coerce(t,e){if(w("<object|string|array> [function]",[t,e],arguments.length),Array.isArray(t)){if(!e)throw new st("coerce callback must be provided");for(let r of t)this.coerce(r,e);return this}else if(typeof t=="object"){for(let r of Object.keys(t))this.coerce(r,t[r]);return this}if(!e)throw new st("coerce callback must be provided");let n=t;return o(this,P,"f").key[n]=!0,o(this,Ot,"f").addCoerceMiddleware((r,i)=>{var s;let D=(s=i.getAliases()[n])!==null&&s!==void 0?s:[],l=[n,...D].filter(m=>Object.prototype.hasOwnProperty.call(r,m));return l.length===0?r:oe(()=>e(r[l[0]]),m=>(l.forEach(d=>{r[d]=m}),r),m=>{throw new st(m.message)})},n),this}conflicts(t,e){return w("<string|object> [string|array]",[t,e],arguments.length),o(this,rt,"f").conflicts(t,e),this}config(t="config",e,n){return w("[object|string] [string|function] [function]",[t,e,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=mu(t,o(this,De,"f"),this[pe]()["deep-merge-config"]||!1,o(this,M,"f")),o(this,P,"f").configObjects=(o(this,P,"f").configObjects||[]).concat(t),this):(typeof e=="function"&&(n=e,e=void 0),this.describe(t,e||o(this,$,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(r=>{o(this,P,"f").config[r]=n||!0}),this)}completion(t,e,n){return w("[string] [string|boolean|function] [function]",[t,e,n],arguments.length),typeof e=="function"&&(n=e,e=void 0),y(this,Bt,t||o(this,Bt,"f")||"completion","f"),!e&&e!==!1&&(e="generate completion script"),this.command(o(this,Bt,"f"),e),n&&o(this,Ct,"f").registerFunction(n),this}command(t,e,n,r,i,s){return w("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,n,r,i,s],arguments.length),o(this,ot,"f").addHandler(t,e,n,r,i,s),this}commands(t,e,n,r,i,s){return this.command(t,e,n,r,i,s)}commandDir(t,e){w("<string> [object]",[t,e],arguments.length);let n=o(this,Bu,"f")||o(this,M,"f").require;return o(this,ot,"f").addDirectory(t,n,o(this,M,"f").getCallerFile(),e),this}count(t){return w("<array|string>",[t],arguments.length),this[Xt]("count",t),this[Ce](t),this}default(t,e,n){return w("<object|string|array> [*] [string]",[t,e,n],arguments.length),n&&(vn(t,o(this,M,"f")),o(this,P,"f").defaultDescription[t]=n),typeof e=="function"&&(vn(t,o(this,M,"f")),o(this,P,"f").defaultDescription[t]||(o(this,P,"f").defaultDescription[t]=o(this,$,"f").functionDescription(e)),e=e.call()),this[Me](this.default.bind(this),"default",t,e),this}defaults(t,e,n){return this.default(t,e,n)}demandCommand(t=1,e,n,r){return w("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,n,r],arguments.length),typeof e!="number"&&(n=e,e=1/0),this.global("_",!1),o(this,P,"f").demandedCommands._={min:t,max:e,minMsg:n,maxMsg:r},this}demand(t,e,n){return Array.isArray(e)?(e.forEach(r=>{mt(n,!0,o(this,M,"f")),this.demandOption(r,n)}),e=1/0):typeof e!="number"&&(n=e,e=1/0),typeof t=="number"?(mt(n,!0,o(this,M,"f")),this.demandCommand(t,e,n,n)):Array.isArray(t)?t.forEach(r=>{mt(n,!0,o(this,M,"f")),this.demandOption(r,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,e){return w("<object|string|array> [string]",[t,e],arguments.length),this[Me](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return w("<string> [string|boolean]",[t,e],arguments.length),o(this,P,"f").deprecatedOptions[t]=e,this}describe(t,e){return w("<object|string|array> [string]",[t,e],arguments.length),this[Vn](t,!0),o(this,$,"f").describe(t,e),this}detectLocale(t){return w("<boolean>",[t],arguments.length),y(this,ae,t,"f"),this}env(t){return w("[string|boolean]",[t],arguments.length),t===!1?delete o(this,P,"f").envPrefix:o(this,P,"f").envPrefix=t||"",this}epilogue(t){return w("<string>",[t],arguments.length),o(this,$,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return w("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):o(this,$,"f").example(t,e),this}exit(t,e){y(this,At,!0,"f"),y(this,Qt,e,"f"),o(this,_t,"f")&&o(this,M,"f").process.exit(t)}exitProcess(t=!0){return w("[boolean]",[t],arguments.length),y(this,_t,t,"f"),this}fail(t){if(w("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new st("Invalid first argument. Expected function or boolean 'false'");return o(this,$,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return w("<array> [function]",[t,e],arguments.length),e?o(this,Ct,"f").getCompletion(t,e):new Promise((n,r)=>{o(this,Ct,"f").getCompletion(t,(i,s)=>{i?r(i):n(s)})})}getDemandedOptions(){return w([],0),o(this,P,"f").demandedOptions}getDemandedCommands(){return w([],0),o(this,P,"f").demandedCommands}getDeprecatedOptions(){return w([],0),o(this,P,"f").deprecatedOptions}getDetectLocale(){return o(this,ae,"f")}getExitProcess(){return o(this,_t,"f")}getGroups(){return Object.assign({},o(this,Mt,"f"),o(this,fe,"f"))}getHelp(){if(y(this,At,!0,"f"),!o(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let e=this[Ge](o(this,Zt,"f"),void 0,void 0,0,!0);if(Q(e))return e.then(()=>o(this,$,"f").help())}let t=o(this,ot,"f").runDefaultBuilderOn(this);if(Q(t))return t.then(()=>o(this,$,"f").help())}return Promise.resolve(o(this,$,"f").help())}getOptions(){return o(this,P,"f")}getStrict(){return o(this,he,"f")}getStrictCommands(){return o(this,Fe,"f")}getStrictOptions(){return o(this,de,"f")}global(t,e){return w("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),e!==!1?o(this,P,"f").local=o(this,P,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{o(this,P,"f").local.includes(n)||o(this,P,"f").local.push(n)}),this}group(t,e){w("<string|array> <string>",[t,e],arguments.length);let n=o(this,fe,"f")[e]||o(this,Mt,"f")[e];o(this,fe,"f")[e]&&delete o(this,fe,"f")[e];let r={};return o(this,Mt,"f")[e]=(n||[]).concat(t).filter(i=>r[i]?!1:r[i]=!0),this}hide(t){return w("<string>",[t],arguments.length),o(this,P,"f").hiddenOptions.push(t),this}implies(t,e){return w("<string|object> [number|string|array]",[t,e],arguments.length),o(this,rt,"f").implies(t,e),this}locale(t){return w("[string]",[t],arguments.length),t===void 0?(this[Ln](),o(this,M,"f").y18n.getLocale()):(y(this,ae,!1,"f"),o(this,M,"f").y18n.setLocale(t),this)}middleware(t,e,n){return o(this,Ot,"f").addMiddleware(t,!!e,n)}nargs(t,e){return w("<string|object|array> [number]",[t,e],arguments.length),this[Me](this.nargs.bind(this),"narg",t,e),this}normalize(t){return w("<array|string>",[t],arguments.length),this[Xt]("normalize",t),this}number(t){return w("<array|string>",[t],arguments.length),this[Xt]("number",t),this[Ce](t),this}option(t,e){if(w("<string|object> [object]",[t,e],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof e!="object"&&(e={}),this[Ce](t),o(this,Tt,"f")&&(t==="version"||e?.alias==="version")&&this[Zi](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
79
+ `),void 0,"versionWarning"),o(this,P,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);let n=e.deprecate||e.deprecated;n&&this.deprecateOption(t,n);let r=e.demand||e.required||e.require;r&&this.demand(t,r),e.demandOption&&this.demandOption(t,typeof e.demandOption=="string"?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),e.implies!==void 0&&this.implies(t,e.implies),e.nargs!==void 0&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||e.type==="boolean")&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||e.type==="array")&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||e.type==="number")&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||e.type==="string")&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||e.type==="count")&&this.count(t),typeof e.global=="boolean"&&this.global(t,e.global),e.defaultDescription&&(o(this,P,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);let i=e.describe||e.description||e.desc,s=o(this,$,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(s,t)||typeof i=="string")&&this.describe(t,i),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,n){w("[string|array] [function|boolean|object] [function]",[t,e,n],arguments.length),this[Xi](),typeof t>"u"&&(t=o(this,Zt,"f")),typeof e=="object"&&(y(this,le,e,"f"),e=n),typeof e=="function"&&(y(this,xt,e,"f"),e=!1),e||y(this,Zt,t,"f"),o(this,xt,"f")&&y(this,_t,!1,"f");let r=this[Ge](t,!!e),i=this.parsed;return o(this,Ct,"f").setParsed(this.parsed),Q(r)?r.then(s=>(o(this,xt,"f")&&o(this,xt,"f").call(this,o(this,Qt,"f"),s,o(this,ft,"f")),s)).catch(s=>{throw o(this,xt,"f")&&o(this,xt,"f")(s,this.parsed.argv,o(this,ft,"f")),s}).finally(()=>{this[Hn](),this.parsed=i}):(o(this,xt,"f")&&o(this,xt,"f").call(this,o(this,Qt,"f"),r,o(this,ft,"f")),this[Hn](),this.parsed=i,r)}parseAsync(t,e,n){let r=this.parse(t,e,n);return Q(r)?r:Promise.resolve(r)}parseSync(t,e,n){let r=this.parse(t,e,n);if(Q(r))throw new st(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(t){return w("<object>",[t],arguments.length),y(this,Au,t,"f"),this}pkgConf(t,e){w("<string> [string]",[t,e],arguments.length);let n=null,r=this[Un](e||o(this,De,"f"));return r[t]&&typeof r[t]=="object"&&(n=mu(r[t],e||o(this,De,"f"),this[pe]()["deep-merge-config"]||!1,o(this,M,"f")),o(this,P,"f").configObjects=(o(this,P,"f").configObjects||[]).concat(n)),this}positional(t,e){w("<string> <object>",[t,e],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=Kt(e,(s,D)=>s==="type"&&!["string","number","boolean"].includes(D)?!1:n.includes(s));let r=o(this,qe,"f").fullCommands[o(this,qe,"f").fullCommands.length-1],i=r?o(this,ot,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Ie(i).forEach(s=>{let D=i[s];Array.isArray(D)?D.indexOf(t)!==-1&&(e[s]=!0):D[t]&&!(s in e)&&(e[s]=D[t])}),this.group(t,o(this,$,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return w("[boolean]",[t],arguments.length),y(this,xu,t,"f"),this}required(t,e,n){return this.demand(t,e,n)}require(t,e,n){return this.demand(t,e,n)}requiresArg(t){return w("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&o(this,P,"f").narg[t]?this:(this[Me](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,e){return w("[string] [string]",[t,e],arguments.length),t=t||this.$0,o(this,ce,"f").log(o(this,Ct,"f").generateCompletionScript(t,e||o(this,Bt,"f")||"completion")),this}showHelp(t){if(w("[string|function]",[t],arguments.length),y(this,At,!0,"f"),!o(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Ge](o(this,Zt,"f"),void 0,void 0,0,!0);if(Q(n))return n.then(()=>{o(this,$,"f").showHelp(t)}),this}let e=o(this,ot,"f").runDefaultBuilderOn(this);if(Q(e))return e.then(()=>{o(this,$,"f").showHelp(t)}),this}return o(this,$,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return w("[boolean|string] [string]",[t,e],arguments.length),o(this,$,"f").showHelpOnFail(t,e),this}showVersion(t){return w("[string|function]",[t],arguments.length),o(this,$,"f").showVersion(t),this}skipValidation(t){return w("<array|string>",[t],arguments.length),this[Xt]("skipValidation",t),this}strict(t){return w("[boolean]",[t],arguments.length),y(this,he,t!==!1,"f"),this}strictCommands(t){return w("[boolean]",[t],arguments.length),y(this,Fe,t!==!1,"f"),this}strictOptions(t){return w("[boolean]",[t],arguments.length),y(this,de,t!==!1,"f"),this}string(t){return w("<array|string>",[t],arguments.length),this[Xt]("string",t),this[Ce](t),this}terminalWidth(){return w([],0),o(this,M,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return w("<object>",[t],arguments.length),y(this,ae,!1,"f"),o(this,M,"f").y18n.updateLocale(t),this}usage(t,e,n,r){if(w("<string|null|undefined> [string|boolean] [function|object] [function]",[t,e,n,r],arguments.length),e!==void 0){if(mt(t,null,o(this,M,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,e,n,r);throw new st(".usage() description must start with $0 if being used as alias for .command()")}else return o(this,$,"f").usage(t),this}usageConfiguration(t){return w("<object>",[t],arguments.length),y(this,wu,t,"f"),this}version(t,e,n){let r="version";if(w("[boolean|string] [string] [string]",[t,e,n],arguments.length),o(this,Tt,"f")&&(this[Nn](o(this,Tt,"f")),o(this,$,"f").version(void 0),y(this,Tt,null,"f")),arguments.length===0)n=this[es](),t=r;else if(arguments.length===1){if(t===!1)return this;n=t,t=r}else arguments.length===2&&(n=e,e=void 0);return y(this,Tt,typeof t=="string"?t:r,"f"),e=e||o(this,$,"f").deferY18nLookup("Show version number"),o(this,$,"f").version(n||void 0),this.boolean(o(this,Tt,"f")),this.describe(o(this,Tt,"f"),e),this}wrap(t){return w("<number|null|undefined>",[t],arguments.length),o(this,$,"f").wrap(t),this}[(ot=new WeakMap,De=new WeakMap,qe=new WeakMap,Ct=new WeakMap,Bt=new WeakMap,Cu=new WeakMap,Qt=new WeakMap,ae=new WeakMap,Eu=new WeakMap,_t=new WeakMap,gu=new WeakMap,Ot=new WeakMap,Mt=new WeakMap,At=new WeakMap,St=new WeakMap,bu=new WeakMap,ce=new WeakMap,ft=new WeakMap,P=new WeakMap,Bu=new WeakMap,Au=new WeakMap,xt=new WeakMap,le=new WeakMap,je=new WeakMap,fe=new WeakMap,Zt=new WeakMap,xu=new WeakMap,M=new WeakMap,he=new WeakMap,Fe=new WeakMap,de=new WeakMap,$=new WeakMap,wu=new WeakMap,Tt=new WeakMap,rt=new WeakMap,Ji)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[Qi](){return{log:(...t)=>{this[yu]()||console.log(...t),y(this,At,!0,"f"),o(this,ft,"f").length&&y(this,ft,o(this,ft,"f")+`
80
+ `,"f"),y(this,ft,o(this,ft,"f")+t.join(" "),"f")},error:(...t)=>{this[yu]()||console.error(...t),y(this,At,!0,"f"),o(this,ft,"f").length&&y(this,ft,o(this,ft,"f")+`
81
+ `,"f"),y(this,ft,o(this,ft,"f")+t.join(" "),"f")}}}[Nn](t){Ie(o(this,P,"f")).forEach(e=>{if((r=>r==="configObjects")(e))return;let n=o(this,P,"f")[e];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete o(this,$,"f").getDescriptions()[t]}[Zi](t,e,n){o(this,Eu,"f")[n]||(o(this,M,"f").process.emitWarning(t,e),o(this,Eu,"f")[n]=!0)}[Xi](){o(this,gu,"f").push({options:o(this,P,"f"),configObjects:o(this,P,"f").configObjects.slice(0),exitProcess:o(this,_t,"f"),groups:o(this,Mt,"f"),strict:o(this,he,"f"),strictCommands:o(this,Fe,"f"),strictOptions:o(this,de,"f"),completionCommand:o(this,Bt,"f"),output:o(this,ft,"f"),exitError:o(this,Qt,"f"),hasOutput:o(this,At,"f"),parsed:this.parsed,parseFn:o(this,xt,"f"),parseContext:o(this,le,"f")}),o(this,$,"f").freeze(),o(this,rt,"f").freeze(),o(this,ot,"f").freeze(),o(this,Ot,"f").freeze()}[ki](){let t="",e;return/\b(node|iojs|electron)(\.exe)?$/.test(o(this,M,"f").process.argv()[0])?e=o(this,M,"f").process.argv().slice(1,2):e=o(this,M,"f").process.argv().slice(0,1),t=e.map(n=>{let r=this[fs](o(this,De,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<n.length?r:n}).join(" ").trim(),o(this,M,"f").getEnv("_")&&o(this,M,"f").getProcessArgvBin()===o(this,M,"f").getEnv("_")&&(t=o(this,M,"f").getEnv("_").replace(`${o(this,M,"f").path.dirname(o(this,M,"f").process.execPath())}/`,"")),t}[pe](){return o(this,Au,"f")}[ts](){return o(this,wu,"f")}[Ln](){if(!o(this,ae,"f"))return;let t=o(this,M,"f").getEnv("LC_ALL")||o(this,M,"f").getEnv("LC_MESSAGES")||o(this,M,"f").getEnv("LANG")||o(this,M,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[es](){return this[Un]().version||"unknown"}[us](t){let e=t["--"]?t["--"]:t._;for(let n=0,r;(r=e[n])!==void 0;n++)o(this,M,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(e[n]=Number(r));return t}[Un](t){let e=t||"*";if(o(this,je,"f")[e])return o(this,je,"f")[e];let n={};try{let r=t||o(this,M,"f").mainFilename;o(this,M,"f").path.extname(r)&&(r=o(this,M,"f").path.dirname(r));let i=o(this,M,"f").findUp(r,(s,D)=>{if(D.includes("package.json"))return"package.json"});mt(i,void 0,o(this,M,"f")),n=JSON.parse(o(this,M,"f").readFileSync(i,"utf8"))}catch{}return o(this,je,"f")[e]=n||{},o(this,je,"f")[e]}[Xt](t,e){e=[].concat(e),e.forEach(n=>{n=this[Wn](n),o(this,P,"f")[t].push(n)})}[Me](t,e,n,r){this[Rn](t,e,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=D})}[zn](t,e,n,r){this[Rn](t,e,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=(o(this,P,"f")[i][s]||[]).concat(D)})}[Rn](t,e,n,r,i){if(Array.isArray(n))n.forEach(s=>{t(s,r)});else if((s=>typeof s=="object")(n))for(let s of Ie(n))t(s,n[s]);else i(e,this[Wn](n),r)}[Wn](t){return t==="__proto__"?"___proto___":t}[Vn](t,e){return this[Me](this[Vn].bind(this),"key",t,e),this}[Hn](){var t,e,n,r,i,s,D,l,m,d,c,p;let g=o(this,gu,"f").pop();mt(g,void 0,o(this,M,"f"));let E;t=this,e=this,n=this,r=this,i=this,s=this,D=this,l=this,m=this,d=this,c=this,p=this,{options:{set value(b){y(t,P,b,"f")}}.value,configObjects:E,exitProcess:{set value(b){y(e,_t,b,"f")}}.value,groups:{set value(b){y(n,Mt,b,"f")}}.value,output:{set value(b){y(r,ft,b,"f")}}.value,exitError:{set value(b){y(i,Qt,b,"f")}}.value,hasOutput:{set value(b){y(s,At,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){y(D,he,b,"f")}}.value,strictCommands:{set value(b){y(l,Fe,b,"f")}}.value,strictOptions:{set value(b){y(m,de,b,"f")}}.value,completionCommand:{set value(b){y(d,Bt,b,"f")}}.value,parseFn:{set value(b){y(c,xt,b,"f")}}.value,parseContext:{set value(b){y(p,le,b,"f")}}.value}=g,o(this,P,"f").configObjects=E,o(this,$,"f").unfreeze(),o(this,rt,"f").unfreeze(),o(this,ot,"f").unfreeze(),o(this,Ot,"f").unfreeze()}[ns](t,e){return oe(e,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[rs].bind(this),getContext:this[is].bind(this),getHasOutput:this[ss].bind(this),getLoggerInstance:this[os].bind(this),getParseContext:this[Ds].bind(this),getParserConfiguration:this[pe].bind(this),getUsageConfiguration:this[ts].bind(this),getUsageInstance:this[as].bind(this),getValidationInstance:this[cs].bind(this),hasParseCallback:this[yu].bind(this),isGlobalContext:this[ls].bind(this),postProcess:this[me].bind(this),reset:this[qn].bind(this),runValidation:this[Gn].bind(this),runYargsParserAndExecuteCommands:this[Ge].bind(this),setHasOutput:this[hs].bind(this)}}[rs](){return o(this,ot,"f")}[is](){return o(this,qe,"f")}[ss](){return o(this,At,"f")}[os](){return o(this,ce,"f")}[Ds](){return o(this,le,"f")||{}}[as](){return o(this,$,"f")}[cs](){return o(this,rt,"f")}[yu](){return!!o(this,xt,"f")}[ls](){return o(this,bu,"f")}[me](t,e,n,r){return n||Q(t)||(e||(t=this[Ji](t)),(this[pe]()["parse-positional-numbers"]||this[pe]()["parse-positional-numbers"]===void 0)&&(t=this[us](t)),r&&(t=se(t,this,o(this,Ot,"f").getMiddleware(),!1))),t}[qn](t={}){y(this,P,o(this,P,"f")||{},"f");let e={};e.local=o(this,P,"f").local||[],e.configObjects=o(this,P,"f").configObjects||[];let n={};e.local.forEach(s=>{n[s]=!0,(t[s]||[]).forEach(D=>{n[D]=!0})}),Object.assign(o(this,fe,"f"),Object.keys(o(this,Mt,"f")).reduce((s,D)=>{let l=o(this,Mt,"f")[D].filter(m=>!(m in n));return l.length>0&&(s[D]=l),s},{})),y(this,Mt,{},"f");let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],i=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(s=>{e[s]=(o(this,P,"f")[s]||[]).filter(D=>!n[D])}),i.forEach(s=>{e[s]=Kt(o(this,P,"f")[s],D=>!n[D])}),e.envPrefix=o(this,P,"f").envPrefix,y(this,P,e,"f"),y(this,$,o(this,$,"f")?o(this,$,"f").reset(n):Ri(this,o(this,M,"f")),"f"),y(this,rt,o(this,rt,"f")?o(this,rt,"f").reset(n):Yi(this,o(this,$,"f"),o(this,M,"f")),"f"),y(this,ot,o(this,ot,"f")?o(this,ot,"f").reset():Li(o(this,$,"f"),o(this,rt,"f"),o(this,Ot,"f"),o(this,M,"f")),"f"),o(this,Ct,"f")||y(this,Ct,Hi(this,o(this,$,"f"),o(this,ot,"f"),o(this,M,"f")),"f"),o(this,Ot,"f").reset(),y(this,Bt,null,"f"),y(this,ft,"","f"),y(this,Qt,null,"f"),y(this,At,!1,"f"),this.parsed=!1,this}[fs](t,e){return o(this,M,"f").path.relative(t,e)}[Ge](t,e,n,r=0,i=!1){var s,D,l,m;let d=!!n||i;t=t||o(this,Zt,"f"),o(this,P,"f").__=o(this,M,"f").y18n.__,o(this,P,"f").configuration=this[pe]();let c=!!o(this,P,"f").configuration["populate--"],p=Object.assign({},o(this,P,"f").configuration,{"populate--":!0}),g=o(this,M,"f").Parser.detailed(t,Object.assign({},o(this,P,"f"),{configuration:{"parse-positional-numbers":!1,...p}})),E=Object.assign(g.argv,o(this,le,"f")),b,F=g.aliases,v=!1,z=!1;Object.keys(E).forEach(L=>{L===o(this,St,"f")&&E[L]?v=!0:L===o(this,Tt,"f")&&E[L]&&(z=!0)}),E.$0=this.$0,this.parsed=g,r===0&&o(this,$,"f").clearCachedHelpMessage();try{if(this[Ln](),e)return this[me](E,c,!!n,!1);o(this,St,"f")&&[o(this,St,"f")].concat(F[o(this,St,"f")]||[]).filter(H=>H.length>1).includes(""+E._[E._.length-1])&&(E._.pop(),v=!0),y(this,bu,!1,"f");let L=o(this,ot,"f").getCommands(),U=!((s=o(this,Ct,"f"))===null||s===void 0)&&s.completionKey?[(D=o(this,Ct,"f"))===null||D===void 0?void 0:D.completionKey,...(m=this.getAliases()[(l=o(this,Ct,"f"))===null||l===void 0?void 0:l.completionKey])!==null&&m!==void 0?m:[]].some(W=>Object.prototype.hasOwnProperty.call(E,W)):!1,R=v||U||i;if(E._.length){if(L.length){let W;for(let H=r||0,K;E._[H]!==void 0;H++)if(K=String(E._[H]),L.includes(K)&&K!==o(this,Bt,"f")){let Ft=o(this,ot,"f").runCommand(K,this,g,H+1,i,v||z||i);return this[me](Ft,c,!!n,!1)}else if(!W&&K!==o(this,Bt,"f")){W=K;break}!o(this,ot,"f").hasDefaultCommand()&&o(this,xu,"f")&&W&&!R&&o(this,rt,"f").recommendCommands(W,L)}o(this,Bt,"f")&&E._.includes(o(this,Bt,"f"))&&!U&&(o(this,_t,"f")&&Jt(!0),this.showCompletionScript(),this.exit(0))}if(o(this,ot,"f").hasDefaultCommand()&&!R){let W=o(this,ot,"f").runCommand(null,this,g,0,i,v||z||i);return this[me](W,c,!!n,!1)}if(U){o(this,_t,"f")&&Jt(!0),t=[].concat(t);let W=t.slice(t.indexOf(`--${o(this,Ct,"f").completionKey}`)+1);return o(this,Ct,"f").getCompletion(W,(H,K)=>{if(H)throw new st(H.message);(K||[]).forEach(Ft=>{o(this,ce,"f").log(Ft)}),this.exit(0)}),this[me](E,!c,!!n,!1)}if(o(this,At,"f")||(v?(o(this,_t,"f")&&Jt(!0),d=!0,this.showHelp(W=>{o(this,ce,"f").log(W),this.exit(0)})):z&&(o(this,_t,"f")&&Jt(!0),d=!0,o(this,$,"f").showVersion("log"),this.exit(0))),!d&&o(this,P,"f").skipValidation.length>0&&(d=Object.keys(E).some(W=>o(this,P,"f").skipValidation.indexOf(W)>=0&&E[W]===!0)),!d){if(g.error)throw new st(g.error.message);if(!U){let W=this[Gn](F,{},g.error);n||(b=se(E,this,o(this,Ot,"f").getMiddleware(),!0)),b=this[ns](W,b??E),Q(b)&&!n&&(b=b.then(()=>se(E,this,o(this,Ot,"f").getMiddleware(),!1)))}}}catch(L){if(L instanceof st)o(this,$,"f").fail(L.message,L);else throw L}return this[me](b??E,c,!!n,!0)}[Gn](t,e,n,r){let i={...this.getDemandedOptions()};return s=>{if(n)throw new st(n.message);o(this,rt,"f").nonOptionCount(s),o(this,rt,"f").requiredArguments(s,i);let D=!1;o(this,Fe,"f")&&(D=o(this,rt,"f").unknownCommands(s)),o(this,he,"f")&&!D?o(this,rt,"f").unknownArguments(s,t,e,!!r):o(this,de,"f")&&o(this,rt,"f").unknownArguments(s,t,{},!1,!1),o(this,rt,"f").limitedChoices(s),o(this,rt,"f").implications(s),o(this,rt,"f").conflicting(s)}}[hs](){y(this,At,!0,"f")}[Ce](t){if(typeof t=="string")o(this,P,"f").key[t]=!0;else for(let e of t)o(this,P,"f").key[e]=!0}};function Ui(u){return!!u&&typeof u.getInternalMethods=="function"}var La=Fs(vi),ds=La;var Es=ee(ms(),1),Ra={},Ua=process.argv.slice(2),Cs=new Es.default(ds),Jn=console.log;async function Qn(u){Cs.yargs.option("listen",{desc:"daemon control listen multiaddr",type:"string",default:"/unix/tmp/p2pd.sock"}).option("quiet",{alias:"q",desc:"be quiet",type:"boolean",default:!1}).option("id",{desc:"peer identity; private key file",type:"string",default:""}).option("hostAddrs",{desc:"Comma separated list of multiaddrs the host should listen on",type:"string",default:""}).option("announceAddrs",{desc:"Comma separated list of multiaddrs the host should announce to the network",type:"string",default:""}).option("bootstrap",{alias:"b",desc:"Connects to bootstrap peers and bootstraps the dht if enabled",type:"boolean",default:!1}).option("bootstrapPeers",{desc:"Comma separated list of bootstrap peers; defaults to the IPFS DHT peers",type:"string",default:""}).option("dht",{desc:"Enables the DHT in full node mode",type:"boolean",default:!1}).option("dhtClient",{desc:"(Not yet supported) Enables the DHT in client mode",type:"boolean",default:!1}).option("nat",{desc:"Enables UPnP NAT hole punching",type:"boolean",default:!1}).option("connMgr",{desc:"(Not yet supported) Enables the Connection Manager",type:"boolean",default:!1}).option("connMgrLo",{desc:"Number identifying the number of peers below which this node will not activate preemptive disconnections",type:"number"}).option("connMgrHi",{desc:"Number identifying the maximum number of peers the current peer is willing to be connected to before is starts disconnecting",type:"number"}).option("pubsub",{desc:"Enables pubsub",type:"boolean",default:!1}).option("pubsubRouter",{desc:"Specifies the pubsub router implementation",type:"string",default:"gossipsub"}).fail((r,i,s)=>{if(i!=null)throw i;Ua.length>0&&Jn(r),s.showHelp()});let{data:t,argv:e}=await Cs.parse(u);t!=null&&(Jn(t),process.exit(0)),await(await gs($r(e.listen),e)).start(),e.quiet!==!0&&Jn("daemon has started")}async function gs(u,t){throw new Error("Not implemented yet")}dn(Ra)&&Qn(process.argv).catch(u=>{console.error(u),process.exit(1)});return ys(za);})();
82
82
  /*! Bundled license information:
83
83
 
84
84
  yargs-parser/build/lib/string-utils.js: