ccjk 12.0.0 → 12.0.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 (161) hide show
  1. package/dist/chunks/agent-teams.mjs +17 -18
  2. package/dist/chunks/agent.mjs +105 -102
  3. package/dist/chunks/agents.mjs +87 -77
  4. package/dist/chunks/api-cli.mjs +41 -27
  5. package/dist/chunks/api-providers.mjs +2 -4
  6. package/dist/chunks/api.mjs +22 -11
  7. package/dist/chunks/auto-bootstrap.mjs +3 -5
  8. package/dist/chunks/auto-init.mjs +3 -4
  9. package/dist/chunks/auto-updater.mjs +103 -91
  10. package/dist/chunks/banner.mjs +41 -42
  11. package/dist/chunks/boost.mjs +30 -31
  12. package/dist/chunks/ccjk-agents.mjs +6 -9
  13. package/dist/chunks/ccjk-all.mjs +703 -85
  14. package/dist/chunks/ccjk-config.mjs +6 -6
  15. package/dist/chunks/ccjk-hooks.mjs +20 -9
  16. package/dist/chunks/ccjk-mcp.mjs +64 -52
  17. package/dist/chunks/ccjk-setup.mjs +35 -25
  18. package/dist/chunks/ccjk-skills.mjs +51 -41
  19. package/dist/chunks/ccr.mjs +42 -32
  20. package/dist/chunks/ccu.mjs +16 -12
  21. package/dist/chunks/check-updates.mjs +30 -19
  22. package/dist/chunks/claude-code-config-manager.mjs +25 -10
  23. package/dist/chunks/claude-code-incremental-manager.mjs +65 -51
  24. package/dist/chunks/claude-config.mjs +2 -2
  25. package/dist/chunks/claude-wrapper.mjs +9 -6
  26. package/dist/chunks/cleanup-migration.mjs +1 -1
  27. package/dist/chunks/cli-hook.mjs +10 -3
  28. package/dist/chunks/cloud-sync.mjs +1 -1
  29. package/dist/chunks/codex-config-switch.mjs +58 -45
  30. package/dist/chunks/codex-provider-manager.mjs +29 -16
  31. package/dist/chunks/codex-uninstaller.mjs +5 -6
  32. package/dist/chunks/codex.mjs +89 -89
  33. package/dist/chunks/commands.mjs +28 -29
  34. package/dist/chunks/commands2.mjs +4 -3
  35. package/dist/chunks/commit.mjs +42 -23
  36. package/dist/chunks/completion.mjs +46 -47
  37. package/dist/chunks/config-consolidator.mjs +12 -13
  38. package/dist/chunks/config-switch.mjs +66 -53
  39. package/dist/chunks/config.mjs +10 -10
  40. package/dist/chunks/config2.mjs +53 -42
  41. package/dist/chunks/config3.mjs +107 -93
  42. package/dist/chunks/constants.mjs +2 -4
  43. package/dist/chunks/context-loader.mjs +5 -4
  44. package/dist/chunks/context.mjs +77 -76
  45. package/dist/chunks/convoy-manager.mjs +4 -4
  46. package/dist/chunks/dashboard.mjs +28 -29
  47. package/dist/chunks/doctor.mjs +68 -54
  48. package/dist/chunks/evolution.mjs +37 -38
  49. package/dist/chunks/features.mjs +103 -92
  50. package/dist/chunks/fs-operations.mjs +1 -1
  51. package/dist/chunks/health-alerts.mjs +1 -1
  52. package/dist/chunks/health-check.mjs +1 -1
  53. package/dist/chunks/help.mjs +117 -116
  54. package/dist/chunks/hook-installer.mjs +3 -2
  55. package/dist/chunks/index.mjs +20 -6
  56. package/dist/chunks/index10.mjs +1171 -0
  57. package/dist/chunks/index11.mjs +1008 -0
  58. package/dist/chunks/index12.mjs +193 -0
  59. package/dist/chunks/index13.mjs +218 -0
  60. package/dist/chunks/index14.mjs +663 -0
  61. package/dist/chunks/index2.mjs +19 -10
  62. package/dist/chunks/index3.mjs +19079 -164
  63. package/dist/chunks/index4.mjs +8 -1171
  64. package/dist/chunks/index5.mjs +7479 -884
  65. package/dist/chunks/index6.mjs +160 -184
  66. package/dist/chunks/index7.mjs +3573 -653
  67. package/dist/chunks/index8.mjs +19 -0
  68. package/dist/chunks/index9.mjs +616 -0
  69. package/dist/chunks/init.mjs +173 -173
  70. package/dist/chunks/installer.mjs +92 -82
  71. package/dist/chunks/installer2.mjs +3 -2
  72. package/dist/chunks/interview.mjs +118 -107
  73. package/dist/chunks/json-config.mjs +3 -2
  74. package/dist/chunks/linux.mjs +3863 -0
  75. package/dist/chunks/macos.mjs +69 -0
  76. package/dist/chunks/main.mjs +635 -0
  77. package/dist/chunks/marketplace.mjs +69 -66
  78. package/dist/chunks/mcp-cli.mjs +61 -48
  79. package/dist/chunks/mcp.mjs +140 -127
  80. package/dist/chunks/menu.mjs +85 -85
  81. package/dist/chunks/metrics-display.mjs +41 -40
  82. package/dist/chunks/migrator.mjs +4 -5
  83. package/dist/chunks/monitor.mjs +95 -95
  84. package/dist/chunks/notification.mjs +151 -141
  85. package/dist/chunks/onboarding.mjs +26 -15
  86. package/dist/chunks/package.mjs +1 -1
  87. package/dist/chunks/paradigm.mjs +24 -23
  88. package/dist/chunks/permission-manager.mjs +10 -11
  89. package/dist/chunks/permissions.mjs +72 -57
  90. package/dist/chunks/persistence-manager.mjs +97 -84
  91. package/dist/chunks/persistence.mjs +1 -1
  92. package/dist/chunks/platform.mjs +29 -29
  93. package/dist/chunks/plugin.mjs +104 -105
  94. package/dist/chunks/prompts.mjs +36 -25
  95. package/dist/chunks/providers.mjs +68 -69
  96. package/dist/chunks/quick-actions.mjs +71 -72
  97. package/dist/chunks/quick-provider.mjs +56 -40
  98. package/dist/chunks/quick-setup.mjs +71 -60
  99. package/dist/chunks/remote.mjs +21 -12
  100. package/dist/chunks/session.mjs +116 -103
  101. package/dist/chunks/sessions.mjs +29 -28
  102. package/dist/chunks/silent-updater.mjs +8 -10
  103. package/dist/chunks/simple-config.mjs +13 -10
  104. package/dist/chunks/skill.mjs +8560 -103
  105. package/dist/chunks/skills-sync.mjs +5212 -79
  106. package/dist/chunks/skills.mjs +105 -94
  107. package/dist/chunks/slash-commands.mjs +36 -37
  108. package/dist/chunks/smart-defaults.mjs +7 -3
  109. package/dist/chunks/smart-guide.mjs +1 -1
  110. package/dist/chunks/startup.mjs +2 -4
  111. package/dist/chunks/stats.mjs +41 -42
  112. package/dist/chunks/status.mjs +49 -50
  113. package/dist/chunks/team.mjs +24 -12
  114. package/dist/chunks/thinking.mjs +74 -63
  115. package/dist/chunks/trace.mjs +20 -19
  116. package/dist/chunks/uninstall.mjs +69 -56
  117. package/dist/chunks/update.mjs +39 -28
  118. package/dist/chunks/upgrade-manager.mjs +24 -18
  119. package/dist/chunks/version-checker.mjs +45 -41
  120. package/dist/chunks/vim.mjs +81 -69
  121. package/dist/chunks/windows.mjs +14 -0
  122. package/dist/chunks/workflows.mjs +15 -15
  123. package/dist/chunks/wsl.mjs +129 -0
  124. package/dist/chunks/zero-config.mjs +45 -34
  125. package/dist/cli.mjs +20 -20
  126. package/dist/index.mjs +41 -31
  127. package/dist/shared/ccjk.BAGoDD49.mjs +36 -0
  128. package/dist/shared/ccjk.BBtCGd_g.mjs +899 -0
  129. package/dist/shared/{ccjk.CGcy7cNM.mjs → ccjk.BDKUdmLk.mjs} +1 -1
  130. package/dist/shared/{ccjk.DtMBiwVG.mjs → ccjk.BFxsJM0k.mjs} +1 -1
  131. package/dist/shared/{ccjk.j4uut26D.mjs → ccjk.BIxuVL3_.mjs} +5 -5
  132. package/dist/shared/ccjk.BRZ9ww8S.mjs +142 -0
  133. package/dist/shared/{ccjk.CN0edl87.mjs → ccjk.BSYWk9ML.mjs} +1 -1
  134. package/dist/shared/{ccjk.Dk1HDseQ.mjs → ccjk.BnpWvs9V.mjs} +75 -75
  135. package/dist/shared/ccjk.BoApaI4j.mjs +28 -0
  136. package/dist/shared/{ccjk.DKojSRzw.mjs → ccjk.BrPUmTqm.mjs} +1 -1
  137. package/dist/shared/{ccjk.C10pepYx.mjs → ccjk.BxSmJ8B7.mjs} +1 -1
  138. package/dist/shared/ccjk.Bx_rmYfN.mjs +69 -0
  139. package/dist/shared/ccjk.COweQ1RR.mjs +5 -0
  140. package/dist/shared/{ccjk.BN90X6oc.mjs → ccjk.CePkJq2S.mjs} +17 -17
  141. package/dist/shared/{ccjk.Bvoex4TZ.mjs → ccjk.CfKKcvWy.mjs} +1 -1
  142. package/dist/shared/ccjk.Cjgrln_h.mjs +297 -0
  143. package/dist/shared/ccjk.CxpGa6MC.mjs +2724 -0
  144. package/dist/shared/{ccjk.DfwJOEok.mjs → ccjk.D5MFQT7w.mjs} +1 -1
  145. package/dist/shared/{ccjk.cChAaGgT.mjs → ccjk.DG_o24cZ.mjs} +6 -6
  146. package/dist/shared/{ccjk.bhFAMRyc.mjs → ccjk.DLLw-h4Y.mjs} +32 -32
  147. package/dist/shared/ccjk.DOwtZMk8.mjs +4019 -0
  148. package/dist/shared/{ccjk.BsXQugfY.mjs → ccjk.DTdjs-qK.mjs} +13 -13
  149. package/dist/shared/{ccjk.Bdhyg3X-.mjs → ccjk.DsYaCCx4.mjs} +1 -1
  150. package/dist/shared/ccjk.KfSWcGlE.mjs +38 -0
  151. package/dist/shared/ccjk.RyizuzOI.mjs +21 -0
  152. package/dist/shared/{ccjk.h7_W-wTs.mjs → ccjk.SPoXMvZD.mjs} +1 -1
  153. package/dist/shared/ccjk.T_cX87dY.mjs +15 -0
  154. package/dist/shared/{ccjk.CrB6OYHv.mjs → ccjk._dESH4Rk.mjs} +2 -2
  155. package/dist/shared/ccjk.bQ7Dh1g4.mjs +249 -0
  156. package/dist/shared/{ccjk.CBhIZiPz.mjs → ccjk.hoqrwWdN.mjs} +1 -1
  157. package/dist/shared/{ccjk.BNwRnWYx.mjs → ccjk.s7OCVzdd.mjs} +1230 -33
  158. package/dist/shared/{ccjk.BOIUTf5z.mjs → ccjk.waa2ikKJ.mjs} +8 -9
  159. package/package.json +31 -30
  160. package/dist/shared/ccjk.DHbrGcgg.mjs +0 -13
  161. package/dist/shared/ccjk.DntgA8fQ.mjs +0 -42
@@ -0,0 +1,4019 @@
1
+ import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from './ccjk.BAGoDD49.mjs';
2
+ import require$$0$1 from 'node:async_hooks';
3
+ import { r as requireCliWidth, a as requireWrapAnsi, b as requireStripAnsi } from '../chunks/index3.mjs';
4
+ import readline__default from 'node:readline';
5
+ import require$$0$2 from 'stream';
6
+ import process__default from 'node:process';
7
+
8
+ var dist = {};
9
+
10
+ var cjs$2 = {};
11
+
12
+ var key = {};
13
+
14
+ var hasRequiredKey;
15
+
16
+ function requireKey () {
17
+ if (hasRequiredKey) return key;
18
+ hasRequiredKey = 1;
19
+ Object.defineProperty(key, "__esModule", { value: true });
20
+ key.isEnterKey = key.isNumberKey = key.isBackspaceKey = key.isSpaceKey = key.isDownKey = key.isUpKey = void 0;
21
+ const isUpKey = (key) =>
22
+ // The up key
23
+ key.name === 'up' ||
24
+ // Vim keybinding
25
+ key.name === 'k' ||
26
+ // Emacs keybinding
27
+ (key.ctrl && key.name === 'p');
28
+ key.isUpKey = isUpKey;
29
+ const isDownKey = (key) =>
30
+ // The down key
31
+ key.name === 'down' ||
32
+ // Vim keybinding
33
+ key.name === 'j' ||
34
+ // Emacs keybinding
35
+ (key.ctrl && key.name === 'n');
36
+ key.isDownKey = isDownKey;
37
+ const isSpaceKey = (key) => key.name === 'space';
38
+ key.isSpaceKey = isSpaceKey;
39
+ const isBackspaceKey = (key) => key.name === 'backspace';
40
+ key.isBackspaceKey = isBackspaceKey;
41
+ const isNumberKey = (key) => '123456789'.includes(key.name);
42
+ key.isNumberKey = isNumberKey;
43
+ const isEnterKey = (key) => key.name === 'enter' || key.name === 'return';
44
+ key.isEnterKey = isEnterKey;
45
+ return key;
46
+ }
47
+
48
+ var errors = {};
49
+
50
+ var hasRequiredErrors;
51
+
52
+ function requireErrors () {
53
+ if (hasRequiredErrors) return errors;
54
+ hasRequiredErrors = 1;
55
+ Object.defineProperty(errors, "__esModule", { value: true });
56
+ errors.ValidationError = errors.HookError = errors.ExitPromptError = errors.CancelPromptError = void 0;
57
+ class CancelPromptError extends Error {
58
+ constructor() {
59
+ super(...arguments);
60
+ Object.defineProperty(this, "message", {
61
+ enumerable: true,
62
+ configurable: true,
63
+ writable: true,
64
+ value: 'Prompt was canceled'
65
+ });
66
+ }
67
+ }
68
+ errors.CancelPromptError = CancelPromptError;
69
+ class ExitPromptError extends Error {
70
+ }
71
+ errors.ExitPromptError = ExitPromptError;
72
+ class HookError extends Error {
73
+ }
74
+ errors.HookError = HookError;
75
+ class ValidationError extends Error {
76
+ }
77
+ errors.ValidationError = ValidationError;
78
+ return errors;
79
+ }
80
+
81
+ var usePrefix = {};
82
+
83
+ var useState = {};
84
+
85
+ var hookEngine = {};
86
+
87
+ var hasRequiredHookEngine;
88
+
89
+ function requireHookEngine () {
90
+ if (hasRequiredHookEngine) return hookEngine;
91
+ hasRequiredHookEngine = 1;
92
+ /* eslint @typescript-eslint/no-explicit-any: ["off"] */
93
+ Object.defineProperty(hookEngine, "__esModule", { value: true });
94
+ hookEngine.effectScheduler = void 0;
95
+ hookEngine.withHooks = withHooks;
96
+ hookEngine.readline = readline;
97
+ hookEngine.withUpdates = withUpdates;
98
+ hookEngine.withPointer = withPointer;
99
+ hookEngine.handleChange = handleChange;
100
+ const node_async_hooks_1 = require$$0$1;
101
+ const errors_mjs_1 = /*@__PURE__*/ requireErrors();
102
+ const hookStorage = new node_async_hooks_1.AsyncLocalStorage();
103
+ function createStore(rl) {
104
+ const store = {
105
+ rl,
106
+ hooks: [],
107
+ hooksCleanup: [],
108
+ hooksEffect: [],
109
+ index: 0,
110
+ handleChange() { },
111
+ };
112
+ return store;
113
+ }
114
+ // Run callback in with the hook engine setup.
115
+ function withHooks(rl, cb) {
116
+ const store = createStore(rl);
117
+ return hookStorage.run(store, () => {
118
+ cb(store);
119
+ });
120
+ }
121
+ // Safe getStore utility that'll return the store or throw if undefined.
122
+ function getStore() {
123
+ const store = hookStorage.getStore();
124
+ if (!store) {
125
+ throw new errors_mjs_1.HookError('[Inquirer] Hook functions can only be called from within a prompt');
126
+ }
127
+ return store;
128
+ }
129
+ function readline() {
130
+ return getStore().rl;
131
+ }
132
+ // Merge state updates happening within the callback function to avoid multiple renders.
133
+ function withUpdates(fn) {
134
+ const wrapped = (...args) => {
135
+ const store = getStore();
136
+ let shouldUpdate = false;
137
+ const oldHandleChange = store.handleChange;
138
+ store.handleChange = () => {
139
+ shouldUpdate = true;
140
+ };
141
+ const returnValue = fn(...args);
142
+ if (shouldUpdate) {
143
+ oldHandleChange();
144
+ }
145
+ store.handleChange = oldHandleChange;
146
+ return returnValue;
147
+ };
148
+ return node_async_hooks_1.AsyncResource.bind(wrapped);
149
+ }
150
+ function withPointer(cb) {
151
+ const store = getStore();
152
+ const { index } = store;
153
+ const pointer = {
154
+ get() {
155
+ return store.hooks[index];
156
+ },
157
+ set(value) {
158
+ store.hooks[index] = value;
159
+ },
160
+ initialized: index in store.hooks,
161
+ };
162
+ const returnValue = cb(pointer);
163
+ store.index++;
164
+ return returnValue;
165
+ }
166
+ function handleChange() {
167
+ getStore().handleChange();
168
+ }
169
+ hookEngine.effectScheduler = {
170
+ queue(cb) {
171
+ const store = getStore();
172
+ const { index } = store;
173
+ store.hooksEffect.push(() => {
174
+ var _a, _b;
175
+ (_b = (_a = store.hooksCleanup)[index]) === null || _b === void 0 ? void 0 : _b.call(_a);
176
+ const cleanFn = cb(readline());
177
+ if (cleanFn != null && typeof cleanFn !== 'function') {
178
+ throw new errors_mjs_1.ValidationError('useEffect return value must be a cleanup function or nothing.');
179
+ }
180
+ store.hooksCleanup[index] = cleanFn;
181
+ });
182
+ },
183
+ run() {
184
+ const store = getStore();
185
+ withUpdates(() => {
186
+ store.hooksEffect.forEach((effect) => {
187
+ effect();
188
+ });
189
+ // Warning: Clean the hooks before exiting the `withUpdates` block.
190
+ // Failure to do so means an updates would hit the same effects again.
191
+ store.hooksEffect.length = 0;
192
+ })();
193
+ },
194
+ };
195
+ return hookEngine;
196
+ }
197
+
198
+ var hasRequiredUseState;
199
+
200
+ function requireUseState () {
201
+ if (hasRequiredUseState) return useState;
202
+ hasRequiredUseState = 1;
203
+ Object.defineProperty(useState, "__esModule", { value: true });
204
+ useState.useState = useState$1;
205
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
206
+ function useState$1(defaultValue) {
207
+ return (0, hook_engine_mjs_1.withPointer)((pointer) => {
208
+ const setFn = (newValue) => {
209
+ // Noop if the value is still the same.
210
+ if (pointer.get() !== newValue) {
211
+ pointer.set(newValue);
212
+ // Trigger re-render
213
+ (0, hook_engine_mjs_1.handleChange)();
214
+ }
215
+ };
216
+ if (pointer.initialized) {
217
+ return [pointer.get(), setFn];
218
+ }
219
+ const value = typeof defaultValue === 'function' ? defaultValue() : defaultValue;
220
+ pointer.set(value);
221
+ return [value, setFn];
222
+ });
223
+ }
224
+ return useState;
225
+ }
226
+
227
+ var useEffect = {};
228
+
229
+ var hasRequiredUseEffect;
230
+
231
+ function requireUseEffect () {
232
+ if (hasRequiredUseEffect) return useEffect;
233
+ hasRequiredUseEffect = 1;
234
+ Object.defineProperty(useEffect, "__esModule", { value: true });
235
+ useEffect.useEffect = useEffect$1;
236
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
237
+ function useEffect$1(cb, depArray) {
238
+ (0, hook_engine_mjs_1.withPointer)((pointer) => {
239
+ const oldDeps = pointer.get();
240
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
241
+ if (hasChanged) {
242
+ hook_engine_mjs_1.effectScheduler.queue(cb);
243
+ }
244
+ pointer.set(depArray);
245
+ });
246
+ }
247
+ return useEffect;
248
+ }
249
+
250
+ var makeTheme = {};
251
+
252
+ var theme = {};
253
+
254
+ var picocolors = {exports: {}};
255
+
256
+ var hasRequiredPicocolors;
257
+
258
+ function requirePicocolors () {
259
+ if (hasRequiredPicocolors) return picocolors.exports;
260
+ hasRequiredPicocolors = 1;
261
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
262
+ let isColorSupported =
263
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
264
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
265
+
266
+ let formatter = (open, close, replace = open) =>
267
+ input => {
268
+ let string = "" + input, index = string.indexOf(close, open.length);
269
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
270
+ };
271
+
272
+ let replaceClose = (string, close, replace, index) => {
273
+ let result = "", cursor = 0;
274
+ do {
275
+ result += string.substring(cursor, index) + replace;
276
+ cursor = index + close.length;
277
+ index = string.indexOf(close, cursor);
278
+ } while (~index)
279
+ return result + string.substring(cursor)
280
+ };
281
+
282
+ let createColors = (enabled = isColorSupported) => {
283
+ let f = enabled ? formatter : () => String;
284
+ return {
285
+ isColorSupported: enabled,
286
+ reset: f("\x1b[0m", "\x1b[0m"),
287
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
288
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
289
+ italic: f("\x1b[3m", "\x1b[23m"),
290
+ underline: f("\x1b[4m", "\x1b[24m"),
291
+ inverse: f("\x1b[7m", "\x1b[27m"),
292
+ hidden: f("\x1b[8m", "\x1b[28m"),
293
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
294
+
295
+ black: f("\x1b[30m", "\x1b[39m"),
296
+ red: f("\x1b[31m", "\x1b[39m"),
297
+ green: f("\x1b[32m", "\x1b[39m"),
298
+ yellow: f("\x1b[33m", "\x1b[39m"),
299
+ blue: f("\x1b[34m", "\x1b[39m"),
300
+ magenta: f("\x1b[35m", "\x1b[39m"),
301
+ cyan: f("\x1b[36m", "\x1b[39m"),
302
+ white: f("\x1b[37m", "\x1b[39m"),
303
+ gray: f("\x1b[90m", "\x1b[39m"),
304
+
305
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
306
+ bgRed: f("\x1b[41m", "\x1b[49m"),
307
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
308
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
309
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
310
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
311
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
312
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
313
+
314
+ blackBright: f("\x1b[90m", "\x1b[39m"),
315
+ redBright: f("\x1b[91m", "\x1b[39m"),
316
+ greenBright: f("\x1b[92m", "\x1b[39m"),
317
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
318
+ blueBright: f("\x1b[94m", "\x1b[39m"),
319
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
320
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
321
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
322
+
323
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
324
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
325
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
326
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
327
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
328
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
329
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
330
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
331
+ }
332
+ };
333
+
334
+ picocolors.exports = createColors();
335
+ picocolors.exports.createColors = createColors;
336
+ return picocolors.exports;
337
+ }
338
+
339
+ const dots = {
340
+ interval: 80,
341
+ frames: [
342
+ "⠋",
343
+ "⠙",
344
+ "⠹",
345
+ "⠸",
346
+ "⠼",
347
+ "⠴",
348
+ "⠦",
349
+ "⠧",
350
+ "⠇",
351
+ "⠏"
352
+ ]
353
+ };
354
+ const dots2 = {
355
+ interval: 80,
356
+ frames: [
357
+ "⣾",
358
+ "⣽",
359
+ "⣻",
360
+ "⢿",
361
+ "⡿",
362
+ "⣟",
363
+ "⣯",
364
+ "⣷"
365
+ ]
366
+ };
367
+ const dots3 = {
368
+ interval: 80,
369
+ frames: [
370
+ "⠋",
371
+ "⠙",
372
+ "⠚",
373
+ "⠞",
374
+ "⠖",
375
+ "⠦",
376
+ "⠴",
377
+ "⠲",
378
+ "⠳",
379
+ "⠓"
380
+ ]
381
+ };
382
+ const dots4 = {
383
+ interval: 80,
384
+ frames: [
385
+ "⠄",
386
+ "⠆",
387
+ "⠇",
388
+ "⠋",
389
+ "⠙",
390
+ "⠸",
391
+ "⠰",
392
+ "⠠",
393
+ "⠰",
394
+ "⠸",
395
+ "⠙",
396
+ "⠋",
397
+ "⠇",
398
+ "⠆"
399
+ ]
400
+ };
401
+ const dots5 = {
402
+ interval: 80,
403
+ frames: [
404
+ "⠋",
405
+ "⠙",
406
+ "⠚",
407
+ "⠒",
408
+ "⠂",
409
+ "⠂",
410
+ "⠒",
411
+ "⠲",
412
+ "⠴",
413
+ "⠦",
414
+ "⠖",
415
+ "⠒",
416
+ "⠐",
417
+ "⠐",
418
+ "⠒",
419
+ "⠓",
420
+ "⠋"
421
+ ]
422
+ };
423
+ const dots6 = {
424
+ interval: 80,
425
+ frames: [
426
+ "⠁",
427
+ "⠉",
428
+ "⠙",
429
+ "⠚",
430
+ "⠒",
431
+ "⠂",
432
+ "⠂",
433
+ "⠒",
434
+ "⠲",
435
+ "⠴",
436
+ "⠤",
437
+ "⠄",
438
+ "⠄",
439
+ "⠤",
440
+ "⠴",
441
+ "⠲",
442
+ "⠒",
443
+ "⠂",
444
+ "⠂",
445
+ "⠒",
446
+ "⠚",
447
+ "⠙",
448
+ "⠉",
449
+ "⠁"
450
+ ]
451
+ };
452
+ const dots7 = {
453
+ interval: 80,
454
+ frames: [
455
+ "⠈",
456
+ "⠉",
457
+ "⠋",
458
+ "⠓",
459
+ "⠒",
460
+ "⠐",
461
+ "⠐",
462
+ "⠒",
463
+ "⠖",
464
+ "⠦",
465
+ "⠤",
466
+ "⠠",
467
+ "⠠",
468
+ "⠤",
469
+ "⠦",
470
+ "⠖",
471
+ "⠒",
472
+ "⠐",
473
+ "⠐",
474
+ "⠒",
475
+ "⠓",
476
+ "⠋",
477
+ "⠉",
478
+ "⠈"
479
+ ]
480
+ };
481
+ const dots8 = {
482
+ interval: 80,
483
+ frames: [
484
+ "⠁",
485
+ "⠁",
486
+ "⠉",
487
+ "⠙",
488
+ "⠚",
489
+ "⠒",
490
+ "⠂",
491
+ "⠂",
492
+ "⠒",
493
+ "⠲",
494
+ "⠴",
495
+ "⠤",
496
+ "⠄",
497
+ "⠄",
498
+ "⠤",
499
+ "⠠",
500
+ "⠠",
501
+ "⠤",
502
+ "⠦",
503
+ "⠖",
504
+ "⠒",
505
+ "⠐",
506
+ "⠐",
507
+ "⠒",
508
+ "⠓",
509
+ "⠋",
510
+ "⠉",
511
+ "⠈",
512
+ "⠈"
513
+ ]
514
+ };
515
+ const dots9 = {
516
+ interval: 80,
517
+ frames: [
518
+ "⢹",
519
+ "⢺",
520
+ "⢼",
521
+ "⣸",
522
+ "⣇",
523
+ "⡧",
524
+ "⡗",
525
+ "⡏"
526
+ ]
527
+ };
528
+ const dots10 = {
529
+ interval: 80,
530
+ frames: [
531
+ "⢄",
532
+ "⢂",
533
+ "⢁",
534
+ "⡁",
535
+ "⡈",
536
+ "⡐",
537
+ "⡠"
538
+ ]
539
+ };
540
+ const dots11 = {
541
+ interval: 100,
542
+ frames: [
543
+ "⠁",
544
+ "⠂",
545
+ "⠄",
546
+ "⡀",
547
+ "⢀",
548
+ "⠠",
549
+ "⠐",
550
+ "⠈"
551
+ ]
552
+ };
553
+ const dots12 = {
554
+ interval: 80,
555
+ frames: [
556
+ "⢀⠀",
557
+ "⡀⠀",
558
+ "⠄⠀",
559
+ "⢂⠀",
560
+ "⡂⠀",
561
+ "⠅⠀",
562
+ "⢃⠀",
563
+ "⡃⠀",
564
+ "⠍⠀",
565
+ "⢋⠀",
566
+ "⡋⠀",
567
+ "⠍⠁",
568
+ "⢋⠁",
569
+ "⡋⠁",
570
+ "⠍⠉",
571
+ "⠋⠉",
572
+ "⠋⠉",
573
+ "⠉⠙",
574
+ "⠉⠙",
575
+ "⠉⠩",
576
+ "⠈⢙",
577
+ "⠈⡙",
578
+ "⢈⠩",
579
+ "⡀⢙",
580
+ "⠄⡙",
581
+ "⢂⠩",
582
+ "⡂⢘",
583
+ "⠅⡘",
584
+ "⢃⠨",
585
+ "⡃⢐",
586
+ "⠍⡐",
587
+ "⢋⠠",
588
+ "⡋⢀",
589
+ "⠍⡁",
590
+ "⢋⠁",
591
+ "⡋⠁",
592
+ "⠍⠉",
593
+ "⠋⠉",
594
+ "⠋⠉",
595
+ "⠉⠙",
596
+ "⠉⠙",
597
+ "⠉⠩",
598
+ "⠈⢙",
599
+ "⠈⡙",
600
+ "⠈⠩",
601
+ "⠀⢙",
602
+ "⠀⡙",
603
+ "⠀⠩",
604
+ "⠀⢘",
605
+ "⠀⡘",
606
+ "⠀⠨",
607
+ "⠀⢐",
608
+ "⠀⡐",
609
+ "⠀⠠",
610
+ "⠀⢀",
611
+ "⠀⡀"
612
+ ]
613
+ };
614
+ const dots13 = {
615
+ interval: 80,
616
+ frames: [
617
+ "⣼",
618
+ "⣹",
619
+ "⢻",
620
+ "⠿",
621
+ "⡟",
622
+ "⣏",
623
+ "⣧",
624
+ "⣶"
625
+ ]
626
+ };
627
+ const dots8Bit = {
628
+ interval: 80,
629
+ frames: [
630
+ "⠀",
631
+ "⠁",
632
+ "⠂",
633
+ "⠃",
634
+ "⠄",
635
+ "⠅",
636
+ "⠆",
637
+ "⠇",
638
+ "⡀",
639
+ "⡁",
640
+ "⡂",
641
+ "⡃",
642
+ "⡄",
643
+ "⡅",
644
+ "⡆",
645
+ "⡇",
646
+ "⠈",
647
+ "⠉",
648
+ "⠊",
649
+ "⠋",
650
+ "⠌",
651
+ "⠍",
652
+ "⠎",
653
+ "⠏",
654
+ "⡈",
655
+ "⡉",
656
+ "⡊",
657
+ "⡋",
658
+ "⡌",
659
+ "⡍",
660
+ "⡎",
661
+ "⡏",
662
+ "⠐",
663
+ "⠑",
664
+ "⠒",
665
+ "⠓",
666
+ "⠔",
667
+ "⠕",
668
+ "⠖",
669
+ "⠗",
670
+ "⡐",
671
+ "⡑",
672
+ "⡒",
673
+ "⡓",
674
+ "⡔",
675
+ "⡕",
676
+ "⡖",
677
+ "⡗",
678
+ "⠘",
679
+ "⠙",
680
+ "⠚",
681
+ "⠛",
682
+ "⠜",
683
+ "⠝",
684
+ "⠞",
685
+ "⠟",
686
+ "⡘",
687
+ "⡙",
688
+ "⡚",
689
+ "⡛",
690
+ "⡜",
691
+ "⡝",
692
+ "⡞",
693
+ "⡟",
694
+ "⠠",
695
+ "⠡",
696
+ "⠢",
697
+ "⠣",
698
+ "⠤",
699
+ "⠥",
700
+ "⠦",
701
+ "⠧",
702
+ "⡠",
703
+ "⡡",
704
+ "⡢",
705
+ "⡣",
706
+ "⡤",
707
+ "⡥",
708
+ "⡦",
709
+ "⡧",
710
+ "⠨",
711
+ "⠩",
712
+ "⠪",
713
+ "⠫",
714
+ "⠬",
715
+ "⠭",
716
+ "⠮",
717
+ "⠯",
718
+ "⡨",
719
+ "⡩",
720
+ "⡪",
721
+ "⡫",
722
+ "⡬",
723
+ "⡭",
724
+ "⡮",
725
+ "⡯",
726
+ "⠰",
727
+ "⠱",
728
+ "⠲",
729
+ "⠳",
730
+ "⠴",
731
+ "⠵",
732
+ "⠶",
733
+ "⠷",
734
+ "⡰",
735
+ "⡱",
736
+ "⡲",
737
+ "⡳",
738
+ "⡴",
739
+ "⡵",
740
+ "⡶",
741
+ "⡷",
742
+ "⠸",
743
+ "⠹",
744
+ "⠺",
745
+ "⠻",
746
+ "⠼",
747
+ "⠽",
748
+ "⠾",
749
+ "⠿",
750
+ "⡸",
751
+ "⡹",
752
+ "⡺",
753
+ "⡻",
754
+ "⡼",
755
+ "⡽",
756
+ "⡾",
757
+ "⡿",
758
+ "⢀",
759
+ "⢁",
760
+ "⢂",
761
+ "⢃",
762
+ "⢄",
763
+ "⢅",
764
+ "⢆",
765
+ "⢇",
766
+ "⣀",
767
+ "⣁",
768
+ "⣂",
769
+ "⣃",
770
+ "⣄",
771
+ "⣅",
772
+ "⣆",
773
+ "⣇",
774
+ "⢈",
775
+ "⢉",
776
+ "⢊",
777
+ "⢋",
778
+ "⢌",
779
+ "⢍",
780
+ "⢎",
781
+ "⢏",
782
+ "⣈",
783
+ "⣉",
784
+ "⣊",
785
+ "⣋",
786
+ "⣌",
787
+ "⣍",
788
+ "⣎",
789
+ "⣏",
790
+ "⢐",
791
+ "⢑",
792
+ "⢒",
793
+ "⢓",
794
+ "⢔",
795
+ "⢕",
796
+ "⢖",
797
+ "⢗",
798
+ "⣐",
799
+ "⣑",
800
+ "⣒",
801
+ "⣓",
802
+ "⣔",
803
+ "⣕",
804
+ "⣖",
805
+ "⣗",
806
+ "⢘",
807
+ "⢙",
808
+ "⢚",
809
+ "⢛",
810
+ "⢜",
811
+ "⢝",
812
+ "⢞",
813
+ "⢟",
814
+ "⣘",
815
+ "⣙",
816
+ "⣚",
817
+ "⣛",
818
+ "⣜",
819
+ "⣝",
820
+ "⣞",
821
+ "⣟",
822
+ "⢠",
823
+ "⢡",
824
+ "⢢",
825
+ "⢣",
826
+ "⢤",
827
+ "⢥",
828
+ "⢦",
829
+ "⢧",
830
+ "⣠",
831
+ "⣡",
832
+ "⣢",
833
+ "⣣",
834
+ "⣤",
835
+ "⣥",
836
+ "⣦",
837
+ "⣧",
838
+ "⢨",
839
+ "⢩",
840
+ "⢪",
841
+ "⢫",
842
+ "⢬",
843
+ "⢭",
844
+ "⢮",
845
+ "⢯",
846
+ "⣨",
847
+ "⣩",
848
+ "⣪",
849
+ "⣫",
850
+ "⣬",
851
+ "⣭",
852
+ "⣮",
853
+ "⣯",
854
+ "⢰",
855
+ "⢱",
856
+ "⢲",
857
+ "⢳",
858
+ "⢴",
859
+ "⢵",
860
+ "⢶",
861
+ "⢷",
862
+ "⣰",
863
+ "⣱",
864
+ "⣲",
865
+ "⣳",
866
+ "⣴",
867
+ "⣵",
868
+ "⣶",
869
+ "⣷",
870
+ "⢸",
871
+ "⢹",
872
+ "⢺",
873
+ "⢻",
874
+ "⢼",
875
+ "⢽",
876
+ "⢾",
877
+ "⢿",
878
+ "⣸",
879
+ "⣹",
880
+ "⣺",
881
+ "⣻",
882
+ "⣼",
883
+ "⣽",
884
+ "⣾",
885
+ "⣿"
886
+ ]
887
+ };
888
+ const sand = {
889
+ interval: 80,
890
+ frames: [
891
+ "⠁",
892
+ "⠂",
893
+ "⠄",
894
+ "⡀",
895
+ "⡈",
896
+ "⡐",
897
+ "⡠",
898
+ "⣀",
899
+ "⣁",
900
+ "⣂",
901
+ "⣄",
902
+ "⣌",
903
+ "⣔",
904
+ "⣤",
905
+ "⣥",
906
+ "⣦",
907
+ "⣮",
908
+ "⣶",
909
+ "⣷",
910
+ "⣿",
911
+ "⡿",
912
+ "⠿",
913
+ "⢟",
914
+ "⠟",
915
+ "⡛",
916
+ "⠛",
917
+ "⠫",
918
+ "⢋",
919
+ "⠋",
920
+ "⠍",
921
+ "⡉",
922
+ "⠉",
923
+ "⠑",
924
+ "⠡",
925
+ "⢁"
926
+ ]
927
+ };
928
+ const line = {
929
+ interval: 130,
930
+ frames: [
931
+ "-",
932
+ "\\",
933
+ "|",
934
+ "/"
935
+ ]
936
+ };
937
+ const line2 = {
938
+ interval: 100,
939
+ frames: [
940
+ "⠂",
941
+ "-",
942
+ "–",
943
+ "—",
944
+ "–",
945
+ "-"
946
+ ]
947
+ };
948
+ const pipe = {
949
+ interval: 100,
950
+ frames: [
951
+ "┤",
952
+ "┘",
953
+ "┴",
954
+ "└",
955
+ "├",
956
+ "┌",
957
+ "┬",
958
+ "┐"
959
+ ]
960
+ };
961
+ const simpleDots = {
962
+ interval: 400,
963
+ frames: [
964
+ ". ",
965
+ ".. ",
966
+ "...",
967
+ " "
968
+ ]
969
+ };
970
+ const simpleDotsScrolling = {
971
+ interval: 200,
972
+ frames: [
973
+ ". ",
974
+ ".. ",
975
+ "...",
976
+ " ..",
977
+ " .",
978
+ " "
979
+ ]
980
+ };
981
+ const star = {
982
+ interval: 70,
983
+ frames: [
984
+ "✶",
985
+ "✸",
986
+ "✹",
987
+ "✺",
988
+ "✹",
989
+ "✷"
990
+ ]
991
+ };
992
+ const star2 = {
993
+ interval: 80,
994
+ frames: [
995
+ "+",
996
+ "x",
997
+ "*"
998
+ ]
999
+ };
1000
+ const flip = {
1001
+ interval: 70,
1002
+ frames: [
1003
+ "_",
1004
+ "_",
1005
+ "_",
1006
+ "-",
1007
+ "`",
1008
+ "`",
1009
+ "'",
1010
+ "´",
1011
+ "-",
1012
+ "_",
1013
+ "_",
1014
+ "_"
1015
+ ]
1016
+ };
1017
+ const hamburger = {
1018
+ interval: 100,
1019
+ frames: [
1020
+ "☱",
1021
+ "☲",
1022
+ "☴"
1023
+ ]
1024
+ };
1025
+ const growVertical = {
1026
+ interval: 120,
1027
+ frames: [
1028
+ "▁",
1029
+ "▃",
1030
+ "▄",
1031
+ "▅",
1032
+ "▆",
1033
+ "▇",
1034
+ "▆",
1035
+ "▅",
1036
+ "▄",
1037
+ "▃"
1038
+ ]
1039
+ };
1040
+ const growHorizontal = {
1041
+ interval: 120,
1042
+ frames: [
1043
+ "▏",
1044
+ "▎",
1045
+ "▍",
1046
+ "▌",
1047
+ "▋",
1048
+ "▊",
1049
+ "▉",
1050
+ "▊",
1051
+ "▋",
1052
+ "▌",
1053
+ "▍",
1054
+ "▎"
1055
+ ]
1056
+ };
1057
+ const balloon = {
1058
+ interval: 140,
1059
+ frames: [
1060
+ " ",
1061
+ ".",
1062
+ "o",
1063
+ "O",
1064
+ "@",
1065
+ "*",
1066
+ " "
1067
+ ]
1068
+ };
1069
+ const balloon2 = {
1070
+ interval: 120,
1071
+ frames: [
1072
+ ".",
1073
+ "o",
1074
+ "O",
1075
+ "°",
1076
+ "O",
1077
+ "o",
1078
+ "."
1079
+ ]
1080
+ };
1081
+ const noise = {
1082
+ interval: 100,
1083
+ frames: [
1084
+ "▓",
1085
+ "▒",
1086
+ "░"
1087
+ ]
1088
+ };
1089
+ const bounce = {
1090
+ interval: 120,
1091
+ frames: [
1092
+ "⠁",
1093
+ "⠂",
1094
+ "⠄",
1095
+ "⠂"
1096
+ ]
1097
+ };
1098
+ const boxBounce = {
1099
+ interval: 120,
1100
+ frames: [
1101
+ "▖",
1102
+ "▘",
1103
+ "▝",
1104
+ "▗"
1105
+ ]
1106
+ };
1107
+ const boxBounce2 = {
1108
+ interval: 100,
1109
+ frames: [
1110
+ "▌",
1111
+ "▀",
1112
+ "▐",
1113
+ "▄"
1114
+ ]
1115
+ };
1116
+ const triangle = {
1117
+ interval: 50,
1118
+ frames: [
1119
+ "◢",
1120
+ "◣",
1121
+ "◤",
1122
+ "◥"
1123
+ ]
1124
+ };
1125
+ const binary = {
1126
+ interval: 80,
1127
+ frames: [
1128
+ "010010",
1129
+ "001100",
1130
+ "100101",
1131
+ "111010",
1132
+ "111101",
1133
+ "010111",
1134
+ "101011",
1135
+ "111000",
1136
+ "110011",
1137
+ "110101"
1138
+ ]
1139
+ };
1140
+ const arc = {
1141
+ interval: 100,
1142
+ frames: [
1143
+ "◜",
1144
+ "◠",
1145
+ "◝",
1146
+ "◞",
1147
+ "◡",
1148
+ "◟"
1149
+ ]
1150
+ };
1151
+ const circle = {
1152
+ interval: 120,
1153
+ frames: [
1154
+ "◡",
1155
+ "⊙",
1156
+ "◠"
1157
+ ]
1158
+ };
1159
+ const squareCorners = {
1160
+ interval: 180,
1161
+ frames: [
1162
+ "◰",
1163
+ "◳",
1164
+ "◲",
1165
+ "◱"
1166
+ ]
1167
+ };
1168
+ const circleQuarters = {
1169
+ interval: 120,
1170
+ frames: [
1171
+ "◴",
1172
+ "◷",
1173
+ "◶",
1174
+ "◵"
1175
+ ]
1176
+ };
1177
+ const circleHalves = {
1178
+ interval: 50,
1179
+ frames: [
1180
+ "◐",
1181
+ "◓",
1182
+ "◑",
1183
+ "◒"
1184
+ ]
1185
+ };
1186
+ const squish = {
1187
+ interval: 100,
1188
+ frames: [
1189
+ "╫",
1190
+ "╪"
1191
+ ]
1192
+ };
1193
+ const toggle = {
1194
+ interval: 250,
1195
+ frames: [
1196
+ "⊶",
1197
+ "⊷"
1198
+ ]
1199
+ };
1200
+ const toggle2 = {
1201
+ interval: 80,
1202
+ frames: [
1203
+ "▫",
1204
+ "▪"
1205
+ ]
1206
+ };
1207
+ const toggle3 = {
1208
+ interval: 120,
1209
+ frames: [
1210
+ "□",
1211
+ "■"
1212
+ ]
1213
+ };
1214
+ const toggle4 = {
1215
+ interval: 100,
1216
+ frames: [
1217
+ "■",
1218
+ "□",
1219
+ "▪",
1220
+ "▫"
1221
+ ]
1222
+ };
1223
+ const toggle5 = {
1224
+ interval: 100,
1225
+ frames: [
1226
+ "▮",
1227
+ "▯"
1228
+ ]
1229
+ };
1230
+ const toggle6 = {
1231
+ interval: 300,
1232
+ frames: [
1233
+ "ဝ",
1234
+ "၀"
1235
+ ]
1236
+ };
1237
+ const toggle7 = {
1238
+ interval: 80,
1239
+ frames: [
1240
+ "⦾",
1241
+ "⦿"
1242
+ ]
1243
+ };
1244
+ const toggle8 = {
1245
+ interval: 100,
1246
+ frames: [
1247
+ "◍",
1248
+ "◌"
1249
+ ]
1250
+ };
1251
+ const toggle9 = {
1252
+ interval: 100,
1253
+ frames: [
1254
+ "◉",
1255
+ "◎"
1256
+ ]
1257
+ };
1258
+ const toggle10 = {
1259
+ interval: 100,
1260
+ frames: [
1261
+ "㊂",
1262
+ "㊀",
1263
+ "㊁"
1264
+ ]
1265
+ };
1266
+ const toggle11 = {
1267
+ interval: 50,
1268
+ frames: [
1269
+ "⧇",
1270
+ "⧆"
1271
+ ]
1272
+ };
1273
+ const toggle12 = {
1274
+ interval: 120,
1275
+ frames: [
1276
+ "☗",
1277
+ "☖"
1278
+ ]
1279
+ };
1280
+ const toggle13 = {
1281
+ interval: 80,
1282
+ frames: [
1283
+ "=",
1284
+ "*",
1285
+ "-"
1286
+ ]
1287
+ };
1288
+ const arrow = {
1289
+ interval: 100,
1290
+ frames: [
1291
+ "←",
1292
+ "↖",
1293
+ "↑",
1294
+ "↗",
1295
+ "→",
1296
+ "↘",
1297
+ "↓",
1298
+ "↙"
1299
+ ]
1300
+ };
1301
+ const arrow2 = {
1302
+ interval: 80,
1303
+ frames: [
1304
+ "⬆️ ",
1305
+ "↗️ ",
1306
+ "➡️ ",
1307
+ "↘️ ",
1308
+ "⬇️ ",
1309
+ "↙️ ",
1310
+ "⬅️ ",
1311
+ "↖️ "
1312
+ ]
1313
+ };
1314
+ const arrow3 = {
1315
+ interval: 120,
1316
+ frames: [
1317
+ "▹▹▹▹▹",
1318
+ "▸▹▹▹▹",
1319
+ "▹▸▹▹▹",
1320
+ "▹▹▸▹▹",
1321
+ "▹▹▹▸▹",
1322
+ "▹▹▹▹▸"
1323
+ ]
1324
+ };
1325
+ const bouncingBar = {
1326
+ interval: 80,
1327
+ frames: [
1328
+ "[ ]",
1329
+ "[= ]",
1330
+ "[== ]",
1331
+ "[=== ]",
1332
+ "[====]",
1333
+ "[ ===]",
1334
+ "[ ==]",
1335
+ "[ =]",
1336
+ "[ ]",
1337
+ "[ =]",
1338
+ "[ ==]",
1339
+ "[ ===]",
1340
+ "[====]",
1341
+ "[=== ]",
1342
+ "[== ]",
1343
+ "[= ]"
1344
+ ]
1345
+ };
1346
+ const bouncingBall = {
1347
+ interval: 80,
1348
+ frames: [
1349
+ "( ● )",
1350
+ "( ● )",
1351
+ "( ● )",
1352
+ "( ● )",
1353
+ "( ●)",
1354
+ "( ● )",
1355
+ "( ● )",
1356
+ "( ● )",
1357
+ "( ● )",
1358
+ "(● )"
1359
+ ]
1360
+ };
1361
+ const smiley = {
1362
+ interval: 200,
1363
+ frames: [
1364
+ "😄 ",
1365
+ "😝 "
1366
+ ]
1367
+ };
1368
+ const monkey = {
1369
+ interval: 300,
1370
+ frames: [
1371
+ "🙈 ",
1372
+ "🙈 ",
1373
+ "🙉 ",
1374
+ "🙊 "
1375
+ ]
1376
+ };
1377
+ const hearts = {
1378
+ interval: 100,
1379
+ frames: [
1380
+ "💛 ",
1381
+ "💙 ",
1382
+ "💜 ",
1383
+ "💚 ",
1384
+ "❤️ "
1385
+ ]
1386
+ };
1387
+ const clock = {
1388
+ interval: 100,
1389
+ frames: [
1390
+ "🕛 ",
1391
+ "🕐 ",
1392
+ "🕑 ",
1393
+ "🕒 ",
1394
+ "🕓 ",
1395
+ "🕔 ",
1396
+ "🕕 ",
1397
+ "🕖 ",
1398
+ "🕗 ",
1399
+ "🕘 ",
1400
+ "🕙 ",
1401
+ "🕚 "
1402
+ ]
1403
+ };
1404
+ const earth = {
1405
+ interval: 180,
1406
+ frames: [
1407
+ "🌍 ",
1408
+ "🌎 ",
1409
+ "🌏 "
1410
+ ]
1411
+ };
1412
+ const material = {
1413
+ interval: 17,
1414
+ frames: [
1415
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1416
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1417
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1418
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1419
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1420
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1421
+ "███████▁▁▁▁▁▁▁▁▁▁▁▁▁",
1422
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
1423
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1424
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1425
+ "██████████▁▁▁▁▁▁▁▁▁▁",
1426
+ "███████████▁▁▁▁▁▁▁▁▁",
1427
+ "█████████████▁▁▁▁▁▁▁",
1428
+ "██████████████▁▁▁▁▁▁",
1429
+ "██████████████▁▁▁▁▁▁",
1430
+ "▁██████████████▁▁▁▁▁",
1431
+ "▁██████████████▁▁▁▁▁",
1432
+ "▁██████████████▁▁▁▁▁",
1433
+ "▁▁██████████████▁▁▁▁",
1434
+ "▁▁▁██████████████▁▁▁",
1435
+ "▁▁▁▁█████████████▁▁▁",
1436
+ "▁▁▁▁██████████████▁▁",
1437
+ "▁▁▁▁██████████████▁▁",
1438
+ "▁▁▁▁▁██████████████▁",
1439
+ "▁▁▁▁▁██████████████▁",
1440
+ "▁▁▁▁▁██████████████▁",
1441
+ "▁▁▁▁▁▁██████████████",
1442
+ "▁▁▁▁▁▁██████████████",
1443
+ "▁▁▁▁▁▁▁█████████████",
1444
+ "▁▁▁▁▁▁▁█████████████",
1445
+ "▁▁▁▁▁▁▁▁████████████",
1446
+ "▁▁▁▁▁▁▁▁████████████",
1447
+ "▁▁▁▁▁▁▁▁▁███████████",
1448
+ "▁▁▁▁▁▁▁▁▁███████████",
1449
+ "▁▁▁▁▁▁▁▁▁▁██████████",
1450
+ "▁▁▁▁▁▁▁▁▁▁██████████",
1451
+ "▁▁▁▁▁▁▁▁▁▁▁▁████████",
1452
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1453
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████",
1454
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1455
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1456
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1457
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1458
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1459
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1460
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1461
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1462
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1463
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1464
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
1465
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1466
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1467
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1468
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1469
+ "███████████▁▁▁▁▁▁▁▁▁",
1470
+ "████████████▁▁▁▁▁▁▁▁",
1471
+ "████████████▁▁▁▁▁▁▁▁",
1472
+ "██████████████▁▁▁▁▁▁",
1473
+ "██████████████▁▁▁▁▁▁",
1474
+ "▁██████████████▁▁▁▁▁",
1475
+ "▁██████████████▁▁▁▁▁",
1476
+ "▁▁▁█████████████▁▁▁▁",
1477
+ "▁▁▁▁▁████████████▁▁▁",
1478
+ "▁▁▁▁▁████████████▁▁▁",
1479
+ "▁▁▁▁▁▁███████████▁▁▁",
1480
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
1481
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
1482
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
1483
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
1484
+ "▁▁▁▁▁▁▁▁▁▁█████████▁",
1485
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
1486
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
1487
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
1488
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
1489
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1490
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1491
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1492
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1493
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1494
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1495
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1496
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1497
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1498
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1499
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1500
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1501
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1502
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1503
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1504
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1505
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1506
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"
1507
+ ]
1508
+ };
1509
+ const moon = {
1510
+ interval: 80,
1511
+ frames: [
1512
+ "🌑 ",
1513
+ "🌒 ",
1514
+ "🌓 ",
1515
+ "🌔 ",
1516
+ "🌕 ",
1517
+ "🌖 ",
1518
+ "🌗 ",
1519
+ "🌘 "
1520
+ ]
1521
+ };
1522
+ const runner = {
1523
+ interval: 140,
1524
+ frames: [
1525
+ "🚶 ",
1526
+ "🏃 "
1527
+ ]
1528
+ };
1529
+ const pong = {
1530
+ interval: 80,
1531
+ frames: [
1532
+ "▐⠂ ▌",
1533
+ "▐⠈ ▌",
1534
+ "▐ ⠂ ▌",
1535
+ "▐ ⠠ ▌",
1536
+ "▐ ⡀ ▌",
1537
+ "▐ ⠠ ▌",
1538
+ "▐ ⠂ ▌",
1539
+ "▐ ⠈ ▌",
1540
+ "▐ ⠂ ▌",
1541
+ "▐ ⠠ ▌",
1542
+ "▐ ⡀ ▌",
1543
+ "▐ ⠠ ▌",
1544
+ "▐ ⠂ ▌",
1545
+ "▐ ⠈ ▌",
1546
+ "▐ ⠂▌",
1547
+ "▐ ⠠▌",
1548
+ "▐ ⡀▌",
1549
+ "▐ ⠠ ▌",
1550
+ "▐ ⠂ ▌",
1551
+ "▐ ⠈ ▌",
1552
+ "▐ ⠂ ▌",
1553
+ "▐ ⠠ ▌",
1554
+ "▐ ⡀ ▌",
1555
+ "▐ ⠠ ▌",
1556
+ "▐ ⠂ ▌",
1557
+ "▐ ⠈ ▌",
1558
+ "▐ ⠂ ▌",
1559
+ "▐ ⠠ ▌",
1560
+ "▐ ⡀ ▌",
1561
+ "▐⠠ ▌"
1562
+ ]
1563
+ };
1564
+ const shark = {
1565
+ interval: 120,
1566
+ frames: [
1567
+ "▐|\\____________▌",
1568
+ "▐_|\\___________▌",
1569
+ "▐__|\\__________▌",
1570
+ "▐___|\\_________▌",
1571
+ "▐____|\\________▌",
1572
+ "▐_____|\\_______▌",
1573
+ "▐______|\\______▌",
1574
+ "▐_______|\\_____▌",
1575
+ "▐________|\\____▌",
1576
+ "▐_________|\\___▌",
1577
+ "▐__________|\\__▌",
1578
+ "▐___________|\\_▌",
1579
+ "▐____________|\\▌",
1580
+ "▐____________/|▌",
1581
+ "▐___________/|_▌",
1582
+ "▐__________/|__▌",
1583
+ "▐_________/|___▌",
1584
+ "▐________/|____▌",
1585
+ "▐_______/|_____▌",
1586
+ "▐______/|______▌",
1587
+ "▐_____/|_______▌",
1588
+ "▐____/|________▌",
1589
+ "▐___/|_________▌",
1590
+ "▐__/|__________▌",
1591
+ "▐_/|___________▌",
1592
+ "▐/|____________▌"
1593
+ ]
1594
+ };
1595
+ const dqpb = {
1596
+ interval: 100,
1597
+ frames: [
1598
+ "d",
1599
+ "q",
1600
+ "p",
1601
+ "b"
1602
+ ]
1603
+ };
1604
+ const weather = {
1605
+ interval: 100,
1606
+ frames: [
1607
+ "☀️ ",
1608
+ "☀️ ",
1609
+ "☀️ ",
1610
+ "🌤 ",
1611
+ "⛅️ ",
1612
+ "🌥 ",
1613
+ "☁️ ",
1614
+ "🌧 ",
1615
+ "🌨 ",
1616
+ "🌧 ",
1617
+ "🌨 ",
1618
+ "🌧 ",
1619
+ "🌨 ",
1620
+ "⛈ ",
1621
+ "🌨 ",
1622
+ "🌧 ",
1623
+ "🌨 ",
1624
+ "☁️ ",
1625
+ "🌥 ",
1626
+ "⛅️ ",
1627
+ "🌤 ",
1628
+ "☀️ ",
1629
+ "☀️ "
1630
+ ]
1631
+ };
1632
+ const christmas = {
1633
+ interval: 400,
1634
+ frames: [
1635
+ "🌲",
1636
+ "🎄"
1637
+ ]
1638
+ };
1639
+ const grenade = {
1640
+ interval: 80,
1641
+ frames: [
1642
+ "، ",
1643
+ "′ ",
1644
+ " ´ ",
1645
+ " ‾ ",
1646
+ " ⸌",
1647
+ " ⸊",
1648
+ " |",
1649
+ " ⁎",
1650
+ " ⁕",
1651
+ " ෴ ",
1652
+ " ⁓",
1653
+ " ",
1654
+ " ",
1655
+ " "
1656
+ ]
1657
+ };
1658
+ const point = {
1659
+ interval: 125,
1660
+ frames: [
1661
+ "∙∙∙",
1662
+ "●∙∙",
1663
+ "∙●∙",
1664
+ "∙∙●",
1665
+ "∙∙∙"
1666
+ ]
1667
+ };
1668
+ const layer = {
1669
+ interval: 150,
1670
+ frames: [
1671
+ "-",
1672
+ "=",
1673
+ "≡"
1674
+ ]
1675
+ };
1676
+ const betaWave = {
1677
+ interval: 80,
1678
+ frames: [
1679
+ "ρββββββ",
1680
+ "βρβββββ",
1681
+ "ββρββββ",
1682
+ "βββρβββ",
1683
+ "ββββρββ",
1684
+ "βββββρβ",
1685
+ "ββββββρ"
1686
+ ]
1687
+ };
1688
+ const fingerDance = {
1689
+ interval: 160,
1690
+ frames: [
1691
+ "🤘 ",
1692
+ "🤟 ",
1693
+ "🖖 ",
1694
+ "✋ ",
1695
+ "🤚 ",
1696
+ "👆 "
1697
+ ]
1698
+ };
1699
+ const fistBump = {
1700
+ interval: 80,
1701
+ frames: [
1702
+ "🤜    🤛 ",
1703
+ "🤜    🤛 ",
1704
+ "🤜    🤛 ",
1705
+ " 🤜  🤛  ",
1706
+ "  🤜🤛   ",
1707
+ " 🤜✨🤛   ",
1708
+ "🤜 ✨ 🤛  "
1709
+ ]
1710
+ };
1711
+ const soccerHeader = {
1712
+ interval: 80,
1713
+ frames: [
1714
+ " 🧑⚽️ 🧑 ",
1715
+ "🧑 ⚽️ 🧑 ",
1716
+ "🧑 ⚽️ 🧑 ",
1717
+ "🧑 ⚽️ 🧑 ",
1718
+ "🧑 ⚽️ 🧑 ",
1719
+ "🧑 ⚽️ 🧑 ",
1720
+ "🧑 ⚽️🧑 ",
1721
+ "🧑 ⚽️ 🧑 ",
1722
+ "🧑 ⚽️ 🧑 ",
1723
+ "🧑 ⚽️ 🧑 ",
1724
+ "🧑 ⚽️ 🧑 ",
1725
+ "🧑 ⚽️ 🧑 "
1726
+ ]
1727
+ };
1728
+ const mindblown = {
1729
+ interval: 160,
1730
+ frames: [
1731
+ "😐 ",
1732
+ "😐 ",
1733
+ "😮 ",
1734
+ "😮 ",
1735
+ "😦 ",
1736
+ "😦 ",
1737
+ "😧 ",
1738
+ "😧 ",
1739
+ "🤯 ",
1740
+ "💥 ",
1741
+ "✨ ",
1742
+ "  ",
1743
+ "  ",
1744
+ "  "
1745
+ ]
1746
+ };
1747
+ const speaker = {
1748
+ interval: 160,
1749
+ frames: [
1750
+ "🔈 ",
1751
+ "🔉 ",
1752
+ "🔊 ",
1753
+ "🔉 "
1754
+ ]
1755
+ };
1756
+ const orangePulse = {
1757
+ interval: 100,
1758
+ frames: [
1759
+ "🔸 ",
1760
+ "🔶 ",
1761
+ "🟠 ",
1762
+ "🟠 ",
1763
+ "🔶 "
1764
+ ]
1765
+ };
1766
+ const bluePulse = {
1767
+ interval: 100,
1768
+ frames: [
1769
+ "🔹 ",
1770
+ "🔷 ",
1771
+ "🔵 ",
1772
+ "🔵 ",
1773
+ "🔷 "
1774
+ ]
1775
+ };
1776
+ const orangeBluePulse = {
1777
+ interval: 100,
1778
+ frames: [
1779
+ "🔸 ",
1780
+ "🔶 ",
1781
+ "🟠 ",
1782
+ "🟠 ",
1783
+ "🔶 ",
1784
+ "🔹 ",
1785
+ "🔷 ",
1786
+ "🔵 ",
1787
+ "🔵 ",
1788
+ "🔷 "
1789
+ ]
1790
+ };
1791
+ const timeTravel = {
1792
+ interval: 100,
1793
+ frames: [
1794
+ "🕛 ",
1795
+ "🕚 ",
1796
+ "🕙 ",
1797
+ "🕘 ",
1798
+ "🕗 ",
1799
+ "🕖 ",
1800
+ "🕕 ",
1801
+ "🕔 ",
1802
+ "🕓 ",
1803
+ "🕒 ",
1804
+ "🕑 ",
1805
+ "🕐 "
1806
+ ]
1807
+ };
1808
+ const aesthetic = {
1809
+ interval: 80,
1810
+ frames: [
1811
+ "▰▱▱▱▱▱▱",
1812
+ "▰▰▱▱▱▱▱",
1813
+ "▰▰▰▱▱▱▱",
1814
+ "▰▰▰▰▱▱▱",
1815
+ "▰▰▰▰▰▱▱",
1816
+ "▰▰▰▰▰▰▱",
1817
+ "▰▰▰▰▰▰▰",
1818
+ "▰▱▱▱▱▱▱"
1819
+ ]
1820
+ };
1821
+ const dwarfFortress = {
1822
+ interval: 80,
1823
+ frames: [
1824
+ " ██████£££ ",
1825
+ "☺██████£££ ",
1826
+ "☺██████£££ ",
1827
+ "☺▓█████£££ ",
1828
+ "☺▓█████£££ ",
1829
+ "☺▒█████£££ ",
1830
+ "☺▒█████£££ ",
1831
+ "☺░█████£££ ",
1832
+ "☺░█████£££ ",
1833
+ "☺ █████£££ ",
1834
+ " ☺█████£££ ",
1835
+ " ☺█████£££ ",
1836
+ " ☺▓████£££ ",
1837
+ " ☺▓████£££ ",
1838
+ " ☺▒████£££ ",
1839
+ " ☺▒████£££ ",
1840
+ " ☺░████£££ ",
1841
+ " ☺░████£££ ",
1842
+ " ☺ ████£££ ",
1843
+ " ☺████£££ ",
1844
+ " ☺████£££ ",
1845
+ " ☺▓███£££ ",
1846
+ " ☺▓███£££ ",
1847
+ " ☺▒███£££ ",
1848
+ " ☺▒███£££ ",
1849
+ " ☺░███£££ ",
1850
+ " ☺░███£££ ",
1851
+ " ☺ ███£££ ",
1852
+ " ☺███£££ ",
1853
+ " ☺███£££ ",
1854
+ " ☺▓██£££ ",
1855
+ " ☺▓██£££ ",
1856
+ " ☺▒██£££ ",
1857
+ " ☺▒██£££ ",
1858
+ " ☺░██£££ ",
1859
+ " ☺░██£££ ",
1860
+ " ☺ ██£££ ",
1861
+ " ☺██£££ ",
1862
+ " ☺██£££ ",
1863
+ " ☺▓█£££ ",
1864
+ " ☺▓█£££ ",
1865
+ " ☺▒█£££ ",
1866
+ " ☺▒█£££ ",
1867
+ " ☺░█£££ ",
1868
+ " ☺░█£££ ",
1869
+ " ☺ █£££ ",
1870
+ " ☺█£££ ",
1871
+ " ☺█£££ ",
1872
+ " ☺▓£££ ",
1873
+ " ☺▓£££ ",
1874
+ " ☺▒£££ ",
1875
+ " ☺▒£££ ",
1876
+ " ☺░£££ ",
1877
+ " ☺░£££ ",
1878
+ " ☺ £££ ",
1879
+ " ☺£££ ",
1880
+ " ☺£££ ",
1881
+ " ☺▓££ ",
1882
+ " ☺▓££ ",
1883
+ " ☺▒££ ",
1884
+ " ☺▒££ ",
1885
+ " ☺░££ ",
1886
+ " ☺░££ ",
1887
+ " ☺ ££ ",
1888
+ " ☺££ ",
1889
+ " ☺££ ",
1890
+ " ☺▓£ ",
1891
+ " ☺▓£ ",
1892
+ " ☺▒£ ",
1893
+ " ☺▒£ ",
1894
+ " ☺░£ ",
1895
+ " ☺░£ ",
1896
+ " ☺ £ ",
1897
+ " ☺£ ",
1898
+ " ☺£ ",
1899
+ " ☺▓ ",
1900
+ " ☺▓ ",
1901
+ " ☺▒ ",
1902
+ " ☺▒ ",
1903
+ " ☺░ ",
1904
+ " ☺░ ",
1905
+ " ☺ ",
1906
+ " ☺ &",
1907
+ " ☺ ☼&",
1908
+ " ☺ ☼ &",
1909
+ " ☺☼ &",
1910
+ " ☺☼ & ",
1911
+ " ‼ & ",
1912
+ " ☺ & ",
1913
+ " ‼ & ",
1914
+ " ☺ & ",
1915
+ " ‼ & ",
1916
+ " ☺ & ",
1917
+ "‼ & ",
1918
+ " & ",
1919
+ " & ",
1920
+ " & ░ ",
1921
+ " & ▒ ",
1922
+ " & ▓ ",
1923
+ " & £ ",
1924
+ " & ░£ ",
1925
+ " & ▒£ ",
1926
+ " & ▓£ ",
1927
+ " & ££ ",
1928
+ " & ░££ ",
1929
+ " & ▒££ ",
1930
+ "& ▓££ ",
1931
+ "& £££ ",
1932
+ " ░£££ ",
1933
+ " ▒£££ ",
1934
+ " ▓£££ ",
1935
+ " █£££ ",
1936
+ " ░█£££ ",
1937
+ " ▒█£££ ",
1938
+ " ▓█£££ ",
1939
+ " ██£££ ",
1940
+ " ░██£££ ",
1941
+ " ▒██£££ ",
1942
+ " ▓██£££ ",
1943
+ " ███£££ ",
1944
+ " ░███£££ ",
1945
+ " ▒███£££ ",
1946
+ " ▓███£££ ",
1947
+ " ████£££ ",
1948
+ " ░████£££ ",
1949
+ " ▒████£££ ",
1950
+ " ▓████£££ ",
1951
+ " █████£££ ",
1952
+ " ░█████£££ ",
1953
+ " ▒█████£££ ",
1954
+ " ▓█████£££ ",
1955
+ " ██████£££ ",
1956
+ " ██████£££ "
1957
+ ]
1958
+ };
1959
+ const spinners = {
1960
+ dots: dots,
1961
+ dots2: dots2,
1962
+ dots3: dots3,
1963
+ dots4: dots4,
1964
+ dots5: dots5,
1965
+ dots6: dots6,
1966
+ dots7: dots7,
1967
+ dots8: dots8,
1968
+ dots9: dots9,
1969
+ dots10: dots10,
1970
+ dots11: dots11,
1971
+ dots12: dots12,
1972
+ dots13: dots13,
1973
+ dots8Bit: dots8Bit,
1974
+ sand: sand,
1975
+ line: line,
1976
+ line2: line2,
1977
+ pipe: pipe,
1978
+ simpleDots: simpleDots,
1979
+ simpleDotsScrolling: simpleDotsScrolling,
1980
+ star: star,
1981
+ star2: star2,
1982
+ flip: flip,
1983
+ hamburger: hamburger,
1984
+ growVertical: growVertical,
1985
+ growHorizontal: growHorizontal,
1986
+ balloon: balloon,
1987
+ balloon2: balloon2,
1988
+ noise: noise,
1989
+ bounce: bounce,
1990
+ boxBounce: boxBounce,
1991
+ boxBounce2: boxBounce2,
1992
+ triangle: triangle,
1993
+ binary: binary,
1994
+ arc: arc,
1995
+ circle: circle,
1996
+ squareCorners: squareCorners,
1997
+ circleQuarters: circleQuarters,
1998
+ circleHalves: circleHalves,
1999
+ squish: squish,
2000
+ toggle: toggle,
2001
+ toggle2: toggle2,
2002
+ toggle3: toggle3,
2003
+ toggle4: toggle4,
2004
+ toggle5: toggle5,
2005
+ toggle6: toggle6,
2006
+ toggle7: toggle7,
2007
+ toggle8: toggle8,
2008
+ toggle9: toggle9,
2009
+ toggle10: toggle10,
2010
+ toggle11: toggle11,
2011
+ toggle12: toggle12,
2012
+ toggle13: toggle13,
2013
+ arrow: arrow,
2014
+ arrow2: arrow2,
2015
+ arrow3: arrow3,
2016
+ bouncingBar: bouncingBar,
2017
+ bouncingBall: bouncingBall,
2018
+ smiley: smiley,
2019
+ monkey: monkey,
2020
+ hearts: hearts,
2021
+ clock: clock,
2022
+ earth: earth,
2023
+ material: material,
2024
+ moon: moon,
2025
+ runner: runner,
2026
+ pong: pong,
2027
+ shark: shark,
2028
+ dqpb: dqpb,
2029
+ weather: weather,
2030
+ christmas: christmas,
2031
+ grenade: grenade,
2032
+ point: point,
2033
+ layer: layer,
2034
+ betaWave: betaWave,
2035
+ fingerDance: fingerDance,
2036
+ fistBump: fistBump,
2037
+ soccerHeader: soccerHeader,
2038
+ mindblown: mindblown,
2039
+ speaker: speaker,
2040
+ orangePulse: orangePulse,
2041
+ bluePulse: bluePulse,
2042
+ orangeBluePulse: orangeBluePulse,
2043
+ timeTravel: timeTravel,
2044
+ aesthetic: aesthetic,
2045
+ dwarfFortress: dwarfFortress
2046
+ };
2047
+
2048
+ const spinners$1 = {
2049
+ __proto__: null,
2050
+ aesthetic: aesthetic,
2051
+ arc: arc,
2052
+ arrow: arrow,
2053
+ arrow2: arrow2,
2054
+ arrow3: arrow3,
2055
+ balloon: balloon,
2056
+ balloon2: balloon2,
2057
+ betaWave: betaWave,
2058
+ binary: binary,
2059
+ bluePulse: bluePulse,
2060
+ bounce: bounce,
2061
+ bouncingBall: bouncingBall,
2062
+ bouncingBar: bouncingBar,
2063
+ boxBounce: boxBounce,
2064
+ boxBounce2: boxBounce2,
2065
+ christmas: christmas,
2066
+ circle: circle,
2067
+ circleHalves: circleHalves,
2068
+ circleQuarters: circleQuarters,
2069
+ clock: clock,
2070
+ default: spinners,
2071
+ dots: dots,
2072
+ dots10: dots10,
2073
+ dots11: dots11,
2074
+ dots12: dots12,
2075
+ dots13: dots13,
2076
+ dots2: dots2,
2077
+ dots3: dots3,
2078
+ dots4: dots4,
2079
+ dots5: dots5,
2080
+ dots6: dots6,
2081
+ dots7: dots7,
2082
+ dots8: dots8,
2083
+ dots8Bit: dots8Bit,
2084
+ dots9: dots9,
2085
+ dqpb: dqpb,
2086
+ dwarfFortress: dwarfFortress,
2087
+ earth: earth,
2088
+ fingerDance: fingerDance,
2089
+ fistBump: fistBump,
2090
+ flip: flip,
2091
+ grenade: grenade,
2092
+ growHorizontal: growHorizontal,
2093
+ growVertical: growVertical,
2094
+ hamburger: hamburger,
2095
+ hearts: hearts,
2096
+ layer: layer,
2097
+ line: line,
2098
+ line2: line2,
2099
+ material: material,
2100
+ mindblown: mindblown,
2101
+ monkey: monkey,
2102
+ moon: moon,
2103
+ noise: noise,
2104
+ orangeBluePulse: orangeBluePulse,
2105
+ orangePulse: orangePulse,
2106
+ pipe: pipe,
2107
+ point: point,
2108
+ pong: pong,
2109
+ runner: runner,
2110
+ sand: sand,
2111
+ shark: shark,
2112
+ simpleDots: simpleDots,
2113
+ simpleDotsScrolling: simpleDotsScrolling,
2114
+ smiley: smiley,
2115
+ soccerHeader: soccerHeader,
2116
+ speaker: speaker,
2117
+ squareCorners: squareCorners,
2118
+ squish: squish,
2119
+ star: star,
2120
+ star2: star2,
2121
+ timeTravel: timeTravel,
2122
+ toggle: toggle,
2123
+ toggle10: toggle10,
2124
+ toggle11: toggle11,
2125
+ toggle12: toggle12,
2126
+ toggle13: toggle13,
2127
+ toggle2: toggle2,
2128
+ toggle3: toggle3,
2129
+ toggle4: toggle4,
2130
+ toggle5: toggle5,
2131
+ toggle6: toggle6,
2132
+ toggle7: toggle7,
2133
+ toggle8: toggle8,
2134
+ toggle9: toggle9,
2135
+ triangle: triangle,
2136
+ weather: weather
2137
+ };
2138
+
2139
+ const require$$0 = /*@__PURE__*/getAugmentedNamespace(spinners$1);
2140
+
2141
+ var cliSpinners;
2142
+ var hasRequiredCliSpinners;
2143
+
2144
+ function requireCliSpinners () {
2145
+ if (hasRequiredCliSpinners) return cliSpinners;
2146
+ hasRequiredCliSpinners = 1;
2147
+
2148
+ const spinners = Object.assign({}, require$$0); // eslint-disable-line import/extensions
2149
+
2150
+ const spinnersList = Object.keys(spinners);
2151
+
2152
+ Object.defineProperty(spinners, 'random', {
2153
+ get() {
2154
+ const randomIndex = Math.floor(Math.random() * spinnersList.length);
2155
+ const spinnerName = spinnersList[randomIndex];
2156
+ return spinners[spinnerName];
2157
+ }
2158
+ });
2159
+
2160
+ cliSpinners = spinners;
2161
+ return cliSpinners;
2162
+ }
2163
+
2164
+ var hasRequiredTheme;
2165
+
2166
+ function requireTheme () {
2167
+ if (hasRequiredTheme) return theme;
2168
+ hasRequiredTheme = 1;
2169
+ var __importDefault = (theme && theme.__importDefault) || function (mod) {
2170
+ return (mod && mod.__esModule) ? mod : { "default": mod };
2171
+ };
2172
+ Object.defineProperty(theme, "__esModule", { value: true });
2173
+ theme.defaultTheme = void 0;
2174
+ const picocolors_1 = __importDefault(/*@__PURE__*/ requirePicocolors());
2175
+ const cli_spinners_1 = __importDefault(requireCliSpinners());
2176
+ theme.defaultTheme = {
2177
+ prefix: picocolors_1.default.green('?'),
2178
+ spinner: {
2179
+ interval: cli_spinners_1.default.dots.interval,
2180
+ frames: cli_spinners_1.default.dots.frames.map((frame) => picocolors_1.default.yellow(frame)),
2181
+ },
2182
+ style: {
2183
+ answer: picocolors_1.default.cyan,
2184
+ message: picocolors_1.default.bold,
2185
+ error: (text) => picocolors_1.default.red(`> ${text}`),
2186
+ defaultAnswer: (text) => picocolors_1.default.dim(`(${text})`),
2187
+ help: picocolors_1.default.dim,
2188
+ highlight: picocolors_1.default.cyan,
2189
+ key: (text) => picocolors_1.default.cyan(picocolors_1.default.bold(`<${text}>`)),
2190
+ },
2191
+ };
2192
+ return theme;
2193
+ }
2194
+
2195
+ var hasRequiredMakeTheme;
2196
+
2197
+ function requireMakeTheme () {
2198
+ if (hasRequiredMakeTheme) return makeTheme;
2199
+ hasRequiredMakeTheme = 1;
2200
+ Object.defineProperty(makeTheme, "__esModule", { value: true });
2201
+ makeTheme.makeTheme = makeTheme$1;
2202
+ const theme_mjs_1 = /*@__PURE__*/ requireTheme();
2203
+ function isPlainObject(value) {
2204
+ if (typeof value !== 'object' || value === null)
2205
+ return false;
2206
+ let proto = value;
2207
+ while (Object.getPrototypeOf(proto) !== null) {
2208
+ proto = Object.getPrototypeOf(proto);
2209
+ }
2210
+ return Object.getPrototypeOf(value) === proto;
2211
+ }
2212
+ function deepMerge(...objects) {
2213
+ const output = {};
2214
+ for (const obj of objects) {
2215
+ for (const [key, value] of Object.entries(obj)) {
2216
+ const prevValue = output[key];
2217
+ output[key] =
2218
+ isPlainObject(prevValue) && isPlainObject(value)
2219
+ ? deepMerge(prevValue, value)
2220
+ : value;
2221
+ }
2222
+ }
2223
+ return output;
2224
+ }
2225
+ function makeTheme$1(...themes) {
2226
+ const themesToMerge = [
2227
+ theme_mjs_1.defaultTheme,
2228
+ ...themes.filter((theme) => theme != null),
2229
+ ];
2230
+ return deepMerge(...themesToMerge);
2231
+ }
2232
+ return makeTheme;
2233
+ }
2234
+
2235
+ var hasRequiredUsePrefix;
2236
+
2237
+ function requireUsePrefix () {
2238
+ if (hasRequiredUsePrefix) return usePrefix;
2239
+ hasRequiredUsePrefix = 1;
2240
+ Object.defineProperty(usePrefix, "__esModule", { value: true });
2241
+ usePrefix.usePrefix = usePrefix$1;
2242
+ const node_async_hooks_1 = require$$0$1;
2243
+ const use_state_mjs_1 = /*@__PURE__*/ requireUseState();
2244
+ const use_effect_mjs_1 = /*@__PURE__*/ requireUseEffect();
2245
+ const make_theme_mjs_1 = /*@__PURE__*/ requireMakeTheme();
2246
+ function usePrefix$1({ isLoading = false, theme, }) {
2247
+ const [showLoader, setShowLoader] = (0, use_state_mjs_1.useState)(false);
2248
+ const [tick, setTick] = (0, use_state_mjs_1.useState)(0);
2249
+ const { prefix, spinner } = (0, make_theme_mjs_1.makeTheme)(theme);
2250
+ (0, use_effect_mjs_1.useEffect)(() => {
2251
+ if (isLoading) {
2252
+ let tickInterval;
2253
+ let inc = -1;
2254
+ // Delay displaying spinner by 300ms, to avoid flickering
2255
+ const delayTimeout = setTimeout(node_async_hooks_1.AsyncResource.bind(() => {
2256
+ setShowLoader(true);
2257
+ tickInterval = setInterval(node_async_hooks_1.AsyncResource.bind(() => {
2258
+ inc = inc + 1;
2259
+ setTick(inc % spinner.frames.length);
2260
+ }), spinner.interval);
2261
+ }), 300);
2262
+ return () => {
2263
+ clearTimeout(delayTimeout);
2264
+ clearInterval(tickInterval);
2265
+ };
2266
+ }
2267
+ else {
2268
+ setShowLoader(false);
2269
+ }
2270
+ }, [isLoading]);
2271
+ if (showLoader) {
2272
+ return spinner.frames[tick];
2273
+ }
2274
+ return prefix;
2275
+ }
2276
+ return usePrefix;
2277
+ }
2278
+
2279
+ var useMemo = {};
2280
+
2281
+ var hasRequiredUseMemo;
2282
+
2283
+ function requireUseMemo () {
2284
+ if (hasRequiredUseMemo) return useMemo;
2285
+ hasRequiredUseMemo = 1;
2286
+ Object.defineProperty(useMemo, "__esModule", { value: true });
2287
+ useMemo.useMemo = useMemo$1;
2288
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
2289
+ function useMemo$1(fn, dependencies) {
2290
+ return (0, hook_engine_mjs_1.withPointer)((pointer) => {
2291
+ const prev = pointer.get();
2292
+ if (!prev ||
2293
+ prev.dependencies.length !== dependencies.length ||
2294
+ prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
2295
+ const value = fn();
2296
+ pointer.set({ value, dependencies });
2297
+ return value;
2298
+ }
2299
+ return prev.value;
2300
+ });
2301
+ }
2302
+ return useMemo;
2303
+ }
2304
+
2305
+ var useRef = {};
2306
+
2307
+ var hasRequiredUseRef;
2308
+
2309
+ function requireUseRef () {
2310
+ if (hasRequiredUseRef) return useRef;
2311
+ hasRequiredUseRef = 1;
2312
+ Object.defineProperty(useRef, "__esModule", { value: true });
2313
+ useRef.useRef = useRef$1;
2314
+ const use_state_mjs_1 = /*@__PURE__*/ requireUseState();
2315
+ function useRef$1(val) {
2316
+ return (0, use_state_mjs_1.useState)({ current: val })[0];
2317
+ }
2318
+ return useRef;
2319
+ }
2320
+
2321
+ var useKeypress = {};
2322
+
2323
+ var hasRequiredUseKeypress;
2324
+
2325
+ function requireUseKeypress () {
2326
+ if (hasRequiredUseKeypress) return useKeypress;
2327
+ hasRequiredUseKeypress = 1;
2328
+ Object.defineProperty(useKeypress, "__esModule", { value: true });
2329
+ useKeypress.useKeypress = useKeypress$1;
2330
+ const use_ref_mjs_1 = /*@__PURE__*/ requireUseRef();
2331
+ const use_effect_mjs_1 = /*@__PURE__*/ requireUseEffect();
2332
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
2333
+ function useKeypress$1(userHandler) {
2334
+ const signal = (0, use_ref_mjs_1.useRef)(userHandler);
2335
+ signal.current = userHandler;
2336
+ (0, use_effect_mjs_1.useEffect)((rl) => {
2337
+ const handler = (0, hook_engine_mjs_1.withUpdates)((_input, event) => {
2338
+ signal.current(event, rl);
2339
+ });
2340
+ rl.input.on('keypress', handler);
2341
+ return () => {
2342
+ rl.input.removeListener('keypress', handler);
2343
+ };
2344
+ }, []);
2345
+ }
2346
+ return useKeypress;
2347
+ }
2348
+
2349
+ var usePagination = {};
2350
+
2351
+ var utils$1 = {};
2352
+
2353
+ var hasRequiredUtils$1;
2354
+
2355
+ function requireUtils$1 () {
2356
+ if (hasRequiredUtils$1) return utils$1;
2357
+ hasRequiredUtils$1 = 1;
2358
+ var __importDefault = (utils$1 && utils$1.__importDefault) || function (mod) {
2359
+ return (mod && mod.__esModule) ? mod : { "default": mod };
2360
+ };
2361
+ Object.defineProperty(utils$1, "__esModule", { value: true });
2362
+ utils$1.breakLines = breakLines;
2363
+ utils$1.readlineWidth = readlineWidth;
2364
+ const cli_width_1 = __importDefault(requireCliWidth());
2365
+ const wrap_ansi_1 = __importDefault(requireWrapAnsi());
2366
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
2367
+ /**
2368
+ * Force line returns at specific width. This function is ANSI code friendly and it'll
2369
+ * ignore invisible codes during width calculation.
2370
+ * @param {string} content
2371
+ * @param {number} width
2372
+ * @return {string}
2373
+ */
2374
+ function breakLines(content, width) {
2375
+ return content
2376
+ .split('\n')
2377
+ .flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true })
2378
+ .split('\n')
2379
+ .map((str) => str.trimEnd()))
2380
+ .join('\n');
2381
+ }
2382
+ /**
2383
+ * Returns the width of the active readline, or 80 as default value.
2384
+ * @returns {number}
2385
+ */
2386
+ function readlineWidth() {
2387
+ return (0, cli_width_1.default)({ defaultWidth: 80, output: (0, hook_engine_mjs_1.readline)().output });
2388
+ }
2389
+ return utils$1;
2390
+ }
2391
+
2392
+ var lines = {};
2393
+
2394
+ var hasRequiredLines;
2395
+
2396
+ function requireLines () {
2397
+ if (hasRequiredLines) return lines;
2398
+ hasRequiredLines = 1;
2399
+ Object.defineProperty(lines, "__esModule", { value: true });
2400
+ lines.lines = lines$1;
2401
+ const utils_mjs_1 = /*@__PURE__*/ requireUtils$1();
2402
+ function split(content, width) {
2403
+ return (0, utils_mjs_1.breakLines)(content, width).split('\n');
2404
+ }
2405
+ /**
2406
+ * Rotates an array of items by an integer number of positions.
2407
+ * @param {number} count The number of positions to rotate by
2408
+ * @param {T[]} items The items to rotate
2409
+ */
2410
+ function rotate(count, items) {
2411
+ const max = items.length;
2412
+ const offset = ((count % max) + max) % max;
2413
+ return [...items.slice(offset), ...items.slice(0, offset)];
2414
+ }
2415
+ /**
2416
+ * Renders a page of items as lines that fit within the given width ensuring
2417
+ * that the number of lines is not greater than the page size, and the active
2418
+ * item renders at the provided position, while prioritizing that as many lines
2419
+ * of the active item get rendered as possible.
2420
+ */
2421
+ function lines$1({ items, width, renderItem, active, position: requested, pageSize, }) {
2422
+ const layouts = items.map((item, index) => ({
2423
+ item,
2424
+ index,
2425
+ isActive: index === active,
2426
+ }));
2427
+ const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
2428
+ const renderItemAt = (index) => split(renderItem(layoutsInPage[index]), width);
2429
+ // Create a blank array of lines for the page
2430
+ const pageBuffer = Array.from({ length: pageSize });
2431
+ // Render the active item to decide the position
2432
+ const activeItem = renderItemAt(requested).slice(0, pageSize);
2433
+ const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
2434
+ // Add the lines of the active item into the page
2435
+ pageBuffer.splice(position, activeItem.length, ...activeItem);
2436
+ // Fill the page under the active item
2437
+ let bufferPointer = position + activeItem.length;
2438
+ let layoutPointer = requested + 1;
2439
+ while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
2440
+ for (const line of renderItemAt(layoutPointer)) {
2441
+ pageBuffer[bufferPointer++] = line;
2442
+ if (bufferPointer >= pageSize)
2443
+ break;
2444
+ }
2445
+ layoutPointer++;
2446
+ }
2447
+ // Fill the page over the active item
2448
+ bufferPointer = position - 1;
2449
+ layoutPointer = requested - 1;
2450
+ while (bufferPointer >= 0 && layoutPointer >= 0) {
2451
+ for (const line of renderItemAt(layoutPointer).reverse()) {
2452
+ pageBuffer[bufferPointer--] = line;
2453
+ if (bufferPointer < 0)
2454
+ break;
2455
+ }
2456
+ layoutPointer--;
2457
+ }
2458
+ return pageBuffer.filter((line) => typeof line === 'string');
2459
+ }
2460
+ return lines;
2461
+ }
2462
+
2463
+ var position = {};
2464
+
2465
+ var hasRequiredPosition;
2466
+
2467
+ function requirePosition () {
2468
+ if (hasRequiredPosition) return position;
2469
+ hasRequiredPosition = 1;
2470
+ Object.defineProperty(position, "__esModule", { value: true });
2471
+ position.finite = finite;
2472
+ position.infinite = infinite;
2473
+ /**
2474
+ * Creates the next position for the active item considering a finite list of
2475
+ * items to be rendered on a page.
2476
+ */
2477
+ function finite({ active, pageSize, total, }) {
2478
+ const middle = Math.floor(pageSize / 2);
2479
+ if (total <= pageSize || active < middle)
2480
+ return active;
2481
+ if (active >= total - middle)
2482
+ return active + pageSize - total;
2483
+ return middle;
2484
+ }
2485
+ /**
2486
+ * Creates the next position for the active item considering an infinitely
2487
+ * looping list of items to be rendered on the page.
2488
+ */
2489
+ function infinite({ active, lastActive, total, pageSize, pointer, }) {
2490
+ if (total <= pageSize)
2491
+ return active;
2492
+ // Move the position only when the user moves down, and when the
2493
+ // navigation fits within a single page
2494
+ if (lastActive < active && active - lastActive < pageSize) {
2495
+ // Limit it to the middle of the list
2496
+ return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
2497
+ }
2498
+ return pointer;
2499
+ }
2500
+ return position;
2501
+ }
2502
+
2503
+ var hasRequiredUsePagination;
2504
+
2505
+ function requireUsePagination () {
2506
+ if (hasRequiredUsePagination) return usePagination;
2507
+ hasRequiredUsePagination = 1;
2508
+ Object.defineProperty(usePagination, "__esModule", { value: true });
2509
+ usePagination.usePagination = usePagination$1;
2510
+ const use_ref_mjs_1 = /*@__PURE__*/ requireUseRef();
2511
+ const utils_mjs_1 = /*@__PURE__*/ requireUtils$1();
2512
+ const lines_mjs_1 = /*@__PURE__*/ requireLines();
2513
+ const position_mjs_1 = /*@__PURE__*/ requirePosition();
2514
+ function usePagination$1({ items, active, renderItem, pageSize, loop = true, }) {
2515
+ const state = (0, use_ref_mjs_1.useRef)({ position: 0, lastActive: 0 });
2516
+ const position = loop
2517
+ ? (0, position_mjs_1.infinite)({
2518
+ active,
2519
+ lastActive: state.current.lastActive,
2520
+ total: items.length,
2521
+ pageSize,
2522
+ pointer: state.current.position,
2523
+ })
2524
+ : (0, position_mjs_1.finite)({
2525
+ active,
2526
+ total: items.length,
2527
+ pageSize,
2528
+ });
2529
+ state.current.position = position;
2530
+ state.current.lastActive = active;
2531
+ return (0, lines_mjs_1.lines)({
2532
+ items,
2533
+ width: (0, utils_mjs_1.readlineWidth)(),
2534
+ renderItem,
2535
+ active,
2536
+ position,
2537
+ pageSize,
2538
+ }).join('\n');
2539
+ }
2540
+ return usePagination;
2541
+ }
2542
+
2543
+ var createPrompt = {};
2544
+
2545
+ var cjs$1 = {};
2546
+
2547
+ var inquirer = {};
2548
+
2549
+ var hasRequiredInquirer;
2550
+
2551
+ function requireInquirer () {
2552
+ if (hasRequiredInquirer) return inquirer;
2553
+ hasRequiredInquirer = 1;
2554
+ Object.defineProperty(inquirer, "__esModule", { value: true });
2555
+ inquirer.CancelablePromise = void 0;
2556
+ class CancelablePromise extends Promise {
2557
+ constructor() {
2558
+ super(...arguments);
2559
+ Object.defineProperty(this, "cancel", {
2560
+ enumerable: true,
2561
+ configurable: true,
2562
+ writable: true,
2563
+ value: () => { }
2564
+ });
2565
+ }
2566
+ static withResolver() {
2567
+ let resolve;
2568
+ let reject;
2569
+ const promise = new CancelablePromise((res, rej) => {
2570
+ resolve = res;
2571
+ reject = rej;
2572
+ });
2573
+ return { promise, resolve: resolve, reject: reject };
2574
+ }
2575
+ }
2576
+ inquirer.CancelablePromise = CancelablePromise;
2577
+ return inquirer;
2578
+ }
2579
+
2580
+ var utils = {};
2581
+
2582
+ var hasRequiredUtils;
2583
+
2584
+ function requireUtils () {
2585
+ if (hasRequiredUtils) return utils;
2586
+ hasRequiredUtils = 1;
2587
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2588
+ Object.defineProperty(utils, "__esModule", { value: true });
2589
+ return utils;
2590
+ }
2591
+
2592
+ var hasRequiredCjs$2;
2593
+
2594
+ function requireCjs$2 () {
2595
+ if (hasRequiredCjs$2) return cjs$1;
2596
+ hasRequiredCjs$2 = 1;
2597
+ (function (exports) {
2598
+ var __createBinding = (cjs$1 && cjs$1.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2599
+ if (k2 === undefined) k2 = k;
2600
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2601
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2602
+ desc = { enumerable: true, get: function() { return m[k]; } };
2603
+ }
2604
+ Object.defineProperty(o, k2, desc);
2605
+ }) : (function(o, m, k, k2) {
2606
+ if (k2 === undefined) k2 = k;
2607
+ o[k2] = m[k];
2608
+ }));
2609
+ var __exportStar = (cjs$1 && cjs$1.__exportStar) || function(m, exports) {
2610
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2611
+ };
2612
+ Object.defineProperty(exports, "__esModule", { value: true });
2613
+ __exportStar(/*@__PURE__*/ requireInquirer(), exports);
2614
+ __exportStar(/*@__PURE__*/ requireUtils(), exports);
2615
+ } (cjs$1));
2616
+ return cjs$1;
2617
+ }
2618
+
2619
+ var lib;
2620
+ var hasRequiredLib;
2621
+
2622
+ function requireLib () {
2623
+ if (hasRequiredLib) return lib;
2624
+ hasRequiredLib = 1;
2625
+ const Stream = require$$0$2;
2626
+
2627
+ class MuteStream extends Stream {
2628
+ #isTTY = null
2629
+
2630
+ constructor (opts = {}) {
2631
+ super(opts);
2632
+ this.writable = this.readable = true;
2633
+ this.muted = false;
2634
+ this.on('pipe', this._onpipe);
2635
+ this.replace = opts.replace;
2636
+
2637
+ // For readline-type situations
2638
+ // This much at the start of a line being redrawn after a ctrl char
2639
+ // is seen (such as backspace) won't be redrawn as the replacement
2640
+ this._prompt = opts.prompt || null;
2641
+ this._hadControl = false;
2642
+ }
2643
+
2644
+ #destSrc (key, def) {
2645
+ if (this._dest) {
2646
+ return this._dest[key]
2647
+ }
2648
+ if (this._src) {
2649
+ return this._src[key]
2650
+ }
2651
+ return def
2652
+ }
2653
+
2654
+ #proxy (method, ...args) {
2655
+ if (typeof this._dest?.[method] === 'function') {
2656
+ this._dest[method](...args);
2657
+ }
2658
+ if (typeof this._src?.[method] === 'function') {
2659
+ this._src[method](...args);
2660
+ }
2661
+ }
2662
+
2663
+ get isTTY () {
2664
+ if (this.#isTTY !== null) {
2665
+ return this.#isTTY
2666
+ }
2667
+ return this.#destSrc('isTTY', false)
2668
+ }
2669
+
2670
+ // basically just get replace the getter/setter with a regular value
2671
+ set isTTY (val) {
2672
+ this.#isTTY = val;
2673
+ }
2674
+
2675
+ get rows () {
2676
+ return this.#destSrc('rows')
2677
+ }
2678
+
2679
+ get columns () {
2680
+ return this.#destSrc('columns')
2681
+ }
2682
+
2683
+ mute () {
2684
+ this.muted = true;
2685
+ }
2686
+
2687
+ unmute () {
2688
+ this.muted = false;
2689
+ }
2690
+
2691
+ _onpipe (src) {
2692
+ this._src = src;
2693
+ }
2694
+
2695
+ pipe (dest, options) {
2696
+ this._dest = dest;
2697
+ return super.pipe(dest, options)
2698
+ }
2699
+
2700
+ pause () {
2701
+ if (this._src) {
2702
+ return this._src.pause()
2703
+ }
2704
+ }
2705
+
2706
+ resume () {
2707
+ if (this._src) {
2708
+ return this._src.resume()
2709
+ }
2710
+ }
2711
+
2712
+ write (c) {
2713
+ if (this.muted) {
2714
+ if (!this.replace) {
2715
+ return true
2716
+ }
2717
+ // eslint-disable-next-line no-control-regex
2718
+ if (c.match(/^\u001b/)) {
2719
+ if (c.indexOf(this._prompt) === 0) {
2720
+ c = c.slice(this._prompt.length);
2721
+ c = c.replace(/./g, this.replace);
2722
+ c = this._prompt + c;
2723
+ }
2724
+ this._hadControl = true;
2725
+ return this.emit('data', c)
2726
+ } else {
2727
+ if (this._prompt && this._hadControl &&
2728
+ c.indexOf(this._prompt) === 0) {
2729
+ this._hadControl = false;
2730
+ this.emit('data', this._prompt);
2731
+ c = c.slice(this._prompt.length);
2732
+ }
2733
+ c = c.toString().replace(/./g, this.replace);
2734
+ }
2735
+ }
2736
+ this.emit('data', c);
2737
+ }
2738
+
2739
+ end (c) {
2740
+ if (this.muted) {
2741
+ if (c && this.replace) {
2742
+ c = c.toString().replace(/./g, this.replace);
2743
+ } else {
2744
+ c = null;
2745
+ }
2746
+ }
2747
+ if (c) {
2748
+ this.emit('data', c);
2749
+ }
2750
+ this.emit('end');
2751
+ }
2752
+
2753
+ destroy (...args) {
2754
+ return this.#proxy('destroy', ...args)
2755
+ }
2756
+
2757
+ destroySoon (...args) {
2758
+ return this.#proxy('destroySoon', ...args)
2759
+ }
2760
+
2761
+ close (...args) {
2762
+ return this.#proxy('close', ...args)
2763
+ }
2764
+ }
2765
+
2766
+ lib = MuteStream;
2767
+ return lib;
2768
+ }
2769
+
2770
+ var cjs = {};
2771
+
2772
+ var signals = {};
2773
+
2774
+ var hasRequiredSignals;
2775
+
2776
+ function requireSignals () {
2777
+ if (hasRequiredSignals) return signals;
2778
+ hasRequiredSignals = 1;
2779
+ (function (exports) {
2780
+ Object.defineProperty(exports, "__esModule", { value: true });
2781
+ exports.signals = void 0;
2782
+ /**
2783
+ * This is not the set of all possible signals.
2784
+ *
2785
+ * It IS, however, the set of all signals that trigger
2786
+ * an exit on either Linux or BSD systems. Linux is a
2787
+ * superset of the signal names supported on BSD, and
2788
+ * the unknown signals just fail to register, so we can
2789
+ * catch that easily enough.
2790
+ *
2791
+ * Windows signals are a different set, since there are
2792
+ * signals that terminate Windows processes, but don't
2793
+ * terminate (or don't even exist) on Posix systems.
2794
+ *
2795
+ * Don't bother with SIGKILL. It's uncatchable, which
2796
+ * means that we can't fire any callbacks anyway.
2797
+ *
2798
+ * If a user does happen to register a handler on a non-
2799
+ * fatal signal like SIGWINCH or something, and then
2800
+ * exit, it'll end up firing `process.emit('exit')`, so
2801
+ * the handler will be fired anyway.
2802
+ *
2803
+ * SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
2804
+ * artificially, inherently leave the process in a
2805
+ * state from which it is not safe to try and enter JS
2806
+ * listeners.
2807
+ */
2808
+ exports.signals = [];
2809
+ exports.signals.push('SIGHUP', 'SIGINT', 'SIGTERM');
2810
+ if (process.platform !== 'win32') {
2811
+ exports.signals.push('SIGALRM', 'SIGABRT', 'SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT'
2812
+ // should detect profiler and enable/disable accordingly.
2813
+ // see #21
2814
+ // 'SIGPROF'
2815
+ );
2816
+ }
2817
+ if (process.platform === 'linux') {
2818
+ exports.signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT');
2819
+ }
2820
+
2821
+ } (signals));
2822
+ return signals;
2823
+ }
2824
+
2825
+ var hasRequiredCjs$1;
2826
+
2827
+ function requireCjs$1 () {
2828
+ if (hasRequiredCjs$1) return cjs;
2829
+ hasRequiredCjs$1 = 1;
2830
+ (function (exports) {
2831
+ var _a;
2832
+ Object.defineProperty(exports, "__esModule", { value: true });
2833
+ exports.unload = exports.load = exports.onExit = exports.signals = void 0;
2834
+ // Note: since nyc uses this module to output coverage, any lines
2835
+ // that are in the direct sync flow of nyc's outputCoverage are
2836
+ // ignored, since we can never get coverage for them.
2837
+ // grab a reference to node's real process object right away
2838
+ const signals_js_1 = requireSignals();
2839
+ Object.defineProperty(exports, "signals", { enumerable: true, get: function () { return signals_js_1.signals; } });
2840
+ const processOk = (process) => !!process &&
2841
+ typeof process === 'object' &&
2842
+ typeof process.removeListener === 'function' &&
2843
+ typeof process.emit === 'function' &&
2844
+ typeof process.reallyExit === 'function' &&
2845
+ typeof process.listeners === 'function' &&
2846
+ typeof process.kill === 'function' &&
2847
+ typeof process.pid === 'number' &&
2848
+ typeof process.on === 'function';
2849
+ const kExitEmitter = Symbol.for('signal-exit emitter');
2850
+ const global = globalThis;
2851
+ const ObjectDefineProperty = Object.defineProperty.bind(Object);
2852
+ // teeny special purpose ee
2853
+ class Emitter {
2854
+ emitted = {
2855
+ afterExit: false,
2856
+ exit: false,
2857
+ };
2858
+ listeners = {
2859
+ afterExit: [],
2860
+ exit: [],
2861
+ };
2862
+ count = 0;
2863
+ id = Math.random();
2864
+ constructor() {
2865
+ if (global[kExitEmitter]) {
2866
+ return global[kExitEmitter];
2867
+ }
2868
+ ObjectDefineProperty(global, kExitEmitter, {
2869
+ value: this,
2870
+ writable: false,
2871
+ enumerable: false,
2872
+ configurable: false,
2873
+ });
2874
+ }
2875
+ on(ev, fn) {
2876
+ this.listeners[ev].push(fn);
2877
+ }
2878
+ removeListener(ev, fn) {
2879
+ const list = this.listeners[ev];
2880
+ const i = list.indexOf(fn);
2881
+ /* c8 ignore start */
2882
+ if (i === -1) {
2883
+ return;
2884
+ }
2885
+ /* c8 ignore stop */
2886
+ if (i === 0 && list.length === 1) {
2887
+ list.length = 0;
2888
+ }
2889
+ else {
2890
+ list.splice(i, 1);
2891
+ }
2892
+ }
2893
+ emit(ev, code, signal) {
2894
+ if (this.emitted[ev]) {
2895
+ return false;
2896
+ }
2897
+ this.emitted[ev] = true;
2898
+ let ret = false;
2899
+ for (const fn of this.listeners[ev]) {
2900
+ ret = fn(code, signal) === true || ret;
2901
+ }
2902
+ if (ev === 'exit') {
2903
+ ret = this.emit('afterExit', code, signal) || ret;
2904
+ }
2905
+ return ret;
2906
+ }
2907
+ }
2908
+ class SignalExitBase {
2909
+ }
2910
+ const signalExitWrap = (handler) => {
2911
+ return {
2912
+ onExit(cb, opts) {
2913
+ return handler.onExit(cb, opts);
2914
+ },
2915
+ load() {
2916
+ return handler.load();
2917
+ },
2918
+ unload() {
2919
+ return handler.unload();
2920
+ },
2921
+ };
2922
+ };
2923
+ class SignalExitFallback extends SignalExitBase {
2924
+ onExit() {
2925
+ return () => { };
2926
+ }
2927
+ load() { }
2928
+ unload() { }
2929
+ }
2930
+ class SignalExit extends SignalExitBase {
2931
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
2932
+ // so use a supported signal instead
2933
+ /* c8 ignore start */
2934
+ #hupSig = process.platform === 'win32' ? 'SIGINT' : 'SIGHUP';
2935
+ /* c8 ignore stop */
2936
+ #emitter = new Emitter();
2937
+ #process;
2938
+ #originalProcessEmit;
2939
+ #originalProcessReallyExit;
2940
+ #sigListeners = {};
2941
+ #loaded = false;
2942
+ constructor(process) {
2943
+ super();
2944
+ this.#process = process;
2945
+ // { <signal>: <listener fn>, ... }
2946
+ this.#sigListeners = {};
2947
+ for (const sig of signals_js_1.signals) {
2948
+ this.#sigListeners[sig] = () => {
2949
+ // If there are no other listeners, an exit is coming!
2950
+ // Simplest way: remove us and then re-send the signal.
2951
+ // We know that this will kill the process, so we can
2952
+ // safely emit now.
2953
+ const listeners = this.#process.listeners(sig);
2954
+ let { count } = this.#emitter;
2955
+ // This is a workaround for the fact that signal-exit v3 and signal
2956
+ // exit v4 are not aware of each other, and each will attempt to let
2957
+ // the other handle it, so neither of them do. To correct this, we
2958
+ // detect if we're the only handler *except* for previous versions
2959
+ // of signal-exit, and increment by the count of listeners it has
2960
+ // created.
2961
+ /* c8 ignore start */
2962
+ const p = process;
2963
+ if (typeof p.__signal_exit_emitter__ === 'object' &&
2964
+ typeof p.__signal_exit_emitter__.count === 'number') {
2965
+ count += p.__signal_exit_emitter__.count;
2966
+ }
2967
+ /* c8 ignore stop */
2968
+ if (listeners.length === count) {
2969
+ this.unload();
2970
+ const ret = this.#emitter.emit('exit', null, sig);
2971
+ /* c8 ignore start */
2972
+ const s = sig === 'SIGHUP' ? this.#hupSig : sig;
2973
+ if (!ret)
2974
+ process.kill(process.pid, s);
2975
+ /* c8 ignore stop */
2976
+ }
2977
+ };
2978
+ }
2979
+ this.#originalProcessReallyExit = process.reallyExit;
2980
+ this.#originalProcessEmit = process.emit;
2981
+ }
2982
+ onExit(cb, opts) {
2983
+ /* c8 ignore start */
2984
+ if (!processOk(this.#process)) {
2985
+ return () => { };
2986
+ }
2987
+ /* c8 ignore stop */
2988
+ if (this.#loaded === false) {
2989
+ this.load();
2990
+ }
2991
+ const ev = opts?.alwaysLast ? 'afterExit' : 'exit';
2992
+ this.#emitter.on(ev, cb);
2993
+ return () => {
2994
+ this.#emitter.removeListener(ev, cb);
2995
+ if (this.#emitter.listeners['exit'].length === 0 &&
2996
+ this.#emitter.listeners['afterExit'].length === 0) {
2997
+ this.unload();
2998
+ }
2999
+ };
3000
+ }
3001
+ load() {
3002
+ if (this.#loaded) {
3003
+ return;
3004
+ }
3005
+ this.#loaded = true;
3006
+ // This is the number of onSignalExit's that are in play.
3007
+ // It's important so that we can count the correct number of
3008
+ // listeners on signals, and don't wait for the other one to
3009
+ // handle it instead of us.
3010
+ this.#emitter.count += 1;
3011
+ for (const sig of signals_js_1.signals) {
3012
+ try {
3013
+ const fn = this.#sigListeners[sig];
3014
+ if (fn)
3015
+ this.#process.on(sig, fn);
3016
+ }
3017
+ catch (_) { }
3018
+ }
3019
+ this.#process.emit = (ev, ...a) => {
3020
+ return this.#processEmit(ev, ...a);
3021
+ };
3022
+ this.#process.reallyExit = (code) => {
3023
+ return this.#processReallyExit(code);
3024
+ };
3025
+ }
3026
+ unload() {
3027
+ if (!this.#loaded) {
3028
+ return;
3029
+ }
3030
+ this.#loaded = false;
3031
+ signals_js_1.signals.forEach(sig => {
3032
+ const listener = this.#sigListeners[sig];
3033
+ /* c8 ignore start */
3034
+ if (!listener) {
3035
+ throw new Error('Listener not defined for signal: ' + sig);
3036
+ }
3037
+ /* c8 ignore stop */
3038
+ try {
3039
+ this.#process.removeListener(sig, listener);
3040
+ /* c8 ignore start */
3041
+ }
3042
+ catch (_) { }
3043
+ /* c8 ignore stop */
3044
+ });
3045
+ this.#process.emit = this.#originalProcessEmit;
3046
+ this.#process.reallyExit = this.#originalProcessReallyExit;
3047
+ this.#emitter.count -= 1;
3048
+ }
3049
+ #processReallyExit(code) {
3050
+ /* c8 ignore start */
3051
+ if (!processOk(this.#process)) {
3052
+ return 0;
3053
+ }
3054
+ this.#process.exitCode = code || 0;
3055
+ /* c8 ignore stop */
3056
+ this.#emitter.emit('exit', this.#process.exitCode, null);
3057
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
3058
+ }
3059
+ #processEmit(ev, ...args) {
3060
+ const og = this.#originalProcessEmit;
3061
+ if (ev === 'exit' && processOk(this.#process)) {
3062
+ if (typeof args[0] === 'number') {
3063
+ this.#process.exitCode = args[0];
3064
+ /* c8 ignore start */
3065
+ }
3066
+ /* c8 ignore start */
3067
+ const ret = og.call(this.#process, ev, ...args);
3068
+ /* c8 ignore start */
3069
+ this.#emitter.emit('exit', this.#process.exitCode, null);
3070
+ /* c8 ignore stop */
3071
+ return ret;
3072
+ }
3073
+ else {
3074
+ return og.call(this.#process, ev, ...args);
3075
+ }
3076
+ }
3077
+ }
3078
+ const process = globalThis.process;
3079
+ // wrap so that we call the method on the actual handler, without
3080
+ // exporting it directly.
3081
+ _a = signalExitWrap(processOk(process) ? new SignalExit(process) : new SignalExitFallback()),
3082
+ /**
3083
+ * Called when the process is exiting, whether via signal, explicit
3084
+ * exit, or running out of stuff to do.
3085
+ *
3086
+ * If the global process object is not suitable for instrumentation,
3087
+ * then this will be a no-op.
3088
+ *
3089
+ * Returns a function that may be used to unload signal-exit.
3090
+ */
3091
+ exports.onExit = _a.onExit,
3092
+ /**
3093
+ * Load the listeners. Likely you never need to call this, unless
3094
+ * doing a rather deep integration with signal-exit functionality.
3095
+ * Mostly exposed for the benefit of testing.
3096
+ *
3097
+ * @internal
3098
+ */
3099
+ exports.load = _a.load,
3100
+ /**
3101
+ * Unload the listeners. Likely you never need to call this, unless
3102
+ * doing a rather deep integration with signal-exit functionality.
3103
+ * Mostly exposed for the benefit of testing.
3104
+ *
3105
+ * @internal
3106
+ */
3107
+ exports.unload = _a.unload;
3108
+
3109
+ } (cjs));
3110
+ return cjs;
3111
+ }
3112
+
3113
+ var screenManager = {};
3114
+
3115
+ var ansiEscapes = {exports: {}};
3116
+
3117
+ var hasRequiredAnsiEscapes;
3118
+
3119
+ function requireAnsiEscapes () {
3120
+ if (hasRequiredAnsiEscapes) return ansiEscapes.exports;
3121
+ hasRequiredAnsiEscapes = 1;
3122
+ (function (module) {
3123
+ const ansiEscapes = module.exports;
3124
+ // TODO: remove this in the next major version
3125
+ module.exports.default = ansiEscapes;
3126
+
3127
+ const ESC = '\u001B[';
3128
+ const OSC = '\u001B]';
3129
+ const BEL = '\u0007';
3130
+ const SEP = ';';
3131
+ const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
3132
+
3133
+ ansiEscapes.cursorTo = (x, y) => {
3134
+ if (typeof x !== 'number') {
3135
+ throw new TypeError('The `x` argument is required');
3136
+ }
3137
+
3138
+ if (typeof y !== 'number') {
3139
+ return ESC + (x + 1) + 'G';
3140
+ }
3141
+
3142
+ return ESC + (y + 1) + ';' + (x + 1) + 'H';
3143
+ };
3144
+
3145
+ ansiEscapes.cursorMove = (x, y) => {
3146
+ if (typeof x !== 'number') {
3147
+ throw new TypeError('The `x` argument is required');
3148
+ }
3149
+
3150
+ let ret = '';
3151
+
3152
+ if (x < 0) {
3153
+ ret += ESC + (-x) + 'D';
3154
+ } else if (x > 0) {
3155
+ ret += ESC + x + 'C';
3156
+ }
3157
+
3158
+ if (y < 0) {
3159
+ ret += ESC + (-y) + 'A';
3160
+ } else if (y > 0) {
3161
+ ret += ESC + y + 'B';
3162
+ }
3163
+
3164
+ return ret;
3165
+ };
3166
+
3167
+ ansiEscapes.cursorUp = (count = 1) => ESC + count + 'A';
3168
+ ansiEscapes.cursorDown = (count = 1) => ESC + count + 'B';
3169
+ ansiEscapes.cursorForward = (count = 1) => ESC + count + 'C';
3170
+ ansiEscapes.cursorBackward = (count = 1) => ESC + count + 'D';
3171
+
3172
+ ansiEscapes.cursorLeft = ESC + 'G';
3173
+ ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
3174
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
3175
+ ansiEscapes.cursorGetPosition = ESC + '6n';
3176
+ ansiEscapes.cursorNextLine = ESC + 'E';
3177
+ ansiEscapes.cursorPrevLine = ESC + 'F';
3178
+ ansiEscapes.cursorHide = ESC + '?25l';
3179
+ ansiEscapes.cursorShow = ESC + '?25h';
3180
+
3181
+ ansiEscapes.eraseLines = count => {
3182
+ let clear = '';
3183
+
3184
+ for (let i = 0; i < count; i++) {
3185
+ clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
3186
+ }
3187
+
3188
+ if (count) {
3189
+ clear += ansiEscapes.cursorLeft;
3190
+ }
3191
+
3192
+ return clear;
3193
+ };
3194
+
3195
+ ansiEscapes.eraseEndLine = ESC + 'K';
3196
+ ansiEscapes.eraseStartLine = ESC + '1K';
3197
+ ansiEscapes.eraseLine = ESC + '2K';
3198
+ ansiEscapes.eraseDown = ESC + 'J';
3199
+ ansiEscapes.eraseUp = ESC + '1J';
3200
+ ansiEscapes.eraseScreen = ESC + '2J';
3201
+ ansiEscapes.scrollUp = ESC + 'S';
3202
+ ansiEscapes.scrollDown = ESC + 'T';
3203
+
3204
+ ansiEscapes.clearScreen = '\u001Bc';
3205
+
3206
+ ansiEscapes.clearTerminal = process.platform === 'win32' ?
3207
+ `${ansiEscapes.eraseScreen}${ESC}0f` :
3208
+ // 1. Erases the screen (Only done in case `2` is not supported)
3209
+ // 2. Erases the whole screen including scrollback buffer
3210
+ // 3. Moves cursor to the top-left position
3211
+ // More info: https://www.real-world-systems.com/docs/ANSIcode.html
3212
+ `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
3213
+
3214
+ ansiEscapes.beep = BEL;
3215
+
3216
+ ansiEscapes.link = (text, url) => {
3217
+ return [
3218
+ OSC,
3219
+ '8',
3220
+ SEP,
3221
+ SEP,
3222
+ url,
3223
+ BEL,
3224
+ text,
3225
+ OSC,
3226
+ '8',
3227
+ SEP,
3228
+ SEP,
3229
+ BEL
3230
+ ].join('');
3231
+ };
3232
+
3233
+ ansiEscapes.image = (buffer, options = {}) => {
3234
+ let ret = `${OSC}1337;File=inline=1`;
3235
+
3236
+ if (options.width) {
3237
+ ret += `;width=${options.width}`;
3238
+ }
3239
+
3240
+ if (options.height) {
3241
+ ret += `;height=${options.height}`;
3242
+ }
3243
+
3244
+ if (options.preserveAspectRatio === false) {
3245
+ ret += ';preserveAspectRatio=0';
3246
+ }
3247
+
3248
+ return ret + ':' + buffer.toString('base64') + BEL;
3249
+ };
3250
+
3251
+ ansiEscapes.iTerm = {
3252
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
3253
+
3254
+ annotation: (message, options = {}) => {
3255
+ let ret = `${OSC}1337;`;
3256
+
3257
+ const hasX = typeof options.x !== 'undefined';
3258
+ const hasY = typeof options.y !== 'undefined';
3259
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
3260
+ throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
3261
+ }
3262
+
3263
+ message = message.replace(/\|/g, '');
3264
+
3265
+ ret += options.isHidden ? 'AddHiddenAnnotation=' : 'AddAnnotation=';
3266
+
3267
+ if (options.length > 0) {
3268
+ ret +=
3269
+ (hasX ?
3270
+ [message, options.length, options.x, options.y] :
3271
+ [options.length, message]).join('|');
3272
+ } else {
3273
+ ret += message;
3274
+ }
3275
+
3276
+ return ret + BEL;
3277
+ }
3278
+ };
3279
+ } (ansiEscapes));
3280
+ return ansiEscapes.exports;
3281
+ }
3282
+
3283
+ var hasRequiredScreenManager;
3284
+
3285
+ function requireScreenManager () {
3286
+ if (hasRequiredScreenManager) return screenManager;
3287
+ hasRequiredScreenManager = 1;
3288
+ var __importDefault = (screenManager && screenManager.__importDefault) || function (mod) {
3289
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3290
+ };
3291
+ Object.defineProperty(screenManager, "__esModule", { value: true });
3292
+ const strip_ansi_1 = __importDefault(requireStripAnsi());
3293
+ const ansi_escapes_1 = __importDefault(requireAnsiEscapes());
3294
+ const utils_mjs_1 = /*@__PURE__*/ requireUtils$1();
3295
+ const height = (content) => content.split('\n').length;
3296
+ const lastLine = (content) => { var _a; return (_a = content.split('\n').pop()) !== null && _a !== void 0 ? _a : ''; };
3297
+ class ScreenManager {
3298
+ constructor(rl) {
3299
+ Object.defineProperty(this, "rl", {
3300
+ enumerable: true,
3301
+ configurable: true,
3302
+ writable: true,
3303
+ value: rl
3304
+ });
3305
+ // These variables are keeping information to allow correct prompt re-rendering
3306
+ Object.defineProperty(this, "height", {
3307
+ enumerable: true,
3308
+ configurable: true,
3309
+ writable: true,
3310
+ value: 0
3311
+ });
3312
+ Object.defineProperty(this, "extraLinesUnderPrompt", {
3313
+ enumerable: true,
3314
+ configurable: true,
3315
+ writable: true,
3316
+ value: 0
3317
+ });
3318
+ Object.defineProperty(this, "cursorPos", {
3319
+ enumerable: true,
3320
+ configurable: true,
3321
+ writable: true,
3322
+ value: void 0
3323
+ });
3324
+ this.rl = rl;
3325
+ this.cursorPos = rl.getCursorPos();
3326
+ }
3327
+ render(content, bottomContent = '') {
3328
+ /**
3329
+ * Write message to screen and setPrompt to control backspace
3330
+ */
3331
+ const promptLine = lastLine(content);
3332
+ const rawPromptLine = (0, strip_ansi_1.default)(promptLine);
3333
+ // Remove the rl.line from our prompt. We can't rely on the content of
3334
+ // rl.line (mainly because of the password prompt), so just rely on it's
3335
+ // length.
3336
+ let prompt = rawPromptLine;
3337
+ if (this.rl.line.length > 0) {
3338
+ prompt = prompt.slice(0, -this.rl.line.length);
3339
+ }
3340
+ this.rl.setPrompt(prompt);
3341
+ // SetPrompt will change cursor position, now we can get correct value
3342
+ this.cursorPos = this.rl.getCursorPos();
3343
+ const width = (0, utils_mjs_1.readlineWidth)();
3344
+ content = (0, utils_mjs_1.breakLines)(content, width);
3345
+ bottomContent = (0, utils_mjs_1.breakLines)(bottomContent, width);
3346
+ // Manually insert an extra line if we're at the end of the line.
3347
+ // This prevent the cursor from appearing at the beginning of the
3348
+ // current line.
3349
+ if (rawPromptLine.length % width === 0) {
3350
+ content += '\n';
3351
+ }
3352
+ let output = content + (bottomContent ? '\n' + bottomContent : '');
3353
+ /**
3354
+ * Re-adjust the cursor at the correct position.
3355
+ */
3356
+ // We need to consider parts of the prompt under the cursor as part of the bottom
3357
+ // content in order to correctly cleanup and re-render.
3358
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
3359
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
3360
+ // Return cursor to the input position (on top of the bottomContent)
3361
+ if (bottomContentHeight > 0)
3362
+ output += ansi_escapes_1.default.cursorUp(bottomContentHeight);
3363
+ // Return cursor to the initial left offset.
3364
+ output += ansi_escapes_1.default.cursorTo(this.cursorPos.cols);
3365
+ this.clean();
3366
+ this.rl.output.unmute();
3367
+ /**
3368
+ * Set up state for next re-rendering
3369
+ */
3370
+ this.extraLinesUnderPrompt = bottomContentHeight;
3371
+ this.height = height(output);
3372
+ this.rl.output.write(output);
3373
+ this.rl.output.mute();
3374
+ }
3375
+ checkCursorPos() {
3376
+ const cursorPos = this.rl.getCursorPos();
3377
+ if (cursorPos.cols !== this.cursorPos.cols) {
3378
+ this.rl.output.unmute();
3379
+ this.rl.output.write(ansi_escapes_1.default.cursorTo(cursorPos.cols));
3380
+ this.rl.output.mute();
3381
+ this.cursorPos = cursorPos;
3382
+ }
3383
+ }
3384
+ clean() {
3385
+ this.rl.output.unmute();
3386
+ this.rl.output.write([
3387
+ this.extraLinesUnderPrompt > 0
3388
+ ? ansi_escapes_1.default.cursorDown(this.extraLinesUnderPrompt)
3389
+ : '',
3390
+ ansi_escapes_1.default.eraseLines(this.height),
3391
+ ].join(''));
3392
+ this.extraLinesUnderPrompt = 0;
3393
+ this.rl.output.mute();
3394
+ }
3395
+ clearContent() {
3396
+ this.rl.output.unmute();
3397
+ // Reset the cursor at the end of the previously displayed content
3398
+ this.rl.output.write([
3399
+ this.extraLinesUnderPrompt > 0
3400
+ ? ansi_escapes_1.default.cursorDown(this.extraLinesUnderPrompt)
3401
+ : '',
3402
+ '\n',
3403
+ ].join(''));
3404
+ this.rl.output.mute();
3405
+ }
3406
+ done() {
3407
+ this.rl.setPrompt('');
3408
+ this.rl.output.unmute();
3409
+ this.rl.output.write(ansi_escapes_1.default.cursorShow);
3410
+ this.rl.output.end();
3411
+ this.rl.close();
3412
+ }
3413
+ }
3414
+ screenManager.default = ScreenManager;
3415
+ return screenManager;
3416
+ }
3417
+
3418
+ var hasRequiredCreatePrompt;
3419
+
3420
+ function requireCreatePrompt () {
3421
+ if (hasRequiredCreatePrompt) return createPrompt;
3422
+ hasRequiredCreatePrompt = 1;
3423
+ var __createBinding = (createPrompt && createPrompt.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3424
+ if (k2 === undefined) k2 = k;
3425
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3426
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3427
+ desc = { enumerable: true, get: function() { return m[k]; } };
3428
+ }
3429
+ Object.defineProperty(o, k2, desc);
3430
+ }) : (function(o, m, k, k2) {
3431
+ if (k2 === undefined) k2 = k;
3432
+ o[k2] = m[k];
3433
+ }));
3434
+ var __setModuleDefault = (createPrompt && createPrompt.__setModuleDefault) || (Object.create ? (function(o, v) {
3435
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
3436
+ }) : function(o, v) {
3437
+ o["default"] = v;
3438
+ });
3439
+ var __importStar = (createPrompt && createPrompt.__importStar) || function (mod) {
3440
+ if (mod && mod.__esModule) return mod;
3441
+ var result = {};
3442
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
3443
+ __setModuleDefault(result, mod);
3444
+ return result;
3445
+ };
3446
+ var __importDefault = (createPrompt && createPrompt.__importDefault) || function (mod) {
3447
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3448
+ };
3449
+ Object.defineProperty(createPrompt, "__esModule", { value: true });
3450
+ createPrompt.createPrompt = createPrompt$1;
3451
+ const readline = __importStar(readline__default);
3452
+ const type_1 = /*@__PURE__*/ requireCjs$2();
3453
+ const mute_stream_1 = __importDefault(requireLib());
3454
+ const signal_exit_1 = requireCjs$1();
3455
+ const screen_manager_mjs_1 = __importDefault(/*@__PURE__*/ requireScreenManager());
3456
+ const hook_engine_mjs_1 = /*@__PURE__*/ requireHookEngine();
3457
+ const errors_mjs_1 = /*@__PURE__*/ requireErrors();
3458
+ function createPrompt$1(view) {
3459
+ const prompt = (config, context) => {
3460
+ var _a, _b;
3461
+ // Default `input` to stdin
3462
+ const input = (_a = context === null || context === void 0 ? void 0 : context.input) !== null && _a !== void 0 ? _a : process.stdin;
3463
+ // Add mute capabilities to the output
3464
+ const output = new mute_stream_1.default();
3465
+ output.pipe((_b = context === null || context === void 0 ? void 0 : context.output) !== null && _b !== void 0 ? _b : process.stdout);
3466
+ const rl = readline.createInterface({
3467
+ terminal: true,
3468
+ input,
3469
+ output,
3470
+ });
3471
+ const screen = new screen_manager_mjs_1.default(rl);
3472
+ let cancel = () => { };
3473
+ const answer = new type_1.CancelablePromise((resolve, reject) => {
3474
+ (0, hook_engine_mjs_1.withHooks)(rl, (store) => {
3475
+ function checkCursorPos() {
3476
+ screen.checkCursorPos();
3477
+ }
3478
+ const removeExitListener = (0, signal_exit_1.onExit)((code, signal) => {
3479
+ onExit();
3480
+ reject(new errors_mjs_1.ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
3481
+ });
3482
+ function onExit() {
3483
+ try {
3484
+ store.hooksCleanup.forEach((cleanFn) => {
3485
+ cleanFn === null || cleanFn === void 0 ? void 0 : cleanFn();
3486
+ });
3487
+ }
3488
+ catch (error) {
3489
+ reject(error);
3490
+ }
3491
+ if (context === null || context === void 0 ? void 0 : context.clearPromptOnDone) {
3492
+ screen.clean();
3493
+ }
3494
+ else {
3495
+ screen.clearContent();
3496
+ }
3497
+ screen.done();
3498
+ removeExitListener();
3499
+ store.rl.input.removeListener('keypress', checkCursorPos);
3500
+ }
3501
+ cancel = () => {
3502
+ onExit();
3503
+ reject(new errors_mjs_1.CancelPromptError());
3504
+ };
3505
+ function done(value) {
3506
+ // Delay execution to let time to the hookCleanup functions to registers.
3507
+ setImmediate(() => {
3508
+ onExit();
3509
+ // Finally we resolve our promise
3510
+ resolve(value);
3511
+ });
3512
+ }
3513
+ function workLoop() {
3514
+ store.index = 0;
3515
+ try {
3516
+ const nextView = view(config, done);
3517
+ const [content, bottomContent] = typeof nextView === 'string' ? [nextView] : nextView;
3518
+ screen.render(content, bottomContent);
3519
+ hook_engine_mjs_1.effectScheduler.run();
3520
+ }
3521
+ catch (error) {
3522
+ onExit();
3523
+ reject(error);
3524
+ }
3525
+ }
3526
+ store.handleChange = () => workLoop();
3527
+ workLoop();
3528
+ // Re-renders only happen when the state change; but the readline cursor could change position
3529
+ // and that also requires a re-render (and a manual one because we mute the streams).
3530
+ // We set the listener after the initial workLoop to avoid a double render if render triggered
3531
+ // by a state change sets the cursor to the right position.
3532
+ store.rl.input.on('keypress', checkCursorPos);
3533
+ });
3534
+ });
3535
+ answer.cancel = cancel;
3536
+ return answer;
3537
+ };
3538
+ return prompt;
3539
+ }
3540
+ return createPrompt;
3541
+ }
3542
+
3543
+ var Separator = {};
3544
+
3545
+ var commonjs = {};
3546
+
3547
+ var hasRequiredCommonjs;
3548
+
3549
+ function requireCommonjs () {
3550
+ if (hasRequiredCommonjs) return commonjs;
3551
+ hasRequiredCommonjs = 1;
3552
+ (function (exports) {
3553
+ var __importDefault = (commonjs && commonjs.__importDefault) || function (mod) {
3554
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3555
+ };
3556
+ Object.defineProperty(exports, "__esModule", { value: true });
3557
+ exports.replaceSymbols = exports.fallbackSymbols = exports.mainSymbols = void 0;
3558
+ // process.env dot-notation access prints:
3559
+ // Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
3560
+ /* eslint dot-notation: ["off"] */
3561
+ const node_process_1 = __importDefault(process__default);
3562
+ // Ported from is-unicode-supported
3563
+ function isUnicodeSupported() {
3564
+ if (node_process_1.default.platform !== 'win32') {
3565
+ return node_process_1.default.env['TERM'] !== 'linux'; // Linux console (kernel)
3566
+ }
3567
+ return (Boolean(node_process_1.default.env['WT_SESSION']) || // Windows Terminal
3568
+ Boolean(node_process_1.default.env['TERMINUS_SUBLIME']) || // Terminus (<0.2.27)
3569
+ node_process_1.default.env['ConEmuTask'] === '{cmd::Cmder}' || // ConEmu and cmder
3570
+ node_process_1.default.env['TERM_PROGRAM'] === 'Terminus-Sublime' ||
3571
+ node_process_1.default.env['TERM_PROGRAM'] === 'vscode' ||
3572
+ node_process_1.default.env['TERM'] === 'xterm-256color' ||
3573
+ node_process_1.default.env['TERM'] === 'alacritty' ||
3574
+ node_process_1.default.env['TERMINAL_EMULATOR'] === 'JetBrains-JediTerm');
3575
+ }
3576
+ // Ported from figures
3577
+ const common = {
3578
+ circleQuestionMark: '(?)',
3579
+ questionMarkPrefix: '(?)',
3580
+ square: '█',
3581
+ squareDarkShade: '▓',
3582
+ squareMediumShade: '▒',
3583
+ squareLightShade: '░',
3584
+ squareTop: '▀',
3585
+ squareBottom: '▄',
3586
+ squareLeft: '▌',
3587
+ squareRight: '▐',
3588
+ squareCenter: '■',
3589
+ bullet: '●',
3590
+ dot: '․',
3591
+ ellipsis: '…',
3592
+ pointerSmall: '›',
3593
+ triangleUp: '▲',
3594
+ triangleUpSmall: '▴',
3595
+ triangleDown: '▼',
3596
+ triangleDownSmall: '▾',
3597
+ triangleLeftSmall: '◂',
3598
+ triangleRightSmall: '▸',
3599
+ home: '⌂',
3600
+ heart: '♥',
3601
+ musicNote: '♪',
3602
+ musicNoteBeamed: '♫',
3603
+ arrowUp: '↑',
3604
+ arrowDown: '↓',
3605
+ arrowLeft: '←',
3606
+ arrowRight: '→',
3607
+ arrowLeftRight: '↔',
3608
+ arrowUpDown: '↕',
3609
+ almostEqual: '≈',
3610
+ notEqual: '≠',
3611
+ lessOrEqual: '≤',
3612
+ greaterOrEqual: '≥',
3613
+ identical: '≡',
3614
+ infinity: '∞',
3615
+ subscriptZero: '₀',
3616
+ subscriptOne: '₁',
3617
+ subscriptTwo: '₂',
3618
+ subscriptThree: '₃',
3619
+ subscriptFour: '₄',
3620
+ subscriptFive: '₅',
3621
+ subscriptSix: '₆',
3622
+ subscriptSeven: '₇',
3623
+ subscriptEight: '₈',
3624
+ subscriptNine: '₉',
3625
+ oneHalf: '½',
3626
+ oneThird: '⅓',
3627
+ oneQuarter: '¼',
3628
+ oneFifth: '⅕',
3629
+ oneSixth: '⅙',
3630
+ oneEighth: '⅛',
3631
+ twoThirds: '⅔',
3632
+ twoFifths: '⅖',
3633
+ threeQuarters: '¾',
3634
+ threeFifths: '⅗',
3635
+ threeEighths: '⅜',
3636
+ fourFifths: '⅘',
3637
+ fiveSixths: '⅚',
3638
+ fiveEighths: '⅝',
3639
+ sevenEighths: '⅞',
3640
+ line: '─',
3641
+ lineBold: '━',
3642
+ lineDouble: '═',
3643
+ lineDashed0: '┄',
3644
+ lineDashed1: '┅',
3645
+ lineDashed2: '┈',
3646
+ lineDashed3: '┉',
3647
+ lineDashed4: '╌',
3648
+ lineDashed5: '╍',
3649
+ lineDashed6: '╴',
3650
+ lineDashed7: '╶',
3651
+ lineDashed8: '╸',
3652
+ lineDashed9: '╺',
3653
+ lineDashed10: '╼',
3654
+ lineDashed11: '╾',
3655
+ lineDashed12: '−',
3656
+ lineDashed13: '–',
3657
+ lineDashed14: '‐',
3658
+ lineDashed15: '⁃',
3659
+ lineVertical: '│',
3660
+ lineVerticalBold: '┃',
3661
+ lineVerticalDouble: '║',
3662
+ lineVerticalDashed0: '┆',
3663
+ lineVerticalDashed1: '┇',
3664
+ lineVerticalDashed2: '┊',
3665
+ lineVerticalDashed3: '┋',
3666
+ lineVerticalDashed4: '╎',
3667
+ lineVerticalDashed5: '╏',
3668
+ lineVerticalDashed6: '╵',
3669
+ lineVerticalDashed7: '╷',
3670
+ lineVerticalDashed8: '╹',
3671
+ lineVerticalDashed9: '╻',
3672
+ lineVerticalDashed10: '╽',
3673
+ lineVerticalDashed11: '╿',
3674
+ lineDownLeft: '┐',
3675
+ lineDownLeftArc: '╮',
3676
+ lineDownBoldLeftBold: '┓',
3677
+ lineDownBoldLeft: '┒',
3678
+ lineDownLeftBold: '┑',
3679
+ lineDownDoubleLeftDouble: '╗',
3680
+ lineDownDoubleLeft: '╖',
3681
+ lineDownLeftDouble: '╕',
3682
+ lineDownRight: '┌',
3683
+ lineDownRightArc: '╭',
3684
+ lineDownBoldRightBold: '┏',
3685
+ lineDownBoldRight: '┎',
3686
+ lineDownRightBold: '┍',
3687
+ lineDownDoubleRightDouble: '╔',
3688
+ lineDownDoubleRight: '╓',
3689
+ lineDownRightDouble: '╒',
3690
+ lineUpLeft: '┘',
3691
+ lineUpLeftArc: '╯',
3692
+ lineUpBoldLeftBold: '┛',
3693
+ lineUpBoldLeft: '┚',
3694
+ lineUpLeftBold: '┙',
3695
+ lineUpDoubleLeftDouble: '╝',
3696
+ lineUpDoubleLeft: '╜',
3697
+ lineUpLeftDouble: '╛',
3698
+ lineUpRight: '└',
3699
+ lineUpRightArc: '╰',
3700
+ lineUpBoldRightBold: '┗',
3701
+ lineUpBoldRight: '┖',
3702
+ lineUpRightBold: '┕',
3703
+ lineUpDoubleRightDouble: '╚',
3704
+ lineUpDoubleRight: '╙',
3705
+ lineUpRightDouble: '╘',
3706
+ lineUpDownLeft: '┤',
3707
+ lineUpBoldDownBoldLeftBold: '┫',
3708
+ lineUpBoldDownBoldLeft: '┨',
3709
+ lineUpDownLeftBold: '┥',
3710
+ lineUpBoldDownLeftBold: '┩',
3711
+ lineUpDownBoldLeftBold: '┪',
3712
+ lineUpDownBoldLeft: '┧',
3713
+ lineUpBoldDownLeft: '┦',
3714
+ lineUpDoubleDownDoubleLeftDouble: '╣',
3715
+ lineUpDoubleDownDoubleLeft: '╢',
3716
+ lineUpDownLeftDouble: '╡',
3717
+ lineUpDownRight: '├',
3718
+ lineUpBoldDownBoldRightBold: '┣',
3719
+ lineUpBoldDownBoldRight: '┠',
3720
+ lineUpDownRightBold: '┝',
3721
+ lineUpBoldDownRightBold: '┡',
3722
+ lineUpDownBoldRightBold: '┢',
3723
+ lineUpDownBoldRight: '┟',
3724
+ lineUpBoldDownRight: '┞',
3725
+ lineUpDoubleDownDoubleRightDouble: '╠',
3726
+ lineUpDoubleDownDoubleRight: '╟',
3727
+ lineUpDownRightDouble: '╞',
3728
+ lineDownLeftRight: '┬',
3729
+ lineDownBoldLeftBoldRightBold: '┳',
3730
+ lineDownLeftBoldRightBold: '┯',
3731
+ lineDownBoldLeftRight: '┰',
3732
+ lineDownBoldLeftBoldRight: '┱',
3733
+ lineDownBoldLeftRightBold: '┲',
3734
+ lineDownLeftRightBold: '┮',
3735
+ lineDownLeftBoldRight: '┭',
3736
+ lineDownDoubleLeftDoubleRightDouble: '╦',
3737
+ lineDownDoubleLeftRight: '╥',
3738
+ lineDownLeftDoubleRightDouble: '╤',
3739
+ lineUpLeftRight: '┴',
3740
+ lineUpBoldLeftBoldRightBold: '┻',
3741
+ lineUpLeftBoldRightBold: '┷',
3742
+ lineUpBoldLeftRight: '┸',
3743
+ lineUpBoldLeftBoldRight: '┹',
3744
+ lineUpBoldLeftRightBold: '┺',
3745
+ lineUpLeftRightBold: '┶',
3746
+ lineUpLeftBoldRight: '┵',
3747
+ lineUpDoubleLeftDoubleRightDouble: '╩',
3748
+ lineUpDoubleLeftRight: '╨',
3749
+ lineUpLeftDoubleRightDouble: '╧',
3750
+ lineUpDownLeftRight: '┼',
3751
+ lineUpBoldDownBoldLeftBoldRightBold: '╋',
3752
+ lineUpDownBoldLeftBoldRightBold: '╈',
3753
+ lineUpBoldDownLeftBoldRightBold: '╇',
3754
+ lineUpBoldDownBoldLeftRightBold: '╊',
3755
+ lineUpBoldDownBoldLeftBoldRight: '╉',
3756
+ lineUpBoldDownLeftRight: '╀',
3757
+ lineUpDownBoldLeftRight: '╁',
3758
+ lineUpDownLeftBoldRight: '┽',
3759
+ lineUpDownLeftRightBold: '┾',
3760
+ lineUpBoldDownBoldLeftRight: '╂',
3761
+ lineUpDownLeftBoldRightBold: '┿',
3762
+ lineUpBoldDownLeftBoldRight: '╃',
3763
+ lineUpBoldDownLeftRightBold: '╄',
3764
+ lineUpDownBoldLeftBoldRight: '╅',
3765
+ lineUpDownBoldLeftRightBold: '╆',
3766
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
3767
+ lineUpDoubleDownDoubleLeftRight: '╫',
3768
+ lineUpDownLeftDoubleRightDouble: '╪',
3769
+ lineCross: '╳',
3770
+ lineBackslash: '╲',
3771
+ lineSlash: '╱',
3772
+ };
3773
+ const specialMainSymbols = {
3774
+ tick: '✔',
3775
+ info: 'ℹ',
3776
+ warning: '⚠',
3777
+ cross: '✘',
3778
+ squareSmall: '◻',
3779
+ squareSmallFilled: '◼',
3780
+ circle: '◯',
3781
+ circleFilled: '◉',
3782
+ circleDotted: '◌',
3783
+ circleDouble: '◎',
3784
+ circleCircle: 'ⓞ',
3785
+ circleCross: 'ⓧ',
3786
+ circlePipe: 'Ⓘ',
3787
+ radioOn: '◉',
3788
+ radioOff: '◯',
3789
+ checkboxOn: '☒',
3790
+ checkboxOff: '☐',
3791
+ checkboxCircleOn: 'ⓧ',
3792
+ checkboxCircleOff: 'Ⓘ',
3793
+ pointer: '❯',
3794
+ triangleUpOutline: '△',
3795
+ triangleLeft: '◀',
3796
+ triangleRight: '▶',
3797
+ lozenge: '◆',
3798
+ lozengeOutline: '◇',
3799
+ hamburger: '☰',
3800
+ smiley: '㋡',
3801
+ mustache: '෴',
3802
+ star: '★',
3803
+ play: '▶',
3804
+ nodejs: '⬢',
3805
+ oneSeventh: '⅐',
3806
+ oneNinth: '⅑',
3807
+ oneTenth: '⅒',
3808
+ };
3809
+ const specialFallbackSymbols = {
3810
+ tick: '√',
3811
+ info: 'i',
3812
+ warning: '‼',
3813
+ cross: '×',
3814
+ squareSmall: '□',
3815
+ squareSmallFilled: '■',
3816
+ circle: '( )',
3817
+ circleFilled: '(*)',
3818
+ circleDotted: '( )',
3819
+ circleDouble: '( )',
3820
+ circleCircle: '(○)',
3821
+ circleCross: '(×)',
3822
+ circlePipe: '(│)',
3823
+ radioOn: '(*)',
3824
+ radioOff: '( )',
3825
+ checkboxOn: '[×]',
3826
+ checkboxOff: '[ ]',
3827
+ checkboxCircleOn: '(×)',
3828
+ checkboxCircleOff: '( )',
3829
+ pointer: '>',
3830
+ triangleUpOutline: '∆',
3831
+ triangleLeft: '◄',
3832
+ triangleRight: '►',
3833
+ lozenge: '♦',
3834
+ lozengeOutline: '◊',
3835
+ hamburger: '≡',
3836
+ smiley: '☺',
3837
+ mustache: '┌─┐',
3838
+ star: '✶',
3839
+ play: '►',
3840
+ nodejs: '♦',
3841
+ oneSeventh: '1/7',
3842
+ oneNinth: '1/9',
3843
+ oneTenth: '1/10',
3844
+ };
3845
+ exports.mainSymbols = { ...common, ...specialMainSymbols };
3846
+ exports.fallbackSymbols = {
3847
+ ...common,
3848
+ ...specialFallbackSymbols,
3849
+ };
3850
+ const shouldUseMain = isUnicodeSupported();
3851
+ const figures = shouldUseMain ? exports.mainSymbols : exports.fallbackSymbols;
3852
+ exports.default = figures;
3853
+ const replacements = Object.entries(specialMainSymbols);
3854
+ // On terminals which do not support Unicode symbols, substitute them to other symbols
3855
+ const replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
3856
+ if (useFallback) {
3857
+ for (const [key, mainSymbol] of replacements) {
3858
+ const fallbackSymbol = exports.fallbackSymbols[key];
3859
+ if (!fallbackSymbol) {
3860
+ throw new Error(`Unable to find fallback for ${key}`);
3861
+ }
3862
+ string = string.replaceAll(mainSymbol, fallbackSymbol);
3863
+ }
3864
+ }
3865
+ return string;
3866
+ };
3867
+ exports.replaceSymbols = replaceSymbols;
3868
+ } (commonjs));
3869
+ return commonjs;
3870
+ }
3871
+
3872
+ var hasRequiredSeparator;
3873
+
3874
+ function requireSeparator () {
3875
+ if (hasRequiredSeparator) return Separator;
3876
+ hasRequiredSeparator = 1;
3877
+ var __importDefault = (Separator && Separator.__importDefault) || function (mod) {
3878
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3879
+ };
3880
+ Object.defineProperty(Separator, "__esModule", { value: true });
3881
+ Separator.Separator = void 0;
3882
+ const picocolors_1 = __importDefault(/*@__PURE__*/ requirePicocolors());
3883
+ const figures_1 = __importDefault(/*@__PURE__*/ requireCommonjs());
3884
+ /**
3885
+ * Separator object
3886
+ * Used to space/separate choices group
3887
+ */
3888
+ let Separator$1 = class Separator {
3889
+ constructor(separator) {
3890
+ Object.defineProperty(this, "separator", {
3891
+ enumerable: true,
3892
+ configurable: true,
3893
+ writable: true,
3894
+ value: picocolors_1.default.dim(Array.from({ length: 15 }).join(figures_1.default.line))
3895
+ });
3896
+ Object.defineProperty(this, "type", {
3897
+ enumerable: true,
3898
+ configurable: true,
3899
+ writable: true,
3900
+ value: 'separator'
3901
+ });
3902
+ if (separator) {
3903
+ this.separator = separator;
3904
+ }
3905
+ }
3906
+ static isSeparator(choice) {
3907
+ return Boolean(choice && choice.type === 'separator');
3908
+ }
3909
+ };
3910
+ Separator.Separator = Separator$1;
3911
+ return Separator;
3912
+ }
3913
+
3914
+ var hasRequiredCjs;
3915
+
3916
+ function requireCjs () {
3917
+ if (hasRequiredCjs) return cjs$2;
3918
+ hasRequiredCjs = 1;
3919
+ (function (exports) {
3920
+ var __createBinding = (cjs$2 && cjs$2.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3921
+ if (k2 === undefined) k2 = k;
3922
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3923
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3924
+ desc = { enumerable: true, get: function() { return m[k]; } };
3925
+ }
3926
+ Object.defineProperty(o, k2, desc);
3927
+ }) : (function(o, m, k, k2) {
3928
+ if (k2 === undefined) k2 = k;
3929
+ o[k2] = m[k];
3930
+ }));
3931
+ var __exportStar = (cjs$2 && cjs$2.__exportStar) || function(m, exports) {
3932
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3933
+ };
3934
+ Object.defineProperty(exports, "__esModule", { value: true });
3935
+ exports.Separator = exports.createPrompt = exports.usePagination = exports.makeTheme = exports.useKeypress = exports.useRef = exports.useMemo = exports.useEffect = exports.useState = exports.usePrefix = void 0;
3936
+ __exportStar(/*@__PURE__*/ requireKey(), exports);
3937
+ __exportStar(/*@__PURE__*/ requireErrors(), exports);
3938
+ var use_prefix_mjs_1 = /*@__PURE__*/ requireUsePrefix();
3939
+ Object.defineProperty(exports, "usePrefix", { enumerable: true, get: function () { return use_prefix_mjs_1.usePrefix; } });
3940
+ var use_state_mjs_1 = /*@__PURE__*/ requireUseState();
3941
+ Object.defineProperty(exports, "useState", { enumerable: true, get: function () { return use_state_mjs_1.useState; } });
3942
+ var use_effect_mjs_1 = /*@__PURE__*/ requireUseEffect();
3943
+ Object.defineProperty(exports, "useEffect", { enumerable: true, get: function () { return use_effect_mjs_1.useEffect; } });
3944
+ var use_memo_mjs_1 = /*@__PURE__*/ requireUseMemo();
3945
+ Object.defineProperty(exports, "useMemo", { enumerable: true, get: function () { return use_memo_mjs_1.useMemo; } });
3946
+ var use_ref_mjs_1 = /*@__PURE__*/ requireUseRef();
3947
+ Object.defineProperty(exports, "useRef", { enumerable: true, get: function () { return use_ref_mjs_1.useRef; } });
3948
+ var use_keypress_mjs_1 = /*@__PURE__*/ requireUseKeypress();
3949
+ Object.defineProperty(exports, "useKeypress", { enumerable: true, get: function () { return use_keypress_mjs_1.useKeypress; } });
3950
+ var make_theme_mjs_1 = /*@__PURE__*/ requireMakeTheme();
3951
+ Object.defineProperty(exports, "makeTheme", { enumerable: true, get: function () { return make_theme_mjs_1.makeTheme; } });
3952
+ var use_pagination_mjs_1 = /*@__PURE__*/ requireUsePagination();
3953
+ Object.defineProperty(exports, "usePagination", { enumerable: true, get: function () { return use_pagination_mjs_1.usePagination; } });
3954
+ var create_prompt_mjs_1 = /*@__PURE__*/ requireCreatePrompt();
3955
+ Object.defineProperty(exports, "createPrompt", { enumerable: true, get: function () { return create_prompt_mjs_1.createPrompt; } });
3956
+ var Separator_mjs_1 = /*@__PURE__*/ requireSeparator();
3957
+ Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return Separator_mjs_1.Separator; } });
3958
+ } (cjs$2));
3959
+ return cjs$2;
3960
+ }
3961
+
3962
+ var hasRequiredDist;
3963
+
3964
+ function requireDist () {
3965
+ if (hasRequiredDist) return dist;
3966
+ hasRequiredDist = 1;
3967
+ var __importDefault = (dist && dist.__importDefault) || function (mod) {
3968
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3969
+ };
3970
+ Object.defineProperty(dist, "__esModule", { value: true });
3971
+ const core_1 = /*@__PURE__*/ requireCjs();
3972
+ const core_2 = /*@__PURE__*/ requireCjs();
3973
+ const ansi_escapes_1 = __importDefault(requireAnsiEscapes());
3974
+ function isLeftKey(key) {
3975
+ return key.name === "left";
3976
+ }
3977
+ function isRightKey(key) {
3978
+ return key.name === "right";
3979
+ }
3980
+ dist.default = (0, core_2.createPrompt)((config, done) => {
3981
+ var _a;
3982
+ const theme = (0, core_2.makeTheme)({ active: "yes", inactive: "no" }, config.theme);
3983
+ const prefix = (0, core_2.usePrefix)({ theme });
3984
+ const [value, setValue] = (0, core_1.useState)((_a = config.default) !== null && _a !== void 0 ? _a : false);
3985
+ const [isDone, setIsDone] = (0, core_1.useState)(false);
3986
+ (0, core_1.useKeypress)((key) => {
3987
+ if ((0, core_1.isEnterKey)(key)) {
3988
+ setIsDone(true);
3989
+ done(value);
3990
+ }
3991
+ else if (isLeftKey(key) || isRightKey(key) || (0, core_1.isUpKey)(key) || (0, core_1.isDownKey)(key)) {
3992
+ setValue(!value);
3993
+ }
3994
+ });
3995
+ const message = theme.style.message(config.message);
3996
+ if (isDone) {
3997
+ return `${prefix} ${message} ${theme.style.answer(value ? theme.active : theme.inactive)}`;
3998
+ }
3999
+ const activeMessage = value ? theme.style.highlight(theme.active) : theme.active;
4000
+ const inactiveMessage = value ? theme.inactive : theme.style.highlight(theme.inactive);
4001
+ return `${prefix} ${message} ${inactiveMessage} / ${activeMessage}${ansi_escapes_1.default.cursorHide}`;
4002
+ });
4003
+ return dist;
4004
+ }
4005
+
4006
+ var distExports = requireDist();
4007
+ const toggleModule = /*@__PURE__*/getDefaultExportFromCjs(distExports);
4008
+
4009
+ const togglePrompt = toggleModule?.default?.default || toggleModule?.default || toggleModule;
4010
+ async function promptBoolean(options) {
4011
+ const { message, defaultValue = false, theme } = options;
4012
+ return await togglePrompt({
4013
+ message,
4014
+ default: defaultValue,
4015
+ ...theme ? { theme } : {}
4016
+ });
4017
+ }
4018
+
4019
+ export { promptBoolean as p };