@stacksjs/bunpress 0.1.3 → 0.1.4

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/bin/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{e as a,f as b}from"../chunk-z0redasq.js";import"../chunk-1ymh7yt2.js";export{a as findMarkdownFiles,b as buildDocs};
3
+ import{e as a,f as b}from"../chunk-bgzqswwb.js";import"../chunk-kfzscenj.js";import"../chunk-h6ac3d60.js";export{a as findMarkdownFiles,b as buildDocs};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{L as W0,g as h,i as b}from"./chunk-1ymh7yt2.js";var{Glob:F0}=globalThis.Bun;import{copyFile as j$,mkdir as M0,readdir as H$}from"fs/promises";import{join as d}from"path";import v from"process";import{EventEmitter as k0}from"events";import E6 from"process";import U6 from"process";import o from"process";import c0,{stdin as I$,stdout as w$}from"process";import k6,{stdin as p0,stdout as n0}from"process";import i0 from"readline";var{create:I0,getPrototypeOf:w0,defineProperty:A6,getOwnPropertyNames:A0}=Object,E0=Object.prototype.hasOwnProperty,T=(Z,$,Q)=>{Q=Z!=null?I0(w0(Z)):{};let Y=$||!Z||!Z.__esModule?A6(Q,"default",{value:Z,enumerable:!0}):Q;for(let X of A0(Z))if(!E0.call(Y,X))A6(Y,X,{get:()=>Z[X],enumerable:!0});return Y},V6=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports),P0=V6((Z,$)=>{function Q(X){return X==null?[]:Array.isArray(X)?X:[X]}function Y(X,J,z,K){var H,G=X[J],q=~K.string.indexOf(J)?z==null||z===!0?"":String(z):typeof z==="boolean"?z:~K.boolean.indexOf(J)?z==="false"?!1:z==="true"||(X._.push((H=+z,H*0===0)?H:z),!!z):(H=+z,H*0===0)?H:z;X[J]=G==null?q:Array.isArray(G)?G.concat(q):[G,q]}$.exports=function(X,J){X=X||[],J=J||{};var z,K,H,G,q,U={_:[]},V=0,j=0,W=0,L=X.length;let w=J.alias!==void 0,M=J.unknown!==void 0,N=J.default!==void 0;if(J.alias=J.alias||{},J.string=Q(J.string),J.boolean=Q(J.boolean),w)for(z in J.alias){K=J.alias[z]=Q(J.alias[z]);for(V=0;V<K.length;V++)(J.alias[K[V]]=K.concat(z)).splice(V,1)}for(V=J.boolean.length;V-- >0;){K=J.alias[J.boolean[V]]||[];for(j=K.length;j-- >0;)J.boolean.push(K[j])}for(V=J.string.length;V-- >0;){K=J.alias[J.string[V]]||[];for(j=K.length;j-- >0;)J.string.push(K[j])}if(N){for(z in J.default)if(G=typeof J.default[z],K=J.alias[z]=J.alias[z]||[],J[G]!==void 0){J[G].push(z);for(V=0;V<K.length;V++)J[G].push(K[V])}}let m=M?Object.keys(J.alias):[];for(V=0;V<L;V++){if(H=X[V],H==="--"){U._=U._.concat(X.slice(++V));break}for(j=0;j<H.length;j++)if(H.charCodeAt(j)!==45)break;if(j===0)U._.push(H);else if(H.substring(j,j+3)==="no-"){if(G=H.substring(j+3),M&&!~m.indexOf(G))return J.unknown(H);U[G]=!1}else{for(W=j+1;W<H.length;W++)if(H.charCodeAt(W)===61)break;G=H.substring(j,W),q=H.substring(++W)||(V+1===L||(""+X[V+1]).charCodeAt(0)===45||X[++V]),K=j===2?[G]:G;for(W=0;W<K.length;W++){if(G=K[W],M&&!~m.indexOf(G))return J.unknown("-".repeat(j)+G);Y(U,G,W+1<K.length||q,J)}}}if(N){for(z in J.default)if(U[z]===void 0)U[z]=J.default[z]}if(w)for(z in U){K=J.alias[z]||[];while(K.length>0)U[K.shift()]=U[z]}return U}}),A=V6((Z,$)=>{var Q=process||{},Y=Q.argv||[],X=Q.env||{},J=!(!!X.NO_COLOR||Y.includes("--no-color"))&&(!!X.FORCE_COLOR||Y.includes("--color")||Q.platform==="win32"||(Q.stdout||{}).isTTY&&X.TERM!=="dumb"||!!X.CI),z=(G,q,U=G)=>(V)=>{let j=""+V,W=j.indexOf(q,G.length);return~W?G+K(j,q,U,W)+q:G+j+q},K=(G,q,U,V)=>{let j="",W=0;do j+=G.substring(W,V)+U,W=V+q.length,V=G.indexOf(q,W);while(~V);return j+G.substring(W)},H=(G=J)=>{let q=G?z:()=>String;return{isColorSupported:G,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};$.exports=H(),$.exports.createColors=H}),b0=V6((Z,$)=>{$.exports=()=>{return/[#*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\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\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-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\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\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}}),C0=T(P0(),1);function g6(Z){return Z.replace(/[<[].+/,"").trim()}function v0(Z){let $=/<([^>]+)>/g,Q=/\[([^\]]+)\]/g,Y=[],X=(K)=>{let H=!1,G=K[1];if(G.startsWith("..."))G=G.slice(3),H=!0;return{required:K[0].startsWith("<"),value:G,variadic:H}},J;while(J=$.exec(Z))Y.push(X(J));let z;while(z=Q.exec(Z))Y.push(X(z));return Y}function y0(Z){let $={alias:{},boolean:[]};for(let[Q,Y]of Z.entries()){if(Y.names.length>1)$.alias[Y.names[0]]=Y.names.slice(1);if(Y.isBoolean)if(Y.negated){if(!Z.some((J,z)=>{return z!==Q&&J.names.some((K)=>Y.names.includes(K))&&typeof J.required==="boolean"}))$.boolean.push(Y.names[0])}else $.boolean.push(Y.names[0])}return $}function P6(Z){return Z.sort(($,Q)=>{return $.length>Q.length?-1:1})[0]}function b6(Z,$){return Z.length>=$?Z:`${Z}${" ".repeat($-Z.length)}`}function S0(Z){return Z.replace(/([a-z])-([a-z])/g,($,Q,Y)=>{return Q+Y.toUpperCase()})}function h0(Z,$,Q){let Y=0,X=$.length,J=Z,z;for(;Y<X;++Y)z=J[$[Y]],J=J[$[Y]]=Y===X-1?Q:z!=null?z:!!~$[Y+1].indexOf(".")||!(+$[Y+1]>-1)?{}:[]}function _0(Z,$){for(let Q of Object.keys($)){let Y=$[Q];if(Y.shouldTransform){if(Z[Q]=Array.prototype.concat.call([],Z[Q]),typeof Y.transformFunction==="function")Z[Q]=Z[Q].map(Y.transformFunction)}}}function f0(Z){let $=/([^\\/]+)$/.exec(Z);return $?$[1]:""}function d6(Z){return Z.split(".").map(($,Q)=>{return Q===0?S0($):$}).join(".")}class e extends Error{constructor(Z){super(Z);if(this.name=this.constructor.name,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,this.constructor);else this.stack=Error(Z).stack}}function g0(){let{env:Z}=E6,{TERM:$,TERM_PROGRAM:Q}=Z;if(E6.platform!=="win32")return $!=="linux";return Boolean(Z.WT_SESSION)||Boolean(Z.TERMINUS_SUBLIME)||Z.ConEmuTask==="{cmd::Cmder}"||Q==="Terminus-Sublime"||Q==="vscode"||$==="xterm-256color"||$==="alacritty"||$==="rxvt-unicode"||$==="rxvt-unicode-256color"||Z.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var $6="\x1B",R=`${$6}[`;var S={to(Z,$){if(!$)return`${R}${Z+1}G`;return`${R}${$+1};${Z+1}H`},move(Z,$){let Q="";if(Z<0)Q+=`${R}${-Z}D`;else if(Z>0)Q+=`${R}${Z}C`;if($<0)Q+=`${R}${-$}A`;else if($>0)Q+=`${R}${$}B`;return Q},up:(Z=1)=>`${R}${Z}A`,down:(Z=1)=>`${R}${Z}B`,forward:(Z=1)=>`${R}${Z}C`,backward:(Z=1)=>`${R}${Z}D`,nextLine:(Z=1)=>`${R}E`.repeat(Z),prevLine:(Z=1)=>`${R}F`.repeat(Z),left:`${R}G`,hide:`${R}?25l`,show:`${R}?25h`,save:`${$6}7`,restore:`${$6}8`};var q6={screen:`${R}2J`,up:(Z=1)=>`${R}1J`.repeat(Z),down:(Z=1)=>`${R}J`.repeat(Z),line:`${R}2K`,lineEnd:`${R}K`,lineStart:`${R}1K`,lines(Z){let $="";for(let Q=0;Q<Z;Q++)$+=this.line+(Q<Z-1?S.up():"");if(Z)$+=S.left;return $}},L$={screen:`${$6}c`};class u6{rawName;description;name;names;isBoolean;required;config;negated;constructor(Z,$,Q){if(this.rawName=Z,this.description=$,this.config=Object.assign({},Q),Z=Z.replace(/\.\*/g,""),this.negated=!1,this.names=g6(Z).split(",").map((Y)=>{let X=Y.trim().replace(/^-{1,2}/,"");if(X.startsWith("no-"))this.negated=!0,X=X.replace(/^no-/,"");return d6(X)}).sort((Y,X)=>Y.length>X.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null)this.config.default=!0;if(Z.includes("<"))this.required=!0;else if(Z.includes("["))this.required=!1;else this.isBoolean=!0}}var B$=U6.argv,d0=`${U6.platform}-${U6.arch} bun-v${typeof Bun<"u"?Bun.version:"unknown"}`,u0=o.argv,x0=`${o.platform}-${o.arch} node-${o.version}`;class W6{rawName;description;config;cli;options;aliasNames;name;args;commandAction;usageText;versionNumber;examples;helpCallback;globalCommand;constructor(Z,$,Q,Y){if(this.rawName=Z,this.description=$,this.config=Q,this.cli=Y,this.options=[],this.aliasNames=[],this.name=g6(Z),this.args=v0(Z),this.examples=[],!Q)this.config={}}usage(Z){return this.usageText=Z,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(Z,$="-v, --version"){return this.versionNumber=Z,this.option($,"Display version number"),this}example(Z){return this.examples.push(Z),this}option(Z,$,Q){let Y=new u6(Z,$,Q);return this.options.push(Y),this}alias(Z){return this.aliasNames.push(Z),this}action(Z){return this.commandAction=Z,this}isMatched(Z){return this.name===Z||this.aliasNames.includes(Z)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof F6}hasOption(Z){return Z=Z.split(".")[0],!!this.options.find(($)=>{return $.names.includes(Z)})}outputHelp(){let{name:Z,commands:$}=this.cli,{versionNumber:Q,options:Y,helpCallback:X}=this.cli.globalCommand,J=[{body:`${Z}${Q?`/${Q}`:""}`}];if(J.push({title:"Usage",body:` $ ${Z} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&$.length>0){let H=P6($.map((G)=>G.rawName));J.push({title:"Commands",body:$.map((G)=>{return` ${b6(G.rawName,H.length)} ${G.description}`}).join(`
2
+ import{K as W0,h as b}from"./chunk-kfzscenj.js";import{L as h}from"./chunk-h6ac3d60.js";var{Glob:F0}=globalThis.Bun;import{copyFile as j$,mkdir as M0,readdir as H$}from"fs/promises";import{join as d}from"path";import v from"process";import{EventEmitter as k0}from"events";import E6 from"process";import U6 from"process";import o from"process";import c0,{stdin as I$,stdout as w$}from"process";import k6,{stdin as p0,stdout as n0}from"process";import i0 from"readline";var{create:I0,getPrototypeOf:w0,defineProperty:A6,getOwnPropertyNames:A0}=Object,E0=Object.prototype.hasOwnProperty,T=(Z,$,Q)=>{Q=Z!=null?I0(w0(Z)):{};let Y=$||!Z||!Z.__esModule?A6(Q,"default",{value:Z,enumerable:!0}):Q;for(let X of A0(Z))if(!E0.call(Y,X))A6(Y,X,{get:()=>Z[X],enumerable:!0});return Y},V6=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports),P0=V6((Z,$)=>{function Q(X){return X==null?[]:Array.isArray(X)?X:[X]}function Y(X,J,z,K){var H,G=X[J],q=~K.string.indexOf(J)?z==null||z===!0?"":String(z):typeof z==="boolean"?z:~K.boolean.indexOf(J)?z==="false"?!1:z==="true"||(X._.push((H=+z,H*0===0)?H:z),!!z):(H=+z,H*0===0)?H:z;X[J]=G==null?q:Array.isArray(G)?G.concat(q):[G,q]}$.exports=function(X,J){X=X||[],J=J||{};var z,K,H,G,q,U={_:[]},V=0,j=0,W=0,L=X.length;let w=J.alias!==void 0,M=J.unknown!==void 0,N=J.default!==void 0;if(J.alias=J.alias||{},J.string=Q(J.string),J.boolean=Q(J.boolean),w)for(z in J.alias){K=J.alias[z]=Q(J.alias[z]);for(V=0;V<K.length;V++)(J.alias[K[V]]=K.concat(z)).splice(V,1)}for(V=J.boolean.length;V-- >0;){K=J.alias[J.boolean[V]]||[];for(j=K.length;j-- >0;)J.boolean.push(K[j])}for(V=J.string.length;V-- >0;){K=J.alias[J.string[V]]||[];for(j=K.length;j-- >0;)J.string.push(K[j])}if(N){for(z in J.default)if(G=typeof J.default[z],K=J.alias[z]=J.alias[z]||[],J[G]!==void 0){J[G].push(z);for(V=0;V<K.length;V++)J[G].push(K[V])}}let m=M?Object.keys(J.alias):[];for(V=0;V<L;V++){if(H=X[V],H==="--"){U._=U._.concat(X.slice(++V));break}for(j=0;j<H.length;j++)if(H.charCodeAt(j)!==45)break;if(j===0)U._.push(H);else if(H.substring(j,j+3)==="no-"){if(G=H.substring(j+3),M&&!~m.indexOf(G))return J.unknown(H);U[G]=!1}else{for(W=j+1;W<H.length;W++)if(H.charCodeAt(W)===61)break;G=H.substring(j,W),q=H.substring(++W)||(V+1===L||(""+X[V+1]).charCodeAt(0)===45||X[++V]),K=j===2?[G]:G;for(W=0;W<K.length;W++){if(G=K[W],M&&!~m.indexOf(G))return J.unknown("-".repeat(j)+G);Y(U,G,W+1<K.length||q,J)}}}if(N){for(z in J.default)if(U[z]===void 0)U[z]=J.default[z]}if(w)for(z in U){K=J.alias[z]||[];while(K.length>0)U[K.shift()]=U[z]}return U}}),A=V6((Z,$)=>{var Q=process||{},Y=Q.argv||[],X=Q.env||{},J=!(!!X.NO_COLOR||Y.includes("--no-color"))&&(!!X.FORCE_COLOR||Y.includes("--color")||Q.platform==="win32"||(Q.stdout||{}).isTTY&&X.TERM!=="dumb"||!!X.CI),z=(G,q,U=G)=>(V)=>{let j=""+V,W=j.indexOf(q,G.length);return~W?G+K(j,q,U,W)+q:G+j+q},K=(G,q,U,V)=>{let j="",W=0;do j+=G.substring(W,V)+U,W=V+q.length,V=G.indexOf(q,W);while(~V);return j+G.substring(W)},H=(G=J)=>{let q=G?z:()=>String;return{isColorSupported:G,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};$.exports=H(),$.exports.createColors=H}),b0=V6((Z,$)=>{$.exports=()=>{return/[#*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\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\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-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\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\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}}),C0=T(P0(),1);function g6(Z){return Z.replace(/[<[].+/,"").trim()}function v0(Z){let $=/<([^>]+)>/g,Q=/\[([^\]]+)\]/g,Y=[],X=(K)=>{let H=!1,G=K[1];if(G.startsWith("..."))G=G.slice(3),H=!0;return{required:K[0].startsWith("<"),value:G,variadic:H}},J;while(J=$.exec(Z))Y.push(X(J));let z;while(z=Q.exec(Z))Y.push(X(z));return Y}function y0(Z){let $={alias:{},boolean:[]};for(let[Q,Y]of Z.entries()){if(Y.names.length>1)$.alias[Y.names[0]]=Y.names.slice(1);if(Y.isBoolean)if(Y.negated){if(!Z.some((J,z)=>{return z!==Q&&J.names.some((K)=>Y.names.includes(K))&&typeof J.required==="boolean"}))$.boolean.push(Y.names[0])}else $.boolean.push(Y.names[0])}return $}function P6(Z){return Z.sort(($,Q)=>{return $.length>Q.length?-1:1})[0]}function b6(Z,$){return Z.length>=$?Z:`${Z}${" ".repeat($-Z.length)}`}function S0(Z){return Z.replace(/([a-z])-([a-z])/g,($,Q,Y)=>{return Q+Y.toUpperCase()})}function h0(Z,$,Q){let Y=0,X=$.length,J=Z,z;for(;Y<X;++Y)z=J[$[Y]],J=J[$[Y]]=Y===X-1?Q:z!=null?z:!!~$[Y+1].indexOf(".")||!(+$[Y+1]>-1)?{}:[]}function _0(Z,$){for(let Q of Object.keys($)){let Y=$[Q];if(Y.shouldTransform){if(Z[Q]=Array.prototype.concat.call([],Z[Q]),typeof Y.transformFunction==="function")Z[Q]=Z[Q].map(Y.transformFunction)}}}function f0(Z){let $=/([^\\/]+)$/.exec(Z);return $?$[1]:""}function d6(Z){return Z.split(".").map(($,Q)=>{return Q===0?S0($):$}).join(".")}class e extends Error{constructor(Z){super(Z);if(this.name=this.constructor.name,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,this.constructor);else this.stack=Error(Z).stack}}function g0(){let{env:Z}=E6,{TERM:$,TERM_PROGRAM:Q}=Z;if(E6.platform!=="win32")return $!=="linux";return Boolean(Z.WT_SESSION)||Boolean(Z.TERMINUS_SUBLIME)||Z.ConEmuTask==="{cmd::Cmder}"||Q==="Terminus-Sublime"||Q==="vscode"||$==="xterm-256color"||$==="alacritty"||$==="rxvt-unicode"||$==="rxvt-unicode-256color"||Z.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var $6="\x1B",R=`${$6}[`;var S={to(Z,$){if(!$)return`${R}${Z+1}G`;return`${R}${$+1};${Z+1}H`},move(Z,$){let Q="";if(Z<0)Q+=`${R}${-Z}D`;else if(Z>0)Q+=`${R}${Z}C`;if($<0)Q+=`${R}${-$}A`;else if($>0)Q+=`${R}${$}B`;return Q},up:(Z=1)=>`${R}${Z}A`,down:(Z=1)=>`${R}${Z}B`,forward:(Z=1)=>`${R}${Z}C`,backward:(Z=1)=>`${R}${Z}D`,nextLine:(Z=1)=>`${R}E`.repeat(Z),prevLine:(Z=1)=>`${R}F`.repeat(Z),left:`${R}G`,hide:`${R}?25l`,show:`${R}?25h`,save:`${$6}7`,restore:`${$6}8`};var q6={screen:`${R}2J`,up:(Z=1)=>`${R}1J`.repeat(Z),down:(Z=1)=>`${R}J`.repeat(Z),line:`${R}2K`,lineEnd:`${R}K`,lineStart:`${R}1K`,lines(Z){let $="";for(let Q=0;Q<Z;Q++)$+=this.line+(Q<Z-1?S.up():"");if(Z)$+=S.left;return $}},L$={screen:`${$6}c`};class u6{rawName;description;name;names;isBoolean;required;config;negated;constructor(Z,$,Q){if(this.rawName=Z,this.description=$,this.config=Object.assign({},Q),Z=Z.replace(/\.\*/g,""),this.negated=!1,this.names=g6(Z).split(",").map((Y)=>{let X=Y.trim().replace(/^-{1,2}/,"");if(X.startsWith("no-"))this.negated=!0,X=X.replace(/^no-/,"");return d6(X)}).sort((Y,X)=>Y.length>X.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null)this.config.default=!0;if(Z.includes("<"))this.required=!0;else if(Z.includes("["))this.required=!1;else this.isBoolean=!0}}var B$=U6.argv,d0=`${U6.platform}-${U6.arch} bun-v${typeof Bun<"u"?Bun.version:"unknown"}`,u0=o.argv,x0=`${o.platform}-${o.arch} node-${o.version}`;class W6{rawName;description;config;cli;options;aliasNames;name;args;commandAction;usageText;versionNumber;examples;helpCallback;globalCommand;constructor(Z,$,Q,Y){if(this.rawName=Z,this.description=$,this.config=Q,this.cli=Y,this.options=[],this.aliasNames=[],this.name=g6(Z),this.args=v0(Z),this.examples=[],!Q)this.config={}}usage(Z){return this.usageText=Z,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(Z,$="-v, --version"){return this.versionNumber=Z,this.option($,"Display version number"),this}example(Z){return this.examples.push(Z),this}option(Z,$,Q){let Y=new u6(Z,$,Q);return this.options.push(Y),this}alias(Z){return this.aliasNames.push(Z),this}action(Z){return this.commandAction=Z,this}isMatched(Z){return this.name===Z||this.aliasNames.includes(Z)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof F6}hasOption(Z){return Z=Z.split(".")[0],!!this.options.find(($)=>{return $.names.includes(Z)})}outputHelp(){let{name:Z,commands:$}=this.cli,{versionNumber:Q,options:Y,helpCallback:X}=this.cli.globalCommand,J=[{body:`${Z}${Q?`/${Q}`:""}`}];if(J.push({title:"Usage",body:` $ ${Z} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&$.length>0){let H=P6($.map((G)=>G.rawName));J.push({title:"Commands",body:$.map((G)=>{return` ${b6(G.rawName,H.length)} ${G.description}`}).join(`
3
3
  `)}),J.push({title:"For more info, run any command with the `--help` flag",body:$.map((G)=>` $ ${Z}${G.name===""?"":` ${G.name}`} --help`).join(`
4
4
  `)})}let K=this.isGlobalCommand?Y:[...this.options,...Y||[]];if(!this.isGlobalCommand&&!this.isDefaultCommand)K=K.filter((H)=>H.name!=="version");if(K.length>0){let H=P6(K.map((G)=>G.rawName));J.push({title:"Options",body:K.map((G)=>{return` ${b6(G.rawName,H.length)} ${G.description} ${G.config.default===void 0?"":`(default: ${G.config.default})`}`}).join(`
5
5
  `)})}if(this.examples.length>0)J.push({title:"Examples",body:this.examples.map((H)=>{if(typeof H==="function")return H(Z);return H}).join(`
@@ -20,7 +20,7 @@ ${H.body}`:H.body}).join(`
20
20
  `).length-1;this.output.write(S.move(-999,Z*-1))}render(){let Z=f6(this._render(this)??"",k6.stdout.columns,{hard:!0,trim:!1});if(Z===this._prevFrame)return;if(this.state==="initial")this.output.write(S.hide);else{let $=a0(this._prevFrame,Z);if(this.restoreCursor(),$&&$?.length===1){let Q=$[0];this.output.write(S.move(0,Q)),this.output.write(q6.lines(1));let Y=Z.split(`
21
21
  `);this.output.write(Y[Q]),this._prevFrame=Z,this.output.write(S.move(0,Y.length-Q-1));return}if($&&$?.length>1){let Q=$[0];this.output.write(S.move(0,Q)),this.output.write(q6.down());let X=Z.split(`
22
22
  `).slice(Q);this.output.write(X.join(`
23
- `)),this._prevFrame=Z;return}this.output.write(q6.down())}if(this.output.write(Z),this.state==="initial")this.state="active";this._prevFrame=Z}}function FZ(Z,$){if(Z===void 0)return 0;if($.length===0)return 0;let Y=$.findIndex((X)=>X.value===Z);return Y!==-1?Y:0}function MZ(Z,$){return($.label??String($.value)).toLowerCase().includes(Z.toLowerCase())}function NZ(Z,$){if(!$)return;if(Z)return $;return $[0]}class LZ extends L6{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#Z=0;#Q="";#Y;#$;get cursor(){return this.#Z}get userInputWithCursor(){if(!this.userInput)return j6.default.inverse(j6.default.hidden("_"));if(this._cursor>=this.userInput.length)return`${this.userInput}\u2588`;let Z=this.userInput.slice(0,this._cursor),[$,...Q]=this.userInput.slice(this._cursor);return`${Z}${j6.default.inverse($)}${Q.join("")}`}get options(){if(typeof this.#$==="function")return this.#$();return this.#$}constructor(Z){super(Z);this.#$=Z.options;let $=this.options;this.filteredOptions=[...$],this.multiple=Z.multiple===!0,this.#Y=Z.filter??MZ;let Q;if(Z.initialValue&&Array.isArray(Z.initialValue))if(this.multiple)Q=Z.initialValue;else Q=Z.initialValue.slice(0,1);else if(!this.multiple&&this.options.length>0)Q=[this.options[0].value];if(Q)for(let Y of Q){let X=$.findIndex((J)=>J.value===Y);if(X!==-1)this.toggleSelected(Y),this.#Z=X}this.focusedValue=this.options[this.#Z]?.value,this.on("key",(Y,X)=>this.#J(Y,X)),this.on("userInput",(Y)=>this.#X(Y))}_isActionKey(Z,$){return Z==="\t"||this.multiple&&this.isNavigating&&$.name==="space"&&Z!==void 0&&Z!==""}#J(Z,$){let Q=$.name==="up",Y=$.name==="down",X=$.name==="return";if(Q||Y){if(this.#Z=Math.max(0,Math.min(this.#Z+(Q?-1:1),this.filteredOptions.length-1)),this.focusedValue=this.filteredOptions[this.#Z]?.value,!this.multiple)this.selectedValues=[this.focusedValue];this.isNavigating=!0}else if(X)this.value=NZ(this.multiple,this.selectedValues);else if(this.multiple)if(this.focusedValue!==void 0&&($.name==="tab"||this.isNavigating&&$.name==="space"))this.toggleSelected(this.focusedValue);else this.isNavigating=!1;else{if(this.focusedValue)this.selectedValues=[this.focusedValue];this.isNavigating=!1}}deselectAll(){this.selectedValues=[]}toggleSelected(Z){if(this.filteredOptions.length===0)return;if(this.multiple)if(this.selectedValues.includes(Z))this.selectedValues=this.selectedValues.filter(($)=>$!==Z);else this.selectedValues=[...this.selectedValues,Z];else this.selectedValues=[Z]}#X(Z){if(Z!==this.#Q){this.#Q=Z;let $=this.options;if(Z)this.filteredOptions=$.filter((Q)=>this.#Y(Z,Q));else this.filteredOptions=[...$];if(this.#Z=FZ(this.focusedValue,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#Z]?.value,!this.multiple)if(this.focusedValue!==void 0)this.toggleSelected(this.focusedValue);else this.deselectAll()}}}class DZ extends L6{options;cursor=0;#Z;getGroupItems(Z){return this.options.filter(($)=>$.group===Z)}isGroupSelected(Z){let $=this.getGroupItems(Z),Q=this.value;if(Q===void 0)return!1;return $.every((Y)=>Q.includes(Y.value))}toggleValue(){let Z=this.options[this.cursor];if(this.value===void 0)this.value=[];if(Z.group===!0){let $=Z.value,Q=this.getGroupItems($);if(this.isGroupSelected($))this.value=this.value.filter((Y)=>Q.findIndex((X)=>X.value===Y)===-1);else this.value=[...this.value,...Q.map((Y)=>Y.value)];this.value=Array.from(new Set(this.value))}else{let $=this.value.includes(Z.value);this.value=$?this.value.filter((Q)=>Q!==Z.value):[...this.value,Z.value]}}constructor(Z){super(Z,!1);let{options:$}=Z;this.#Z=Z.selectableGroups!==!1,this.options=Object.entries($).flatMap(([Q,Y])=>[{value:Q,group:!0,label:Q},...Y.map((X)=>({...X,group:Q}))]),this.value=[...Z.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:Q})=>Q===Z.cursorAt),this.#Z?0:1),this.on("cursor",(Q)=>{switch(Q){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Y=this.options[this.cursor]?.group===!0;if(!this.#Z&&Y)this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Y=this.options[this.cursor]?.group===!0;if(!this.#Z&&Y)this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}case"space":this.toggleValue();break}})}}var k$=T(A(),1);var v$=T(A(),1);var y$=T(A(),1),_={red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bold:["\x1B[1m","\x1B[22m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],dim:["\x1B[2m","\x1B[22m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"]},p={primary:"blue",secondary:"cyan",success:"green",warning:"yellow",error:"red",info:"magenta",muted:"gray"};function BZ(){return!0}function OZ(){let Z={};Z.supportsColor=BZ();function $(Y,X=[]){let J=Y===""?[]:[...X,Y],z=function(H){if(!Z.supportsColor)return H;let G="",q="";for(let U of J)if(U in p&&p[U]in _){let V=p[U];G+=_[V][0],q=_[V][1]+q}else if(U in _)G+=_[U][0],q=_[U][1]+q;return G+H+q},K=[...Object.keys(_),...Object.keys(p)];for(let H of K)if(!(H in z))Object.defineProperty(z,H,{get(){return $(H,J)}});return z}let Q=[...Object.keys(_),...Object.keys(p)];for(let Y of Q)if(!(Y in Z))Object.defineProperty(Z,Y,{get(){return $(Y)}});return Z}var S$=OZ();var TZ=g0();var B=(Z,$)=>TZ?Z:$,h$=B("\u25C6","*"),_$=B("\u25A0","x"),f$=B("\u25B2","x"),g$=B("\u25C7","o"),d$=B("\u250C","T"),RZ=B("\u2502","|"),u$=B("\u2514","\u2014"),x$=B("\u25CF",">"),m$=B("\u25CB"," "),c$=B("\u25FB","[\u2022]"),l$=B("\u25FC","[+]"),a$=B("\u25FB","[ ]"),p$=B("\u25AA","\u2022"),n$=B("\u2500","-"),i$=B("\u256E","+"),r$=B("\u251C","+"),s$=B("\u256F","+"),t$=B("\u25CF","\u2022"),e$=B("\u25C6","*"),o$=B("\u25B2","!"),ZQ=B("\u25A0","x");var $Q=T(A(),1);var QQ=T(A(),1);var YQ=T(A(),1);var JQ=T(A(),1);var XQ=T(A(),1);var zQ=T(A(),1);var KQ=T(A(),1);var qQ=T(A(),1);var jQ=T(A(),1),HQ=T(A(),1);var GQ={light:B("\u2500","-"),heavy:B("\u2501","="),block:B("\u2588","#")};var UQ=T(A(),1);var VQ=T(A(),1);var IZ=T(A(),1);function wZ(){return`${IZ.default.gray(RZ)} `}var WQ=wZ();var FQ=T(A(),1);var MQ=T(A(),1);var a6="0.1.3";import*as p6 from"fs";import*as n6 from"path";async function i6(Z,$){let Q=$.robots;if(Q?.enabled===!1)return;let Y=Q?.filename||"robots.txt",X=EZ($),J=n6.join(Z,Y);if(await p6.promises.writeFile(J,X,"utf-8"),$.verbose)console.log(`\u2705 Robots.txt generated: ${J}`)}function EZ(Z){let $=Z.robots,Q=[];if($?.rules&&$.rules.length>0)for(let Y of $.rules)Q.push(...PZ(Y)),Q.push("");else Q.push("User-agent: *"),Q.push("Allow: /"),Q.push("");if($?.host)Q.push(`Host: ${$.host}`),Q.push("");if($?.sitemaps&&$.sitemaps.length>0){for(let Y of $.sitemaps)Q.push(`Sitemap: ${Y}`);Q.push("")}else if(Z.sitemap?.enabled!==!1&&Z.sitemap?.baseUrl){let Y=Z.sitemap.filename||"sitemap.xml",X=`${Z.sitemap.baseUrl.replace(/\/$/,"")}/${Y}`;Q.push(`Sitemap: ${X}`),Q.push("")}if($?.customContent)Q.push($.customContent),Q.push("");return`${Q.join(`
23
+ `)),this._prevFrame=Z;return}this.output.write(q6.down())}if(this.output.write(Z),this.state==="initial")this.state="active";this._prevFrame=Z}}function FZ(Z,$){if(Z===void 0)return 0;if($.length===0)return 0;let Y=$.findIndex((X)=>X.value===Z);return Y!==-1?Y:0}function MZ(Z,$){return($.label??String($.value)).toLowerCase().includes(Z.toLowerCase())}function NZ(Z,$){if(!$)return;if(Z)return $;return $[0]}class LZ extends L6{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#Z=0;#Q="";#Y;#$;get cursor(){return this.#Z}get userInputWithCursor(){if(!this.userInput)return j6.default.inverse(j6.default.hidden("_"));if(this._cursor>=this.userInput.length)return`${this.userInput}\u2588`;let Z=this.userInput.slice(0,this._cursor),[$,...Q]=this.userInput.slice(this._cursor);return`${Z}${j6.default.inverse($)}${Q.join("")}`}get options(){if(typeof this.#$==="function")return this.#$();return this.#$}constructor(Z){super(Z);this.#$=Z.options;let $=this.options;this.filteredOptions=[...$],this.multiple=Z.multiple===!0,this.#Y=Z.filter??MZ;let Q;if(Z.initialValue&&Array.isArray(Z.initialValue))if(this.multiple)Q=Z.initialValue;else Q=Z.initialValue.slice(0,1);else if(!this.multiple&&this.options.length>0)Q=[this.options[0].value];if(Q)for(let Y of Q){let X=$.findIndex((J)=>J.value===Y);if(X!==-1)this.toggleSelected(Y),this.#Z=X}this.focusedValue=this.options[this.#Z]?.value,this.on("key",(Y,X)=>this.#J(Y,X)),this.on("userInput",(Y)=>this.#X(Y))}_isActionKey(Z,$){return Z==="\t"||this.multiple&&this.isNavigating&&$.name==="space"&&Z!==void 0&&Z!==""}#J(Z,$){let Q=$.name==="up",Y=$.name==="down",X=$.name==="return";if(Q||Y){if(this.#Z=Math.max(0,Math.min(this.#Z+(Q?-1:1),this.filteredOptions.length-1)),this.focusedValue=this.filteredOptions[this.#Z]?.value,!this.multiple)this.selectedValues=[this.focusedValue];this.isNavigating=!0}else if(X)this.value=NZ(this.multiple,this.selectedValues);else if(this.multiple)if(this.focusedValue!==void 0&&($.name==="tab"||this.isNavigating&&$.name==="space"))this.toggleSelected(this.focusedValue);else this.isNavigating=!1;else{if(this.focusedValue)this.selectedValues=[this.focusedValue];this.isNavigating=!1}}deselectAll(){this.selectedValues=[]}toggleSelected(Z){if(this.filteredOptions.length===0)return;if(this.multiple)if(this.selectedValues.includes(Z))this.selectedValues=this.selectedValues.filter(($)=>$!==Z);else this.selectedValues=[...this.selectedValues,Z];else this.selectedValues=[Z]}#X(Z){if(Z!==this.#Q){this.#Q=Z;let $=this.options;if(Z)this.filteredOptions=$.filter((Q)=>this.#Y(Z,Q));else this.filteredOptions=[...$];if(this.#Z=FZ(this.focusedValue,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#Z]?.value,!this.multiple)if(this.focusedValue!==void 0)this.toggleSelected(this.focusedValue);else this.deselectAll()}}}class DZ extends L6{options;cursor=0;#Z;getGroupItems(Z){return this.options.filter(($)=>$.group===Z)}isGroupSelected(Z){let $=this.getGroupItems(Z),Q=this.value;if(Q===void 0)return!1;return $.every((Y)=>Q.includes(Y.value))}toggleValue(){let Z=this.options[this.cursor];if(this.value===void 0)this.value=[];if(Z.group===!0){let $=Z.value,Q=this.getGroupItems($);if(this.isGroupSelected($))this.value=this.value.filter((Y)=>Q.findIndex((X)=>X.value===Y)===-1);else this.value=[...this.value,...Q.map((Y)=>Y.value)];this.value=Array.from(new Set(this.value))}else{let $=this.value.includes(Z.value);this.value=$?this.value.filter((Q)=>Q!==Z.value):[...this.value,Z.value]}}constructor(Z){super(Z,!1);let{options:$}=Z;this.#Z=Z.selectableGroups!==!1,this.options=Object.entries($).flatMap(([Q,Y])=>[{value:Q,group:!0,label:Q},...Y.map((X)=>({...X,group:Q}))]),this.value=[...Z.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:Q})=>Q===Z.cursorAt),this.#Z?0:1),this.on("cursor",(Q)=>{switch(Q){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Y=this.options[this.cursor]?.group===!0;if(!this.#Z&&Y)this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Y=this.options[this.cursor]?.group===!0;if(!this.#Z&&Y)this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}case"space":this.toggleValue();break}})}}var k$=T(A(),1);var v$=T(A(),1);var y$=T(A(),1),_={red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bold:["\x1B[1m","\x1B[22m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],dim:["\x1B[2m","\x1B[22m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"]},p={primary:"blue",secondary:"cyan",success:"green",warning:"yellow",error:"red",info:"magenta",muted:"gray"};function BZ(){return!0}function OZ(){let Z={};Z.supportsColor=BZ();function $(Y,X=[]){let J=Y===""?[]:[...X,Y],z=function(H){if(!Z.supportsColor)return H;let G="",q="";for(let U of J)if(U in p&&p[U]in _){let V=p[U];G+=_[V][0],q=_[V][1]+q}else if(U in _)G+=_[U][0],q=_[U][1]+q;return G+H+q},K=[...Object.keys(_),...Object.keys(p)];for(let H of K)if(!(H in z))Object.defineProperty(z,H,{get(){return $(H,J)}});return z}let Q=[...Object.keys(_),...Object.keys(p)];for(let Y of Q)if(!(Y in Z))Object.defineProperty(Z,Y,{get(){return $(Y)}});return Z}var S$=OZ();var TZ=g0();var B=(Z,$)=>TZ?Z:$,h$=B("\u25C6","*"),_$=B("\u25A0","x"),f$=B("\u25B2","x"),g$=B("\u25C7","o"),d$=B("\u250C","T"),RZ=B("\u2502","|"),u$=B("\u2514","\u2014"),x$=B("\u25CF",">"),m$=B("\u25CB"," "),c$=B("\u25FB","[\u2022]"),l$=B("\u25FC","[+]"),a$=B("\u25FB","[ ]"),p$=B("\u25AA","\u2022"),n$=B("\u2500","-"),i$=B("\u256E","+"),r$=B("\u251C","+"),s$=B("\u256F","+"),t$=B("\u25CF","\u2022"),e$=B("\u25C6","*"),o$=B("\u25B2","!"),ZQ=B("\u25A0","x");var $Q=T(A(),1);var QQ=T(A(),1);var YQ=T(A(),1);var JQ=T(A(),1);var XQ=T(A(),1);var zQ=T(A(),1);var KQ=T(A(),1);var qQ=T(A(),1);var jQ=T(A(),1),HQ=T(A(),1);var GQ={light:B("\u2500","-"),heavy:B("\u2501","="),block:B("\u2588","#")};var UQ=T(A(),1);var VQ=T(A(),1);var IZ=T(A(),1);function wZ(){return`${IZ.default.gray(RZ)} `}var WQ=wZ();var FQ=T(A(),1);var MQ=T(A(),1);var a6="0.1.4";import*as p6 from"fs";import*as n6 from"path";async function i6(Z,$){let Q=$.robots;if(Q?.enabled===!1)return;let Y=Q?.filename||"robots.txt",X=EZ($),J=n6.join(Z,Y);if(await p6.promises.writeFile(J,X,"utf-8"),$.verbose)console.log(`\u2705 Robots.txt generated: ${J}`)}function EZ(Z){let $=Z.robots,Q=[];if($?.rules&&$.rules.length>0)for(let Y of $.rules)Q.push(...PZ(Y)),Q.push("");else Q.push("User-agent: *"),Q.push("Allow: /"),Q.push("");if($?.host)Q.push(`Host: ${$.host}`),Q.push("");if($?.sitemaps&&$.sitemaps.length>0){for(let Y of $.sitemaps)Q.push(`Sitemap: ${Y}`);Q.push("")}else if(Z.sitemap?.enabled!==!1&&Z.sitemap?.baseUrl){let Y=Z.sitemap.filename||"sitemap.xml",X=`${Z.sitemap.baseUrl.replace(/\/$/,"")}/${Y}`;Q.push(`Sitemap: ${X}`),Q.push("")}if($?.customContent)Q.push($.customContent),Q.push("");return`${Q.join(`
24
24
  `).trim()}
25
25
  `}function PZ(Z){let $=[];if($.push(`User-agent: ${Z.userAgent}`),Z.allow&&Z.allow.length>0)for(let Q of Z.allow)$.push(`Allow: ${Q}`);if(Z.disallow&&Z.disallow.length>0)for(let Q of Z.disallow)$.push(`Disallow: ${Q}`);if(Z.crawlDelay!==void 0)$.push(`Crawl-delay: ${Z.crawlDelay}`);return $}var{YAML:bZ}=globalThis.Bun;import*as J6 from"fs";import*as i from"path";async function r6(Z,$,Q,Y){if(!Y?.enabled)return;let X=Q.sitemap?.baseUrl;if(!X){if(Q.verbose)console.warn("\u26A0\uFE0F RSS feed generation skipped: baseUrl not configured");return}let J=Y.title||Q.title||Q.markdown?.title||"Documentation Feed",z=Y.description||Q.description||Q.markdown?.meta?.description||"Documentation updates",K=Y.author||"Documentation Team",H=Y.email||"",G=Y.language||"en-us",q=Y.filename||"feed.xml",U=Y.maxItems||20,V=Y.fullContent||!1,j=await CZ(Z,X,V);j.sort((M,N)=>N.pubDate.getTime()-M.pubDate.getTime());let W=j.slice(0,U),L=SZ({title:J,description:z,link:X,language:G,author:K,email:H,items:W}),w=i.join($,q);if(await J6.promises.writeFile(w,L,"utf-8"),Q.verbose)console.log(`\u2705 RSS feed generated: ${w} (${W.length} items)`)}async function CZ(Z,$,Q){let Y=[],X=await kZ(Z);for(let J of X){let z=await J6.promises.readFile(J,"utf-8"),{frontmatter:K,markdown:H}=vZ(z);if(!K.date||!K.title)continue;let q=i.relative(Z,J).replace(/\.md$/,"").replace(/index$/,"").replace(/\\/g,"/");if(!q.startsWith("/"))q=`/${q}`;if(q.endsWith("/")&&q!=="/")q=q.slice(0,-1);let U=`${$.replace(/\/$/,"")}${q}`,V=K.description||yZ(H),j=new Date(K.date),W=K.author;Y.push({title:K.title,link:U,description:V,pubDate:j,author:W,content:Q?H:void 0})}return Y}async function kZ(Z){let $=[];async function Q(Y){let X=await J6.promises.readdir(Y,{withFileTypes:!0});for(let J of X){let z=i.join(Y,J.name);if(J.isDirectory()){if(!J.name.startsWith(".")&&J.name!=="node_modules")await Q(z)}else if(J.isFile()&&J.name.endsWith(".md"))$.push(z)}}return await Q(Z),$}function vZ(Z){let $=/^---\n([\s\S]*?)\n---\n?/,Q=Z.match($);if(!Q)return{frontmatter:{},markdown:Z};let Y=Q[1],X=Z.slice(Q[0].length);try{return{frontmatter:bZ.parse(Y),markdown:X}}catch{return{frontmatter:{},markdown:Z}}}function yZ(Z,$=200){let Q=Z.replace(/^#{1,6}\s+(?:\S.*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF])$/gm,"").replace(/```[\s\S]*?```/g,"").replace(/`[^`]+`/g,"").replace(/!\[.*?\]\(.*?\)/g,"").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[*_~]/g,"").trim(),Y=Q.split(`
26
26
 
@@ -33,21 +33,8 @@ ${H.body}`:H.body}).join(`
33
33
  <description><![CDATA[${X.description}]]></description>
34
34
  <pubDate>${X.pubDate.toUTCString()}</pubDate>${z}${J}
35
35
  </item>`}).join(`
36
- `);return`<?xml version="1.0" encoding="UTF-8"?>
37
- <rss version="2.0"
38
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
39
- xmlns:dc="http://purl.org/dc/elements/1.1/"
40
- xmlns:atom="http://www.w3.org/2005/Atom">
41
- <channel>
42
- <title><![CDATA[${Z.title}]]></title>
43
- <description><![CDATA[${Z.description}]]></description>
44
- <link>${Z.link}</link>
45
- <language>${Z.language}</language>
46
- <lastBuildDate>${Q.toUTCString()}</lastBuildDate>
47
- <atom:link href="${Z.link}/feed.xml" rel="self" type="application/rss+xml"/>
48
- ${Y}
49
- </channel>
50
- </rss>`}import*as c from"fs";import*as u from"path";async function s6(Z,$,Q){let Y=Q.sitemap;if(Y?.enabled===!1)return;if(!Y?.baseUrl){if(Q.verbose)console.warn("\u26A0\uFE0F Sitemap generation skipped: baseUrl not configured");return}let X=Y.baseUrl.replace(/\/$/,""),J=Y.filename||"sitemap.xml",z=Y.defaultPriority??0.5,K=Y.defaultChangefreq||"monthly",H=Y.maxUrlsPerFile||50000,G=Y.useSitemapIndex||!1,q=await hZ(Z,X,z,K,Y.exclude||[],Y.priorityMap||{},Y.changefreqMap||{}),U=Y.transform?q.map((V)=>Y.transform(V)).filter(Boolean):q;if(Q.verbose)console.log(`\uD83D\uDCC4 Generated ${U.length} sitemap entries`);if(G&&U.length>H)await gZ(U,$,X,J,H);else{let V=t6(U),j=u.join($,J);if(await c.promises.writeFile(j,V,"utf-8"),Q.verbose)console.log(`\u2705 Sitemap generated: ${j}`)}}async function hZ(Z,$,Q,Y,X,J,z){let K=[],H=await _Z(Z);for(let G of H){let U=u.relative(Z,G).replace(/\.md$/,"").replace(/index$/,"").replace(/\\/g,"/");if(!U.startsWith("/"))U=`/${U}`;if(U.endsWith("/")&&U!=="/")U=U.slice(0,-1);if(fZ(U,X))continue;let j=(await c.promises.stat(G)).mtime.toISOString(),W=Q;for(let[w,M]of Object.entries(J))if(D6(U,w)){W=M;break}let L=Y;for(let[w,M]of Object.entries(z))if(D6(U,w)){L=M;break}K.push({url:U,lastmod:j,changefreq:L,priority:W})}return K}async function _Z(Z){let $=[];async function Q(Y){let X=await c.promises.readdir(Y,{withFileTypes:!0});for(let J of X){let z=u.join(Y,J.name);if(J.isDirectory()){if(!J.name.startsWith(".")&&J.name!=="node_modules")await Q(z)}else if(J.isFile()&&J.name.endsWith(".md"))$.push(z)}}return await Q(Z),$}function fZ(Z,$){for(let Q of $)if(D6(Z,Q))return!0;return!1}function D6(Z,$){let Q=$.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,".");return new RegExp(`^${Q}$`).test(Z)}function t6(Z){return`<?xml version="1.0" encoding="UTF-8"?>
36
+ `);return['<?xml version="1.0" encoding="UTF-8"?>','<rss version="2.0"',' xmlns:content="http://purl.org/rss/1.0/modules/content/"',' xmlns:dc="http://purl.org/dc/elements/1.1/"',' xmlns:atom="http://www.w3.org/2005/Atom">'," <channel>",` <title><![CDATA[${Z.title}]]></title>`,` <description><![CDATA[${Z.description}]]></description>`,` <link>${Z.link}</link>`,` <language>${Z.language}</language>`,` <lastBuildDate>${Q.toUTCString()}</lastBuildDate>`,` <atom:link href="${Z.link}/feed.xml" rel="self" type="application/rss+xml"/>`,Y," </channel>","</rss>"].join(`
37
+ `)}import*as c from"fs";import*as u from"path";async function s6(Z,$,Q){let Y=Q.sitemap;if(Y?.enabled===!1)return;if(!Y?.baseUrl){if(Q.verbose)console.warn("\u26A0\uFE0F Sitemap generation skipped: baseUrl not configured");return}let X=Y.baseUrl.replace(/\/$/,""),J=Y.filename||"sitemap.xml",z=Y.defaultPriority??0.5,K=Y.defaultChangefreq||"monthly",H=Y.maxUrlsPerFile||50000,G=Y.useSitemapIndex||!1,q=await hZ(Z,X,z,K,Y.exclude||[],Y.priorityMap||{},Y.changefreqMap||{}),U=Y.transform?q.map((V)=>Y.transform(V)).filter(Boolean):q;if(Q.verbose)console.log(`\uD83D\uDCC4 Generated ${U.length} sitemap entries`);if(G&&U.length>H)await gZ(U,$,X,J,H);else{let V=t6(U),j=u.join($,J);if(await c.promises.writeFile(j,V,"utf-8"),Q.verbose)console.log(`\u2705 Sitemap generated: ${j}`)}}async function hZ(Z,$,Q,Y,X,J,z){let K=[],H=await _Z(Z);for(let G of H){let U=u.relative(Z,G).replace(/\.md$/,"").replace(/index$/,"").replace(/\\/g,"/");if(!U.startsWith("/"))U=`/${U}`;if(U.endsWith("/")&&U!=="/")U=U.slice(0,-1);if(fZ(U,X))continue;let j=(await c.promises.stat(G)).mtime.toISOString(),W=Q;for(let[w,M]of Object.entries(J))if(D6(U,w)){W=M;break}let L=Y;for(let[w,M]of Object.entries(z))if(D6(U,w)){L=M;break}K.push({url:U,lastmod:j,changefreq:L,priority:W})}return K}async function _Z(Z){let $=[];async function Q(Y){let X=await c.promises.readdir(Y,{withFileTypes:!0});for(let J of X){let z=u.join(Y,J.name);if(J.isDirectory()){if(!J.name.startsWith(".")&&J.name!=="node_modules")await Q(z)}else if(J.isFile()&&J.name.endsWith(".md"))$.push(z)}}return await Q(Z),$}function fZ(Z,$){for(let Q of $)if(D6(Z,Q))return!0;return!1}function D6(Z,$){let Q=$.replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,".");return new RegExp(`^${Q}$`).test(Z)}function t6(Z){return`<?xml version="1.0" encoding="UTF-8"?>
51
38
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
52
39
  ${Z.map((Q)=>{let Y=Q.url,X=Q.lastmod?`
53
40
  <lastmod>${e6(Q.lastmod)}</lastmod>`:"",J=Q.changefreq?`
@@ -350,8 +337,8 @@ ${z}`;await f.promises.writeFile(Z,j,"utf-8")}if(!H)Q.passed++}async function Z$
350
337
  `)[0]||Q;if(Y.length>$)return`${Y.slice(0,$)}...`;return Y||"Documentation page"}function J$(Z,$,Q){let Y=[],X=/\[([^\]]+)\]\(([^)]+)\)/g,J;while((J=X.exec(Z))!==null){let z=J[2];if(z.startsWith("http://")||z.startsWith("https://"))continue;if(z.startsWith("#"))continue;let K=g.dirname(Q),H=g.resolve(K,z),G=H.endsWith(".md")?H:`${H}.md`;if(!f.existsSync(G)&&!f.existsSync(H))Y.push(z)}return Y}function X$(Z){let $=[],Q=/!\[([^\]]*)\]\(([^)]+)\)/g,Y;while((Y=Q.exec(Z))!==null){let X=Y[1],J=Y[2];if(!X||X.trim()==="")$.push(J)}return $}function z$(Z){if(console.log(""),I("\uD83D\uDCCA SEO Report"),console.log(""),console.log(`Total pages checked: ${P(Z.totalPages.toString(),"blue")}`),console.log(`Passed: ${P(Z.passed.toString(),"green")}`),console.log(`Errors: ${P(Z.errors.length.toString(),Z.errors.length>0?"red":"green")}`),console.log(`Warnings: ${P(Z.warnings.length.toString(),Z.warnings.length>0?"yellow":"green")}`),console.log(""),Z.errors.length>0){F(`\u2717 ${Z.errors.length} errors found:`),console.log("");let $=Z.errors.map((Q)=>({Category:Q.category,File:Q.file,Message:Q.message}));r($),console.log("")}if(Z.warnings.length>0){X6(`\u26A0 ${Z.warnings.length} warnings found:`),console.log("");let $=Z.warnings.map((Q)=>({Category:Q.category,File:Q.file,Message:Q.message}));r($),console.log("")}if(Z.errors.length===0&&Z.warnings.length===0)E("\u2713 All SEO checks passed!");else if(Z.errors.length===0)E("\u2713 No errors found (only warnings)")}import{join as K$}from"path";async function q$(Z){let $=await Bun.file(Z).text(),Q=$.split(`
351
338
  `),Y=0,X=!1,J=[];for(let G of Q){if(G.trim().startsWith("```")){X=!X;continue}if(!X)J.push(G)}Y=J.join(" ").split(/\s+/).filter((G)=>G.length>0).length;let K=Q.filter((G)=>G.match(/^#{1,6}\s+/)).length,H=($.match(/```/g)||[]).length/2;return{path:Z,size:await K6(Z),lines:Q.length,words:Y,headings:K,codeBlocks:Math.floor(H)}}async function U0(Z={}){let $=await b,Q=Z.dir||$.docsDir||"./docs",Y=Z.verbose||!1;try{console.log(P(`
352
339
  Analyzing documentation...
353
- `,"bold"));let{Glob:X}=awaitPromise.resolve(globalThis.Bun),J=new X("**/*.md"),z=[];for await(let M of J.scan(Q)){let N=K$(Q,M),m=await q$(N);z.push(m)}if(z.length===0)return F("No markdown files found"),!1;let K=z.reduce((M,N)=>M+N.size,0),H=z.reduce((M,N)=>M+N.lines,0),G=z.reduce((M,N)=>M+N.words,0),q=z.reduce((M,N)=>M+N.headings,0),U=z.reduce((M,N)=>M+N.codeBlocks,0);if(console.log(P("Summary","bold")),console.log("\u2500".repeat(50)),console.log(`Files: ${z.length}`),console.log(`Total size: ${y(K)}`),console.log(`Total lines: ${H.toLocaleString()}`),console.log(`Total words: ${G.toLocaleString()}`),console.log(`Headings: ${q}`),console.log(`Code blocks: ${U}`),console.log(),Y){console.log(P("Per-file Statistics","bold")),console.log("\u2500".repeat(50));let M=z.map((N)=>({File:N.path.replace(`${Q}/`,""),Size:y(N.size),Lines:N.lines,Words:N.words,Headings:N.headings,"Code Blocks":N.codeBlocks}));r(M),console.log()}let V=K/z.length,j=H/z.length,W=G/z.length;console.log(P("Averages per File","bold")),console.log("\u2500".repeat(50)),console.log(`Size: ${y(V)}`),console.log(`Lines: ${Math.round(j)}`),console.log(`Words: ${Math.round(W)}`),console.log();let L=[...z].sort((M,N)=>N.size-M.size).slice(0,5);if(L.length>0){console.log(P("Top 5 Largest Files","bold")),console.log("\u2500".repeat(50));for(let M of L){let N=M.path.replace(`${Q}/`,"");console.log(` ${N.padEnd(40)} ${y(M.size)}`)}console.log()}let w=Math.ceil(G/200);return I(`Estimated reading time: ${w} minutes`),!0}catch(X){return F(`Failed to generate statistics: ${X}`),!1}}var C=new M6("bunpress"),O={outdir:b.outDir||"./dist",docsdir:b.docsDir||"./docs",port:3000,open:!0,watch:!0,verbose:b.verbose};async function N0(Z){let $=new F0("**/*.md"),Q=[];for await(let Y of $.scan(Z))Q.push(d(Z,Y));return Q}async function G$(Z,$,Q=!1){let Y=`${$}/public`;try{await H$(Y);let X=new F0("**/*");for await(let J of X.scan(Y)){let z=d(Y,J),K=d(Z,J);await M0(d(Z,J.split("/").slice(0,-1).join("/")),{recursive:!0}),await j$(z,K)}}catch{if(Q)console.log("No public directory found, skipping static assets copy")}}async function U$(Z,$,Q){try{let Y=await b;if(Y.sitemap?.enabled!==!1&&Y.sitemap?.baseUrl)await s6(Z,$,Y);if(Y.robots?.enabled!==!1)await i6($,Y);if(Y.rss?.enabled)await r6(Z,$,Y,Y.rss)}catch(Y){if(Q)console.error("Error generating SEO files:",Y)}}async function V0(Z={}){let $=await b,Q=Z.outdir||$.outDir||O.outdir,Y=d(Q,".bunpress"),X=Z.dir||$.docsDir||O.docsdir,J=Z.verbose??O.verbose,z=Z.minify??!1,K=Z.sourcemap??!1,H=performance.now(),G=new x("Building documentation...");if(!J)G.start();await M0(Y,{recursive:!0});let q=await N0(X);if(q.length===0){if(!J)G.fail("No markdown files found in docs directory");else console.log("No markdown files found in docs directory");return!1}if(J)console.log(`Found ${q.length} markdown files:`),q.forEach((U)=>console.log(`- ${U}`));try{let{markdownToHtml:U,wrapInLayout:V}=await import("./chunk-8qj79f0y.js"),{mkdir:j,writeFile:W}=await import("fs/promises");if(J)console.log("Transforming markdown to HTML...");for(let M of q){let N=await Bun.file(M).text(),{html:m,frontmatter:L0}=await U(N,X),D0=M.replace(/^\.\//,""),B0=X.replace(/^\.\//,""),I6=D0.replace(B0,"").replace(/^\//,"").replace(/\.md$/,""),O0=`/${I6}`,T0=L0.layout||"doc",R0=await V(m,$,O0,T0),s=d(Y,I6+".html"),w6=s.substring(0,s.lastIndexOf("/"));if(w6)await j(w6,{recursive:!0});if(await W(s,R0),J)console.log(`Generated: ${s}`)}if(J)console.log(`Processed ${q.length} markdown files.`);await G$(Y,X,J),await W$(Y),await V$(Y,$),await U$(X,Y,J||!1);let w=performance.now()-H;if(!J)G.succeed(`Built ${q.length} pages to HTML in ${B6(w)}`);else E(`Build completed in ${B6(w)}`),console.log(`
354
- Generated ${q.length} HTML files in ${Y}`);return!0}catch(U){if(!J)G.fail("Build failed");return console.error("Error during build:",U),!1}}async function V$(Z,$){let{wrapInLayout:Q}=await import("./chunk-8qj79f0y.js"),Y=`
340
+ `,"bold"));let{Glob:X}=awaitPromise.resolve(globalThis.Bun),J=new X("**/*.md"),z=[];for await(let M of J.scan(Q)){let N=K$(Q,M),m=await q$(N);z.push(m)}if(z.length===0)return F("No markdown files found"),!1;let K=z.reduce((M,N)=>M+N.size,0),H=z.reduce((M,N)=>M+N.lines,0),G=z.reduce((M,N)=>M+N.words,0),q=z.reduce((M,N)=>M+N.headings,0),U=z.reduce((M,N)=>M+N.codeBlocks,0);if(console.log(P("Summary","bold")),console.log("\u2500".repeat(50)),console.log(`Files: ${z.length}`),console.log(`Total size: ${y(K)}`),console.log(`Total lines: ${H.toLocaleString()}`),console.log(`Total words: ${G.toLocaleString()}`),console.log(`Headings: ${q}`),console.log(`Code blocks: ${U}`),console.log(),Y){console.log(P("Per-file Statistics","bold")),console.log("\u2500".repeat(50));let M=z.map((N)=>({File:N.path.replace(`${Q}/`,""),Size:y(N.size),Lines:N.lines,Words:N.words,Headings:N.headings,"Code Blocks":N.codeBlocks}));r(M),console.log()}let V=K/z.length,j=H/z.length,W=G/z.length;console.log(P("Averages per File","bold")),console.log("\u2500".repeat(50)),console.log(`Size: ${y(V)}`),console.log(`Lines: ${Math.round(j)}`),console.log(`Words: ${Math.round(W)}`),console.log();let L=[...z].sort((M,N)=>N.size-M.size).slice(0,5);if(L.length>0){console.log(P("Top 5 Largest Files","bold")),console.log("\u2500".repeat(50));for(let M of L){let N=M.path.replace(`${Q}/`,"");console.log(` ${N.padEnd(40)} ${y(M.size)}`)}console.log()}let w=Math.ceil(G/200);return I(`Estimated reading time: ${w} minutes`),!0}catch(X){return F(`Failed to generate statistics: ${X}`),!1}}var C=new M6("bunpress"),O={outdir:b.outDir||"./dist",docsdir:b.docsDir||"./docs",port:3000,open:!0,watch:!0,verbose:b.verbose};async function N0(Z){let $=new F0("**/*.md"),Q=[];for await(let Y of $.scan(Z))Q.push(d(Z,Y));return Q}async function G$(Z,$,Q=!1){let Y=`${$}/public`;try{await H$(Y);let X=new F0("**/*");for await(let J of X.scan(Y)){let z=d(Y,J),K=d(Z,J);await M0(d(Z,J.split("/").slice(0,-1).join("/")),{recursive:!0}),await j$(z,K)}}catch{if(Q)console.log("No public directory found, skipping static assets copy")}}async function U$(Z,$,Q){try{let Y=await b;if(Y.sitemap?.enabled!==!1&&Y.sitemap?.baseUrl)await s6(Z,$,Y);if(Y.robots?.enabled!==!1)await i6($,Y);if(Y.rss?.enabled)await r6(Z,$,Y,Y.rss)}catch(Y){if(Q)console.error("Error generating SEO files:",Y)}}async function V0(Z={}){let $=await b,Q=Z.outdir||$.outDir||O.outdir,Y=d(Q,".bunpress"),X=Z.dir||$.docsDir||O.docsdir,J=Z.verbose??O.verbose,z=Z.minify??!1,K=Z.sourcemap??!1,H=performance.now(),G=new x("Building documentation...");if(!J)G.start();await M0(Y,{recursive:!0});let q=await N0(X);if(q.length===0){if(!J)G.fail("No markdown files found in docs directory");else console.log("No markdown files found in docs directory");return!1}if(J)console.log(`Found ${q.length} markdown files:`),q.forEach((U)=>console.log(`- ${U}`));try{let{markdownToHtml:U,wrapInLayout:V}=await import("./chunk-tvj4g4m6.js"),{mkdir:j,writeFile:W}=await import("fs/promises");if(J)console.log("Transforming markdown to HTML...");for(let M of q){let N=await Bun.file(M).text(),{html:m,frontmatter:L0}=await U(N,X),D0=M.replace(/^\.\//,""),B0=X.replace(/^\.\//,""),I6=D0.replace(B0,"").replace(/^\//,"").replace(/\.md$/,""),O0=`/${I6}`,T0=L0.layout||"doc",R0=await V(m,$,O0,T0),s=d(Y,I6+".html"),w6=s.substring(0,s.lastIndexOf("/"));if(w6)await j(w6,{recursive:!0});if(await W(s,R0),J)console.log(`Generated: ${s}`)}if(J)console.log(`Processed ${q.length} markdown files.`);await G$(Y,X,J),await W$(Y),await V$(Y,$),await U$(X,Y,J||!1);let w=performance.now()-H;if(!J)G.succeed(`Built ${q.length} pages to HTML in ${B6(w)}`);else E(`Build completed in ${B6(w)}`),console.log(`
341
+ Generated ${q.length} HTML files in ${Y}`);return!0}catch(U){if(!J)G.fail("Build failed");return console.error("Error during build:",U),!1}}async function V$(Z,$){let{wrapInLayout:Q}=await import("./chunk-tvj4g4m6.js"),Y=`
355
342
  <style>
356
343
  .NotFound {
357
344
  padding: 64px 24px 96px;
@@ -526,5 +513,5 @@ Detected change in ${z}, rebuilding...`),await V0(Z)}),await new Promise(()=>{})
526
513
  `}K+=`---
527
514
 
528
515
  `}return await Bun.write(Y,K),console.log(`
529
- LLM markdown generated successfully: ${Y}`),console.log(`Total size: ${(K.length/1024).toFixed(2)} KB`),!0}C.command("llm","Generate LLM-friendly markdown file from documentation").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--output <output>","Output file path",{default:"./docs.md"}).option("--full","Include full content (not just titles and headings)",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await F$(Z))v.exit(1)});C.command("init","Initialize a new BunPress project").option("--name <name>","Project name").option("--template <template>","Template to use").option("--force","Overwrite existing files",{default:!1}).action(async(Z)=>{if(!await X0(Z))v.exit(1)});C.command("preview","Preview the built documentation site").option("--port <port>","Port to listen on",{default:O.port}).option("--outdir <outdir>","Output directory (looks for .bunpress folder inside)").option("--open","Open in browser",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{await j0(Z)});C.command("clean","Clean build artifacts").option("--outdir <outdir>","Output directory to clean",{default:O.outdir}).option("--force","Skip confirmation prompt",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await Z0(Z))v.exit(1)});C.command("doctor","Run diagnostic checks on the project").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await J0(Z))v.exit(1)});C.command("config:show","Show current configuration").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await $0(Z))v.exit(1)});C.command("config:validate","Validate configuration file").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await Q0(Z))v.exit(1)});C.command("config:init","Initialize configuration file").action(async(Z)=>{if(!await Y0(Z))v.exit(1)});C.command("new <path>","Create a new markdown file").option("--title <title>","Page title").option("--template <template>","Template to use (default, guide, api, blog)",{default:"default"}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z,$)=>{if(!await K0(Z,$))v.exit(1)});C.command("stats","Show documentation statistics").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await U0(Z))v.exit(1)});C.command("seo:check","Check SEO for all documentation pages").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--fix","Automatically fix issues (add missing titles/descriptions)",{default:!1}).action(async(Z)=>{await G0(Z)});C.command("deploy","Deploy documentation to AWS using CloudFormation (S3 + CloudFront + Route53)").option("--region <region>","AWS region for S3 bucket",{default:"us-east-1"}).option("--bucket <bucket>","S3 bucket name (auto-generated if not provided)").option("--domain <domain>","Custom domain (e.g., docs.example.com)").option("--subdomain <subdomain>","Subdomain (used with --base-domain)").option("--base-domain <baseDomain>","Base domain (e.g., example.com) - must have Route53 hosted zone").option("--stack-name <stackName>","CloudFormation stack name").option("--hosted-zone-id <hostedZoneId>","Route53 hosted zone ID (auto-detected from domain)").option("--certificate-arn <certificateArn>","ACM certificate ARN (auto-created if not provided)").option("--dry-run","Show configuration without deploying",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{let{deployCommand:$}=await import("./chunk-szme5v1e.js");if(!await $(Z))v.exit(1)});C.help();C.version(a6);C.parse();
516
+ LLM markdown generated successfully: ${Y}`),console.log(`Total size: ${(K.length/1024).toFixed(2)} KB`),!0}C.command("llm","Generate LLM-friendly markdown file from documentation").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--output <output>","Output file path",{default:"./docs.md"}).option("--full","Include full content (not just titles and headings)",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await F$(Z))v.exit(1)});C.command("init","Initialize a new BunPress project").option("--name <name>","Project name").option("--template <template>","Template to use").option("--force","Overwrite existing files",{default:!1}).action(async(Z)=>{if(!await X0(Z))v.exit(1)});C.command("preview","Preview the built documentation site").option("--port <port>","Port to listen on",{default:O.port}).option("--outdir <outdir>","Output directory (looks for .bunpress folder inside)").option("--open","Open in browser",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{await j0(Z)});C.command("clean","Clean build artifacts").option("--outdir <outdir>","Output directory to clean",{default:O.outdir}).option("--force","Skip confirmation prompt",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await Z0(Z))v.exit(1)});C.command("doctor","Run diagnostic checks on the project").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await J0(Z))v.exit(1)});C.command("config:show","Show current configuration").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await $0(Z))v.exit(1)});C.command("config:validate","Validate configuration file").option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await Q0(Z))v.exit(1)});C.command("config:init","Initialize configuration file").action(async(Z)=>{if(!await Y0(Z))v.exit(1)});C.command("new <path>","Create a new markdown file").option("--title <title>","Page title").option("--template <template>","Template to use (default, guide, api, blog)",{default:"default"}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z,$)=>{if(!await K0(Z,$))v.exit(1)});C.command("stats","Show documentation statistics").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{if(!await U0(Z))v.exit(1)});C.command("seo:check","Check SEO for all documentation pages").option("--dir <dir>","Documentation directory",{default:"./docs"}).option("--fix","Automatically fix issues (add missing titles/descriptions)",{default:!1}).action(async(Z)=>{await G0(Z)});C.command("deploy","Deploy documentation to AWS using CloudFormation (S3 + CloudFront + Route53)").option("--region <region>","AWS region for S3 bucket",{default:"us-east-1"}).option("--bucket <bucket>","S3 bucket name (auto-generated if not provided)").option("--domain <domain>","Custom domain (e.g., docs.example.com)").option("--subdomain <subdomain>","Subdomain (used with --base-domain)").option("--base-domain <baseDomain>","Base domain (e.g., example.com) - must have Route53 hosted zone").option("--stack-name <stackName>","CloudFormation stack name").option("--hosted-zone-id <hostedZoneId>","Route53 hosted zone ID (auto-detected from domain)").option("--certificate-arn <certificateArn>","ACM certificate ARN (auto-created if not provided)").option("--dry-run","Show configuration without deploying",{default:!1}).option("--verbose","Enable verbose logging",{default:O.verbose}).action(async(Z)=>{let{deployCommand:$}=await import("./chunk-jcg8be8w.js");if(!await $(Z))v.exit(1)});C.help();C.version(a6);C.parse();
530
517
  export{E as a,F as b,I as c,x as d,N0 as e,V0 as f};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var a=import.meta.require;
3
+ export{a as L};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{a as $,b as I,c as f,d as h,f as x}from"./chunk-z0redasq.js";import{i as _}from"./chunk-1ymh7yt2.js";import{join as D}from"path";var Y="@stacksjs/ts-cloud";function E(j,A){let k=A||j?.provider;if(!k||k==="route53")return null;if(k==="porkbun"){let m=j?.apiKey||process.env.PORKBUN_API_KEY,w=j?.secretKey||process.env.PORKBUN_SECRET_KEY;if(!m||!w)throw Error("Porkbun API credentials not found. Set PORKBUN_API_KEY and PORKBUN_SECRET_KEY environment variables, or configure them in bunpress.config.ts under cloud.dnsProvider");return{provider:"porkbun",apiKey:m,secretKey:w}}if(k==="godaddy"){let m=j?.apiKey||process.env.GODADDY_API_KEY,w=j?.secretKey||process.env.GODADDY_API_SECRET,J=j?.environment||process.env.GODADDY_ENVIRONMENT;if(!m||!w)throw Error("GoDaddy API credentials not found. Set GODADDY_API_KEY and GODADDY_API_SECRET environment variables, or configure them in bunpress.config.ts under cloud.dnsProvider");return{provider:"godaddy",apiKey:m,apiSecret:w,environment:J}}throw Error(`Unknown DNS provider: ${k}. Supported: porkbun, godaddy, route53`)}async function v(j={}){let A=await _,k=A.cloud||{},m=j.verbose??A.verbose??!1,w=j.region||k.region||"us-east-1",J=j.domain||k.domain,M=j.subdomain||k.subdomain,N=j.baseDomain||k.baseDomain,O=j.bucket||k.bucket,P=j.stackName||k.stackName,U=j.hostedZoneId||k.hostedZoneId,Q=j.certificateArn||k.certificateArn,V=k.cacheControl||"max-age=31536000, public",B;if(J)B=J;else if(M&&N)B=`${M}.${N}`;let K=B?.replace(/\./g,"-")||"bunpress-site",G=null;try{G=E(k.dnsProvider,j.dnsProvider)}catch(H){return I(H.message),!1}let L=G!==null;if(j.dryRun){if(f("Dry run mode - no changes will be made"),console.log(`
2
+ import{a as $,b as I,c as f,d as h,f as x}from"./chunk-bgzqswwb.js";import{h as _}from"./chunk-kfzscenj.js";import"./chunk-h6ac3d60.js";import{join as D}from"path";var Y="@stacksjs/ts-cloud";function E(j,A){let k=A||j?.provider;if(!k||k==="route53")return null;if(k==="porkbun"){let m=j?.apiKey||process.env.PORKBUN_API_KEY,w=j?.secretKey||process.env.PORKBUN_SECRET_KEY;if(!m||!w)throw Error("Porkbun API credentials not found. Set PORKBUN_API_KEY and PORKBUN_SECRET_KEY environment variables, or configure them in bunpress.config.ts under cloud.dnsProvider");return{provider:"porkbun",apiKey:m,secretKey:w}}if(k==="godaddy"){let m=j?.apiKey||process.env.GODADDY_API_KEY,w=j?.secretKey||process.env.GODADDY_API_SECRET,J=j?.environment||process.env.GODADDY_ENVIRONMENT;if(!m||!w)throw Error("GoDaddy API credentials not found. Set GODADDY_API_KEY and GODADDY_API_SECRET environment variables, or configure them in bunpress.config.ts under cloud.dnsProvider");return{provider:"godaddy",apiKey:m,apiSecret:w,environment:J}}throw Error(`Unknown DNS provider: ${k}. Supported: porkbun, godaddy, route53`)}async function v(j={}){let A=await _,k=A.cloud||{},m=j.verbose??A.verbose??!1,w=j.region||k.region||"us-east-1",J=j.domain||k.domain,M=j.subdomain||k.subdomain,N=j.baseDomain||k.baseDomain,O=j.bucket||k.bucket,P=j.stackName||k.stackName,U=j.hostedZoneId||k.hostedZoneId,Q=j.certificateArn||k.certificateArn,V=k.cacheControl||"max-age=31536000, public",B;if(J)B=J;else if(M&&N)B=`${M}.${N}`;let K=B?.replace(/\./g,"-")||"bunpress-site",G=null;try{G=E(k.dnsProvider,j.dnsProvider)}catch(H){return I(H.message),!1}let L=G!==null;if(j.dryRun){if(f("Dry run mode - no changes will be made"),console.log(`
3
3
  Configuration:`),console.log(` Region: ${w}`),console.log(` Site Name: ${K}`),console.log(` Bucket: ${O||"auto-generated"}`),console.log(` Domain: ${B||"not specified"}`),console.log(` Stack Name: ${P||`${K}-static-site`}`),console.log(` DNS Provider: ${G?.provider||"route53 (AWS)"}`),!L)console.log(` Hosted Zone ID: ${U||"auto-detected"}`);return console.log(` Certificate ARN: ${Q||"auto-created"}`),!0}if(!process.env.AWS_ACCESS_KEY_ID||!process.env.AWS_SECRET_ACCESS_KEY)return I("AWS credentials not found. Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables."),!1;let z=new h("Building documentation...");try{if(!m)z.start();if(!await x({verbose:m})){if(!m)z.fail("Build failed");return!1}if(!m)z.succeed("Documentation built successfully");let C=A.outDir||"./dist",X=D(C,".bunpress");if(!m)z.text="Deploying infrastructure with CloudFormation...",z.start();else if(console.log(`
4
4
  Deploying with CloudFormation...`),L)console.log(`Using external DNS provider: ${G.provider}`);let q;if(L&&B){let R={siteName:K,region:w,domain:B,bucket:O,stackName:P,certificateArn:Q,cacheControl:V,defaultRootObject:"index.html",errorDocument:"404.html",sourceDir:X,dnsProvider:G,tags:{Project:"BunPress",Environment:k.environment||"production"},onProgress:Z(z,m)},{deployStaticSiteWithExternalDnsFull:T}=await import(Y);q=await T(R)}else{let R={siteName:K,region:w,bucket:O,domain:B,subdomain:M,baseDomain:N,stackName:P,hostedZoneId:U,certificateArn:Q,cacheControl:V,defaultRootObject:"index.html",errorDocument:"404.html",sourceDir:X,tags:{Project:"BunPress",Environment:k.environment||"production"},onProgress:Z(z,m)},{deployStaticSiteFull:T}=await import(Y);q=await T(R)}if(!q.success){if(!m)z.fail("Deployment failed");return I(q.message),!1}if(console.log(`
5
5
  `+"=".repeat(50)),$("Deployment complete!"),console.log("=".repeat(50)),console.log(`