@libp2p/daemon 6.0.26 → 6.0.27-29797a5bb
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 +22 -22
- package/dist/index.min.js.map +4 -4
- package/package.json +3 -3
- package/dist/typedoc-urls.json +0 -6
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 mo=Object.create;var Ge=Object.defineProperty;var go=Object.getOwnPropertyDescriptor;var Fo=Object.getOwnPropertyNames;var Co=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty;var J=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var An=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),Ct=(n,t)=>{for(var e in t)Ge(n,e,{get:t[e],enumerable:!0})},Gr=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Fo(t))!Eo.call(n,i)&&i!==e&&Ge(n,i,{get:()=>t[i],enumerable:!(r=go(t,i))||r.enumerable});return n};var me=(n,t,e)=>(e=n!=null?mo(Co(n)):{},Gr(t||!n||!n.__esModule?Ge(e,"default",{value:n,enumerable:!0}):e,n)),bo=n=>Gr(Ge({},"__esModule",{value:!0}),n);var Ji=An((Uf,Ki)=>{Ki.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 xs=An((FD,bs)=>{"use strict";bs.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(i,s){return s};var r=new Error().stack;if(Error.prepareStackTrace=e,r!==null&&typeof r=="object")return r[t]?r[t].getFileName():void 0}});var fo=An((_h,lo)=>{var Vr=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,r;return new Promise((i,s)=>{let o=Object.assign({},this.ctx,{resolve:i,reject:s});e.parse(t,o,function(a,f,g){return r=f,a?f.reject(a):f.resolve(g)})}).then(i=>Promise.resolve(i)).then(i=>i&&i.argv?i:{data:i,argv:r}).catch(i=>Promise.resolve(i).then(s=>s&&s.argv?Promise.reject(s):Promise.reject({error:s,argv:r})))}};lo.exports=Vr});var Pc={};Ct(Pc,{createLibp2pServer:()=>po,default:()=>qr});function Yr(n,t){if(n===t)return!0;if(n.byteLength!==t.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n[e]!==t[e])return!1;return!0}var Kr=J("node:buffer");function ge(n){return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function On(n=0){return ge(Kr.Buffer.allocUnsafe(n))}var xo=Math.pow(2,7),wo=Math.pow(2,14),yo=Math.pow(2,21),Bn=Math.pow(2,28),_n=Math.pow(2,35),Sn=Math.pow(2,42),Pn=Math.pow(2,49),tt=128,pt=127;function Fe(n){if(n<xo)return 1;if(n<wo)return 2;if(n<yo)return 3;if(n<Bn)return 4;if(n<_n)return 5;if(n<Sn)return 6;if(n<Pn)return 7;if(Number.MAX_SAFE_INTEGER!=null&&n>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function In(n,t,e=0){switch(Fe(n)){case 8:t[e++]=n&255|tt,n/=128;case 7:t[e++]=n&255|tt,n/=128;case 6:t[e++]=n&255|tt,n/=128;case 5:t[e++]=n&255|tt,n/=128;case 4:t[e++]=n&255|tt,n>>>=7;case 3:t[e++]=n&255|tt,n>>>=7;case 2:t[e++]=n&255|tt,n>>>=7;case 1:{t[e++]=n&255,n>>>=7;break}default:throw new Error("unreachable")}return t}function Ao(n,t){let e=n[t],r=0;if(r+=e&pt,e<tt||(e=n[t+1],r+=(e&pt)<<7,e<tt)||(e=n[t+2],r+=(e&pt)<<14,e<tt)||(e=n[t+3],r+=(e&pt)<<21,e<tt)||(e=n[t+4],r+=(e&pt)*Bn,e<tt)||(e=n[t+5],r+=(e&pt)*_n,e<tt)||(e=n[t+6],r+=(e&pt)*Sn,e<tt)||(e=n[t+7],r+=(e&pt)*Pn,e<tt))return r;throw new RangeError("Could not decode varint")}function Oo(n,t){let e=n.get(t),r=0;if(r+=e&pt,e<tt||(e=n.get(t+1),r+=(e&pt)<<7,e<tt)||(e=n.get(t+2),r+=(e&pt)<<14,e<tt)||(e=n.get(t+3),r+=(e&pt)<<21,e<tt)||(e=n.get(t+4),r+=(e&pt)*Bn,e<tt)||(e=n.get(t+5),r+=(e&pt)*_n,e<tt)||(e=n.get(t+6),r+=(e&pt)*Sn,e<tt)||(e=n.get(t+7),r+=(e&pt)*Pn,e<tt))return r;throw new RangeError("Could not decode varint")}function vn(n,t=0){return n instanceof Uint8Array?Ao(n,t):Oo(n,t)}var Jr=J("node:buffer");function ve(n,t){return ge(Jr.Buffer.concat(n,t))}var gi=J("node:buffer");var Nn={};Ct(Nn,{base10:()=>Mo});var zc=new Uint8Array(0);function Qr(n,t){if(n===t)return!0;if(n.byteLength!==t.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n[e]!==t[e])return!1;return!0}function At(n){if(n instanceof Uint8Array&&n.constructor.name==="Uint8Array")return n;if(n instanceof ArrayBuffer)return new Uint8Array(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength);throw new Error("Unknown type, must be binary type")}function Zr(n){return new TextEncoder().encode(n)}function Xr(n){return new TextDecoder().decode(n)}function _o(n,t){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<n.length;i++){var s=n.charAt(i),o=s.charCodeAt(0);if(e[o]!==255)throw new TypeError(s+" is ambiguous");e[o]=i}var a=n.length,f=n.charAt(0),g=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function l(C){if(C instanceof Uint8Array||(ArrayBuffer.isView(C)?C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength):Array.isArray(C)&&(C=Uint8Array.from(C))),!(C instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(C.length===0)return"";for(var b=0,d=0,v=0,z=C.length;v!==z&&C[v]===0;)v++,b++;for(var L=(z-v)*p+1>>>0,U=new Uint8Array(L);v!==z;){for(var R=C[v],W=0,H=L-1;(R!==0||W<d)&&H!==-1;H--,W++)R+=256*U[H]>>>0,U[H]=R%a>>>0,R=R/a>>>0;if(R!==0)throw new Error("Non-zero carry");d=W,v++}for(var K=L-d;K!==L&&U[K]===0;)K++;for(var dt=f.repeat(b);K<L;++K)dt+=n.charAt(U[K]);return dt}function m(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return new Uint8Array;var b=0;if(C[b]!==" "){for(var d=0,v=0;C[b]===f;)d++,b++;for(var z=(C.length-b)*g+1>>>0,L=new Uint8Array(z);C[b];){var U=e[C.charCodeAt(b)];if(U===255)return;for(var R=0,W=z-1;(U!==0||R<v)&&W!==-1;W--,R++)U+=a*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(C[b]!==" "){for(var H=z-v;H!==z&&L[H]===0;)H++;for(var K=new Uint8Array(d+(z-H)),dt=d;H!==z;)K[dt++]=L[H++];return K}}}function E(C){var b=m(C);if(b)return b;throw new Error(`Non-${t} character`)}return{encode:l,decodeUnsafe:m,decode:E}}var So=_o,Po=So,ti=Po;var jn=class{name;prefix;baseEncode;constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},Mn=class{name;prefix;baseDecode;prefixCodePoint;constructor(t,e,r){this.name=t,this.prefix=e;let i=e.codePointAt(0);if(i===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=i,this.baseDecode=r}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 ei(this,t)}},Tn=class{decoders;constructor(t){this.decoders=t}or(t){return ei(this,t)}decode(t){let e=t[0],r=this.decoders[e];if(r!=null)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function ei(n,t){return new Tn({...n.decoders??{[n.prefix]:n},...t.decoders??{[t.prefix]:t}})}var $n=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(t,e,r,i){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=i,this.encoder=new jn(t,e,r),this.decoder=new Mn(t,e,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}};function Ce({name:n,prefix:t,encode:e,decode:r}){return new $n(n,t,e,r)}function Vt({name:n,prefix:t,alphabet:e}){let{encode:r,decode:i}=ti(e,n);return Ce({prefix:t,name:n,encode:r,decode:s=>At(i(s))})}function Io(n,t,e,r){let i=n.length;for(;n[i-1]==="=";)--i;let s=new Uint8Array(i*e/8|0),o=0,a=0,f=0;for(let g=0;g<i;++g){let p=t[n[g]];if(p===void 0)throw new SyntaxError(`Non-${r} character`);a=a<<e|p,o+=e,o>=8&&(o-=8,s[f++]=255&a>>o)}if(o>=e||(255&a<<8-o)!==0)throw new SyntaxError("Unexpected end of data");return s}function vo(n,t,e){let r=t[t.length-1]==="=",i=(1<<e)-1,s="",o=0,a=0;for(let f=0;f<n.length;++f)for(a=a<<8|n[f],o+=8;o>e;)o-=e,s+=t[i&a>>o];if(o!==0&&(s+=t[i&a<<e-o]),r)for(;(s.length*e&7)!==0;)s+="=";return s}function jo(n){let t={};for(let e=0;e<n.length;++e)t[n[e]]=e;return t}function rt({name:n,prefix:t,bitsPerChar:e,alphabet:r}){let i=jo(r);return Ce({prefix:t,name:n,encode(s){return vo(s,r,e)},decode(s){return Io(s,i,e,n)}})}var Mo=Vt({prefix:"9",name:"base10",alphabet:"0123456789"});var Ln={};Ct(Ln,{base16:()=>To,base16upper:()=>$o});var To=rt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),$o=rt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Un={};Ct(Un,{base2:()=>No});var No=rt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var zn={};Ct(zn,{base256emoji:()=>Wo});var ni=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}"),Lo=ni.reduce((n,t,e)=>(n[e]=t,n),[]),Uo=ni.reduce((n,t,e)=>{let r=t.codePointAt(0);if(r==null)throw new Error(`Invalid character: ${t}`);return n[r]=e,n},[]);function zo(n){return n.reduce((t,e)=>(t+=Lo[e],t),"")}function Ro(n){let t=[];for(let e of n){let r=e.codePointAt(0);if(r==null)throw new Error(`Invalid character: ${e}`);let i=Uo[r];if(i==null)throw new Error(`Non-base256emoji character: ${e}`);t.push(i)}return new Uint8Array(t)}var Wo=Ce({prefix:"\u{1F680}",name:"base256emoji",encode:zo,decode:Ro});var Rn={};Ct(Rn,{base32:()=>Ht,base32hex:()=>Go,base32hexpad:()=>Ko,base32hexpadupper:()=>Jo,base32hexupper:()=>Yo,base32pad:()=>Ho,base32padupper:()=>qo,base32upper:()=>Vo,base32z:()=>Qo});var Ht=rt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Vo=rt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ho=rt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),qo=rt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Go=rt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Yo=rt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Ko=rt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Jo=rt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Qo=rt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Wn={};Ct(Wn,{base36:()=>je,base36upper:()=>Zo});var je=Vt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Zo=Vt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Vn={};Ct(Vn,{base58btc:()=>Mt,base58flickr:()=>Xo});var Mt=Vt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Xo=Vt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var qn={};Ct(qn,{base64:()=>ko,base64pad:()=>tu,base64url:()=>Hn,base64urlpad:()=>eu});var ko=rt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),tu=rt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Hn=rt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),eu=rt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Gn={};Ct(Gn,{base8:()=>nu});var nu=rt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Yn={};Ct(Yn,{identity:()=>ru});var ru=Ce({prefix:"\0",name:"identity",encode:n=>Xr(n),decode:n=>Zr(n)});var nl=new TextEncoder,rl=new TextDecoder;var Jn={};Ct(Jn,{identity:()=>Ou});var ou=si,ri=128,uu=127,au=~uu,cu=Math.pow(2,31);function si(n,t,e){t=t||[],e=e||0;for(var r=e;n>=cu;)t[e++]=n&255|ri,n/=128;for(;n&au;)t[e++]=n&255|ri,n>>>=7;return t[e]=n|0,si.bytes=e-r+1,t}var lu=Kn,fu=128,ii=127;function Kn(n,r){var e=0,r=r||0,i=0,s=r,o,a=n.length;do{if(s>=a)throw Kn.bytes=0,new RangeError("Could not decode varint");o=n[s++],e+=i<28?(o&ii)<<i:(o&ii)*Math.pow(2,i),i+=7}while(o>=fu);return Kn.bytes=s-r,e}var Du=Math.pow(2,7),hu=Math.pow(2,14),du=Math.pow(2,21),pu=Math.pow(2,28),mu=Math.pow(2,35),gu=Math.pow(2,42),Fu=Math.pow(2,49),Cu=Math.pow(2,56),Eu=Math.pow(2,63),bu=function(n){return n<Du?1:n<hu?2:n<du?3:n<pu?4:n<mu?5:n<gu?6:n<Fu?7:n<Cu?8:n<Eu?9:10},xu={encode:ou,decode:lu,encodingLength:bu},wu=xu,Me=wu;function Te(n,t=0){return[Me.decode(n,t),Me.decode.bytes]}function Ee(n,t,e=0){return Me.encode(n,t,e),t}function be(n){return Me.encodingLength(n)}function we(n,t){let e=t.byteLength,r=be(n),i=r+be(e),s=new Uint8Array(i+e);return Ee(n,s,0),Ee(e,s,r),s.set(t,i),new xe(n,e,t,s)}function oi(n){let t=At(n),[e,r]=Te(t),[i,s]=Te(t.subarray(r)),o=t.subarray(r+s);if(o.byteLength!==i)throw new Error("Incorrect length");return new xe(e,i,o,t)}function ui(n,t){if(n===t)return!0;{let e=t;return n.code===e.code&&n.size===e.size&&e.bytes instanceof Uint8Array&&Qr(n.bytes,e.bytes)}}var xe=class{code;size;digest;bytes;constructor(t,e,r,i){this.code=t,this.size=e,this.digest=r,this.bytes=i}};var ai=0,yu="identity",ci=At;function Au(n,t){if(t?.truncate!=null&&t.truncate!==n.byteLength){if(t.truncate<0||t.truncate>n.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${n.byteLength}`);n=n.subarray(0,t.truncate)}return we(ai,ci(n))}var Ou={code:ai,name:yu,encode:ci,digest:Au};var kn={};Ct(kn,{sha256:()=>_u,sha512:()=>Su});var Xn=me(J("crypto"),1);var Bu=20;function Zn({name:n,code:t,encode:e,minDigestLength:r,maxDigestLength:i}){return new Qn(n,t,e,r,i)}var Qn=class{name;code;encode;minDigestLength;maxDigestLength;constructor(t,e,r,i,s){this.name=t,this.code=e,this.encode=r,this.minDigestLength=i??Bu,this.maxDigestLength=s}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 r=this.encode(t);return r instanceof Uint8Array?li(r,this.code,e?.truncate):r.then(i=>li(i,this.code,e?.truncate))}else throw Error("Unknown type, must be binary type")}};function li(n,t,e){if(e!=null&&e!==n.byteLength){if(e>n.byteLength)throw new Error(`Invalid truncate option, must be less than or equal to ${n.byteLength}`);n=n.subarray(0,e)}return we(t,n)}var _u=Zn({name:"sha2-256",code:18,encode:n=>At(Xn.default.createHash("sha256").update(n).digest())}),Su=Zn({name:"sha2-512",code:19,encode:n=>At(Xn.default.createHash("sha512").update(n).digest())});function Di(n,t){let{bytes:e,version:r}=n;return r===0?Iu(e,tr(n),t??Mt.encoder):vu(e,tr(n),t??Ht.encoder)}var hi=new WeakMap;function tr(n){let t=hi.get(n);if(t==null){let e=new Map;return hi.set(n,e),e}return t}var ye=class n{code;version;multihash;bytes;"/";constructor(t,e,r,i){this.code=e,this.version=t,this.multihash=r,this.bytes=i,this["/"]=i}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!==Ne)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==ju)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return n.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,r=we(t,e);return n.createV1(this.code,r)}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 n.equals(this,t)}static equals(t,e){let r=e;return r!=null&&t.code===r.code&&t.version===r.version&&ui(t.multihash,r.multihash)}toString(t){return Di(this,t)}toJSON(){return{"/":Di(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 n)return e;if(e["/"]!=null&&e["/"]===e.bytes||e.asCID===e){let{version:r,code:i,multihash:s,bytes:o}=e;return new n(r,i,s,o??di(r,i,s.bytes))}else if(e[Mu]===!0){let{version:r,multihash:i,code:s}=e,o=oi(i);return n.create(r,s,o)}else return null}static create(t,e,r){if(typeof e!="number")throw new Error("String codecs are no longer supported");if(!(r.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(t){case 0:{if(e!==Ne)throw new Error(`Version 0 CID must use dag-pb (code: ${Ne}) block encoding`);return new n(t,e,r,r.bytes)}case 1:{let i=di(t,e,r.bytes);return new n(t,e,r,i)}default:throw new Error("Invalid version")}}static createV0(t){return n.create(0,Ne,t)}static createV1(t,e){return n.create(1,t,e)}static decode(t){let[e,r]=n.decodeFirst(t);if(r.length!==0)throw new Error("Incorrect length");return e}static decodeFirst(t){let e=n.inspectBytes(t),r=e.size-e.multihashSize,i=At(t.subarray(r,r+e.multihashSize));if(i.byteLength!==e.multihashSize)throw new Error("Incorrect length");let s=i.subarray(e.multihashSize-e.digestSize),o=new xe(e.multihashCode,e.digestSize,s,i);return[e.version===0?n.createV0(o):n.createV1(e.codec,o),t.subarray(e.size)]}static inspectBytes(t){let e=0,r=()=>{let[l,m]=Te(t.subarray(e));return e+=m,l},i=r(),s=Ne;if(i===18?(i=0,e=0):s=r(),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let o=e,a=r(),f=r(),g=e+f,p=g-o;return{version:i,codec:s,multihashCode:a,digestSize:f,multihashSize:p,size:g}}static parse(t,e){let[r,i]=Pu(t,e),s=n.decode(i);if(s.version===0&&t[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return tr(s).set(r,t),s}};function Pu(n,t){switch(n[0]){case"Q":{let e=t??Mt;return[Mt.prefix,e.decode(`${Mt.prefix}${n}`)]}case Mt.prefix:{let e=t??Mt;return[Mt.prefix,e.decode(n)]}case Ht.prefix:{let e=t??Ht;return[Ht.prefix,e.decode(n)]}case je.prefix:{let e=t??je;return[je.prefix,e.decode(n)]}default:{if(t==null)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[n[0],t.decode(n)]}}}function Iu(n,t,e){let{prefix:r}=e;if(r!==Mt.prefix)throw Error(`Cannot string encode V0 in ${e.name} encoding`);let i=t.get(r);if(i==null){let s=e.encode(n).slice(1);return t.set(r,s),s}else return i}function vu(n,t,e){let{prefix:r}=e,i=t.get(r);if(i==null){let s=e.encode(n);return t.set(r,s),s}else return i}var Ne=112,ju=18;function di(n,t,e){let r=be(n),i=r+be(t),s=new Uint8Array(i+e.byteLength);return Ee(n,s,0),Ee(t,s,r),s.set(e,i),s}var Mu=Symbol.for("@ipld/js-cid/CID");var Le={...Yn,...Un,...Gn,...Nn,...Ln,...Rn,...Wn,...Vn,...qn,...zn},Ol={...kn,...Jn};function mi(n,t,e,r){return{name:n,prefix:t,encoder:{name:n,prefix:t,encode:e},decoder:{decode:r}}}var pi=mi("utf8","u",n=>"u"+new TextDecoder("utf8").decode(n),n=>new TextEncoder().encode(n.substring(1))),er=mi("ascii","a",n=>{let t="a";for(let e=0;e<n.length;e++)t+=String.fromCharCode(n[e]);return t},n=>{n=n.substring(1);let t=On(n.length);for(let e=0;e<n.length;e++)t[e]=n.charCodeAt(e);return t}),Tu={utf8:pi,"utf-8":pi,hex:Le.base16,latin1:er,ascii:er,binary:er,...Le},Ke=Tu;function Ue(n,t="utf8"){let e=Ke[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return t==="utf8"||t==="utf-8"?ge(gi.Buffer.from(n,"utf-8")):e.decoder.decode(`${e.prefix}${n}`)}var Fi=J("node:buffer");function kt(n,t="utf8"){let e=Ke[t];if(e==null)throw new Error(`Unsupported encoding "${t}"`);return t==="utf8"||t==="utf-8"?Fi.Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf8"):e.encoder.encode(n).substring(1)}var ht=class extends Error{static name="InvalidMultiaddrError";name="InvalidMultiaddrError"},Ut=class extends Error{static name="ValidationError";name="ValidationError"},Je=class extends Error{static name="InvalidParametersError";name="InvalidParametersError"},Qe=class extends Error{static name="UnknownProtocolError";name="UnknownProtocolError"};var zt=J("node:net");function rr(n){return t=>kt(t,n)}function ir(n){return t=>Ue(t,n)}function Ae(n){return new DataView(n.buffer).getUint16(n.byteOffset).toString()}function te(n){let t=new ArrayBuffer(2);return new DataView(t).setUint16(0,typeof n=="string"?parseInt(n):n),new Uint8Array(t)}function Ci(n){let t=n.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=Ue(t[0],"base32"),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");let i=te(r);return ve([e,i],e.length+i.length)}function Ei(n){let t=n.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=Ht.decode(`b${t[0]}`),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");let i=te(r);return ve([e,i],e.length+i.length)}function sr(n){let t=n.subarray(0,n.length-2),e=n.subarray(n.length-2),r=kt(t,"base32"),i=Ae(e);return`${r}:${i}`}var or=function(n){n=n.toString().trim();let t=new Uint8Array(4);return n.split(/\./g).forEach((e,r)=>{let i=parseInt(e,10);if(isNaN(i)||i<0||i>255)throw new ht("Invalid byte value in IP address");t[r]=i}),t},bi=function(n){let t=0;n=n.toString().trim();let e=n.split(":",8),r;for(r=0;r<e.length;r++){let s=(0,zt.isIPv4)(e[r]),o;s&&(o=or(e[r]),e[r]=kt(o.subarray(0,2),"base16")),o!=null&&++r<8&&e.splice(r,0,kt(o.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(r=0;r<e.length&&e[r]!=="";r++);let s=[r,1];for(r=9-e.length;r>0;r--)s.push("0");e.splice.apply(e,s)}let i=new Uint8Array(t+16);for(r=0;r<e.length;r++){e[r]===""&&(e[r]="0");let s=parseInt(e[r],16);if(isNaN(s)||s<0||s>65535)throw new ht("Invalid byte value in IP address");i[t++]=s>>8&255,i[t++]=s&255}return i},xi=function(n){if(n.byteLength!==4)throw new ht("IPv4 address was incorrect length");let t=[];for(let e=0;e<n.byteLength;e++)t.push(n[e]);return t.join(".")},wi=function(n){if(n.byteLength!==16)throw new ht("IPv6 address was incorrect length");let t=[];for(let r=0;r<n.byteLength;r+=2){let i=n[r],s=n[r+1],o=`${i.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`;t.push(o)}let e=t.join(":");try{let r=new URL(`http://[${e}]`);return r.hostname.substring(1,r.hostname.length-1)}catch{throw new ht(`Invalid IPv6 address "${e}"`)}};function yi(n){try{let t=new URL(`http://[${n}]`);return t.hostname.substring(1,t.hostname.length-1)}catch{throw new ht(`Invalid IPv6 address "${n}"`)}}var nr=Object.values(Le).map(n=>n.decoder),$u=(function(){let n=nr[0].or(nr[1]);return nr.slice(2).forEach(t=>n=n.or(t)),n})();function Ai(n){return $u.decode(n)}function Oi(n){return t=>n.encoder.encode(t)}function Nu(n){if(parseInt(n).toString()!==n)throw new Ut("Value must be an integer")}function Lu(n){if(n<0)throw new Ut("Value must be a positive integer, or zero")}function Uu(n){return t=>{if(t>n)throw new Ut(`Value must be smaller than or equal to ${n}`)}}function zu(...n){return t=>{for(let e of n)e(t)}}var ze=zu(Nu,Lu,Uu(65535));var ft=-1,ur=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 Qe(`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(r=>{this.protocolsByName.delete(r)}))}},Rt=new ur,Ba=[{code:4,name:"ip4",size:32,valueToBytes:or,bytesToValue:xi,validate:n=>{if(!(0,zt.isIPv4)(n))throw new Ut(`Invalid IPv4 address "${n}"`)}},{code:6,name:"tcp",size:16,valueToBytes:te,bytesToValue:Ae,validate:ze},{code:273,name:"udp",size:16,valueToBytes:te,bytesToValue:Ae,validate:ze},{code:33,name:"dccp",size:16,valueToBytes:te,bytesToValue:Ae,validate:ze},{code:41,name:"ip6",size:128,valueToBytes:bi,bytesToValue:wi,stringToValue:yi,validate:n=>{if(!(0,zt.isIPv6)(n))throw new Ut(`Invalid IPv6 address "${n}"`)}},{code:42,name:"ip6zone",size:ft},{code:43,name:"ipcidr",size:8,bytesToValue:rr("base10"),valueToBytes:ir("base10")},{code:53,name:"dns",size:ft},{code:54,name:"dns4",size:ft},{code:55,name:"dns6",size:ft},{code:56,name:"dnsaddr",size:ft},{code:132,name:"sctp",size:16,valueToBytes:te,bytesToValue:Ae,validate:ze},{code:301,name:"udt"},{code:302,name:"utp"},{code:400,name:"unix",size:ft,stringToValue:n=>decodeURIComponent(n),valueToString:n=>encodeURIComponent(n)},{code:421,name:"p2p",aliases:["ipfs"],size:ft,bytesToValue:rr("base58btc"),valueToBytes:n=>n.startsWith("Q")||n.startsWith("1")?ir("base58btc")(n):ye.parse(n).multihash.bytes},{code:444,name:"onion",size:96,bytesToValue:sr,valueToBytes:Ci},{code:445,name:"onion3",size:296,bytesToValue:sr,valueToBytes:Ei},{code:446,name:"garlic64",size:ft},{code:447,name:"garlic32",size:ft},{code:448,name:"tls"},{code:449,name:"sni",size:ft},{code:454,name:"noise"},{code:460,name:"quic"},{code:461,name:"quic-v1"},{code:465,name:"webtransport"},{code:466,name:"certhash",size:ft,bytesToValue:Oi(Hn),valueToBytes:Ai},{code:480,name:"http"},{code:481,name:"http-path",size:ft,stringToValue:n=>`/${decodeURIComponent(n)}`,valueToString:n=>encodeURIComponent(n.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:ft}];Ba.forEach(n=>{Rt.addProtocol(n)});function Bi(n){let t=[],e=0;for(;e<n.length;){let r=vn(n,e),i=Rt.getProtocol(r),s=Fe(r),o=_a(i,n,e+s),a=0;o>0&&i.size===ft&&(a=Fe(o));let f=s+a+o,g={code:r,name:i.name,bytes:n.subarray(e,e+f)};if(o>0){let p=e+s+a,l=n.subarray(p,p+o);g.value=i.bytesToValue?.(l)??kt(l)}t.push(g),e+=f}return t}function _i(n){let t=0,e=[];for(let r of n){if(r.bytes==null){let i=Rt.getProtocol(r.code),s=Fe(r.code),o,a=0,f=0;r.value!=null&&(o=i.valueToBytes?.(r.value)??Ue(r.value),a=o.byteLength,i.size===ft&&(f=Fe(a)));let g=new Uint8Array(s+f+a),p=0;In(r.code,g,p),p+=s,o!=null&&(i.size===ft&&(In(a,g,p),p+=f),g.set(o,p)),r.bytes=g}e.push(r.bytes),t+=r.bytes.byteLength}return ve(e,t)}function Si(n){if(n.charAt(0)!=="/")throw new ht('String multiaddr must start with "/"');let t=[],e="protocol",r="",i="";for(let s=1;s<n.length;s++){let o=n.charAt(s);o!=="/"&&(e==="protocol"?i+=n.charAt(s):r+=n.charAt(s));let a=s===n.length-1;if(o==="/"||a){let f=Rt.getProtocol(i);if(e==="protocol"){if(f.size==null||f.size===0){t.push({code:f.code,name:f.name}),r="",i="",e="protocol";continue}else if(a)throw new ht(`Component ${i} was missing value`);e="value"}else if(e==="value"){let g={code:f.code,name:f.name};if(f.size!=null&&f.size!==0){if(r==="")throw new ht(`Component ${i} was missing value`);g.value=f.stringToValue?.(r)??r}t.push(g),r="",i="",e="protocol"}}}if(i!==""&&r!=="")throw new ht("Incomplete multiaddr");return t}function Pi(n){return`/${n.flatMap(t=>{if(t.value==null)return t.name;let e=Rt.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 _a(n,t,e){return n.size==null||n.size===0?0:n.size>0?n.size/8:vn(t,e)}var Sa=Symbol.for("nodejs.util.inspect.custom"),ar=Symbol.for("@multiformats/multiaddr");function Pa(n){if(n==null&&(n="/"),Ii(n))return n.getComponents();if(n instanceof Uint8Array)return Bi(n);if(typeof n=="string")return n=n.replace(/\/(\/)+/,"/").replace(/(\/)+$/,""),n===""&&(n="/"),Si(n);if(Array.isArray(n))return n;throw new ht("Must be a string, Uint8Array, Component[], or another Multiaddr")}var Ze=class n{[ar]=!0;#t;#e;#n;constructor(t="/",e={}){this.#t=Pa(t),e.validate!==!1&&Ia(this)}get bytes(){return this.#n==null&&(this.#n=_i(this.#t)),this.#n}toString(){return this.#e==null&&(this.#e=Pi(this.#t)),this.#e}toJSON(){return this.toString()}getComponents(){return[...this.#t.map(t=>({...t}))]}encapsulate(t){let e=new n(t);return new n([...this.#t,...e.getComponents()],{validate:!1})}decapsulate(t){let e=t.toString(),r=this.toString(),i=r.lastIndexOf(e);if(i<0)throw new Je(`Address ${this.toString()} does not contain subaddress: ${e}`);return new n(r.slice(0,i),{validate:!1})}decapsulateCode(t){let e;for(let r=this.#t.length-1;r>-1;r--)if(this.#t[r].code===t){e=r;break}return new n(this.#t.slice(0,e),{validate:!1})}equals(t){return Yr(this.bytes,t.bytes)}[Sa](){return`Multiaddr(${this.toString()})`}};function Ia(n){n.getComponents().forEach(t=>{let e=Rt.getProtocol(t.code);t.value!=null&&e.validate?.(t.value)})}function Ii(n){return!!n?.[ar]}function vi(n){return new Ze(n)}var ji=J("module"),lr=me(J("path"),1),cr=me(J("process"),1),Mi=J("url");function va(n){let t=lr.default.extname(n);return t?n.slice(0,-t.length):n}function fr(n){if(!n)return!1;if("main"in n)return!!n.main;if(!cr.default.argv[1])return!1;let e=(0,ji.createRequire)(n.url).resolve(cr.default.argv[1]),r=(0,Mi.fileURLToPath)(n.url);return lr.default.extname(e)?r===e:va(r)===e}var cn=J("assert");var ja={right:La,center:Ua},Ma=0,Xe=1,Ta=2,ke=3,Dr=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(r=>typeof r=="string"?this.colFromString(r):r);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(
|
|
5
|
-
`)}rowToString(t
|
|
6
|
-
`):i
|
|
7
|
-
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[Ma]||0).fill("")),i.push(...new Array(s.padding[Ta]||0).fill(""))),i.forEach((a,f)=>{e[f]||e.push([]);let g=e[f];for(let p=0;p<o;p++)g[p]===void 0&&g.push("");g.push(a)})}),e}negatePadding(t){let e=t.width||0;return t.padding&&(e-=(t.padding[ke]||0)+(t.padding[Xe]||0)),t.border&&(e-=4),e}columnWidths(t){if(!this.wrap)return t.map(o=>o.width||Et.stringWidth(o.text));let e=t.length,r=this.width,i=t.map(o=>{if(o.width)return e--,r-=o.width,o.width}),s=e?Math.floor(r/e):0;return i.map((o,a)=>o===void 0?Math.max(s,$a(t[a])):o)}};function Ti(n,t,e){return n.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?e:" ":""}function $a(n){let t=n.padding||[],e=1+(t[ke]||0)+(t[Xe]||0);return n.border?e+4:e}function Na(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function La(n,t){n=n.trim();let e=Et.stringWidth(n);return e<t?" ".repeat(t-e)+n:n}function Ua(n,t){n=n.trim();let e=Et.stringWidth(n);return e>=t?n:" ".repeat(t-e>>1)+n}var Et;function $i(n,t){return Et=t,new Dr({width:n?.width||Na(),wrap:n?.wrap})}function hr({onlyFirst:n=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,n?void 0:"g")}var za=hr();function ee(n){if(typeof n!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof n}\``);return!n.includes("\x1B")&&!n.includes("\x9B")?n:n.replace(za,"")}var Ni=[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],Li=12288,Ui=65510,zi=[12288,12288,65281,65376,65504,65510];var Ri=4352,Wi=262141,dr=[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 tn=(n,t)=>{let e=0,r=Math.floor(n.length/2)-1;for(;e<=r;){let i=Math.floor((e+r)/2),s=i*2;if(t<n[s])r=i-1;else if(t>n[s+1])e=i+1;else return!0}return!1};var Vi=19968,[Va,Ha]=qa(dr);function qa(n){let t=n[0],e=n[1];for(let r=0;r<n.length;r+=2){let i=n[r],s=n[r+1];if(Vi>=i&&Vi<=s)return[i,s];s-i>e-t&&(t=i,e=s)}return[t,e]}var Hi=n=>n<161||n>1114109?!1:tn(Ni,n),qi=n=>n<Li||n>Ui?!1:tn(zi,n);var Gi=n=>n>=Va&&n<=Ha?!0:n<Ri||n>Wi?!1:tn(dr,n);function Ga(n){if(!Number.isSafeInteger(n))throw new TypeError(`Expected a code point, got \`${typeof n}\`.`)}function Yi(n,{ambiguousAsWide:t=!1}={}){return Ga(n),qi(n)||Gi(n)||t&&Hi(n)?2:1}var Qi=me(Ji(),1),Ya=new Intl.Segmenter,Ka=/^\p{Default_Ignorable_Code_Point}$/u;function vt(n,t={}){if(typeof n!="string"||n.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(n=ee(n)),n.length===0)return 0;let i=0,s={ambiguousAsWide:!e};for(let{segment:o}of Ya.segment(n)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!Ka.test(o)){if((0,Qi.default)().test(o)){i+=2;continue}i+=Yi(a,s)}}return i}var Zi=(n=0)=>t=>`\x1B[${t+n}m`,Xi=(n=0)=>t=>`\x1B[${38+n};5;${t}m`,ki=(n=0)=>(t,e,r)=>`\x1B[${38+n};2;${t};${e};${r}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]}},Vf=Object.keys(X.modifier),Ja=Object.keys(X.color),Qa=Object.keys(X.bgColor),Hf=[...Ja,...Qa];function Za(){let n=new Map;for(let[t,e]of Object.entries(X)){for(let[r,i]of Object.entries(e))X[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},e[r]=X[r],n.set(i[0],i[1]);Object.defineProperty(X,t,{value:e,enumerable:!1})}return Object.defineProperty(X,"codes",{value:n,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=Zi(),X.color.ansi256=Xi(),X.color.ansi16m=ki(),X.bgColor.ansi=Zi(10),X.bgColor.ansi256=Xi(10),X.bgColor.ansi16m=ki(10),Object.defineProperties(X,{rgbToAnsi256:{value(t,e,r){return t===e&&e===r?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(r/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[r]=e;r.length===3&&(r=[...r].map(s=>s+s).join(""));let i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,i&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,r,i;if(t>=232)e=((t-232)*10+8)/255,r=e,i=e;else{t-=16;let a=t%36;e=Math.floor(t/36)/5,r=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(e,r,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(e));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,e,r)=>X.ansi256ToAnsi(X.rgbToAnsi256(t,e,r)),enumerable:!1},hexToAnsi:{value:t=>X.ansi256ToAnsi(X.hexToAnsi256(t)),enumerable:!1}}),X}var Xa=Za(),ts=Xa;var nn=new Set(["\x1B","\x9B"]),ka=39,mr="\x07",rs="[",tc="]",is="m",en=`${tc}8;;`,es=n=>`${nn.values().next().value}${rs}${n}${is}`,ns=n=>`${nn.values().next().value}${en}${n}${mr}`,ec=n=>n.split(" ").map(t=>vt(t)),pr=(n,t,e)=>{let r=[...t],i=!1,s=!1,o=vt(ee(n.at(-1)));for(let[a,f]of r.entries()){let g=vt(f);if(o+g<=e?n[n.length-1]+=f:(n.push(f),o=0),nn.has(f)&&(i=!0,s=r.slice(a+1,a+1+en.length).join("")===en),i){s?f===mr&&(i=!1,s=!1):f===is&&(i=!1);continue}o+=g,o===e&&a<r.length-1&&(n.push(""),o=0)}!o&&n.at(-1).length>0&&n.length>1&&(n[n.length-2]+=n.pop())},nc=n=>{let t=n.split(" "),e=t.length;for(;e>0&&!(vt(t[e-1])>0);)e--;return e===t.length?n:t.slice(0,e).join(" ")+t.slice(e).join("")},rc=(n,t,e={})=>{if(e.trim!==!1&&n.trim()==="")return"";let r="",i,s,o=ec(n),a=[""];for(let[l,m]of n.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let E=vt(a.at(-1));if(l!==0&&(E>=t&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),E=0),(E>0||e.trim===!1)&&(a[a.length-1]+=" ",E++)),e.hard&&o[l]>t){let C=t-E,b=1+Math.floor((o[l]-C-1)/t);Math.floor((o[l]-1)/t)<b&&a.push(""),pr(a,m,t);continue}if(E+o[l]>t&&E>0&&o[l]>0){if(e.wordWrap===!1&&E<t){pr(a,m,t);continue}a.push("")}if(E+o[l]>t&&e.wordWrap===!1){pr(a,m,t);continue}a[a.length-1]+=m}e.trim!==!1&&(a=a.map(l=>nc(l)));let f=a.join(`
|
|
8
|
-
`),
|
|
9
|
-
`?(
|
|
10
|
-
`&&(
|
|
3
|
+
"use strict";var Libp2PDaemon=(()=>{var gs=Object.create;var Yt=Object.defineProperty;var bs=Object.getOwnPropertyDescriptor;var Bs=Object.getOwnPropertyNames;var As=Object.getPrototypeOf,xs=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 Kt=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),Ee=(u,e)=>{for(var t in e)Yt(u,t,{get:e[t],enumerable:!0})},Kn=(u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Bs(e))!xs.call(u,r)&&r!==t&&Yt(u,r,{get:()=>e[r],enumerable:!(n=bs(e,r))||n.enumerable});return u};var ke=(u,e,t)=>(t=u!=null?gs(As(u)):{},Kn(e||!u||!u.__esModule?Yt(t,"default",{value:u,enumerable:!0}):t,u)),ws=u=>Kn(Yt({},"__esModule",{value:!0}),u);var Zr=Kt((Zl,Qr)=>{Qr.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 Ei=Kt((Of,Ci)=>{Ci.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 _i=Kt((Nf,yi)=>{"use strict";yi.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 ps=Kt((Yh,ds)=>{var qn=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})))}};ds.exports=qn});var La={};Ee(La,{createLibp2pServer:()=>Es,default:()=>Yn});function Jn(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 ys=Math.pow(2,7),_s=Math.pow(2,14),Os=Math.pow(2,21),_u=Math.pow(2,28),Ou=Math.pow(2,35),Su=Math.pow(2,42),Pu=Math.pow(2,49),ee=128,de=127;function mt(u){if(u<ys)return 1;if(u<_s)return 2;if(u<Os)return 3;if(u<_u)return 4;if(u<Ou)return 5;if(u<Su)return 6;if(u<Pu)return 7;if(Number.MAX_SAFE_INTEGER!=null&&u>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function Iu(u,e,t=0){switch(mt(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 Ss(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)*_u,t<ee)||(t=u[e+5],n+=(t&de)*Ou,t<ee)||(t=u[e+6],n+=(t&de)*Su,t<ee)||(t=u[e+7],n+=(t&de)*Pu,t<ee))return n;throw new RangeError("Could not decode varint")}function Ps(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)*_u,t<ee)||(t=u.get(e+5),n+=(t&de)*Ou,t<ee)||(t=u.get(e+6),n+=(t&de)*Su,t<ee)||(t=u.get(e+7),n+=(t&de)*Pu,t<ee))return n;throw new RangeError("Could not decode varint")}function vu(u,e=0){return u instanceof Uint8Array?Ss(u,e):Ps(u,e)}var Qn=J("node:buffer");function Ct(u){return new Uint8Array(u.buffer,u.byteOffset,u.byteLength)}function vt(u,e){return Ct(Qn.Buffer.concat(u,e))}var gr=J("node:buffer");var Nu={};Ee(Nu,{base10:()=>Ls});var Za=new Uint8Array(0);function Zn(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 u;if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u))return new Uint8Array(u.buffer,u.byteOffset,u.byteLength);throw new Error("Unknown type, must be binary type")}function Xn(u){return new TextEncoder().encode(u)}function kn(u){return new TextDecoder().decode(u)}function vs(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 js=vs,Ms=js,tr=Ms;var ju=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")}},Mu=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 ur(this,e)}},Tu=class{decoders;constructor(e){this.decoders=e}or(e){return ur(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 ur(u,e){return new Tu({...u.decoders??{[u.prefix]:u},...e.decoders??{[e.prefix]:e}})}var $u=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 ju(e,t,n),this.decoder=new Mu(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};function Et({name:u,prefix:e,encode:t,decode:n}){return new $u(u,e,t,n)}function Ve({name:u,prefix:e,alphabet:t}){let{encode:n,decode:r}=tr(t,u);return Et({prefix:e,name:u,encode:n,decode:i=>we(r(i))})}function Ts(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 $s(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 Ns(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=Ns(n);return Et({prefix:e,name:u,encode(i){return $s(i,n,t)},decode(i){return Ts(i,r,t,u)}})}var Ls=Ve({prefix:"9",name:"base10",alphabet:"0123456789"});var Lu={};Ee(Lu,{base16:()=>Us,base16upper:()=>zs});var Us=ne({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),zs=ne({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Uu={};Ee(Uu,{base2:()=>Rs});var Rs=ne({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var zu={};Ee(zu,{base256emoji:()=>Gs});var nr=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}"),Ws=nr.reduce((u,e,t)=>(u[t]=e,u),[]),Vs=nr.reduce((u,e,t)=>{let n=e.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${e}`);return u[n]=t,u},[]);function Hs(u){return u.reduce((e,t)=>(e+=Ws[t],e),"")}function qs(u){let e=[];for(let t of u){let n=t.codePointAt(0);if(n==null)throw new Error(`Invalid character: ${t}`);let r=Vs[n];if(r==null)throw new Error(`Non-base256emoji character: ${t}`);e.push(r)}return new Uint8Array(e)}var Gs=Et({prefix:"\u{1F680}",name:"base256emoji",encode:Hs,decode:qs});var Ru={};Ee(Ru,{base32:()=>He,base32hex:()=>Qs,base32hexpad:()=>Xs,base32hexpadupper:()=>ks,base32hexupper:()=>Zs,base32pad:()=>Ks,base32padupper:()=>Js,base32upper:()=>Ys,base32z:()=>eo});var He=ne({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ys=ne({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ks=ne({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Js=ne({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Qs=ne({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Zs=ne({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Xs=ne({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ks=ne({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),eo=ne({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Wu={};Ee(Wu,{base36:()=>jt,base36upper:()=>to});var jt=Ve({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),to=Ve({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Vu={};Ee(Vu,{base58btc:()=>je,base58flickr:()=>uo});var je=Ve({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),uo=Ve({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var qu={};Ee(qu,{base64:()=>no,base64pad:()=>ro,base64url:()=>Hu,base64urlpad:()=>io});var no=ne({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ro=ne({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Hu=ne({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),io=ne({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Gu={};Ee(Gu,{base8:()=>so});var so=ne({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Yu={};Ee(Yu,{identity:()=>oo});var oo=Et({prefix:"\0",name:"identity",encode:u=>kn(u),decode:u=>Xn(u)});var hc=new TextEncoder,Fc=new TextDecoder;var Ju={};Ee(Ju,{identity:()=>Io});var co=sr,rr=128,lo=127,fo=~lo,ho=Math.pow(2,31);function sr(u,e,t){e=e||[],t=t||0;for(var n=t;u>=ho;)e[t++]=u&255|rr,u/=128;for(;u&fo;)e[t++]=u&255|rr,u>>>=7;return e[t]=u|0,sr.bytes=t-n+1,e}var Fo=Ku,po=128,ir=127;function Ku(u,n){var t=0,n=n||0,r=0,i=n,s,D=u.length;do{if(i>=D)throw Ku.bytes=0,new RangeError("Could not decode varint");s=u[i++],t+=r<28?(s&ir)<<r:(s&ir)*Math.pow(2,r),r+=7}while(s>=po);return Ku.bytes=i-n,t}var mo=Math.pow(2,7),Co=Math.pow(2,14),Eo=Math.pow(2,21),go=Math.pow(2,28),bo=Math.pow(2,35),Bo=Math.pow(2,42),Ao=Math.pow(2,49),xo=Math.pow(2,56),wo=Math.pow(2,63),yo=function(u){return u<mo?1:u<Co?2:u<Eo?3:u<go?4:u<bo?5:u<Bo?6:u<Ao?7:u<xo?8:u<wo?9:10},_o={encode:co,decode:Fo,encodingLength:yo},Oo=_o,Mt=Oo;function Tt(u,e=0){return[Mt.decode(u,e),Mt.decode.bytes]}function gt(u,e,t=0){return Mt.encode(u,e,t),e}function bt(u){return Mt.encodingLength(u)}function At(u,e){let t=e.byteLength,n=bt(u),r=n+bt(t),i=new Uint8Array(r+t);return gt(u,i,0),gt(t,i,n),i.set(e,r),new Bt(u,t,e,i)}function or(u){let e=we(u),[t,n]=Tt(e),[r,i]=Tt(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==r)throw new Error("Incorrect length");return new Bt(t,r,s,e)}function Dr(u,e){if(u===e)return!0;{let t=e;return u.code===t.code&&u.size===t.size&&t.bytes instanceof Uint8Array&&Zn(u.bytes,t.bytes)}}var Bt=class{code;size;digest;bytes;constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}};var ar=0,So="identity",cr=we;function Po(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 At(ar,cr(u))}var Io={code:ar,name:So,encode:cr,digest:Po};var ku={};Ee(ku,{sha256:()=>jo,sha512:()=>Mo});var Xu=ke(J("crypto"),1);var vo=20;function Zu({name:u,code:e,encode:t,minDigestLength:n,maxDigestLength:r}){return new Qu(u,e,t,n,r)}var Qu=class{name;code;encode;minDigestLength;maxDigestLength;constructor(e,t,n,r,i){this.name=e,this.code=t,this.encode=n,this.minDigestLength=r??vo,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?lr(n,this.code,t?.truncate):n.then(r=>lr(r,this.code,t?.truncate))}else throw Error("Unknown type, must be binary type")}};function lr(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 At(e,u)}var jo=Zu({name:"sha2-256",code:18,encode:u=>we(Xu.default.createHash("sha256").update(u).digest())}),Mo=Zu({name:"sha2-512",code:19,encode:u=>we(Xu.default.createHash("sha512").update(u).digest())});function hr(u,e){let{bytes:t,version:n}=u;return n===0?$o(t,en(u),e??je.encoder):No(t,en(u),e??He.encoder)}var Fr=new WeakMap;function en(u){let e=Fr.get(u);if(e==null){let t=new Map;return Fr.set(u,t),t}return e}var xt=class u{code;version;multihash;bytes;"/";constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this["/"]=r}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!==Nt)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==Lo)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=At(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&&Dr(e.multihash,n.multihash)}toString(e){return hr(this,e)}toJSON(){return{"/":hr(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??dr(n,r,i.bytes))}else if(t[Uo]===!0){let{version:n,multihash:r,code:i}=t,s=or(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!==Nt)throw new Error(`Version 0 CID must use dag-pb (code: ${Nt}) block encoding`);return new u(e,t,n,n.bytes)}case 1:{let r=dr(e,t,n.bytes);return new u(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return u.create(0,Nt,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 Bt(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]=Tt(e.subarray(t));return t+=p,c},r=n(),i=Nt;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]=To(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 en(i).set(n,e),i}};function To(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 jt.prefix:{let t=e??jt;return[jt.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 $o(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 No(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 Nt=112,Lo=18;function dr(u,e,t){let n=bt(u),r=n+bt(e),i=new Uint8Array(r+t.byteLength);return gt(u,i,0),gt(e,i,n),i.set(t,r),i}var Uo=Symbol.for("@ipld/js-cid/CID");var Lt={...Yu,...Uu,...Gu,...Nu,...Lu,...Ru,...Wu,...Vu,...qu,...zu},Nc={...ku,...Ju};var pr=J("node:buffer");function mr(u=0){return Ct(pr.Buffer.allocUnsafe(u))}function Er(u,e,t,n){return{name:u,prefix:e,encoder:{name:u,prefix:e,encode:t},decoder:{decode:n}}}var Cr=Er("utf8","u",u=>"u"+new TextDecoder("utf8").decode(u),u=>new TextEncoder().encode(u.substring(1))),tn=Er("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=mr(u.length);for(let t=0;t<u.length;t++)e[t]=u.charCodeAt(t);return e}),zo={utf8:Cr,"utf-8":Cr,hex:Lt.base16,latin1:tn,ascii:tn,binary:tn,...Lt},Qt=zo;function Ut(u,e="utf8"){let t=Qt[e];if(t==null)throw new Error(`Unsupported encoding "${e}"`);return e==="utf8"||e==="utf-8"?Ct(gr.Buffer.from(u,"utf-8")):t.decoder.decode(`${t.prefix}${u}`)}var br=J("node:buffer");function et(u,e="utf8"){let t=Qt[e];if(t==null)throw new Error(`Unsupported encoding "${e}"`);return e==="utf8"||e==="utf-8"?br.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"},Zt=class extends Error{static name="InvalidParametersError";name="InvalidParametersError"},Xt=class extends Error{static name="UnknownProtocolError";name="UnknownProtocolError"};var Ue=J("node:net");function nn(u){return e=>et(e,u)}function rn(u){return e=>Ut(e,u)}function wt(u){return new DataView(u.buffer).getUint16(u.byteOffset).toString()}function tt(u){let e=new ArrayBuffer(2);return new DataView(e).setUint16(0,typeof u=="string"?parseInt(u):u),new Uint8Array(e)}function Br(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=Ut(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=tt(n);return vt([t,r],t.length+r.length)}function Ar(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=tt(n);return vt([t,r],t.length+r.length)}function sn(u){let e=u.subarray(0,u.length-2),t=u.subarray(u.length-2),n=et(e,"base32"),r=wt(t);return`${n}:${r}`}var on=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},xr=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=on(t[n]),t[n]=et(s.subarray(0,2),"base16")),s!=null&&++n<8&&t.splice(n,0,et(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},wr=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(".")},yr=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 _r(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 un=Object.values(Lt).map(u=>u.decoder),Ro=(function(){let u=un[0].or(un[1]);return un.slice(2).forEach(e=>u=u.or(e)),u})();function Or(u){return Ro.decode(u)}function Sr(u){return e=>u.encoder.encode(e)}function Wo(u){if(parseInt(u).toString()!==u)throw new Le("Value must be an integer")}function Vo(u){if(u<0)throw new Le("Value must be a positive integer, or zero")}function Ho(u){return e=>{if(e>u)throw new Le(`Value must be smaller than or equal to ${u}`)}}function qo(...u){return e=>{for(let t of u)t(e)}}var zt=qo(Wo,Vo,Ho(65535));var le=-1,Dn=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 Xt(`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 Dn,vD=[{code:4,name:"ip4",size:32,valueToBytes:on,bytesToValue:wr,validate:u=>{if(!(0,Ue.isIPv4)(u))throw new Le(`Invalid IPv4 address "${u}"`)}},{code:6,name:"tcp",size:16,valueToBytes:tt,bytesToValue:wt,validate:zt},{code:273,name:"udp",size:16,valueToBytes:tt,bytesToValue:wt,validate:zt},{code:33,name:"dccp",size:16,valueToBytes:tt,bytesToValue:wt,validate:zt},{code:41,name:"ip6",size:128,valueToBytes:xr,bytesToValue:yr,stringToValue:_r,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:nn("base10"),valueToBytes:rn("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:tt,bytesToValue:wt,validate:zt},{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:nn("base58btc"),valueToBytes:u=>u.startsWith("Q")||u.startsWith("1")?rn("base58btc")(u):xt.parse(u).multihash.bytes},{code:444,name:"onion",size:96,bytesToValue:sn,valueToBytes:Br},{code:445,name:"onion3",size:296,bytesToValue:sn,valueToBytes:Ar},{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:Sr(Hu),valueToBytes:Or},{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}];vD.forEach(u=>{ze.addProtocol(u)});function Pr(u){let e=[],t=0;for(;t<u.length;){let n=vu(u,t),r=ze.getProtocol(n),i=mt(n),s=jD(r,u,t+i),D=0;s>0&&r.size===le&&(D=mt(s));let l=i+D+s,m={code:n,name:r.name,bytes:u.subarray(t,t+l)};if(s>0){let d=t+i+D,c=u.subarray(d,d+s);m.value=r.bytesToValue?.(c)??et(c)}e.push(m),t+=l}return e}function Ir(u){let e=0,t=[];for(let n of u){if(n.bytes==null){let r=ze.getProtocol(n.code),i=mt(n.code),s,D=0,l=0;n.value!=null&&(s=r.valueToBytes?.(n.value)??Ut(n.value),D=s.byteLength,r.size===le&&(l=mt(D)));let m=new Uint8Array(i+l+D),d=0;Iu(n.code,m,d),d+=i,s!=null&&(r.size===le&&(Iu(D,m,d),d+=l),m.set(s,d)),n.bytes=m}t.push(n.bytes),e+=n.bytes.byteLength}return vt(t,e)}function vr(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 jr(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 jD(u,e,t){return u.size==null||u.size===0?0:u.size>0?u.size/8:vu(e,t)}var MD=Symbol.for("nodejs.util.inspect.custom"),an=Symbol.for("@multiformats/multiaddr");function TD(u){if(u==null&&(u="/"),Mr(u))return u.getComponents();if(u instanceof Uint8Array)return Pr(u);if(typeof u=="string")return u=u.replace(/\/(\/)+/,"/").replace(/(\/)+$/,""),u===""&&(u="/"),vr(u);if(Array.isArray(u))return u;throw new he("Must be a string, Uint8Array, Component[], or another Multiaddr")}var kt=class u{[an]=!0;#e;#t;#u;constructor(e="/",t={}){this.#e=TD(e),t.validate!==!1&&$D(this)}get bytes(){return this.#u==null&&(this.#u=Ir(this.#e)),this.#u}toString(){return this.#t==null&&(this.#t=jr(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 Zt(`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 Jn(this.bytes,e.bytes)}[MD](){return`Multiaddr(${this.toString()})`}};function $D(u){u.getComponents().forEach(e=>{let t=ze.getProtocol(e.code);e.value!=null&&t.validate?.(e.value)})}function Mr(u){return!!u?.[an]}function Tr(u){return new kt(u)}var $r=J("module"),ln=ke(J("path"),1),cn=ke(J("process"),1),Nr=J("url");function ND(u){let e=ln.default.extname(u);return e?u.slice(0,-e.length):u}function fn(u){if(!u)return!1;if("main"in u)return!!u.main;if(!cn.default.argv[1])return!1;let t=(0,$r.createRequire)(u.url).resolve(cn.default.argv[1]),n=(0,Nr.fileURLToPath)(u.url);return ln.default.extname(t)?n===t:ND(n)===t}var lu=J("assert");var LD={right:VD,center:HD},UD=0,eu=1,zD=2,tu=3,hn=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=LD[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[tu]&&(i+=" ".repeat(c[tu])),i+=Lr(e[D],d,"| "),i+=d,i+=Lr(e[D],d," |"),c[eu]&&(i+=" ".repeat(c[eu])),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(`
|
|
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[UD]||0).fill("")),r.push(...new Array(i.padding[zD]||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[tu]||0)+(e.padding[eu]||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,RD(e[D])):s)}};function Lr(u,e,t){return u.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function RD(u){let e=u.padding||[],t=1+(e[tu]||0)+(e[eu]||0);return u.border?t+4:t}function WD(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function VD(u,e){u=u.trim();let t=ge.stringWidth(u);return t<e?" ".repeat(e-t)+u:u}function HD(u,e){u=u.trim();let t=ge.stringWidth(u);return t>=e?u:" ".repeat(e-t>>1)+u}var ge;function Ur(u,e){return ge=e,new hn({width:u?.width||WD(),wrap:u?.wrap})}function Rt({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 qD=Rt();function ut(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(qD,"")}var zr=[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],Rr=12288,Wr=65510,Vr=[12288,12288,65281,65376,65504,65510];var Hr=4352,qr=262141,Fn=[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 uu=(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 Gr=19968,[KD,JD]=QD(Fn);function QD(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(Gr>=r&&Gr<=i)return[r,i];i-r>t-e&&(e=r,t=i)}return[e,t]}var Yr=u=>u<161||u>1114109?!1:uu(zr,u),Kr=u=>u<Rr||u>Wr?!1:uu(Vr,u);var Jr=u=>u>=KD&&u<=JD?!0:u<Hr||u>qr?!1:uu(Fn,u);function ZD(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function nu(u,{ambiguousAsWide:e=!1}={}){return ZD(u),Kr(u)||Jr(u)||e&&Yr(u)?2:1}var Xr=ke(Zr(),1),XD=new Intl.Segmenter,kD=/^\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=ut(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:s}of XD.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)&&!kD.test(s)){if((0,Xr.default)().test(s)){r+=2;continue}r+=nu(D,i)}}return r}var kr=(u=0)=>e=>`\x1B[${e+u}m`,ei=(u=0)=>e=>`\x1B[${38+u};5;${e}m`,ti=(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]}},tf=Object.keys(X.modifier),ea=Object.keys(X.color),ta=Object.keys(X.bgColor),uf=[...ea,...ta];function ua(){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=kr(),X.color.ansi256=ei(),X.color.ansi16m=ti(),X.bgColor.ansi=kr(10),X.bgColor.ansi256=ei(10),X.bgColor.ansi16m=ti(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 na=ua(),ui=na;var iu=new Set(["\x1B","\x9B"]),ra=39,pn="\x07",ii="[",ia="]",si="m",ru=`${ia}8;;`,ni=u=>`${iu.values().next().value}${ii}${u}${si}`,ri=u=>`${iu.values().next().value}${ru}${u}${pn}`,sa=u=>u.split(" ").map(e=>Re(e)),dn=(u,e,t)=>{let n=[...e],r=!1,i=!1,s=Re(ut(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),iu.has(l)&&(r=!0,i=n.slice(D+1,D+1+ru.length).join("")===ru),r){i?l===pn&&(r=!1,i=!1):l===si&&(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())},oa=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("")},Da=(u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let n="",r,i,s=sa(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(""),dn(D,p,e);continue}if(g+s[c]>e&&g>0&&s[c]>0){if(t.wordWrap===!1&&g<e){dn(D,p,e);continue}D.push("")}if(g+s[c]>e&&t.wordWrap===!1){dn(D,p,e);continue}D[D.length-1]+=p}t.trim!==!1&&(D=D.map(c=>oa(c)));let l=D.join(`
|
|
8
|
+
`),m=[...l],d=0;for(let[c,p]of m.entries()){if(n+=p,iu.has(p)){let{groups:E}=new RegExp(`(?:\\${ii}(?<code>\\d+)m|\\${ru}(?<uri>.*)${pn})`).exec(l.slice(d))||{groups:{}};if(E.code!==void 0){let b=Number.parseFloat(E.code);r=b===ra?void 0:b}else E.uri!==void 0&&(i=E.uri.length===0?void 0:E.uri)}let g=ui.codes.get(Number(r));m[c+1]===`
|
|
9
|
+
`?(i&&(n+=ri("")),r&&g&&(n+=ni(g))):p===`
|
|
10
|
+
`&&(r&&g&&(n+=ni(r)),i&&(n+=ri(i))),d+=p.length}return n};function mn(u,e,t){return String(u).normalize().replaceAll(`\r
|
|
11
11
|
`,`
|
|
12
12
|
`).split(`
|
|
13
|
-
`).map(
|
|
14
|
-
`)}function Fr(n){return $i(n,{stringWidth:vt,stripAnsi:ee,wrap:gr})}var Oe=J("path"),rn=J("fs");function ss(n,t){let e=(0,Oe.resolve)(".",n),r;for((0,rn.statSync)(e).isDirectory()||(e=(0,Oe.dirname)(e));;){if(r=t(e,(0,rn.readdirSync)(e)),r)return(0,Oe.resolve)(e,r);if(e=(0,Oe.dirname)(r=e),r===e)break}}var ws=J("util"),Or=J("url");var fs=J("util"),an=J("path");function ne(n){if(n!==n.toLowerCase()&&n!==n.toUpperCase()||(n=n.toLowerCase()),n.indexOf("-")===-1&&n.indexOf("_")===-1)return n;{let e="",r=!1,i=n.match(/^-+/);for(let s=i?i[0].length:0;s<n.length;s++){let o=n.charAt(s);r&&(r=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?r=!0:o!=="-"&&o!=="_"&&(e+=o)}return e}}function sn(n,t){let e=n.toLowerCase();t=t||"-";let r="";for(let i=0;i<n.length;i++){let s=e.charAt(i),o=n.charAt(i);s!==o&&i>0?r+=`${t}${e.charAt(i)}`:r+=o}return r}function on(n){return n==null?!1:typeof n=="number"||/^0x[0-9a-f]+$/i.test(n)?!0:/^0[^.]/.test(n)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n)}function os(n){if(Array.isArray(n))return n.map(o=>typeof o!="string"?o+"":o);n=n.trim();let t=0,e=null,r=null,i=null,s=[];for(let o=0;o<n.length;o++){if(e=r,r=n.charAt(o),r===" "&&!i){e!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var Ot;(function(n){n.BOOLEAN="boolean",n.STRING="string",n.NUMBER="number",n.ARRAY="array"})(Ot||(Ot={}));var Wt,un=class{constructor(t){Wt=t}parse(t,e){let r=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),i=os(t),s=typeof t=="string",o=ic(Object.assign(Object.create(null),r.alias)),a=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},r.configuration),f=Object.assign(Object.create(null),r.default),g=r.configObjects||[],p=r.envPrefix,l=a["populate--"],m=l?"--":"_",E=Object.create(null),C=Object.create(null),b=r.__||Wt.format,d={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("^--"+a["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(c){let h=typeof c=="object"?c.key:c,x=Object.keys(c).map(function(F){return{boolean:"bools",string:"strings",number:"numbers"}[F]}).filter(Boolean).pop();x&&(d[x][h]=!0),d.arrays[h]=!0,d.keys.push(h)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(c){d.bools[c]=!0,d.keys.push(c)}),[].concat(r.string||[]).filter(Boolean).forEach(function(c){d.strings[c]=!0,d.keys.push(c)}),[].concat(r.number||[]).filter(Boolean).forEach(function(c){d.numbers[c]=!0,d.keys.push(c)}),[].concat(r.count||[]).filter(Boolean).forEach(function(c){d.counts[c]=!0,d.keys.push(c)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(c){d.normalize[c]=!0,d.keys.push(c)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([c,h])=>{typeof h=="number"&&(d.nargs[c]=h,d.keys.push(c))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([c,h])=>{typeof h=="function"&&(d.coercions[c]=h,d.keys.push(c))}),typeof r.config<"u"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(c){d.configs[c]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([c,h])=>{(typeof h=="boolean"||typeof h=="function")&&(d.configs[c]=h)})),Xt(r.key,o,r.default,d.arrays),Object.keys(f).forEach(function(c){(d.aliases[c]||[]).forEach(function(h){f[h]=f[c]})});let L=null;qe();let U=[],R=Object.assign(Object.create(null),{_:[]}),W={};for(let c=0;c<i.length;c++){let h=i[c],x=h.replace(/^-{3,}/,"---"),F,D,_,y,I,lt;if(h!=="--"&&/^-/.test(h)&&et(h))H(h);else if(x.match(/^---+(=|$)/)){H(h);continue}else if(h.match(/^--.+=/)||!a["short-option-groups"]&&h.match(/^-.+=/))y=h.match(/^--?([^=]+)=([\s\S]*)$/),y!==null&&Array.isArray(y)&&y.length>=3&&(T(y[1],d.arrays)?c=dt(c,y[1],i,y[2]):T(y[1],d.nargs)!==!1?c=K(c,y[1],i,y[2]):Y(y[1],y[2],!0));else if(h.match(z)&&a["boolean-negation"])y=h.match(z),y!==null&&Array.isArray(y)&&y.length>=2&&(D=y[1],Y(D,T(D,d.arrays)?[!1]:!1));else if(h.match(/^--.+/)||!a["short-option-groups"]&&h.match(/^-[^-]+/))y=h.match(/^--?(.+)/),y!==null&&Array.isArray(y)&&y.length>=2&&(D=y[1],T(D,d.arrays)?c=dt(c,D,i):T(D,d.nargs)!==!1?c=K(c,D,i):(I=i[c+1],I!==void 0&&(!I.match(/^-/)||I.match(v))&&!T(D,d.bools)&&!T(D,d.counts)||/^(true|false)$/.test(I)?(Y(D,I),c++):Y(D,nt(D))));else if(h.match(/^-.\..+=/))y=h.match(/^-([^=]+)=([\s\S]*)$/),y!==null&&Array.isArray(y)&&y.length>=3&&Y(y[1],y[2]);else if(h.match(/^-.\..+/)&&!h.match(v))I=i[c+1],y=h.match(/^-(.\..+)/),y!==null&&Array.isArray(y)&&y.length>=2&&(D=y[1],I!==void 0&&!I.match(/^-/)&&!T(D,d.bools)&&!T(D,d.counts)?(Y(D,I),c++):Y(D,nt(D)));else if(h.match(/^-[^-]+/)&&!h.match(v)){_=h.slice(1,-1).split(""),F=!1;for(let mt=0;mt<_.length;mt++){if(I=h.slice(mt+2),_[mt+1]&&_[mt+1]==="="){lt=h.slice(mt+3),D=_[mt],T(D,d.arrays)?c=dt(c,D,i,lt):T(D,d.nargs)!==!1?c=K(c,D,i,lt):Y(D,lt),F=!0;break}if(I==="-"){Y(_[mt],I);continue}if(/[A-Za-z]/.test(_[mt])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(I)&&T(I,d.bools)===!1){Y(_[mt],I),F=!0;break}if(_[mt+1]&&_[mt+1].match(/\W/)){Y(_[mt],I),F=!0;break}else Y(_[mt],nt(_[mt]))}D=h.slice(-1)[0],!F&&D!=="-"&&(T(D,d.arrays)?c=dt(c,D,i):T(D,d.nargs)!==!1?c=K(c,D,i):(I=i[c+1],I!==void 0&&(!/^(-|--)[^-]/.test(I)||I.match(v))&&!T(D,d.bools)&&!T(D,d.counts)||/^(true|false)$/.test(I)?(Y(D,I),c++):Y(D,nt(D))))}else if(h.match(/^-[0-9]$/)&&h.match(v)&&T(h.slice(1),d.bools))D=h.slice(1),Y(D,nt(D));else if(h==="--"){U=i.slice(c+1);break}else if(a["halt-at-non-option"]){U=i.slice(c);break}else H(h)}q(R,!0),q(R,!1),N(R),at(),k(R,d.aliases,f,!0),ct(R),a["set-placeholder-key"]&&Zt(R),Object.keys(d.counts).forEach(function(c){Nt(R,c.split("."))||Y(c,0)}),l&&U.length&&(R[m]=[]),U.forEach(function(c){R[m].push(c)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(R).filter(c=>c!=="--"&&c.includes("-")).forEach(c=>{delete R[c]}),a["strip-aliased"]&&[].concat(...Object.keys(o).map(c=>o[c])).forEach(c=>{a["camel-case-expansion"]&&c.includes("-")&&delete R[c.split(".").map(h=>ne(h)).join(".")],delete R[c]});function H(c){let h=B("_",c);(typeof h=="string"||typeof h=="number")&&R._.push(h)}function K(c,h,x,F){let D,_=T(h,d.nargs);if(_=typeof _!="number"||isNaN(_)?1:_,_===0)return It(F)||(L=Error(b("Argument unexpected for: %s",h))),Y(h,nt(h)),c;let y=It(F)?0:1;if(a["nargs-eats-options"])x.length-(c+1)+y<_&&(L=Error(b("Not enough arguments following: %s",h))),y=_;else{for(D=c+1;D<x.length&&(!x[D].match(/^-[^0-9]/)||x[D].match(v)||et(x[D]));D++)y++;y<_&&(L=Error(b("Not enough arguments following: %s",h)))}let I=Math.min(y,_);for(!It(F)&&I>0&&(Y(h,F),I--),D=c+1;D<I+c+1;D++)Y(h,x[D]);return c+I}function dt(c,h,x,F){let D=[],_=F||x[c+1],y=T(h,d.nargs);if(T(h,d.bools)&&!/^(true|false)$/.test(_))D.push(!0);else if(It(_)||It(F)&&/^-/.test(_)&&!v.test(_)&&!et(_)){if(f[h]!==void 0){let I=f[h];D=Array.isArray(I)?I:[I]}}else{It(F)||D.push(w(h,F,!0));for(let I=c+1;I<x.length&&!(!a["greedy-arrays"]&&D.length>0||y&&typeof y=="number"&&D.length>=y||(_=x[I],/^-/.test(_)&&!v.test(_)&&!et(_)));I++)c=I,D.push(w(h,_,s))}return typeof y=="number"&&(y&&D.length<y||isNaN(y)&&D.length===0)&&(L=Error(b("Not enough arguments following: %s",h))),Y(h,D),c}function Y(c,h,x=s){if(/-/.test(c)&&a["camel-case-expansion"]){let _=c.split(".").map(function(y){return ne(y)}).join(".");S(c,_)}let F=w(c,h,x),D=c.split(".");Lt(R,D,F),d.aliases[c]&&d.aliases[c].forEach(function(_){let y=_.split(".");Lt(R,y,F)}),D.length>1&&a["dot-notation"]&&(d.aliases[D[0]]||[]).forEach(function(_){let y=_.split("."),I=[].concat(D);I.shift(),y=y.concat(I),(d.aliases[c]||[]).includes(y.join("."))||Lt(R,y,F)}),T(c,d.normalize)&&!T(c,d.arrays)&&[c].concat(d.aliases[c]||[]).forEach(function(y){Object.defineProperty(W,y,{enumerable:!0,get(){return h},set(I){h=typeof I=="string"?Wt.normalize(I):I}})})}function S(c,h){d.aliases[c]&&d.aliases[c].length||(d.aliases[c]=[h],E[h]=!0),d.aliases[h]&&d.aliases[h].length||S(h,c)}function w(c,h,x){x&&(h=sc(h)),(T(c,d.bools)||T(c,d.counts))&&typeof h=="string"&&(h=h==="true");let F=Array.isArray(h)?h.map(function(D){return B(c,D)}):B(c,h);return T(c,d.counts)&&(It(F)||typeof F=="boolean")&&(F=Cr()),T(c,d.normalize)&&T(c,d.arrays)&&(Array.isArray(h)?F=h.map(D=>Wt.normalize(D)):F=Wt.normalize(h)),F}function B(c,h){return!a["parse-positional-numbers"]&&c==="_"||!T(c,d.strings)&&!T(c,d.bools)&&!Array.isArray(h)&&(on(h)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${h}`)))||!It(h)&&T(c,d.numbers))&&(h=Number(h)),h}function N(c){let h=Object.create(null);k(h,d.aliases,f),Object.keys(d.configs).forEach(function(x){let F=c[x]||h[x];if(F)try{let D=null,_=Wt.resolve(Wt.cwd(),F),y=d.configs[x];if(typeof y=="function"){try{D=y(_)}catch(I){D=I}if(D instanceof Error){L=D;return}}else D=Wt.require(_);G(D)}catch(D){D.name==="PermissionDenied"?L=D:c[x]&&(L=Error(b("Invalid JSON config file: %s",F)))}})}function G(c,h){Object.keys(c).forEach(function(x){let F=c[x],D=h?h+"."+x:x;typeof F=="object"&&F!==null&&!Array.isArray(F)&&a["dot-notation"]?G(F,D):(!Nt(R,D.split("."))||T(D,d.arrays)&&a["combine-arrays"])&&Y(D,F)})}function at(){typeof g<"u"&&g.forEach(function(c){G(c)})}function q(c,h){if(typeof p>"u")return;let x=typeof p=="string"?p:"",F=Wt.env();Object.keys(F).forEach(function(D){if(x===""||D.lastIndexOf(x,0)===0){let _=D.split("__").map(function(y,I){return I===0&&(y=y.substring(x.length)),ne(y)});(h&&d.configs[_.join(".")]||!h)&&!Nt(c,_)&&Y(_.join("."),F[D])}})}function ct(c){let h,x=new Set;Object.keys(c).forEach(function(F){if(!x.has(F)&&(h=T(F,d.coercions),typeof h=="function"))try{let D=B(F,h(c[F]));[].concat(d.aliases[F]||[],F).forEach(_=>{x.add(_),c[_]=D})}catch(D){L=D}})}function Zt(c){return d.keys.forEach(h=>{~h.indexOf(".")||typeof c[h]>"u"&&(c[h]=void 0)}),c}function k(c,h,x,F=!1){Object.keys(x).forEach(function(D){Nt(c,D.split("."))||(Lt(c,D.split("."),x[D]),F&&(C[D]=!0),(h[D]||[]).forEach(function(_){Nt(c,_.split("."))||Lt(c,_.split("."),x[D])}))})}function Nt(c,h){let x=c;a["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(D){x=x[D]||{}});let F=h[h.length-1];return typeof x!="object"?!1:F in x}function Lt(c,h,x){let F=c;a["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(lt){lt=us(lt),typeof F=="object"&&F[lt]===void 0&&(F[lt]={}),typeof F[lt]!="object"||Array.isArray(F[lt])?(Array.isArray(F[lt])?F[lt].push({}):F[lt]=[F[lt],{}],F=F[lt][F[lt].length-1]):F=F[lt]});let D=us(h[h.length-1]),_=T(h.join("."),d.arrays),y=Array.isArray(x),I=a["duplicate-arguments-array"];!I&&T(D,d.nargs)&&(I=!0,(!It(F[D])&&d.nargs[D]===1||Array.isArray(F[D])&&F[D].length===d.nargs[D])&&(F[D]=void 0)),x===Cr()?F[D]=Cr(F[D]):Array.isArray(F[D])?I&&_&&y?F[D]=a["flatten-duplicate-arrays"]?F[D].concat(x):(Array.isArray(F[D][0])?F[D]:[F[D]]).concat([x]):!I&&!!_==!!y?F[D]=x:F[D]=F[D].concat([x]):F[D]===void 0&&_?F[D]=y?x:[x]:I&&!(F[D]===void 0||T(D,d.counts)||T(D,d.bools))?F[D]=[F[D],x]:F[D]=x}function Xt(...c){c.forEach(function(h){Object.keys(h||{}).forEach(function(x){d.aliases[x]||(d.aliases[x]=[].concat(o[x]||[]),d.aliases[x].concat(x).forEach(function(F){if(/-/.test(F)&&a["camel-case-expansion"]){let D=ne(F);D!==x&&d.aliases[x].indexOf(D)===-1&&(d.aliases[x].push(D),E[D]=!0)}}),d.aliases[x].concat(x).forEach(function(F){if(F.length>1&&/[A-Z]/.test(F)&&a["camel-case-expansion"]){let D=sn(F,"-");D!==x&&d.aliases[x].indexOf(D)===-1&&(d.aliases[x].push(D),E[D]=!0)}}),d.aliases[x].forEach(function(F){d.aliases[F]=[x].concat(d.aliases[x].filter(function(D){return F!==D}))}))})})}function T(c,h){let x=[].concat(d.aliases[c]||[],c),F=Object.keys(h),D=x.find(_=>F.includes(_));return D?h[D]:!1}function yn(c){let h=Object.keys(d);return[].concat(h.map(F=>d[F])).some(function(F){return Array.isArray(F)?F.includes(c):F[c]})}function j(c,...h){return[].concat(...h).some(function(F){let D=c.match(F);return D&&yn(D[1])})}function Z(c){if(c.match(v)||!c.match(/^-[^-]+/))return!1;let h=!0,x,F=c.slice(1).split("");for(let D=0;D<F.length;D++){if(x=c.slice(D+2),!yn(F[D])){h=!1;break}if(F[D+1]&&F[D+1]==="="||x==="-"||/[A-Za-z]/.test(F[D])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(x)||F[D+1]&&F[D+1].match(/\W/))break}return h}function et(c){return a["unknown-options-as-args"]&&V(c)}function V(c){return c=c.replace(/^-{3,}/,"--"),c.match(v)||Z(c)?!1:!j(c,/^-+([^=]+?)=[\s\S]*$/,z,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function nt(c){return!T(c,d.bools)&&!T(c,d.counts)&&`${c}`in f?f[c]:st(Pt(c))}function st(c){return{[Ot.BOOLEAN]:!0,[Ot.STRING]:"",[Ot.NUMBER]:void 0,[Ot.ARRAY]:[]}[c]}function Pt(c){let h=Ot.BOOLEAN;return T(c,d.strings)?h=Ot.STRING:T(c,d.numbers)?h=Ot.NUMBER:T(c,d.bools)?h=Ot.BOOLEAN:T(c,d.arrays)&&(h=Ot.ARRAY),h}function It(c){return c===void 0}function qe(){Object.keys(d.counts).find(c=>T(c,d.arrays)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",c)),!0):T(c,d.nargs)?(L=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",c)),!0):!1)}return{aliases:Object.assign({},d.aliases),argv:Object.assign(W,R),configuration:a,defaulted:Object.assign({},C),error:L,newAliases:Object.assign({},E)}}};function ic(n){let t=[],e=Object.create(null),r=!0;for(Object.keys(n).forEach(function(i){t.push([].concat(n[i],i))});r;){r=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),r=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,f){return f.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(e[s]=i)}),e}function Cr(n){return n!==void 0?n+1:1}function us(n){return n==="__proto__"?"___proto___":n}function sc(n){return typeof n=="string"&&(n[0]==="'"||n[0]==='"')&&n[n.length-1]===n[0]?n.substring(1,n.length-1):n}var Ds=J("fs"),wr=J("node:module"),uc={};var Er,br,xr,as=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,cs=(br=(Er=process==null?void 0:process.versions)===null||Er===void 0?void 0:Er.node)!==null&&br!==void 0?br:(xr=process==null?void 0:process.version)===null||xr===void 0?void 0:xr.slice(1);if(cs&&Number(cs.match(/^([^.]+)/)[1])<as)throw Error(`yargs parser supports a minimum Node.js version of ${as}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var oc=process?process.env:{},ls=wr.createRequire?(0,wr.createRequire)(uc.url):void 0,hs=new un({cwd:process.cwd,env:()=>oc,format:fs.format,normalize:an.normalize,resolve:an.resolve,require:n=>{if(typeof ls<"u")return ls(n);if(n.match(/\.json$/))return JSON.parse((0,Ds.readFileSync)(n,"utf8"));throw Error("only .json config files are supported in ESM")}}),Re=function(t,e){return hs.parse(t.slice(),e).argv};Re.detailed=function(n,t){return hs.parse(n.slice(),t)};Re.camelCase=ne;Re.decamelize=sn;Re.looksLikeNumber=on;var ds=Re;var bt=J("path");function ac(){return cc()?0:1}function cc(){return lc()&&!process.defaultApp}function lc(){return!!process.versions.electron}function ps(){return process.argv[ac()]}var Be=J("fs"),ms=J("util"),gs=J("path"),Fs={fs:{readFileSync:Be.readFileSync,writeFile:Be.writeFile},format:ms.format,resolve:gs.resolve,exists:n=>{try{return(0,Be.statSync)(n).isFile()}catch{return!1}}};var jt,yr=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(),r=function(){};return typeof t[t.length-1]=="function"&&(r=t.pop()),r=r||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:r})):r(),jt.format.apply(jt.format,[this.cache[this.locale][e]||e].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),e=t.shift(),r=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let o=i===1?e:r;this.cache[this.locale][e]&&(o=this.cache[this.locale][e][i===1?"one":"other"]),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let a=[o];return~o.indexOf("%d")&&a.push(i),jt.format.apply(jt.format,a.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 r="";return t.forEach(function(i,s){let o=e[s+1];r+=i,typeof o<"u"&&(r+="%s")}),this.__.apply(this,[r].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],r=e.directory,i=e.locale,s=e.cb,o=this._resolveLocaleFile(r,i),a=JSON.stringify(this.cache[i],null,2);jt.fs.writeFile(o,a,"utf-8",function(f){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(f)})}_readLocaleFile(){let t={},e=this._resolveLocaleFile(this.directory,this.locale);try{jt.fs.readFileSync&&(t=JSON.parse(jt.fs.readFileSync(e,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+e),r.code==="ENOENT")t={};else throw r}this.cache[this.locale]=t}_resolveLocaleFile(t,e){let r=jt.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~e.lastIndexOf("_")){let i=jt.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(i)&&(r=i)}return r}_fileExistsSync(t){return jt.exists(t)}};function Cs(n,t){jt=t;let e=new yr(n);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 fc=n=>Cs(n,Fs),Es=fc;var ys=J("node:module"),As=me(xs(),1),ln=J("node:fs"),Bs={},Ar=(0,Or.fileURLToPath)(Bs.url),Dc=Ar.substring(0,Ar.lastIndexOf("node_modules")),hc=(0,ys.createRequire)(Bs.url),Os={assert:{notStrictEqual:cn.notStrictEqual,strictEqual:cn.strictEqual},cliui:Fr,findUp:ss,getEnv:n=>process.env[n],inspect:ws.inspect,getProcessArgvBin:ps,mainFilename:Dc||process.cwd(),Parser:ds,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:(n,t)=>process.emitWarning(n,t),execPath:()=>process.execPath,exit:n=>{process.exit(n)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:ln.readFileSync,readdirSync:ln.readdirSync,require:hc,getCallerFile:()=>{let n=(0,As.default)(3);return n.match(/^file:\/\//)?(0,Or.fileURLToPath)(n):n},stringWidth:vt,y18n:Es({directory:(0,bt.resolve)(Ar,"../../../locales"),updateFiles:!1})};function gt(n,t,e,r){e.assert.notStrictEqual(n,t,r)}function Br(n,t){t.assert.strictEqual(typeof n,"string")}function _e(n){return Object.keys(n)}function Q(n){return!!n&&!!n.then&&typeof n.then=="function"}var ot=class n extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}};function qt(n){let e=n.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,i=e.shift();if(!i)throw new Error(`No command found in: ${n}`);let s={cmd:i.replace(r,""),demanded:[],optional:[]};return e.forEach((o,a)=>{let f=!1;o=o.replace(/\s/g,""),/\.+[\]>]/.test(o)&&a===e.length-1&&(f=!0),/^\[/.test(o)?s.optional.push({cmd:o.replace(r,"").split("|"),variadic:f}):s.demanded.push({cmd:o.replace(r,"").split("|"),variadic:f})}),s}var dc=["first","second","third","fourth","fifth","sixth"];function A(n,t,e){function r(){return typeof n=="object"?[{demanded:[],optional:[]},n,t]:[qt(`cmd ${n}`),t,e]}try{let i=0,[s,o,a]=r(),f=[].slice.call(o);for(;f.length&&f[f.length-1]===void 0;)f.pop();let g=a||f.length;if(g<s.demanded.length)throw new ot(`Not enough arguments provided. Expected ${s.demanded.length} but received ${f.length}.`);let p=s.demanded.length+s.optional.length;if(g>p)throw new ot(`Too many arguments provided. Expected max ${p} but received ${g}.`);s.demanded.forEach(l=>{let m=f.shift(),E=_s(m);l.cmd.filter(b=>b===E||b==="*").length===0&&Ss(E,l.cmd,i),i+=1}),s.optional.forEach(l=>{if(f.length===0)return;let m=f.shift(),E=_s(m);l.cmd.filter(b=>b===E||b==="*").length===0&&Ss(E,l.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function _s(n){return Array.isArray(n)?"array":n===null?"null":typeof n}function Ss(n,t,e){throw new ot(`Invalid ${dc[e]||"manyith"} argument. Expected ${t.join(" or ")} but received ${n}.`)}var fn=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,r=!0,i=!1){if(A("<array|function> [boolean] [boolean] [boolean]",[t,e,r],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let o=t[s];o.applyBeforeValidation=e,o.global=r}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=e,s.global=r,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){let r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...r[e]||[],e];return i.option?!s.includes(i.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 Ps(n){return n?n.map(t=>(t.applyBeforeValidation=!1,t)):[]}function re(n,t,e,r){return e.reduce((i,s)=>{if(s.applyBeforeValidation!==r)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(Q(i))return i.then(o=>Promise.all([o,s(o,t)])).then(([o,a])=>Object.assign(o,a));{let o=s(i,t);return Q(o)?o.then(a=>Object.assign(i,a)):Object.assign(i,o)}},n)}function ie(n,t,e=r=>{throw r}){try{let r=pc(n)?n():n;return Q(r)?r.then(i=>t(i)):t(r)}catch(r){return e(r)}}function pc(n){return typeof n=="function"}var Se=/(^\*)|(^\$0)/,_r=class{constructor(t,e,r,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=r,this.validation=e}addDirectory(t,e,r,i){i=i||{},this.requireCache.add(r);let s=this.shim.path.resolve(this.shim.path.dirname(r),t),o=this.shim.readdirSync(s,{recursive:!!i.recurse});Array.isArray(i.extensions)||(i.extensions=["js"]);let a=typeof i.visit=="function"?i.visit:f=>f;for(let f of o){let g=f.toString();if(i.exclude){let l=!1;if(typeof i.exclude=="function"?l=i.exclude(g):l=i.exclude.test(g),l)continue}if(i.include){let l=!1;if(typeof i.include=="function"?l=i.include(g):l=i.include.test(g),!l)continue}let p=!1;for(let l of i.extensions)g.endsWith(l)&&(p=!0);if(p){let l=this.shim.path.join(s,g),m=e(l),E=Object.create(null,Object.getOwnPropertyDescriptors({...m}));if(a(E,l,g)){if(this.requireCache.has(l))continue;this.requireCache.add(l),E.command||(E.command=this.shim.path.basename(l,this.shim.path.extname(l))),this.addHandler(E)}}}}addHandler(t,e,r,i,s,o){let a=[],f=Ps(s);if(i=i||(()=>{}),Array.isArray(t))if(mc(t))[t,...a]=t;else for(let g of t)this.addHandler(g);else if(Fc(t)){let g=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(g===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(g=[].concat(g).concat(t.aliases)),this.addHandler(g,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(Is(r)){this.addHandler([t].concat(a),e,r.builder,r.handler,r.middlewares,r.deprecated);return}if(typeof t=="string"){let g=qt(t);a=a.map(m=>qt(m).cmd);let p=!1,l=[g.cmd].concat(a).filter(m=>Se.test(m)?(p=!0,!1):!0);l.length===0&&p&&l.push("$0"),p&&(g.cmd=l[0],a=l.slice(1),t=t.replace(Se,g.cmd)),a.forEach(m=>{this.aliasMap[m]=g.cmd}),e!==!1&&this.usage.command(t,e,p,a,o),this.handlers[g.cmd]={original:t,description:e,handler:i,builder:r||{},middlewares:f,deprecated:o,demanded:g.demanded,optional:g.optional},p&&(this.defaultCommand=this.handlers[g.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,r,i,s,o){let a=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,f=e.getInternalMethods().getContext(),g=f.commands.slice(),p=!t;t&&(f.commands.push(t),f.fullCommands.push(a.original));let l=this.applyBuilderUpdateUsageAndParse(p,a,e,r.aliases,g,i,s,o);return Q(l)?l.then(m=>this.applyMiddlewareAndGetResult(p,a,m.innerArgv,f,s,m.aliases,e)):this.applyMiddlewareAndGetResult(p,a,l.innerArgv,f,s,l.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,r,i,s,o,a,f){let g=e.builder,p=r;if(Dn(g)){r.getInternalMethods().getUsageInstance().freeze();let l=g(r.getInternalMethods().reset(i),f);if(Q(l))return l.then(m=>(p=js(m)?m:r,this.parseAndUpdateUsage(t,e,p,s,o,a)))}else gc(g)&&(r.getInternalMethods().getUsageInstance().freeze(),p=r.getInternalMethods().reset(i),Object.keys(e.builder).forEach(l=>{p.option(l,g[l])}));return this.parseAndUpdateUsage(t,e,p,s,o,a)}parseAndUpdateUsage(t,e,r,i,s,o){t&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,e),e.description);let a=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,o);return Q(a)?a.then(f=>({aliases:r.parsed.aliases,innerArgv:f})):{aliases:r.parsed.aliases,innerArgv:a}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,e){let r=Se.test(e.original)?e.original.replace(Se,"").trim():e.original,i=t.filter(s=>!Se.test(s));return i.push(r),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,e,r,i,s,o,a,f){if(!o.getInternalMethods().getHasOutput()){let g=o.getInternalMethods().runValidation(s,f,o.parsed.error,t);r=ie(r,p=>(g(p),p))}if(e.handler&&!o.getInternalMethods().getHasOutput()){o.getInternalMethods().setHasOutput();let g=!!o.getOptions().configuration["populate--"];o.getInternalMethods().postProcess(r,g,!1,!1),r=re(r,o,a,!1),r=ie(r,p=>{let l=e.handler(p);return Q(l)?l.then(()=>p):p}),t||o.getInternalMethods().getUsageInstance().cacheHelpMessage(),Q(r)&&!o.getInternalMethods().hasParseCallback()&&r.catch(p=>{try{o.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),r}applyMiddlewareAndGetResult(t,e,r,i,s,o,a){let f={};if(s)return r;a.getInternalMethods().getHasOutput()||(f=this.populatePositionals(e,r,i,a));let g=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),p=re(r,a,g,!0);return Q(p)?p.then(l=>this.handleValidationAndGetResult(t,e,l,i,o,a,g,f)):this.handleValidationAndGetResult(t,e,p,i,o,a,g,f)}populatePositionals(t,e,r,i){e._=e._.slice(r.commands.length);let s=t.demanded.slice(0),o=t.optional.slice(0),a={};for(this.validation.positionalCount(s.length,e._.length);s.length;){let f=s.shift();this.populatePositional(f,e,a)}for(;o.length;){let f=o.shift();this.populatePositional(f,e,a)}return e._=r.commands.concat(e._.map(f=>""+f)),this.postProcessPositionals(e,a,this.cmdToParseOptions(t.original),i),a}populatePositional(t,e,r){let i=t.cmd[0];t.variadic?r[i]=e._.splice(0).map(String):e._.length&&(r[i]=[String(e._.shift())])}cmdToParseOptions(t){let e={array:[],default:{},alias:{},demand:{}},r=qt(t);return r.demanded.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=o,e.demand[s]=!0}),r.optional.forEach(i=>{let[s,...o]=i.cmd;i.variadic&&(e.array.push(s),e.default[s]=[]),e.alias[s]=o}),e}postProcessPositionals(t,e,r,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(r.default,s.default);for(let g of Object.keys(r.alias))s.alias[g]=(s.alias[g]||[]).concat(r.alias[g]);s.array=s.array.concat(r.array),s.config={};let o=[];if(Object.keys(e).forEach(g=>{e[g].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[g]=!0),o.push(`--${g}`),o.push(p)})}),!o.length)return;let a=Object.assign({},s.configuration,{"populate--":!1}),f=this.shim.Parser.detailed(o,Object.assign({},s,{configuration:a}));if(f.error)i.getInternalMethods().getUsageInstance().fail(f.error.message,f.error);else{let g=Object.keys(e);Object.keys(e).forEach(p=>{g.push(...f.aliases[p])}),Object.keys(f.argv).forEach(p=>{g.includes(p)&&(e[p]||(e[p]=f.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(f.argv,p)&&(Array.isArray(t[p])||Array.isArray(f.argv[p]))?t[p]=[].concat(t[p],f.argv[p]):t[p]=f.argv[p])})}}isDefaulted(t,e){let{default:r}=t.getOptions();return Object.prototype.hasOwnProperty.call(r,e)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(e))}isInConfigs(t,e){let{configObjects:r}=t.getOptions();return r.some(i=>Object.prototype.hasOwnProperty.call(i,e))||r.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(e)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let r=Se.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(r,this.defaultCommand.description)}let e=this.defaultCommand.builder;if(Dn(e))return e(t,!0);Is(e)||Object.keys(e).forEach(r=>{t.option(r,e[r])})}extractDesc({describe:t,description:e,desc:r}){for(let i of[t,e,r]){if(typeof i=="string"||i===!1)return i;gt(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();gt(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 vs(n,t,e,r){return new _r(n,t,e,r)}function Is(n){return typeof n=="object"&&!!n.builder&&typeof n.handler=="function"}function mc(n){return n.every(t=>typeof t=="string")}function Dn(n){return typeof n=="function"}function gc(n){return typeof n=="object"}function Fc(n){return typeof n=="object"&&!Array.isArray(n)}function Gt(n={},t=()=>!0){let e={};return _e(n).forEach(r=>{t(r,n[r])&&(e[r]=n[r])}),e}function Yt(n){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let e=t;e._handle&&e.isTTY&&typeof e._handle.setBlocking=="function"&&e._handle.setBlocking(n)})}function Cc(n){return typeof n=="boolean"}function Ts(n,t){let e=t.y18n.__,r={},i=[];r.failFn=function(w){i.push(w)};let s=null,o=null,a=!0;r.showHelpOnFail=function(w=!0,B){let[N,G]=typeof w=="string"?[!0,w]:[w,B];return n.getInternalMethods().isGlobalContext()&&(o=G),s=G,a=N,r};let f=!1;r.fail=function(w,B){let N=n.getInternalMethods().getLoggerInstance();if(i.length)for(let G=i.length-1;G>=0;--G){let at=i[G];if(Cc(at)){if(B)throw B;if(w)throw Error(w)}else at(w,B,r)}else{if(n.getExitProcess()&&Yt(!0),!f){f=!0,a&&(n.showHelp("error"),N.error()),(w||B)&&N.error(w||B);let G=s||o;G&&((w||B)&&N.error(""),N.error(G))}if(B=B||new ot(w),n.getExitProcess())return n.exit(1);if(n.getInternalMethods().hasParseCallback())return n.exit(1,B);throw B}};let g=[],p=!1;r.usage=(S,w)=>S===null?(p=!0,g=[],r):(p=!1,g.push([S,w||""]),r),r.getUsage=()=>g,r.getUsageDisabled=()=>p,r.getPositionalGroupName=()=>e("Positionals:");let l=[];r.example=(S,w)=>{l.push([S,w||""])};let m=[];r.command=function(w,B,N,G,at=!1){N&&(m=m.map(q=>(q[2]=!1,q))),m.push([w,B||"",N,G,at])},r.getCommands=()=>m;let E={};r.describe=function(w,B){Array.isArray(w)?w.forEach(N=>{r.describe(N,B)}):typeof w=="object"?Object.keys(w).forEach(N=>{r.describe(N,w[N])}):E[w]=B},r.getDescriptions=()=>E;let C=[];r.epilog=S=>{C.push(S)};let b=!1,d;r.wrap=S=>{b=!0,d=S},r.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(d=K(),b=!0),d);let v="__yargsString__:";r.deferY18nLookup=S=>v+S,r.help=function(){if(U)return U;L();let w=n.customScriptName?n.$0:t.path.basename(n.$0),B=n.getDemandedOptions(),N=n.getDemandedCommands(),G=n.getDeprecatedOptions(),at=n.getGroups(),q=n.getOptions(),ct=[];ct=ct.concat(Object.keys(E)),ct=ct.concat(Object.keys(B)),ct=ct.concat(Object.keys(N)),ct=ct.concat(Object.keys(q.default)),ct=ct.filter(W),ct=Object.keys(ct.reduce((j,Z)=>(Z!=="_"&&(j[Z]=!0),j),{}));let Zt=r.getWrap(),k=t.cliui({width:Zt,wrap:!!Zt});if(!p){if(g.length)g.forEach(j=>{k.div({text:`${j[0].replace(/\$0/g,w)}`}),j[1]&&k.div({text:`${j[1]}`,padding:[1,0,0,0]})}),k.div();else if(m.length){let j=null;N._?j=`${w} <${e("command")}>
|
|
15
|
-
`:j=`${
|
|
16
|
-
`,k.div(`${j}`)}}if(
|
|
13
|
+
`).map(n=>Da(n,e,t)).join(`
|
|
14
|
+
`)}function Cn(u){return Ur(u,{stringWidth:Re,stripAnsi:ut,wrap:mn})}var yt=J("path"),su=J("fs");function oi(u,e){let t=(0,yt.resolve)(".",u),n;for((0,su.statSync)(t).isDirectory()||(t=(0,yt.dirname)(t));;){if(n=e(t,(0,su.readdirSync)(t)),n)return(0,yt.resolve)(t,n);if(t=(0,yt.dirname)(n=t),n===t)break}}var Oi=J("util"),On=J("url");var hi=J("util"),cu=J("path");function nt(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 ou(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 Du(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 Di(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,au=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=Di(e),i=typeof e=="string",s=aa(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)})),Xe(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;Gt();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"]&&Ze(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=>nt(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 nt(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=ca(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=En()),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)&&(Du(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)),nt(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 Ze(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=ai(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=ai(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===En()?C[f]=En(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 Xe(...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=nt(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=ou(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 yu(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&&yu(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),!yu(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 Gt(){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 aa(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 En(u){return u!==void 0?u+1:1}function ai(u){return u==="__proto__"?"___proto___":u}function ca(u){return typeof u=="string"&&(u[0]==="'"||u[0]==='"')&&u[u.length-1]===u[0]?u.substring(1,u.length-1):u}var Fi=J("fs"),An=J("node:module"),fa={};var gn,bn,Bn,ci=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,li=(bn=(gn=process==null?void 0:process.versions)===null||gn===void 0?void 0:gn.node)!==null&&bn!==void 0?bn:(Bn=process==null?void 0:process.version)===null||Bn===void 0?void 0:Bn.slice(1);if(li&&Number(li.match(/^([^.]+)/)[1])<ci)throw Error(`yargs parser supports a minimum Node.js version of ${ci}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var la=process?process.env:{},fi=An.createRequire?(0,An.createRequire)(fa.url):void 0,di=new au({cwd:process.cwd,env:()=>la,format:hi.format,normalize:cu.normalize,resolve:cu.resolve,require:u=>{if(typeof fi<"u")return fi(u);if(u.match(/\.json$/))return JSON.parse((0,Fi.readFileSync)(u,"utf8"));throw Error("only .json config files are supported in ESM")}}),Wt=function(e,t){return di.parse(e.slice(),t).argv};Wt.detailed=function(u,e){return di.parse(u.slice(),e)};Wt.camelCase=nt;Wt.decamelize=ou;Wt.looksLikeNumber=Du;var pi=Wt;var be=J("path");function ha(){return Fa()?0:1}function Fa(){return da()&&!process.defaultApp}function da(){return!!process.versions.electron}function mi(){return process.argv[ha()]}var pa=Rt();function xn(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(pa,"")}var gi=ke(Ei(),1),ma=new Intl.Segmenter,Ca=/^\p{Default_Ignorable_Code_Point}$/u;function wn(u,e={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(u=xn(u)),u.length===0)return 0;let r=0,i={ambiguousAsWide:!t};for(let{segment:s}of ma.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)&&!Ca.test(s)){if((0,gi.default)().test(s)){r+=2;continue}r+=nu(D,i)}}return r}var _t=J("fs"),bi=J("util"),Bi=J("path"),Ai={fs:{readFileSync:_t.readFileSync,writeFile:_t.writeFile},format:bi.format,resolve:Bi.resolve,exists:u=>{try{return(0,_t.statSync)(u).isFile()}catch{return!1}}};var ve,yn=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 xi(u,e){ve=e;let t=new yn(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 Ea=u=>xi(u,Ai),wi=Ea;var Si=J("node:module"),Pi=ke(_i(),1),fu=J("node:fs"),vi={},_n=(0,On.fileURLToPath)(vi.url),ga=_n.substring(0,_n.lastIndexOf("node_modules")),ba=(0,Si.createRequire)(vi.url),Ii={assert:{notStrictEqual:lu.notStrictEqual,strictEqual:lu.strictEqual},cliui:Cn,findUp:oi,getEnv:u=>process.env[u],inspect:Oi.inspect,getProcessArgvBin:mi,mainFilename:ga||process.cwd(),Parser:pi,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:ba,getCallerFile:()=>{let u=(0,Pi.default)(3);return u.match(/^file:\/\//)?(0,On.fileURLToPath)(u):u},stringWidth:wn,y18n:wi({directory:(0,be.resolve)(_n,"../../../locales"),updateFiles:!1})};function me(u,e,t,n){t.assert.notStrictEqual(u,e,n)}function Sn(u,e){e.assert.strictEqual(typeof u,"string")}function Ot(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 qe(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 Ba=["first","second","third","fourth","fifth","sixth"];function w(u,e,t){function n(){return typeof u=="object"?[{demanded:[],optional:[]},u,e]:[qe(`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=ji(p);c.cmd.filter(b=>b===g||b==="*").length===0&&Mi(g,c.cmd,r),r+=1}),i.optional.forEach(c=>{if(l.length===0)return;let p=l.shift(),g=ji(p);c.cmd.filter(b=>b===g||b==="*").length===0&&Mi(g,c.cmd,r),r+=1})}catch(r){console.warn(r.stack)}}function ji(u){return Array.isArray(u)?"array":u===null?"null":typeof u}function Mi(u,e,t){throw new se(`Invalid ${Ba[t]||"manyith"} argument. Expected ${e.join(" or ")} but received ${u}.`)}var hu=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 Ti(u){return u?u.map(e=>(e.applyBeforeValidation=!1,e)):[]}function rt(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 it(u,e,t=n=>{throw n}){try{let n=Aa(u)?u():u;return Q(n)?n.then(r=>e(r)):e(n)}catch(n){return t(n)}}function Aa(u){return typeof u=="function"}var St=/(^\*)|(^\$0)/,Pn=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=Ti(i);if(r=r||(()=>{}),Array.isArray(e))if(xa(e))[e,...D]=e;else for(let m of e)this.addHandler(m);else if(ya(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($i(n)){this.addHandler([e].concat(D),t,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof e=="string"){let m=qe(e);D=D.map(p=>qe(p).cmd);let d=!1,c=[m.cmd].concat(D).filter(p=>St.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(St,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(Fu(m)){n.getInternalMethods().getUsageInstance().freeze();let c=m(n.getInternalMethods().reset(r),l);if(Q(c))return c.then(p=>(d=Li(p)?p:n,this.parseAndUpdateUsage(e,t,d,i,s,D)))}else wa(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=St.test(t.original)?t.original.replace(St,"").trim():t.original,r=e.filter(i=>!St.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=it(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=rt(n,s,D,!1),n=it(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=rt(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=qe(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=St.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(Fu(t))return t(e,!0);$i(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 Ni(u,e,t,n){return new Pn(u,e,t,n)}function $i(u){return typeof u=="object"&&!!u.builder&&typeof u.handler=="function"}function xa(u){return u.every(e=>typeof e=="string")}function Fu(u){return typeof u=="function"}function wa(u){return typeof u=="object"}function ya(u){return typeof u=="object"&&!Array.isArray(u)}function Ge(u={},e=()=>!0){let t={};return Ot(u).forEach(n=>{e(n,u[n])&&(t[n]=u[n])}),t}function Ye(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 _a(u){return typeof u=="boolean"}function zi(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(_a(De)){if(_)throw _;if(A)throw Error(A)}else De(A,_,n)}else{if(u.getExitProcess()&&Ye(!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 Ze=n.getWrap(),k=e.cliui({width:Ze,wrap:!!Ze});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,Ze,`${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 Xe=j=>/^--/.test(du(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)=>Xe(ie)===Xe(Pe)?0:Xe(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=>Xe(Z[te])))&&T.filter(({groupName:j})=>j!==n.getPositionalGroupName()).forEach(({normalizedKeys:j,switches:Z})=>{j.forEach(te=>{Xe(Z[te])&&(Z[te]=Oa(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")}]`,Gt=[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:du(ue),padding:[0,2,0,2+Ui(ue)],width:z(te,Ze)+4},ie);let a=u.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;Gt&&!a?k.div({text:Gt,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,Ze)+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,
|
|
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(_?`${_} ${du(G[0])}`:du(G[0]))+Ui(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=Ge(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 In(u){return typeof u=="object"}function Oa(u,e){return In(u)?{text:u.text,indentation:u.indentation+e}:{text:u,indentation:e}}function Ui(u){return In(u)?u.indentation:0}function du(u){return In(u)?u.text:u}var Ri=`###-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
|
-
`,
|
|
47
|
+
`,Wi=`#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
|
|
75
|
-
${
|
|
76
|
-
`)}`:"";
|
|
77
|
-
${
|
|
78
|
-
`;m.forEach(C=>{E+=C}),t.fail(E)}};let f={};s.conflicts=function(l,m){A("<string|object> [array|string]",[l,m],arguments.length),typeof l=="object"?Object.keys(l).forEach(E=>{s.conflicts(E,l[E])}):(n.global(l),f[l]||(f[l]=[]),Array.isArray(m)?m.forEach(E=>s.conflicts(l,E)):f[l].push(m))},s.getConflicting=()=>f,s.conflicting=function(l){Object.keys(l).forEach(m=>{f[m]&&f[m].forEach(E=>{E&&l[m]!==void 0&&l[E]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",m,E))})}),n.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(f).forEach(m=>{f[m].forEach(E=>{E&&l[e.Parser.camelCase(m)]!==void 0&&l[e.Parser.camelCase(E)]!==void 0&&t.fail(r("Arguments %s and %s are mutually exclusive",m,E))})})},s.recommendCommands=function(l,m){m=m.sort((d,v)=>v.length-d.length);let C=null,b=1/0;for(let d=0,v;(v=m[d])!==void 0;d++){let z=Us(l,v);z<=3&&z<b&&(b=z,C=v)}C&&t.fail(r("Did you mean %s?",C))},s.reset=function(l){return o=Gt(o,m=>!l[m]),f=Gt(f,m=>!l[m]),s};let g=[];return s.freeze=function(){g.push({implied:o,conflicting:f})},s.unfreeze=function(){let l=g.pop();gt(l,void 0,e),{implied:o,conflicting:f}=l},s}var Oc={},Ir=[],We;function dn(n,t,e,r){We=r;let i={};if(Object.prototype.hasOwnProperty.call(n,"extends")){if(typeof n.extends!="string")return i;let s=/\.json|\..*rc$/.test(n.extends),o=null;if(s)o=Ac(t,n.extends);else try{o=Oc.resolve(n.extends)}catch{return n}yc(o),Ir.push(o),i=s?JSON.parse(We.readFileSync(o,"utf8")):r.require(n.extends),delete n.extends,i=dn(i,We.path.dirname(o),e,We)}return Ir=[],e?Ws(i,n):Object.assign({},i,n)}function yc(n){if(Ir.indexOf(n)>-1)throw new ot(`Circular extended configurations: '${n}'.`)}function Ac(n,t){return We.path.resolve(n,t)}function Ws(n,t){let e={};function r(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(e,n);for(let i of Object.keys(t))r(t[i])&&r(e[i])?e[i]=Ws(n[i],t[i]):e[i]=t[i];return e}var O=function(n,t,e,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},u=function(n,t,e,r){if(e==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!r:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(n):r?r.value:t.get(n)},ut,se,Ve,Ft,xt,pn,Kt,oe,mn,Bt,gn,_t,Tt,wt,St,Fn,ue,Dt,P,Cn,En,yt,ae,Pe,ce,Jt,bn,M,le,fe,De,$,xn,$t,it;function ao(n){return(t=[],e=n.process.cwd(),r)=>{let i=new Wr(t,e,r,n);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var Vs=Symbol("copyDoubleDash"),Hs=Symbol("copyDoubleDash"),vr=Symbol("deleteFromParserHintObject"),qs=Symbol("emitWarning"),Gs=Symbol("freeze"),Ys=Symbol("getDollarZero"),he=Symbol("getParserConfiguration"),Ks=Symbol("getUsageConfiguration"),jr=Symbol("guessLocale"),Js=Symbol("guessVersion"),Qs=Symbol("parsePositionalNumbers"),Mr=Symbol("pkgUp"),Qt=Symbol("populateParserHintArray"),Ie=Symbol("populateParserHintSingleValueDictionary"),Tr=Symbol("populateParserHintArrayDictionary"),$r=Symbol("populateParserHintDictionary"),Nr=Symbol("sanitizeKey"),Lr=Symbol("setKey"),Ur=Symbol("unfreeze"),Zs=Symbol("validateAsync"),Xs=Symbol("getCommandInstance"),ks=Symbol("getContext"),to=Symbol("getHasOutput"),eo=Symbol("getLoggerInstance"),no=Symbol("getParseContext"),ro=Symbol("getUsageInstance"),io=Symbol("getValidationInstance"),wn=Symbol("hasParseCallback"),so=Symbol("isGlobalContext"),de=Symbol("postProcess"),oo=Symbol("rebase"),zr=Symbol("reset"),He=Symbol("runYargsParserAndExecuteCommands"),Rr=Symbol("runValidation"),uo=Symbol("setHasOutput"),pe=Symbol("kTrackManuallySetKeys"),Bc="en_US",Wr=class{constructor(t=[],e,r,i){this.customScriptName=!1,this.parsed=!1,ut.set(this,void 0),se.set(this,void 0),Ve.set(this,{commands:[],fullCommands:[]}),Ft.set(this,null),xt.set(this,null),pn.set(this,"show-hidden"),Kt.set(this,null),oe.set(this,!0),mn.set(this,{}),Bt.set(this,!0),gn.set(this,[]),_t.set(this,void 0),Tt.set(this,{}),wt.set(this,!1),St.set(this,null),Fn.set(this,!0),ue.set(this,void 0),Dt.set(this,""),P.set(this,void 0),Cn.set(this,void 0),En.set(this,{}),yt.set(this,null),ae.set(this,null),Pe.set(this,{}),ce.set(this,{}),Jt.set(this,void 0),bn.set(this,!1),M.set(this,void 0),le.set(this,!1),fe.set(this,!1),De.set(this,!1),$.set(this,void 0),xn.set(this,{}),$t.set(this,null),it.set(this,void 0),O(this,M,i,"f"),O(this,Jt,t,"f"),O(this,se,e,"f"),O(this,Cn,r,"f"),O(this,_t,new fn(this),"f"),this.$0=this[Ys](),this[zr](),O(this,ut,u(this,ut,"f"),"f"),O(this,$,u(this,$,"f"),"f"),O(this,it,u(this,it,"f"),"f"),O(this,P,u(this,P,"f"),"f"),u(this,P,"f").showHiddenOpt=u(this,pn,"f"),O(this,ue,this[Hs](),"f"),u(this,M,"f").y18n.setLocale(Bc)}addHelpOpt(t,e){let r="help";return A("[string|boolean] [string]",[t,e],arguments.length),u(this,St,"f")&&(this[vr](u(this,St,"f")),O(this,St,null,"f")),t===!1&&e===void 0?this:(O(this,St,typeof t=="string"?t:r,"f"),this.boolean(u(this,St,"f")),this.describe(u(this,St,"f"),e||u(this,$,"f").deferY18nLookup("Show help")),this)}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(A("[string|boolean] [string]",[t,e],arguments.length),t===!1&&e===void 0)return this;let r=typeof t=="string"?t:u(this,pn,"f");return this.boolean(r),this.describe(r,e||u(this,$,"f").deferY18nLookup("Show hidden options")),u(this,P,"f").showHiddenOpt=r,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return A("<object|string|array> [string|array]",[t,e],arguments.length),this[Tr](this.alias.bind(this),"alias",t,e),this}array(t){return A("<array|string>",[t],arguments.length),this[Qt]("array",t),this[pe](t),this}boolean(t){return A("<array|string>",[t],arguments.length),this[Qt]("boolean",t),this[pe](t),this}check(t,e){return A("<function> [boolean]",[t,e],arguments.length),this.middleware((r,i)=>ie(()=>t(r,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&u(this,$,"f").fail(s.toString(),s):u(this,$,"f").fail(u(this,M,"f").y18n.__("Argument check failed: %s",t.toString())),r),s=>(u(this,$,"f").fail(s.message?s.message:s.toString(),s),r)),!1,e),this}choices(t,e){return A("<object|string|array> [string|array]",[t,e],arguments.length),this[Tr](this.choices.bind(this),"choices",t,e),this}coerce(t,e){if(A("<object|string|array> [function]",[t,e],arguments.length),Array.isArray(t)){if(!e)throw new ot("coerce callback must be provided");for(let i of t)this.coerce(i,e);return this}else if(typeof t=="object"){for(let i of Object.keys(t))this.coerce(i,t[i]);return this}if(!e)throw new ot("coerce callback must be provided");let r=t;return u(this,P,"f").key[r]=!0,u(this,_t,"f").addCoerceMiddleware((i,s)=>{var o;let a=(o=s.getAliases()[r])!==null&&o!==void 0?o:[],f=[r,...a].filter(g=>Object.prototype.hasOwnProperty.call(i,g));return f.length===0?i:ie(()=>e(i[f[0]]),g=>(f.forEach(p=>{i[p]=g}),i),g=>{throw new ot(g.message)})},r),this}conflicts(t,e){return A("<string|object> [string|array]",[t,e],arguments.length),u(this,it,"f").conflicts(t,e),this}config(t="config",e,r){return A("[object|string] [string|function] [function]",[t,e,r],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=dn(t,u(this,se,"f"),this[he]()["deep-merge-config"]||!1,u(this,M,"f")),u(this,P,"f").configObjects=(u(this,P,"f").configObjects||[]).concat(t),this):(typeof e=="function"&&(r=e,e=void 0),this.describe(t,e||u(this,$,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{u(this,P,"f").config[i]=r||!0}),this)}completion(t,e,r){return A("[string] [string|boolean|function] [function]",[t,e,r],arguments.length),typeof e=="function"&&(r=e,e=void 0),O(this,xt,t||u(this,xt,"f")||"completion","f"),!e&&e!==!1&&(e="generate completion script"),this.command(u(this,xt,"f"),e),r&&u(this,Ft,"f").registerFunction(r),this}command(t,e,r,i,s,o){return A("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,r,i,s,o],arguments.length),u(this,ut,"f").addHandler(t,e,r,i,s,o),this}commands(t,e,r,i,s,o){return this.command(t,e,r,i,s,o)}commandDir(t,e){A("<string> [object]",[t,e],arguments.length);let r=u(this,Cn,"f")||u(this,M,"f").require;return u(this,ut,"f").addDirectory(t,r,u(this,M,"f").getCallerFile(),e),this}count(t){return A("<array|string>",[t],arguments.length),this[Qt]("count",t),this[pe](t),this}default(t,e,r){return A("<object|string|array> [*] [string]",[t,e,r],arguments.length),r&&(Br(t,u(this,M,"f")),u(this,P,"f").defaultDescription[t]=r),typeof e=="function"&&(Br(t,u(this,M,"f")),u(this,P,"f").defaultDescription[t]||(u(this,P,"f").defaultDescription[t]=u(this,$,"f").functionDescription(e)),e=e.call()),this[Ie](this.default.bind(this),"default",t,e),this}defaults(t,e,r){return this.default(t,e,r)}demandCommand(t=1,e,r,i){return A("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,r,i],arguments.length),typeof e!="number"&&(r=e,e=1/0),this.global("_",!1),u(this,P,"f").demandedCommands._={min:t,max:e,minMsg:r,maxMsg:i},this}demand(t,e,r){return Array.isArray(e)?(e.forEach(i=>{gt(r,!0,u(this,M,"f")),this.demandOption(i,r)}),e=1/0):typeof e!="number"&&(r=e,e=1/0),typeof t=="number"?(gt(r,!0,u(this,M,"f")),this.demandCommand(t,e,r,r)):Array.isArray(t)?t.forEach(i=>{gt(r,!0,u(this,M,"f")),this.demandOption(i,r)}):typeof r=="string"?this.demandOption(t,r):(r===!0||typeof r>"u")&&this.demandOption(t),this}demandOption(t,e){return A("<object|string|array> [string]",[t,e],arguments.length),this[Ie](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return A("<string> [string|boolean]",[t,e],arguments.length),u(this,P,"f").deprecatedOptions[t]=e,this}describe(t,e){return A("<object|string|array> [string]",[t,e],arguments.length),this[Lr](t,!0),u(this,$,"f").describe(t,e),this}detectLocale(t){return A("<boolean>",[t],arguments.length),O(this,oe,t,"f"),this}env(t){return A("[string|boolean]",[t],arguments.length),t===!1?delete u(this,P,"f").envPrefix:u(this,P,"f").envPrefix=t||"",this}epilogue(t){return A("<string>",[t],arguments.length),u(this,$,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return A("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach(r=>this.example(...r)):u(this,$,"f").example(t,e),this}exit(t,e){O(this,wt,!0,"f"),O(this,Kt,e,"f"),u(this,Bt,"f")&&u(this,M,"f").process.exit(t)}exitProcess(t=!0){return A("[boolean]",[t],arguments.length),O(this,Bt,t,"f"),this}fail(t){if(A("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new ot("Invalid first argument. Expected function or boolean 'false'");return u(this,$,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return A("<array> [function]",[t,e],arguments.length),e?u(this,Ft,"f").getCompletion(t,e):new Promise((r,i)=>{u(this,Ft,"f").getCompletion(t,(s,o)=>{s?i(s):r(o)})})}getDemandedOptions(){return A([],0),u(this,P,"f").demandedOptions}getDemandedCommands(){return A([],0),u(this,P,"f").demandedCommands}getDeprecatedOptions(){return A([],0),u(this,P,"f").deprecatedOptions}getDetectLocale(){return u(this,oe,"f")}getExitProcess(){return u(this,Bt,"f")}getGroups(){return Object.assign({},u(this,Tt,"f"),u(this,ce,"f"))}getHelp(){if(O(this,wt,!0,"f"),!u(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let e=this[He](u(this,Jt,"f"),void 0,void 0,0,!0);if(Q(e))return e.then(()=>u(this,$,"f").help())}let t=u(this,ut,"f").runDefaultBuilderOn(this);if(Q(t))return t.then(()=>u(this,$,"f").help())}return Promise.resolve(u(this,$,"f").help())}getOptions(){return u(this,P,"f")}getStrict(){return u(this,le,"f")}getStrictCommands(){return u(this,fe,"f")}getStrictOptions(){return u(this,De,"f")}global(t,e){return A("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),e!==!1?u(this,P,"f").local=u(this,P,"f").local.filter(r=>t.indexOf(r)===-1):t.forEach(r=>{u(this,P,"f").local.includes(r)||u(this,P,"f").local.push(r)}),this}group(t,e){A("<string|array> <string>",[t,e],arguments.length);let r=u(this,ce,"f")[e]||u(this,Tt,"f")[e];u(this,ce,"f")[e]&&delete u(this,ce,"f")[e];let i={};return u(this,Tt,"f")[e]=(r||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return A("<string>",[t],arguments.length),u(this,P,"f").hiddenOptions.push(t),this}implies(t,e){return A("<string|object> [number|string|array]",[t,e],arguments.length),u(this,it,"f").implies(t,e),this}locale(t){return A("[string]",[t],arguments.length),t===void 0?(this[jr](),u(this,M,"f").y18n.getLocale()):(O(this,oe,!1,"f"),u(this,M,"f").y18n.setLocale(t),this)}middleware(t,e,r){return u(this,_t,"f").addMiddleware(t,!!e,r)}nargs(t,e){return A("<string|object|array> [number]",[t,e],arguments.length),this[Ie](this.nargs.bind(this),"narg",t,e),this}normalize(t){return A("<array|string>",[t],arguments.length),this[Qt]("normalize",t),this}number(t){return A("<array|string>",[t],arguments.length),this[Qt]("number",t),this[pe](t),this}option(t,e){if(A("<string|object> [object]",[t,e],arguments.length),typeof t=="object")Object.keys(t).forEach(r=>{this.options(r,t[r])});else{typeof e!="object"&&(e={}),this[pe](t),u(this,$t,"f")&&(t==="version"||e?.alias==="version")&&this[qs](['"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"),
|
|
80
|
-
`,"f"),
|
|
81
|
-
`,"f"),O(this,Dt,u(this,Dt,"f")+t.join(" "),"f")}}}[vr](t){_e(u(this,P,"f")).forEach(e=>{if((i=>i==="configObjects")(e))return;let r=u(this,P,"f")[e];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):typeof r=="object"&&delete r[t]}),delete u(this,$,"f").getDescriptions()[t]}[qs](t,e,r){u(this,mn,"f")[r]||(u(this,M,"f").process.emitWarning(t,e),u(this,mn,"f")[r]=!0)}[Gs](){u(this,gn,"f").push({options:u(this,P,"f"),configObjects:u(this,P,"f").configObjects.slice(0),exitProcess:u(this,Bt,"f"),groups:u(this,Tt,"f"),strict:u(this,le,"f"),strictCommands:u(this,fe,"f"),strictOptions:u(this,De,"f"),completionCommand:u(this,xt,"f"),output:u(this,Dt,"f"),exitError:u(this,Kt,"f"),hasOutput:u(this,wt,"f"),parsed:this.parsed,parseFn:u(this,yt,"f"),parseContext:u(this,ae,"f")}),u(this,$,"f").freeze(),u(this,it,"f").freeze(),u(this,ut,"f").freeze(),u(this,_t,"f").freeze()}[Ys](){let t="",e;return/\b(node|iojs|electron)(\.exe)?$/.test(u(this,M,"f").process.argv()[0])?e=u(this,M,"f").process.argv().slice(1,2):e=u(this,M,"f").process.argv().slice(0,1),t=e.map(r=>{let i=this[oo](u(this,se,"f"),r);return r.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<r.length?i:r}).join(" ").trim(),u(this,M,"f").getEnv("_")&&u(this,M,"f").getProcessArgvBin()===u(this,M,"f").getEnv("_")&&(t=u(this,M,"f").getEnv("_").replace(`${u(this,M,"f").path.dirname(u(this,M,"f").process.execPath())}/`,"")),t}[he](){return u(this,En,"f")}[Ks](){return u(this,xn,"f")}[jr](){if(!u(this,oe,"f"))return;let t=u(this,M,"f").getEnv("LC_ALL")||u(this,M,"f").getEnv("LC_MESSAGES")||u(this,M,"f").getEnv("LANG")||u(this,M,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[Js](){return this[Mr]().version||"unknown"}[Qs](t){let e=t["--"]?t["--"]:t._;for(let r=0,i;(i=e[r])!==void 0;r++)u(this,M,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(e[r]=Number(i));return t}[Mr](t){let e=t||"*";if(u(this,Pe,"f")[e])return u(this,Pe,"f")[e];let r={};try{let i=t||u(this,M,"f").mainFilename;u(this,M,"f").path.extname(i)&&(i=u(this,M,"f").path.dirname(i));let s=u(this,M,"f").findUp(i,(o,a)=>{if(a.includes("package.json"))return"package.json"});gt(s,void 0,u(this,M,"f")),r=JSON.parse(u(this,M,"f").readFileSync(s,"utf8"))}catch{}return u(this,Pe,"f")[e]=r||{},u(this,Pe,"f")[e]}[Qt](t,e){e=[].concat(e),e.forEach(r=>{r=this[Nr](r),u(this,P,"f")[t].push(r)})}[Ie](t,e,r,i){this[$r](t,e,r,i,(s,o,a)=>{u(this,P,"f")[s][o]=a})}[Tr](t,e,r,i){this[$r](t,e,r,i,(s,o,a)=>{u(this,P,"f")[s][o]=(u(this,P,"f")[s][o]||[]).concat(a)})}[$r](t,e,r,i,s){if(Array.isArray(r))r.forEach(o=>{t(o,i)});else if((o=>typeof o=="object")(r))for(let o of _e(r))t(o,r[o]);else s(e,this[Nr](r),i)}[Nr](t){return t==="__proto__"?"___proto___":t}[Lr](t,e){return this[Ie](this[Lr].bind(this),"key",t,e),this}[Ur](){var t,e,r,i,s,o,a,f,g,p,l,m;let E=u(this,gn,"f").pop();gt(E,void 0,u(this,M,"f"));let C;t=this,e=this,r=this,i=this,s=this,o=this,a=this,f=this,g=this,p=this,l=this,m=this,{options:{set value(b){O(t,P,b,"f")}}.value,configObjects:C,exitProcess:{set value(b){O(e,Bt,b,"f")}}.value,groups:{set value(b){O(r,Tt,b,"f")}}.value,output:{set value(b){O(i,Dt,b,"f")}}.value,exitError:{set value(b){O(s,Kt,b,"f")}}.value,hasOutput:{set value(b){O(o,wt,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){O(a,le,b,"f")}}.value,strictCommands:{set value(b){O(f,fe,b,"f")}}.value,strictOptions:{set value(b){O(g,De,b,"f")}}.value,completionCommand:{set value(b){O(p,xt,b,"f")}}.value,parseFn:{set value(b){O(l,yt,b,"f")}}.value,parseContext:{set value(b){O(m,ae,b,"f")}}.value}=E,u(this,P,"f").configObjects=C,u(this,$,"f").unfreeze(),u(this,it,"f").unfreeze(),u(this,ut,"f").unfreeze(),u(this,_t,"f").unfreeze()}[Zs](t,e){return ie(e,r=>(t(r),r))}getInternalMethods(){return{getCommandInstance:this[Xs].bind(this),getContext:this[ks].bind(this),getHasOutput:this[to].bind(this),getLoggerInstance:this[eo].bind(this),getParseContext:this[no].bind(this),getParserConfiguration:this[he].bind(this),getUsageConfiguration:this[Ks].bind(this),getUsageInstance:this[ro].bind(this),getValidationInstance:this[io].bind(this),hasParseCallback:this[wn].bind(this),isGlobalContext:this[so].bind(this),postProcess:this[de].bind(this),reset:this[zr].bind(this),runValidation:this[Rr].bind(this),runYargsParserAndExecuteCommands:this[He].bind(this),setHasOutput:this[uo].bind(this)}}[Xs](){return u(this,ut,"f")}[ks](){return u(this,Ve,"f")}[to](){return u(this,wt,"f")}[eo](){return u(this,ue,"f")}[no](){return u(this,ae,"f")||{}}[ro](){return u(this,$,"f")}[io](){return u(this,it,"f")}[wn](){return!!u(this,yt,"f")}[so](){return u(this,Fn,"f")}[de](t,e,r,i){return r||Q(t)||(e||(t=this[Vs](t)),(this[he]()["parse-positional-numbers"]||this[he]()["parse-positional-numbers"]===void 0)&&(t=this[Qs](t)),i&&(t=re(t,this,u(this,_t,"f").getMiddleware(),!1))),t}[zr](t={}){O(this,P,u(this,P,"f")||{},"f");let e={};e.local=u(this,P,"f").local||[],e.configObjects=u(this,P,"f").configObjects||[];let r={};e.local.forEach(o=>{r[o]=!0,(t[o]||[]).forEach(a=>{r[a]=!0})}),Object.assign(u(this,ce,"f"),Object.keys(u(this,Tt,"f")).reduce((o,a)=>{let f=u(this,Tt,"f")[a].filter(g=>!(g in r));return f.length>0&&(o[a]=f),o},{})),O(this,Tt,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(o=>{e[o]=(u(this,P,"f")[o]||[]).filter(a=>!r[a])}),s.forEach(o=>{e[o]=Gt(u(this,P,"f")[o],a=>!r[a])}),e.envPrefix=u(this,P,"f").envPrefix,O(this,P,e,"f"),O(this,$,u(this,$,"f")?u(this,$,"f").reset(r):Ts(this,u(this,M,"f")),"f"),O(this,it,u(this,it,"f")?u(this,it,"f").reset(r):Rs(this,u(this,$,"f"),u(this,M,"f")),"f"),O(this,ut,u(this,ut,"f")?u(this,ut,"f").reset():vs(u(this,$,"f"),u(this,it,"f"),u(this,_t,"f"),u(this,M,"f")),"f"),u(this,Ft,"f")||O(this,Ft,Ls(this,u(this,$,"f"),u(this,ut,"f"),u(this,M,"f")),"f"),u(this,_t,"f").reset(),O(this,xt,null,"f"),O(this,Dt,"","f"),O(this,Kt,null,"f"),O(this,wt,!1,"f"),this.parsed=!1,this}[oo](t,e){return u(this,M,"f").path.relative(t,e)}[He](t,e,r,i=0,s=!1){var o,a,f,g;let p=!!r||s;t=t||u(this,Jt,"f"),u(this,P,"f").__=u(this,M,"f").y18n.__,u(this,P,"f").configuration=this[he]();let l=!!u(this,P,"f").configuration["populate--"],m=Object.assign({},u(this,P,"f").configuration,{"populate--":!0}),E=u(this,M,"f").Parser.detailed(t,Object.assign({},u(this,P,"f"),{configuration:{"parse-positional-numbers":!1,...m}})),C=Object.assign(E.argv,u(this,ae,"f")),b,d=E.aliases,v=!1,z=!1;Object.keys(C).forEach(L=>{L===u(this,St,"f")&&C[L]?v=!0:L===u(this,$t,"f")&&C[L]&&(z=!0)}),C.$0=this.$0,this.parsed=E,i===0&&u(this,$,"f").clearCachedHelpMessage();try{if(this[jr](),e)return this[de](C,l,!!r,!1);u(this,St,"f")&&[u(this,St,"f")].concat(d[u(this,St,"f")]||[]).filter(H=>H.length>1).includes(""+C._[C._.length-1])&&(C._.pop(),v=!0),O(this,Fn,!1,"f");let L=u(this,ut,"f").getCommands(),U=!((o=u(this,Ft,"f"))===null||o===void 0)&&o.completionKey?[(a=u(this,Ft,"f"))===null||a===void 0?void 0:a.completionKey,...(g=this.getAliases()[(f=u(this,Ft,"f"))===null||f===void 0?void 0:f.completionKey])!==null&&g!==void 0?g:[]].some(W=>Object.prototype.hasOwnProperty.call(C,W)):!1,R=v||U||s;if(C._.length){if(L.length){let W;for(let H=i||0,K;C._[H]!==void 0;H++)if(K=String(C._[H]),L.includes(K)&&K!==u(this,xt,"f")){let dt=u(this,ut,"f").runCommand(K,this,E,H+1,s,v||z||s);return this[de](dt,l,!!r,!1)}else if(!W&&K!==u(this,xt,"f")){W=K;break}!u(this,ut,"f").hasDefaultCommand()&&u(this,bn,"f")&&W&&!R&&u(this,it,"f").recommendCommands(W,L)}u(this,xt,"f")&&C._.includes(u(this,xt,"f"))&&!U&&(u(this,Bt,"f")&&Yt(!0),this.showCompletionScript(),this.exit(0))}if(u(this,ut,"f").hasDefaultCommand()&&!R){let W=u(this,ut,"f").runCommand(null,this,E,0,s,v||z||s);return this[de](W,l,!!r,!1)}if(U){u(this,Bt,"f")&&Yt(!0),t=[].concat(t);let W=t.slice(t.indexOf(`--${u(this,Ft,"f").completionKey}`)+1);return u(this,Ft,"f").getCompletion(W,(H,K)=>{if(H)throw new ot(H.message);(K||[]).forEach(dt=>{u(this,ue,"f").log(dt)}),this.exit(0)}),this[de](C,!l,!!r,!1)}if(u(this,wt,"f")||(v?(u(this,Bt,"f")&&Yt(!0),p=!0,this.showHelp(W=>{u(this,ue,"f").log(W),this.exit(0)})):z&&(u(this,Bt,"f")&&Yt(!0),p=!0,u(this,$,"f").showVersion("log"),this.exit(0))),!p&&u(this,P,"f").skipValidation.length>0&&(p=Object.keys(C).some(W=>u(this,P,"f").skipValidation.indexOf(W)>=0&&C[W]===!0)),!p){if(E.error)throw new ot(E.error.message);if(!U){let W=this[Rr](d,{},E.error);r||(b=re(C,this,u(this,_t,"f").getMiddleware(),!0)),b=this[Zs](W,b??C),Q(b)&&!r&&(b=b.then(()=>re(C,this,u(this,_t,"f").getMiddleware(),!1)))}}}catch(L){if(L instanceof ot)u(this,$,"f").fail(L.message,L);else throw L}return this[de](b??C,l,!!r,!0)}[Rr](t,e,r,i){let s={...this.getDemandedOptions()};return o=>{if(r)throw new ot(r.message);u(this,it,"f").nonOptionCount(o),u(this,it,"f").requiredArguments(o,s);let a=!1;u(this,fe,"f")&&(a=u(this,it,"f").unknownCommands(o)),u(this,le,"f")&&!a?u(this,it,"f").unknownArguments(o,t,e,!!i):u(this,De,"f")&&u(this,it,"f").unknownArguments(o,t,{},!1,!1),u(this,it,"f").limitedChoices(o),u(this,it,"f").implications(o),u(this,it,"f").conflicting(o)}}[uo](){O(this,wt,!0,"f")}[pe](t){if(typeof t=="string")u(this,P,"f").key[t]=!0;else for(let e of t)u(this,P,"f").key[e]=!0}};function js(n){return!!n&&typeof n.getInternalMethods=="function"}var _c=ao(Os),co=_c;var ho=me(fo(),1),Ic={},Sc=process.argv.slice(2),Do=new ho.default(co),Hr=console.log;async function qr(n){Do.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((i,s,o)=>{if(s!=null)throw s;Sc.length>0&&Hr(i),o.showHelp()});let{data:t,argv:e}=await Do.parse(n);t!=null&&(Hr(t),process.exit(0)),await(await po(vi(e.listen),e)).start(),e.quiet!==!0&&Hr("daemon has started")}async function po(n,t){throw new Error("Not implemented yet")}fr(Ic)&&qr(process.argv).catch(n=>{console.error(n),process.exit(1)});return bo(Pc);})();
|
|
74
|
+
`;var vn=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(Fu(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=qe(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),Pa(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 Ia(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?Wi:Ri,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 Vi(u,e,t,n){return new vn(u,e,t,n)}function Pa(u){return u.length<3}function Ia(u){return u.length>3}function Hi(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 qi=["$0","--","_"];function Gi(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?`
|
|
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=>{!qi.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=>{qi.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=Hi(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=Ge(s,p=>!c[p]),l=Ge(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 Ma={},jn=[],Vt;function pu(u,e,t,n){Vt=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=ja(e,u.extends);else try{s=Ma.resolve(u.extends)}catch{return u}va(s),jn.push(s),r=i?JSON.parse(Vt.readFileSync(s,"utf8")):n.require(u.extends),delete u.extends,r=pu(r,Vt.path.dirname(s),t,Vt)}return jn=[],t?Yi(r,u):Object.assign({},r,u)}function va(u){if(jn.indexOf(u)>-1)throw new se(`Circular extended configurations: '${u}'.`)}function ja(u,e){return Vt.path.resolve(u,e)}function Yi(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]=Yi(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,st,Ht,Ce,Be,mu,Ke,ot,Cu,_e,Eu,Oe,Me,Ae,Se,gu,Dt,fe,P,bu,Bu,xe,at,Pt,ct,Je,Au,M,lt,ft,ht,$,xu,Te,re;function hs(u){return(e=[],t=u.process.cwd(),n)=>{let r=new Hn(e,t,n,u);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}}var Ki=Symbol("copyDoubleDash"),Ji=Symbol("copyDoubleDash"),Mn=Symbol("deleteFromParserHintObject"),Qi=Symbol("emitWarning"),Zi=Symbol("freeze"),Xi=Symbol("getDollarZero"),Ft=Symbol("getParserConfiguration"),ki=Symbol("getUsageConfiguration"),Tn=Symbol("guessLocale"),es=Symbol("guessVersion"),ts=Symbol("parsePositionalNumbers"),$n=Symbol("pkgUp"),Qe=Symbol("populateParserHintArray"),It=Symbol("populateParserHintSingleValueDictionary"),Nn=Symbol("populateParserHintArrayDictionary"),Ln=Symbol("populateParserHintDictionary"),Un=Symbol("sanitizeKey"),zn=Symbol("setKey"),Rn=Symbol("unfreeze"),us=Symbol("validateAsync"),ns=Symbol("getCommandInstance"),rs=Symbol("getContext"),is=Symbol("getHasOutput"),ss=Symbol("getLoggerInstance"),os=Symbol("getParseContext"),Ds=Symbol("getUsageInstance"),as=Symbol("getValidationInstance"),wu=Symbol("hasParseCallback"),cs=Symbol("isGlobalContext"),dt=Symbol("postProcess"),ls=Symbol("rebase"),Wn=Symbol("reset"),qt=Symbol("runYargsParserAndExecuteCommands"),Vn=Symbol("runValidation"),fs=Symbol("setHasOutput"),pt=Symbol("kTrackManuallySetKeys"),Ta="en_US",Hn=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,oe.set(this,void 0),st.set(this,void 0),Ht.set(this,{commands:[],fullCommands:[]}),Ce.set(this,null),Be.set(this,null),mu.set(this,"show-hidden"),Ke.set(this,null),ot.set(this,!0),Cu.set(this,{}),_e.set(this,!0),Eu.set(this,[]),Oe.set(this,void 0),Me.set(this,{}),Ae.set(this,!1),Se.set(this,null),gu.set(this,!0),Dt.set(this,void 0),fe.set(this,""),P.set(this,void 0),bu.set(this,void 0),Bu.set(this,{}),xe.set(this,null),at.set(this,null),Pt.set(this,{}),ct.set(this,{}),Je.set(this,void 0),Au.set(this,!1),M.set(this,void 0),lt.set(this,!1),ft.set(this,!1),ht.set(this,!1),$.set(this,void 0),xu.set(this,{}),Te.set(this,null),re.set(this,void 0),y(this,M,r,"f"),y(this,Je,e,"f"),y(this,st,t,"f"),y(this,bu,n,"f"),y(this,Oe,new hu(this),"f"),this.$0=this[Xi](),this[Wn](),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,mu,"f"),y(this,Dt,this[Ji](),"f"),o(this,M,"f").y18n.setLocale(Ta)}addHelpOpt(e,t){let n="help";return w("[string|boolean] [string]",[e,t],arguments.length),o(this,Se,"f")&&(this[Mn](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,mu,"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[Nn](this.alias.bind(this),"alias",e,t),this}array(e){return w("<array|string>",[e],arguments.length),this[Qe]("array",e),this[pt](e),this}boolean(e){return w("<array|string>",[e],arguments.length),this[Qe]("boolean",e),this[pt](e),this}check(e,t){return w("<function> [boolean]",[e,t],arguments.length),this.middleware((n,r)=>it(()=>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[Nn](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:it(()=>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=pu(e,o(this,st,"f"),this[Ft]()["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,bu,"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[Qe]("count",e),this[pt](e),this}default(e,t,n){return w("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(Sn(e,o(this,M,"f")),o(this,P,"f").defaultDescription[e]=n),typeof t=="function"&&(Sn(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[It](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[It](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[zn](e,!0),o(this,$,"f").describe(e,t),this}detectLocale(e){return w("<boolean>",[e],arguments.length),y(this,ot,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,Ke,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,ot,"f")}getExitProcess(){return o(this,_e,"f")}getGroups(){return Object.assign({},o(this,Me,"f"),o(this,ct,"f"))}getHelp(){if(y(this,Ae,!0,"f"),!o(this,$,"f").hasCachedHelpMessage()){if(!this.parsed){let t=this[qt](o(this,Je,"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,lt,"f")}getStrictCommands(){return o(this,ft,"f")}getStrictOptions(){return o(this,ht,"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,ct,"f")[t]||o(this,Me,"f")[t];o(this,ct,"f")[t]&&delete o(this,ct,"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[Tn](),o(this,M,"f").y18n.getLocale()):(y(this,ot,!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[It](this.nargs.bind(this),"narg",e,t),this}normalize(e){return w("<array|string>",[e],arguments.length),this[Qe]("normalize",e),this}number(e){return w("<array|string>",[e],arguments.length),this[Qe]("number",e),this[pt](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[pt](e),o(this,Te,"f")&&(e==="version"||t?.alias==="version")&&this[Qi](['"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[Zi](),typeof e>"u"&&(e=o(this,Je,"f")),typeof t=="object"&&(y(this,at,t,"f"),t=n),typeof t=="function"&&(y(this,xe,t,"f"),t=!1),t||y(this,Je,e,"f"),o(this,xe,"f")&&y(this,_e,!1,"f");let r=this[qt](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,Ke,"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[Rn](),this.parsed=i}):(o(this,xe,"f")&&o(this,xe,"f").call(this,o(this,Ke,"f"),r,o(this,fe,"f")),this[Rn](),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,Bu,e,"f"),this}pkgConf(e,t){w("<string> [string]",[e,t],arguments.length);let n=null,r=this[$n](t||o(this,st,"f"));return r[e]&&typeof r[e]=="object"&&(n=pu(r[e],t||o(this,st,"f"),this[Ft]()["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=Ge(t,(s,D)=>s==="type"&&!["string","number","boolean"].includes(D)?!1:n.includes(s));let r=o(this,Ht,"f").fullCommands[o(this,Ht,"f").fullCommands.length-1],i=r?o(this,oe,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Ot(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,Au,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[It](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,Dt,"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[qt](o(this,Je,"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[Qe]("skipValidation",e),this}strict(e){return w("[boolean]",[e],arguments.length),y(this,lt,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,ht,e!==!1,"f"),this}string(e){return w("<array|string>",[e],arguments.length),this[Qe]("string",e),this[pt](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,ot,!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,xu,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[Mn](o(this,Te,"f")),o(this,$,"f").version(void 0),y(this,Te,null,"f")),arguments.length===0)n=this[es](),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,st=new WeakMap,Ht=new WeakMap,Ce=new WeakMap,Be=new WeakMap,mu=new WeakMap,Ke=new WeakMap,ot=new WeakMap,Cu=new WeakMap,_e=new WeakMap,Eu=new WeakMap,Oe=new WeakMap,Me=new WeakMap,Ae=new WeakMap,Se=new WeakMap,gu=new WeakMap,Dt=new WeakMap,fe=new WeakMap,P=new WeakMap,bu=new WeakMap,Bu=new WeakMap,xe=new WeakMap,at=new WeakMap,Pt=new WeakMap,ct=new WeakMap,Je=new WeakMap,Au=new WeakMap,M=new WeakMap,lt=new WeakMap,ft=new WeakMap,ht=new WeakMap,$=new WeakMap,xu=new WeakMap,Te=new WeakMap,re=new WeakMap,Ki)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Ji](){return{log:(...e)=>{this[wu]()||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[wu]()||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")}}}[Mn](e){Ot(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]}[Qi](e,t,n){o(this,Cu,"f")[n]||(o(this,M,"f").process.emitWarning(e,t),o(this,Cu,"f")[n]=!0)}[Zi](){o(this,Eu,"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,lt,"f"),strictCommands:o(this,ft,"f"),strictOptions:o(this,ht,"f"),completionCommand:o(this,Be,"f"),output:o(this,fe,"f"),exitError:o(this,Ke,"f"),hasOutput:o(this,Ae,"f"),parsed:this.parsed,parseFn:o(this,xe,"f"),parseContext:o(this,at,"f")}),o(this,$,"f").freeze(),o(this,re,"f").freeze(),o(this,oe,"f").freeze(),o(this,Oe,"f").freeze()}[Xi](){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[ls](o(this,st,"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}[Ft](){return o(this,Bu,"f")}[ki](){return o(this,xu,"f")}[Tn](){if(!o(this,ot,"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(/[.:].*/,""))}[es](){return this[$n]().version||"unknown"}[ts](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}[$n](e){let t=e||"*";if(o(this,Pt,"f")[t])return o(this,Pt,"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,Pt,"f")[t]=n||{},o(this,Pt,"f")[t]}[Qe](e,t){t=[].concat(t),t.forEach(n=>{n=this[Un](n),o(this,P,"f")[e].push(n)})}[It](e,t,n,r){this[Ln](e,t,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=D})}[Nn](e,t,n,r){this[Ln](e,t,n,r,(i,s,D)=>{o(this,P,"f")[i][s]=(o(this,P,"f")[i][s]||[]).concat(D)})}[Ln](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 Ot(n))e(s,n[s]);else i(t,this[Un](n),r)}[Un](e){return e==="__proto__"?"___proto___":e}[zn](e,t){return this[It](this[zn].bind(this),"key",e,t),this}[Rn](){var e,t,n,r,i,s,D,l,m,d,c,p;let g=o(this,Eu,"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,Ke,b,"f")}}.value,hasOutput:{set value(b){y(s,Ae,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){y(D,lt,b,"f")}}.value,strictCommands:{set value(b){y(l,ft,b,"f")}}.value,strictOptions:{set value(b){y(m,ht,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,at,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()}[us](e,t){return it(t,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[ns].bind(this),getContext:this[rs].bind(this),getHasOutput:this[is].bind(this),getLoggerInstance:this[ss].bind(this),getParseContext:this[os].bind(this),getParserConfiguration:this[Ft].bind(this),getUsageConfiguration:this[ki].bind(this),getUsageInstance:this[Ds].bind(this),getValidationInstance:this[as].bind(this),hasParseCallback:this[wu].bind(this),isGlobalContext:this[cs].bind(this),postProcess:this[dt].bind(this),reset:this[Wn].bind(this),runValidation:this[Vn].bind(this),runYargsParserAndExecuteCommands:this[qt].bind(this),setHasOutput:this[fs].bind(this)}}[ns](){return o(this,oe,"f")}[rs](){return o(this,Ht,"f")}[is](){return o(this,Ae,"f")}[ss](){return o(this,Dt,"f")}[os](){return o(this,at,"f")||{}}[Ds](){return o(this,$,"f")}[as](){return o(this,re,"f")}[wu](){return!!o(this,xe,"f")}[cs](){return o(this,gu,"f")}[dt](e,t,n,r){return n||Q(e)||(t||(e=this[Ki](e)),(this[Ft]()["parse-positional-numbers"]||this[Ft]()["parse-positional-numbers"]===void 0)&&(e=this[ts](e)),r&&(e=rt(e,this,o(this,Oe,"f").getMiddleware(),!1))),e}[Wn](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,ct,"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]=Ge(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):zi(this,o(this,M,"f")),"f"),y(this,re,o(this,re,"f")?o(this,re,"f").reset(n):Gi(this,o(this,$,"f"),o(this,M,"f")),"f"),y(this,oe,o(this,oe,"f")?o(this,oe,"f").reset():Ni(o(this,$,"f"),o(this,re,"f"),o(this,Oe,"f"),o(this,M,"f")),"f"),o(this,Ce,"f")||y(this,Ce,Vi(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,Ke,null,"f"),y(this,Ae,!1,"f"),this.parsed=!1,this}[ls](e,t){return o(this,M,"f").path.relative(e,t)}[qt](e,t,n,r=0,i=!1){var s,D,l,m;let d=!!n||i;e=e||o(this,Je,"f"),o(this,P,"f").__=o(this,M,"f").y18n.__,o(this,P,"f").configuration=this[Ft]();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,at,"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[Tn](),t)return this[dt](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,gu,!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[dt](Fe,c,!!n,!1)}else if(!W&&K!==o(this,Be,"f")){W=K;break}!o(this,oe,"f").hasDefaultCommand()&&o(this,Au,"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")&&Ye(!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[dt](W,c,!!n,!1)}if(U){o(this,_e,"f")&&Ye(!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,Dt,"f").log(Fe)}),this.exit(0)}),this[dt](E,!c,!!n,!1)}if(o(this,Ae,"f")||(v?(o(this,_e,"f")&&Ye(!0),d=!0,this.showHelp(W=>{o(this,Dt,"f").log(W),this.exit(0)})):z&&(o(this,_e,"f")&&Ye(!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[Vn](F,{},g.error);n||(b=rt(E,this,o(this,Oe,"f").getMiddleware(),!0)),b=this[us](W,b??E),Q(b)&&!n&&(b=b.then(()=>rt(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[dt](b??E,c,!!n,!0)}[Vn](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,lt,"f")&&!D?o(this,re,"f").unknownArguments(s,e,t,!!r):o(this,ht,"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")}[pt](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 Li(u){return!!u&&typeof u.getInternalMethods=="function"}var $a=hs(Ii),Fs=$a;var Cs=ke(ps(),1),Ua={},Na=process.argv.slice(2),ms=new Cs.default(Fs),Gn=console.log;async function Yn(u){ms.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;Na.length>0&&Gn(r),s.showHelp()});let{data:e,argv:t}=await ms.parse(u);e!=null&&(Gn(e),process.exit(0)),await(await Es(Tr(t.listen),t)).start(),t.quiet!==!0&&Gn("daemon has started")}async function Es(u,e){throw new Error("Not implemented yet")}fn(Ua)&&Yn(process.argv).catch(u=>{console.error(u),process.exit(1)});return ws(La);})();
|
|
82
82
|
/*! Bundled license information:
|
|
83
83
|
|
|
84
84
|
yargs-parser/build/lib/string-utils.js:
|