create-qwik 0.0.109-0 → 0.0.110

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 (106) hide show
  1. package/index.cjs +63 -67
  2. package/package.json +1 -1
  3. package/starters/apps/base/README.md +46 -11
  4. package/starters/apps/base/package.json +11 -10
  5. package/starters/apps/base/public/favicon.svg +1 -0
  6. package/starters/apps/base/src/entry.dev.tsx +6 -4
  7. package/starters/apps/base/src/entry.preview.tsx +15 -2
  8. package/starters/apps/base/src/entry.ssr.tsx +12 -0
  9. package/starters/apps/base/src/global.css +7 -0
  10. package/starters/apps/base/src/routes/service-worker.ts +18 -0
  11. package/starters/apps/base/vite.config.ts +3 -1
  12. package/starters/apps/basic/package.json +9 -0
  13. package/starters/apps/basic/src/components/header/header.css +37 -0
  14. package/starters/apps/basic/src/components/header/header.tsx +34 -0
  15. package/starters/apps/basic/src/components/icons/qwik.tsx +32 -0
  16. package/starters/apps/basic/src/components/router-head/router-head.tsx +43 -0
  17. package/starters/apps/basic/src/global.css +125 -0
  18. package/starters/apps/basic/src/root.tsx +26 -0
  19. package/starters/apps/basic/src/routes/flower/flower.css +71 -0
  20. package/starters/apps/basic/src/routes/flower/index.tsx +54 -0
  21. package/starters/apps/basic/src/routes/index.tsx +133 -0
  22. package/starters/apps/basic/src/routes/layout.tsx +20 -0
  23. package/starters/apps/documentation-site/package.json +9 -0
  24. package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.css +0 -0
  25. package/starters/apps/{qwik-city → documentation-site}/src/components/breadcrumbs/breadcrumbs.tsx +0 -0
  26. package/starters/apps/{qwik-city → documentation-site}/src/components/footer/footer.css +4 -4
  27. package/starters/apps/documentation-site/src/components/footer/footer.tsx +36 -0
  28. package/starters/apps/documentation-site/src/components/header/header.css +34 -0
  29. package/starters/apps/documentation-site/src/components/header/header.tsx +26 -0
  30. package/starters/apps/documentation-site/src/components/icons/qwik.tsx +20 -0
  31. package/starters/apps/{qwik-city → documentation-site}/src/components/menu/menu.css +0 -0
  32. package/starters/apps/{qwik-city → documentation-site}/src/components/menu/menu.tsx +1 -1
  33. package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.css +33 -0
  34. package/starters/apps/documentation-site/src/components/on-this-page/on-this-page.tsx +62 -0
  35. package/starters/apps/documentation-site/src/components/router-head/router-head.tsx +43 -0
  36. package/starters/apps/documentation-site/src/global.css +66 -0
  37. package/starters/apps/documentation-site/src/root.tsx +26 -0
  38. package/starters/apps/documentation-site/src/routes/about-us/index.md +15 -0
  39. package/starters/apps/documentation-site/src/routes/docs/advanced/index.md +11 -0
  40. package/starters/apps/documentation-site/src/routes/docs/docs.css +22 -0
  41. package/starters/apps/documentation-site/src/routes/docs/getting-started/index.md +13 -0
  42. package/starters/apps/documentation-site/src/routes/docs/index.md +22 -0
  43. package/starters/apps/documentation-site/src/routes/docs/layout.tsx +25 -0
  44. package/starters/apps/documentation-site/src/routes/docs/menu.md +21 -0
  45. package/starters/apps/documentation-site/src/routes/index.tsx +137 -0
  46. package/starters/apps/{qwik-city → documentation-site}/src/routes/layout.tsx +4 -4
  47. package/starters/apps/library/package.json +2 -7
  48. package/starters/apps/base/public/favicon.ico +0 -0
  49. package/starters/apps/base/public/favicons/android-chrome-192x192.png +0 -0
  50. package/starters/apps/base/public/favicons/apple-touch-icon.png +0 -0
  51. package/starters/apps/base/public/favicons/favicon-16x16.png +0 -0
  52. package/starters/apps/base/public/favicons/favicon-32x32.png +0 -0
  53. package/starters/apps/base/public/favicons/favicon.svg +0 -13
  54. package/starters/apps/base/src/root.tsx +0 -14
  55. package/starters/apps/blank/dist/q-manifest.json +0 -105
  56. package/starters/apps/blank/package.json +0 -7
  57. package/starters/apps/blank/src/components/app/app.tsx +0 -54
  58. package/starters/apps/blank/src/components/logo/logo.tsx +0 -16
  59. package/starters/apps/blank/src/entry.preview.tsx +0 -18
  60. package/starters/apps/blank/src/entry.ssr.tsx +0 -15
  61. package/starters/apps/blank/src/global.css +0 -3
  62. package/starters/apps/blank/src/root.tsx +0 -18
  63. package/starters/apps/qwik-city/dist/favicons/android-chrome-192x192.png +0 -0
  64. package/starters/apps/qwik-city/dist/favicons/android-chrome-256x256.png +0 -0
  65. package/starters/apps/qwik-city/dist/favicons/apple-touch-icon.png +0 -0
  66. package/starters/apps/qwik-city/dist/favicons/favicon.svg +0 -1
  67. package/starters/apps/qwik-city/dist/logos/qwik-logo.svg +0 -1
  68. package/starters/apps/qwik-city/dist/logos/qwik.svg +0 -1
  69. package/starters/apps/qwik-city/dist/q-manifest.json +0 -904
  70. package/starters/apps/qwik-city/dist/service-worker.js +0 -167
  71. package/starters/apps/qwik-city/package.json +0 -8
  72. package/starters/apps/qwik-city/src/components/counter/counter.tsx +0 -19
  73. package/starters/apps/qwik-city/src/components/footer/footer.tsx +0 -27
  74. package/starters/apps/qwik-city/src/components/head/analytics.tsx +0 -13
  75. package/starters/apps/qwik-city/src/components/head/head.tsx +0 -34
  76. package/starters/apps/qwik-city/src/components/head/social.tsx +0 -10
  77. package/starters/apps/qwik-city/src/components/header/header.css +0 -46
  78. package/starters/apps/qwik-city/src/components/header/header.tsx +0 -36
  79. package/starters/apps/qwik-city/src/entry.ssr.tsx +0 -17
  80. package/starters/apps/qwik-city/src/global.css +0 -24
  81. package/starters/apps/qwik-city/src/root.tsx +0 -16
  82. package/starters/apps/qwik-city/src/routes/about-us/index.tsx +0 -17
  83. package/starters/apps/qwik-city/src/routes/api/[org]/[user].json/index.ts +0 -15
  84. package/starters/apps/qwik-city/src/routes/api/api.css +0 -14
  85. package/starters/apps/qwik-city/src/routes/api/data.json/index.ts +0 -9
  86. package/starters/apps/qwik-city/src/routes/api/index@api.tsx +0 -34
  87. package/starters/apps/qwik-city/src/routes/api/layout-api.tsx +0 -37
  88. package/starters/apps/qwik-city/src/routes/blog/[...slug]/index.tsx +0 -36
  89. package/starters/apps/qwik-city/src/routes/blog/index.md +0 -7
  90. package/starters/apps/qwik-city/src/routes/blog/layout.tsx +0 -21
  91. package/starters/apps/qwik-city/src/routes/dashboard/dashboard.css +0 -14
  92. package/starters/apps/qwik-city/src/routes/dashboard/index.tsx +0 -15
  93. package/starters/apps/qwik-city/src/routes/dashboard/layout!.tsx +0 -44
  94. package/starters/apps/qwik-city/src/routes/dashboard/profile/index.tsx +0 -15
  95. package/starters/apps/qwik-city/src/routes/dashboard/settings/index.tsx +0 -15
  96. package/starters/apps/qwik-city/src/routes/docs/[category]/[id]/index.tsx +0 -23
  97. package/starters/apps/qwik-city/src/routes/docs/docs.css +0 -10
  98. package/starters/apps/qwik-city/src/routes/docs/getting-started/index.md +0 -44
  99. package/starters/apps/qwik-city/src/routes/docs/index.tsx +0 -14
  100. package/starters/apps/qwik-city/src/routes/docs/layout!.tsx +0 -31
  101. package/starters/apps/qwik-city/src/routes/docs/menu.md +0 -11
  102. package/starters/apps/qwik-city/src/routes/docs/overview/index.md +0 -7
  103. package/starters/apps/qwik-city/src/routes/index.tsx +0 -16
  104. package/starters/apps/qwik-city/src/routes/products/[id]/index.tsx +0 -123
  105. package/starters/apps/qwik-city/src/routes/service-worker.ts +0 -10
  106. package/starters/apps/qwik-city/vite.config.ts +0 -10
package/index.cjs CHANGED
@@ -1,33 +1,33 @@
1
1
  /**
2
2
  * @license
3
- * create-qwik 0.0.108-dev20220914032034
3
+ * create-qwik 0.0.110-dev20220918045338
4
4
  * Copyright Builder.io, Inc. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
7
7
  */
8
- "use strict";var $c=Object.create;var gt=Object.defineProperty;var Lc=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Fc=Object.getPrototypeOf,Nc=Object.prototype.hasOwnProperty;var Uc=(t,e,r)=>e in t?gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Hc=(t,e)=>{for(var r in e)gt(t,r,{get:e[r],enumerable:!0})},dn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Bc(e))!Nc.call(t,s)&&s!==r&&gt(t,s,{get:()=>e[s],enumerable:!(i=Lc(e,s))||i.enumerable});return t};var A=(t,e,r)=>(r=t!=null?$c(Fc(t)):{},dn(e||!t||!t.__esModule?gt(r,"default",{value:t,enumerable:!0}):r,t)),Wc=t=>dn(gt({},"__esModule",{value:!0}),t);var pn=(t,e,r)=>(Uc(t,typeof e!="symbol"?e+"":e,r),r),gn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(gn(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,i)=>(gn(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),mt=(t,e,r,i)=>({set _(s){y(t,e,s,r)},get _(){return c(t,e,i)}});var xn=h((Z0,_n)=>{"use strict";_n.exports=function(){if(!!process.env.npm_config_user_agent)return Yc(process.env.npm_config_user_agent)};function Yc(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:e.substring(r+1)}}});var Mn=h((nb,Jr)=>{"use strict";var An=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Jr.exports=An;Jr.exports.default=An});var In=h((ob,Qt)=>{"use strict";var Jc=Mn(),Zt=new WeakMap,qn=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Zt.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Jc(n,t),Zt.set(n,i),n};Qt.exports=qn;Qt.exports.default=qn;Qt.exports.callCount=t=>{if(!Zt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zt.get(t)}});var Pn=h((ab,Xt)=>{Xt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Xt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Xt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Bn=h((lb,Ke)=>{var D=global.process,Ie=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ie(D)?(kn=require("assert"),Ve=Pn(),jn=/^win/i.test(D.platform),bt=require("events"),typeof bt!="function"&&(bt=bt.EventEmitter),D.__signal_exit_emitter__?L=D.__signal_exit_emitter__:(L=D.__signal_exit_emitter__=new bt,L.count=0,L.emitted={}),L.infinite||(L.setMaxListeners(1/0),L.infinite=!0),Ke.exports=function(t,e){if(!Ie(global.process))return function(){};kn.equal(typeof t,"function","a callback must be provided for exit handler"),Je===!1&&Kr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){L.removeListener(r,t),L.listeners("exit").length===0&&L.listeners("afterexit").length===0&&er()};return L.on(r,t),i},er=function(){!Je||!Ie(global.process)||(Je=!1,Ve.forEach(function(e){try{D.removeListener(e,tr[e])}catch{}}),D.emit=rr,D.reallyExit=zr,L.count-=1)},Ke.exports.unload=er,Pe=function(e,r,i){L.emitted[e]||(L.emitted[e]=!0,L.emit(e,r,i))},tr={},Ve.forEach(function(t){tr[t]=function(){if(!!Ie(global.process)){var r=D.listeners(t);r.length===L.count&&(er(),Pe("exit",null,t),Pe("afterexit",null,t),jn&&t==="SIGHUP"&&(t="SIGINT"),D.kill(D.pid,t))}}}),Ke.exports.signals=function(){return Ve},Je=!1,Kr=function(){Je||!Ie(global.process)||(Je=!0,L.count+=1,Ve=Ve.filter(function(e){try{return D.on(e,tr[e]),!0}catch{return!1}}),D.emit=Ln,D.reallyExit=$n)},Ke.exports.load=Kr,zr=D.reallyExit,$n=function(e){!Ie(global.process)||(D.exitCode=e||0,Pe("exit",D.exitCode,null),Pe("afterexit",D.exitCode,null),zr.call(D,D.exitCode))},rr=D.emit,Ln=function(e,r){if(e==="exit"&&Ie(global.process)){r!==void 0&&(D.exitCode=r);var i=rr.apply(this,arguments);return Pe("exit",D.exitCode,null),Pe("afterexit",D.exitCode,null),i}else return rr.apply(this,arguments)}):Ke.exports=function(){return function(){}};var kn,Ve,jn,bt,L,er,Pe,tr,Je,Kr,zr,$n,rr,Ln});var Wn=h((fb,zc)=>{zc.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var Vn=h((db,Yn)=>{"use strict";var sr=Object.assign({},Wn()),Gn=Object.keys(sr);Object.defineProperty(sr,"random",{get(){let t=Math.floor(Math.random()*Gn.length),e=Gn[t];return sr[e]}});Yn.exports=sr});var Jn=h((_b,nr)=>{var ef=function(){"use strict";function t(o,a,l,u){var p;typeof a=="object"&&(l=a.depth,u=a.prototype,p=a.filter,a=a.circular);var f=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(b,R){if(b===null)return null;if(R==0)return b;var w,P;if(typeof b!="object")return b;if(t.__isArray(b))w=[];else if(t.__isRegExp(b))w=new RegExp(b.source,n(b)),b.lastIndex&&(w.lastIndex=b.lastIndex);else if(t.__isDate(b))w=new Date(b.getTime());else{if(g&&Buffer.isBuffer(b))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(b.length):w=new Buffer(b.length),b.copy(w),w;typeof u>"u"?(P=Object.getPrototypeOf(b),w=Object.create(P)):(w=Object.create(u),P=u)}if(a){var pt=f.indexOf(b);if(pt!=-1)return d[pt];f.push(b),d.push(w)}for(var Ur in b){var Hr;P&&(Hr=Object.getOwnPropertyDescriptor(P,Ur)),!(Hr&&Hr.set==null)&&(w[Ur]=_(b[Ur],R-1))}return w}return _(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function s(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=s;function n(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=n,t}();typeof nr=="object"&&nr.exports&&(nr.exports=ef)});var zn=h((xb,Kn)=>{var tf=Jn();Kn.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=tf(e[r]))}),t}});var Qn=h((Sb,Zn)=>{Zn.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var ro=h((Eb,ti)=>{"use strict";var rf=zn(),wt=Qn(),eo={nul:0,control:0};ti.exports=function(e){return to(e,eo)};ti.exports.config=function(t){return t=rf(t||{},eo),function(r){return to(r,t)}};function to(t,e){if(typeof t!="string")return Xn(t,e);for(var r=0,i=0;i<t.length;i++){var s=Xn(t.charCodeAt(i),e);if(s<0)return-1;r+=s}return r}function Xn(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:sf(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function sf(t){var e=0,r=wt.length-1,i;if(t<wt[0][0]||t>wt[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>wt[i][1])e=i+1;else if(t<wt[i][0])r=i-1;else return!0;return!1}});var ii=h((Ob,io)=>{io.exports=require("stream")});var ao=h((Cb,oo)=>{"use strict";function so(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function nf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?so(Object(r),!0).forEach(function(i){of(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function of(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function af(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function no(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function lf(t,e,r){return e&&no(t.prototype,e),r&&no(t,r),t}var uf=require("buffer"),or=uf.Buffer,hf=require("util"),si=hf.inspect,cf=si&&si.custom||"inspect";function ff(t,e,r){or.prototype.copy.call(t,e,r)}oo.exports=function(){function t(){af(this,t),this.head=null,this.tail=null,this.length=0}return lf(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return or.alloc(0);for(var i=or.allocUnsafe(r>>>0),s=this.head,n=0;s;)ff(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=or.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:cf,value:function(r,i){return si(this,nf({},i,{depth:0,customInspect:!1}))}}]),t}()});var oi=h((Rb,uo)=>{"use strict";function df(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ni,this,t)):process.nextTick(ni,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(ar,r):(r._writableState.errorEmitted=!0,process.nextTick(lo,r,n)):process.nextTick(lo,r,n):e?(process.nextTick(ar,r),e(n)):process.nextTick(ar,r)}),this)}function lo(t,e){ni(t,e),ar(t)}function ar(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function pf(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ni(t,e){t.emit("error",e)}function gf(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}uo.exports={destroy:df,undestroy:pf,errorOrDestroy:gf}});var xe=h((Db,fo)=>{"use strict";var co={};function H(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,l){super(i(o,a,l))}}s.prototype.name=r.name,s.prototype.code=t,co[t]=s}function ho(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function mf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function bf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function yf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}H("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);H("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&mf(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(bf(t," argument"))s=`The ${t} ${i} ${ho(e,"type")}`;else{let n=yf(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${ho(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");H("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});H("ERR_STREAM_PREMATURE_CLOSE","Premature close");H("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});H("ERR_MULTIPLE_CALLBACK","Callback called multiple times");H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");H("ERR_STREAM_WRITE_AFTER_END","write after end");H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);H("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");fo.exports.codes=co});var ai=h((Ab,po)=>{"use strict";var vf=xe().codes.ERR_INVALID_OPT_VALUE;function wf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function _f(t,e,r,i){var s=wf(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new vf(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}po.exports={getHighWaterMark:_f}});var go=h((Mb,li)=>{typeof Object.create=="function"?li.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:li.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ke=h((qb,hi)=>{try{if(ui=require("util"),typeof ui.inherits!="function")throw"";hi.exports=ui.inherits}catch{hi.exports=go()}var ui});var bo=h((Ib,mo)=>{mo.exports=require("util").deprecate});var di=h((Pb,So)=>{"use strict";So.exports=k;function vo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Jf(e,t)}}var Ze;k.WritableState=xt;var xf={deprecate:bo()},wo=ii(),ur=require("buffer").Buffer,Sf=global.Uint8Array||function(){};function Ef(t){return ur.from(t)}function Tf(t){return ur.isBuffer(t)||t instanceof Sf}var fi=oi(),Of=ai(),Cf=Of.getHighWaterMark,Se=xe().codes,Rf=Se.ERR_INVALID_ARG_TYPE,Df=Se.ERR_METHOD_NOT_IMPLEMENTED,Af=Se.ERR_MULTIPLE_CALLBACK,Mf=Se.ERR_STREAM_CANNOT_PIPE,qf=Se.ERR_STREAM_DESTROYED,If=Se.ERR_STREAM_NULL_VALUES,Pf=Se.ERR_STREAM_WRITE_AFTER_END,kf=Se.ERR_UNKNOWN_ENCODING,Qe=fi.errorOrDestroy;ke()(k,wo);function jf(){}function xt(t,e,r){Ze=Ze||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Cf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){Hf(e,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new vo(this)}xt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(xt.prototype,"buffer",{get:xf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var lr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(lr=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return lr.call(this,e)?!0:this!==k?!1:e&&e._writableState instanceof xt}})):lr=function(e){return e instanceof this};function k(t){Ze=Ze||je();var e=this instanceof Ze;if(!e&&!lr.call(k,this))return new k(t);this._writableState=new xt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),wo.call(this)}k.prototype.pipe=function(){Qe(this,new Mf)};function $f(t,e){var r=new Pf;Qe(t,r),process.nextTick(e,r)}function Lf(t,e,r,i){var s;return r===null?s=new If:typeof r!="string"&&!e.objectMode&&(s=new Rf("chunk",["string","Buffer"],r)),s?(Qe(t,s),process.nextTick(i,s),!1):!0}k.prototype.write=function(t,e,r){var i=this._writableState,s=!1,n=!i.objectMode&&Tf(t);return n&&!ur.isBuffer(t)&&(t=Ef(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=jf),i.ending?$f(this,r):(n||Lf(this,i,t,r))&&(i.pendingcb++,s=Ff(this,i,n,t,e,r)),s};k.prototype.cork=function(){this._writableState.corked++};k.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&_o(this,t))};k.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new kf(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Bf(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ur.from(e,r)),e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ff(t,e,r,i,s,n){if(!r){var o=Bf(e,i,s);i!==o&&(r=!0,s="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:n,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ci(t,e,!1,a,i,s,n);return l}function ci(t,e,r,i,s,n,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new qf("write")):r?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function Nf(t,e,r,i,s){--e.pendingcb,r?(process.nextTick(s,i),process.nextTick(_t,t,e),t._writableState.errorEmitted=!0,Qe(t,i)):(s(i),t._writableState.errorEmitted=!0,Qe(t,i),_t(t,e))}function Uf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Hf(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new Af;if(Uf(r),e)Nf(t,r,i,e,s);else{var n=xo(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&_o(t,r),i?process.nextTick(yo,t,r,n,s):yo(t,r,n,s)}}function yo(t,e,r,i){r||Wf(t,e),e.pendingcb--,i(),_t(t,e)}function Wf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function _o(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)s[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;s.allBuffers=a,ci(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new vo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,f=e.objectMode?1:l.length;if(ci(t,e,!1,f,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}k.prototype._write=function(t,e,r){r(new Df("_write()"))};k.prototype._writev=null;k.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Vf(this,i,r),this};Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function xo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Gf(t,e){t._final(function(r){e.pendingcb--,r&&Qe(t,r),e.prefinished=!0,t.emit("prefinish"),_t(t,e)})}function Yf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Gf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function _t(t,e){var r=xo(e);if(r&&(Yf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Vf(t,e,r){e.ending=!0,_t(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Jf(t,e,r){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});k.prototype.destroy=fi.destroy;k.prototype._undestroy=fi.undestroy;k.prototype._destroy=function(t,e){e(t)}});var je=h((kb,To)=>{"use strict";var Kf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};To.exports=Q;var Eo=mi(),gi=di();ke()(Q,Eo);for(pi=Kf(gi.prototype),hr=0;hr<pi.length;hr++)cr=pi[hr],Q.prototype[cr]||(Q.prototype[cr]=gi.prototype[cr]);var pi,cr,hr;function Q(t){if(!(this instanceof Q))return new Q(t);Eo.call(this,t),gi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",zf)))}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function zf(){this._writableState.ended||process.nextTick(Zf,this)}function Zf(t){t.end()}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Ro=h((bi,Co)=>{var fr=require("buffer"),X=fr.Buffer;function Oo(t,e){for(var r in t)e[r]=t[r]}X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow?Co.exports=fr:(Oo(fr,bi),bi.Buffer=$e);function $e(t,e,r){return X(t,e,r)}$e.prototype=Object.create(X.prototype);Oo(X,$e);$e.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return X(t,e,r)};$e.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=X(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};$e.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return X(t)};$e.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return fr.SlowBuffer(t)}});var wi=h(Ao=>{"use strict";var vi=Ro().Buffer,Do=vi.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Qf(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Xf(t){var e=Qf(t);if(typeof e!="string"&&(vi.isEncoding===Do||!Do(t)))throw new Error("Unknown encoding: "+t);return e||t}Ao.StringDecoder=St;function St(t){this.encoding=Xf(t);var e;switch(this.encoding){case"utf16le":this.text=nd,this.end=od,e=4;break;case"utf8":this.fillLast=rd,e=4;break;case"base64":this.text=ad,this.end=ld,e=3;break;default:this.write=ud,this.end=hd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vi.allocUnsafe(e)}St.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};St.prototype.end=sd;St.prototype.text=id;St.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function yi(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function ed(t,e,r){var i=e.length-1;if(i<r)return 0;var s=yi(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=yi(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=yi(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function td(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function rd(t){var e=this.lastTotal-this.lastNeed,r=td(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function id(t,e){var r=ed(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function sd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function nd(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function od(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function ad(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function ld(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ud(t){return t.toString(this.encoding)}function hd(t){return t&&t.length?this.write(t):""}});var dr=h(($b,Io)=>{"use strict";var Mo=xe().codes.ERR_STREAM_PREMATURE_CLOSE;function cd(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function fd(){}function dd(t){return t.setHeader&&typeof t.abort=="function"}function qo(t,e,r){if(typeof e=="function")return qo(t,null,e);e||(e={}),r=cd(r||fd);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,s||r.call(t)},p=function(_){r.call(t,_)},f=function(){var _;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(_=new Mo),r.call(t,_);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(_=new Mo),r.call(t,_)},d=function(){t.req.on("finish",a)};return dd(t)?(t.on("complete",a),t.on("abort",f),t.req?d():t.on("request",d)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",f)}}Io.exports=qo});var ko=h((Lb,Po)=>{"use strict";var pr;function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pd=dr(),Te=Symbol("lastResolve"),Le=Symbol("lastReject"),Et=Symbol("error"),gr=Symbol("ended"),Be=Symbol("lastPromise"),_i=Symbol("handlePromise"),Fe=Symbol("stream");function Oe(t,e){return{value:t,done:e}}function gd(t){var e=t[Te];if(e!==null){var r=t[Fe].read();r!==null&&(t[Be]=null,t[Te]=null,t[Le]=null,e(Oe(r,!1)))}}function md(t){process.nextTick(gd,t)}function bd(t,e){return function(r,i){t.then(function(){if(e[gr]){r(Oe(void 0,!0));return}e[_i](r,i)},i)}}var yd=Object.getPrototypeOf(function(){}),vd=Object.setPrototypeOf((pr={get stream(){return this[Fe]},next:function(){var e=this,r=this[Et];if(r!==null)return Promise.reject(r);if(this[gr])return Promise.resolve(Oe(void 0,!0));if(this[Fe].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Et]?a(e[Et]):o(Oe(void 0,!0))})});var i=this[Be],s;if(i)s=new Promise(bd(i,this));else{var n=this[Fe].read();if(n!==null)return Promise.resolve(Oe(n,!1));s=new Promise(this[_i])}return this[Be]=s,s}},Ee(pr,Symbol.asyncIterator,function(){return this}),Ee(pr,"return",function(){var e=this;return new Promise(function(r,i){e[Fe].destroy(null,function(s){if(s){i(s);return}r(Oe(void 0,!0))})})}),pr),yd),wd=function(e){var r,i=Object.create(vd,(r={},Ee(r,Fe,{value:e,writable:!0}),Ee(r,Te,{value:null,writable:!0}),Ee(r,Le,{value:null,writable:!0}),Ee(r,Et,{value:null,writable:!0}),Ee(r,gr,{value:e._readableState.endEmitted,writable:!0}),Ee(r,_i,{value:function(n,o){var a=i[Fe].read();a?(i[Be]=null,i[Te]=null,i[Le]=null,n(Oe(a,!1))):(i[Te]=n,i[Le]=o)},writable:!0}),r));return i[Be]=null,pd(e,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=i[Le];n!==null&&(i[Be]=null,i[Te]=null,i[Le]=null,n(s)),i[Et]=s;return}var o=i[Te];o!==null&&(i[Be]=null,i[Te]=null,i[Le]=null,o(Oe(void 0,!0))),i[gr]=!0}),e.on("readable",md.bind(null,i)),i};Po.exports=wd});var Bo=h((Bb,Lo)=>{"use strict";function jo(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function _d(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){jo(n,i,s,o,a,"next",l)}function a(l){jo(n,i,s,o,a,"throw",l)}o(void 0)})}}function $o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function xd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$o(Object(r),!0).forEach(function(i){Sd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Sd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ed=xe().codes.ERR_INVALID_ARG_TYPE;function Td(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new Ed("iterable",["Iterable"],e);var s=new t(xd({objectMode:!0},r)),n=!1;s._read=function(){n||(n=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=_d(function*(){try{var l=yield i.next(),u=l.value,p=l.done;p?s.push(null):s.push(yield u)?o():n=!1}catch(f){s.destroy(f)}}),a.apply(this,arguments)}return s}Lo.exports=Td});var mi=h((Nb,Ko)=>{"use strict";Ko.exports=v;var Xe;v.ReadableState=Ho;var Fb=require("events").EventEmitter,Uo=function(e,r){return e.listeners(r).length},Ot=ii(),mr=require("buffer").Buffer,Od=global.Uint8Array||function(){};function Cd(t){return mr.from(t)}function Rd(t){return mr.isBuffer(t)||t instanceof Od}var xi=require("util"),m;xi&&xi.debuglog?m=xi.debuglog("stream"):m=function(){};var Dd=ao(),Di=oi(),Ad=ai(),Md=Ad.getHighWaterMark,br=xe().codes,qd=br.ERR_INVALID_ARG_TYPE,Id=br.ERR_STREAM_PUSH_AFTER_EOF,Pd=br.ERR_METHOD_NOT_IMPLEMENTED,kd=br.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,et,Si,Ei;ke()(v,Ot);var Tt=Di.errorOrDestroy,Ti=["error","close","destroy","pause","resume"];function jd(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Ho(t,e,r){Xe=Xe||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Xe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Md(this,t,"readableHighWaterMark",r),this.buffer=new Dd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(et||(et=wi().StringDecoder),this.decoder=new et(t.encoding),this.encoding=t.encoding)}function v(t){if(Xe=Xe||je(),!(this instanceof v))return new v(t);var e=this instanceof Xe;this._readableState=new Ho(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ot.call(this)}Object.defineProperty(v.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});v.prototype.destroy=Di.destroy;v.prototype._undestroy=Di.undestroy;v.prototype._destroy=function(t,e){e(t)};v.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=mr.from(t,e),e=""),i=!0),Wo(this,t,e,!1,i)};v.prototype.unshift=function(t){return Wo(this,t,null,!0,!1)};function Wo(t,e,r,i,s){m("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,Bd(t,n);else{var o;if(s||(o=$d(n,e)),o)Tt(t,o);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==mr.prototype&&(e=Cd(e)),i)n.endEmitted?Tt(t,new kd):Oi(t,n,e,!0);else if(n.ended)Tt(t,new Id);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Oi(t,n,e,!1):Ri(t,n)):Oi(t,n,e,!1)}else i||(n.reading=!1,Ri(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Oi(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&yr(t)),Ri(t,e)}function $d(t,e){var r;return!Rd(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new qd("chunk",["string","Buffer","Uint8Array"],e)),r}v.prototype.isPaused=function(){return this._readableState.flowing===!1};v.prototype.setEncoding=function(t){et||(et=wi().StringDecoder);var e=new et(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Fo=1073741824;function Ld(t){return t>=Fo?t=Fo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function No(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=Ld(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}v.prototype.read=function(t){m("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return m("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ci(this):yr(this),null;if(t=No(t,e),t===0&&e.ended)return e.length===0&&Ci(this),null;var i=e.needReadable;m("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,m("length less than watermark",i)),e.ended||e.reading?(i=!1,m("reading or ended",i)):i&&(m("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=No(r,e)));var s;return t>0?s=Vo(t,e):s=null,s===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Ci(this)),s!==null&&this.emit("data",s),s};function Bd(t,e){if(m("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?yr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Go(t)))}}function yr(t){var e=t._readableState;m("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(m("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Go,t))}function Go(t){var e=t._readableState;m("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Ai(t)}function Ri(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Fd,t,e))}function Fd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(m("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}v.prototype._read=function(t){Tt(this,new Pd("_read()"))};v.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,m("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=s?a:b;i.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",o);function o(R,w){m("onunpipe"),R===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,p())}function a(){m("onend"),t.end()}var l=Nd(r);t.on("drain",l);var u=!1;function p(){m("cleanup"),t.removeListener("close",g),t.removeListener("finish",_),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(R){m("ondata");var w=t.write(R);m("dest.write",w),w===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Jo(i.pipes,t)!==-1)&&!u&&(m("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(R){m("onerror",R),b(),t.removeListener("error",d),Uo(t,"error")===0&&Tt(t,R)}jd(t,"error",d);function g(){t.removeListener("finish",_),b()}t.once("close",g);function _(){m("onfinish"),t.removeListener("close",g),b()}t.once("finish",_);function b(){m("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(m("pipe resume"),r.resume()),t};function Nd(t){return function(){var r=t._readableState;m("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Uo(t,"data")&&(r.flowing=!0,Ai(t))}}v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)i[n].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Jo(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};v.prototype.on=function(t,e){var r=Ot.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,m("on readable",i.length,i.reading),i.length?yr(this):i.reading||process.nextTick(Ud,this)),r};v.prototype.addListener=v.prototype.on;v.prototype.removeListener=function(t,e){var r=Ot.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Yo,this),r};v.prototype.removeAllListeners=function(t){var e=Ot.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Yo,this),e};function Yo(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Ud(t){m("readable nexttick read 0"),t.read(0)}v.prototype.resume=function(){var t=this._readableState;return t.flowing||(m("resume"),t.flowing=!t.readableListening,Hd(this,t)),t.paused=!1,this};function Hd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Wd,t,e))}function Wd(t,e){m("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Ai(t),e.flowing&&!e.reading&&t.read(0)}v.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ai(t){var e=t._readableState;for(m("flow",e.flowing);e.flowing&&t.read()!==null;);}v.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(m("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(m("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var s in t)this[s]===void 0&&typeof t[s]=="function"&&(this[s]=function(a){return function(){return t[a].apply(t,arguments)}}(s));for(var n=0;n<Ti.length;n++)t.on(Ti[n],this.emit.bind(this,Ti[n]));return this._read=function(o){m("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(v.prototype[Symbol.asyncIterator]=function(){return Si===void 0&&(Si=ko()),Si(this)});Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(v.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(v.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});v._fromList=Vo;Object.defineProperty(v.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Vo(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Ci(t){var e=t._readableState;m("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Gd,e,t))}function Gd(t,e){if(m("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(v.from=function(t,e){return Ei===void 0&&(Ei=Bo()),Ei(v,t,e)});function Jo(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Mi=h((Ub,Zo)=>{"use strict";Zo.exports=ce;var vr=xe().codes,Yd=vr.ERR_METHOD_NOT_IMPLEMENTED,Vd=vr.ERR_MULTIPLE_CALLBACK,Jd=vr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Kd=vr.ERR_TRANSFORM_WITH_LENGTH_0,wr=je();ke()(ce,wr);function zd(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Vd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);wr.call(this,t),this._transformState={afterTransform:zd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Zd)}function Zd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){zo(t,e,r)}):zo(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,wr.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new Yd("_transform()"))};ce.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){wr.prototype._destroy.call(this,t,function(r){e(r)})};function zo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Kd;if(t._transformState.transforming)throw new Jd;return t.push(null)}});var ea=h((Hb,Xo)=>{"use strict";Xo.exports=Ct;var Qo=Mi();ke()(Ct,Qo);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Qo.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var na=h((Wb,sa)=>{"use strict";var qi;function Qd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ia=xe().codes,Xd=ia.ERR_MISSING_ARGS,ep=ia.ERR_STREAM_DESTROYED;function ta(t){if(t)throw t}function tp(t){return t.setHeader&&typeof t.abort=="function"}function rp(t,e,r,i){i=Qd(i);var s=!1;t.on("close",function(){s=!0}),qi===void 0&&(qi=dr()),qi(t,{readable:e,writable:r},function(o){if(o)return i(o);s=!0,i()});var n=!1;return function(o){if(!s&&!n){if(n=!0,tp(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new ep("pipe"))}}}function ra(t){t()}function ip(t,e){return t.pipe(e)}function sp(t){return!t.length||typeof t[t.length-1]!="function"?ta:t.pop()}function np(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=sp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Xd("streams");var s,n=e.map(function(o,a){var l=a<e.length-1,u=a>0;return rp(o,l,u,function(p){s||(s=p),p&&n.forEach(ra),!l&&(n.forEach(ra),i(s))})});return e.reduce(ip)}sa.exports=np});var oa=h((W,Dt)=>{var Rt=require("stream");process.env.READABLE_STREAM==="disable"&&Rt?(Dt.exports=Rt.Readable,Object.assign(Dt.exports,Rt),Dt.exports.Stream=Rt):(W=Dt.exports=mi(),W.Stream=Rt||W,W.Readable=W,W.Writable=di(),W.Duplex=je(),W.Transform=Mi(),W.PassThrough=ea(),W.finished=dr(),W.pipeline=na())});var ua=h((Gb,la)=>{"use strict";var{Buffer:V}=require("buffer"),aa=Symbol.for("BufferList");function O(t){if(!(this instanceof O))return new O(t);O._init.call(this,t)}O._init=function(e){Object.defineProperty(this,aa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};O.prototype._new=function(e){return new O(e)};O.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(e<s||i===this._bufs.length-1)return[i,e-r];r=s}};O.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};O.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};O.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};O.prototype.copy=function(e,r,i,s){if((typeof i!="number"||i<0)&&(i=0),(typeof s!="number"||s>this.length)&&(s=this.length),i>=this.length||s<=0)return e||V.alloc(0);let n=!!e,o=this._offset(i),a=s-i,l=a,u=n&&r||0,p=o[1];if(i===0&&s===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:V.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-p)return n?this._bufs[o[0]].copy(e,r,p,p+l):this._bufs[o[0]].slice(p,p+l);n||(e=V.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let d=this._bufs[f].length-p;if(l>d)this._bufs[f].copy(e,u,p),u+=d;else{this._bufs[f].copy(e,u,p,p+l),u+=d;break}l-=d,p&&(p=0)}return e.length>u?e.slice(0,u):e};O.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),s=this._offset(r),n=this._bufs.slice(i[0],s[0]+1);return s[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,s[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};O.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};O.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};O.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};O.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(V.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(V.from(e));return this};O.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};O.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=V.from([t]):typeof t=="string"?t=V.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=V.from(t.buffer,t.byteOffset,t.byteLength):V.isBuffer(t)||(t=V.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),s=i[0],n=i[1];for(;s<this._bufs.length;s++){let o=this._bufs[s];for(;n<o.length;)if(o.length-n>=t.length){let l=o.indexOf(t,n);if(l!==-1)return this._reverseOffset([s,l]);n=o.length-t.length+1}else{let l=this._reverseOffset([s,n]);if(this._match(l,t))return l;n++}n=0}return-1};O.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?O.prototype[r]=function(i,s){return this.slice(i,i+s)[r](0,s)}:O.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();O.prototype._isBufferList=function(e){return e instanceof O||O.isBufferList(e)};O.isBufferList=function(e){return e!=null&&e[aa]};la.exports=O});var ha=h((Yb,_r)=>{"use strict";var Ii=oa().Duplex,op=ke(),At=ua();function F(t){if(!(this instanceof F))return new F(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}At._init.call(this,t),Ii.call(this)}op(F,Ii);Object.assign(F.prototype,At.prototype);F.prototype._new=function(e){return new F(e)};F.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};F.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};F.prototype.end=function(e){Ii.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};F.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};F.prototype._isBufferList=function(e){return e instanceof F||e instanceof At||F.isBufferList(e)};F.isBufferList=At.isBufferList;_r.exports=F;_r.exports.BufferListStream=F;_r.exports.BufferList=At});var ya=h((ry,ba)=>{ba.exports=ma;ma.sync=up;var pa=require("fs");function lp(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function ga(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:lp(e,r)}function ma(t,e,r){pa.stat(t,function(i,s){r(i,i?!1:ga(s,t,e))})}function up(t,e){return ga(pa.statSync(t),t,e)}});var Sa=h((iy,xa)=>{xa.exports=wa;wa.sync=hp;var va=require("fs");function wa(t,e,r){va.stat(t,function(i,s){r(i,i?!1:_a(s,e))})}function hp(t,e){return _a(va.statSync(t),e)}function _a(t,e){return t.isFile()&&cp(t,e)}function cp(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),p=a|l,f=r&u||r&l&&s===o||r&a&&i===n||r&p&&n===0;return f}});var Ta=h((ny,Ea)=>{var sy=require("fs"),Er;process.platform==="win32"||global.TESTING_WINDOWS?Er=ya():Er=Sa();Ea.exports=ji;ji.sync=fp;function ji(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){ji(t,e||{},function(n,o){n?s(n):i(o)})})}Er(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function fp(t,e){try{return Er.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var qa=h((oy,Ma)=>{var nt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Oa=require("path"),dp=nt?";":":",Ca=Ta(),Ra=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Da=(t,e)=>{let r=e.colon||dp,i=t.match(/\//)||nt&&t.match(/\\/)?[""]:[...nt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=nt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=nt?s.split(r):[""];return nt&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Aa=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Da(t,e),o=[],a=u=>new Promise((p,f)=>{if(u===i.length)return e.all&&o.length?p(o):f(Ra(t));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,_=Oa.join(g,t),b=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;p(l(b,u,0))}),l=(u,p,f)=>new Promise((d,g)=>{if(f===s.length)return d(a(p+1));let _=s[f];Ca(u+_,{pathExt:n},(b,R)=>{if(!b&&R)if(e.all)o.push(u+_);else return d(u+_);return d(l(u,p,f+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},pp=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Da(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Oa.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let f=0;f<i.length;f++){let d=p+i[f];try{if(Ca.sync(d,{pathExt:s}))if(e.all)n.push(d);else return d}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Ra(t)};Ma.exports=Aa;Aa.sync=pp});var Pa=h((ay,$i)=>{"use strict";var Ia=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};$i.exports=Ia;$i.exports.default=Ia});var La=h((ly,$a)=>{"use strict";var ka=require("path"),gp=qa(),mp=Pa();function ja(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=gp.sync(t.command,{path:r[mp({env:r})],pathExt:e?ka.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=ka.resolve(s?t.options.cwd:"",o)),o}function bp(t){return ja(t)||ja(t,!0)}$a.exports=bp});var Ba=h((uy,Bi)=>{"use strict";var Li=/([()\][%!^"`<>&|;, *?])/g;function yp(t){return t=t.replace(Li,"^$1"),t}function vp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Li,"^$1"),e&&(t=t.replace(Li,"^$1")),t}Bi.exports.command=yp;Bi.exports.argument=vp});var Na=h((hy,Fa)=>{"use strict";Fa.exports=/^#!(.*)/});var Ha=h((cy,Ua)=>{"use strict";var wp=Na();Ua.exports=(t="")=>{let e=t.match(wp);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Ga=h((fy,Wa)=>{"use strict";var Fi=require("fs"),_p=Ha();function xp(t){let r=Buffer.alloc(150),i;try{i=Fi.openSync(t,"r"),Fi.readSync(i,r,0,150,0),Fi.closeSync(i)}catch{}return _p(r.toString())}Wa.exports=xp});var Ka=h((dy,Ja)=>{"use strict";var Sp=require("path"),Ya=La(),Va=Ba(),Ep=Ga(),Tp=process.platform==="win32",Op=/\.(?:com|exe)$/i,Cp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Rp(t){t.file=Ya(t);let e=t.file&&Ep(t.file);return e?(t.args.unshift(t.file),t.command=e,Ya(t)):t.file}function Dp(t){if(!Tp)return t;let e=Rp(t),r=!Op.test(e);if(t.options.forceShell||r){let i=Cp.test(e);t.command=Sp.normalize(t.command),t.command=Va.command(t.command),t.args=t.args.map(n=>Va.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Ap(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Dp(i)}Ja.exports=Ap});var Qa=h((py,Za)=>{"use strict";var Ni=process.platform==="win32";function Ui(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Mp(t,e){if(!Ni)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=za(s,e,"spawn");if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function za(t,e){return Ni&&t===1&&!e.file?Ui(e.original,"spawn"):null}function qp(t,e){return Ni&&t===1&&!e.file?Ui(e.original,"spawnSync"):null}Za.exports={hookChildProcess:Mp,verifyENOENT:za,verifyENOENTSync:qp,notFoundError:Ui}});var tl=h((gy,ot)=>{"use strict";var Xa=require("child_process"),Hi=Ka(),Wi=Qa();function el(t,e,r){let i=Hi(t,e,r),s=Xa.spawn(i.command,i.args,i.options);return Wi.hookChildProcess(s,i),s}function Ip(t,e,r){let i=Hi(t,e,r),s=Xa.spawnSync(i.command,i.args,i.options);return s.error=s.error||Wi.verifyENOENTSync(s.status,i),s}ot.exports=el;ot.exports.spawn=el;ot.exports.sync=Ip;ot.exports._parse=Hi;ot.exports._enoent=Wi});var M=h((My,al)=>{"use strict";var{FORCE_COLOR:Hp,NODE_DISABLE_COLORS:Wp,TERM:Gp}=process.env,S={enabled:!Wp&&Gp!=="dumb"&&Hp!=="0",reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function ol(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Yp(t,e){let r={has:t,keys:e};return r.reset=S.reset.bind(r),r.bold=S.bold.bind(r),r.dim=S.dim.bind(r),r.italic=S.italic.bind(r),r.underline=S.underline.bind(r),r.inverse=S.inverse.bind(r),r.hidden=S.hidden.bind(r),r.strikethrough=S.strikethrough.bind(r),r.black=S.black.bind(r),r.red=S.red.bind(r),r.green=S.green.bind(r),r.yellow=S.yellow.bind(r),r.blue=S.blue.bind(r),r.magenta=S.magenta.bind(r),r.cyan=S.cyan.bind(r),r.white=S.white.bind(r),r.gray=S.gray.bind(r),r.grey=S.grey.bind(r),r.bgBlack=S.bgBlack.bind(r),r.bgRed=S.bgRed.bind(r),r.bgGreen=S.bgGreen.bind(r),r.bgYellow=S.bgYellow.bind(r),r.bgBlue=S.bgBlue.bind(r),r.bgMagenta=S.bgMagenta.bind(r),r.bgCyan=S.bgCyan.bind(r),r.bgWhite=S.bgWhite.bind(r),r}function C(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:S.enabled?ol(this.keys,i+""):i+""):i===void 0?Yp([t],[r]):S.enabled?ol([r],i+""):i+""}}al.exports=S});var ul=h((qy,ll)=>{"use strict";ll.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Or=h((Iy,hl)=>{"use strict";hl.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var I=h((Py,cl)=>{"use strict";var ts="\x1B",q=`${ts}[`,Vp="\x07",rs={to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t,e){let r="";return t<0?r+=`${q}${-t}D`:t>0&&(r+=`${q}${t}C`),e<0?r+=`${q}${-e}A`:e>0&&(r+=`${q}${e}B`),r},up:(t=1)=>`${q}${t}A`,down:(t=1)=>`${q}${t}B`,forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),left:`${q}G`,hide:`${q}?25l`,show:`${q}?25h`,save:`${ts}7`,restore:`${ts}8`},Jp={up:(t=1)=>`${q}S`.repeat(t),down:(t=1)=>`${q}T`.repeat(t)},Kp={screen:`${q}2J`,up:(t=1)=>`${q}1J`.repeat(t),down:(t=1)=>`${q}J`.repeat(t),line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?rs.up():"");return t&&(e+=rs.left),e}};cl.exports={cursor:rs,scroll:Jp,erase:Kp,beep:Vp}});var ml=h((ky,gl)=>{"use strict";function zp(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Zp(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Zp(t,e){if(!!t){if(typeof t=="string")return fl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fl(t,e)}}function fl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var Qp=Or(),pl=I(),dl=pl.erase,Xp=pl.cursor,eg=t=>[...Qp(t)].length;gl.exports=function(t,e){if(!e)return dl.line+Xp.to(0);let r=0,i=t.split(/\r?\n/);var s=zp(i),n;try{for(s.s();!(n=s.n()).done;){let o=n.value;r+=1+Math.floor(Math.max(eg(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return dl.lines(r)}});var is=h((jy,bl)=>{"use strict";var jt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},tg={arrowUp:jt.arrowUp,arrowDown:jt.arrowDown,arrowLeft:jt.arrowLeft,arrowRight:jt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},rg=process.platform==="win32"?tg:jt;bl.exports=rg});var vl=h(($y,yl)=>{"use strict";var lt=M(),He=is(),ss=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),ig=t=>ss[t]||ss.default,$t=Object.freeze({aborted:lt.red(He.cross),done:lt.green(He.tick),exited:lt.yellow(He.cross),default:lt.cyan("?")}),sg=(t,e,r)=>e?$t.aborted:r?$t.exited:t?$t.done:$t.default,ng=t=>lt.gray(t?He.ellipsis:He.pointerSmall),og=(t,e)=>lt.gray(t?e?He.pointerSmall:"+":He.line);yl.exports={styles:ss,render:ig,symbols:$t,symbol:sg,delimiter:ng,item:og}});var _l=h((Ly,wl)=>{"use strict";var ag=Or();wl.exports=function(t,e){let r=String(ag(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var Sl=h((By,xl)=>{"use strict";xl.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
8
+ "use strict";var kc=Object.create;var mt=Object.defineProperty;var jc=Object.getOwnPropertyDescriptor;var $c=Object.getOwnPropertyNames;var Lc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Fc=(t,e,r)=>e in t?mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nc=(t,e)=>{for(var r in e)mt(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $c(e))!Bc.call(t,s)&&s!==r&&mt(t,s,{get:()=>e[s],enumerable:!(i=jc(e,s))||i.enumerable});return t};var M=(t,e,r)=>(r=t!=null?kc(Lc(t)):{},cn(e||!t||!t.__esModule?mt(r,"default",{value:t,enumerable:!0}):r,t)),Uc=t=>cn(mt({},"__esModule",{value:!0}),t);var fn=(t,e,r)=>(Fc(t,typeof e!="symbol"?e+"":e,r),r),dn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(dn(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},v=(t,e,r,i)=>(dn(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),bt=(t,e,r,i)=>({set _(s){v(t,e,s,r)},get _(){return c(t,e,i)}});var wn=h((J0,vn)=>{"use strict";vn.exports=function(){if(!!process.env.npm_config_user_agent)return Wc(process.env.npm_config_user_agent)};function Wc(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:e.substring(r+1)}}});var Cn=h((rb,Jr)=>{"use strict";var Rn=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Jr.exports=Rn;Jr.exports.default=Rn});var Mn=h((ib,Qt)=>{"use strict";var Yc=Cn(),Xt=new WeakMap,Dn=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Xt.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Yc(n,t),Xt.set(n,i),n};Qt.exports=Dn;Qt.exports.default=Dn;Qt.exports.callCount=t=>{if(!Xt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Xt.get(t)}});var An=h((sb,er)=>{er.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&er.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&er.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var jn=h((nb,Ke)=>{var D=global.process,Ie=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ie(D)?(qn=require("assert"),Ve=An(),In=/^win/i.test(D.platform),yt=require("events"),typeof yt!="function"&&(yt=yt.EventEmitter),D.__signal_exit_emitter__?$=D.__signal_exit_emitter__:($=D.__signal_exit_emitter__=new yt,$.count=0,$.emitted={}),$.infinite||($.setMaxListeners(1/0),$.infinite=!0),Ke.exports=function(t,e){if(!Ie(global.process))return function(){};qn.equal(typeof t,"function","a callback must be provided for exit handler"),Je===!1&&Kr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){$.removeListener(r,t),$.listeners("exit").length===0&&$.listeners("afterexit").length===0&&tr()};return $.on(r,t),i},tr=function(){!Je||!Ie(global.process)||(Je=!1,Ve.forEach(function(e){try{D.removeListener(e,rr[e])}catch{}}),D.emit=ir,D.reallyExit=zr,$.count-=1)},Ke.exports.unload=tr,Pe=function(e,r,i){$.emitted[e]||($.emitted[e]=!0,$.emit(e,r,i))},rr={},Ve.forEach(function(t){rr[t]=function(){if(!!Ie(global.process)){var r=D.listeners(t);r.length===$.count&&(tr(),Pe("exit",null,t),Pe("afterexit",null,t),In&&t==="SIGHUP"&&(t="SIGINT"),D.kill(D.pid,t))}}}),Ke.exports.signals=function(){return Ve},Je=!1,Kr=function(){Je||!Ie(global.process)||(Je=!0,$.count+=1,Ve=Ve.filter(function(e){try{return D.on(e,rr[e]),!0}catch{return!1}}),D.emit=kn,D.reallyExit=Pn)},Ke.exports.load=Kr,zr=D.reallyExit,Pn=function(e){!Ie(global.process)||(D.exitCode=e||0,Pe("exit",D.exitCode,null),Pe("afterexit",D.exitCode,null),zr.call(D,D.exitCode))},ir=D.emit,kn=function(e,r){if(e==="exit"&&Ie(global.process)){r!==void 0&&(D.exitCode=r);var i=ir.apply(this,arguments);return Pe("exit",D.exitCode,null),Pe("afterexit",D.exitCode,null),i}else return ir.apply(this,arguments)}):Ke.exports=function(){return function(){}};var qn,Ve,In,yt,$,tr,Pe,rr,Je,Kr,zr,Pn,ir,kn});var Nn=h((ub,Jc)=>{Jc.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var Wn=h((hb,Hn)=>{"use strict";var nr=Object.assign({},Nn()),Un=Object.keys(nr);Object.defineProperty(nr,"random",{get(){let t=Math.floor(Math.random()*Un.length),e=Un[t];return nr[e]}});Hn.exports=nr});var Gn=h((yb,or)=>{var Xc=function(){"use strict";function t(o,a,l,u){var p;typeof a=="object"&&(l=a.depth,u=a.prototype,p=a.filter,a=a.circular);var f=[],d=[],m=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function S(b,_){if(b===null)return null;if(_==0)return b;var y,Z;if(typeof b!="object")return b;if(t.__isArray(b))y=[];else if(t.__isRegExp(b))y=new RegExp(b.source,n(b)),b.lastIndex&&(y.lastIndex=b.lastIndex);else if(t.__isDate(b))y=new Date(b.getTime());else{if(m&&Buffer.isBuffer(b))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(b.length):y=new Buffer(b.length),b.copy(y),y;typeof u>"u"?(Z=Object.getPrototypeOf(b),y=Object.create(Z)):(y=Object.create(u),Z=u)}if(a){var gt=f.indexOf(b);if(gt!=-1)return d[gt];f.push(b),d.push(y)}for(var Ur in b){var Hr;Z&&(Hr=Object.getOwnPropertyDescriptor(Z,Ur)),!(Hr&&Hr.set==null)&&(y[Ur]=S(b[Ur],_-1))}return y}return S(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function s(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=s;function n(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=n,t}();typeof or=="object"&&or.exports&&(or.exports=Xc)});var Vn=h((vb,Yn)=>{var Qc=Gn();Yn.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Qc(e[r]))}),t}});var Kn=h((wb,Jn)=>{Jn.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Qn=h((_b,ti)=>{"use strict";var ef=Vn(),_t=Kn(),Zn={nul:0,control:0};ti.exports=function(e){return Xn(e,Zn)};ti.exports.config=function(t){return t=ef(t||{},Zn),function(r){return Xn(r,t)}};function Xn(t,e){if(typeof t!="string")return zn(t,e);for(var r=0,i=0;i<t.length;i++){var s=zn(t.charCodeAt(i),e);if(s<0)return-1;r+=s}return r}function zn(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:tf(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function tf(t){var e=0,r=_t.length-1,i;if(t<_t[0][0]||t>_t[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>_t[i][1])e=i+1;else if(t<_t[i][0])r=i-1;else return!0;return!1}});var ii=h((Sb,eo)=>{eo.exports=require("stream")});var so=h((Eb,io)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function rf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?to(Object(r),!0).forEach(function(i){sf(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function sf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ro(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function of(t,e,r){return e&&ro(t.prototype,e),r&&ro(t,r),t}var af=require("buffer"),ar=af.Buffer,lf=require("util"),si=lf.inspect,uf=si&&si.custom||"inspect";function hf(t,e,r){ar.prototype.copy.call(t,e,r)}io.exports=function(){function t(){nf(this,t),this.head=null,this.tail=null,this.length=0}return of(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return ar.alloc(0);for(var i=ar.allocUnsafe(r>>>0),s=this.head,n=0;s;)hf(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=ar.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:uf,value:function(r,i){return si(this,rf({},i,{depth:0,customInspect:!1}))}}]),t}()});var oi=h((Tb,oo)=>{"use strict";function cf(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ni,this,t)):process.nextTick(ni,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(lr,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,n)):process.nextTick(no,r,n):e?(process.nextTick(lr,r),e(n)):process.nextTick(lr,r)}),this)}function no(t,e){ni(t,e),lr(t)}function lr(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ff(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ni(t,e){t.emit("error",e)}function df(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}oo.exports={destroy:cf,undestroy:ff,errorOrDestroy:df}});var xe=h((Ob,uo)=>{"use strict";var lo={};function H(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,l){super(i(o,a,l))}}s.prototype.name=r.name,s.prototype.code=t,lo[t]=s}function ao(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function pf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function gf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function mf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}H("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);H("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&pf(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(gf(t," argument"))s=`The ${t} ${i} ${ao(e,"type")}`;else{let n=mf(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${ao(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");H("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});H("ERR_STREAM_PREMATURE_CLOSE","Premature close");H("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});H("ERR_MULTIPLE_CALLBACK","Callback called multiple times");H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");H("ERR_STREAM_WRITE_AFTER_END","write after end");H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);H("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uo.exports.codes=lo});var ai=h((Rb,ho)=>{"use strict";var bf=xe().codes.ERR_INVALID_OPT_VALUE;function yf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function vf(t,e,r,i){var s=yf(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new bf(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}ho.exports={getHighWaterMark:vf}});var co=h((Cb,li)=>{typeof Object.create=="function"?li.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:li.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var ke=h((Db,hi)=>{try{if(ui=require("util"),typeof ui.inherits!="function")throw"";hi.exports=ui.inherits}catch{hi.exports=co()}var ui});var po=h((Mb,fo)=>{fo.exports=require("util").deprecate});var di=h((Ab,wo)=>{"use strict";wo.exports=P;function mo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Yf(e,t)}}var Ze;P.WritableState=St;var wf={deprecate:po()},bo=ii(),hr=require("buffer").Buffer,_f=global.Uint8Array||function(){};function xf(t){return hr.from(t)}function Sf(t){return hr.isBuffer(t)||t instanceof _f}var fi=oi(),Ef=ai(),Tf=Ef.getHighWaterMark,Se=xe().codes,Of=Se.ERR_INVALID_ARG_TYPE,Rf=Se.ERR_METHOD_NOT_IMPLEMENTED,Cf=Se.ERR_MULTIPLE_CALLBACK,Df=Se.ERR_STREAM_CANNOT_PIPE,Mf=Se.ERR_STREAM_DESTROYED,Af=Se.ERR_STREAM_NULL_VALUES,qf=Se.ERR_STREAM_WRITE_AFTER_END,If=Se.ERR_UNKNOWN_ENCODING,Xe=fi.errorOrDestroy;ke()(P,bo);function Pf(){}function St(t,e,r){Ze=Ze||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Tf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){Nf(e,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mo(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:wf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ur;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ur=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return ur.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof St}})):ur=function(e){return e instanceof this};function P(t){Ze=Ze||je();var e=this instanceof Ze;if(!e&&!ur.call(P,this))return new P(t);this._writableState=new St(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),bo.call(this)}P.prototype.pipe=function(){Xe(this,new Df)};function kf(t,e){var r=new qf;Xe(t,r),process.nextTick(e,r)}function jf(t,e,r,i){var s;return r===null?s=new Af:typeof r!="string"&&!e.objectMode&&(s=new Of("chunk",["string","Buffer"],r)),s?(Xe(t,s),process.nextTick(i,s),!1):!0}P.prototype.write=function(t,e,r){var i=this._writableState,s=!1,n=!i.objectMode&&Sf(t);return n&&!hr.isBuffer(t)&&(t=xf(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Pf),i.ending?kf(this,r):(n||jf(this,i,t,r))&&(i.pendingcb++,s=Lf(this,i,n,t,e,r)),s};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&yo(this,t))};P.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new If(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $f(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=hr.from(e,r)),e}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lf(t,e,r,i,s,n){if(!r){var o=$f(e,i,s);i!==o&&(r=!0,s="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:n,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ci(t,e,!1,a,i,s,n);return l}function ci(t,e,r,i,s,n,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Mf("write")):r?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function Bf(t,e,r,i,s){--e.pendingcb,r?(process.nextTick(s,i),process.nextTick(xt,t,e),t._writableState.errorEmitted=!0,Xe(t,i)):(s(i),t._writableState.errorEmitted=!0,Xe(t,i),xt(t,e))}function Ff(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Nf(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new Cf;if(Ff(r),e)Bf(t,r,i,e,s);else{var n=vo(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yo(t,r),i?process.nextTick(go,t,r,n,s):go(t,r,n,s)}}function go(t,e,r,i){r||Uf(t,e),e.pendingcb--,i(),xt(t,e)}function Uf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function yo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)s[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;s.allBuffers=a,ci(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new mo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,f=e.objectMode?1:l.length;if(ci(t,e,!1,f,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}P.prototype._write=function(t,e,r){r(new Rf("_write()"))};P.prototype._writev=null;P.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Gf(this,i,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Hf(t,e){t._final(function(r){e.pendingcb--,r&&Xe(t,r),e.prefinished=!0,t.emit("prefinish"),xt(t,e)})}function Wf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Hf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function xt(t,e){var r=vo(e);if(r&&(Wf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function Gf(t,e,r){e.ending=!0,xt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Yf(t,e,r){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){!this._writableState||(this._writableState.destroyed=e)}});P.prototype.destroy=fi.destroy;P.prototype._undestroy=fi.undestroy;P.prototype._destroy=function(t,e){e(t)}});var je=h((qb,xo)=>{"use strict";var Vf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};xo.exports=X;var _o=mi(),gi=di();ke()(X,_o);for(pi=Vf(gi.prototype),cr=0;cr<pi.length;cr++)fr=pi[cr],X.prototype[fr]||(X.prototype[fr]=gi.prototype[fr]);var pi,fr,cr;function X(t){if(!(this instanceof X))return new X(t);_o.call(this,t),gi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Jf)))}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(X.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jf(){this._writableState.ended||process.nextTick(Kf,this)}function Kf(t){t.end()}Object.defineProperty(X.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var To=h((bi,Eo)=>{var dr=require("buffer"),Q=dr.Buffer;function So(t,e){for(var r in t)e[r]=t[r]}Q.from&&Q.alloc&&Q.allocUnsafe&&Q.allocUnsafeSlow?Eo.exports=dr:(So(dr,bi),bi.Buffer=$e);function $e(t,e,r){return Q(t,e,r)}$e.prototype=Object.create(Q.prototype);So(Q,$e);$e.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Q(t,e,r)};$e.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Q(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};$e.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Q(t)};$e.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return dr.SlowBuffer(t)}});var wi=h(Ro=>{"use strict";var vi=To().Buffer,Oo=vi.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function zf(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Zf(t){var e=zf(t);if(typeof e!="string"&&(vi.isEncoding===Oo||!Oo(t)))throw new Error("Unknown encoding: "+t);return e||t}Ro.StringDecoder=Et;function Et(t){this.encoding=Zf(t);var e;switch(this.encoding){case"utf16le":this.text=id,this.end=sd,e=4;break;case"utf8":this.fillLast=ed,e=4;break;case"base64":this.text=nd,this.end=od,e=3;break;default:this.write=ad,this.end=ld;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vi.allocUnsafe(e)}Et.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Et.prototype.end=rd;Et.prototype.text=td;Et.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function yi(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xf(t,e,r){var i=e.length-1;if(i<r)return 0;var s=yi(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=yi(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=yi(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function Qf(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function ed(t){var e=this.lastTotal-this.lastNeed,r=Qf(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function td(t,e){var r=Xf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function rd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function id(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function sd(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function nd(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function od(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ad(t){return t.toString(this.encoding)}function ld(t){return t&&t.length?this.write(t):""}});var pr=h((Pb,Mo)=>{"use strict";var Co=xe().codes.ERR_STREAM_PREMATURE_CLOSE;function ud(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function hd(){}function cd(t){return t.setHeader&&typeof t.abort=="function"}function Do(t,e,r){if(typeof e=="function")return Do(t,null,e);e||(e={}),r=ud(r||hd);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,s||r.call(t)},p=function(S){r.call(t,S)},f=function(){var S;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(S=new Co),r.call(t,S);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new Co),r.call(t,S)},d=function(){t.req.on("finish",a)};return cd(t)?(t.on("complete",a),t.on("abort",f),t.req?d():t.on("request",d)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",f)}}Mo.exports=Do});var qo=h((kb,Ao)=>{"use strict";var gr;function Ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fd=pr(),Te=Symbol("lastResolve"),Le=Symbol("lastReject"),Tt=Symbol("error"),mr=Symbol("ended"),Be=Symbol("lastPromise"),_i=Symbol("handlePromise"),Fe=Symbol("stream");function Oe(t,e){return{value:t,done:e}}function dd(t){var e=t[Te];if(e!==null){var r=t[Fe].read();r!==null&&(t[Be]=null,t[Te]=null,t[Le]=null,e(Oe(r,!1)))}}function pd(t){process.nextTick(dd,t)}function gd(t,e){return function(r,i){t.then(function(){if(e[mr]){r(Oe(void 0,!0));return}e[_i](r,i)},i)}}var md=Object.getPrototypeOf(function(){}),bd=Object.setPrototypeOf((gr={get stream(){return this[Fe]},next:function(){var e=this,r=this[Tt];if(r!==null)return Promise.reject(r);if(this[mr])return Promise.resolve(Oe(void 0,!0));if(this[Fe].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Tt]?a(e[Tt]):o(Oe(void 0,!0))})});var i=this[Be],s;if(i)s=new Promise(gd(i,this));else{var n=this[Fe].read();if(n!==null)return Promise.resolve(Oe(n,!1));s=new Promise(this[_i])}return this[Be]=s,s}},Ee(gr,Symbol.asyncIterator,function(){return this}),Ee(gr,"return",function(){var e=this;return new Promise(function(r,i){e[Fe].destroy(null,function(s){if(s){i(s);return}r(Oe(void 0,!0))})})}),gr),md),yd=function(e){var r,i=Object.create(bd,(r={},Ee(r,Fe,{value:e,writable:!0}),Ee(r,Te,{value:null,writable:!0}),Ee(r,Le,{value:null,writable:!0}),Ee(r,Tt,{value:null,writable:!0}),Ee(r,mr,{value:e._readableState.endEmitted,writable:!0}),Ee(r,_i,{value:function(n,o){var a=i[Fe].read();a?(i[Be]=null,i[Te]=null,i[Le]=null,n(Oe(a,!1))):(i[Te]=n,i[Le]=o)},writable:!0}),r));return i[Be]=null,fd(e,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=i[Le];n!==null&&(i[Be]=null,i[Te]=null,i[Le]=null,n(s)),i[Tt]=s;return}var o=i[Te];o!==null&&(i[Be]=null,i[Te]=null,i[Le]=null,o(Oe(void 0,!0))),i[mr]=!0}),e.on("readable",pd.bind(null,i)),i};Ao.exports=yd});var jo=h((jb,ko)=>{"use strict";function Io(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function vd(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Io(n,i,s,o,a,"next",l)}function a(l){Io(n,i,s,o,a,"throw",l)}o(void 0)})}}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(i){_d(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function _d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xd=xe().codes.ERR_INVALID_ARG_TYPE;function Sd(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new xd("iterable",["Iterable"],e);var s=new t(wd({objectMode:!0},r)),n=!1;s._read=function(){n||(n=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=vd(function*(){try{var l=yield i.next(),u=l.value,p=l.done;p?s.push(null):s.push(yield u)?o():n=!1}catch(f){s.destroy(f)}}),a.apply(this,arguments)}return s}ko.exports=Sd});var mi=h((Lb,Yo)=>{"use strict";Yo.exports=w;var Qe;w.ReadableState=Fo;var $b=require("events").EventEmitter,Bo=function(e,r){return e.listeners(r).length},Rt=ii(),br=require("buffer").Buffer,Ed=global.Uint8Array||function(){};function Td(t){return br.from(t)}function Od(t){return br.isBuffer(t)||t instanceof Ed}var xi=require("util"),g;xi&&xi.debuglog?g=xi.debuglog("stream"):g=function(){};var Rd=so(),Di=oi(),Cd=ai(),Dd=Cd.getHighWaterMark,yr=xe().codes,Md=yr.ERR_INVALID_ARG_TYPE,Ad=yr.ERR_STREAM_PUSH_AFTER_EOF,qd=yr.ERR_METHOD_NOT_IMPLEMENTED,Id=yr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,et,Si,Ei;ke()(w,Rt);var Ot=Di.errorOrDestroy,Ti=["error","close","destroy","pause","resume"];function Pd(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Fo(t,e,r){Qe=Qe||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Qe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Dd(this,t,"readableHighWaterMark",r),this.buffer=new Rd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(et||(et=wi().StringDecoder),this.decoder=new et(t.encoding),this.encoding=t.encoding)}function w(t){if(Qe=Qe||je(),!(this instanceof w))return new w(t);var e=this instanceof Qe;this._readableState=new Fo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Rt.call(this)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});w.prototype.destroy=Di.destroy;w.prototype._undestroy=Di.undestroy;w.prototype._destroy=function(t,e){e(t)};w.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=br.from(t,e),e=""),i=!0),No(this,t,e,!1,i)};w.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,i,s){g("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,$d(t,n);else{var o;if(s||(o=kd(n,e)),o)Ot(t,o);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==br.prototype&&(e=Td(e)),i)n.endEmitted?Ot(t,new Id):Oi(t,n,e,!0);else if(n.ended)Ot(t,new Ad);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Oi(t,n,e,!1):Ci(t,n)):Oi(t,n,e,!1)}else i||(n.reading=!1,Ci(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Oi(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&vr(t)),Ci(t,e)}function kd(t,e){var r;return!Od(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Md("chunk",["string","Buffer","Uint8Array"],e)),r}w.prototype.isPaused=function(){return this._readableState.flowing===!1};w.prototype.setEncoding=function(t){et||(et=wi().StringDecoder);var e=new et(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var $o=1073741824;function jd(t){return t>=$o?t=$o:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Lo(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=jd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}w.prototype.read=function(t){g("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return g("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Ri(this):vr(this),null;if(t=Lo(t,e),t===0&&e.ended)return e.length===0&&Ri(this),null;var i=e.needReadable;g("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,g("length less than watermark",i)),e.ended||e.reading?(i=!1,g("reading or ended",i)):i&&(g("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lo(r,e)));var s;return t>0?s=Wo(t,e):s=null,s===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Ri(this)),s!==null&&this.emit("data",s),s};function $d(t,e){if(g("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?vr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Uo(t)))}}function vr(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Uo,t))}function Uo(t){var e=t._readableState;g("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Mi(t)}function Ci(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Ld,t,e))}function Ld(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(g("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}w.prototype._read=function(t){Ot(this,new qd("_read()"))};w.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,g("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=s?a:b;i.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",o);function o(_,y){g("onunpipe"),_===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,p())}function a(){g("onend"),t.end()}var l=Bd(r);t.on("drain",l);var u=!1;function p(){g("cleanup"),t.removeListener("close",m),t.removeListener("finish",S),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(_){g("ondata");var y=t.write(_);g("dest.write",y),y===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Go(i.pipes,t)!==-1)&&!u&&(g("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(_){g("onerror",_),b(),t.removeListener("error",d),Bo(t,"error")===0&&Ot(t,_)}Pd(t,"error",d);function m(){t.removeListener("finish",S),b()}t.once("close",m);function S(){g("onfinish"),t.removeListener("close",m),b()}t.once("finish",S);function b(){g("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(g("pipe resume"),r.resume()),t};function Bd(t){return function(){var r=t._readableState;g("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Bo(t,"data")&&(r.flowing=!0,Mi(t))}}w.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)i[n].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Go(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};w.prototype.on=function(t,e){var r=Rt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,g("on readable",i.length,i.reading),i.length?vr(this):i.reading||process.nextTick(Fd,this)),r};w.prototype.addListener=w.prototype.on;w.prototype.removeListener=function(t,e){var r=Rt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ho,this),r};w.prototype.removeAllListeners=function(t){var e=Rt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ho,this),e};function Ho(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function Fd(t){g("readable nexttick read 0"),t.read(0)}w.prototype.resume=function(){var t=this._readableState;return t.flowing||(g("resume"),t.flowing=!t.readableListening,Nd(this,t)),t.paused=!1,this};function Nd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ud,t,e))}function Ud(t,e){g("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Mi(t),e.flowing&&!e.reading&&t.read(0)}w.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Mi(t){var e=t._readableState;for(g("flow",e.flowing);e.flowing&&t.read()!==null;);}w.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(g("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var s in t)this[s]===void 0&&typeof t[s]=="function"&&(this[s]=function(a){return function(){return t[a].apply(t,arguments)}}(s));for(var n=0;n<Ti.length;n++)t.on(Ti[n],this.emit.bind(this,Ti[n]));return this._read=function(o){g("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return Si===void 0&&(Si=qo()),Si(this)});Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});w._fromList=Wo;Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wo(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Ri(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Hd,e,t))}function Hd(t,e){if(g("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(w.from=function(t,e){return Ei===void 0&&(Ei=jo()),Ei(w,t,e)});function Go(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Ai=h((Bb,Jo)=>{"use strict";Jo.exports=ce;var wr=xe().codes,Wd=wr.ERR_METHOD_NOT_IMPLEMENTED,Gd=wr.ERR_MULTIPLE_CALLBACK,Yd=wr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Vd=wr.ERR_TRANSFORM_WITH_LENGTH_0,_r=je();ke()(ce,_r);function Jd(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Gd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);_r.call(this,t),this._transformState={afterTransform:Jd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Kd)}function Kd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Vo(t,e,r)}):Vo(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,_r.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new Wd("_transform()"))};ce.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){_r.prototype._destroy.call(this,t,function(r){e(r)})};function Vo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Vd;if(t._transformState.transforming)throw new Yd;return t.push(null)}});var Zo=h((Fb,zo)=>{"use strict";zo.exports=Ct;var Ko=Ai();ke()(Ct,Ko);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Ko.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var ra=h((Nb,ta)=>{"use strict";var qi;function zd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ea=xe().codes,Zd=ea.ERR_MISSING_ARGS,Xd=ea.ERR_STREAM_DESTROYED;function Xo(t){if(t)throw t}function Qd(t){return t.setHeader&&typeof t.abort=="function"}function ep(t,e,r,i){i=zd(i);var s=!1;t.on("close",function(){s=!0}),qi===void 0&&(qi=pr()),qi(t,{readable:e,writable:r},function(o){if(o)return i(o);s=!0,i()});var n=!1;return function(o){if(!s&&!n){if(n=!0,Qd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new Xd("pipe"))}}}function Qo(t){t()}function tp(t,e){return t.pipe(e)}function rp(t){return!t.length||typeof t[t.length-1]!="function"?Xo:t.pop()}function ip(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=rp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Zd("streams");var s,n=e.map(function(o,a){var l=a<e.length-1,u=a>0;return ep(o,l,u,function(p){s||(s=p),p&&n.forEach(Qo),!l&&(n.forEach(Qo),i(s))})});return e.reduce(tp)}ta.exports=ip});var ia=h((W,Mt)=>{var Dt=require("stream");process.env.READABLE_STREAM==="disable"&&Dt?(Mt.exports=Dt.Readable,Object.assign(Mt.exports,Dt),Mt.exports.Stream=Dt):(W=Mt.exports=mi(),W.Stream=Dt||W,W.Readable=W,W.Writable=di(),W.Duplex=je(),W.Transform=Ai(),W.PassThrough=Zo(),W.finished=pr(),W.pipeline=ra())});var oa=h((Ub,na)=>{"use strict";var{Buffer:V}=require("buffer"),sa=Symbol.for("BufferList");function R(t){if(!(this instanceof R))return new R(t);R._init.call(this,t)}R._init=function(e){Object.defineProperty(this,sa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};R.prototype._new=function(e){return new R(e)};R.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(e<s||i===this._bufs.length-1)return[i,e-r];r=s}};R.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};R.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};R.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};R.prototype.copy=function(e,r,i,s){if((typeof i!="number"||i<0)&&(i=0),(typeof s!="number"||s>this.length)&&(s=this.length),i>=this.length||s<=0)return e||V.alloc(0);let n=!!e,o=this._offset(i),a=s-i,l=a,u=n&&r||0,p=o[1];if(i===0&&s===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:V.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-p)return n?this._bufs[o[0]].copy(e,r,p,p+l):this._bufs[o[0]].slice(p,p+l);n||(e=V.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let d=this._bufs[f].length-p;if(l>d)this._bufs[f].copy(e,u,p),u+=d;else{this._bufs[f].copy(e,u,p,p+l),u+=d;break}l-=d,p&&(p=0)}return e.length>u?e.slice(0,u):e};R.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),s=this._offset(r),n=this._bufs.slice(i[0],s[0]+1);return s[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,s[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};R.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};R.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};R.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};R.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(V.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(V.from(e));return this};R.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};R.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=V.from([t]):typeof t=="string"?t=V.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=V.from(t.buffer,t.byteOffset,t.byteLength):V.isBuffer(t)||(t=V.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),s=i[0],n=i[1];for(;s<this._bufs.length;s++){let o=this._bufs[s];for(;n<o.length;)if(o.length-n>=t.length){let l=o.indexOf(t,n);if(l!==-1)return this._reverseOffset([s,l]);n=o.length-t.length+1}else{let l=this._reverseOffset([s,n]);if(this._match(l,t))return l;n++}n=0}return-1};R.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?R.prototype[r]=function(i,s){return this.slice(i,i+s)[r](0,s)}:R.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();R.prototype._isBufferList=function(e){return e instanceof R||R.isBufferList(e)};R.isBufferList=function(e){return e!=null&&e[sa]};na.exports=R});var aa=h((Hb,xr)=>{"use strict";var Ii=ia().Duplex,sp=ke(),At=oa();function B(t){if(!(this instanceof B))return new B(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}At._init.call(this,t),Ii.call(this)}sp(B,Ii);Object.assign(B.prototype,At.prototype);B.prototype._new=function(e){return new B(e)};B.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};B.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};B.prototype.end=function(e){Ii.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};B.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};B.prototype._isBufferList=function(e){return e instanceof B||e instanceof At||B.isBufferList(e)};B.isBufferList=At.isBufferList;xr.exports=B;xr.exports.BufferListStream=B;xr.exports.BufferList=At});var ga=h((Qb,pa)=>{pa.exports=da;da.sync=ap;var ca=require("fs");function op(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function fa(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:op(e,r)}function da(t,e,r){ca.stat(t,function(i,s){r(i,i?!1:fa(s,t,e))})}function ap(t,e){return fa(ca.statSync(t),t,e)}});var wa=h((ey,va)=>{va.exports=ba;ba.sync=lp;var ma=require("fs");function ba(t,e,r){ma.stat(t,function(i,s){r(i,i?!1:ya(s,e))})}function lp(t,e){return ya(ma.statSync(t),e)}function ya(t,e){return t.isFile()&&up(t,e)}function up(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),p=a|l,f=r&u||r&l&&s===o||r&a&&i===n||r&p&&n===0;return f}});var xa=h((ry,_a)=>{var ty=require("fs"),Tr;process.platform==="win32"||global.TESTING_WINDOWS?Tr=ga():Tr=wa();_a.exports=ji;ji.sync=hp;function ji(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){ji(t,e||{},function(n,o){n?s(n):i(o)})})}Tr(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function hp(t,e){try{return Tr.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Da=h((iy,Ca)=>{var nt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Sa=require("path"),cp=nt?";":":",Ea=xa(),Ta=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Oa=(t,e)=>{let r=e.colon||cp,i=t.match(/\//)||nt&&t.match(/\\/)?[""]:[...nt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=nt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=nt?s.split(r):[""];return nt&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Ra=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Oa(t,e),o=[],a=u=>new Promise((p,f)=>{if(u===i.length)return e.all&&o.length?p(o):f(Ta(t));let d=i[u],m=/^".*"$/.test(d)?d.slice(1,-1):d,S=Sa.join(m,t),b=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+S:S;p(l(b,u,0))}),l=(u,p,f)=>new Promise((d,m)=>{if(f===s.length)return d(a(p+1));let S=s[f];Ea(u+S,{pathExt:n},(b,_)=>{if(!b&&_)if(e.all)o.push(u+S);else return d(u+S);return d(l(u,p,f+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},fp=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Oa(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Sa.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let f=0;f<i.length;f++){let d=p+i[f];try{if(Ea.sync(d,{pathExt:s}))if(e.all)n.push(d);else return d}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Ta(t)};Ca.exports=Ra;Ra.sync=fp});var Aa=h((sy,$i)=>{"use strict";var Ma=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};$i.exports=Ma;$i.exports.default=Ma});var ka=h((ny,Pa)=>{"use strict";var qa=require("path"),dp=Da(),pp=Aa();function Ia(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=dp.sync(t.command,{path:r[pp({env:r})],pathExt:e?qa.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=qa.resolve(s?t.options.cwd:"",o)),o}function gp(t){return Ia(t)||Ia(t,!0)}Pa.exports=gp});var ja=h((oy,Bi)=>{"use strict";var Li=/([()\][%!^"`<>&|;, *?])/g;function mp(t){return t=t.replace(Li,"^$1"),t}function bp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Li,"^$1"),e&&(t=t.replace(Li,"^$1")),t}Bi.exports.command=mp;Bi.exports.argument=bp});var La=h((ay,$a)=>{"use strict";$a.exports=/^#!(.*)/});var Fa=h((ly,Ba)=>{"use strict";var yp=La();Ba.exports=(t="")=>{let e=t.match(yp);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Ua=h((uy,Na)=>{"use strict";var Fi=require("fs"),vp=Fa();function wp(t){let r=Buffer.alloc(150),i;try{i=Fi.openSync(t,"r"),Fi.readSync(i,r,0,150,0),Fi.closeSync(i)}catch{}return vp(r.toString())}Na.exports=wp});var Ya=h((hy,Ga)=>{"use strict";var _p=require("path"),Ha=ka(),Wa=ja(),xp=Ua(),Sp=process.platform==="win32",Ep=/\.(?:com|exe)$/i,Tp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Op(t){t.file=Ha(t);let e=t.file&&xp(t.file);return e?(t.args.unshift(t.file),t.command=e,Ha(t)):t.file}function Rp(t){if(!Sp)return t;let e=Op(t),r=!Ep.test(e);if(t.options.forceShell||r){let i=Tp.test(e);t.command=_p.normalize(t.command),t.command=Wa.command(t.command),t.args=t.args.map(n=>Wa.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Cp(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Rp(i)}Ga.exports=Cp});var Ka=h((cy,Ja)=>{"use strict";var Ni=process.platform==="win32";function Ui(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Dp(t,e){if(!Ni)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Va(s,e,"spawn");if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Va(t,e){return Ni&&t===1&&!e.file?Ui(e.original,"spawn"):null}function Mp(t,e){return Ni&&t===1&&!e.file?Ui(e.original,"spawnSync"):null}Ja.exports={hookChildProcess:Dp,verifyENOENT:Va,verifyENOENTSync:Mp,notFoundError:Ui}});var Xa=h((fy,ot)=>{"use strict";var za=require("child_process"),Hi=Ya(),Wi=Ka();function Za(t,e,r){let i=Hi(t,e,r),s=za.spawn(i.command,i.args,i.options);return Wi.hookChildProcess(s,i),s}function Ap(t,e,r){let i=Hi(t,e,r),s=za.spawnSync(i.command,i.args,i.options);return s.error=s.error||Wi.verifyENOENTSync(s.status,i),s}ot.exports=Za;ot.exports.spawn=Za;ot.exports.sync=Ap;ot.exports._parse=Hi;ot.exports._enoent=Wi});var A=h((Cy,nl)=>{"use strict";var{FORCE_COLOR:Fp,NODE_DISABLE_COLORS:Np,TERM:Up}=process.env,T={enabled:!Np&&Up!=="dumb"&&Fp!=="0",reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function sl(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Hp(t,e){let r={has:t,keys:e};return r.reset=T.reset.bind(r),r.bold=T.bold.bind(r),r.dim=T.dim.bind(r),r.italic=T.italic.bind(r),r.underline=T.underline.bind(r),r.inverse=T.inverse.bind(r),r.hidden=T.hidden.bind(r),r.strikethrough=T.strikethrough.bind(r),r.black=T.black.bind(r),r.red=T.red.bind(r),r.green=T.green.bind(r),r.yellow=T.yellow.bind(r),r.blue=T.blue.bind(r),r.magenta=T.magenta.bind(r),r.cyan=T.cyan.bind(r),r.white=T.white.bind(r),r.gray=T.gray.bind(r),r.grey=T.grey.bind(r),r.bgBlack=T.bgBlack.bind(r),r.bgRed=T.bgRed.bind(r),r.bgGreen=T.bgGreen.bind(r),r.bgYellow=T.bgYellow.bind(r),r.bgBlue=T.bgBlue.bind(r),r.bgMagenta=T.bgMagenta.bind(r),r.bgCyan=T.bgCyan.bind(r),r.bgWhite=T.bgWhite.bind(r),r}function C(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:T.enabled?sl(this.keys,i+""):i+""):i===void 0?Hp([t],[r]):T.enabled?sl([r],i+""):i+""}}nl.exports=T});var al=h((Dy,ol)=>{"use strict";ol.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Or=h((My,ll)=>{"use strict";ll.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var I=h((Ay,ul)=>{"use strict";var Qi="\x1B",q=`${Qi}[`,Wp="\x07",es={to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t,e){let r="";return t<0?r+=`${q}${-t}D`:t>0&&(r+=`${q}${t}C`),e<0?r+=`${q}${-e}A`:e>0&&(r+=`${q}${e}B`),r},up:(t=1)=>`${q}${t}A`,down:(t=1)=>`${q}${t}B`,forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),left:`${q}G`,hide:`${q}?25l`,show:`${q}?25h`,save:`${Qi}7`,restore:`${Qi}8`},Gp={up:(t=1)=>`${q}S`.repeat(t),down:(t=1)=>`${q}T`.repeat(t)},Yp={screen:`${q}2J`,up:(t=1)=>`${q}1J`.repeat(t),down:(t=1)=>`${q}J`.repeat(t),line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?es.up():"");return t&&(e+=es.left),e}};ul.exports={cursor:es,scroll:Gp,erase:Yp,beep:Wp}});var pl=h((qy,dl)=>{"use strict";function Vp(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Jp(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Jp(t,e){if(!!t){if(typeof t=="string")return hl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hl(t,e)}}function hl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var Kp=Or(),fl=I(),cl=fl.erase,zp=fl.cursor,Zp=t=>[...Kp(t)].length;dl.exports=function(t,e){if(!e)return cl.line+zp.to(0);let r=0,i=t.split(/\r?\n/);var s=Vp(i),n;try{for(s.s();!(n=s.n()).done;){let o=n.value;r+=1+Math.floor(Math.max(Zp(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return cl.lines(r)}});var ts=h((Iy,gl)=>{"use strict";var $t={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Xp={arrowUp:$t.arrowUp,arrowDown:$t.arrowDown,arrowLeft:$t.arrowLeft,arrowRight:$t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Qp=process.platform==="win32"?Xp:$t;gl.exports=Qp});var bl=h((Py,ml)=>{"use strict";var ut=A(),He=ts(),rs=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),eg=t=>rs[t]||rs.default,Lt=Object.freeze({aborted:ut.red(He.cross),done:ut.green(He.tick),exited:ut.yellow(He.cross),default:ut.cyan("?")}),tg=(t,e,r)=>e?Lt.aborted:r?Lt.exited:t?Lt.done:Lt.default,rg=t=>ut.gray(t?He.ellipsis:He.pointerSmall),ig=(t,e)=>ut.gray(t?e?He.pointerSmall:"+":He.line);ml.exports={styles:rs,render:eg,symbols:Lt,symbol:tg,delimiter:rg,item:ig}});var vl=h((ky,yl)=>{"use strict";var sg=Or();yl.exports=function(t,e){let r=String(sg(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var _l=h((jy,wl)=>{"use strict";wl.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
10
10
  `)).join(`
11
- `)}});var Tl=h((Fy,El)=>{"use strict";El.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var K=h((Ny,Ol)=>{"use strict";Ol.exports={action:ul(),clear:ml(),style:vl(),strip:Or(),figures:is(),lines:_l(),wrap:Sl(),entriesToDisplay:Tl()}});var pe=h((Uy,Dl)=>{"use strict";var Cl=require("readline"),lg=K(),ug=lg.action,hg=require("events"),Rl=I(),cg=Rl.beep,fg=Rl.cursor,dg=M(),ns=class extends hg{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=Cl.createInterface({input:this.in,escapeCodeTimeout:50});Cl.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=ug(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(fg.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(cg)}render(){this.onRender(dg),this.firstRender&&(this.firstRender=!1)}};Dl.exports=ns});var Pl=h((Hy,Il)=>{"use strict";function Al(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function Ml(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Al(n,i,s,o,a,"next",l)}function a(l){Al(n,i,s,o,a,"throw",l)}o(void 0)})}}var Cr=M(),pg=pe(),ql=I(),gg=ql.erase,Lt=ql.cursor,Rr=K(),os=Rr.style,as=Rr.clear,mg=Rr.lines,bg=Rr.figures,ls=class extends pg{constructor(e={}){super(e),this.transform=os.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=as("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Cr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
12
- `),this.close()}validate(){var e=this;return Ml(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Ml(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
13
- `),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Lt.down(mg(this.outputError,this.out.columns)-1)+as(this.outputError,this.out.columns)),this.out.write(as(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[os.symbol(this.done,this.aborted),Cr.bold(this.msg),os.delimiter(this.done),this.red?Cr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
11
+ `)}});var Sl=h(($y,xl)=>{"use strict";xl.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var K=h((Ly,El)=>{"use strict";El.exports={action:al(),clear:pl(),style:bl(),strip:Or(),figures:ts(),lines:vl(),wrap:_l(),entriesToDisplay:Sl()}});var pe=h((By,Rl)=>{"use strict";var Tl=require("readline"),ng=K(),og=ng.action,ag=require("events"),Ol=I(),lg=Ol.beep,ug=Ol.cursor,hg=A(),is=class extends ag{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=Tl.createInterface({input:this.in,escapeCodeTimeout:50});Tl.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=og(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(ug.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(lg)}render(){this.onRender(hg),this.firstRender&&(this.firstRender=!1)}};Rl.exports=is});var ql=h((Fy,Al)=>{"use strict";function Cl(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function Dl(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Cl(n,i,s,o,a,"next",l)}function a(l){Cl(n,i,s,o,a,"throw",l)}o(void 0)})}}var Rr=A(),cg=pe(),Ml=I(),fg=Ml.erase,Bt=Ml.cursor,Cr=K(),ss=Cr.style,ns=Cr.clear,dg=Cr.lines,pg=Cr.figures,os=class extends cg{constructor(e={}){super(e),this.transform=ss.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=ns("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Rr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
12
+ `),this.close()}validate(){var e=this;return Dl(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Dl(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
13
+ `),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Bt.down(dg(this.outputError,this.out.columns)-1)+ns(this.outputError,this.out.columns)),this.out.write(ns(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ss.symbol(this.done,this.aborted),Rr.bold(this.msg),ss.delimiter(this.done),this.red?Rr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
14
14
  `).reduce((e,r,i)=>e+`
15
- ${i?" ":bg.pointerSmall} ${Cr.red().italic(r)}`,"")),this.out.write(gg.line+Lt.to(0)+this.outputText+Lt.save+this.outputError+Lt.restore+Lt.move(this.cursorOffset,0)))}};Il.exports=ls});var Ll=h((Wy,$l)=>{"use strict";var ge=M(),yg=pe(),Bt=K(),kl=Bt.style,jl=Bt.clear,Dr=Bt.figures,vg=Bt.wrap,wg=Bt.entriesToDisplay,_g=I(),xg=_g.cursor,us=class extends yg{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=jl("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
15
+ ${i?" ":pg.pointerSmall} ${Rr.red().italic(r)}`,"")),this.out.write(fg.line+Bt.to(0)+this.outputText+Bt.save+this.outputError+Bt.restore+Bt.move(this.cursorOffset,0)))}};Al.exports=os});var jl=h((Ny,kl)=>{"use strict";var ge=A(),gg=pe(),Ft=K(),Il=Ft.style,Pl=Ft.clear,Dr=Ft.figures,mg=Ft.wrap,bg=Ft.entriesToDisplay,yg=I(),vg=yg.cursor,as=class extends gg{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Pl("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
16
16
  `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
17
- `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(xg.hide):this.out.write(jl(this.outputText,this.out.columns)),super.render();let e=wg(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[kl.symbol(this.done,this.aborted),ge.bold(this.msg),kl.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ge.yellow(this.warn):ge.gray(this.hint)].join(" "),!this.done){this.outputText+=`
17
+ `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(vg.hide):this.out.write(Pl(this.outputText,this.out.columns)),super.render();let e=bg(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[Il.symbol(this.done,this.aborted),ge.bold(this.msg),Il.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ge.yellow(this.warn):ge.gray(this.hint)].join(" "),!this.done){this.outputText+=`
18
18
  `;for(let s=r;s<i;s++){let n,o,a="",l=this.choices[s];s===r&&r>0?o=Dr.arrowUp:s===i-1&&i<this.choices.length?o=Dr.arrowDown:o=" ",l.disabled?(n=this.cursor===s?ge.gray().underline(l.title):ge.strikethrough().gray(l.title),o=(this.cursor===s?ge.bold().gray(Dr.pointer)+" ":" ")+o):(n=this.cursor===s?ge.cyan().underline(l.title):l.title,o=(this.cursor===s?ge.cyan(Dr.pointer)+" ":" ")+o,l.description&&this.cursor===s&&(a=` - ${l.description}`,(o.length+n.length+a.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a=`
19
- `+vg(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${ge.gray(a)}
20
- `}}this.out.write(this.outputText)}};$l.exports=us});var Wl=h((Gy,Hl)=>{"use strict";var Ar=M(),Sg=pe(),Nl=K(),Bl=Nl.style,Eg=Nl.clear,Ul=I(),Fl=Ul.cursor,Tg=Ul.erase,hs=class extends Sg{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
19
+ `+mg(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${ge.gray(a)}
20
+ `}}this.out.write(this.outputText)}};kl.exports=as});var Ul=h((Uy,Nl)=>{"use strict";var Mr=A(),wg=pe(),Bl=K(),$l=Bl.style,_g=Bl.clear,Fl=I(),Ll=Fl.cursor,xg=Fl.erase,ls=class extends wg{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
21
21
  `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
22
- `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Fl.hide):this.out.write(Eg(this.outputText,this.out.columns)),super.render(),this.outputText=[Bl.symbol(this.done,this.aborted),Ar.bold(this.msg),Bl.delimiter(this.done),this.value?this.inactive:Ar.cyan().underline(this.inactive),Ar.gray("/"),this.value?Ar.cyan().underline(this.active):this.active].join(" "),this.out.write(Tg.line+Fl.to(0)+this.outputText))}};Hl.exports=hs});var ne=h((Yy,Gl)=>{"use strict";var ut=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof ut)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof ut)}toString(){return String(this.date)}};Gl.exports=ut});var Vl=h((Vy,Yl)=>{"use strict";var Og=ne(),cs=class extends Og{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Yl.exports=cs});var Kl=h((Jy,Jl)=>{"use strict";var Cg=ne(),Rg=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),fs=class extends Cg{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Rg(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Jl.exports=fs});var Zl=h((Ky,zl)=>{"use strict";var Dg=ne(),ds=class extends Dg{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};zl.exports=ds});var Xl=h((zy,Ql)=>{"use strict";var Ag=ne(),ps=class extends Ag{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Ql.exports=ps});var tu=h((Zy,eu)=>{"use strict";var Mg=ne(),gs=class extends Mg{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};eu.exports=gs});var iu=h((Qy,ru)=>{"use strict";var qg=ne(),ms=class extends qg{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};ru.exports=ms});var nu=h((Xy,su)=>{"use strict";var Ig=ne(),bs=class extends Ig{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};su.exports=bs});var au=h((ev,ou)=>{"use strict";var Pg=ne(),ys=class extends Pg{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};ou.exports=ys});var uu=h((tv,lu)=>{"use strict";lu.exports={DatePart:ne(),Meridiem:Vl(),Day:Kl(),Hours:Zl(),Milliseconds:Xl(),Minutes:tu(),Month:iu(),Seconds:nu(),Year:au()}});var vu=h((rv,yu)=>{"use strict";function hu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function cu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){hu(n,i,s,o,a,"next",l)}function a(l){hu(n,i,s,o,a,"throw",l)}o(void 0)})}}var vs=M(),kg=pe(),_s=K(),fu=_s.style,du=_s.clear,jg=_s.figures,bu=I(),$g=bu.erase,pu=bu.cursor,me=uu(),gu=me.DatePart,Lg=me.Meridiem,Bg=me.Day,Fg=me.Hours,Ng=me.Milliseconds,Ug=me.Minutes,Hg=me.Month,Wg=me.Seconds,Gg=me.Year,Yg=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,mu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new Bg(t),3:t=>new Hg(t),4:t=>new Gg(t),5:t=>new Lg(t),6:t=>new Fg(t),7:t=>new Ug(t),8:t=>new Wg(t),9:t=>new Ng(t)},Vg={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ws=class extends kg{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Vg,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=du("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Yg.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in mu?mu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof gu)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
23
- `),this.close()}validate(){var e=this;return cu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return cu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
24
- `),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof gu)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(pu.hide):this.out.write(du(this.outputText,this.out.columns)),super.render(),this.outputText=[fu.symbol(this.done,this.aborted),vs.bold(this.msg),fu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?vs.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
22
+ `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Ll.hide):this.out.write(_g(this.outputText,this.out.columns)),super.render(),this.outputText=[$l.symbol(this.done,this.aborted),Mr.bold(this.msg),$l.delimiter(this.done),this.value?this.inactive:Mr.cyan().underline(this.inactive),Mr.gray("/"),this.value?Mr.cyan().underline(this.active):this.active].join(" "),this.out.write(xg.line+Ll.to(0)+this.outputText))}};Nl.exports=ls});var ne=h((Hy,Hl)=>{"use strict";var ht=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof ht)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof ht)}toString(){return String(this.date)}};Hl.exports=ht});var Gl=h((Wy,Wl)=>{"use strict";var Sg=ne(),us=class extends Sg{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Wl.exports=us});var Vl=h((Gy,Yl)=>{"use strict";var Eg=ne(),Tg=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),hs=class extends Eg{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Tg(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Yl.exports=hs});var Kl=h((Yy,Jl)=>{"use strict";var Og=ne(),cs=class extends Og{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Jl.exports=cs});var Zl=h((Vy,zl)=>{"use strict";var Rg=ne(),fs=class extends Rg{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};zl.exports=fs});var Ql=h((Jy,Xl)=>{"use strict";var Cg=ne(),ds=class extends Cg{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Xl.exports=ds});var tu=h((Ky,eu)=>{"use strict";var Dg=ne(),ps=class extends Dg{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};eu.exports=ps});var iu=h((zy,ru)=>{"use strict";var Mg=ne(),gs=class extends Mg{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};ru.exports=gs});var nu=h((Zy,su)=>{"use strict";var Ag=ne(),ms=class extends Ag{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};su.exports=ms});var au=h((Xy,ou)=>{"use strict";ou.exports={DatePart:ne(),Meridiem:Gl(),Day:Vl(),Hours:Kl(),Milliseconds:Zl(),Minutes:Ql(),Month:tu(),Seconds:iu(),Year:nu()}});var bu=h((Qy,mu)=>{"use strict";function lu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function uu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){lu(n,i,s,o,a,"next",l)}function a(l){lu(n,i,s,o,a,"throw",l)}o(void 0)})}}var bs=A(),qg=pe(),vs=K(),hu=vs.style,cu=vs.clear,Ig=vs.figures,gu=I(),Pg=gu.erase,fu=gu.cursor,me=au(),du=me.DatePart,kg=me.Meridiem,jg=me.Day,$g=me.Hours,Lg=me.Milliseconds,Bg=me.Minutes,Fg=me.Month,Ng=me.Seconds,Ug=me.Year,Hg=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,pu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new jg(t),3:t=>new Fg(t),4:t=>new Ug(t),5:t=>new kg(t),6:t=>new $g(t),7:t=>new Bg(t),8:t=>new Ng(t),9:t=>new Lg(t)},Wg={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ys=class extends qg{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Wg,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=cu("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Hg.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in pu?pu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof du)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
23
+ `),this.close()}validate(){var e=this;return uu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return uu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
24
+ `),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof du)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(fu.hide):this.out.write(cu(this.outputText,this.out.columns)),super.render(),this.outputText=[hu.symbol(this.done,this.aborted),bs.bold(this.msg),hu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?bs.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
25
25
  `).reduce((e,r,i)=>e+`
26
- ${i?" ":jg.pointerSmall} ${vs.red().italic(r)}`,"")),this.out.write($g.line+pu.to(0)+this.outputText))}};yu.exports=ws});var Ou=h((iv,Tu)=>{"use strict";function wu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function _u(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){wu(n,i,s,o,a,"next",l)}function a(l){wu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Mr=M(),Jg=pe(),Eu=I(),qr=Eu.cursor,Kg=Eu.erase,Ir=K(),xs=Ir.style,zg=Ir.figures,xu=Ir.clear,Zg=Ir.lines,Qg=/[0-9]/,Ss=t=>t!==void 0,Su=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Es=class extends Jg{constructor(e={}){super(e),this.transform=xs.render(e.style),this.msg=e.message,this.initial=Ss(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Ss(e.min)?e.min:-1/0,this.max=Ss(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Mr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Su(e,this.round)}`),this._value=Su(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||Qg.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
27
- `),this.close()}validate(){var e=this;return _u(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return _u(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
28
- `),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(qr.down(Zg(this.outputError,this.out.columns)-1)+xu(this.outputError,this.out.columns)),this.out.write(xu(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[xs.symbol(this.done,this.aborted),Mr.bold(this.msg),xs.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Mr[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
26
+ ${i?" ":Ig.pointerSmall} ${bs.red().italic(r)}`,"")),this.out.write(Pg.line+fu.to(0)+this.outputText))}};mu.exports=ys});var Eu=h((ev,Su)=>{"use strict";function yu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function vu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){yu(n,i,s,o,a,"next",l)}function a(l){yu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Ar=A(),Gg=pe(),xu=I(),qr=xu.cursor,Yg=xu.erase,Ir=K(),ws=Ir.style,Vg=Ir.figures,wu=Ir.clear,Jg=Ir.lines,Kg=/[0-9]/,_s=t=>t!==void 0,_u=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},xs=class extends Gg{constructor(e={}){super(e),this.transform=ws.render(e.style),this.msg=e.message,this.initial=_s(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=_s(e.min)?e.min:-1/0,this.max=_s(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Ar.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${_u(e,this.round)}`),this._value=_u(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||Kg.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
27
+ `),this.close()}validate(){var e=this;return vu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return vu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
28
+ `),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(qr.down(Jg(this.outputError,this.out.columns)-1)+wu(this.outputError,this.out.columns)),this.out.write(wu(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ws.symbol(this.done,this.aborted),Ar.bold(this.msg),ws.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Ar[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
29
29
  `).reduce((e,r,i)=>e+`
30
- ${i?" ":zg.pointerSmall} ${Mr.red().italic(r)}`,"")),this.out.write(Kg.line+qr.to(0)+this.outputText+qr.save+this.outputError+qr.restore))}};Tu.exports=Es});var Os=h((sv,Du)=>{"use strict";var oe=M(),Xg=I(),em=Xg.cursor,tm=pe(),Ft=K(),Cu=Ft.clear,De=Ft.figures,Ru=Ft.style,rm=Ft.wrap,im=Ft.entriesToDisplay,Ts=class extends tm{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Cu("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
30
+ ${i?" ":Vg.pointerSmall} ${Ar.red().italic(r)}`,"")),this.out.write(Yg.line+qr.to(0)+this.outputText+qr.save+this.outputError+qr.restore))}};Su.exports=xs});var Es=h((tv,Ru)=>{"use strict";var oe=A(),zg=I(),Zg=zg.cursor,Xg=pe(),Nt=K(),Tu=Nt.clear,De=Nt.figures,Ou=Nt.style,Qg=Nt.wrap,em=Nt.entriesToDisplay,Ss=class extends Xg{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Tu("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
31
31
  `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
32
32
  `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
33
33
  Instructions:
@@ -35,91 +35,87 @@ Instructions:
35
35
  ${De.arrowLeft}/${De.arrowRight}/[space]: Toggle selection
36
36
  `+(this.maxChoices===void 0?` a: Toggle all
37
37
  `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?oe.green(De.radioOn):De.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?oe.gray().underline(r.title):oe.strikethrough().gray(r.title):(o=e===i?oe.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
38
- `+rm(r.description,{margin:n.length,width:this.out.columns})))),n+o+oe.gray(a||"")}paginateOptions(e){if(e.length===0)return oe.red("No matches for this query.");let r=im(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,n,o=[];for(let a=i;a<s;a++)a===i&&i>0?n=De.arrowUp:a===s-1&&s<e.length?n=De.arrowDown:n=" ",o.push(this.renderOption(this.cursor,e[a],a,n));return`
38
+ `+Qg(r.description,{margin:n.length,width:this.out.columns})))),n+o+oe.gray(a||"")}paginateOptions(e){if(e.length===0)return oe.red("No matches for this query.");let r=em(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,n,o=[];for(let a=i;a<s;a++)a===i&&i>0?n=De.arrowUp:a===s-1&&s<e.length?n=De.arrowDown:n=" ",o.push(this.renderOption(this.cursor,e[a],a,n));return`
39
39
  `+o.join(`
40
- `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[oe.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(oe.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(em.hide),super.render();let e=[Ru.symbol(this.done,this.aborted),oe.bold(this.msg),Ru.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=oe.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Cu(e,this.out.columns)}};Du.exports=Ts});var ju=h((nv,ku)=>{"use strict";function Au(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function sm(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Au(n,i,s,o,a,"next",l)}function a(l){Au(n,i,s,o,a,"throw",l)}o(void 0)})}}var Nt=M(),nm=pe(),Pu=I(),om=Pu.erase,Mu=Pu.cursor,Ut=K(),Cs=Ut.style,qu=Ut.clear,Rs=Ut.figures,am=Ut.wrap,lm=Ut.entriesToDisplay,Iu=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),um=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),hm=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Ds=class extends nm{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:hm(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=Cs.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=qu("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Iu(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return sm(function*(){let i=r.completing=r.suggest(r.input,r.choices),s=yield i;if(r.completing!==i)return;r.suggestions=s.map((o,a,l)=>({title:um(l,a),value:Iu(l,a),description:o.description})),r.completing=!1;let n=Math.max(s.length-1,0);r.moveSelect(Math.min(n,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
40
+ `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[oe.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(oe.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Zg.hide),super.render();let e=[Ou.symbol(this.done,this.aborted),oe.bold(this.msg),Ou.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=oe.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Tu(e,this.out.columns)}};Ru.exports=Ss});var Pu=h((rv,Iu)=>{"use strict";function Cu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function tm(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Cu(n,i,s,o,a,"next",l)}function a(l){Cu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Ut=A(),rm=pe(),qu=I(),im=qu.erase,Du=qu.cursor,Ht=K(),Ts=Ht.style,Mu=Ht.clear,Os=Ht.figures,sm=Ht.wrap,nm=Ht.entriesToDisplay,Au=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),om=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),am=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Rs=class extends rm{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:am(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=Ts.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Mu("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Au(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return tm(function*(){let i=r.completing=r.suggest(r.input,r.choices),s=yield i;if(r.completing!==i)return;r.suggestions=s.map((o,a,l)=>({title:om(l,a),value:Au(l,a),description:o.description})),r.completing=!1;let n=Math.max(s.length-1,0);r.moveSelect(Math.min(n,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
41
41
  `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
42
42
  `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
43
- `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?Rs.arrowUp:s?Rs.arrowDown:" ",a=r?Nt.cyan().underline(e.title):e.title;return o=(r?Nt.cyan(Rs.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
44
- `+am(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Nt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Mu.hide):this.out.write(qu(this.outputText,this.out.columns)),super.render();let e=lm(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[Cs.symbol(this.done,this.aborted,this.exited),Nt.bold(this.msg),Cs.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(r,i).map((n,o)=>this.renderOption(n,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length)).join(`
43
+ `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?Os.arrowUp:s?Os.arrowDown:" ",a=r?Ut.cyan().underline(e.title):e.title;return o=(r?Ut.cyan(Os.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
44
+ `+sm(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Ut.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Du.hide):this.out.write(Mu(this.outputText,this.out.columns)),super.render();let e=nm(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[Ts.symbol(this.done,this.aborted,this.exited),Ut.bold(this.msg),Ts.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(r,i).map((n,o)=>this.renderOption(n,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length)).join(`
45
45
  `);this.outputText+=`
46
- `+(s||Nt.gray(this.fallback.title))}this.out.write(om.line+Mu.to(0)+this.outputText)}};ku.exports=Ds});var Fu=h((ov,Bu)=>{"use strict";var be=M(),cm=I(),fm=cm.cursor,dm=Os(),Ms=K(),$u=Ms.clear,Lu=Ms.style,ht=Ms.figures,As=class extends dm{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=$u("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
46
+ `+(s||Ut.gray(this.fallback.title))}this.out.write(im.line+Du.to(0)+this.outputText)}};Iu.exports=Rs});var Lu=h((iv,$u)=>{"use strict";var be=A(),lm=I(),um=lm.cursor,hm=Es(),Ds=K(),ku=Ds.clear,ju=Ds.style,ct=Ds.figures,Cs=class extends hm{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=ku("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
47
47
  Instructions:
48
- ${ht.arrowUp}/${ht.arrowDown}: Highlight option
49
- ${ht.arrowLeft}/${ht.arrowRight}/[space]: Toggle selection
48
+ ${ct.arrowUp}/${ct.arrowDown}: Highlight option
49
+ ${ct.arrowLeft}/${ct.arrowRight}/[space]: Toggle selection
50
50
  [a,b,c]/delete: Filter choices
51
51
  enter/return: Complete answer
52
52
  `:""}renderCurrentInput(){return`
53
53
  Filtered results for: ${this.inputValue?this.inputValue:be.gray("Enter something to filter")}
54
- `}renderOption(e,r,i){let s;return r.disabled?s=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):s=e===i?be.cyan().underline(r.title):r.title,(r.selected?be.green(ht.radioOn):ht.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(fm.hide),super.render();let e=[Lu.symbol(this.done,this.aborted),be.bold(this.msg),Lu.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=$u(e,this.out.columns)}};Bu.exports=As});var Vu=h((av,Yu)=>{"use strict";var Nu=M(),pm=pe(),Wu=K(),Uu=Wu.style,gm=Wu.clear,Gu=I(),mm=Gu.erase,Hu=Gu.cursor,qs=class extends pm{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
54
+ `}renderOption(e,r,i){let s;return r.disabled?s=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):s=e===i?be.cyan().underline(r.title):r.title,(r.selected?be.green(ct.radioOn):ct.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(um.hide),super.render();let e=[ju.symbol(this.done,this.aborted),be.bold(this.msg),ju.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=ku(e,this.out.columns)}};$u.exports=Cs});var Gu=h((sv,Wu)=>{"use strict";var Bu=A(),cm=pe(),Uu=K(),Fu=Uu.style,fm=Uu.clear,Hu=I(),dm=Hu.erase,Nu=Hu.cursor,Ms=class extends cm{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
55
55
  `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
56
- `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Hu.hide):this.out.write(gm(this.outputText,this.out.columns)),super.render(),this.outputText=[Uu.symbol(this.done,this.aborted),Nu.bold(this.msg),Uu.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Nu.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(mm.line+Hu.to(0)+this.outputText))}};Yu.exports=qs});var Ku=h((lv,Ju)=>{"use strict";Ju.exports={TextPrompt:Pl(),SelectPrompt:Ll(),TogglePrompt:Wl(),DatePrompt:vu(),NumberPrompt:Ou(),MultiselectPrompt:Os(),AutocompletePrompt:ju(),AutocompleteMultiselectPrompt:Fu(),ConfirmPrompt:Vu()}});var Zu=h(zu=>{"use strict";var N=zu,bm=Ku(),Pr=t=>t;function ae(t,e,r={}){return new Promise((i,s)=>{let n=new bm[t](e),o=r.onAbort||Pr,a=r.onSubmit||Pr,l=r.onExit||Pr;n.on("state",e.onState||Pr),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}N.text=t=>ae("TextPrompt",t);N.password=t=>(t.style="password",N.text(t));N.invisible=t=>(t.style="invisible",N.text(t));N.number=t=>ae("NumberPrompt",t);N.date=t=>ae("DatePrompt",t);N.confirm=t=>ae("ConfirmPrompt",t);N.list=t=>{let e=t.separator||",";return ae("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};N.toggle=t=>ae("TogglePrompt",t);N.select=t=>ae("SelectPrompt",t);N.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};N.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var ym=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));N.autocomplete=t=>(t.suggest=t.suggest||ym,t.choices=[].concat(t.choices||[]),ae("AutocompletePrompt",t))});var nh=h((hv,sh)=>{"use strict";function Qu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Xu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qu(Object(r),!0).forEach(function(i){vm(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function vm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wm(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_m(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function _m(t,e){if(!!t){if(typeof t=="string")return eh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eh(t,e)}}function eh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function th(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function rh(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){th(n,i,s,o,a,"next",l)}function a(l){th(n,i,s,o,a,"throw",l)}o(void 0)})}}var Is=Zu(),xm=["suggest","format","onState","validate","onRender","type"],ih=()=>{};function Ae(){return Ps.apply(this,arguments)}function Ps(){return Ps=rh(function*(t=[],{onSubmit:e=ih,onCancel:r=ih}={}){let i={},s=Ae._override||{};t=[].concat(t);let n,o,a,l,u,p,f=function(){var R=rh(function*(w,P,pt=!1){if(!(!pt&&w.validate&&w.validate(P)!==!0))return w.format?yield w.format(P,i):P});return function(P,pt){return R.apply(this,arguments)}}();var d=wm(t),g;try{for(d.s();!(g=d.n()).done;){o=g.value;var _=o;if(l=_.name,u=_.type,typeof u=="function"&&(u=yield u(n,Xu({},i),o),o.type=u),!!u){for(let R in o){if(xm.includes(R))continue;let w=o[R];o[R]=typeof w=="function"?yield w(n,Xu({},i),p):w}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");var b=o;if(l=b.name,u=b.type,Is[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=yield f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Ae._injected?Sm(Ae._injected,o.initial):yield Is[u](o),i[l]=n=yield f(o,n,!0),a=yield e(o,n,i)}catch{a=!(yield r(o,i))}if(a)return i}}}catch(R){d.e(R)}finally{d.f()}return i}),Ps.apply(this,arguments)}function Sm(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function Em(t){Ae._injected=(Ae._injected||[]).concat(t)}function Tm(t){Ae._override=Object.assign({},t)}sh.exports=Object.assign(Ae,{prompt:Ae,prompts:Is,inject:Em,override:Tm})});var ah=h((cv,oh)=>{"use strict";oh.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var kr=h((fv,lh)=>{"use strict";lh.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var ch=h((dv,hh)=>{"use strict";var Om=kr(),{erase:uh,cursor:Cm}=I(),Rm=t=>[...Om(t)].length;hh.exports=function(t,e){if(!e)return uh.line+Cm.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(Rm(s)-1,0)/e);return uh.lines(r)}});var ks=h((pv,fh)=>{"use strict";var Ht={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Dm={arrowUp:Ht.arrowUp,arrowDown:Ht.arrowDown,arrowLeft:Ht.arrowLeft,arrowRight:Ht.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Am=process.platform==="win32"?Dm:Ht;fh.exports=Am});var ph=h((gv,dh)=>{"use strict";var ct=M(),We=ks(),js=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Mm=t=>js[t]||js.default,Wt=Object.freeze({aborted:ct.red(We.cross),done:ct.green(We.tick),exited:ct.yellow(We.cross),default:ct.cyan("?")}),qm=(t,e,r)=>e?Wt.aborted:r?Wt.exited:t?Wt.done:Wt.default,Im=t=>ct.gray(t?We.ellipsis:We.pointerSmall),Pm=(t,e)=>ct.gray(t?e?We.pointerSmall:"+":We.line);dh.exports={styles:js,render:Mm,symbols:Wt,symbol:qm,delimiter:Im,item:Pm}});var mh=h((mv,gh)=>{"use strict";var km=kr();gh.exports=function(t,e){let r=String(km(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var yh=h((bv,bh)=>{"use strict";bh.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
56
+ `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Nu.hide):this.out.write(fm(this.outputText,this.out.columns)),super.render(),this.outputText=[Fu.symbol(this.done,this.aborted),Bu.bold(this.msg),Fu.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Bu.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(dm.line+Nu.to(0)+this.outputText))}};Wu.exports=Ms});var Vu=h((nv,Yu)=>{"use strict";Yu.exports={TextPrompt:ql(),SelectPrompt:jl(),TogglePrompt:Ul(),DatePrompt:bu(),NumberPrompt:Eu(),MultiselectPrompt:Es(),AutocompletePrompt:Pu(),AutocompleteMultiselectPrompt:Lu(),ConfirmPrompt:Gu()}});var Ku=h(Ju=>{"use strict";var F=Ju,pm=Vu(),Pr=t=>t;function ae(t,e,r={}){return new Promise((i,s)=>{let n=new pm[t](e),o=r.onAbort||Pr,a=r.onSubmit||Pr,l=r.onExit||Pr;n.on("state",e.onState||Pr),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}F.text=t=>ae("TextPrompt",t);F.password=t=>(t.style="password",F.text(t));F.invisible=t=>(t.style="invisible",F.text(t));F.number=t=>ae("NumberPrompt",t);F.date=t=>ae("DatePrompt",t);F.confirm=t=>ae("ConfirmPrompt",t);F.list=t=>{let e=t.separator||",";return ae("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};F.toggle=t=>ae("TogglePrompt",t);F.select=t=>ae("SelectPrompt",t);F.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};F.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var gm=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));F.autocomplete=t=>(t.suggest=t.suggest||gm,t.choices=[].concat(t.choices||[]),ae("AutocompletePrompt",t))});var ih=h((av,rh)=>{"use strict";function zu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Zu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zu(Object(r),!0).forEach(function(i){mm(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zu(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function mm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bm(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ym(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function ym(t,e){if(!!t){if(typeof t=="string")return Xu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xu(t,e)}}function Xu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Qu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function eh(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Qu(n,i,s,o,a,"next",l)}function a(l){Qu(n,i,s,o,a,"throw",l)}o(void 0)})}}var As=Ku(),vm=["suggest","format","onState","validate","onRender","type"],th=()=>{};function Me(){return qs.apply(this,arguments)}function qs(){return qs=eh(function*(t=[],{onSubmit:e=th,onCancel:r=th}={}){let i={},s=Me._override||{};t=[].concat(t);let n,o,a,l,u,p,f=function(){var _=eh(function*(y,Z,gt=!1){if(!(!gt&&y.validate&&y.validate(Z)!==!0))return y.format?yield y.format(Z,i):Z});return function(Z,gt){return _.apply(this,arguments)}}();var d=bm(t),m;try{for(d.s();!(m=d.n()).done;){o=m.value;var S=o;if(l=S.name,u=S.type,typeof u=="function"&&(u=yield u(n,Zu({},i),o),o.type=u),!!u){for(let _ in o){if(vm.includes(_))continue;let y=o[_];o[_]=typeof y=="function"?yield y(n,Zu({},i),p):y}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");var b=o;if(l=b.name,u=b.type,As[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=yield f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Me._injected?wm(Me._injected,o.initial):yield As[u](o),i[l]=n=yield f(o,n,!0),a=yield e(o,n,i)}catch{a=!(yield r(o,i))}if(a)return i}}}catch(_){d.e(_)}finally{d.f()}return i}),qs.apply(this,arguments)}function wm(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function _m(t){Me._injected=(Me._injected||[]).concat(t)}function xm(t){Me._override=Object.assign({},t)}rh.exports=Object.assign(Me,{prompt:Me,prompts:As,inject:_m,override:xm})});var nh=h((lv,sh)=>{"use strict";sh.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var kr=h((uv,oh)=>{"use strict";oh.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var uh=h((hv,lh)=>{"use strict";var Sm=kr(),{erase:ah,cursor:Em}=I(),Tm=t=>[...Sm(t)].length;lh.exports=function(t,e){if(!e)return ah.line+Em.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(Tm(s)-1,0)/e);return ah.lines(r)}});var Is=h((cv,hh)=>{"use strict";var Wt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Om={arrowUp:Wt.arrowUp,arrowDown:Wt.arrowDown,arrowLeft:Wt.arrowLeft,arrowRight:Wt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Rm=process.platform==="win32"?Om:Wt;hh.exports=Rm});var fh=h((fv,ch)=>{"use strict";var ft=A(),We=Is(),Ps=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Cm=t=>Ps[t]||Ps.default,Gt=Object.freeze({aborted:ft.red(We.cross),done:ft.green(We.tick),exited:ft.yellow(We.cross),default:ft.cyan("?")}),Dm=(t,e,r)=>e?Gt.aborted:r?Gt.exited:t?Gt.done:Gt.default,Mm=t=>ft.gray(t?We.ellipsis:We.pointerSmall),Am=(t,e)=>ft.gray(t?e?We.pointerSmall:"+":We.line);ch.exports={styles:Ps,render:Cm,symbols:Gt,symbol:Dm,delimiter:Mm,item:Am}});var ph=h((dv,dh)=>{"use strict";var qm=kr();dh.exports=function(t,e){let r=String(qm(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var mh=h((pv,gh)=>{"use strict";gh.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
58
58
  `)).join(`
59
- `)}});var wh=h((yv,vh)=>{"use strict";vh.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var z=h((vv,_h)=>{"use strict";_h.exports={action:ah(),clear:ch(),style:ph(),strip:kr(),figures:ks(),lines:mh(),wrap:yh(),entriesToDisplay:wh()}});var ye=h((wv,Sh)=>{"use strict";var xh=require("readline"),{action:jm}=z(),$m=require("events"),{beep:Lm,cursor:Bm}=I(),Fm=M(),$s=class extends $m{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=xh.createInterface({input:this.in,escapeCodeTimeout:50});xh.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=jm(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(Bm.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Lm)}render(){this.onRender(Fm),this.firstRender&&(this.firstRender=!1)}};Sh.exports=$s});var Th=h((_v,Eh)=>{var jr=M(),Nm=ye(),{erase:Um,cursor:Gt}=I(),{style:Ls,clear:Bs,lines:Hm,figures:Wm}=z(),Fs=class extends Nm{constructor(e={}){super(e),this.transform=Ls.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=Bs("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=jr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
59
+ `)}});var yh=h((gv,bh)=>{"use strict";bh.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var z=h((mv,vh)=>{"use strict";vh.exports={action:nh(),clear:uh(),style:fh(),strip:kr(),figures:Is(),lines:ph(),wrap:mh(),entriesToDisplay:yh()}});var ye=h((bv,_h)=>{"use strict";var wh=require("readline"),{action:Im}=z(),Pm=require("events"),{beep:km,cursor:jm}=I(),$m=A(),ks=class extends Pm{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=wh.createInterface({input:this.in,escapeCodeTimeout:50});wh.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=Im(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(jm.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(km)}render(){this.onRender($m),this.firstRender&&(this.firstRender=!1)}};_h.exports=ks});var Sh=h((yv,xh)=>{var jr=A(),Lm=ye(),{erase:Bm,cursor:Yt}=I(),{style:js,clear:$s,lines:Fm,figures:Nm}=z(),Ls=class extends Lm{constructor(e={}){super(e),this.transform=js.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=$s("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=jr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
60
60
  `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
61
- `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Gt.down(Hm(this.outputError,this.out.columns)-1)+Bs(this.outputError,this.out.columns)),this.out.write(Bs(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Ls.symbol(this.done,this.aborted),jr.bold(this.msg),Ls.delimiter(this.done),this.red?jr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
61
+ `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Yt.down(Fm(this.outputError,this.out.columns)-1)+$s(this.outputError,this.out.columns)),this.out.write($s(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[js.symbol(this.done,this.aborted),jr.bold(this.msg),js.delimiter(this.done),this.red?jr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
62
62
  `).reduce((e,r,i)=>e+`
63
- ${i?" ":Wm.pointerSmall} ${jr.red().italic(r)}`,"")),this.out.write(Um.line+Gt.to(0)+this.outputText+Gt.save+this.outputError+Gt.restore+Gt.move(this.cursorOffset,0)))}};Eh.exports=Fs});var Dh=h((xv,Rh)=>{"use strict";var ve=M(),Gm=ye(),{style:Oh,clear:Ch,figures:$r,wrap:Ym,entriesToDisplay:Vm}=z(),{cursor:Jm}=I(),Ns=class extends Gm{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Ch("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
63
+ ${i?" ":Nm.pointerSmall} ${jr.red().italic(r)}`,"")),this.out.write(Bm.line+Yt.to(0)+this.outputText+Yt.save+this.outputError+Yt.restore+Yt.move(this.cursorOffset,0)))}};xh.exports=Ls});var Rh=h((vv,Oh)=>{"use strict";var ve=A(),Um=ye(),{style:Eh,clear:Th,figures:$r,wrap:Hm,entriesToDisplay:Wm}=z(),{cursor:Gm}=I(),Bs=class extends Um{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Th("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
64
64
  `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
65
- `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Jm.hide):this.out.write(Ch(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Vm(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Oh.symbol(this.done,this.aborted),ve.bold(this.msg),Oh.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ve.yellow(this.warn):ve.gray(this.hint)].join(" "),!this.done){this.outputText+=`
65
+ `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Gm.hide):this.out.write(Th(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Wm(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Eh.symbol(this.done,this.aborted),ve.bold(this.msg),Eh.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ve.yellow(this.warn):ve.gray(this.hint)].join(" "),!this.done){this.outputText+=`
66
66
  `;for(let i=e;i<r;i++){let s,n,o="",a=this.choices[i];i===e&&e>0?n=$r.arrowUp:i===r-1&&r<this.choices.length?n=$r.arrowDown:n=" ",a.disabled?(s=this.cursor===i?ve.gray().underline(a.title):ve.strikethrough().gray(a.title),n=(this.cursor===i?ve.bold().gray($r.pointer)+" ":" ")+n):(s=this.cursor===i?ve.cyan().underline(a.title):a.title,n=(this.cursor===i?ve.cyan($r.pointer)+" ":" ")+n,a.description&&this.cursor===i&&(o=` - ${a.description}`,(n.length+s.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o=`
67
- `+Ym(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${ve.gray(o)}
68
- `}}this.out.write(this.outputText)}};Rh.exports=Ns});var Ih=h((Sv,qh)=>{var Lr=M(),Km=ye(),{style:Ah,clear:zm}=z(),{cursor:Mh,erase:Zm}=I(),Us=class extends Km{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
67
+ `+Hm(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${ve.gray(o)}
68
+ `}}this.out.write(this.outputText)}};Oh.exports=Bs});var Ah=h((wv,Mh)=>{var Lr=A(),Ym=ye(),{style:Ch,clear:Vm}=z(),{cursor:Dh,erase:Jm}=I(),Fs=class extends Ym{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
69
69
  `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
70
- `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Mh.hide):this.out.write(zm(this.outputText,this.out.columns)),super.render(),this.outputText=[Ah.symbol(this.done,this.aborted),Lr.bold(this.msg),Ah.delimiter(this.done),this.value?this.inactive:Lr.cyan().underline(this.inactive),Lr.gray("/"),this.value?Lr.cyan().underline(this.active):this.active].join(" "),this.out.write(Zm.line+Mh.to(0)+this.outputText))}};qh.exports=Us});var le=h((Ev,Ph)=>{"use strict";var ft=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof ft)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof ft)}toString(){return String(this.date)}};Ph.exports=ft});var jh=h((Tv,kh)=>{"use strict";var Qm=le(),Hs=class extends Qm{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};kh.exports=Hs});var Lh=h((Ov,$h)=>{"use strict";var Xm=le(),e0=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),Ws=class extends Xm{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+e0(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};$h.exports=Ws});var Fh=h((Cv,Bh)=>{"use strict";var t0=le(),Gs=class extends t0{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Bh.exports=Gs});var Uh=h((Rv,Nh)=>{"use strict";var r0=le(),Ys=class extends r0{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Nh.exports=Ys});var Wh=h((Dv,Hh)=>{"use strict";var i0=le(),Vs=class extends i0{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Hh.exports=Vs});var Yh=h((Av,Gh)=>{"use strict";var s0=le(),Js=class extends s0{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};Gh.exports=Js});var Jh=h((Mv,Vh)=>{"use strict";var n0=le(),Ks=class extends n0{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Vh.exports=Ks});var zh=h((qv,Kh)=>{"use strict";var o0=le(),zs=class extends o0{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Kh.exports=zs});var Qh=h((Iv,Zh)=>{"use strict";Zh.exports={DatePart:le(),Meridiem:jh(),Day:Lh(),Hours:Fh(),Milliseconds:Uh(),Minutes:Wh(),Month:Yh(),Seconds:Jh(),Year:zh()}});var nc=h((Pv,sc)=>{"use strict";var Zs=M(),a0=ye(),{style:Xh,clear:ec,figures:l0}=z(),{erase:u0,cursor:tc}=I(),{DatePart:rc,Meridiem:h0,Day:c0,Hours:f0,Milliseconds:d0,Minutes:p0,Month:g0,Seconds:m0,Year:b0}=Qh(),y0=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,ic={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new c0(t),3:t=>new g0(t),4:t=>new b0(t),5:t=>new h0(t),6:t=>new f0(t),7:t=>new p0(t),8:t=>new m0(t),9:t=>new d0(t)},v0={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},Qs=class extends a0{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(v0,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=ec("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=y0.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in ic?ic[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof rc)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
70
+ `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Dh.hide):this.out.write(Vm(this.outputText,this.out.columns)),super.render(),this.outputText=[Ch.symbol(this.done,this.aborted),Lr.bold(this.msg),Ch.delimiter(this.done),this.value?this.inactive:Lr.cyan().underline(this.inactive),Lr.gray("/"),this.value?Lr.cyan().underline(this.active):this.active].join(" "),this.out.write(Jm.line+Dh.to(0)+this.outputText))}};Mh.exports=Fs});var le=h((_v,qh)=>{"use strict";var dt=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof dt)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof dt)}toString(){return String(this.date)}};qh.exports=dt});var Ph=h((xv,Ih)=>{"use strict";var Km=le(),Ns=class extends Km{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Ih.exports=Ns});var jh=h((Sv,kh)=>{"use strict";var zm=le(),Zm=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),Us=class extends zm{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Zm(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};kh.exports=Us});var Lh=h((Ev,$h)=>{"use strict";var Xm=le(),Hs=class extends Xm{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};$h.exports=Hs});var Fh=h((Tv,Bh)=>{"use strict";var Qm=le(),Ws=class extends Qm{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Bh.exports=Ws});var Uh=h((Ov,Nh)=>{"use strict";var e0=le(),Gs=class extends e0{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Nh.exports=Gs});var Wh=h((Rv,Hh)=>{"use strict";var t0=le(),Ys=class extends t0{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};Hh.exports=Ys});var Yh=h((Cv,Gh)=>{"use strict";var r0=le(),Vs=class extends r0{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Gh.exports=Vs});var Jh=h((Dv,Vh)=>{"use strict";var i0=le(),Js=class extends i0{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Vh.exports=Js});var zh=h((Mv,Kh)=>{"use strict";Kh.exports={DatePart:le(),Meridiem:Ph(),Day:jh(),Hours:Lh(),Milliseconds:Fh(),Minutes:Uh(),Month:Wh(),Seconds:Yh(),Year:Jh()}});var ic=h((Av,rc)=>{"use strict";var Ks=A(),s0=ye(),{style:Zh,clear:Xh,figures:n0}=z(),{erase:o0,cursor:Qh}=I(),{DatePart:ec,Meridiem:a0,Day:l0,Hours:u0,Milliseconds:h0,Minutes:c0,Month:f0,Seconds:d0,Year:p0}=zh(),g0=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,tc={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new l0(t),3:t=>new f0(t),4:t=>new p0(t),5:t=>new a0(t),6:t=>new u0(t),7:t=>new c0(t),8:t=>new d0(t),9:t=>new h0(t)},m0={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},zs=class extends s0{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(m0,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Xh("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=g0.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in tc?tc[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof ec)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
71
71
  `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
72
- `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof rc)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(tc.hide):this.out.write(ec(this.outputText,this.out.columns)),super.render(),this.outputText=[Xh.symbol(this.done,this.aborted),Zs.bold(this.msg),Xh.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Zs.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
72
+ `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof ec)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Qh.hide):this.out.write(Xh(this.outputText,this.out.columns)),super.render(),this.outputText=[Zh.symbol(this.done,this.aborted),Ks.bold(this.msg),Zh.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Ks.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
73
73
  `).reduce((e,r,i)=>e+`
74
- ${i?" ":l0.pointerSmall} ${Zs.red().italic(r)}`,"")),this.out.write(u0.line+tc.to(0)+this.outputText))}};sc.exports=Qs});var uc=h((kv,lc)=>{var Br=M(),w0=ye(),{cursor:Fr,erase:_0}=I(),{style:Xs,figures:x0,clear:oc,lines:S0}=z(),E0=/[0-9]/,en=t=>t!==void 0,ac=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},tn=class extends w0{constructor(e={}){super(e),this.transform=Xs.render(e.style),this.msg=e.message,this.initial=en(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=en(e.min)?e.min:-1/0,this.max=en(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Br.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${ac(e,this.round)}`),this._value=ac(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||E0.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
74
+ ${i?" ":n0.pointerSmall} ${Ks.red().italic(r)}`,"")),this.out.write(o0.line+Qh.to(0)+this.outputText))}};rc.exports=zs});var ac=h((qv,oc)=>{var Br=A(),b0=ye(),{cursor:Fr,erase:y0}=I(),{style:Zs,figures:v0,clear:sc,lines:w0}=z(),_0=/[0-9]/,Xs=t=>t!==void 0,nc=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Qs=class extends b0{constructor(e={}){super(e),this.transform=Zs.render(e.style),this.msg=e.message,this.initial=Xs(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Xs(e.min)?e.min:-1/0,this.max=Xs(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Br.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${nc(e,this.round)}`),this._value=nc(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||_0.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
75
75
  `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
76
- `),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Fr.down(S0(this.outputError,this.out.columns)-1)+oc(this.outputError,this.out.columns)),this.out.write(oc(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Xs.symbol(this.done,this.aborted),Br.bold(this.msg),Xs.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Br[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
76
+ `),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Fr.down(w0(this.outputError,this.out.columns)-1)+sc(this.outputError,this.out.columns)),this.out.write(sc(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Zs.symbol(this.done,this.aborted),Br.bold(this.msg),Zs.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Br[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
77
77
  `).reduce((e,r,i)=>e+`
78
- ${i?" ":x0.pointerSmall} ${Br.red().italic(r)}`,"")),this.out.write(_0.line+Fr.to(0)+this.outputText+Fr.save+this.outputError+Fr.restore))}};lc.exports=tn});var sn=h((jv,fc)=>{"use strict";var ue=M(),{cursor:T0}=I(),O0=ye(),{clear:hc,figures:Me,style:cc,wrap:C0,entriesToDisplay:R0}=z(),rn=class extends O0{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=hc("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
78
+ ${i?" ":v0.pointerSmall} ${Br.red().italic(r)}`,"")),this.out.write(y0.line+Fr.to(0)+this.outputText+Fr.save+this.outputError+Fr.restore))}};oc.exports=Qs});var tn=h((Iv,hc)=>{"use strict";var ue=A(),{cursor:x0}=I(),S0=ye(),{clear:lc,figures:Ae,style:uc,wrap:E0,entriesToDisplay:T0}=z(),en=class extends S0{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=lc("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
79
79
  `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
80
80
  `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
81
81
  Instructions:
82
- ${Me.arrowUp}/${Me.arrowDown}: Highlight option
83
- ${Me.arrowLeft}/${Me.arrowRight}/[space]: Toggle selection
82
+ ${Ae.arrowUp}/${Ae.arrowDown}: Highlight option
83
+ ${Ae.arrowLeft}/${Ae.arrowRight}/[space]: Toggle selection
84
84
  `+(this.maxChoices===void 0?` a: Toggle all
85
- `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?ue.green(Me.radioOn):Me.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?ue.gray().underline(r.title):ue.strikethrough().gray(r.title):(o=e===i?ue.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
86
- `+C0(r.description,{margin:n.length,width:this.out.columns})))),n+o+ue.gray(a||"")}paginateOptions(e){if(e.length===0)return ue.red("No matches for this query.");let{startIndex:r,endIndex:i}=R0(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let o=r;o<i;o++)o===r&&r>0?s=Me.arrowUp:o===i-1&&i<e.length?s=Me.arrowDown:s=" ",n.push(this.renderOption(this.cursor,e[o],o,s));return`
85
+ `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?ue.green(Ae.radioOn):Ae.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?ue.gray().underline(r.title):ue.strikethrough().gray(r.title):(o=e===i?ue.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
86
+ `+E0(r.description,{margin:n.length,width:this.out.columns})))),n+o+ue.gray(a||"")}paginateOptions(e){if(e.length===0)return ue.red("No matches for this query.");let{startIndex:r,endIndex:i}=T0(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let o=r;o<i;o++)o===r&&r>0?s=Ae.arrowUp:o===i-1&&i<e.length?s=Ae.arrowDown:s=" ",n.push(this.renderOption(this.cursor,e[o],o,s));return`
87
87
  `+n.join(`
88
- `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[ue.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ue.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(T0.hide),super.render();let e=[cc.symbol(this.done,this.aborted),ue.bold(this.msg),cc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=ue.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=hc(e,this.out.columns)}};fc.exports=rn});var bc=h(($v,mc)=>{"use strict";var Yt=M(),D0=ye(),{erase:A0,cursor:dc}=I(),{style:nn,clear:pc,figures:on,wrap:M0,entriesToDisplay:q0}=z(),gc=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),I0=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),P0=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},an=class extends D0{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:P0(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=nn.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=pc("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=gc(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,o,a)=>({title:I0(a,o),value:gc(a,o),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
88
+ `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[ue.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ue.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(x0.hide),super.render();let e=[uc.symbol(this.done,this.aborted),ue.bold(this.msg),uc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=ue.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=lc(e,this.out.columns)}};hc.exports=en});var gc=h((Pv,pc)=>{"use strict";var Vt=A(),O0=ye(),{erase:R0,cursor:cc}=I(),{style:rn,clear:fc,figures:sn,wrap:C0,entriesToDisplay:D0}=z(),dc=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),M0=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),A0=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},nn=class extends O0{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:A0(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=rn.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=fc("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=dc(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,o,a)=>({title:M0(a,o),value:dc(a,o),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
89
89
  `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
90
90
  `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
91
- `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?on.arrowUp:s?on.arrowDown:" ",a=r?Yt.cyan().underline(e.title):e.title;return o=(r?Yt.cyan(on.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
92
- `+M0(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Yt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(dc.hide):this.out.write(pc(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=q0(this.select,this.choices.length,this.limit);if(this.outputText=[nn.symbol(this.done,this.aborted,this.exited),Yt.bold(this.msg),nn.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((s,n)=>this.renderOption(s,this.select===n+e,n===0&&e>0,n+e===r-1&&r<this.choices.length)).join(`
91
+ `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?sn.arrowUp:s?sn.arrowDown:" ",a=r?Vt.cyan().underline(e.title):e.title;return o=(r?Vt.cyan(sn.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
92
+ `+C0(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Vt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(cc.hide):this.out.write(fc(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=D0(this.select,this.choices.length,this.limit);if(this.outputText=[rn.symbol(this.done,this.aborted,this.exited),Vt.bold(this.msg),rn.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((s,n)=>this.renderOption(s,this.select===n+e,n===0&&e>0,n+e===r-1&&r<this.choices.length)).join(`
93
93
  `);this.outputText+=`
94
- `+(i||Yt.gray(this.fallback.title))}this.out.write(A0.line+dc.to(0)+this.outputText)}};mc.exports=an});var _c=h((Lv,wc)=>{"use strict";var we=M(),{cursor:k0}=I(),j0=sn(),{clear:yc,style:vc,figures:dt}=z(),ln=class extends j0{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=yc("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
94
+ `+(i||Vt.gray(this.fallback.title))}this.out.write(R0.line+cc.to(0)+this.outputText)}};pc.exports=nn});var vc=h((kv,yc)=>{"use strict";var we=A(),{cursor:q0}=I(),I0=tn(),{clear:mc,style:bc,figures:pt}=z(),on=class extends I0{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=mc("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
95
95
  Instructions:
96
- ${dt.arrowUp}/${dt.arrowDown}: Highlight option
97
- ${dt.arrowLeft}/${dt.arrowRight}/[space]: Toggle selection
96
+ ${pt.arrowUp}/${pt.arrowDown}: Highlight option
97
+ ${pt.arrowLeft}/${pt.arrowRight}/[space]: Toggle selection
98
98
  [a,b,c]/delete: Filter choices
99
99
  enter/return: Complete answer
100
100
  `:""}renderCurrentInput(){return`
101
101
  Filtered results for: ${this.inputValue?this.inputValue:we.gray("Enter something to filter")}
102
- `}renderOption(e,r,i){let s;return r.disabled?s=e===i?we.gray().underline(r.title):we.strikethrough().gray(r.title):s=e===i?we.cyan().underline(r.title):r.title,(r.selected?we.green(dt.radioOn):dt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[we.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(we.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(k0.hide),super.render();let e=[vc.symbol(this.done,this.aborted),we.bold(this.msg),vc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=we.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=yc(e,this.out.columns)}};wc.exports=ln});var Oc=h((Bv,Tc)=>{var xc=M(),$0=ye(),{style:Sc,clear:L0}=z(),{erase:B0,cursor:Ec}=I(),un=class extends $0{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
102
+ `}renderOption(e,r,i){let s;return r.disabled?s=e===i?we.gray().underline(r.title):we.strikethrough().gray(r.title):s=e===i?we.cyan().underline(r.title):r.title,(r.selected?we.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[we.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(we.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(q0.hide),super.render();let e=[bc.symbol(this.done,this.aborted),we.bold(this.msg),bc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=we.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=mc(e,this.out.columns)}};yc.exports=on});var Ec=h((jv,Sc)=>{var wc=A(),P0=ye(),{style:_c,clear:k0}=z(),{erase:j0,cursor:xc}=I(),an=class extends P0{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
103
103
  `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
104
- `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Ec.hide):this.out.write(L0(this.outputText,this.out.columns)),super.render(),this.outputText=[Sc.symbol(this.done,this.aborted),xc.bold(this.msg),Sc.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:xc.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(B0.line+Ec.to(0)+this.outputText))}};Tc.exports=un});var Rc=h((Fv,Cc)=>{"use strict";Cc.exports={TextPrompt:Th(),SelectPrompt:Dh(),TogglePrompt:Ih(),DatePrompt:nc(),NumberPrompt:uc(),MultiselectPrompt:sn(),AutocompletePrompt:bc(),AutocompleteMultiselectPrompt:_c(),ConfirmPrompt:Oc()}});var Ac=h(Dc=>{"use strict";var U=Dc,F0=Rc(),Nr=t=>t;function he(t,e,r={}){return new Promise((i,s)=>{let n=new F0[t](e),o=r.onAbort||Nr,a=r.onSubmit||Nr,l=r.onExit||Nr;n.on("state",e.onState||Nr),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}U.text=t=>he("TextPrompt",t);U.password=t=>(t.style="password",U.text(t));U.invisible=t=>(t.style="invisible",U.text(t));U.number=t=>he("NumberPrompt",t);U.date=t=>he("DatePrompt",t);U.confirm=t=>he("ConfirmPrompt",t);U.list=t=>{let e=t.separator||",";return he("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};U.toggle=t=>he("TogglePrompt",t);U.select=t=>he("SelectPrompt",t);U.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};U.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var N0=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));U.autocomplete=t=>(t.suggest=t.suggest||N0,t.choices=[].concat(t.choices||[]),he("AutocompletePrompt",t))});var Ic=h((Uv,qc)=>{"use strict";var hn=Ac(),U0=["suggest","format","onState","validate","onRender","type"],Mc=()=>{};async function qe(t=[],{onSubmit:e=Mc,onCancel:r=Mc}={}){let i={},s=qe._override||{};t=[].concat(t);let n,o,a,l,u,p,f=async(d,g,_=!1)=>{if(!(!_&&d.validate&&d.validate(g)!==!0))return d.format?await d.format(g,i):g};for(o of t)if({name:l,type:u}=o,typeof u=="function"&&(u=await u(n,{...i},o),o.type=u),!!u){for(let d in o){if(U0.includes(d))continue;let g=o[d];o[d]=typeof g=="function"?await g(n,{...i},p):g}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:l,type:u}=o,hn[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=await f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=qe._injected?H0(qe._injected,o.initial):await hn[u](o),i[l]=n=await f(o,n,!0),a=await e(o,n,i)}catch{a=!await r(o,i)}if(a)return i}return i}function H0(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function W0(t){qe._injected=(qe._injected||[]).concat(t)}function G0(t){qe._override=Object.assign({},t)}qc.exports=Object.assign(qe,{prompt:qe,prompts:hn,inject:W0,override:G0})});var kc=h((Hv,Pc)=>{function Y0(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}Pc.exports=Y0("8.6.0")?nh():Ic()});var J0={};Hc(J0,{createApp:()=>kt,runCli:()=>V0,runCreateCli:()=>Qi,runCreateInteractiveCli:()=>fn});module.exports=Wc(J0);var Pt=A(require("fs")),Tr=require("path");var Gr=A(require("fs"),1),Yr=require("path");var Wr,bn,yn,vn,wn=!0;typeof process<"u"&&({FORCE_COLOR:Wr,NODE_DISABLE_COLORS:bn,NO_COLOR:yn,TERM:vn}=process.env||{},wn=process.stdout&&process.stdout.isTTY);var x={enabled:!bn&&yn==null&&vn!=="dumb"&&(Wr!=null&&Wr!=="0"||wn),reset:T(0,0),bold:T(1,22),dim:T(2,22),italic:T(3,23),underline:T(4,24),inverse:T(7,27),hidden:T(8,28),strikethrough:T(9,29),black:T(30,39),red:T(31,39),green:T(32,39),yellow:T(33,39),blue:T(34,39),magenta:T(35,39),cyan:T(36,39),white:T(37,39),gray:T(90,39),grey:T(90,39),bgBlack:T(40,49),bgRed:T(41,49),bgGreen:T(42,49),bgYellow:T(43,49),bgBlue:T(44,49),bgMagenta:T(45,49),bgCyan:T(46,49),bgWhite:T(47,49)};function mn(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,~e.indexOf(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Gc(t,e){let r={has:t,keys:e};return r.reset=x.reset.bind(r),r.bold=x.bold.bind(r),r.dim=x.dim.bind(r),r.italic=x.italic.bind(r),r.underline=x.underline.bind(r),r.inverse=x.inverse.bind(r),r.hidden=x.hidden.bind(r),r.strikethrough=x.strikethrough.bind(r),r.black=x.black.bind(r),r.red=x.red.bind(r),r.green=x.green.bind(r),r.yellow=x.yellow.bind(r),r.blue=x.blue.bind(r),r.magenta=x.magenta.bind(r),r.cyan=x.cyan.bind(r),r.white=x.white.bind(r),r.gray=x.gray.bind(r),r.grey=x.grey.bind(r),r.bgBlack=x.bgBlack.bind(r),r.bgRed=x.bgRed.bind(r),r.bgGreen=x.bgGreen.bind(r),r.bgYellow=x.bgYellow.bind(r),r.bgBlue=x.bgBlue.bind(r),r.bgMagenta=x.bgMagenta.bind(r),r.bgCyan=x.bgCyan.bind(r),r.bgWhite=x.bgWhite.bind(r),r}function T(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:x.enabled?mn(this.keys,i+""):i+""):i===void 0?Gc([t],[r]):x.enabled?mn([r],i+""):i+""}}var E=x;var Sn=A(xn(),1);async function En(t){let e=(0,Yr.join)(t,"package.json");return JSON.parse(await Gr.default.promises.readFile(e,"utf-8"))}async function Tn(t,e){let r=(0,Yr.join)(t,"package.json");await Gr.default.promises.writeFile(r,JSON.stringify(e,null,2)+`
105
- `)}function On(t){t={...t};let e={name:t.name,version:t.version,description:t.description,scripts:t.scripts,dependencies:t.dependencies,devDependencies:t.devDependencies};Object.keys(e).forEach(i=>{delete t[i]}),delete t.__qwik__;let r=Object.keys(t).sort();for(let i of r)e[i]=t[i];return e}function Cn(t){return t.toLocaleLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Rn(t){return t.toLocaleLowerCase().replace(/ /g,"-")}function _e(){var t;return((t=(0,Sn.default)())==null?void 0:t.name)||"npm"}function Ge(t){console.error(`
106
- \u274C ${E.red(t)}
107
- `),process.exit(1)}var Jt=A(require("fs"),1),Kt=require("path");var Vr=null;async function Ye(){if(!Vr){let t=[],e=["app","feature","server","static-generator"],r=(0,Kt.join)(__dirname,"starters"),i=await Jt.default.promises.readdir(r);await Promise.all(i.map(async s=>{let n=s.slice(0,s.length-1);if(e.includes(n)){let o=(0,Kt.join)(r,s),a=await Jt.default.promises.readdir(o);await Promise.all(a.map(async l=>{var f,d;let u=(0,Kt.join)(o,l);if((await Jt.default.promises.stat(u)).isDirectory()){let g=await En(u),_={id:l,name:Cn(l),description:g.description??"",type:n,dir:u,pkgJson:g,priority:((f=g==null?void 0:g.__qwik__)==null?void 0:f.priority)??0,viteConfig:(d=g==null?void 0:g.__qwik__)==null?void 0:d.viteConfig};t.push(_)}}))}})),t.sort((s,n)=>s.priority>n.priority?-1:s.priority<n.priority?1:s.id<n.id?-1:1),Vr=t}return Vr}var Dn=require("path");function zt(t,e){console.log(""),console.clear();let r=process.cwd()===t.outDir,i=(0,Dn.relative)(process.cwd(),t.outDir);console.log(r?`\u2B50\uFE0F ${E.bgGreen(" Success! ")}`:`\u2B50\uFE0F ${E.green(`${E.bgGreen(" Success! ")} Project saved in`)} ${E.yellow(i)} ${E.green("directory")}`),console.log(""),console.log(`\u{1F916} ${E.cyan("Next steps:")}`),r||console.log(` cd ${i}`);let s=_e();e||console.log(` ${s} install`),console.log(` ${s} start`),console.log(""),Vc()}function Vc(){console.log(`\u{1F4AC} ${E.cyan("Questions? Start the conversation at:")}`),console.log(" https://qwik.builder.io/chat"),console.log(" https://twitter.com/QwikDev"),console.log("")}var nl=require("path"),Ki=A(require("fs"),1);var at=A(require("fs"),1);var qt=A(require("process"),1);var Zr=A(require("process"),1);var Fn=A(require("process"),1),Nn=A(In(),1),Un=A(Bn(),1),Kc=(0,Nn.default)(()=>{(0,Un.default)(()=>{Fn.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Hn=Kc;var ir=!1,ze={};ze.show=(t=Zr.default.stderr)=>{!t.isTTY||(ir=!1,t.write("\x1B[?25h"))};ze.hide=(t=Zr.default.stderr)=>{!t.isTTY||(Hn(),ir=!0,t.write("\x1B[?25l"))};ze.toggle=(t,e)=>{t!==void 0&&(ir=t),ir?ze.show(e):ze.hide(e)};var Qr=ze;var It=A(Vn(),1);var Z=A(require("process"),1);function yt(){return Z.default.platform!=="win32"?Z.default.env.TERM!=="linux":Boolean(Z.default.env.CI)||Boolean(Z.default.env.WT_SESSION)||Z.default.env.ConEmuTask==="{cmd::Cmder}"||Z.default.env.TERM_PROGRAM==="vscode"||Z.default.env.TERM==="xterm-256color"||Z.default.env.TERM==="alacritty"||Z.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Zc={info:E.blue("\u2139"),success:E.green("\u2714"),warning:E.yellow("\u26A0"),error:E.red("\u2716")},Qc={info:E.blue("i"),success:E.green("\u221A"),warning:E.yellow("\u203C"),error:E.red("\xD7")},Xc=yt()?Zc:Qc,vt=Xc;function Xr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function ei(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Xr(),"")}var da=A(ro(),1);function ri({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var G=A(require("process"),1),ca=A(require("readline"),1),fa=A(ha(),1);var ap=3,fe,Mt,tt,Ce,xr=class{constructor(){j(this,fe,0);j(this,Mt,new fa.BufferListStream);j(this,tt,void 0);j(this,Ce,void 0);c(this,Mt).pipe(G.default.stdout);let e=this;y(this,tt,function(r,i,...s){let{stdin:n}=G.default;if(c(e,fe)>0||n.emit===c(e,tt)){if(r==="keypress")return;r==="data"&&i.includes(ap)&&G.default.emit("SIGINT"),Reflect.apply(c(e,tt),this,[r,i,...s])}else Reflect.apply(G.default.stdin.emit,this,[r,i,...s])})}start(){mt(this,fe)._++,c(this,fe)===1&&this._realStart()}stop(){if(c(this,fe)<=0)throw new Error("`stop` called more times than `start`");mt(this,fe)._--,c(this,fe)===0&&this._realStop()}_realStart(){G.default.platform!=="win32"&&(y(this,Ce,ca.default.createInterface({input:G.default.stdin,output:c(this,Mt)})),c(this,Ce).on("SIGINT",()=>{G.default.listenerCount("SIGINT")===0?G.default.emit("SIGINT"):(c(this,Ce).close(),G.default.kill(G.default.pid,"SIGINT"))}))}_realStop(){G.default.platform!=="win32"&&(c(this,Ce).close(),y(this,Ce,void 0))}};fe=new WeakMap,Mt=new WeakMap,tt=new WeakMap,Ce=new WeakMap;var Sr,Re,rt,Ne,de,$,ee,B,Ue,it,te,re,ie,st,J,Pi=class{constructor(e){j(this,Re,0);j(this,rt,!1);j(this,Ne,0);j(this,de,0);j(this,$,void 0);j(this,ee,void 0);j(this,B,void 0);j(this,Ue,void 0);j(this,it,void 0);j(this,te,void 0);j(this,re,void 0);j(this,ie,void 0);j(this,st,void 0);j(this,J,void 0);pn(this,"color");Sr||(Sr=new xr),typeof e=="string"&&(e={text:e}),y(this,$,{color:"cyan",stream:qt.default.stderr,discardStdin:!0,hideCursor:!0,...e}),this.color=c(this,$).color,this.spinner=c(this,$).spinner,y(this,it,c(this,$).interval),y(this,B,c(this,$).stream),y(this,te,typeof c(this,$).isEnabled=="boolean"?c(this,$).isEnabled:ri({stream:c(this,B)})),y(this,re,typeof c(this,$).isSilent=="boolean"?c(this,$).isSilent:!1),this.text=c(this,$).text,this.prefixText=c(this,$).prefixText,this.indent=c(this,$).indent,qt.default.env.NODE_ENV==="test"&&(this._stream=c(this,B),this._isEnabled=c(this,te),Object.defineProperty(this,"_linesToClear",{get(){return c(this,Re)},set(r){y(this,Re,r)}}),Object.defineProperty(this,"_frameIndex",{get(){return c(this,de)}}),Object.defineProperty(this,"_lineCount",{get(){return c(this,Ne)}}))}get indent(){return c(this,ie)}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");y(this,ie,e),this.updateLineCount()}get interval(){return c(this,it)||c(this,ee).interval||100}get spinner(){return c(this,ee)}set spinner(e){if(y(this,de,0),y(this,it,void 0),typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");y(this,ee,e)}else if(!yt())y(this,ee,It.default.line);else if(e===void 0)y(this,ee,It.default.dots);else if(e!=="default"&&It.default[e])y(this,ee,It.default[e]);else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return c(this,st)}set text(e){y(this,st,e||""),this.updateLineCount()}get prefixText(){return c(this,J)}set prefixText(e){y(this,J,e||""),this.updateLineCount()}get isSpinning(){return c(this,Ue)!==void 0}getFullPrefixText(e=c(this,J),r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=c(this,B).columns||80,r=this.getFullPrefixText(c(this,J),"-");y(this,Ne,0);for(let i of ei(" ".repeat(c(this,ie))+r+"--"+c(this,st)).split(`
108
- `))y(this,Ne,c(this,Ne)+Math.max(1,Math.ceil((0,da.default)(i)/e)))}get isEnabled(){return c(this,te)&&!c(this,re)}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");y(this,te,e)}get isSilent(){return c(this,re)}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");y(this,re,e)}frame(){let{frames:e}=c(this,ee),r=e[c(this,de)];this.color&&(r=E[this.color](r)),y(this,de,++mt(this,de)._%e.length);let i=typeof c(this,J)=="string"&&c(this,J)!==""?c(this,J)+" ":"",s=typeof this.text=="string"?" "+this.text:"";return i+r+s}clear(){if(!c(this,te)||!c(this,B).isTTY)return this;c(this,B).cursorTo(0);for(let e=0;e<c(this,Re);e++)e>0&&c(this,B).moveCursor(0,-1),c(this,B).clearLine(1);return(c(this,ie)||this.lastIndent!==c(this,ie))&&c(this,B).cursorTo(c(this,ie)),this.lastIndent=c(this,ie),y(this,Re,0),this}render(){return c(this,re)?this:(this.clear(),c(this,B).write(this.frame()),y(this,Re,c(this,Ne)),this)}start(e){return e&&(this.text=e),c(this,re)?this:c(this,te)?this.isSpinning?this:(c(this,$).hideCursor&&Qr.hide(c(this,B)),c(this,$).discardStdin&&qt.default.stdin.isTTY&&(y(this,rt,!0),Sr.start()),this.render(),y(this,Ue,setInterval(this.render.bind(this),this.interval)),this):(this.text&&c(this,B).write(`- ${this.text}
109
- `),this)}stop(){return c(this,te)?(clearInterval(c(this,Ue)),y(this,Ue,void 0),y(this,de,0),this.clear(),c(this,$).hideCursor&&Qr.show(c(this,B)),c(this,$).discardStdin&&qt.default.stdin.isTTY&&c(this,rt)&&(Sr.stop(),y(this,rt,!1)),this):this}succeed(e){return this.stopAndPersist({symbol:vt.success,text:e})}fail(e){return this.stopAndPersist({symbol:vt.error,text:e})}warn(e){return this.stopAndPersist({symbol:vt.warning,text:e})}info(e){return this.stopAndPersist({symbol:vt.info,text:e})}stopAndPersist(e={}){if(c(this,re))return this;let r=e.prefixText||c(this,J),i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),c(this,B).write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${s}
110
- `),this}};Re=new WeakMap,rt=new WeakMap,Ne=new WeakMap,de=new WeakMap,$=new WeakMap,ee=new WeakMap,B=new WeakMap,Ue=new WeakMap,it=new WeakMap,te=new WeakMap,re=new WeakMap,ie=new WeakMap,st=new WeakMap,J=new WeakMap;function ki(t){return new Pi(t)}var rl=A(require("os"),1),se=A(require("path"),1),il=A(tl(),1);function Gi(t,e){let r,i=new Promise(n=>{try{r=(0,il.default)(t,["install"],{cwd:e,stdio:"ignore"}),r.on("error",()=>{n()}),r.on("close",()=>{n()})}catch{}});return{abort:async()=>{r&&r.kill("SIGINT")},install:i}}function Yi(t){return ki(t).start()}function sl(t,e){let{tmpInstallDir:r}=Pp(e),{install:i,abort:s}=Gi(t,r);return{abort:s,complete:async(o,a)=>{let l=!1;if(o){let u=Yi(`Installing ${t} dependencies...`);try{await i;let p=se.default.join(r,"node_modules"),f=se.default.join(a,"node_modules");await at.default.promises.rename(p,f);try{await at.default.promises.rename(se.default.join(r,"package-lock.json"),se.default.join(a,"package-lock.json"))}catch{}try{await at.default.promises.rename(se.default.join(r,"yarn.lock"),se.default.join(a,"yarn.lock"))}catch{}u.succeed(),l=!0}catch{u.fail()}}else await s();return l}}}function Pp(t){let e="create-qwik-"+Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).toLowerCase(),r=se.default.join(rl.default.tmpdir(),e);try{at.default.mkdirSync(r)}catch(n){console.error(`
111
- \u274C ${E.red(String(n))}
112
- `)}let i=se.default.join(t.dir,"package.json"),s=se.default.join(r,"package.json");return at.default.copyFileSync(i,s),{tmpInstallDir:r}}var Y=A(require("fs"),1),Vi=require("path");async function Ji(t,e,r,i){let s=await Y.default.promises.readdir(r);await Promise.all(s.map(async n=>{let o=n==="gitignore"?".gitignore":n,a=(0,Vi.join)(r,n),l=(0,Vi.join)(i,o),u=await Y.default.promises.stat(a);u.isDirectory()?await Ji(t,e,a,l):u.isFile()&&(o==="package.json"?await kp(t,a,l):o==="README.md"?await $p(t,a,l):o===".gitignore"?await Lp(t,a,l):Y.default.existsSync(l)?t.files.push({path:l,content:await Y.default.promises.readFile(a,"utf-8"),type:"overwrite"}):t.files.push({path:l,content:await Y.default.promises.readFile(a),type:"create"}))}))}async function kp(t,e,r){var o;let i=await Y.default.promises.readFile(e,"utf-8"),s=JSON.parse(i),n=["scripts","dependencies","devDependencies"];try{let a=JSON.parse(await Y.default.promises.readFile(r,"utf-8"));if(n.forEach(l=>{jp(s,a,l)}),(o=a.scripts)!=null&&o.qwik){let l=a.scripts.qwik;delete a.scripts.qwik,a.scripts.qwik=l}t.files.push({path:r,content:JSON.stringify(a,null,2)+`
113
- `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}function jp(t,e,r){if(t[r]){e[r]?Object.assign(e[r],{...t[r]}):e[r]={...t[r]};let i={},s=Object.keys(e[r]).sort();for(let n of s)i[n]=e[r][n];e[r]=i}}async function $p(t,e,r){let i=await Y.default.promises.readFile(e,"utf-8"),s,n="";try{n=await Y.default.promises.readFile(r,"utf-8"),n+=`
104
+ `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(xc.hide):this.out.write(k0(this.outputText,this.out.columns)),super.render(),this.outputText=[_c.symbol(this.done,this.aborted),wc.bold(this.msg),_c.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:wc.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(j0.line+xc.to(0)+this.outputText))}};Sc.exports=an});var Oc=h(($v,Tc)=>{"use strict";Tc.exports={TextPrompt:Sh(),SelectPrompt:Rh(),TogglePrompt:Ah(),DatePrompt:ic(),NumberPrompt:ac(),MultiselectPrompt:tn(),AutocompletePrompt:gc(),AutocompleteMultiselectPrompt:vc(),ConfirmPrompt:Ec()}});var Cc=h(Rc=>{"use strict";var N=Rc,$0=Oc(),Nr=t=>t;function he(t,e,r={}){return new Promise((i,s)=>{let n=new $0[t](e),o=r.onAbort||Nr,a=r.onSubmit||Nr,l=r.onExit||Nr;n.on("state",e.onState||Nr),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}N.text=t=>he("TextPrompt",t);N.password=t=>(t.style="password",N.text(t));N.invisible=t=>(t.style="invisible",N.text(t));N.number=t=>he("NumberPrompt",t);N.date=t=>he("DatePrompt",t);N.confirm=t=>he("ConfirmPrompt",t);N.list=t=>{let e=t.separator||",";return he("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};N.toggle=t=>he("TogglePrompt",t);N.select=t=>he("SelectPrompt",t);N.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};N.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var L0=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));N.autocomplete=t=>(t.suggest=t.suggest||L0,t.choices=[].concat(t.choices||[]),he("AutocompletePrompt",t))});var Ac=h((Bv,Mc)=>{"use strict";var ln=Cc(),B0=["suggest","format","onState","validate","onRender","type"],Dc=()=>{};async function qe(t=[],{onSubmit:e=Dc,onCancel:r=Dc}={}){let i={},s=qe._override||{};t=[].concat(t);let n,o,a,l,u,p,f=async(d,m,S=!1)=>{if(!(!S&&d.validate&&d.validate(m)!==!0))return d.format?await d.format(m,i):m};for(o of t)if({name:l,type:u}=o,typeof u=="function"&&(u=await u(n,{...i},o),o.type=u),!!u){for(let d in o){if(B0.includes(d))continue;let m=o[d];o[d]=typeof m=="function"?await m(n,{...i},p):m}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:l,type:u}=o,ln[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=await f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=qe._injected?F0(qe._injected,o.initial):await ln[u](o),i[l]=n=await f(o,n,!0),a=await e(o,n,i)}catch{a=!await r(o,i)}if(a)return i}return i}function F0(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function N0(t){qe._injected=(qe._injected||[]).concat(t)}function U0(t){qe._override=Object.assign({},t)}Mc.exports=Object.assign(qe,{prompt:qe,prompts:ln,inject:N0,override:U0})});var Ic=h((Fv,qc)=>{function H0(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}qc.exports=H0("8.6.0")?ih():Ac()});var G0={};Nc(G0,{createApp:()=>jt,runCli:()=>W0,runCreateCli:()=>Zi,runCreateInteractiveCli:()=>hn});module.exports=Uc(G0);var kt=M(require("fs")),lt=require("path");var Gr=M(require("fs"),1),Yr=require("path");var Wr,gn,mn,bn,yn=!0;typeof process<"u"&&({FORCE_COLOR:Wr,NODE_DISABLE_COLORS:gn,NO_COLOR:mn,TERM:bn}=process.env||{},yn=process.stdout&&process.stdout.isTTY);var E={enabled:!gn&&mn==null&&bn!=="dumb"&&(Wr!=null&&Wr!=="0"||yn),reset:O(0,0),bold:O(1,22),dim:O(2,22),italic:O(3,23),underline:O(4,24),inverse:O(7,27),hidden:O(8,28),strikethrough:O(9,29),black:O(30,39),red:O(31,39),green:O(32,39),yellow:O(33,39),blue:O(34,39),magenta:O(35,39),cyan:O(36,39),white:O(37,39),gray:O(90,39),grey:O(90,39),bgBlack:O(40,49),bgRed:O(41,49),bgGreen:O(42,49),bgYellow:O(43,49),bgBlue:O(44,49),bgMagenta:O(45,49),bgCyan:O(46,49),bgWhite:O(47,49)};function pn(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,~e.indexOf(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Hc(t,e){let r={has:t,keys:e};return r.reset=E.reset.bind(r),r.bold=E.bold.bind(r),r.dim=E.dim.bind(r),r.italic=E.italic.bind(r),r.underline=E.underline.bind(r),r.inverse=E.inverse.bind(r),r.hidden=E.hidden.bind(r),r.strikethrough=E.strikethrough.bind(r),r.black=E.black.bind(r),r.red=E.red.bind(r),r.green=E.green.bind(r),r.yellow=E.yellow.bind(r),r.blue=E.blue.bind(r),r.magenta=E.magenta.bind(r),r.cyan=E.cyan.bind(r),r.white=E.white.bind(r),r.gray=E.gray.bind(r),r.grey=E.grey.bind(r),r.bgBlack=E.bgBlack.bind(r),r.bgRed=E.bgRed.bind(r),r.bgGreen=E.bgGreen.bind(r),r.bgYellow=E.bgYellow.bind(r),r.bgBlue=E.bgBlue.bind(r),r.bgMagenta=E.bgMagenta.bind(r),r.bgCyan=E.bgCyan.bind(r),r.bgWhite=E.bgWhite.bind(r),r}function O(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:E.enabled?pn(this.keys,i+""):i+""):i===void 0?Hc([t],[r]):E.enabled?pn([r],i+""):i+""}}var x=E;var _n=M(wn(),1);async function xn(t){let e=(0,Yr.join)(t,"package.json");return JSON.parse(await Gr.default.promises.readFile(e,"utf-8"))}async function Sn(t,e){let r=(0,Yr.join)(t,"package.json");await Gr.default.promises.writeFile(r,JSON.stringify(e,null,2)+`
105
+ `)}function En(t){t={...t};let e={name:t.name,version:t.version,description:t.description,scripts:t.scripts,dependencies:t.dependencies,devDependencies:t.devDependencies};Object.keys(e).forEach(i=>{delete t[i]}),delete t.__qwik__;let r=Object.keys(t).sort();for(let i of r)e[i]=t[i];return e}function Tn(t){return t.toLocaleLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function _e(){var t;return((t=(0,_n.default)())==null?void 0:t.name)||"npm"}function Ge(t){console.error(`
106
+ \u274C ${x.red(t)}
107
+ `),process.exit(1)}var Kt=M(require("fs"),1),zt=require("path");var Vr=null;async function Ye(){if(!Vr){let t=[],e=["app","feature","server","static-generator"],r=(0,zt.join)(__dirname,"starters"),i=await Kt.default.promises.readdir(r);await Promise.all(i.map(async s=>{let n=s.slice(0,s.length-1);if(e.includes(n)){let o=(0,zt.join)(r,s),a=await Kt.default.promises.readdir(o);await Promise.all(a.map(async l=>{var f,d;let u=(0,zt.join)(o,l);if((await Kt.default.promises.stat(u)).isDirectory()){let m=await xn(u),S={id:l,name:Tn(l),type:n,dir:u,pkgJson:m,priority:((f=m==null?void 0:m.__qwik__)==null?void 0:f.priority)??0,viteConfig:(d=m==null?void 0:m.__qwik__)==null?void 0:d.viteConfig};t.push(S)}}))}})),t.sort((s,n)=>s.priority>n.priority?-1:s.priority<n.priority?1:s.id<n.id?-1:1),Vr=t}return Vr}var On=require("path");function Zt(t,e){console.log(""),console.clear(),console.log("");let r=process.cwd()===t.outDir,i=(0,On.relative)(process.cwd(),t.outDir);console.log(r?`\u{1F984} ${x.bgMagenta(" Success! ")}`:`\u{1F984} ${x.bgMagenta(" Success! ")} ${x.cyan("Project created in")} ${x.bold(x.magenta(i))} ${x.cyan("directory")}`),console.log(""),console.log(`\u{1F430} ${x.cyan("Next steps:")}`),r||console.log(` cd ${i}`);let s=_e();e||console.log(` ${s} install`),console.log(` ${s} start`),console.log(""),Gc()}function Gc(){console.log(`\u{1F4AC} ${x.cyan("Questions? Start the conversation at:")}`),console.log(" https://qwik.builder.io/chat"),console.log(" https://twitter.com/QwikDev"),console.log("")}var rl=require("path"),Ki=M(require("fs"),1);var at=M(require("fs"),1);var It=M(require("process"),1);var Zr=M(require("process"),1);var $n=M(require("process"),1),Ln=M(Mn(),1),Bn=M(jn(),1),Vc=(0,Ln.default)(()=>{(0,Bn.default)(()=>{$n.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Fn=Vc;var sr=!1,ze={};ze.show=(t=Zr.default.stderr)=>{!t.isTTY||(sr=!1,t.write("\x1B[?25h"))};ze.hide=(t=Zr.default.stderr)=>{!t.isTTY||(Fn(),sr=!0,t.write("\x1B[?25l"))};ze.toggle=(t,e)=>{t!==void 0&&(sr=t),sr?ze.show(e):ze.hide(e)};var Xr=ze;var Pt=M(Wn(),1);var U=M(require("process"),1);function vt(){return U.default.platform!=="win32"?U.default.env.TERM!=="linux":Boolean(U.default.env.CI)||Boolean(U.default.env.WT_SESSION)||Boolean(U.default.env.TERMINUS_SUBLIME)||U.default.env.ConEmuTask==="{cmd::Cmder}"||U.default.env.TERM_PROGRAM==="Terminus-Sublime"||U.default.env.TERM_PROGRAM==="vscode"||U.default.env.TERM==="xterm-256color"||U.default.env.TERM==="alacritty"||U.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Kc={info:x.blue("\u2139"),success:x.green("\u2714"),warning:x.yellow("\u26A0"),error:x.red("\u2716")},zc={info:x.blue("i"),success:x.green("\u221A"),warning:x.yellow("\u203C"),error:x.red("\xD7")},Zc=vt()?Kc:zc,wt=Zc;function Qr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function ei(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Qr(),"")}var ha=M(Qn(),1);function ri({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var G=M(require("process"),1),la=M(require("readline"),1),ua=M(aa(),1);var np=3,fe,qt,tt,Re,Sr=class{constructor(){k(this,fe,0);k(this,qt,new ua.BufferListStream);k(this,tt,void 0);k(this,Re,void 0);c(this,qt).pipe(G.default.stdout);let e=this;v(this,tt,function(r,i,...s){let{stdin:n}=G.default;if(c(e,fe)>0||n.emit===c(e,tt)){if(r==="keypress")return;r==="data"&&i.includes(np)&&G.default.emit("SIGINT"),Reflect.apply(c(e,tt),this,[r,i,...s])}else Reflect.apply(G.default.stdin.emit,this,[r,i,...s])})}start(){bt(this,fe)._++,c(this,fe)===1&&this._realStart()}stop(){if(c(this,fe)<=0)throw new Error("`stop` called more times than `start`");bt(this,fe)._--,c(this,fe)===0&&this._realStop()}_realStart(){G.default.platform!=="win32"&&(v(this,Re,la.default.createInterface({input:G.default.stdin,output:c(this,qt)})),c(this,Re).on("SIGINT",()=>{G.default.listenerCount("SIGINT")===0?G.default.emit("SIGINT"):(c(this,Re).close(),G.default.kill(G.default.pid,"SIGINT"))}))}_realStop(){G.default.platform!=="win32"&&(c(this,Re).close(),v(this,Re,void 0))}};fe=new WeakMap,qt=new WeakMap,tt=new WeakMap,Re=new WeakMap;var Er,Ce,rt,Ne,de,j,ee,L,Ue,it,te,re,ie,st,J,Pi=class{constructor(e){k(this,Ce,0);k(this,rt,!1);k(this,Ne,0);k(this,de,0);k(this,j,void 0);k(this,ee,void 0);k(this,L,void 0);k(this,Ue,void 0);k(this,it,void 0);k(this,te,void 0);k(this,re,void 0);k(this,ie,void 0);k(this,st,void 0);k(this,J,void 0);fn(this,"color");Er||(Er=new Sr),typeof e=="string"&&(e={text:e}),v(this,j,{color:"cyan",stream:It.default.stderr,discardStdin:!0,hideCursor:!0,...e}),this.color=c(this,j).color,this.spinner=c(this,j).spinner,v(this,it,c(this,j).interval),v(this,L,c(this,j).stream),v(this,te,typeof c(this,j).isEnabled=="boolean"?c(this,j).isEnabled:ri({stream:c(this,L)})),v(this,re,typeof c(this,j).isSilent=="boolean"?c(this,j).isSilent:!1),this.text=c(this,j).text,this.prefixText=c(this,j).prefixText,this.indent=c(this,j).indent,It.default.env.NODE_ENV==="test"&&(this._stream=c(this,L),this._isEnabled=c(this,te),Object.defineProperty(this,"_linesToClear",{get(){return c(this,Ce)},set(r){v(this,Ce,r)}}),Object.defineProperty(this,"_frameIndex",{get(){return c(this,de)}}),Object.defineProperty(this,"_lineCount",{get(){return c(this,Ne)}}))}get indent(){return c(this,ie)}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");v(this,ie,e),this.updateLineCount()}get interval(){return c(this,it)||c(this,ee).interval||100}get spinner(){return c(this,ee)}set spinner(e){if(v(this,de,0),v(this,it,void 0),typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");v(this,ee,e)}else if(!vt())v(this,ee,Pt.default.line);else if(e===void 0)v(this,ee,Pt.default.dots);else if(e!=="default"&&Pt.default[e])v(this,ee,Pt.default[e]);else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return c(this,st)}set text(e){v(this,st,e||""),this.updateLineCount()}get prefixText(){return c(this,J)}set prefixText(e){v(this,J,e||""),this.updateLineCount()}get isSpinning(){return c(this,Ue)!==void 0}getFullPrefixText(e=c(this,J),r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=c(this,L).columns||80,r=this.getFullPrefixText(c(this,J),"-");v(this,Ne,0);for(let i of ei(" ".repeat(c(this,ie))+r+"--"+c(this,st)).split(`
108
+ `))v(this,Ne,c(this,Ne)+Math.max(1,Math.ceil((0,ha.default)(i)/e)))}get isEnabled(){return c(this,te)&&!c(this,re)}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");v(this,te,e)}get isSilent(){return c(this,re)}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");v(this,re,e)}frame(){let{frames:e}=c(this,ee),r=e[c(this,de)];this.color&&(r=x[this.color](r)),v(this,de,++bt(this,de)._%e.length);let i=typeof c(this,J)=="string"&&c(this,J)!==""?c(this,J)+" ":"",s=typeof this.text=="string"?" "+this.text:"";return i+r+s}clear(){if(!c(this,te)||!c(this,L).isTTY)return this;c(this,L).cursorTo(0);for(let e=0;e<c(this,Ce);e++)e>0&&c(this,L).moveCursor(0,-1),c(this,L).clearLine(1);return(c(this,ie)||this.lastIndent!==c(this,ie))&&c(this,L).cursorTo(c(this,ie)),this.lastIndent=c(this,ie),v(this,Ce,0),this}render(){return c(this,re)?this:(this.clear(),c(this,L).write(this.frame()),v(this,Ce,c(this,Ne)),this)}start(e){return e&&(this.text=e),c(this,re)?this:c(this,te)?this.isSpinning?this:(c(this,j).hideCursor&&Xr.hide(c(this,L)),c(this,j).discardStdin&&It.default.stdin.isTTY&&(v(this,rt,!0),Er.start()),this.render(),v(this,Ue,setInterval(this.render.bind(this),this.interval)),this):(this.text&&c(this,L).write(`- ${this.text}
109
+ `),this)}stop(){return c(this,te)?(clearInterval(c(this,Ue)),v(this,Ue,void 0),v(this,de,0),this.clear(),c(this,j).hideCursor&&Xr.show(c(this,L)),c(this,j).discardStdin&&It.default.stdin.isTTY&&c(this,rt)&&(Er.stop(),v(this,rt,!1)),this):this}succeed(e){return this.stopAndPersist({symbol:wt.success,text:e})}fail(e){return this.stopAndPersist({symbol:wt.error,text:e})}warn(e){return this.stopAndPersist({symbol:wt.warning,text:e})}info(e){return this.stopAndPersist({symbol:wt.info,text:e})}stopAndPersist(e={}){if(c(this,re))return this;let r=e.prefixText||c(this,J),i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),c(this,L).write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${s}
110
+ `),this}};Ce=new WeakMap,rt=new WeakMap,Ne=new WeakMap,de=new WeakMap,j=new WeakMap,ee=new WeakMap,L=new WeakMap,Ue=new WeakMap,it=new WeakMap,te=new WeakMap,re=new WeakMap,ie=new WeakMap,st=new WeakMap,J=new WeakMap;function ki(t){return new Pi(t)}var Qa=M(require("os"),1),se=M(require("path"),1),el=M(Xa(),1);function Gi(t,e){let r,i=new Promise(n=>{try{r=(0,el.default)(t,["install"],{cwd:e,stdio:"ignore"}),r.on("error",()=>{n()}),r.on("close",()=>{n()})}catch{}});return{abort:async()=>{r&&r.kill("SIGINT")},install:i}}function Yi(t){return ki(t).start()}function tl(t,e){let{tmpInstallDir:r}=qp(e),{install:i,abort:s}=Gi(t,r);return{abort:s,complete:async(o,a)=>{let l=!1;if(o){let u=Yi(`Installing ${t} dependencies...`);try{await i;let p=se.default.join(r,"node_modules"),f=se.default.join(a,"node_modules");await at.default.promises.rename(p,f);try{await at.default.promises.rename(se.default.join(r,"package-lock.json"),se.default.join(a,"package-lock.json"))}catch{}try{await at.default.promises.rename(se.default.join(r,"yarn.lock"),se.default.join(a,"yarn.lock"))}catch{}u.succeed(),l=!0}catch{u.fail()}}else await s();return l}}}function qp(t){let e="create-qwik-"+Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).toLowerCase(),r=se.default.join(Qa.default.tmpdir(),e);try{at.default.mkdirSync(r)}catch(n){console.error(`
111
+ \u274C ${x.red(String(n))}
112
+ `)}let i=se.default.join(t.dir,"package.json"),s=se.default.join(r,"package.json");return at.default.copyFileSync(i,s),{tmpInstallDir:r}}var Y=M(require("fs"),1),Vi=require("path");async function Ji(t,e,r,i){let s=await Y.default.promises.readdir(r);await Promise.all(s.map(async n=>{let o=n==="gitignore"?".gitignore":n,a=(0,Vi.join)(r,n),l=(0,Vi.join)(i,o),u=await Y.default.promises.stat(a);u.isDirectory()?await Ji(t,e,a,l):u.isFile()&&(o==="package.json"?await Ip(t,a,l):o==="README.md"?await kp(t,a,l):o===".gitignore"?await jp(t,a,l):Y.default.existsSync(l)?t.files.push({path:l,content:await Y.default.promises.readFile(a,"utf-8"),type:"overwrite"}):t.files.push({path:l,content:await Y.default.promises.readFile(a),type:"create"}))}))}async function Ip(t,e,r){var o;let i=await Y.default.promises.readFile(e,"utf-8"),s=JSON.parse(i),n=["scripts","dependencies","devDependencies"];try{let a=JSON.parse(await Y.default.promises.readFile(r,"utf-8"));if(n.forEach(l=>{Pp(s,a,l)}),(o=a.scripts)!=null&&o.qwik){let l=a.scripts.qwik;delete a.scripts.qwik,a.scripts.qwik=l}t.files.push({path:r,content:JSON.stringify(a,null,2)+`
113
+ `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}function Pp(t,e,r){if(t[r]){e[r]?Object.assign(e[r],{...t[r]}):e[r]={...t[r]};let i={},s=Object.keys(e[r]).sort();for(let n of s)i[n]=e[r][n];e[r]=i}}async function kp(t,e,r){let i=await Y.default.promises.readFile(e,"utf-8"),s,n="";try{n=await Y.default.promises.readFile(r,"utf-8"),n=n.trim()+`
114
114
 
115
115
  `+i,s="modify"}catch{n=i,s="create"}_e()==="yarn"&&(n=n.replace(/npm run/g,"yarn")),t.files.push({path:r,content:n.trim()+`
116
- `,type:s})}async function Lp(t,e,r){let i=await Y.default.promises.readFile(e,"utf-8");try{let s=await Y.default.promises.readFile(r,"utf-8"),n=i.trim().split(/\r?\n/),o=s.trim().split(/\r?\n/);for(let a of n)o.includes(a)||(a.startsWith("#")&&o.push(""),o.push(a));t.files.push({path:r,content:o.join(`
116
+ `,type:s})}async function jp(t,e,r){let i=await Y.default.promises.readFile(e,"utf-8");try{let s=await Y.default.promises.readFile(r,"utf-8"),n=i.trim().split(/\r?\n/),o=s.trim().split(/\r?\n/);for(let a of n)o.includes(a)||(a.startsWith("#")&&o.push(""),o.push(a));t.files.push({path:r,content:o.join(`
117
117
  `).trim()+`
118
- `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}async function zi(t){let r=(await Ye()).find(o=>o.id===t.integration);if(!r)throw new Error(`Unable to find integration "${t.integration}"`);let i={files:[],installedDeps:{}};t.installDeps&&(i.installedDeps={...r.pkgJson.dependencies,...r.pkgJson.devDependencies}),await Ji(i,t,r.dir,t.rootDir);let s=async o=>{let a=Object.keys(i.installedDeps).length>0,l=o?Yi(`Updating app${a?" and installing dependencies":""}...`):null;try{let u=new Set(i.files.map(f=>(0,nl.dirname)(f.path)));for(let f of Array.from(u))try{Ki.default.mkdirSync(f,{recursive:!0})}catch{}let p=Promise.all(i.files.map(async f=>{await Ki.default.promises.writeFile(f.path,f.content)}));if(t.installDeps&&Object.keys(i.installedDeps).length>0){let f=_e(),{install:d}=Gi(f,t.rootDir);await d}await p,l&&l.succeed()}catch(u){l&&l.fail(),Ge(String(u))}};return{rootDir:t.rootDir,integration:r,updates:i,commit:s}}async function Qi(t,e){let r=Xi(e),i;Np()?i=process.cwd():(i=es(r),Pt.default.existsSync(i)&&Ge(`Directory "${i}" already exists. Please either remove this directory, or choose another location.`));let n=await kt({starterId:t,projectName:e,outDir:i});return zt(n,!1),n}async function kt(t){if(!Zi(t.projectName))throw new Error("Missing project name");if(!Zi(t.starterId))throw new Error("Missing starter id");if(!Zi(t.outDir))throw new Error("Missing outDir");Pt.default.existsSync(t.outDir)||Pt.default.mkdirSync(t.outDir,{recursive:!0});let e={projectName:t.projectName,starterId:t.starterId,outDir:t.outDir},r=(await Ye()).filter(n=>n.type==="app"),i=r.find(n=>n.id==="base"),s=r.find(n=>n.id===t.starterId);if(!i)throw new Error("Unable to find base app");if(!s)throw new Error(`Invalid starter id "${t.starterId}"`);return await Bp(e,i,s),e}async function Bp(t,e,r){let i={name:Rn(t.projectName),description:r.description.trim(),private:!0};await Tn(t.outDir,On(i)),await Fp(t),await(await zi({rootDir:t.outDir,integration:e.id,installDeps:!1})).commit(!1),await(await zi({rootDir:t.outDir,integration:r.id,installDeps:!1})).commit(!1)}async function Fp(t){let e=[];e.push(`# Qwik ${t.projectName} \u26A1\uFE0F`),e.push(""),e.push("- [Qwik Docs](https://qwik.builder.io/)"),e.push("- [Qwik Github](https://github.com/BuilderIO/qwik)"),e.push("- [@QwikDev](https://twitter.com/QwikDev)"),e.push("- [Discord](https://qwik.builder.io/chat)"),e.push("- [Vite](https://vitejs.dev/)"),e.push("- [Partytown](https://partytown.builder.io/)"),e.push("- [Mitosis](https://github.com/BuilderIO/mitosis)"),e.push("- [Builder.io](https://www.builder.io/)"),e.push(""),e.push("--------------------");let r=(0,Tr.join)(t.outDir,"README.md"),i=e.join(`
119
- `).trim()+`
120
- `;await Pt.default.promises.writeFile(r,i)}function Zi(t){return typeof t=="string"&&t.trim().length>0}function Xi(t){return t.toLocaleLowerCase().replace(/ /g,"-")}function es(t){return(0,Tr.resolve)(process.cwd(),t)}function Np(){return Up()}function Up(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}var cn=A(require("fs")),jc=require("path"),Vt=A(kc());async function fn(){console.log(""),console.clear(),console.log(`\u{1F4AB} ${E.cyan("Let's create a Qwik app")} \u{1F4AB}`),console.log("");let t=_e(),r=(await Ye()).filter(P=>P.type==="app"),i=r.find(P=>P.id==="base"),s=r.filter(P=>P.id!==i.id),n=sl(t,i),o=await(0,Vt.default)({type:"text",name:"projectName",message:"Project name",initial:"qwik-app"},{onCancel:()=>{console.log(""),process.exit(1)}});console.log("");let a=o.projectName,l=Xi(a),u=es(l),p=null;if(cn.default.existsSync(u)){let P=await(0,Vt.default)({type:"select",name:"outDirChoice",message:`Directory "./${(0,jc.relative)(process.cwd(),u)}" already exists. What would you like to do?`,choices:[{title:"Do not overwrite this directory and exit",value:"exit"},{title:"Overwrite and replace this directory",value:"replace"}],hint:" "},{onCancel:async()=>{console.log(`
121
- `+E.dim(` - Exited without modifying "${u}"`)+`
122
- `),await n.abort(),process.exit(1)}});console.log(""),P.outDirChoice==="replace"?p=cn.default.promises.rm(u,{recursive:!0}):(console.log(`
123
- `+E.dim(` - Exited without modifying "${u}"`)+`
124
- `),await n.abort(),process.exit(1))}let f=await(0,Vt.default)({type:"select",name:"starterId",message:"Select a starter",choices:s.map(P=>({title:P.name,value:P.id,description:P.description})),hint:" "},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log("");let d=f.starterId,g=await(0,Vt.default)({type:"confirm",name:"runInstall",message:`Would you like to install ${t} dependencies?`,initial:!0},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log(""),p&&await p;let _=g.runInstall,R=await kt({starterId:d,projectName:a,outDir:u}),w=await n.complete(_,R.outDir);return zt(R,w),R}async function V0(){try{let t=process.argv.slice(2);t.length>=2?await Qi(t[0],t[1]):await fn()}catch(t){Ge(t.message||t)}}0&&(module.exports={createApp,runCli,runCreateCli,runCreateInteractiveCli});
118
+ `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}async function zi(t){let r=(await Ye()).find(o=>o.id===t.integration);if(!r)throw new Error(`Unable to find integration "${t.integration}"`);let i={files:[],installedDeps:{}};t.installDeps&&(i.installedDeps={...r.pkgJson.dependencies,...r.pkgJson.devDependencies}),await Ji(i,t,r.dir,t.rootDir);let s=async o=>{let a=Object.keys(i.installedDeps).length>0,l=o?Yi(`Updating app${a?" and installing dependencies":""}...`):null;try{let u=new Set(i.files.map(f=>(0,rl.dirname)(f.path)));for(let f of Array.from(u))try{Ki.default.mkdirSync(f,{recursive:!0})}catch{}let p=Promise.all(i.files.map(async f=>{await Ki.default.promises.writeFile(f.path,f.content)}));if(t.installDeps&&Object.keys(i.installedDeps).length>0){let f=_e(),{install:d}=Gi(f,t.rootDir);await d}await p,l&&l.succeed()}catch(u){l&&l.fail(),Ge(String(u))}};return{rootDir:t.rootDir,integration:r,updates:i,commit:s}}async function Zi(t,e){Lp()?e=process.cwd():(e=Xi(e),kt.default.existsSync(e)&&Ge(`Directory "${e}" already exists. Please either remove this directory, or choose another location.`));let i=await jt({starterId:t,outDir:e});return Zt(i,!1),i}async function jt(t){if(!il(t.starterId))throw new Error("Missing starter id");if(!il(t.outDir))throw new Error("Missing outDir");if(!(0,lt.isAbsolute)(t.outDir))throw new Error("outDir must be an absolute path");kt.default.existsSync(t.outDir)||kt.default.mkdirSync(t.outDir,{recursive:!0});let e={starterId:t.starterId,outDir:t.outDir},r=(await Ye()).filter(n=>n.type==="app"),i=r.find(n=>n.id==="base"),s=r.find(n=>n.id===t.starterId);if(!i)throw new Error("Unable to find base app");if(!s)throw new Error(`Invalid starter id "${t.starterId}"`);return await $p(e,i,s),e}async function $p(t,e,r){let i=En({name:`my-${r.pkgJson.name}`,description:r.pkgJson.description,private:!0});await Sn(t.outDir,i);let s=(0,lt.join)(t.outDir,"README.md");await kt.default.promises.writeFile(s,""),await(await zi({rootDir:t.outDir,integration:e.id,installDeps:!1})).commit(!1),await(await zi({rootDir:t.outDir,integration:r.id,installDeps:!1})).commit(!1)}function il(t){return typeof t=="string"&&t.trim().length>0}function Xi(t){return(0,lt.resolve)(process.cwd(),t)}function Lp(){return Bp()}function Bp(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}var un=M(require("fs")),Pc=require("path"),Jt=M(Ic());async function hn(){console.log(""),console.clear(),console.log(""),console.log(`\u{1F430} ${x.cyan("Let's create a")} ${x.bold(x.magenta("Qwik"))} ${x.cyan("app")} \u{1F407} ${x.dim("v0.0.110-dev20220918045338")}`),console.log("");let t=_e(),r=(await Ye()).filter(_=>_.type==="app"),i=r.find(_=>_.id==="base"),s=r.filter(_=>_.id!==i.id),n=tl(t,i),o=await(0,Jt.default)({type:"text",name:"outDir",message:"Where would you like to create your new project?",initial:"./qwik-app"},{onCancel:()=>{console.log(""),process.exit(1)}});console.log("");let a=Xi(o.outDir),l=null;if(un.default.existsSync(a)){let _=await(0,Jt.default)({type:"select",name:"outDirChoice",message:`Directory "./${(0,Pc.relative)(process.cwd(),a)}" already exists. What would you like to do?`,choices:[{title:"Do not overwrite this directory and exit",value:"exit"},{title:"Overwrite and replace this directory",value:"replace"}],hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(x.dim(` - Exited without modifying "${a}"`)+`
119
+ `),await n.abort(),process.exit(1)}});console.log(""),_.outDirChoice==="replace"?l=un.default.promises.rm(a,{recursive:!0}):(console.log(x.dim(` - Exited without modifying "${a}"`)+`
120
+ `),await n.abort(),process.exit(1))}let u=await(0,Jt.default)({type:"select",name:"starterId",message:"Select a starter",choices:s.map(_=>{var y;return{title:_.name,value:_.id,description:(y=_.pkgJson)==null?void 0:y.description}}),hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log("");let p=u.starterId,f=await(0,Jt.default)({type:"confirm",name:"runInstall",message:`Would you like to install ${t} dependencies?`,initial:!0},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log(""),l&&await l;let d=f.runInstall,S=await jt({starterId:p,outDir:a}),b=await n.complete(d,S.outDir);return Zt(S,b),S}async function W0(){try{let t=process.argv.slice(2);t.length>=2?await Zi(t[0],t[1]):await hn()}catch(t){Ge(t.message||t)}}0&&(module.exports={createApp,runCli,runCreateCli,runCreateInteractiveCli});
125
121
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */