···11+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22+33+exports[`text (isCI = false) > can cancel by pressing escape 1`] = `
44+[
55+ "<cursor.hide>",
66+ "[90m│[39m
77+[36m◆[39m foo
88+[36m│[39m [46m[90m a [39m[49m Option A
99+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
1010+[36m└[39m
1111+",
1212+ "<cursor.backward count=999><cursor.up count=5>",
1313+ "<cursor.down count=1>",
1414+ "<erase.down>",
1515+ "[31m■[39m foo
1616+[90m│[39m [9m[2mOption A[22m[29m
1717+[90m│[39m",
1818+ "
1919+",
2020+ "<cursor.show>",
2121+]
2222+`;
2323+2424+exports[`text (isCI = false) > caseSensitive: true makes input case-sensitive 1`] = `
2525+[
2626+ "<cursor.hide>",
2727+ "[90m│[39m
2828+[36m◆[39m foo
2929+[36m│[39m [46m[90m a [39m[49m Option a
3030+[36m│[39m [90m[47m[7m A [27m[49m[39m Option A
3131+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
3232+[36m└[39m
3333+",
3434+ "<cursor.show>",
3535+ "<cursor.backward count=999><cursor.up count=6>",
3636+ "<cursor.down count=1>",
3737+ "<erase.down>",
3838+ "[32m◇[39m foo
3939+[90m│[39m [2mOption A[22m",
4040+ "
4141+",
4242+]
4343+`;
4444+4545+exports[`text (isCI = false) > caseSensitive: true makes options case-sensitive 1`] = `
4646+[
4747+ "<cursor.hide>",
4848+ "[90m│[39m
4949+[36m◆[39m foo
5050+[36m│[39m [46m[90m A [39m[49m Option A
5151+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
5252+[36m└[39m
5353+",
5454+ "<cursor.backward count=999><cursor.up count=5>",
5555+ "<cursor.down count=1>",
5656+ "<erase.down>",
5757+ "[31m■[39m foo
5858+[90m│[39m [9m[2mOption A[22m[29m
5959+[90m│[39m",
6060+ "
6161+",
6262+ "<cursor.show>",
6363+]
6464+`;
6565+6666+exports[`text (isCI = false) > input is case-insensitive by default 1`] = `
6767+[
6868+ "<cursor.hide>",
6969+ "[90m│[39m
7070+[36m◆[39m foo
7171+[36m│[39m [46m[90m a [39m[49m Option A
7272+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
7373+[36m└[39m
7474+",
7575+ "<cursor.show>",
7676+ "<cursor.backward count=999><cursor.up count=5>",
7777+ "<cursor.down count=1>",
7878+ "<erase.down>",
7979+ "[32m◇[39m foo
8080+[90m│[39m [2mOption A[22m",
8181+ "
8282+",
8383+]
8484+`;
8585+8686+exports[`text (isCI = false) > long cancelled labels are wrapped correctly 1`] = `
8787+[
8888+ "<cursor.hide>",
8989+ "[90m│[39m
9090+[36m◆[39m Select an option:
9191+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
9292+[36m│[39m label This is a somewhat
9393+[36m│[39m long label This is a
9494+[36m│[39m somewhat long label This is
9595+[36m│[39m a somewhat long label This
9696+[36m│[39m is a somewhat long label
9797+[36m│[39m This is a somewhat long
9898+[36m│[39m label This is a somewhat
9999+[36m│[39m long label This is a
100100+[36m│[39m somewhat long label This is
101101+[36m│[39m a somewhat long label This
102102+[36m│[39m is a somewhat long label
103103+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
104104+[36m└[39m
105105+",
106106+ "<cursor.backward count=999><cursor.up count=16>",
107107+ "<cursor.down count=1>",
108108+ "<erase.down>",
109109+ "[31m■[39m Select an option:
110110+[90m│[39m [9m[2mThis is a somewhat long [22m
111111+[90m│[39m [2mlabel This is a somewhat [22m
112112+[90m│[39m [2mlong label This is a [22m
113113+[90m│[39m [2msomewhat long label This is[22m
114114+[90m│[39m [2m a somewhat long label This[22m
115115+[90m│[39m [2m is a somewhat long label [22m
116116+[90m│[39m [2mThis is a somewhat long [22m
117117+[90m│[39m [2mlabel This is a somewhat [22m
118118+[90m│[39m [2mlong label This is a [22m
119119+[90m│[39m [2msomewhat long label This is[22m
120120+[90m│[39m [2m a somewhat long label This[22m
121121+[90m│[39m [2m is a somewhat long label[22m[29m
122122+[90m│[39m",
123123+ "
124124+",
125125+ "<cursor.show>",
126126+]
127127+`;
128128+129129+exports[`text (isCI = false) > long option labels are wrapped correctly 1`] = `
130130+[
131131+ "<cursor.hide>",
132132+ "[90m│[39m
133133+[36m◆[39m Select an option:
134134+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
135135+[36m│[39m label This is a somewhat
136136+[36m│[39m long label This is a
137137+[36m│[39m somewhat long label This is
138138+[36m│[39m a somewhat long label This
139139+[36m│[39m is a somewhat long label
140140+[36m│[39m This is a somewhat long
141141+[36m│[39m label This is a somewhat
142142+[36m│[39m long label This is a
143143+[36m│[39m somewhat long label This is
144144+[36m│[39m a somewhat long label This
145145+[36m│[39m is a somewhat long label
146146+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
147147+[36m└[39m
148148+",
149149+ "<cursor.show>",
150150+ "<cursor.backward count=999><cursor.up count=16>",
151151+ "<cursor.down count=1>",
152152+ "<erase.down>",
153153+ "[32m◇[39m Select an option:
154154+[90m│[39m [2mThis is a somewhat long [22m
155155+[90m│[39m [2mlabel This is a somewhat [22m
156156+[90m│[39m [2mlong label This is a [22m
157157+[90m│[39m [2msomewhat long label This is[22m
158158+[90m│[39m [2m a somewhat long label This[22m
159159+[90m│[39m [2m is a somewhat long label [22m
160160+[90m│[39m [2mThis is a somewhat long [22m
161161+[90m│[39m [2mlabel This is a somewhat [22m
162162+[90m│[39m [2mlong label This is a [22m
163163+[90m│[39m [2msomewhat long label This is[22m
164164+[90m│[39m [2m a somewhat long label This[22m
165165+[90m│[39m [2m is a somewhat long label[22m",
166166+ "
167167+",
168168+]
169169+`;
170170+171171+exports[`text (isCI = false) > long submitted labels are wrapped correctly 1`] = `
172172+[
173173+ "<cursor.hide>",
174174+ "[90m│[39m
175175+[36m◆[39m Select an option:
176176+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
177177+[36m│[39m label This is a somewhat
178178+[36m│[39m long label This is a
179179+[36m│[39m somewhat long label This is
180180+[36m│[39m a somewhat long label This
181181+[36m│[39m is a somewhat long label
182182+[36m│[39m This is a somewhat long
183183+[36m│[39m label This is a somewhat
184184+[36m│[39m long label This is a
185185+[36m│[39m somewhat long label This is
186186+[36m│[39m a somewhat long label This
187187+[36m│[39m is a somewhat long label
188188+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
189189+[36m└[39m
190190+",
191191+ "<cursor.show>",
192192+ "<cursor.backward count=999><cursor.up count=16>",
193193+ "<cursor.down count=1>",
194194+ "<erase.down>",
195195+ "[32m◇[39m Select an option:
196196+[90m│[39m [2mThis is a somewhat long [22m
197197+[90m│[39m [2mlabel This is a somewhat [22m
198198+[90m│[39m [2mlong label This is a [22m
199199+[90m│[39m [2msomewhat long label This is[22m
200200+[90m│[39m [2m a somewhat long label This[22m
201201+[90m│[39m [2m is a somewhat long label [22m
202202+[90m│[39m [2mThis is a somewhat long [22m
203203+[90m│[39m [2mlabel This is a somewhat [22m
204204+[90m│[39m [2mlong label This is a [22m
205205+[90m│[39m [2msomewhat long label This is[22m
206206+[90m│[39m [2m a somewhat long label This[22m
207207+[90m│[39m [2m is a somewhat long label[22m",
208208+ "
209209+",
210210+]
211211+`;
212212+213213+exports[`text (isCI = false) > options are case-insensitive by default 1`] = `
214214+[
215215+ "<cursor.hide>",
216216+ "[90m│[39m
217217+[36m◆[39m foo
218218+[36m│[39m [46m[90m A [39m[49m Option A
219219+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
220220+[36m└[39m
221221+",
222222+ "<cursor.show>",
223223+ "<cursor.backward count=999><cursor.up count=5>",
224224+ "<cursor.down count=1>",
225225+ "<erase.down>",
226226+ "[32m◇[39m foo
227227+[90m│[39m [2mOption A[22m",
228228+ "
229229+",
230230+]
231231+`;
232232+233233+exports[`text (isCI = false) > renders message with options 1`] = `
234234+[
235235+ "<cursor.hide>",
236236+ "[90m│[39m
237237+[36m◆[39m foo
238238+[36m│[39m [46m[90m a [39m[49m Option A
239239+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
240240+[36m└[39m
241241+",
242242+ "<cursor.backward count=999><cursor.up count=5>",
243243+ "<cursor.down count=1>",
244244+ "<erase.down>",
245245+ "[32m◇[39m foo
246246+[90m│[39m [2mOption A[22m",
247247+ "
248248+",
249249+ "<cursor.show>",
250250+]
251251+`;
252252+253253+exports[`text (isCI = false) > selects option by keypress 1`] = `
254254+[
255255+ "<cursor.hide>",
256256+ "[90m│[39m
257257+[36m◆[39m foo
258258+[36m│[39m [46m[90m a [39m[49m Option A
259259+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
260260+[36m└[39m
261261+",
262262+ "<cursor.show>",
263263+ "<cursor.backward count=999><cursor.up count=5>",
264264+ "<cursor.down count=1>",
265265+ "<erase.down>",
266266+ "[32m◇[39m foo
267267+[90m│[39m [2mOption B[22m",
268268+ "
269269+",
270270+]
271271+`;
272272+273273+exports[`text (isCI = true) > can cancel by pressing escape 1`] = `
274274+[
275275+ "<cursor.hide>",
276276+ "[90m│[39m
277277+[36m◆[39m foo
278278+[36m│[39m [46m[90m a [39m[49m Option A
279279+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
280280+[36m└[39m
281281+",
282282+ "<cursor.backward count=999><cursor.up count=5>",
283283+ "<cursor.down count=1>",
284284+ "<erase.down>",
285285+ "[31m■[39m foo
286286+[90m│[39m [9m[2mOption A[22m[29m
287287+[90m│[39m",
288288+ "
289289+",
290290+ "<cursor.show>",
291291+]
292292+`;
293293+294294+exports[`text (isCI = true) > caseSensitive: true makes input case-sensitive 1`] = `
295295+[
296296+ "<cursor.hide>",
297297+ "[90m│[39m
298298+[36m◆[39m foo
299299+[36m│[39m [46m[90m a [39m[49m Option a
300300+[36m│[39m [90m[47m[7m A [27m[49m[39m Option A
301301+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
302302+[36m└[39m
303303+",
304304+ "<cursor.show>",
305305+ "<cursor.backward count=999><cursor.up count=6>",
306306+ "<cursor.down count=1>",
307307+ "<erase.down>",
308308+ "[32m◇[39m foo
309309+[90m│[39m [2mOption A[22m",
310310+ "
311311+",
312312+]
313313+`;
314314+315315+exports[`text (isCI = true) > caseSensitive: true makes options case-sensitive 1`] = `
316316+[
317317+ "<cursor.hide>",
318318+ "[90m│[39m
319319+[36m◆[39m foo
320320+[36m│[39m [46m[90m A [39m[49m Option A
321321+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
322322+[36m└[39m
323323+",
324324+ "<cursor.backward count=999><cursor.up count=5>",
325325+ "<cursor.down count=1>",
326326+ "<erase.down>",
327327+ "[31m■[39m foo
328328+[90m│[39m [9m[2mOption A[22m[29m
329329+[90m│[39m",
330330+ "
331331+",
332332+ "<cursor.show>",
333333+]
334334+`;
335335+336336+exports[`text (isCI = true) > input is case-insensitive by default 1`] = `
337337+[
338338+ "<cursor.hide>",
339339+ "[90m│[39m
340340+[36m◆[39m foo
341341+[36m│[39m [46m[90m a [39m[49m Option A
342342+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
343343+[36m└[39m
344344+",
345345+ "<cursor.show>",
346346+ "<cursor.backward count=999><cursor.up count=5>",
347347+ "<cursor.down count=1>",
348348+ "<erase.down>",
349349+ "[32m◇[39m foo
350350+[90m│[39m [2mOption A[22m",
351351+ "
352352+",
353353+]
354354+`;
355355+356356+exports[`text (isCI = true) > long cancelled labels are wrapped correctly 1`] = `
357357+[
358358+ "<cursor.hide>",
359359+ "[90m│[39m
360360+[36m◆[39m Select an option:
361361+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
362362+[36m│[39m label This is a somewhat
363363+[36m│[39m long label This is a
364364+[36m│[39m somewhat long label This is
365365+[36m│[39m a somewhat long label This
366366+[36m│[39m is a somewhat long label
367367+[36m│[39m This is a somewhat long
368368+[36m│[39m label This is a somewhat
369369+[36m│[39m long label This is a
370370+[36m│[39m somewhat long label This is
371371+[36m│[39m a somewhat long label This
372372+[36m│[39m is a somewhat long label
373373+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
374374+[36m└[39m
375375+",
376376+ "<cursor.backward count=999><cursor.up count=16>",
377377+ "<cursor.down count=1>",
378378+ "<erase.down>",
379379+ "[31m■[39m Select an option:
380380+[90m│[39m [9m[2mThis is a somewhat long [22m
381381+[90m│[39m [2mlabel This is a somewhat [22m
382382+[90m│[39m [2mlong label This is a [22m
383383+[90m│[39m [2msomewhat long label This is[22m
384384+[90m│[39m [2m a somewhat long label This[22m
385385+[90m│[39m [2m is a somewhat long label [22m
386386+[90m│[39m [2mThis is a somewhat long [22m
387387+[90m│[39m [2mlabel This is a somewhat [22m
388388+[90m│[39m [2mlong label This is a [22m
389389+[90m│[39m [2msomewhat long label This is[22m
390390+[90m│[39m [2m a somewhat long label This[22m
391391+[90m│[39m [2m is a somewhat long label[22m[29m
392392+[90m│[39m",
393393+ "
394394+",
395395+ "<cursor.show>",
396396+]
397397+`;
398398+399399+exports[`text (isCI = true) > long option labels are wrapped correctly 1`] = `
400400+[
401401+ "<cursor.hide>",
402402+ "[90m│[39m
403403+[36m◆[39m Select an option:
404404+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
405405+[36m│[39m label This is a somewhat
406406+[36m│[39m long label This is a
407407+[36m│[39m somewhat long label This is
408408+[36m│[39m a somewhat long label This
409409+[36m│[39m is a somewhat long label
410410+[36m│[39m This is a somewhat long
411411+[36m│[39m label This is a somewhat
412412+[36m│[39m long label This is a
413413+[36m│[39m somewhat long label This is
414414+[36m│[39m a somewhat long label This
415415+[36m│[39m is a somewhat long label
416416+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
417417+[36m└[39m
418418+",
419419+ "<cursor.show>",
420420+ "<cursor.backward count=999><cursor.up count=16>",
421421+ "<cursor.down count=1>",
422422+ "<erase.down>",
423423+ "[32m◇[39m Select an option:
424424+[90m│[39m [2mThis is a somewhat long [22m
425425+[90m│[39m [2mlabel This is a somewhat [22m
426426+[90m│[39m [2mlong label This is a [22m
427427+[90m│[39m [2msomewhat long label This is[22m
428428+[90m│[39m [2m a somewhat long label This[22m
429429+[90m│[39m [2m is a somewhat long label [22m
430430+[90m│[39m [2mThis is a somewhat long [22m
431431+[90m│[39m [2mlabel This is a somewhat [22m
432432+[90m│[39m [2mlong label This is a [22m
433433+[90m│[39m [2msomewhat long label This is[22m
434434+[90m│[39m [2m a somewhat long label This[22m
435435+[90m│[39m [2m is a somewhat long label[22m",
436436+ "
437437+",
438438+]
439439+`;
440440+441441+exports[`text (isCI = true) > long submitted labels are wrapped correctly 1`] = `
442442+[
443443+ "<cursor.hide>",
444444+ "[90m│[39m
445445+[36m◆[39m Select an option:
446446+[36m│[39m [46m[90m a [39m[49m This is a somewhat long
447447+[36m│[39m label This is a somewhat
448448+[36m│[39m long label This is a
449449+[36m│[39m somewhat long label This is
450450+[36m│[39m a somewhat long label This
451451+[36m│[39m is a somewhat long label
452452+[36m│[39m This is a somewhat long
453453+[36m│[39m label This is a somewhat
454454+[36m│[39m long label This is a
455455+[36m│[39m somewhat long label This is
456456+[36m│[39m a somewhat long label This
457457+[36m│[39m is a somewhat long label
458458+[36m│[39m [90m[47m[7m b [27m[49m[39m Short label
459459+[36m└[39m
460460+",
461461+ "<cursor.show>",
462462+ "<cursor.backward count=999><cursor.up count=16>",
463463+ "<cursor.down count=1>",
464464+ "<erase.down>",
465465+ "[32m◇[39m Select an option:
466466+[90m│[39m [2mThis is a somewhat long [22m
467467+[90m│[39m [2mlabel This is a somewhat [22m
468468+[90m│[39m [2mlong label This is a [22m
469469+[90m│[39m [2msomewhat long label This is[22m
470470+[90m│[39m [2m a somewhat long label This[22m
471471+[90m│[39m [2m is a somewhat long label [22m
472472+[90m│[39m [2mThis is a somewhat long [22m
473473+[90m│[39m [2mlabel This is a somewhat [22m
474474+[90m│[39m [2mlong label This is a [22m
475475+[90m│[39m [2msomewhat long label This is[22m
476476+[90m│[39m [2m a somewhat long label This[22m
477477+[90m│[39m [2m is a somewhat long label[22m",
478478+ "
479479+",
480480+]
481481+`;
482482+483483+exports[`text (isCI = true) > options are case-insensitive by default 1`] = `
484484+[
485485+ "<cursor.hide>",
486486+ "[90m│[39m
487487+[36m◆[39m foo
488488+[36m│[39m [46m[90m A [39m[49m Option A
489489+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
490490+[36m└[39m
491491+",
492492+ "<cursor.show>",
493493+ "<cursor.backward count=999><cursor.up count=5>",
494494+ "<cursor.down count=1>",
495495+ "<erase.down>",
496496+ "[32m◇[39m foo
497497+[90m│[39m [2mOption A[22m",
498498+ "
499499+",
500500+]
501501+`;
502502+503503+exports[`text (isCI = true) > renders message with options 1`] = `
504504+[
505505+ "<cursor.hide>",
506506+ "[90m│[39m
507507+[36m◆[39m foo
508508+[36m│[39m [46m[90m a [39m[49m Option A
509509+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
510510+[36m└[39m
511511+",
512512+ "<cursor.backward count=999><cursor.up count=5>",
513513+ "<cursor.down count=1>",
514514+ "<erase.down>",
515515+ "[32m◇[39m foo
516516+[90m│[39m [2mOption A[22m",
517517+ "
518518+",
519519+ "<cursor.show>",
520520+]
521521+`;
522522+523523+exports[`text (isCI = true) > selects option by keypress 1`] = `
524524+[
525525+ "<cursor.hide>",
526526+ "[90m│[39m
527527+[36m◆[39m foo
528528+[36m│[39m [46m[90m a [39m[49m Option A
529529+[36m│[39m [90m[47m[7m b [27m[49m[39m Option B
530530+[36m└[39m
531531+",
532532+ "<cursor.show>",
533533+ "<cursor.backward count=999><cursor.up count=5>",
534534+ "<cursor.down count=1>",
535535+ "<erase.down>",
536536+ "[32m◇[39m foo
537537+[90m│[39m [2mOption B[22m",
538538+ "
539539+",
540540+]
541541+`;