create-leo-app 0.7.3 → 0.8.2

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 (279) hide show
  1. package/README.md +3 -3
  2. package/dist/index.mjs +38 -38
  3. package/package.json +5 -7
  4. package/template-extension/package.json +4 -4
  5. package/template-nextjs-ts/package.json +9 -9
  6. package/template-node/package.json +2 -2
  7. package/template-node-ts/package.json +5 -5
  8. package/template-offline-public-transaction-ts/package.json +5 -5
  9. package/template-react-leo/README.md +3 -8
  10. package/template-react-leo/package.json +23 -23
  11. package/template-react-leo/vite.config.js +2 -1
  12. package/template-react-managed-worker/README.md +1 -3
  13. package/template-react-managed-worker/package.json +22 -22
  14. package/template-react-managed-worker/vite.config.js +2 -1
  15. package/template-react-ts/README.md +3 -8
  16. package/template-react-ts/package.json +28 -28
  17. package/template-react-ts/vite.config.ts +2 -1
  18. package/template-vanilla/package.json +3 -3
  19. package/template-vanilla/vite.config.js +3 -1
  20. package/template-nextjs-ts/node_modules/@types/node/LICENSE +0 -21
  21. package/template-nextjs-ts/node_modules/@types/node/README.md +0 -15
  22. package/template-nextjs-ts/node_modules/@types/node/assert/strict.d.ts +0 -8
  23. package/template-nextjs-ts/node_modules/@types/node/assert.d.ts +0 -1040
  24. package/template-nextjs-ts/node_modules/@types/node/async_hooks.d.ts +0 -541
  25. package/template-nextjs-ts/node_modules/@types/node/buffer.d.ts +0 -2301
  26. package/template-nextjs-ts/node_modules/@types/node/child_process.d.ts +0 -1544
  27. package/template-nextjs-ts/node_modules/@types/node/cluster.d.ts +0 -578
  28. package/template-nextjs-ts/node_modules/@types/node/console.d.ts +0 -452
  29. package/template-nextjs-ts/node_modules/@types/node/constants.d.ts +0 -19
  30. package/template-nextjs-ts/node_modules/@types/node/crypto.d.ts +0 -4524
  31. package/template-nextjs-ts/node_modules/@types/node/dgram.d.ts +0 -596
  32. package/template-nextjs-ts/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  33. package/template-nextjs-ts/node_modules/@types/node/dns/promises.d.ts +0 -476
  34. package/template-nextjs-ts/node_modules/@types/node/dns.d.ts +0 -864
  35. package/template-nextjs-ts/node_modules/@types/node/dom-events.d.ts +0 -124
  36. package/template-nextjs-ts/node_modules/@types/node/domain.d.ts +0 -170
  37. package/template-nextjs-ts/node_modules/@types/node/events.d.ts +0 -931
  38. package/template-nextjs-ts/node_modules/@types/node/fs/promises.d.ts +0 -1245
  39. package/template-nextjs-ts/node_modules/@types/node/fs.d.ts +0 -4317
  40. package/template-nextjs-ts/node_modules/@types/node/globals.d.ts +0 -503
  41. package/template-nextjs-ts/node_modules/@types/node/globals.global.d.ts +0 -1
  42. package/template-nextjs-ts/node_modules/@types/node/http.d.ts +0 -1908
  43. package/template-nextjs-ts/node_modules/@types/node/http2.d.ts +0 -2418
  44. package/template-nextjs-ts/node_modules/@types/node/https.d.ts +0 -550
  45. package/template-nextjs-ts/node_modules/@types/node/index.d.ts +0 -89
  46. package/template-nextjs-ts/node_modules/@types/node/inspector.d.ts +0 -3696
  47. package/template-nextjs-ts/node_modules/@types/node/module.d.ts +0 -315
  48. package/template-nextjs-ts/node_modules/@types/node/net.d.ts +0 -999
  49. package/template-nextjs-ts/node_modules/@types/node/os.d.ts +0 -495
  50. package/template-nextjs-ts/node_modules/@types/node/package.json +0 -217
  51. package/template-nextjs-ts/node_modules/@types/node/path.d.ts +0 -191
  52. package/template-nextjs-ts/node_modules/@types/node/perf_hooks.d.ts +0 -934
  53. package/template-nextjs-ts/node_modules/@types/node/process.d.ts +0 -1879
  54. package/template-nextjs-ts/node_modules/@types/node/punycode.d.ts +0 -117
  55. package/template-nextjs-ts/node_modules/@types/node/querystring.d.ts +0 -153
  56. package/template-nextjs-ts/node_modules/@types/node/readline/promises.d.ts +0 -150
  57. package/template-nextjs-ts/node_modules/@types/node/readline.d.ts +0 -540
  58. package/template-nextjs-ts/node_modules/@types/node/repl.d.ts +0 -430
  59. package/template-nextjs-ts/node_modules/@types/node/sea.d.ts +0 -153
  60. package/template-nextjs-ts/node_modules/@types/node/stream/consumers.d.ts +0 -12
  61. package/template-nextjs-ts/node_modules/@types/node/stream/promises.d.ts +0 -83
  62. package/template-nextjs-ts/node_modules/@types/node/stream/web.d.ts +0 -521
  63. package/template-nextjs-ts/node_modules/@types/node/stream.d.ts +0 -1707
  64. package/template-nextjs-ts/node_modules/@types/node/string_decoder.d.ts +0 -67
  65. package/template-nextjs-ts/node_modules/@types/node/test.d.ts +0 -1874
  66. package/template-nextjs-ts/node_modules/@types/node/timers/promises.d.ts +0 -97
  67. package/template-nextjs-ts/node_modules/@types/node/timers.d.ts +0 -240
  68. package/template-nextjs-ts/node_modules/@types/node/tls.d.ts +0 -1217
  69. package/template-nextjs-ts/node_modules/@types/node/trace_events.d.ts +0 -197
  70. package/template-nextjs-ts/node_modules/@types/node/tty.d.ts +0 -208
  71. package/template-nextjs-ts/node_modules/@types/node/url.d.ts +0 -952
  72. package/template-nextjs-ts/node_modules/@types/node/util.d.ts +0 -2298
  73. package/template-nextjs-ts/node_modules/@types/node/v8.d.ts +0 -808
  74. package/template-nextjs-ts/node_modules/@types/node/vm.d.ts +0 -924
  75. package/template-nextjs-ts/node_modules/@types/node/wasi.d.ts +0 -181
  76. package/template-nextjs-ts/node_modules/@types/node/worker_threads.d.ts +0 -694
  77. package/template-nextjs-ts/node_modules/@types/node/zlib.d.ts +0 -539
  78. package/template-react-ts/node_modules/@types/node/LICENSE +0 -21
  79. package/template-react-ts/node_modules/@types/node/README.md +0 -15
  80. package/template-react-ts/node_modules/@types/node/assert/strict.d.ts +0 -8
  81. package/template-react-ts/node_modules/@types/node/assert.d.ts +0 -1040
  82. package/template-react-ts/node_modules/@types/node/async_hooks.d.ts +0 -541
  83. package/template-react-ts/node_modules/@types/node/buffer.d.ts +0 -2301
  84. package/template-react-ts/node_modules/@types/node/child_process.d.ts +0 -1544
  85. package/template-react-ts/node_modules/@types/node/cluster.d.ts +0 -578
  86. package/template-react-ts/node_modules/@types/node/console.d.ts +0 -452
  87. package/template-react-ts/node_modules/@types/node/constants.d.ts +0 -19
  88. package/template-react-ts/node_modules/@types/node/crypto.d.ts +0 -4524
  89. package/template-react-ts/node_modules/@types/node/dgram.d.ts +0 -596
  90. package/template-react-ts/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  91. package/template-react-ts/node_modules/@types/node/dns/promises.d.ts +0 -476
  92. package/template-react-ts/node_modules/@types/node/dns.d.ts +0 -864
  93. package/template-react-ts/node_modules/@types/node/dom-events.d.ts +0 -124
  94. package/template-react-ts/node_modules/@types/node/domain.d.ts +0 -170
  95. package/template-react-ts/node_modules/@types/node/events.d.ts +0 -931
  96. package/template-react-ts/node_modules/@types/node/fs/promises.d.ts +0 -1245
  97. package/template-react-ts/node_modules/@types/node/fs.d.ts +0 -4317
  98. package/template-react-ts/node_modules/@types/node/globals.d.ts +0 -503
  99. package/template-react-ts/node_modules/@types/node/globals.global.d.ts +0 -1
  100. package/template-react-ts/node_modules/@types/node/http.d.ts +0 -1908
  101. package/template-react-ts/node_modules/@types/node/http2.d.ts +0 -2418
  102. package/template-react-ts/node_modules/@types/node/https.d.ts +0 -550
  103. package/template-react-ts/node_modules/@types/node/index.d.ts +0 -89
  104. package/template-react-ts/node_modules/@types/node/inspector.d.ts +0 -3696
  105. package/template-react-ts/node_modules/@types/node/module.d.ts +0 -315
  106. package/template-react-ts/node_modules/@types/node/net.d.ts +0 -999
  107. package/template-react-ts/node_modules/@types/node/os.d.ts +0 -495
  108. package/template-react-ts/node_modules/@types/node/package.json +0 -217
  109. package/template-react-ts/node_modules/@types/node/path.d.ts +0 -191
  110. package/template-react-ts/node_modules/@types/node/perf_hooks.d.ts +0 -934
  111. package/template-react-ts/node_modules/@types/node/process.d.ts +0 -1879
  112. package/template-react-ts/node_modules/@types/node/punycode.d.ts +0 -117
  113. package/template-react-ts/node_modules/@types/node/querystring.d.ts +0 -153
  114. package/template-react-ts/node_modules/@types/node/readline/promises.d.ts +0 -150
  115. package/template-react-ts/node_modules/@types/node/readline.d.ts +0 -540
  116. package/template-react-ts/node_modules/@types/node/repl.d.ts +0 -430
  117. package/template-react-ts/node_modules/@types/node/sea.d.ts +0 -153
  118. package/template-react-ts/node_modules/@types/node/stream/consumers.d.ts +0 -12
  119. package/template-react-ts/node_modules/@types/node/stream/promises.d.ts +0 -83
  120. package/template-react-ts/node_modules/@types/node/stream/web.d.ts +0 -521
  121. package/template-react-ts/node_modules/@types/node/stream.d.ts +0 -1707
  122. package/template-react-ts/node_modules/@types/node/string_decoder.d.ts +0 -67
  123. package/template-react-ts/node_modules/@types/node/test.d.ts +0 -1874
  124. package/template-react-ts/node_modules/@types/node/timers/promises.d.ts +0 -97
  125. package/template-react-ts/node_modules/@types/node/timers.d.ts +0 -240
  126. package/template-react-ts/node_modules/@types/node/tls.d.ts +0 -1217
  127. package/template-react-ts/node_modules/@types/node/trace_events.d.ts +0 -197
  128. package/template-react-ts/node_modules/@types/node/tty.d.ts +0 -208
  129. package/template-react-ts/node_modules/@types/node/url.d.ts +0 -952
  130. package/template-react-ts/node_modules/@types/node/util.d.ts +0 -2298
  131. package/template-react-ts/node_modules/@types/node/v8.d.ts +0 -808
  132. package/template-react-ts/node_modules/@types/node/vm.d.ts +0 -924
  133. package/template-react-ts/node_modules/@types/node/wasi.d.ts +0 -181
  134. package/template-react-ts/node_modules/@types/node/worker_threads.d.ts +0 -694
  135. package/template-react-ts/node_modules/@types/node/zlib.d.ts +0 -539
  136. package/template-react-ts/node_modules/diff/CONTRIBUTING.md +0 -39
  137. package/template-react-ts/node_modules/diff/LICENSE +0 -31
  138. package/template-react-ts/node_modules/diff/README.md +0 -207
  139. package/template-react-ts/node_modules/diff/dist/diff.js +0 -1585
  140. package/template-react-ts/node_modules/diff/dist/diff.min.js +0 -38
  141. package/template-react-ts/node_modules/diff/lib/convert/dmp.js +0 -32
  142. package/template-react-ts/node_modules/diff/lib/convert/xml.js +0 -42
  143. package/template-react-ts/node_modules/diff/lib/diff/array.js +0 -45
  144. package/template-react-ts/node_modules/diff/lib/diff/base.js +0 -304
  145. package/template-react-ts/node_modules/diff/lib/diff/character.js +0 -37
  146. package/template-react-ts/node_modules/diff/lib/diff/css.js +0 -41
  147. package/template-react-ts/node_modules/diff/lib/diff/json.js +0 -163
  148. package/template-react-ts/node_modules/diff/lib/diff/line.js +0 -89
  149. package/template-react-ts/node_modules/diff/lib/diff/sentence.js +0 -41
  150. package/template-react-ts/node_modules/diff/lib/diff/word.js +0 -107
  151. package/template-react-ts/node_modules/diff/lib/index.es6.js +0 -1519
  152. package/template-react-ts/node_modules/diff/lib/index.js +0 -216
  153. package/template-react-ts/node_modules/diff/lib/patch/apply.js +0 -243
  154. package/template-react-ts/node_modules/diff/lib/patch/create.js +0 -247
  155. package/template-react-ts/node_modules/diff/lib/patch/merge.js +0 -609
  156. package/template-react-ts/node_modules/diff/lib/patch/parse.js +0 -156
  157. package/template-react-ts/node_modules/diff/lib/util/array.js +0 -32
  158. package/template-react-ts/node_modules/diff/lib/util/distance-iterator.js +0 -57
  159. package/template-react-ts/node_modules/diff/lib/util/params.js +0 -24
  160. package/template-react-ts/node_modules/diff/package.json +0 -73
  161. package/template-react-ts/node_modules/diff/release-notes.md +0 -261
  162. package/template-react-ts/node_modules/diff/runtime.js +0 -3
  163. package/template-react-ts/node_modules/ts-node/LICENSE +0 -21
  164. package/template-react-ts/node_modules/ts-node/README.md +0 -1442
  165. package/template-react-ts/node_modules/ts-node/child-loader.mjs +0 -8
  166. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.d.ts +0 -2
  167. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.js +0 -6
  168. package/template-react-ts/node_modules/ts-node/dist/bin-cwd.js.map +0 -1
  169. package/template-react-ts/node_modules/ts-node/dist/bin-esm.d.ts +0 -2
  170. package/template-react-ts/node_modules/ts-node/dist/bin-esm.js +0 -6
  171. package/template-react-ts/node_modules/ts-node/dist/bin-esm.js.map +0 -1
  172. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.d.ts +0 -2
  173. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.js +0 -7
  174. package/template-react-ts/node_modules/ts-node/dist/bin-script-deprecated.js.map +0 -1
  175. package/template-react-ts/node_modules/ts-node/dist/bin-script.d.ts +0 -2
  176. package/template-react-ts/node_modules/ts-node/dist/bin-script.js +0 -6
  177. package/template-react-ts/node_modules/ts-node/dist/bin-script.js.map +0 -1
  178. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.d.ts +0 -2
  179. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.js +0 -6
  180. package/template-react-ts/node_modules/ts-node/dist/bin-transpile.js.map +0 -1
  181. package/template-react-ts/node_modules/ts-node/dist/bin.d.ts +0 -11
  182. package/template-react-ts/node_modules/ts-node/dist/bin.js +0 -581
  183. package/template-react-ts/node_modules/ts-node/dist/bin.js.map +0 -1
  184. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.d.ts +0 -1
  185. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.js +0 -19
  186. package/template-react-ts/node_modules/ts-node/dist/child/argv-payload.js.map +0 -1
  187. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.d.ts +0 -1
  188. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.js +0 -24
  189. package/template-react-ts/node_modules/ts-node/dist/child/child-entrypoint.js.map +0 -1
  190. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.d.ts +0 -1
  191. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.js +0 -32
  192. package/template-react-ts/node_modules/ts-node/dist/child/child-loader.js.map +0 -1
  193. package/template-react-ts/node_modules/ts-node/dist/child/child-require.d.ts +0 -7
  194. package/template-react-ts/node_modules/ts-node/dist/child/child-require.js +0 -22
  195. package/template-react-ts/node_modules/ts-node/dist/child/child-require.js.map +0 -1
  196. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.d.ts +0 -1
  197. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.js +0 -49
  198. package/template-react-ts/node_modules/ts-node/dist/child/spawn-child.js.map +0 -1
  199. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +0 -1
  200. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.js +0 -29
  201. package/template-react-ts/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +0 -1
  202. package/template-react-ts/node_modules/ts-node/dist/configuration.d.ts +0 -1
  203. package/template-react-ts/node_modules/ts-node/dist/configuration.js +0 -308
  204. package/template-react-ts/node_modules/ts-node/dist/configuration.js.map +0 -1
  205. package/template-react-ts/node_modules/ts-node/dist/esm.d.ts +0 -53
  206. package/template-react-ts/node_modules/ts-node/dist/esm.js +0 -228
  207. package/template-react-ts/node_modules/ts-node/dist/esm.js.map +0 -1
  208. package/template-react-ts/node_modules/ts-node/dist/file-extensions.d.ts +0 -1
  209. package/template-react-ts/node_modules/ts-node/dist/file-extensions.js +0 -133
  210. package/template-react-ts/node_modules/ts-node/dist/file-extensions.js.map +0 -1
  211. package/template-react-ts/node_modules/ts-node/dist/index.d.ts +0 -332
  212. package/template-react-ts/node_modules/ts-node/dist/index.js +0 -953
  213. package/template-react-ts/node_modules/ts-node/dist/index.js.map +0 -1
  214. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.d.ts +0 -1
  215. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.js +0 -64
  216. package/template-react-ts/node_modules/ts-node/dist/module-type-classifier.js.map +0 -1
  217. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.d.ts +0 -1
  218. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.js +0 -39
  219. package/template-react-ts/node_modules/ts-node/dist/node-module-type-classifier.js.map +0 -1
  220. package/template-react-ts/node_modules/ts-node/dist/repl.d.ts +0 -78
  221. package/template-react-ts/node_modules/ts-node/dist/repl.js +0 -561
  222. package/template-react-ts/node_modules/ts-node/dist/repl.js.map +0 -1
  223. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.d.ts +0 -1
  224. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.js +0 -143
  225. package/template-react-ts/node_modules/ts-node/dist/resolver-functions.js.map +0 -1
  226. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.d.ts +0 -11
  227. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.js +0 -218
  228. package/template-react-ts/node_modules/ts-node/dist/transpilers/swc.js.map +0 -1
  229. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.d.ts +0 -35
  230. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.js +0 -3
  231. package/template-react-ts/node_modules/ts-node/dist/transpilers/types.js.map +0 -1
  232. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.d.ts +0 -63
  233. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.js +0 -3
  234. package/template-react-ts/node_modules/ts-node/dist/ts-compiler-types.js.map +0 -1
  235. package/template-react-ts/node_modules/ts-node/dist/ts-internals.d.ts +0 -6
  236. package/template-react-ts/node_modules/ts-node/dist/ts-internals.js +0 -321
  237. package/template-react-ts/node_modules/ts-node/dist/ts-internals.js.map +0 -1
  238. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.d.ts +0 -1
  239. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.js +0 -100
  240. package/template-react-ts/node_modules/ts-node/dist/ts-transpile-module.js.map +0 -1
  241. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.d.ts +0 -13
  242. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.js +0 -3
  243. package/template-react-ts/node_modules/ts-node/dist/tsconfig-schema.js.map +0 -1
  244. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.d.ts +0 -1
  245. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.js +0 -36
  246. package/template-react-ts/node_modules/ts-node/dist/tsconfigs.js.map +0 -1
  247. package/template-react-ts/node_modules/ts-node/dist/util.d.ts +0 -4
  248. package/template-react-ts/node_modules/ts-node/dist/util.js +0 -175
  249. package/template-react-ts/node_modules/ts-node/dist/util.js.map +0 -1
  250. package/template-react-ts/node_modules/ts-node/dist-raw/NODE-LICENSE.md +0 -24
  251. package/template-react-ts/node_modules/ts-node/dist-raw/README.md +0 -36
  252. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-constants.js +0 -4
  253. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-errors.js +0 -82
  254. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +0 -89
  255. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +0 -593
  256. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +0 -106
  257. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +0 -962
  258. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +0 -44
  259. package/template-react-ts/node_modules/ts-node/dist-raw/node-internal-repl-await.js +0 -254
  260. package/template-react-ts/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +0 -58
  261. package/template-react-ts/node_modules/ts-node/dist-raw/node-nativemodule.js +0 -9
  262. package/template-react-ts/node_modules/ts-node/dist-raw/node-options.js +0 -103
  263. package/template-react-ts/node_modules/ts-node/dist-raw/node-primordials.js +0 -37
  264. package/template-react-ts/node_modules/ts-node/dist-raw/runmain-hack.js +0 -9
  265. package/template-react-ts/node_modules/ts-node/esm/transpile-only.mjs +0 -8
  266. package/template-react-ts/node_modules/ts-node/esm.mjs +0 -8
  267. package/template-react-ts/node_modules/ts-node/node10/tsconfig.json +0 -3
  268. package/template-react-ts/node_modules/ts-node/node12/tsconfig.json +0 -3
  269. package/template-react-ts/node_modules/ts-node/node14/tsconfig.json +0 -3
  270. package/template-react-ts/node_modules/ts-node/node16/tsconfig.json +0 -3
  271. package/template-react-ts/node_modules/ts-node/package.json +0 -182
  272. package/template-react-ts/node_modules/ts-node/register/files.js +0 -3
  273. package/template-react-ts/node_modules/ts-node/register/index.js +0 -1
  274. package/template-react-ts/node_modules/ts-node/register/transpile-only.js +0 -3
  275. package/template-react-ts/node_modules/ts-node/register/type-check.js +0 -3
  276. package/template-react-ts/node_modules/ts-node/transpilers/swc-experimental.js +0 -1
  277. package/template-react-ts/node_modules/ts-node/transpilers/swc.js +0 -1
  278. package/template-react-ts/node_modules/ts-node/tsconfig.schema.json +0 -183
  279. package/template-react-ts/node_modules/ts-node/tsconfig.schemastore-schema.json +0 -1326
package/README.md CHANGED
@@ -13,14 +13,14 @@ npm create leo-app@latest
13
13
 
14
14
  Then follow the prompts!
15
15
 
16
- You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold an Aleo + React project, run:
16
+ You can also directly specify the project name you want to use via additional command line options. For example, to scaffold a Leo project, run:
17
17
 
18
18
  ```bash
19
19
  # npm 6.x
20
- npm create leo-app@latest my-leo-app --template react
20
+ npm create leo-app@latest my-leo-app
21
21
 
22
22
  # npm 7+, extra double-dash is needed:
23
- npm create leo-app@latest my-leo-app -- --template react
23
+ npm create leo-app@latest my-leo-app
24
24
  ```
25
25
 
26
26
  Currently supported template presets include:
package/dist/index.mjs CHANGED
@@ -1,52 +1,52 @@
1
- import S from"node:fs";import O from"node:path";import{fileURLToPath as le}from"node:url";import he from"readline";import ae from"events";function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ue(s,t){var e=s;t.slice(0,-1).forEach(function(n){e=e[n]||{}});var i=t[t.length-1];return i in e}function St(s){return typeof s=="number"||/^0x[0-9a-f]+$/i.test(s)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(s)}function Ot(s,t){return t==="constructor"&&typeof s[t]=="function"||t==="__proto__"}var ce=function(s,t){t||(t={});var e={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(e.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?e.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(u){e.bools[u]=!0});var i={};function n(u){return i[u].some(function(y){return e.bools[y]})}Object.keys(t.alias||{}).forEach(function(u){i[u]=[].concat(t.alias[u]),i[u].forEach(function(y){i[y]=[u].concat(i[u].filter(function(_){return y!==_}))})}),[].concat(t.string).filter(Boolean).forEach(function(u){e.strings[u]=!0,i[u]&&[].concat(i[u]).forEach(function(y){e.strings[y]=!0})});var o=t.default||{},r={_:[]};function h(u,y){return e.allBools&&/^--[^=]+$/.test(y)||e.strings[u]||e.bools[u]||i[u]}function v(u,y,_){for(var p=u,G=0;G<y.length-1;G++){var D=y[G];if(Ot(p,D))return;p[D]===void 0&&(p[D]={}),(p[D]===Object.prototype||p[D]===Number.prototype||p[D]===String.prototype)&&(p[D]={}),p[D]===Array.prototype&&(p[D]=[]),p=p[D]}var R=y[y.length-1];Ot(p,R)||((p===Object.prototype||p===Number.prototype||p===String.prototype)&&(p={}),p===Array.prototype&&(p=[]),p[R]===void 0||e.bools[R]||typeof p[R]=="boolean"?p[R]=_:Array.isArray(p[R])?p[R].push(_):p[R]=[p[R],_])}function l(u,y,_){if(!(_&&e.unknownFn&&!h(u,_)&&e.unknownFn(_)===!1)){var p=!e.strings[u]&&St(y)?Number(y):y;v(r,u.split("."),p),(i[u]||[]).forEach(function(G){v(r,G.split("."),p)})}}Object.keys(e.bools).forEach(function(u){l(u,o[u]===void 0?!1:o[u])});var T=[];s.indexOf("--")!==-1&&(T=s.slice(s.indexOf("--")+1),s=s.slice(0,s.indexOf("--")));for(var g=0;g<s.length;g++){var a=s[g],c,$;if(/^--.+=/.test(a)){var C=a.match(/^--([^=]+)=([\s\S]*)$/);c=C[1];var U=C[2];e.bools[c]&&(U=U!=="false"),l(c,U,a)}else if(/^--no-.+/.test(a))c=a.match(/^--no-(.+)/)[1],l(c,!1,a);else if(/^--.+/.test(a))c=a.match(/^--(.+)/)[1],$=s[g+1],$!==void 0&&!/^(-|--)[^-]/.test($)&&!e.bools[c]&&!e.allBools&&(!i[c]||!n(c))?(l(c,$,a),g+=1):/^(true|false)$/.test($)?(l(c,$==="true",a),g+=1):l(c,e.strings[c]?"":!0,a);else if(/^-[^-]+/.test(a)){for(var x=a.slice(1,-1).split(""),m=!1,f=0;f<x.length;f++){if($=a.slice(f+2),$==="-"){l(x[f],$,a);continue}if(/[A-Za-z]/.test(x[f])&&$[0]==="="){l(x[f],$.slice(1),a),m=!0;break}if(/[A-Za-z]/.test(x[f])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test($)){l(x[f],$,a),m=!0;break}if(x[f+1]&&x[f+1].match(/\W/)){l(x[f],a.slice(f+2),a),m=!0;break}else l(x[f],e.strings[x[f]]?"":!0,a)}c=a.slice(-1)[0],!m&&c!=="-"&&(s[g+1]&&!/^(-|--)[^-]/.test(s[g+1])&&!e.bools[c]&&(!i[c]||!n(c))?(l(c,s[g+1],a),g+=1):s[g+1]&&/^(true|false)$/.test(s[g+1])?(l(c,s[g+1]==="true",a),g+=1):l(c,e.strings[c]?"":!0,a))}else if((!e.unknownFn||e.unknownFn(a)!==!1)&&r._.push(e.strings._||!St(a)?a:Number(a)),t.stopEarly){r._.push.apply(r._,s.slice(g+1));break}}return Object.keys(o).forEach(function(u){ue(r,u.split("."))||(v(r,u.split("."),o[u]),(i[u]||[]).forEach(function(y){v(r,y.split("."),o[u])}))}),t["--"]?r["--"]=T.slice():T.forEach(function(u){r._.push(u)}),r};const de=xt(ce);var Mt={};const{FORCE_COLOR:fe,NODE_DISABLE_COLORS:pe,TERM:me}=process.env,d={enabled:!pe&&me!=="dumb"&&fe!=="0",reset:b(0,0),bold:b(1,22),dim:b(2,22),italic:b(3,23),underline:b(4,24),inverse:b(7,27),hidden:b(8,28),strikethrough:b(9,29),black:b(30,39),red:b(31,39),green:b(32,39),yellow:b(33,39),blue:b(34,39),magenta:b(35,39),cyan:b(36,39),white:b(37,39),gray:b(90,39),grey:b(90,39),bgBlack:b(40,49),bgRed:b(41,49),bgGreen:b(42,49),bgYellow:b(43,49),bgBlue:b(44,49),bgMagenta:b(45,49),bgCyan:b(46,49),bgWhite:b(47,49)};function Pt(s,t){let e=0,i,n="",o="";for(;e<s.length;e++)i=s[e],n+=i.open,o+=i.close,t.includes(i.close)&&(t=t.replace(i.rgx,i.close+i.open));return n+t+o}function ge(s,t){let e={has:s,keys:t};return e.reset=d.reset.bind(e),e.bold=d.bold.bind(e),e.dim=d.dim.bind(e),e.italic=d.italic.bind(e),e.underline=d.underline.bind(e),e.inverse=d.inverse.bind(e),e.hidden=d.hidden.bind(e),e.strikethrough=d.strikethrough.bind(e),e.black=d.black.bind(e),e.red=d.red.bind(e),e.green=d.green.bind(e),e.yellow=d.yellow.bind(e),e.blue=d.blue.bind(e),e.magenta=d.magenta.bind(e),e.cyan=d.cyan.bind(e),e.white=d.white.bind(e),e.gray=d.gray.bind(e),e.grey=d.grey.bind(e),e.bgBlack=d.bgBlack.bind(e),e.bgRed=d.bgRed.bind(e),e.bgGreen=d.bgGreen.bind(e),e.bgYellow=d.bgYellow.bind(e),e.bgBlue=d.bgBlue.bind(e),e.bgMagenta=d.bgMagenta.bind(e),e.bgCyan=d.bgCyan.bind(e),e.bgWhite=d.bgWhite.bind(e),e}function b(s,t){let e={open:`\x1B[${s}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(s)||(this.has.push(s),this.keys.push(e)),i===void 0?this:d.enabled?Pt(this.keys,i+""):i+""):i===void 0?ge([s],[e]):d.enabled?Pt([e],i+""):i+""}}var M=d,be=(s,t)=>{if(!(s.meta&&s.name!=="escape")){if(s.ctrl){if(s.name==="a")return"first";if(s.name==="c"||s.name==="d")return"abort";if(s.name==="e")return"last";if(s.name==="g")return"reset"}if(t){if(s.name==="j")return"down";if(s.name==="k")return"up"}return s.name==="return"||s.name==="enter"?"submit":s.name==="backspace"?"delete":s.name==="delete"?"deleteForward":s.name==="abort"?"abort":s.name==="escape"?"exit":s.name==="tab"?"next":s.name==="pagedown"?"nextPage":s.name==="pageup"?"prevPage":s.name==="home"?"home":s.name==="end"?"end":s.name==="up"?"up":s.name==="down"?"down":s.name==="right"?"right":s.name==="left"?"left":!1}},nt=s=>{const t=["[\\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("|"),e=new RegExp(t,"g");return typeof s=="string"?s.replace(e,""):s};const ot="\x1B",w=`${ot}[`,ve="\x07",lt={to(s,t){return t?`${w}${t+1};${s+1}H`:`${w}${s+1}G`},move(s,t){let e="";return s<0?e+=`${w}${-s}D`:s>0&&(e+=`${w}${s}C`),t<0?e+=`${w}${-t}A`:t>0&&(e+=`${w}${t}B`),e},up:(s=1)=>`${w}${s}A`,down:(s=1)=>`${w}${s}B`,forward:(s=1)=>`${w}${s}C`,backward:(s=1)=>`${w}${s}D`,nextLine:(s=1)=>`${w}E`.repeat(s),prevLine:(s=1)=>`${w}F`.repeat(s),left:`${w}G`,hide:`${w}?25l`,show:`${w}?25h`,save:`${ot}7`,restore:`${ot}8`},we={up:(s=1)=>`${w}S`.repeat(s),down:(s=1)=>`${w}T`.repeat(s)},$e={screen:`${w}2J`,up:(s=1)=>`${w}1J`.repeat(s),down:(s=1)=>`${w}J`.repeat(s),line:`${w}2K`,lineEnd:`${w}K`,lineStart:`${w}1K`,lines(s){let t="";for(let e=0;e<s;e++)t+=this.line+(e<s-1?lt.up():"");return s&&(t+=lt.left),t}};var P={cursor:lt,scroll:we,erase:$e,beep:ve};const ye=nt,{erase:Tt,cursor:xe}=P,Se=s=>[...ye(s)].length;var Oe=function(s,t){if(!t)return Tt.line+xe.to(0);let e=0;const i=s.split(/\r?\n/);for(let n of i)e+=1+Math.floor(Math.max(Se(n)-1,0)/t);return Tt.lines(e)};const K={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Me={arrowUp:K.arrowUp,arrowDown:K.arrowDown,arrowLeft:K.arrowLeft,arrowRight:K.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Pe=process.platform==="win32"?Me:K;var Ct=Pe;const k=M,H=Ct,ht=Object.freeze({password:{scale:1,render:s=>"*".repeat(s.length)},emoji:{scale:2,render:s=>"\u{1F603}".repeat(s.length)},invisible:{scale:0,render:s=>""},default:{scale:1,render:s=>`${s}`}}),Te=s=>ht[s]||ht.default,W=Object.freeze({aborted:k.red(H.cross),done:k.green(H.tick),exited:k.yellow(H.cross),default:k.cyan("?")}),Ce=(s,t,e)=>t?W.aborted:e?W.exited:s?W.done:W.default,De=s=>k.gray(s?H.ellipsis:H.pointerSmall),Ee=(s,t)=>k.gray(s?t?H.pointerSmall:"+":H.line);var Ie={styles:ht,render:Te,symbols:W,symbol:Ce,delimiter:De,item:Ee};const _e=nt;var Re=function(s,t){let e=String(_e(s)||"").split(/\r?\n/);return t?e.map(i=>Math.ceil(i.length/t)).reduce((i,n)=>i+n):e.length},Ae=(s,t={})=>{const e=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",i=t.width;return(s||"").split(/\r?\n/g).map(n=>n.split(/\s+/g).reduce((o,r)=>(r.length+e.length>=i||o[o.length-1].length+r.length+1<i?o[o.length-1]+=` ${r}`:o.push(`${e}${r}`),o),[e]).join(`
1
+ import T from"node:fs";import P from"node:path";import{fileURLToPath as ye}from"node:url";import Se from"readline";import xe from"events";function Pt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V,Ct;function $e(){if(Ct)return V;Ct=1;function e(t,l){var d=t;l.slice(0,-1).forEach(function(m){d=d[m]||{}});var i=l[l.length-1];return i in d}function r(t){return typeof t=="number"||/^0x[0-9a-f]+$/i.test(t)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function c(t,l){return l==="constructor"&&typeof t[l]=="function"||l==="__proto__"}return V=function(t,l){l||(l={});var d={bools:{},strings:{},unknownFn:null};typeof l.unknown=="function"&&(d.unknownFn=l.unknown),typeof l.boolean=="boolean"&&l.boolean?d.allBools=!0:[].concat(l.boolean).filter(Boolean).forEach(function(w){d.bools[w]=!0});var i={};function m(w){return i[w].some(function(M){return d.bools[M]})}Object.keys(l.alias||{}).forEach(function(w){i[w]=[].concat(l.alias[w]),i[w].forEach(function(M){i[M]=[w].concat(i[w].filter(function(R){return M!==R}))})}),[].concat(l.string).filter(Boolean).forEach(function(w){d.strings[w]=!0,i[w]&&[].concat(i[w]).forEach(function(M){d.strings[M]=!0})});var o=l.default||{},n={_:[]};function s(w,M){return d.allBools&&/^--[^=]+$/.test(M)||d.strings[w]||d.bools[w]||i[w]}function u(w,M,R){for(var $=w,N=0;N<M.length-1;N++){var E=M[N];if(c($,E))return;$[E]===void 0&&($[E]={}),($[E]===Object.prototype||$[E]===Number.prototype||$[E]===String.prototype)&&($[E]={}),$[E]===Array.prototype&&($[E]=[]),$=$[E]}var I=M[M.length-1];c($,I)||(($===Object.prototype||$===Number.prototype||$===String.prototype)&&($={}),$===Array.prototype&&($=[]),$[I]===void 0||d.bools[I]||typeof $[I]=="boolean"?$[I]=R:Array.isArray($[I])?$[I].push(R):$[I]=[$[I],R])}function p(w,M,R){if(!(R&&d.unknownFn&&!s(w,R)&&d.unknownFn(R)===!1)){var $=!d.strings[w]&&r(M)?Number(M):M;u(n,w.split("."),$),(i[w]||[]).forEach(function(N){u(n,N.split("."),$)})}}Object.keys(d.bools).forEach(function(w){p(w,o[w]===void 0?!1:o[w])});var a=[];t.indexOf("--")!==-1&&(a=t.slice(t.indexOf("--")+1),t=t.slice(0,t.indexOf("--")));for(var h=0;h<t.length;h++){var f=t[h],g,x;if(/^--.+=/.test(f)){var y=f.match(/^--([^=]+)=([\s\S]*)$/);g=y[1];var S=y[2];d.bools[g]&&(S=S!=="false"),p(g,S,f)}else if(/^--no-.+/.test(f))g=f.match(/^--no-(.+)/)[1],p(g,!1,f);else if(/^--.+/.test(f))g=f.match(/^--(.+)/)[1],x=t[h+1],x!==void 0&&!/^(-|--)[^-]/.test(x)&&!d.bools[g]&&!d.allBools&&(!i[g]||!m(g))?(p(g,x,f),h+=1):/^(true|false)$/.test(x)?(p(g,x==="true",f),h+=1):p(g,d.strings[g]?"":!0,f);else if(/^-[^-]+/.test(f)){for(var v=f.slice(1,-1).split(""),b=!1,O=0;O<v.length;O++){if(x=f.slice(O+2),x==="-"){p(v[O],x,f);continue}if(/[A-Za-z]/.test(v[O])&&x[0]==="="){p(v[O],x.slice(1),f),b=!0;break}if(/[A-Za-z]/.test(v[O])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(x)){p(v[O],x,f),b=!0;break}if(v[O+1]&&v[O+1].match(/\W/)){p(v[O],f.slice(O+2),f),b=!0;break}else p(v[O],d.strings[v[O]]?"":!0,f)}g=f.slice(-1)[0],!b&&g!=="-"&&(t[h+1]&&!/^(-|--)[^-]/.test(t[h+1])&&!d.bools[g]&&(!i[g]||!m(g))?(p(g,t[h+1],f),h+=1):t[h+1]&&/^(true|false)$/.test(t[h+1])?(p(g,t[h+1]==="true",f),h+=1):p(g,d.strings[g]?"":!0,f))}else if((!d.unknownFn||d.unknownFn(f)!==!1)&&n._.push(d.strings._||!r(f)?f:Number(f)),l.stopEarly){n._.push.apply(n._,t.slice(h+1));break}}return Object.keys(o).forEach(function(w){e(n,w.split("."))||(u(n,w.split("."),o[w]),(i[w]||[]).forEach(function(M){u(n,M.split("."),o[w])}))}),l["--"]?n["--"]=a.slice():a.forEach(function(w){n._.push(w)}),n},V}var Me=$e();const Oe=Pt(Me);var B={},U,Dt;function C(){if(Dt)return U;Dt=1;const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:c}=process.env,t={enabled:!r&&c!=="dumb"&&e!=="0",reset:i(0,0),bold:i(1,22),dim:i(2,22),italic:i(3,23),underline:i(4,24),inverse:i(7,27),hidden:i(8,28),strikethrough:i(9,29),black:i(30,39),red:i(31,39),green:i(32,39),yellow:i(33,39),blue:i(34,39),magenta:i(35,39),cyan:i(36,39),white:i(37,39),gray:i(90,39),grey:i(90,39),bgBlack:i(40,49),bgRed:i(41,49),bgGreen:i(42,49),bgYellow:i(43,49),bgBlue:i(44,49),bgMagenta:i(45,49),bgCyan:i(46,49),bgWhite:i(47,49)};function l(m,o){let n=0,s,u="",p="";for(;n<m.length;n++)s=m[n],u+=s.open,p+=s.close,o.includes(s.close)&&(o=o.replace(s.rgx,s.close+s.open));return u+o+p}function d(m,o){let n={has:m,keys:o};return n.reset=t.reset.bind(n),n.bold=t.bold.bind(n),n.dim=t.dim.bind(n),n.italic=t.italic.bind(n),n.underline=t.underline.bind(n),n.inverse=t.inverse.bind(n),n.hidden=t.hidden.bind(n),n.strikethrough=t.strikethrough.bind(n),n.black=t.black.bind(n),n.red=t.red.bind(n),n.green=t.green.bind(n),n.yellow=t.yellow.bind(n),n.blue=t.blue.bind(n),n.magenta=t.magenta.bind(n),n.cyan=t.cyan.bind(n),n.white=t.white.bind(n),n.gray=t.gray.bind(n),n.grey=t.grey.bind(n),n.bgBlack=t.bgBlack.bind(n),n.bgRed=t.bgRed.bind(n),n.bgGreen=t.bgGreen.bind(n),n.bgYellow=t.bgYellow.bind(n),n.bgBlue=t.bgBlue.bind(n),n.bgMagenta=t.bgMagenta.bind(n),n.bgCyan=t.bgCyan.bind(n),n.bgWhite=t.bgWhite.bind(n),n}function i(m,o){let n={open:`\x1B[${m}m`,close:`\x1B[${o}m`,rgx:new RegExp(`\\x1b\\[${o}m`,"g")};return function(s){return this!==void 0&&this.has!==void 0?(this.has.includes(m)||(this.has.push(m),this.keys.push(n)),s===void 0?this:t.enabled?l(this.keys,s+""):s+""):s===void 0?d([m],[n]):t.enabled?l([n],s+""):s+""}}return U=t,U}var k,Et;function Re(){return Et||(Et=1,k=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}),k}var J,qt;function z(){return qt||(qt=1,J=e=>{const r=["[\\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("|"),c=new RegExp(r,"g");return typeof e=="string"?e.replace(c,""):e}),J}var G,It;function D(){if(It)return G;It=1;const e="\x1B",r=`${e}[`,c="\x07",t={to(i,m){return m?`${r}${m+1};${i+1}H`:`${r}${i+1}G`},move(i,m){let o="";return i<0?o+=`${r}${-i}D`:i>0&&(o+=`${r}${i}C`),m<0?o+=`${r}${-m}A`:m>0&&(o+=`${r}${m}B`),o},up:(i=1)=>`${r}${i}A`,down:(i=1)=>`${r}${i}B`,forward:(i=1)=>`${r}${i}C`,backward:(i=1)=>`${r}${i}D`,nextLine:(i=1)=>`${r}E`.repeat(i),prevLine:(i=1)=>`${r}F`.repeat(i),left:`${r}G`,hide:`${r}?25l`,show:`${r}?25h`,save:`${e}7`,restore:`${e}8`},l={up:(i=1)=>`${r}S`.repeat(i),down:(i=1)=>`${r}T`.repeat(i)},d={screen:`${r}2J`,up:(i=1)=>`${r}1J`.repeat(i),down:(i=1)=>`${r}J`.repeat(i),line:`${r}2K`,lineEnd:`${r}K`,lineStart:`${r}1K`,lines(i){let m="";for(let o=0;o<i;o++)m+=this.line+(o<i-1?t.up():"");return i&&(m+=t.left),m}};return G={cursor:t,scroll:l,erase:d,beep:c},G}var K,_t;function Te(){if(_t)return K;_t=1;const e=z(),{erase:r,cursor:c}=D(),t=l=>[...e(l)].length;return K=function(l,d){if(!d)return r.line+c.to(0);let i=0;const m=l.split(/\r?\n/);for(let o of m)i+=1+Math.floor(Math.max(t(o)-1,0)/d);return r.lines(i)},K}var W,At;function jt(){if(At)return W;At=1;const e={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},r={arrowUp:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"};return W=process.platform==="win32"?r:e,W}var Z,Ft;function Pe(){if(Ft)return Z;Ft=1;const e=C(),r=jt(),c=Object.freeze({password:{scale:1,render:o=>"*".repeat(o.length)},emoji:{scale:2,render:o=>"\u{1F603}".repeat(o.length)},invisible:{scale:0,render:o=>""},default:{scale:1,render:o=>`${o}`}}),t=o=>c[o]||c.default,l=Object.freeze({aborted:e.red(r.cross),done:e.green(r.tick),exited:e.yellow(r.cross),default:e.cyan("?")});return Z={styles:c,render:t,symbols:l,symbol:(o,n,s)=>n?l.aborted:s?l.exited:o?l.done:l.default,delimiter:o=>e.gray(o?r.ellipsis:r.pointerSmall),item:(o,n)=>e.gray(o?n?r.pointerSmall:"+":r.line)},Z}var X,Lt;function Ce(){if(Lt)return X;Lt=1;const e=z();return X=function(r,c){let t=String(e(r)||"").split(/\r?\n/);return c?t.map(l=>Math.ceil(l.length/c)).reduce((l,d)=>l+d):t.length},X}var Q,Nt;function De(){return Nt||(Nt=1,Q=(e,r={})=>{const c=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",t=r.width;return(e||"").split(/\r?\n/g).map(l=>l.split(/\s+/g).reduce((d,i)=>(i.length+c.length>=t||d[d.length-1].length+i.length+1<t?d[d.length-1]+=` ${i}`:d.push(`${c}${i}`),d),[c]).join(`
2
2
  `)).join(`
3
- `)},je=(s,t,e)=>{e=e||t;let i=Math.min(t-e,s-Math.floor(e/2));i<0&&(i=0);let n=Math.min(i+e,t);return{startIndex:i,endIndex:n}},E={action:be,clear:Oe,style:Ie,strip:nt,figures:Ct,lines:Re,wrap:Ae,entriesToDisplay:je};const Dt=he,{action:Fe}=E,Ne=ae,{beep:Le,cursor:Ye}=P,He=M;let Ve=class extends Ne{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=Dt.createInterface({input:this.in,escapeCodeTimeout:50});Dt.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(o,r)=>{let h=Fe(r,i);h===!1?this._&&this._(o,r):typeof this[h]=="function"?this[h](r):this.bell()};this.close=()=>{this.out.write(Ye.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Le)}render(){this.onRender(He),this.firstRender&&(this.firstRender=!1)}};var N=Ve;const tt=M,Be=N,{erase:Ue,cursor:Z}=P,{style:at,clear:ut,lines:ke,figures:Je}=E;class ze extends Be{constructor(t={}){super(t),this.transform=at.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=ut("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=tt.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!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(`
4
- `),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}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(`
5
- `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let i=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${i}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,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 t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,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(Z.down(ke(this.outputError,this.out.columns)-1)+ut(this.outputError,this.out.columns)),this.out.write(ut(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[at.symbol(this.done,this.aborted),tt.bold(this.msg),at.delimiter(this.done),this.red?tt.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
6
- `).reduce((t,e,i)=>t+`
7
- ${i?" ":Je.pointerSmall} ${tt.red().italic(e)}`,"")),this.out.write(Ue.line+Z.to(0)+this.outputText+Z.save+this.outputError+Z.restore+Z.move(this.cursorOffset,0)))}}var Ge=ze;const A=M,Ke=N,{style:Et,clear:It,figures:et,wrap:We,entriesToDisplay:Ze}=E,{cursor:qe}=P;class Xe extends Ke{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map((e,i)=>(typeof e=="string"&&(e={title:e,value:i}),{title:e&&(e.title||e.value||e),value:e&&(e.value===void 0?i:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled})),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=It("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].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(`
3
+ `)}),Q}var tt,Yt;function Ee(){return Yt||(Yt=1,tt=(e,r,c)=>{c=c||r;let t=Math.min(r-c,e-Math.floor(c/2));t<0&&(t=0);let l=Math.min(t+c,r);return{startIndex:t,endIndex:l}}),tt}var et,Ht;function q(){return Ht||(Ht=1,et={action:Re(),clear:Te(),style:Pe(),strip:z(),figures:jt(),lines:Ce(),wrap:De(),entriesToDisplay:Ee()}),et}var it,Vt;function A(){if(Vt)return it;Vt=1;const e=Se,{action:r}=q(),c=xe,{beep:t,cursor:l}=D(),d=C();class i extends c{constructor(o={}){super(),this.firstRender=!0,this.in=o.stdin||process.stdin,this.out=o.stdout||process.stdout,this.onRender=(o.onRender||(()=>{})).bind(this);const n=e.createInterface({input:this.in,escapeCodeTimeout:50});e.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);const s=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,u=(p,a)=>{let h=r(a,s);h===!1?this._&&this._(p,a):typeof this[h]=="function"?this[h](a):this.bell()};this.close=()=>{this.out.write(l.show),this.in.removeListener("keypress",u),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",u)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(t)}render(){this.onRender(d),this.firstRender&&(this.firstRender=!1)}}return it=i,it}var st,Bt;function qe(){if(Bt)return st;Bt=1;const e=C(),r=A(),{erase:c,cursor:t}=D(),{style:l,clear:d,lines:i,figures:m}=q();class o extends r{constructor(s={}){super(s),this.transform=l.render(s.style),this.scale=this.transform.scale,this.msg=s.message,this.initial=s.initial||"",this.validator=s.validate||(()=>!0),this.value="",this.errorMsg=s.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(s){!s&&this.initial?(this.placeholder=!0,this.rendered=e.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(s)),this._value=s,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!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(`
4
+ `),this.close()}async validate(){let s=await this.validator(this.value);typeof s=="string"&&(this.errorMsg=s,s=!1),this.error=!s}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(`
5
+ `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(s){this.placeholder||(this.cursor=this.cursor+s,this.cursorOffset+=s)}_(s,u){let p=this.value.slice(0,this.cursor),a=this.value.slice(this.cursor);this.value=`${p}${s}${a}`,this.red=!1,this.cursor=this.placeholder?0:p.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let s=this.value.slice(0,this.cursor-1),u=this.value.slice(this.cursor);this.value=`${s}${u}`,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 s=this.value.slice(0,this.cursor),u=this.value.slice(this.cursor+1);this.value=`${s}${u}`,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(t.down(i(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns)),this.out.write(d(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[l.symbol(this.done,this.aborted),e.bold(this.msg),l.delimiter(this.done),this.red?e.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
6
+ `).reduce((s,u,p)=>s+`
7
+ ${p?" ":m.pointerSmall} ${e.red().italic(u)}`,"")),this.out.write(c.line+t.to(0)+this.outputText+t.save+this.outputError+t.restore+t.move(this.cursorOffset,0)))}}return st=o,st}var rt,Ut;function Ie(){if(Ut)return rt;Ut=1;const e=C(),r=A(),{style:c,clear:t,figures:l,wrap:d,entriesToDisplay:i}=q(),{cursor:m}=D();class o extends r{constructor(s={}){super(s),this.msg=s.message,this.hint=s.hint||"- Use arrow-keys. Return to submit.",this.warn=s.warn||"- This option is disabled",this.cursor=s.initial||0,this.choices=s.choices.map((u,p)=>(typeof u=="string"&&(u={title:u,value:p}),{title:u&&(u.title||u.value||u),value:u&&(u.value===void 0?p:u.value),description:u&&u.description,selected:u&&u.selected,disabled:u&&u.disabled})),this.optionsPerPage=s.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=t("",this.out.columns),this.render()}moveCursor(s){this.cursor=s,this.value=this.choices[s].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(`
8
8
  `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
9
- `),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()}_(t,e){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(qe.hide):this.out.write(It(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=Ze(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Et.symbol(this.done,this.aborted),A.bold(this.msg),Et.delimiter(!1),this.done?this.selection.title:this.selection.disabled?A.yellow(this.warn):A.gray(this.hint)].join(" "),!this.done){this.outputText+=`
10
- `;for(let i=t;i<e;i++){let n,o,r="",h=this.choices[i];i===t&&t>0?o=et.arrowUp:i===e-1&&e<this.choices.length?o=et.arrowDown:o=" ",h.disabled?(n=this.cursor===i?A.gray().underline(h.title):A.strikethrough().gray(h.title),o=(this.cursor===i?A.bold().gray(et.pointer)+" ":" ")+o):(n=this.cursor===i?A.cyan().underline(h.title):h.title,o=(this.cursor===i?A.cyan(et.pointer)+" ":" ")+o,h.description&&this.cursor===i&&(r=` - ${h.description}`,(o.length+n.length+r.length>=this.out.columns||h.description.split(/\r?\n/).length>1)&&(r=`
11
- `+We(h.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${A.gray(r)}
12
- `}}this.out.write(this.outputText)}}var Qe=Xe;const st=M,ts=N,{style:_t,clear:es}=E,{cursor:Rt,erase:ss}=P;class is extends ts{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.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(`
9
+ `),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()}_(s,u){if(s===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(m.hide):this.out.write(t(this.outputText,this.out.columns)),super.render();let{startIndex:s,endIndex:u}=i(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[c.symbol(this.done,this.aborted),e.bold(this.msg),c.delimiter(!1),this.done?this.selection.title:this.selection.disabled?e.yellow(this.warn):e.gray(this.hint)].join(" "),!this.done){this.outputText+=`
10
+ `;for(let p=s;p<u;p++){let a,h,f="",g=this.choices[p];p===s&&s>0?h=l.arrowUp:p===u-1&&u<this.choices.length?h=l.arrowDown:h=" ",g.disabled?(a=this.cursor===p?e.gray().underline(g.title):e.strikethrough().gray(g.title),h=(this.cursor===p?e.bold().gray(l.pointer)+" ":" ")+h):(a=this.cursor===p?e.cyan().underline(g.title):g.title,h=(this.cursor===p?e.cyan(l.pointer)+" ":" ")+h,g.description&&this.cursor===p&&(f=` - ${g.description}`,(h.length+a.length+f.length>=this.out.columns||g.description.split(/\r?\n/).length>1)&&(f=`
11
+ `+d(g.description,{margin:3,width:this.out.columns})))),this.outputText+=`${h} ${a}${e.gray(f)}
12
+ `}}this.out.write(this.outputText)}}return rt=o,rt}var nt,kt;function _e(){if(kt)return nt;kt=1;const e=C(),r=A(),{style:c,clear:t}=q(),{cursor:l,erase:d}=D();class i extends r{constructor(o={}){super(o),this.msg=o.message,this.value=!!o.initial,this.active=o.active||"on",this.inactive=o.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(`
13
13
  `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
14
- `),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()}_(t,e){if(t===" ")this.value=!this.value;else if(t==="1")this.value=!0;else if(t==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Rt.hide):this.out.write(es(this.outputText,this.out.columns)),super.render(),this.outputText=[_t.symbol(this.done,this.aborted),st.bold(this.msg),_t.delimiter(this.done),this.value?this.inactive:st.cyan().underline(this.inactive),st.gray("/"),this.value?st.cyan().underline(this.active):this.active].join(" "),this.out.write(ss.line+Rt.to(0)+this.outputText))}}var rs=is;let ns=class yt{constructor({token:t,date:e,parts:i,locales:n}){this.token=t,this.date=e||new Date,this.parts=i||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find((e,i)=>i>t&&e instanceof yt)}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const e=t.indexOf(this);return t.find((i,n)=>n>e&&i instanceof yt)}toString(){return String(this.date)}};var j=ns;const os=j;let ls=class extends os{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}};var hs=ls;const as=j,us=s=>(s=s%10,s===1?"st":s===2?"nd":s===3?"rd":"th");let cs=class extends as{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+us(t):this.token==="d"?e+1:this.token==="ddd"?this.locales.weekdaysShort[e]:this.token==="dddd"?this.locales.weekdays[e]:t}};var ds=cs;const fs=j;let ps=class extends fs{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}};var ms=ps;const gs=j;let bs=class extends gs{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};var vs=bs;const ws=j;let $s=class extends ws{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}};var ys=$s;const xs=j;let Ss=class extends xs{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return e===2?String(t+1).padStart(2,"0"):e===3?this.locales.monthsShort[t]:e===4?this.locales.months[t]:String(t+1)}};var Os=Ss;const Ms=j;let Ps=class extends Ms{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}};var Ts=Ps;const Cs=j;let Ds=class extends Cs{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}};var Es=Ds,Is={DatePart:j,Meridiem:hs,Day:ds,Hours:ms,Milliseconds:vs,Minutes:ys,Month:Os,Seconds:Ts,Year:Es};const ct=M,_s=N,{style:At,clear:jt,figures:Rs}=E,{erase:As,cursor:Ft}=P,{DatePart:Nt,Meridiem:js,Day:Fs,Hours:Ns,Milliseconds:Ls,Minutes:Ys,Month:Hs,Seconds:Vs,Year:Bs}=Is,Us=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,Lt={1:({token:s})=>s.replace(/\\(.)/g,"$1"),2:s=>new Fs(s),3:s=>new Hs(s),4:s=>new Bs(s),5:s=>new js(s),6:s=>new Ns(s),7:s=>new Ys(s),8:s=>new Vs(s),9:s=>new Ls(s)},ks={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(",")};class Js extends _s{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(ks,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=jt("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=Us.exec(t);){let n=e.shift(),o=e.findIndex(r=>r!=null);this.parts.push(o in Lt?Lt[o]({token:e[o]||n,date:this.date,parts:this.parts,locales:this.locales}):e[o]||n)}let i=this.parts.reduce((n,o)=>(typeof o=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=o:n.push(o),n),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex(t=>t instanceof Nt)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
15
- `),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}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(`
16
- `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex(e=>e instanceof Nt)),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Ft.hide):this.out.write(jt(this.outputText,this.out.columns)),super.render(),this.outputText=[At.symbol(this.done,this.aborted),ct.bold(this.msg),At.delimiter(!1),this.parts.reduce((t,e,i)=>t.concat(i===this.cursor&&!this.done?ct.cyan().underline(e.toString()):e),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
17
- `).reduce((t,e,i)=>t+`
18
- ${i?" ":Rs.pointerSmall} ${ct.red().italic(e)}`,"")),this.out.write(As.line+Ft.to(0)+this.outputText))}}var zs=Js;const it=M,Gs=N,{cursor:rt,erase:Ks}=P,{style:dt,figures:Ws,clear:Yt,lines:Zs}=E,qs=/[0-9]/,ft=s=>s!==void 0,Ht=(s,t)=>{let e=Math.pow(10,t);return Math.round(s*e)/e};class Xs extends Gs{constructor(t={}){super(t),this.transform=dt.render(t.style),this.msg=t.message,this.initial=ft(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=ft(t.min)?t.min:-1/0,this.max=ft(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){!t&&t!==0?(this.placeholder=!0,this.rendered=it.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Ht(t,this.round)}`),this._value=Ht(t,this.round)),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t==="-"||t==="."&&this.float||qs.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==""?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
19
- `),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let t=this.value;this.value=t!==""?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
20
- `),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 t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.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()}_(t,e){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=i,this.color="cyan",t===".")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(rt.down(Zs(this.outputError,this.out.columns)-1)+Yt(this.outputError,this.out.columns)),this.out.write(Yt(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[dt.symbol(this.done,this.aborted),it.bold(this.msg),dt.delimiter(this.done),!this.done||!this.done&&!this.placeholder?it[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
21
- `).reduce((t,e,i)=>t+`
22
- ${i?" ":Ws.pointerSmall} ${it.red().italic(e)}`,"")),this.out.write(Ks.line+rt.to(0)+this.outputText+rt.save+this.outputError+rt.restore))}}var Qs=Xs;const I=M,{cursor:ti}=P,ei=N,{clear:Vt,figures:L,style:Bt,wrap:si,entriesToDisplay:ii}=E;let ri=class extends ei{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map((e,i)=>(typeof e=="string"&&(e={title:e,value:i}),{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(e.value===void 0?i:e.value),selected:e&&e.selected,disabled:e&&e.disabled})),this.clear=Vt("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map(t=>!t.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(t=>t.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
23
- `),this.close()}submit(){const t=this.value.filter(e=>e.selected);this.minSelected&&t.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
24
- `),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(t=>t.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter(e=>!e.disabled).forEach(e=>e.selected=t),this.render()}_(t,e){if(t===" ")this.handleSpaceToggle();else if(t==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
14
+ `),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()}_(o,n){if(o===" ")this.value=!this.value;else if(o==="1")this.value=!0;else if(o==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(l.hide):this.out.write(t(this.outputText,this.out.columns)),super.render(),this.outputText=[c.symbol(this.done,this.aborted),e.bold(this.msg),c.delimiter(this.done),this.value?this.inactive:e.cyan().underline(this.inactive),e.gray("/"),this.value?e.cyan().underline(this.active):this.active].join(" "),this.out.write(d.line+l.to(0)+this.outputText))}}return nt=i,nt}var ot,Jt;function _(){if(Jt)return ot;Jt=1;class e{constructor({token:c,date:t,parts:l,locales:d}){this.token=c,this.date=t||new Date,this.parts=l||[this],this.locales=d||{}}up(){}down(){}next(){const c=this.parts.indexOf(this);return this.parts.find((t,l)=>l>c&&t instanceof e)}setTo(c){}prev(){let c=[].concat(this.parts).reverse();const t=c.indexOf(this);return c.find((l,d)=>d>t&&l instanceof e)}toString(){return String(this.date)}}return ot=e,ot}var lt,zt;function Ae(){if(zt)return lt;zt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}return lt=r,lt}var ht,Gt;function je(){if(Gt)return ht;Gt=1;const e=_(),r=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th");class c extends e{constructor(l={}){super(l)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(l){this.date.setDate(parseInt(l.substr(-2)))}toString(){let l=this.date.getDate(),d=this.date.getDay();return this.token==="DD"?String(l).padStart(2,"0"):this.token==="Do"?l+r(l):this.token==="d"?d+1:this.token==="ddd"?this.locales.weekdaysShort[d]:this.token==="dddd"?this.locales.weekdays[d]:l}}return ht=c,ht}var at,Kt;function Fe(){if(Kt)return at;Kt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}return at=r,at}var ut,Wt;function Le(){if(Wt)return ut;Wt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}return ut=r,ut}var ct,Zt;function Ne(){if(Zt)return ct;Zt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}return ct=r,ct}var dt,Xt;function Ye(){if(Xt)return dt;Xt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),l=this.token.length;return l===2?String(t+1).padStart(2,"0"):l===3?this.locales.monthsShort[t]:l===4?this.locales.months[t]:String(t+1)}}return dt=r,dt}var ft,Qt;function He(){if(Qt)return ft;Qt=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}return ft=r,ft}var pt,te;function Ve(){if(te)return pt;te=1;const e=_();class r extends e{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}return pt=r,pt}var mt,ee;function Be(){return ee||(ee=1,mt={DatePart:_(),Meridiem:Ae(),Day:je(),Hours:Fe(),Milliseconds:Le(),Minutes:Ne(),Month:Ye(),Seconds:He(),Year:Ve()}),mt}var gt,ie;function Ue(){if(ie)return gt;ie=1;const e=C(),r=A(),{style:c,clear:t,figures:l}=q(),{erase:d,cursor:i}=D(),{DatePart:m,Meridiem:o,Day:n,Hours:s,Milliseconds:u,Minutes:p,Month:a,Seconds:h,Year:f}=Be(),g=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,x={1:({token:v})=>v.replace(/\\(.)/g,"$1"),2:v=>new n(v),3:v=>new a(v),4:v=>new f(v),5:v=>new o(v),6:v=>new s(v),7:v=>new p(v),8:v=>new h(v),9:v=>new u(v)},y={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(",")};class S extends r{constructor(b={}){super(b),this.msg=b.message,this.cursor=0,this.typed="",this.locales=Object.assign(y,b.locales),this._date=b.initial||new Date,this.errorMsg=b.error||"Please Enter A Valid Value",this.validator=b.validate||(()=>!0),this.mask=b.mask||"YYYY-MM-DD HH:mm:ss",this.clear=t("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(b){b&&this._date.setTime(b.getTime())}set mask(b){let O;for(this.parts=[];O=g.exec(b);){let M=O.shift(),R=O.findIndex($=>$!=null);this.parts.push(R in x?x[R]({token:O[R]||M,date:this.date,parts:this.parts,locales:this.locales}):O[R]||M)}let w=this.parts.reduce((M,R)=>(typeof R=="string"&&typeof M[M.length-1]=="string"?M[M.length-1]+=R:M.push(R),M),[]);this.parts.splice(0),this.parts.push(...w),this.reset()}moveCursor(b){this.typed="",this.cursor=b,this.fire()}reset(){this.moveCursor(this.parts.findIndex(b=>b instanceof m)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
15
+ `),this.close()}async validate(){let b=await this.validator(this.value);typeof b=="string"&&(this.errorMsg=b,b=!1),this.error=!b}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(`
16
+ `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let b=this.parts[this.cursor].prev();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b)),this.render()}right(){let b=this.parts[this.cursor].next();if(b==null)return this.bell();this.moveCursor(this.parts.indexOf(b)),this.render()}next(){let b=this.parts[this.cursor].next();this.moveCursor(b?this.parts.indexOf(b):this.parts.findIndex(O=>O instanceof m)),this.render()}_(b){/\d/.test(b)&&(this.typed+=b,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(i.hide):this.out.write(t(this.outputText,this.out.columns)),super.render(),this.outputText=[c.symbol(this.done,this.aborted),e.bold(this.msg),c.delimiter(!1),this.parts.reduce((b,O,w)=>b.concat(w===this.cursor&&!this.done?e.cyan().underline(O.toString()):O),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
17
+ `).reduce((b,O,w)=>b+`
18
+ ${w?" ":l.pointerSmall} ${e.red().italic(O)}`,"")),this.out.write(d.line+i.to(0)+this.outputText))}}return gt=S,gt}var vt,se;function ke(){if(se)return vt;se=1;const e=C(),r=A(),{cursor:c,erase:t}=D(),{style:l,figures:d,clear:i,lines:m}=q(),o=/[0-9]/,n=p=>p!==void 0,s=(p,a)=>{let h=Math.pow(10,a);return Math.round(p*h)/h};class u extends r{constructor(a={}){super(a),this.transform=l.render(a.style),this.msg=a.message,this.initial=n(a.initial)?a.initial:"",this.float=!!a.float,this.round=a.round||2,this.inc=a.increment||1,this.min=n(a.min)?a.min:-1/0,this.max=n(a.max)?a.max:1/0,this.errorMsg=a.error||"Please Enter A Valid Value",this.validator=a.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(a){!a&&a!==0?(this.placeholder=!0,this.rendered=e.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${s(a,this.round)}`),this._value=s(a,this.round)),this.fire()}get value(){return this._value}parse(a){return this.float?parseFloat(a):parseInt(a)}valid(a){return a==="-"||a==="."&&this.float||o.test(a)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let a=this.value;this.value=a!==""?a:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
19
+ `),this.close()}async validate(){let a=await this.validator(this.value);typeof a=="string"&&(this.errorMsg=a,a=!1),this.error=!a}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let a=this.value;this.value=a!==""?a:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
20
+ `),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 a=this.value.toString();if(a.length===0)return this.bell();this.value=this.parse(a=a.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()}_(a,h){if(!this.valid(a))return this.bell();const f=Date.now();if(f-this.lastHit>1e3&&(this.typed=""),this.typed+=a,this.lastHit=f,this.color="cyan",a===".")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(c.down(m(this.outputError,this.out.columns)-1)+i(this.outputError,this.out.columns)),this.out.write(i(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[l.symbol(this.done,this.aborted),e.bold(this.msg),l.delimiter(this.done),!this.done||!this.done&&!this.placeholder?e[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
21
+ `).reduce((a,h,f)=>a+`
22
+ ${f?" ":d.pointerSmall} ${e.red().italic(h)}`,"")),this.out.write(t.line+c.to(0)+this.outputText+c.save+this.outputError+c.restore))}}return vt=u,vt}var bt,re;function ne(){if(re)return bt;re=1;const e=C(),{cursor:r}=D(),c=A(),{clear:t,figures:l,style:d,wrap:i,entriesToDisplay:m}=q();class o extends c{constructor(s={}){super(s),this.msg=s.message,this.cursor=s.cursor||0,this.scrollIndex=s.cursor||0,this.hint=s.hint||"",this.warn=s.warn||"- This option is disabled -",this.minSelected=s.min,this.showMinError=!1,this.maxChoices=s.max,this.instructions=s.instructions,this.optionsPerPage=s.optionsPerPage||10,this.value=s.choices.map((u,p)=>(typeof u=="string"&&(u={title:u,value:p}),{title:u&&(u.title||u.value||u),description:u&&u.description,value:u&&(u.value===void 0?p:u.value),selected:u&&u.selected,disabled:u&&u.disabled})),this.clear=t("",this.out.columns),s.overrideRender||this.render()}reset(){this.value.map(s=>!s.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(s=>s.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
23
+ `),this.close()}submit(){const s=this.value.filter(u=>u.selected);this.minSelected&&s.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
24
+ `),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(s=>s.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const s=this.value[this.cursor];if(s.selected)s.selected=!1,this.render();else{if(s.disabled||this.value.filter(u=>u.selected).length>=this.maxChoices)return this.bell();s.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const s=!this.value[this.cursor].selected;this.value.filter(u=>!u.disabled).forEach(u=>u.selected=s),this.render()}_(s,u){if(s===" ")this.handleSpaceToggle();else if(s==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
25
25
  Instructions:
26
- ${L.arrowUp}/${L.arrowDown}: Highlight option
27
- ${L.arrowLeft}/${L.arrowRight}/[space]: Toggle selection
26
+ ${l.arrowUp}/${l.arrowDown}: Highlight option
27
+ ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection
28
28
  `+(this.maxChoices===void 0?` a: Toggle all
29
- `:"")+" enter/return: Complete answer":""}renderOption(t,e,i,n){const o=(e.selected?I.green(L.radioOn):L.radioOff)+" "+n+" ";let r,h;return e.disabled?r=t===i?I.gray().underline(e.title):I.strikethrough().gray(e.title):(r=t===i?I.cyan().underline(e.title):e.title,t===i&&e.description&&(h=` - ${e.description}`,(o.length+r.length+h.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(h=`
30
- `+si(e.description,{margin:o.length,width:this.out.columns})))),o+r+I.gray(h||"")}paginateOptions(t){if(t.length===0)return I.red("No matches for this query.");let{startIndex:e,endIndex:i}=ii(this.cursor,t.length,this.optionsPerPage),n,o=[];for(let r=e;r<i;r++)r===e&&e>0?n=L.arrowUp:r===i-1&&i<t.length?n=L.arrowDown:n=" ",o.push(this.renderOption(this.cursor,t[r],r,n));return`
31
- `+o.join(`
32
- `)}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter(e=>e.selected).map(e=>e.title).join(", ");const t=[I.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(I.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(ti.hide),super.render();let t=[Bt.symbol(this.done,this.aborted),I.bold(this.msg),Bt.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=I.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=Vt(t,this.out.columns)}};var Ut=ri;const q=M,ni=N,{erase:oi,cursor:kt}=P,{style:pt,clear:Jt,figures:mt,wrap:li,entriesToDisplay:hi}=E,zt=(s,t)=>s[t]&&(s[t].value||s[t].title||s[t]),ai=(s,t)=>s[t]&&(s[t].title||s[t].value||s[t]),ui=(s,t)=>{const e=s.findIndex(i=>i.value===t||i.title===t);return e>-1?e:void 0};class ci extends ni{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial=typeof t.initial=="number"?t.initial:ui(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=pt.render(t.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Jt("",this.out.columns),this.complete(this.render),this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return typeof this._fb=="number"?t=this.choices[this._fb]:typeof this._fb=="string"&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=zt(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),i=await e;if(this.completing!==e)return;this.suggestions=i.map((o,r,h)=>({title:ai(h,r),value:zt(h,r),description:o.description})),this.completing=!1;const n=Math.max(i.length-1,0);this.moveSelect(Math.min(n,this.select)),t&&t()}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(`
29
+ `:"")+" enter/return: Complete answer":""}renderOption(s,u,p,a){const h=(u.selected?e.green(l.radioOn):l.radioOff)+" "+a+" ";let f,g;return u.disabled?f=s===p?e.gray().underline(u.title):e.strikethrough().gray(u.title):(f=s===p?e.cyan().underline(u.title):u.title,s===p&&u.description&&(g=` - ${u.description}`,(h.length+f.length+g.length>=this.out.columns||u.description.split(/\r?\n/).length>1)&&(g=`
30
+ `+i(u.description,{margin:h.length,width:this.out.columns})))),h+f+e.gray(g||"")}paginateOptions(s){if(s.length===0)return e.red("No matches for this query.");let{startIndex:u,endIndex:p}=m(this.cursor,s.length,this.optionsPerPage),a,h=[];for(let f=u;f<p;f++)f===u&&u>0?a=l.arrowUp:f===p-1&&p<s.length?a=l.arrowDown:a=" ",h.push(this.renderOption(this.cursor,s[f],f,a));return`
31
+ `+h.join(`
32
+ `)}renderOptions(s){return this.done?"":this.paginateOptions(s)}renderDoneOrInstructions(){if(this.done)return this.value.filter(u=>u.selected).map(u=>u.title).join(", ");const s=[e.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&s.push(e.yellow(this.warn)),s.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(r.hide),super.render();let s=[d.symbol(this.done,this.aborted),e.bold(this.msg),d.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(s+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),s+=this.renderOptions(this.value),this.out.write(this.clear+s),this.clear=t(s,this.out.columns)}}return bt=o,bt}var wt,oe;function Je(){if(oe)return wt;oe=1;const e=C(),r=A(),{erase:c,cursor:t}=D(),{style:l,clear:d,figures:i,wrap:m,entriesToDisplay:o}=q(),n=(a,h)=>a[h]&&(a[h].value||a[h].title||a[h]),s=(a,h)=>a[h]&&(a[h].title||a[h].value||a[h]),u=(a,h)=>{const f=a.findIndex(g=>g.value===h||g.title===h);return f>-1?f:void 0};class p extends r{constructor(h={}){super(h),this.msg=h.message,this.suggest=h.suggest,this.choices=h.choices,this.initial=typeof h.initial=="number"?h.initial:u(h.choices,h.initial),this.select=this.initial||h.cursor||0,this.i18n={noMatches:h.noMatches||"no matches found"},this.fallback=h.fallback||this.initial,this.clearFirst=h.clearFirst||!1,this.suggestions=[],this.input="",this.limit=h.limit||10,this.cursor=0,this.transform=l.render(h.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=d("",this.out.columns),this.complete(this.render),this.render()}set fallback(h){this._fb=Number.isSafeInteger(parseInt(h))?parseInt(h):h}get fallback(){let h;return typeof this._fb=="number"?h=this.choices[this._fb]:typeof this._fb=="string"&&(h={title:this._fb}),h||this._fb||{title:this.i18n.noMatches}}moveSelect(h){this.select=h,this.suggestions.length>0?this.value=n(this.suggestions,h):this.value=this.fallback.value,this.fire()}async complete(h){const f=this.completing=this.suggest(this.input,this.choices),g=await f;if(this.completing!==f)return;this.suggestions=g.map((y,S,v)=>({title:s(v,S),value:n(v,S),description:y.description})),this.completing=!1;const x=Math.max(g.length-1,0);this.moveSelect(Math.min(x,this.select)),h&&h()}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(`
33
33
  `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
34
34
  `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
35
- `),this.close()}_(t,e){let i=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${i}${t}${n}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,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(t,e,i,n){let o,r=i?mt.arrowUp:n?mt.arrowDown:" ",h=e?q.cyan().underline(t.title):t.title;return r=(e?q.cyan(mt.pointer)+" ":" ")+r,t.description&&(o=` - ${t.description}`,(r.length+h.length+o.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(o=`
36
- `+li(t.description,{margin:3,width:this.out.columns}))),r+" "+h+q.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(kt.hide):this.out.write(Jt(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=hi(this.select,this.choices.length,this.limit);if(this.outputText=[pt.symbol(this.done,this.aborted,this.exited),q.bold(this.msg),pt.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const i=this.suggestions.slice(t,e).map((n,o)=>this.renderOption(n,this.select===o+t,o===0&&t>0,o+t===e-1&&e<this.choices.length)).join(`
35
+ `),this.close()}_(h,f){let g=this.input.slice(0,this.cursor),x=this.input.slice(this.cursor);this.input=`${g}${h}${x}`,this.cursor=g.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let h=this.input.slice(0,this.cursor-1),f=this.input.slice(this.cursor);this.input=`${h}${f}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let h=this.input.slice(0,this.cursor),f=this.input.slice(this.cursor+1);this.input=`${h}${f}`,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(h,f,g,x){let y,S=g?i.arrowUp:x?i.arrowDown:" ",v=f?e.cyan().underline(h.title):h.title;return S=(f?e.cyan(i.pointer)+" ":" ")+S,h.description&&(y=` - ${h.description}`,(S.length+v.length+y.length>=this.out.columns||h.description.split(/\r?\n/).length>1)&&(y=`
36
+ `+m(h.description,{margin:3,width:this.out.columns}))),S+" "+v+e.gray(y||"")}render(){if(this.closed)return;this.firstRender?this.out.write(t.hide):this.out.write(d(this.outputText,this.out.columns)),super.render();let{startIndex:h,endIndex:f}=o(this.select,this.choices.length,this.limit);if(this.outputText=[l.symbol(this.done,this.aborted,this.exited),e.bold(this.msg),l.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const g=this.suggestions.slice(h,f).map((x,y)=>this.renderOption(x,this.select===y+h,y===0&&h>0,y+h===f-1&&f<this.choices.length)).join(`
37
37
  `);this.outputText+=`
38
- `+(i||q.gray(this.fallback.title))}this.out.write(oi.line+kt.to(0)+this.outputText)}}var di=ci;const F=M,{cursor:fi}=P,pi=Ut,{clear:Gt,style:Kt,figures:J}=E;class mi extends pi{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=Gt("",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(t=>t.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(){const t=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);const e=this.filteredOptions.findIndex(i=>i===t);this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){t===" "?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
38
+ `+(g||e.gray(this.fallback.title))}this.out.write(c.line+t.to(0)+this.outputText)}}return wt=p,wt}var yt,le;function ze(){if(le)return yt;le=1;const e=C(),{cursor:r}=D(),c=ne(),{clear:t,style:l,figures:d}=q();class i extends c{constructor(o={}){o.overrideRender=!0,super(o),this.inputValue="",this.clear=t("",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(o=>o.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(){const o=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(s=>this.inputValue?!!(typeof s.title=="string"&&s.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof s.value=="string"&&s.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);const n=this.filteredOptions.findIndex(s=>s===o);this.cursor=n<0?0:n,this.render()}handleSpaceToggle(){const o=this.filteredOptions[this.cursor];if(o.selected)o.selected=!1,this.render();else{if(o.disabled||this.value.filter(n=>n.selected).length>=this.maxChoices)return this.bell();o.selected=!0,this.render()}}handleInputChange(o){this.inputValue=this.inputValue+o,this.updateFilteredOptions()}_(o,n){o===" "?this.handleSpaceToggle():this.handleInputChange(o)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
39
39
  Instructions:
40
- ${J.arrowUp}/${J.arrowDown}: Highlight option
41
- ${J.arrowLeft}/${J.arrowRight}/[space]: Toggle selection
40
+ ${d.arrowUp}/${d.arrowDown}: Highlight option
41
+ ${d.arrowLeft}/${d.arrowRight}/[space]: Toggle selection
42
42
  [a,b,c]/delete: Filter choices
43
43
  enter/return: Complete answer
44
44
  `:""}renderCurrentInput(){return`
45
- Filtered results for: ${this.inputValue?this.inputValue:F.gray("Enter something to filter")}
46
- `}renderOption(t,e,i){let n;return e.disabled?n=t===i?F.gray().underline(e.title):F.strikethrough().gray(e.title):n=t===i?F.cyan().underline(e.title):e.title,(e.selected?F.green(J.radioOn):J.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(e=>e.selected).map(e=>e.title).join(", ");const t=[F.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(F.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(fi.hide),super.render();let t=[Kt.symbol(this.done,this.aborted),F.bold(this.msg),Kt.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=F.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=Gt(t,this.out.columns)}}var gi=mi;const Wt=M,bi=N,{style:Zt,clear:vi}=E,{erase:wi,cursor:qt}=P;class $i extends bi{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.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(`
45
+ Filtered results for: ${this.inputValue?this.inputValue:e.gray("Enter something to filter")}
46
+ `}renderOption(o,n,s){let u;return n.disabled?u=o===s?e.gray().underline(n.title):e.strikethrough().gray(n.title):u=o===s?e.cyan().underline(n.title):n.title,(n.selected?e.green(d.radioOn):d.radioOff)+" "+u}renderDoneOrInstructions(){if(this.done)return this.value.filter(n=>n.selected).map(n=>n.title).join(", ");const o=[e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&o.push(e.yellow(this.warn)),o.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(r.hide),super.render();let o=[l.symbol(this.done,this.aborted),e.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(o+=e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),o+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+o),this.clear=t(o,this.out.columns)}}return yt=i,yt}var St,he;function Ge(){if(he)return St;he=1;const e=C(),r=A(),{style:c,clear:t}=q(),{erase:l,cursor:d}=D();class i extends r{constructor(o={}){super(o),this.msg=o.message,this.value=o.initial,this.initialValue=!!o.initial,this.yesMsg=o.yes||"yes",this.yesOption=o.yesOption||"(Y/n)",this.noMsg=o.no||"no",this.noOption=o.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(`
47
47
  `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
48
- `),this.close()}_(t,e){return t.toLowerCase()==="y"?(this.value=!0,this.submit()):t.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(qt.hide):this.out.write(vi(this.outputText,this.out.columns)),super.render(),this.outputText=[Zt.symbol(this.done,this.aborted),Wt.bold(this.msg),Zt.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Wt.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(wi.line+qt.to(0)+this.outputText))}}var yi=$i,xi={TextPrompt:Ge,SelectPrompt:Qe,TogglePrompt:rs,DatePrompt:zs,NumberPrompt:Qs,MultiselectPrompt:Ut,AutocompletePrompt:di,AutocompleteMultiselectPrompt:gi,ConfirmPrompt:yi};(function(s){const t=s,e=xi,i=r=>r;function n(r,h,v={}){return new Promise((l,T)=>{const g=new e[r](h),a=v.onAbort||i,c=v.onSubmit||i,$=v.onExit||i;g.on("state",h.onState||i),g.on("submit",C=>l(c(C))),g.on("exit",C=>l($(C))),g.on("abort",C=>T(a(C)))})}t.text=r=>n("TextPrompt",r),t.password=r=>(r.style="password",t.text(r)),t.invisible=r=>(r.style="invisible",t.text(r)),t.number=r=>n("NumberPrompt",r),t.date=r=>n("DatePrompt",r),t.confirm=r=>n("ConfirmPrompt",r),t.list=r=>{const h=r.separator||",";return n("TextPrompt",r,{onSubmit:v=>v.split(h).map(l=>l.trim())})},t.toggle=r=>n("TogglePrompt",r),t.select=r=>n("SelectPrompt",r),t.multiselect=r=>{r.choices=[].concat(r.choices||[]);const h=v=>v.filter(l=>l.selected).map(l=>l.value);return n("MultiselectPrompt",r,{onAbort:h,onSubmit:h})},t.autocompleteMultiselect=r=>{r.choices=[].concat(r.choices||[]);const h=v=>v.filter(l=>l.selected).map(l=>l.value);return n("AutocompleteMultiselectPrompt",r,{onAbort:h,onSubmit:h})};const o=(r,h)=>Promise.resolve(h.filter(v=>v.title.slice(0,r.length).toLowerCase()===r.toLowerCase()));t.autocomplete=r=>(r.suggest=r.suggest||o,r.choices=[].concat(r.choices||[]),n("AutocompletePrompt",r))})(Mt);const gt=Mt,Si=["suggest","format","onState","validate","onRender","type"],Xt=()=>{};async function Y(s=[],{onSubmit:t=Xt,onCancel:e=Xt}={}){const i={},n=Y._override||{};s=[].concat(s);let o,r,h,v,l,T;const g=async(a,c,$=!1)=>{if(!(!$&&a.validate&&a.validate(c)!==!0))return a.format?await a.format(c,i):c};for(r of s)if({name:v,type:l}=r,typeof l=="function"&&(l=await l(o,{...i},r),r.type=l),!!l){for(let a in r){if(Si.includes(a))continue;let c=r[a];r[a]=typeof c=="function"?await c(o,{...i},T):c}if(T=r,typeof r.message!="string")throw new Error("prompt message is required");if({name:v,type:l}=r,gt[l]===void 0)throw new Error(`prompt type (${l}) is not defined`);if(n[r.name]!==void 0&&(o=await g(r,n[r.name]),o!==void 0)){i[v]=o;continue}try{o=Y._injected?Oi(Y._injected,r.initial):await gt[l](r),i[v]=o=await g(r,o,!0),h=await t(r,o,i)}catch{h=!await e(r,i)}if(h)return i}return i}function Oi(s,t){const e=s.shift();if(e instanceof Error)throw e;return e===void 0?t:e}function Mi(s){Y._injected=(Y._injected||[]).concat(s)}function Pi(s){Y._override=Object.assign({},s)}var Ti=Object.assign(Y,{prompt:Y,prompts:gt,inject:Mi,override:Pi});const Ci=xt(Ti);let V=!0;const z=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let X=0;if(z.process&&z.process.env&&z.process.stdout){const{FORCE_COLOR:s,NODE_DISABLE_COLORS:t,NO_COLOR:e,TERM:i,COLORTERM:n}=z.process.env;t||e||s==="0"?V=!1:s==="1"||s==="2"||s==="3"?V=!0:i==="dumb"?V=!1:"CI"in z.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in z.process.env)?V=!0:V=process.stdout.isTTY,V&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?X=3:i&&(i.endsWith("-256color")||i.endsWith("256"))?X=2:X=1)}let Qt={enabled:V,supportLevel:X};function B(s,t,e=1){const i=`\x1B[${s}m`,n=`\x1B[${t}m`,o=new RegExp(`\\x1b\\[${t}m`,"g");return r=>Qt.enabled&&Qt.supportLevel>=e?i+(""+r).replace(o,i)+n:""+r}const Q=B(0,0),bt=B(31,39),te=B(32,39),ee=B(33,39),Di=B(36,39),Ei=B(37,39),Ii=B(92,39),vt=de(process.argv.slice(2),{string:["_"]}),wt=process.cwd(),se=[{name:"vanilla",display:"Vanilla",color:ee,variants:[{name:"vanilla",display:"JavaScript",color:ee}]},{name:"react",display:"React",color:Di,variants:[{name:"react-leo",display:"JavaScript + Leo",color:Ii},{name:"react-ts",display:"React + TypeScript",color:bt},{name:"nextjs-ts",display:"TypeScript + Next.js",color:Ei}]},{name:"node",display:"Node.js",color:te,variants:[{name:"node",display:"Node.js",color:te}]}],ie=se.map(s=>s.variants&&s.variants.map(t=>t.name)||[s.name]).reduce((s,t)=>s.concat(t),[]),_i={_gitignore:".gitignore"},$t="aleo-project";async function Ri(){const s=re(vt._[0]),t=vt.template||vt.t;let e=s||$t;const i=()=>e==="."?O.basename(O.resolve()):e;let n;try{n=await Ci([{type:s?null:"text",name:"projectName",message:Q("Project name:"),initial:$t,onState:m=>{e=re(m.value)||$t}},{type:()=>!S.existsSync(e)||Fi(e)?null:"confirm",name:"overwrite",message:()=>(e==="."?"Current directory":`Target directory "${e}"`)+" is not empty. Remove existing files and continue?"},{type:(m,{overwrite:f})=>{if(f===!1)throw new Error(bt("\u2716")+" Operation cancelled");return null},name:"overwriteChecker"},{type:()=>oe(i())?null:"text",name:"packageName",message:Q("Package name:"),initial:()=>Ai(i()),validate:m=>oe(m)||"Invalid package.json name"},{type:t&&ie.includes(t)?null:"select",name:"framework",message:typeof t=="string"&&!ie.includes(t)?Q(`"${t}" isn't a valid template. Please choose from below: `):Q("Select a framework:"),initial:0,choices:se.map(m=>{const f=m.color;return{title:f(m.display||m.name),value:m}})},{type:m=>m&&m.variants?"select":null,name:"variant",message:Q("Select a variant:"),choices:m=>m.variants.map(f=>{const u=f.color;return{title:u(f.display||f.name),value:f.name}})}],{onCancel:()=>{throw new Error(bt("\u2716")+" Operation cancelled")}})}catch(m){console.log(m.message);return}const{framework:o,overwrite:r,packageName:h,variant:v}=n,l=O.join(wt,e);r?Ni(l):S.existsSync(l)||S.mkdirSync(l,{recursive:!0});let T=v||o?.name||t;const g=Li(process.env.npm_config_user_agent),a=g?g.name:"npm";console.log(`
49
- Scaffolding project in ${l}...`);const c=O.resolve(le(import.meta.url),"../..",`template-${T}`),$=(m,f)=>{const u=O.join(l,_i[m]??m);f?S.writeFileSync(u,f):ne(O.join(c,m),u)},C=S.readdirSync(c);for(const m of C.filter(f=>f!=="package.json"))$(m);const U=JSON.parse(S.readFileSync(O.join(c,"package.json"),"utf-8"));U.name=h||i(),$("package.json",JSON.stringify(U,null,2)+`
50
- `);const x=O.relative(wt,l);switch(console.log(`
48
+ `),this.close()}_(o,n){return o.toLowerCase()==="y"?(this.value=!0,this.submit()):o.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(d.hide):this.out.write(t(this.outputText,this.out.columns)),super.render(),this.outputText=[c.symbol(this.done,this.aborted),e.bold(this.msg),c.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:e.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+d.to(0)+this.outputText))}}return St=i,St}var xt,ae;function Ke(){return ae||(ae=1,xt={TextPrompt:qe(),SelectPrompt:Ie(),TogglePrompt:_e(),DatePrompt:Ue(),NumberPrompt:ke(),MultiselectPrompt:ne(),AutocompletePrompt:Je(),AutocompleteMultiselectPrompt:ze(),ConfirmPrompt:Ge()}),xt}var ue;function We(){return ue||(ue=1,function(e){const r=e,c=Ke(),t=i=>i;function l(i,m,o={}){return new Promise((n,s)=>{const u=new c[i](m),p=o.onAbort||t,a=o.onSubmit||t,h=o.onExit||t;u.on("state",m.onState||t),u.on("submit",f=>n(a(f))),u.on("exit",f=>n(h(f))),u.on("abort",f=>s(p(f)))})}r.text=i=>l("TextPrompt",i),r.password=i=>(i.style="password",r.text(i)),r.invisible=i=>(i.style="invisible",r.text(i)),r.number=i=>l("NumberPrompt",i),r.date=i=>l("DatePrompt",i),r.confirm=i=>l("ConfirmPrompt",i),r.list=i=>{const m=i.separator||",";return l("TextPrompt",i,{onSubmit:o=>o.split(m).map(n=>n.trim())})},r.toggle=i=>l("TogglePrompt",i),r.select=i=>l("SelectPrompt",i),r.multiselect=i=>{i.choices=[].concat(i.choices||[]);const m=o=>o.filter(n=>n.selected).map(n=>n.value);return l("MultiselectPrompt",i,{onAbort:m,onSubmit:m})},r.autocompleteMultiselect=i=>{i.choices=[].concat(i.choices||[]);const m=o=>o.filter(n=>n.selected).map(n=>n.value);return l("AutocompleteMultiselectPrompt",i,{onAbort:m,onSubmit:m})};const d=(i,m)=>Promise.resolve(m.filter(o=>o.title.slice(0,i.length).toLowerCase()===i.toLowerCase()));r.autocomplete=i=>(i.suggest=i.suggest||d,i.choices=[].concat(i.choices||[]),l("AutocompletePrompt",i))}(B)),B}var $t,ce;function Ze(){if(ce)return $t;ce=1;const e=We(),r=["suggest","format","onState","validate","onRender","type"],c=()=>{};async function t(m=[],{onSubmit:o=c,onCancel:n=c}={}){const s={},u=t._override||{};m=[].concat(m);let p,a,h,f,g,x;const y=async(S,v,b=!1)=>{if(!(!b&&S.validate&&S.validate(v)!==!0))return S.format?await S.format(v,s):v};for(a of m)if({name:f,type:g}=a,typeof g=="function"&&(g=await g(p,{...s},a),a.type=g),!!g){for(let S in a){if(r.includes(S))continue;let v=a[S];a[S]=typeof v=="function"?await v(p,{...s},x):v}if(x=a,typeof a.message!="string")throw new Error("prompt message is required");if({name:f,type:g}=a,e[g]===void 0)throw new Error(`prompt type (${g}) is not defined`);if(u[a.name]!==void 0&&(p=await y(a,u[a.name]),p!==void 0)){s[f]=p;continue}try{p=t._injected?l(t._injected,a.initial):await e[g](a),s[f]=p=await y(a,p,!0),h=await o(a,p,s)}catch{h=!await n(a,s)}if(h)return s}return s}function l(m,o){const n=m.shift();if(n instanceof Error)throw n;return n===void 0?o:n}function d(m){t._injected=(t._injected||[]).concat(m)}function i(m){t._override=Object.assign({},m)}return $t=Object.assign(t,{prompt:t,prompts:e,inject:d,override:i}),$t}var Xe=Ze();const Qe=Pt(Xe);let j=!0;const L=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Y=0;if(L.process&&L.process.env&&L.process.stdout){const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,NO_COLOR:c,TERM:t,COLORTERM:l}=L.process.env;r||c||e==="0"?j=!1:e==="1"||e==="2"||e==="3"?j=!0:t==="dumb"?j=!1:"CI"in L.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(d=>d in L.process.env)?j=!0:j=process.stdout.isTTY,j&&(process.platform==="win32"||l&&(l==="truecolor"||l==="24bit")?Y=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?Y=2:Y=1)}let de={enabled:j,supportLevel:Y};function F(e,r,c=1){const t=`\x1B[${e}m`,l=`\x1B[${r}m`,d=new RegExp(`\\x1b\\[${r}m`,"g");return i=>de.enabled&&de.supportLevel>=c?t+(""+i).replace(d,t)+l:""+i}const H=F(0,0),Mt=F(31,39),fe=F(32,39),pe=F(33,39),ti=F(36,39),ei=F(37,39),ii=F(92,39),Ot=Oe(process.argv.slice(2),{string:["_"]}),Rt=process.cwd(),me=[{name:"vanilla",display:"Vanilla",color:pe,variants:[{name:"vanilla",display:"JavaScript",color:pe}]},{name:"react",display:"React",color:ti,variants:[{name:"react-leo",display:"JavaScript + Leo",color:ii},{name:"react-ts",display:"React + TypeScript",color:Mt},{name:"nextjs-ts",display:"TypeScript + Next.js",color:ei}]},{name:"node",display:"Node.js",color:fe,variants:[{name:"node",display:"Node.js",color:fe}]}],ge=me.map(e=>e.variants&&e.variants.map(r=>r.name)||[e.name]).reduce((e,r)=>e.concat(r),[]),si={_gitignore:".gitignore"},Tt="aleo-project";async function ri(){const e=ve(Ot._[0]),r=Ot.template||Ot.t;let c=e||Tt;const t=()=>c==="."?P.basename(P.resolve()):c;let l;try{l=await Qe([{type:e?null:"text",name:"projectName",message:H("Project name:"),initial:Tt,onState:y=>{c=ve(y.value)||Tt}},{type:()=>!T.existsSync(c)||li(c)?null:"confirm",name:"overwrite",message:()=>(c==="."?"Current directory":`Target directory "${c}"`)+" is not empty. Remove existing files and continue?"},{type:(y,{overwrite:S})=>{if(S===!1)throw new Error(Mt("\u2716")+" Operation cancelled");return null},name:"overwriteChecker"},{type:()=>we(t())?null:"text",name:"packageName",message:H("Package name:"),initial:()=>ni(t()),validate:y=>we(y)||"Invalid package.json name"},{type:r&&ge.includes(r)?null:"select",name:"framework",message:typeof r=="string"&&!ge.includes(r)?H(`"${r}" isn't a valid template. Please choose from below: `):H("Select a framework:"),initial:0,choices:me.map(y=>{const S=y.color;return{title:S(y.display||y.name),value:y}})},{type:y=>y&&y.variants?"select":null,name:"variant",message:H("Select a variant:"),choices:y=>y.variants.map(S=>{const v=S.color;return{title:v(S.display||S.name),value:S.name}})}],{onCancel:()=>{throw new Error(Mt("\u2716")+" Operation cancelled")}})}catch(y){console.log(y.message);return}const{framework:d,overwrite:i,packageName:m,variant:o}=l,n=P.join(Rt,c);i?hi(n):T.existsSync(n)||T.mkdirSync(n,{recursive:!0});let s=o||d?.name||r;const u=ai(process.env.npm_config_user_agent),p=u?u.name:"npm";console.log(`
49
+ Scaffolding project in ${n}...`);const a=P.resolve(ye(import.meta.url),"../..",`template-${s}`),h=(y,S)=>{const v=P.join(n,si[y]??y);S?T.writeFileSync(v,S):be(P.join(a,y),v)},f=T.readdirSync(a);for(const y of f.filter(S=>S!=="package.json"))h(y);const g=JSON.parse(T.readFileSync(P.join(a,"package.json"),"utf-8"));g.name=m||t(),h("package.json",JSON.stringify(g,null,2)+`
50
+ `);const x=P.relative(Rt,n);switch(console.log(`
51
51
  Done. Now run:
52
- `),l!==wt&&console.log(` cd ${x.includes(" ")?`"${x}"`:x}`),a){default:console.log(` ${a} install`),console.log(` ${a} run dev`);break}console.log()}function re(s){return s?.trim().replace(/\/+$/g,"")}function ne(s,t){S.statSync(s).isDirectory()?ji(s,t):S.copyFileSync(s,t)}function oe(s){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(s)}function Ai(s){return s.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function ji(s,t){S.mkdirSync(t,{recursive:!0});for(const e of S.readdirSync(s)){const i=O.resolve(s,e),n=O.resolve(t,e);ne(i,n)}}function Fi(s){const t=S.readdirSync(s);return t.length===0||t.length===1&&t[0]===".git"}function Ni(s){if(S.existsSync(s))for(const t of S.readdirSync(s))t!==".git"&&S.rmSync(O.resolve(s,t),{recursive:!0,force:!0})}function Li(s){if(!s)return;const t=s.split(" ")[0].split("/");return{name:t[0],version:t[1]}}Ri().catch(s=>{console.error(s)});
52
+ `),n!==Rt&&console.log(` cd ${x.includes(" ")?`"${x}"`:x}`),p){default:console.log(` ${p} install`),console.log(` ${p} run dev`);break}console.log()}function ve(e){return e?.trim().replace(/\/+$/g,"")}function be(e,r){T.statSync(e).isDirectory()?oi(e,r):T.copyFileSync(e,r)}function we(e){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e)}function ni(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function oi(e,r){T.mkdirSync(r,{recursive:!0});for(const c of T.readdirSync(e)){const t=P.resolve(e,c),l=P.resolve(r,c);be(t,l)}}function li(e){const r=T.readdirSync(e);return r.length===0||r.length===1&&r[0]===".git"}function hi(e){if(T.existsSync(e))for(const r of T.readdirSync(e))r!==".git"&&T.rmSync(P.resolve(e,r),{recursive:!0,force:!0})}function ai(e){if(!e)return;const r=e.split(" ")[0].split("/");return{name:r[0],version:r[1]}}ri().catch(e=>{console.error(e)});
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "create-leo-app",
3
- "version": "0.7.3",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "license": "GPL-3.0",
6
6
  "collaborators": [
7
7
  "The Provable Team"
8
8
  ],
9
- "bin": {
10
- "create-leo-app": "index.js"
11
- },
9
+ "bin": "index.js",
12
10
  "files": [
13
11
  "index.js",
14
12
  "template-extension",
@@ -31,11 +29,11 @@
31
29
  "node": "^14.18.0 || >=16.0.0"
32
30
  },
33
31
  "devDependencies": {
34
- "@types/minimist": "^1.2.2",
35
- "@types/prompts": "^2.4.4",
32
+ "@types/minimist": "^1.2.5",
33
+ "@types/prompts": "^2.4.9",
36
34
  "kolorist": "^1.8.0",
37
35
  "minimist": "^1.2.8",
38
36
  "prompts": "^2.4.2",
39
- "unbuild": "^1.2.1"
37
+ "unbuild": "^3.3.1"
40
38
  }
41
39
  }
@@ -7,9 +7,9 @@
7
7
  "build": "rimraf static/js && rollup --config"
8
8
  },
9
9
  "devDependencies": {
10
- "@provablehq/sdk": "^0.7.0",
11
- "@web/rollup-plugin-import-meta-assets": "^2.1.0",
12
- "rimraf": "^5.0.1",
13
- "rollup": "^4.0.0"
10
+ "@provablehq/sdk": "^0.8.0",
11
+ "@web/rollup-plugin-import-meta-assets": "^2.2.1",
12
+ "rimraf": "^6.0.1",
13
+ "rollup": "^4.32.0"
14
14
  }
15
15
  }
@@ -9,16 +9,16 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@provablehq/sdk": "^0.7.0",
13
- "next": "13.5.4",
14
- "react": "^18",
15
- "react-dom": "^18",
16
- "terser-webpack-plugin": "^5.3.9"
12
+ "@provablehq/sdk": "^0.8.0",
13
+ "next": "15.1.6",
14
+ "react": "^19.0.0",
15
+ "react-dom": "^19.0.0",
16
+ "terser-webpack-plugin": "^5.3.11"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^20",
20
- "@types/react": "^18",
21
- "@types/react-dom": "^18",
22
- "typescript": "^5"
19
+ "@types/node": "^22.12.0",
20
+ "@types/react": "^19.0.8",
21
+ "@types/react-dom": "^19.0.3",
22
+ "typescript": "^5.7.3"
23
23
  }
24
24
  }
@@ -4,9 +4,9 @@
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "start": "node index.js"
7
+ "dev": "node index.js"
8
8
  },
9
9
  "dependencies": {
10
- "@provablehq/sdk": "^0.7.0"
10
+ "@provablehq/sdk": "^0.8.0"
11
11
  }
12
12
  }
@@ -5,15 +5,15 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rimraf dist/js && rollup --config",
8
- "start": "npm run build && node dist/index.js"
8
+ "dev": "npm run build && node dist/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@provablehq/sdk": "^0.7.0"
11
+ "@provablehq/sdk": "^0.8.0"
12
12
  },
13
13
  "devDependencies": {
14
- "rimraf": "^5.0.1",
15
- "rollup": "^3.27.2",
14
+ "rimraf": "^6.0.1",
15
+ "rollup": "^4.32.0",
16
16
  "rollup-plugin-typescript2": "^0.36.0",
17
- "typescript": "^5.2.2"
17
+ "typescript": "^5.7.3"
18
18
  }
19
19
  }
@@ -5,15 +5,15 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rimraf dist/js && rollup --config",
8
- "start": "npm run build && node dist/index.js"
8
+ "dev": "npm run build && node dist/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@provablehq/sdk": "^0.7.0"
11
+ "@provablehq/sdk": "^0.8.0"
12
12
  },
13
13
  "devDependencies": {
14
- "rimraf": "^5.0.1",
15
- "rollup": "^3.27.2",
14
+ "rimraf": "^6.0.1",
15
+ "rollup": "^4.32.0",
16
16
  "rollup-plugin-typescript2": "^0.36.0",
17
- "typescript": "^5.2.2"
17
+ "typescript": "^5.7.3"
18
18
  }
19
19
  }