@gadgetinc/ggt 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{add-4ME2KTJQ.js → add-JIIVAOWH.js} +2 -2
  2. package/dist/chunk-APHXRHNI.js +8 -0
  3. package/dist/{chunk-QEVWPU3D.js.map → chunk-APHXRHNI.js.map} +1 -1
  4. package/dist/{chunk-GA7AL463.js → chunk-AQRCAWW4.js} +2 -2
  5. package/dist/{chunk-G3VNV5Z6.js → chunk-BOQUW6DS.js} +3 -3
  6. package/dist/{chunk-G3VNV5Z6.js.map → chunk-BOQUW6DS.js.map} +3 -3
  7. package/dist/{chunk-KGSSHEEC.js → chunk-CKSTMUDN.js} +2 -2
  8. package/dist/{chunk-5DLLJX5F.js → chunk-ERYUXLYS.js} +2 -2
  9. package/dist/{chunk-IKJVXTZK.js → chunk-GACF5GYF.js} +2 -2
  10. package/dist/chunk-GBCD37US.js +57 -0
  11. package/dist/chunk-GBCD37US.js.map +7 -0
  12. package/dist/chunk-P2XPMNL6.js +183 -0
  13. package/dist/{chunk-KXK37C5D.js.map → chunk-P2XPMNL6.js.map} +4 -4
  14. package/dist/{chunk-NJIDVM2C.js → chunk-PSRZ5JH5.js} +2 -2
  15. package/dist/{chunk-YRP2UZ2I.js → chunk-RJOIQTYZ.js} +3 -3
  16. package/dist/{chunk-YRP2UZ2I.js.map → chunk-RJOIQTYZ.js.map} +2 -2
  17. package/dist/chunk-XCHCCJJZ.js +2 -0
  18. package/dist/deploy-KMGAGIDE.js +30 -0
  19. package/dist/{deploy-6HOBYPE6.js.map → deploy-KMGAGIDE.js.map} +2 -2
  20. package/dist/{dev-M3WDGK4D.js → dev-VHJ52BEA.js} +2 -2
  21. package/dist/{list-725RHWD5.js → list-5E3R22IC.js} +2 -2
  22. package/dist/login-3DL45WY7.js +2 -0
  23. package/dist/{logout-UZBACOIX.js → logout-HX6MM4S6.js} +2 -2
  24. package/dist/main.js +1 -1
  25. package/dist/{open-GWKGQQG3.js → open-GEEWPSF4.js} +2 -2
  26. package/dist/{pull-7C5A65KB.js → pull-T2Q4M4UN.js} +2 -2
  27. package/dist/push-LUW25FYF.js +2 -0
  28. package/dist/{status-DFKKSRVB.js → status-5VZH3KXH.js} +2 -2
  29. package/dist/{version-JD42JXWY.js → version-OF4TQ2K6.js} +2 -2
  30. package/dist/{whoami-I23R6HOG.js → whoami-V3XD27QH.js} +2 -2
  31. package/package.json +3 -3
  32. package/dist/chunk-BZY2AIPV.js +0 -57
  33. package/dist/chunk-BZY2AIPV.js.map +0 -7
  34. package/dist/chunk-KXK37C5D.js +0 -183
  35. package/dist/chunk-QEVWPU3D.js +0 -8
  36. package/dist/chunk-X36GM74C.js +0 -2
  37. package/dist/deploy-6HOBYPE6.js +0 -30
  38. package/dist/login-I4RGMDLE.js +0 -2
  39. package/dist/push-LPUIR4EO.js +0 -2
  40. /package/dist/{add-4ME2KTJQ.js.map → add-JIIVAOWH.js.map} +0 -0
  41. /package/dist/{chunk-GA7AL463.js.map → chunk-AQRCAWW4.js.map} +0 -0
  42. /package/dist/{chunk-KGSSHEEC.js.map → chunk-CKSTMUDN.js.map} +0 -0
  43. /package/dist/{chunk-5DLLJX5F.js.map → chunk-ERYUXLYS.js.map} +0 -0
  44. /package/dist/{chunk-IKJVXTZK.js.map → chunk-GACF5GYF.js.map} +0 -0
  45. /package/dist/{chunk-NJIDVM2C.js.map → chunk-PSRZ5JH5.js.map} +0 -0
  46. /package/dist/{chunk-X36GM74C.js.map → chunk-XCHCCJJZ.js.map} +0 -0
  47. /package/dist/{dev-M3WDGK4D.js.map → dev-VHJ52BEA.js.map} +0 -0
  48. /package/dist/{list-725RHWD5.js.map → list-5E3R22IC.js.map} +0 -0
  49. /package/dist/{login-I4RGMDLE.js.map → login-3DL45WY7.js.map} +0 -0
  50. /package/dist/{logout-UZBACOIX.js.map → logout-HX6MM4S6.js.map} +0 -0
  51. /package/dist/{open-GWKGQQG3.js.map → open-GEEWPSF4.js.map} +0 -0
  52. /package/dist/{pull-7C5A65KB.js.map → pull-T2Q4M4UN.js.map} +0 -0
  53. /package/dist/{push-LPUIR4EO.js.map → push-LUW25FYF.js.map} +0 -0
  54. /package/dist/{status-DFKKSRVB.js.map → status-5VZH3KXH.js.map} +0 -0
  55. /package/dist/{version-JD42JXWY.js.map → version-OF4TQ2K6.js.map} +0 -0
  56. /package/dist/{whoami-I23R6HOG.js.map → whoami-V3XD27QH.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as ee,c as ae,d as ue,e as pe,f as ce,g as fe,i as de,j as I,k as D,l as me,m as ge,n as G,r as he,s as Ae,t as ye}from"./chunk-GA7AL463.js";import{H as se,I as N,T as oe,U as L,V as ie,b as te,f as re,o as ne}from"./chunk-BZY2AIPV.js";import{a as le}from"./chunk-F3EZ4KS3.js";import{a as Z,c as $,e as S,g as u}from"./chunk-5WC5D4WL.js";var Oe=$((ze,Te)=>{"use strict";u();var De=Z("os"),we=Z("tty"),d=le(),{env:p}=process,E;d("no-color")||d("no-colors")||d("color=false")||d("color=never")?E=0:(d("color")||d("colors")||d("color=true")||d("color=always"))&&(E=1);"FORCE_COLOR"in p&&(p.FORCE_COLOR==="true"?E=1:p.FORCE_COLOR==="false"?E=0:E=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3));function F(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function q(t,e){if(E===0)return 0;if(d("color=16m")||d("color=full")||d("color=truecolor"))return 3;if(d("color=256"))return 2;if(t&&!e&&E===void 0)return 0;let r=E||0;if(p.TERM==="dumb")return r;if(process.platform==="win32"){let o=De.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in p)||p.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if(p.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in p){let o=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:r}function Ge(t){let e=q(t,t&&t.isTTY);return F(e)}Te.exports={supportsColor:Ge,stdout:F(q(!0,we.isatty(1))),stderr:F(q(!0,we.isatty(2)))}});var be=$((Qe,Ce)=>{"use strict";u();var je=Oe(),b=le();function xe(t){if(/^\d{3,4}$/.test(t)){let r=/(\d{1,2})(\d{2})/.exec(t);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let e=(t||"").split(".").map(r=>parseInt(r,10));return{major:e[0],minor:e[1],patch:e[2]}}function U(t){let{env:e}=process;if("FORCE_HYPERLINK"in e)return!(e.FORCE_HYPERLINK.length>0&&parseInt(e.FORCE_HYPERLINK,10)===0);if(b("no-hyperlink")||b("no-hyperlinks")||b("hyperlink=false")||b("hyperlink=never"))return!1;if(b("hyperlink=true")||b("hyperlink=always")||"NETLIFY"in e)return!0;if(!je.supportsColor(t)||t&&!t.isTTY||process.platform==="win32"||"CI"in e||"TEAMCITY_VERSION"in e)return!1;if("TERM_PROGRAM"in e){let r=xe(e.TERM_PROGRAM_VERSION);switch(e.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in e){if(e.VTE_VERSION==="0.50.0")return!1;let r=xe(e.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Ce.exports={supportsHyperlink:U,stdout:U(process.stdout),stderr:U(process.stderr)}});var _e=$((yt,ve)=>{u();var Y=Symbol("arg flag"),m=class t extends Error{constructor(e,r){super(e),this.name="ArgError",this.code=r,Object.setPrototypeOf(this,t.prototype)}};function P(t,{argv:e=process.argv.slice(2),permissive:r=!1,stopAtPositional:o=!1}={}){if(!t)throw new m("argument specification object is required","ARG_CONFIG_NO_SPEC");let n={_:[]},l={},A={};for(let a of Object.keys(t)){if(!a)throw new m("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(a[0]!=="-")throw new m(`argument key must start with '-' but found: '${a}'`,"ARG_CONFIG_NONOPT_KEY");if(a.length===1)throw new m(`argument key must have a name; singular '-' keys are not allowed: ${a}`,"ARG_CONFIG_NONAME_KEY");if(typeof t[a]=="string"){l[a]=t[a];continue}let g=t[a],f=!1;if(Array.isArray(g)&&g.length===1&&typeof g[0]=="function"){let[T]=g;g=(y,x,h=[])=>(h.push(T(y,x,h[h.length-1])),h),f=T===Boolean||T[Y]===!0}else if(typeof g=="function")f=g===Boolean||g[Y]===!0;else throw new m(`type missing or not a function or valid array type: ${a}`,"ARG_CONFIG_VAD_TYPE");if(a[1]!=="-"&&a.length>2)throw new m(`short argument keys (with a single hyphen) must have only one character: ${a}`,"ARG_CONFIG_SHORTOPT_TOOLONG");A[a]=[g,f]}for(let a=0,g=e.length;a<g;a++){let f=e[a];if(o&&n._.length>0){n._=n._.concat(e.slice(a));break}if(f==="--"){n._=n._.concat(e.slice(a+1));break}if(f.length>1&&f[0]==="-"){let T=f[1]==="-"||f.length===2?[f]:f.slice(1).split("").map(y=>`-${y}`);for(let y=0;y<T.length;y++){let x=T[y],[h,W]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],c=h;for(;c in l;)c=l[c];if(!(c in A))if(r){n._.push(x);continue}else throw new m(`unknown or unexpected option: ${h}`,"ARG_UNKNOWN_OPTION");let[k,X]=A[c];if(!X&&y+1<T.length)throw new m(`option requires argument (but was followed by another short argument): ${h}`,"ARG_MISSING_REQUIRED_SHORTARG");if(X)n[c]=k(!0,c,n[c]);else if(W===void 0){if(e.length<a+2||e[a+1].length>1&&e[a+1][0]==="-"&&!(e[a+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(k===Number||typeof BigInt<"u"&&k===BigInt))){let Le=h===c?"":` (alias for ${c})`;throw new m(`option requires argument: ${h}${Le}`,"ARG_MISSING_REQUIRED_LONGARG")}n[c]=k(e[a+1],c,n[c]),++a}else n[c]=k(W,c,n[c])}}else n._.push(f)}return n}P.flag=t=>(t[Y]=!0,t);P.COUNT=P.flag((t,e,r)=>(r||0)+1);P.ArgError=m;ve.exports=P});u();u();var i="\x1B[",v="\x1B]",C="\x07",j=";",Ee=process.env.TERM_PROGRAM==="Apple_Terminal",s={};s.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?i+(t+1)+"G":i+(e+1)+";"+(t+1)+"H"};s.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let r="";return t<0?r+=i+-t+"D":t>0&&(r+=i+t+"C"),e<0?r+=i+-e+"A":e>0&&(r+=i+e+"B"),r};s.cursorUp=(t=1)=>i+t+"A";s.cursorDown=(t=1)=>i+t+"B";s.cursorForward=(t=1)=>i+t+"C";s.cursorBackward=(t=1)=>i+t+"D";s.cursorLeft=i+"G";s.cursorSavePosition=Ee?"\x1B7":i+"s";s.cursorRestorePosition=Ee?"\x1B8":i+"u";s.cursorGetPosition=i+"6n";s.cursorNextLine=i+"E";s.cursorPrevLine=i+"F";s.cursorHide=i+"?25l";s.cursorShow=i+"?25h";s.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=s.eraseLine+(r<t-1?s.cursorUp():"");return t&&(e+=s.cursorLeft),e};s.eraseEndLine=i+"K";s.eraseStartLine=i+"1K";s.eraseLine=i+"2K";s.eraseDown=i+"J";s.eraseUp=i+"1J";s.eraseScreen=i+"2J";s.scrollUp=i+"S";s.scrollDown=i+"T";s.clearScreen="\x1Bc";s.clearTerminal=process.platform==="win32"?`${s.eraseScreen}${i}0f`:`${s.eraseScreen}${i}3J${i}H`;s.beep=C;s.link=(t,e)=>[v,"8",j,j,e,C,t,v,"8",j,j,C].join("");s.image=(t,e={})=>{let r=`${v}1337;File=inline=1`;return e.width&&(r+=`;width=${e.width}`),e.height&&(r+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+t.toString("base64")+C};s.iTerm={setCwd:(t=process.cwd())=>`${v}50;CurrentDir=${t}${C}`,annotation:(t,e={})=>{let r=`${v}1337;`,o=typeof e.x<"u",n=typeof e.y<"u";if((o||n)&&!(o&&n&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),r+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?r+=(o?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):r+=t,r+C}};var Re=s;var B=S(be(),1);function R(t,e,{target:r="stdout",...o}={}){return B.default[r]?Re.link(t,e):o.fallback===!1?t:typeof o.fallback=="function"?o.fallback(t,e):`${t} (\u200B${e}\u200B)`}R.isSupported=B.default.stdout;R.stderr=(t,e,r={})=>R(t,e,{target:"stderr",...r});R.stderr.isSupported=B.default.stderr;u();import{randomUUID as Be}from"node:crypto";var He=async(t,e)=>{if(ne(e))return t.log.debug("aborting without reporting error",{error:e}),process.exit(1);t.log.error("reporting error and exiting",{error:e});try{let r=w.from(e);if(r.print(),r.isBug===O.NO)return;await ge(t,r)}finally{process.exit(1)}},ct=async t=>{t.log.debug("installing error handlers"),await me(t);let e=r=>void He(t,r);process.once("uncaughtException",e),process.once("unhandledRejection",e)},O=Object.freeze({YES:"yes",NO:"no",MAYBE:"maybe"}),w=class t extends Error{id=se.testLike?"00000000-0000-0000-0000-000000000000":Be();cause;stack;constructor(e){super(e),Error.captureStackTrace(this,this.constructor),this.stack=ue(this.stack,{pretty:!0,basePath:fe})}static from(e){return e instanceof t?e:new _(e)}sprint(){let e=this.render();if(this.isBug!==O.NO){e=L(e);let r=this.isBug===O.YES?"This is a bug":"If you think this is a bug",o=`https://github.com/gadget-inc/ggt/issues/new?template=bug_report.yml&error-id=${this.id}`;R.isSupported?e+=L({ensureEmptyLineAbove:!0})`
1
+ import{a as ee,c as ae,d as ue,e as pe,f as ce,g as fe,i as de,j as I,k as D,l as me,m as ge,n as G,r as he,s as Ae,t as ye}from"./chunk-AQRCAWW4.js";import{H as se,I as N,U as oe,V as L,W as ie,b as te,f as re,o as ne}from"./chunk-GBCD37US.js";import{a as le}from"./chunk-F3EZ4KS3.js";import{a as Z,c as $,e as S,g as u}from"./chunk-5WC5D4WL.js";var Oe=$((ze,Te)=>{"use strict";u();var De=Z("os"),we=Z("tty"),d=le(),{env:p}=process,E;d("no-color")||d("no-colors")||d("color=false")||d("color=never")?E=0:(d("color")||d("colors")||d("color=true")||d("color=always"))&&(E=1);"FORCE_COLOR"in p&&(p.FORCE_COLOR==="true"?E=1:p.FORCE_COLOR==="false"?E=0:E=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3));function F(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function q(t,e){if(E===0)return 0;if(d("color=16m")||d("color=full")||d("color=truecolor"))return 3;if(d("color=256"))return 2;if(t&&!e&&E===void 0)return 0;let r=E||0;if(p.TERM==="dumb")return r;if(process.platform==="win32"){let o=De.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(o=>o in p)||p.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if(p.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in p){let o=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:r}function Ge(t){let e=q(t,t&&t.isTTY);return F(e)}Te.exports={supportsColor:Ge,stdout:F(q(!0,we.isatty(1))),stderr:F(q(!0,we.isatty(2)))}});var be=$((Qe,Ce)=>{"use strict";u();var je=Oe(),b=le();function xe(t){if(/^\d{3,4}$/.test(t)){let r=/(\d{1,2})(\d{2})/.exec(t);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let e=(t||"").split(".").map(r=>parseInt(r,10));return{major:e[0],minor:e[1],patch:e[2]}}function U(t){let{env:e}=process;if("FORCE_HYPERLINK"in e)return!(e.FORCE_HYPERLINK.length>0&&parseInt(e.FORCE_HYPERLINK,10)===0);if(b("no-hyperlink")||b("no-hyperlinks")||b("hyperlink=false")||b("hyperlink=never"))return!1;if(b("hyperlink=true")||b("hyperlink=always")||"NETLIFY"in e)return!0;if(!je.supportsColor(t)||t&&!t.isTTY||process.platform==="win32"||"CI"in e||"TEAMCITY_VERSION"in e)return!1;if("TERM_PROGRAM"in e){let r=xe(e.TERM_PROGRAM_VERSION);switch(e.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in e){if(e.VTE_VERSION==="0.50.0")return!1;let r=xe(e.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Ce.exports={supportsHyperlink:U,stdout:U(process.stdout),stderr:U(process.stderr)}});var _e=$((yt,ve)=>{u();var Y=Symbol("arg flag"),m=class t extends Error{constructor(e,r){super(e),this.name="ArgError",this.code=r,Object.setPrototypeOf(this,t.prototype)}};function P(t,{argv:e=process.argv.slice(2),permissive:r=!1,stopAtPositional:o=!1}={}){if(!t)throw new m("argument specification object is required","ARG_CONFIG_NO_SPEC");let n={_:[]},l={},A={};for(let a of Object.keys(t)){if(!a)throw new m("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(a[0]!=="-")throw new m(`argument key must start with '-' but found: '${a}'`,"ARG_CONFIG_NONOPT_KEY");if(a.length===1)throw new m(`argument key must have a name; singular '-' keys are not allowed: ${a}`,"ARG_CONFIG_NONAME_KEY");if(typeof t[a]=="string"){l[a]=t[a];continue}let g=t[a],f=!1;if(Array.isArray(g)&&g.length===1&&typeof g[0]=="function"){let[T]=g;g=(y,x,h=[])=>(h.push(T(y,x,h[h.length-1])),h),f=T===Boolean||T[Y]===!0}else if(typeof g=="function")f=g===Boolean||g[Y]===!0;else throw new m(`type missing or not a function or valid array type: ${a}`,"ARG_CONFIG_VAD_TYPE");if(a[1]!=="-"&&a.length>2)throw new m(`short argument keys (with a single hyphen) must have only one character: ${a}`,"ARG_CONFIG_SHORTOPT_TOOLONG");A[a]=[g,f]}for(let a=0,g=e.length;a<g;a++){let f=e[a];if(o&&n._.length>0){n._=n._.concat(e.slice(a));break}if(f==="--"){n._=n._.concat(e.slice(a+1));break}if(f.length>1&&f[0]==="-"){let T=f[1]==="-"||f.length===2?[f]:f.slice(1).split("").map(y=>`-${y}`);for(let y=0;y<T.length;y++){let x=T[y],[h,W]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],c=h;for(;c in l;)c=l[c];if(!(c in A))if(r){n._.push(x);continue}else throw new m(`unknown or unexpected option: ${h}`,"ARG_UNKNOWN_OPTION");let[k,X]=A[c];if(!X&&y+1<T.length)throw new m(`option requires argument (but was followed by another short argument): ${h}`,"ARG_MISSING_REQUIRED_SHORTARG");if(X)n[c]=k(!0,c,n[c]);else if(W===void 0){if(e.length<a+2||e[a+1].length>1&&e[a+1][0]==="-"&&!(e[a+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(k===Number||typeof BigInt<"u"&&k===BigInt))){let Le=h===c?"":` (alias for ${c})`;throw new m(`option requires argument: ${h}${Le}`,"ARG_MISSING_REQUIRED_LONGARG")}n[c]=k(e[a+1],c,n[c]),++a}else n[c]=k(W,c,n[c])}}else n._.push(f)}return n}P.flag=t=>(t[Y]=!0,t);P.COUNT=P.flag((t,e,r)=>(r||0)+1);P.ArgError=m;ve.exports=P});u();u();var i="\x1B[",v="\x1B]",C="\x07",j=";",Ee=process.env.TERM_PROGRAM==="Apple_Terminal",s={};s.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?i+(t+1)+"G":i+(e+1)+";"+(t+1)+"H"};s.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let r="";return t<0?r+=i+-t+"D":t>0&&(r+=i+t+"C"),e<0?r+=i+-e+"A":e>0&&(r+=i+e+"B"),r};s.cursorUp=(t=1)=>i+t+"A";s.cursorDown=(t=1)=>i+t+"B";s.cursorForward=(t=1)=>i+t+"C";s.cursorBackward=(t=1)=>i+t+"D";s.cursorLeft=i+"G";s.cursorSavePosition=Ee?"\x1B7":i+"s";s.cursorRestorePosition=Ee?"\x1B8":i+"u";s.cursorGetPosition=i+"6n";s.cursorNextLine=i+"E";s.cursorPrevLine=i+"F";s.cursorHide=i+"?25l";s.cursorShow=i+"?25h";s.eraseLines=t=>{let e="";for(let r=0;r<t;r++)e+=s.eraseLine+(r<t-1?s.cursorUp():"");return t&&(e+=s.cursorLeft),e};s.eraseEndLine=i+"K";s.eraseStartLine=i+"1K";s.eraseLine=i+"2K";s.eraseDown=i+"J";s.eraseUp=i+"1J";s.eraseScreen=i+"2J";s.scrollUp=i+"S";s.scrollDown=i+"T";s.clearScreen="\x1Bc";s.clearTerminal=process.platform==="win32"?`${s.eraseScreen}${i}0f`:`${s.eraseScreen}${i}3J${i}H`;s.beep=C;s.link=(t,e)=>[v,"8",j,j,e,C,t,v,"8",j,j,C].join("");s.image=(t,e={})=>{let r=`${v}1337;File=inline=1`;return e.width&&(r+=`;width=${e.width}`),e.height&&(r+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+t.toString("base64")+C};s.iTerm={setCwd:(t=process.cwd())=>`${v}50;CurrentDir=${t}${C}`,annotation:(t,e={})=>{let r=`${v}1337;`,o=typeof e.x<"u",n=typeof e.y<"u";if((o||n)&&!(o&&n&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),r+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?r+=(o?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):r+=t,r+C}};var Re=s;var B=S(be(),1);function R(t,e,{target:r="stdout",...o}={}){return B.default[r]?Re.link(t,e):o.fallback===!1?t:typeof o.fallback=="function"?o.fallback(t,e):`${t} (\u200B${e}\u200B)`}R.isSupported=B.default.stdout;R.stderr=(t,e,r={})=>R(t,e,{target:"stderr",...r});R.stderr.isSupported=B.default.stderr;u();import{randomUUID as Be}from"node:crypto";var He=async(t,e)=>{if(ne(e))return t.log.debug("aborting without reporting error",{error:e}),process.exit(1);t.log.error("reporting error and exiting",{error:e});try{let r=w.from(e);if(r.print(),r.isBug===O.NO)return;await ge(t,r)}finally{process.exit(1)}},ct=async t=>{t.log.debug("installing error handlers"),await me(t);let e=r=>void He(t,r);process.once("uncaughtException",e),process.once("unhandledRejection",e)},O=Object.freeze({YES:"yes",NO:"no",MAYBE:"maybe"}),w=class t extends Error{id=se.testLike?"00000000-0000-0000-0000-000000000000":Be();cause;stack;constructor(e){super(e),Error.captureStackTrace(this,this.constructor),this.stack=ue(this.stack,{pretty:!0,basePath:fe})}static from(e){return e instanceof t?e:new _(e)}sprint(){let e=this.render();if(this.isBug!==O.NO){e=L(e);let r=this.isBug===O.YES?"This is a bug":"If you think this is a bug",o=`https://github.com/gadget-inc/ggt/issues/new?template=bug_report.yml&error-id=${this.id}`;R.isSupported?e+=L({ensureEmptyLineAbove:!0})`
2
2
  ${r}, ${R("click here",o)} to create an issue on GitHub.
3
3
  `:e+=L({ensureEmptyLineAbove:!0})`
4
4
  ${r}, use the link below to create an issue on GitHub.
@@ -14,4 +14,4 @@ import{a as ee,c as ae,d as ue,e as pe,f as ce,g as fe,i as de,j as I,k as D,l a
14
14
  ...options,
15
15
  });
16
16
  `)),t.context.ctx),Qt=ce.extend({agent:{http:new Ue({keepAlive:!0}),https:new Ve({keepAlive:!0})},retry:{limit:10,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN","EADDRNOTAVAIL","EHOSTUNREACH"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t,backoffLimit:(0,Ne.default)("5s"),noise:100},hooks:{beforeRequest:[t=>{let e=Q(t);t.signal=e.signal,t.headers["user-agent"]=N.versionFull,e.log.debug("http request",{http:{request:{method:t.method,url:t.url?.toString()}}})}],beforeRetry:[(t,e)=>{Q(t.request?.options??t.options.context).log.warn("http request failed, retrying...",{http:{retryCount:e,error:D(t),request:t.request&&{method:t.request.options.method,url:t.request.options.url?.toString()},response:t.response&&{statusCode:t.response.statusCode,traceId:t.response.headers["x-trace-id"],durationMs:t.response.timings.phases.total}}})}],afterResponse:[t=>(Q(t.request.options).log.debug("http response",{http:{request:{method:t.request.options.method,url:t.request.options.url?.toString()},response:{statusCode:t.statusCode,traceId:t.headers["x-trace-id"],durationMs:t.timings.phases.total}}}),t.statusCode===401&&Se(t.request.options)&&Ae(void 0),t)]}});export{_e as a,R as b,He as c,ct as d,O as e,w as f,ke as g,gt as h,z as i,M as j,Gt as k,jt as l,Qt as m};
17
- //# sourceMappingURL=chunk-KGSSHEEC.js.map
17
+ //# sourceMappingURL=chunk-CKSTMUDN.js.map
@@ -1,4 +1,4 @@
1
- import{N as Qt,Q as Z,R as Xt,U as L,V as tt}from"./chunk-BZY2AIPV.js";import{a as Q,c as v,e as X,g as p}from"./chunk-5WC5D4WL.js";var P=v((je,it)=>{p();var H=[],et=0,S=(i,t)=>{et>=t&&H.push(i)};S.WARN=1;S.INFO=2;S.DEBUG=3;S.reset=()=>{H=[]};S.setDebugLevel=i=>{et=i};S.warn=i=>S(i,S.WARN);S.info=i=>S(i,S.INFO);S.debug=i=>S(i,S.DEBUG);S.debugMessages=()=>H;it.exports=S});var D=v((_e,st)=>{p();var rt=Qt();function $(i){return i?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function M(i){let t=$();return(""+i).replace(t,"").split(`
1
+ import{O as Qt,R as Z,S as Xt,V as L,W as tt}from"./chunk-GBCD37US.js";import{a as Q,c as v,e as X,g as p}from"./chunk-5WC5D4WL.js";var P=v((je,it)=>{p();var H=[],et=0,S=(i,t)=>{et>=t&&H.push(i)};S.WARN=1;S.INFO=2;S.DEBUG=3;S.reset=()=>{H=[]};S.setDebugLevel=i=>{et=i};S.warn=i=>S(i,S.WARN);S.info=i=>S(i,S.INFO);S.debug=i=>S(i,S.DEBUG);S.debugMessages=()=>H;it.exports=S});var D=v((_e,st)=>{p();var rt=Qt();function $(i){return i?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function M(i){let t=$();return(""+i).replace(t,"").split(`
2
2
  `).reduce(function(n,o){return rt(o)>n?rt(o):n},0)}function q(i,t){return Array(t+1).join(i)}function Zt(i,t,e,r){let n=M(i);if(t+1>=n){let o=t-n;switch(r){case"right":{i=q(e,o)+i;break}case"center":{let s=Math.ceil(o/2),c=o-s;i=q(e,c)+i+q(e,s);break}default:{i=i+q(e,o);break}}}return i}var k={};function _(i,t,e){t="\x1B["+t+"m",e="\x1B["+e+"m",k[t]={set:i,to:!0},k[e]={set:i,to:!1},k[i]={on:t,off:e}}_("bold",1,22);_("italics",3,23);_("underline",4,24);_("inverse",7,27);_("strikethrough",9,29);function nt(i,t){let e=t[1]?parseInt(t[1].split(";")[0]):0;if(e>=30&&e<=39||e>=90&&e<=97){i.lastForegroundAdded=t[0];return}if(e>=40&&e<=49||e>=100&&e<=107){i.lastBackgroundAdded=t[0];return}if(e===0){for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&delete i[n];return}let r=k[t[0]];r&&(i[r.set]=r.to)}function te(i){let t=$(!0),e=t.exec(i),r={};for(;e!==null;)nt(r,e),e=t.exec(i);return r}function ot(i,t){let e=i.lastBackgroundAdded,r=i.lastForegroundAdded;return delete i.lastBackgroundAdded,delete i.lastForegroundAdded,Object.keys(i).forEach(function(n){i[n]&&(t+=k[n].off)}),e&&e!="\x1B[49m"&&(t+="\x1B[49m"),r&&r!="\x1B[39m"&&(t+="\x1B[39m"),t}function ee(i,t){let e=i.lastBackgroundAdded,r=i.lastForegroundAdded;return delete i.lastBackgroundAdded,delete i.lastForegroundAdded,Object.keys(i).forEach(function(n){i[n]&&(t=k[n].on+t)}),e&&e!="\x1B[49m"&&(t=e+t),r&&r!="\x1B[39m"&&(t=r+t),t}function ie(i,t){if(i.length===M(i))return i.substr(0,t);for(;M(i)>t;)i=i.slice(0,-1);return i}function re(i,t){let e=$(!0),r=i.split($()),n=0,o=0,s="",c,b={};for(;o<t;){c=e.exec(i);let a=r[n];if(n++,o+M(a)>t&&(a=ie(a,t-o)),s+=a,o+=M(a),o<t){if(!c)break;s+=c[0],nt(b,c)}}return ot(b,s)}function ne(i,t,e){if(e=e||"\u2026",M(i)<=t)return i;t-=M(e);let n=re(i,t);n+=e;let o="\x1B]8;;\x07";return i.includes(o)&&!n.includes(o)&&(n+=o),n}function oe(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function se(i,t){i=i||{},t=t||oe();let e=Object.assign({},t,i);return e.chars=Object.assign({},t.chars,i.chars),e.style=Object.assign({},t.style,i.style),e}function le(i,t){let e=[],r=t.split(/(\s+)/g),n=[],o=0,s;for(let c=0;c<r.length;c+=2){let b=r[c],a=o+M(b);o>0&&s&&(a+=s.length),a>i?(o!==0&&e.push(n.join("")),n=[b],o=M(b)):(n.push(s||"",b),o=a),s=r[c+1]}return o&&e.push(n.join("")),e}function ue(i,t){let e=[],r="";function n(s,c){for(r.length&&c&&(r+=c),r+=s;r.length>i;)e.push(r.slice(0,i)),r=r.slice(i)}let o=t.split(/(\s+)/g);for(let s=0;s<o.length;s+=2)n(o[s],s&&o[s-1]);return r.length&&e.push(r),e}function ae(i,t,e=!0){let r=[];t=t.split(`
3
3
  `);let n=e?le:ue;for(let o=0;o<t.length;o++)r.push.apply(r,n(i,t[o]));return r}function he(i){let t={},e=[];for(let r=0;r<i.length;r++){let n=ee(t,i[r]);t=te(n);let o=Object.assign({},t);e.push(ot(o,n))}return e}function fe(i,t){let e="\x1B]",r="\x07",n=";";return[e,"8",n,n,i||t,r,t,e,"8",n,n,r].join("")}st.exports={strlen:M,repeat:q,pad:Zt,truncate:ne,mergeOptions:se,wordWrap:ae,colorizeLines:he,hyperlink:fe}});var ht=v((Ge,at)=>{p();var ut={};at.exports=ut;var lt={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(lt).forEach(function(i){var t=lt[i],e=ut[i]=[];e.open="\x1B["+t[0]+"m",e.close="\x1B["+t[1]+"m"})});var ct=v(($e,ft)=>{"use strict";p();ft.exports=function(i,t){t=t||process.argv;var e=t.indexOf("--"),r=/^-{1,2}/.test(i)?"":"--",n=t.indexOf(r+i);return n!==-1&&(e===-1?!0:n<e)}});var pt=v((Fe,dt)=>{"use strict";p();var ce=Q("os"),A=ct(),O=process.env,B=void 0;A("no-color")||A("no-colors")||A("color=false")?B=!1:(A("color")||A("colors")||A("color=true")||A("color=always"))&&(B=!0);"FORCE_COLOR"in O&&(B=O.FORCE_COLOR.length===0||parseInt(O.FORCE_COLOR,10)!==0);function de(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function pe(i){if(B===!1)return 0;if(A("color=16m")||A("color=full")||A("color=truecolor"))return 3;if(A("color=256"))return 2;if(i&&!i.isTTY&&B!==!0)return 0;var t=B?1:0;if(process.platform==="win32"){var e=ce.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in O)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(n){return n in O})||O.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in O)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in O){var r=parseInt((O.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(O.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(O.TERM)||"COLORTERM"in O?1:(O.TERM==="dumb",t)}function Y(i){var t=pe(i);return de(t)}dt.exports={supportsColor:Y,stdout:Y(process.stdout),stderr:Y(process.stderr)}});var bt=v((De,gt)=>{p();gt.exports=function(t,e){var r="";t=t||"Run the trap, drop the bass",t=t.split("");var n={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(o){o=o.toLowerCase();var s=n[o]||[" "],c=Math.floor(Math.random()*s.length);typeof n[o]<"u"?r+=n[o][c]:r+=o}),r}});var yt=v((Ne,mt)=>{p();mt.exports=function(t,e){t=t||" he is here ";var r={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},n=[].concat(r.up,r.down,r.mid);function o(b){var a=Math.floor(Math.random()*b);return a}function s(b){var a=!1;return n.filter(function(y){a=y===b}),a}function c(b,a){var y="",x,m;a=a||{},a.up=typeof a.up<"u"?a.up:!0,a.mid=typeof a.mid<"u"?a.mid:!0,a.down=typeof a.down<"u"?a.down:!0,a.size=typeof a.size<"u"?a.size:"maxi",b=b.split("");for(m in b)if(!s(m)){switch(y=y+b[m],x={up:0,down:0,mid:0},a.size){case"mini":x.up=o(8),x.mid=o(2),x.down=o(8);break;case"maxi":x.up=o(16)+3,x.mid=o(4)+1,x.down=o(64)+3;break;default:x.up=o(8)+1,x.mid=o(6)/2,x.down=o(8)+1;break}var u=["up","mid","down"];for(var l in u)for(var h=u[l],d=0;d<=x[h];d++)a[h]&&(y=y+r[h][o(r[h].length)])}return y}return c(t,e)}});var xt=v((Ue,wt)=>{p();wt.exports=function(i){return function(t,e,r){if(t===" ")return t;switch(e%3){case 0:return i.red(t);case 1:return i.white(t);case 2:return i.blue(t)}}}});var St=v((Ke,vt)=>{p();vt.exports=function(i){return function(t,e,r){return e%2===0?t:i.inverse(t)}}});var Ot=v((Xe,Ct)=>{p();Ct.exports=function(i){var t=["red","yellow","green","blue","magenta"];return function(e,r,n){return e===" "?e:i[t[r++%t.length]](e)}}});var Et=v((ti,Rt)=>{p();Rt.exports=function(i){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(e,r,n){return e===" "?e:i[t[Math.round(Math.random()*(t.length-2))]](e)}}});var kt=v((ri,Lt)=>{p();var f={};Lt.exports=f;f.themes={};var ge=Q("util"),T=f.styles=ht(),Mt=Object.defineProperties,be=new RegExp(/[\r\n]+/g);f.supportsColor=pt().supportsColor;typeof f.enabled>"u"&&(f.enabled=f.supportsColor()!==!1);f.enable=function(){f.enabled=!0};f.disable=function(){f.enabled=!1};f.stripColors=f.strip=function(i){return(""+i).replace(/\x1B\[\d+m/g,"")};var ii=f.stylize=function(t,e){if(!f.enabled)return t+"";var r=T[e];return!r&&e in f?f[e](t):r.open+t+r.close},me=/[|\\{}()[\]^$+*?.]/g,ye=function(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(me,"\\$&")};function Wt(i){var t=function e(){return xe.apply(e,arguments)};return t._styles=i,t.__proto__=we,t}var Tt=function(){var i={};return T.grey=T.gray,Object.keys(T).forEach(function(t){T[t].closeRe=new RegExp(ye(T[t].close),"g"),i[t]={get:function(){return Wt(this._styles.concat(t))}}}),i}(),we=Mt(function(){},Tt);function xe(){var i=Array.prototype.slice.call(arguments),t=i.map(function(s){return s!=null&&s.constructor===String?s:ge.inspect(s)}).join(" ");if(!f.enabled||!t)return t;for(var e=t.indexOf(`
4
4
  `)!=-1,r=this._styles,n=r.length;n--;){var o=T[r[n]];t=o.open+t.replace(o.closeRe,o.open)+o.close,e&&(t=t.replace(be,function(s){return o.close+s+o.open}))}return t}f.setTheme=function(i){if(typeof i=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in i)(function(e){f[e]=function(r){if(typeof i[e]=="object"){var n=r;for(var o in i[e])n=f[i[e][o]](n);return n}return f[i[e]](r)}})(t)};function ve(){var i={};return Object.keys(Tt).forEach(function(t){i[t]={get:function(){return Wt([t])}}}),i}var Se=function(t,e){var r=e.split("");return r=r.map(t),r.join("")};f.trap=bt();f.zalgo=yt();f.maps={};f.maps.america=xt()(f);f.maps.zebra=St()(f);f.maps.rainbow=Ot()(f);f.maps.random=Et()(f);for(At in f.maps)(function(i){f[i]=function(t){return Se(f.maps[i],t)}})(At);var At;Mt(f,ve())});var jt=v((oi,Bt)=>{p();var Ce=kt();Bt.exports=Ce});var Gt=v((li,z)=>{p();var{info:Oe,debug:It}=P(),E=D(),V=class i{constructor(t){this.setOptions(t),this.x=null,this.y=null}setOptions(t){["boolean","number","bigint","string"].indexOf(typeof t)!==-1&&(t={content:""+t}),t=t||{},this.options=t;let e=t.content;if(["boolean","number","bigint","string"].indexOf(typeof e)!==-1)this.content=String(e);else if(!e)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof e);this.colSpan=t.colSpan||1,this.rowSpan=t.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(t,e){this.cells=e;let r=this.options.chars||{},n=t.chars,o=this.chars={};Ee.forEach(function(b){N(r,n,b,o)}),this.truncate=this.options.truncate||t.truncate;let s=this.options.style=this.options.style||{},c=t.style;N(s,c,"padding-left",this),N(s,c,"padding-right",this),this.head=s.head||c.head,this.border=s.border||c.border,this.fixedWidth=t.colWidths[this.x],this.lines=this.computeLines(t),this.desiredWidth=E.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(t){let e=t.wordWrap||t.textWrap,{wordWrap:r=e}=this.options;if(this.fixedWidth&&r){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let s=1;for(;s<this.colSpan;)this.fixedWidth+=t.colWidths[this.x+s],s++}let{wrapOnWordBoundary:n=!0}=t,{wrapOnWordBoundary:o=n}=this.options;return this.wrapLines(E.wordWrap(this.fixedWidth,this.content,o))}return this.wrapLines(this.content.split(`
@@ -8,4 +8,4 @@ import{N as Qt,Q as Z,R as Xt,U as L,V as tt}from"./chunk-BZY2AIPV.js";import{a
8
8
  `;return s==="none"&&(m=(0,Vt.dedent)(m).slice(1)),m=m.split(`
9
9
  `).map(u=>u.trimEnd()).join(`
10
10
  `),a&&(m=Z(m,a)),i&&(m=L(i)+L({ensureEmptyLineAbove:n})(m)),r&&(m=L(m)+L({ensureEmptyLineAbove:o})(r)),L(y)(m)},yi=i=>{tt(i)(ke(i))},Be={none:{"top-left":"",top:"","top-mid":"","top-right":"","left-mid":"",mid:"","mid-mid":"","right-mid":"",left:"",middle:"",right:"","bottom-left":"",bottom:"","bottom-mid":"","bottom-right":""},thin:{"top-left":"\u250C",top:"\u2500","top-mid":"\u252C","top-right":"\u2510","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C","right-mid":"\u2524",left:"\u2502",middle:"\u2502",right:"\u2502","bottom-left":"\u2514",bottom:"\u2500","bottom-mid":"\u2534","bottom-right":"\u2518"},thick:{"top-left":"\u2554",top:"\u2550","top-mid":"\u2564","top-right":"\u2557",left:"\u2551",middle:"\u2502",right:"\u2551","left-mid":"\u255F",mid:"\u2500","mid-mid":"\u253C","right-mid":"\u2562","bottom-left":"\u255A",bottom:"\u2550","bottom-mid":"\u2567","bottom-right":"\u255D"}};export{ke as a,yi as b};
11
- //# sourceMappingURL=chunk-5DLLJX5F.js.map
11
+ //# sourceMappingURL=chunk-ERYUXLYS.js.map
@@ -1,4 +1,4 @@
1
- import{m as h}from"./chunk-KXK37C5D.js";import{m as i,n as c,o as g}from"./chunk-YRP2UZ2I.js";import{i as r}from"./chunk-KGSSHEEC.js";import{T as o,V as a}from"./chunk-BZY2AIPV.js";import{g as t}from"./chunk-5WC5D4WL.js";t();var w={...i,"--force":{type:Boolean,alias:"-f"}},v=e=>o`
1
+ import{m as h}from"./chunk-P2XPMNL6.js";import{m as i,n as c,o as g}from"./chunk-RJOIQTYZ.js";import{i as r}from"./chunk-CKSTMUDN.js";import{U as o,W as a}from"./chunk-GBCD37US.js";import{g as t}from"./chunk-5WC5D4WL.js";t();var w={...i,"--force":{type:Boolean,alias:"-f"}},v=e=>o`
2
2
  Pushes your local files to your environment directory.
3
3
 
4
4
  This command first tracks changes in your environment directory since the last sync.
@@ -25,4 +25,4 @@ import{m as h}from"./chunk-KXK37C5D.js";import{m as i,n as c,o as g}from"./chunk
25
25
  `);let p=await g(process.cwd()),y=await c.loadOrInit(e,{directory:p}),s=new h(y),n=await s.hashes(e);if(n.localChangesToPush.size===0){a({ensureEmptyLineAbove:!0})`
26
26
  Nothing to push.
27
27
  `;return}n.environmentChangesToPull.size>0&&!n.onlyDotGadgetFilesChanged&&await s.print(e,{hashes:n}),await s.push(e,{hashes:n})};export{w as a,v as b,P as c};
28
- //# sourceMappingURL=chunk-IKJVXTZK.js.map
28
+ //# sourceMappingURL=chunk-GACF5GYF.js.map