@lynx-js/qrcode-rsbuild-plugin 0.4.1 → 0.4.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.
@@ -1,5 +1,6 @@
1
+ export const __webpack_id__ = "759";
1
2
  export const __webpack_ids__ = [
2
- "373"
3
+ "759"
3
4
  ];
4
5
  export const __webpack_modules__ = {
5
6
  "../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
@@ -122,84 +123,84 @@ export const __webpack_modules__ = {
122
123
  beep
123
124
  };
124
125
  },
125
- "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.4/node_modules/@clack/prompts/dist/index.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
126
+ "../../../node_modules/.pnpm/@clack+prompts@1.0.0-alpha.5/node_modules/@clack/prompts/dist/index.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
126
127
  __webpack_require__.r(__webpack_exports__);
127
128
  __webpack_require__.d(__webpack_exports__, {
128
- selectKey: ()=>Pt,
129
- S_STEP_SUBMIT: ()=>dist_L,
130
- spinner: ()=>fe,
131
- S_INFO: ()=>le,
132
- S_CORNER_TOP_RIGHT: ()=>ae,
129
+ selectKey: ()=>dist_Vt,
130
+ S_STEP_SUBMIT: ()=>dist_W,
131
+ spinner: ()=>Fe,
132
+ S_INFO: ()=>ue,
133
+ S_CORNER_TOP_RIGHT: ()=>oe,
133
134
  S_STEP_ACTIVE: ()=>we,
134
- log: ()=>dist_b,
135
- note: ()=>dist_Mt,
136
- groupMultiselect: ()=>dist_t,
137
- password: ()=>Ot,
138
- S_CORNER_BOTTOM_RIGHT: ()=>oe,
139
- unicode: ()=>dist_q,
140
- S_WARN: ()=>ce,
141
- group: ()=>dist_Bt,
142
- S_CHECKBOX_ACTIVE: ()=>dist_J,
143
- autocomplete: ()=>Oe,
144
- isCI: ()=>se,
145
- confirm: ()=>dist_wt,
146
- S_BAR_END_RIGHT: ()=>_e,
147
- S_CONNECT_LEFT: ()=>be,
148
- S_CHECKBOX_INACTIVE: ()=>dist_X,
149
- S_CHECKBOX_SELECTED: ()=>dist_W,
150
- limitOptions: ()=>dist_k,
151
- multiselect: ()=>Tt,
152
- taskLog: ()=>dist_Vt,
153
- unicodeOr: ()=>I,
154
- S_STEP_ERROR: ()=>ie,
155
- S_RADIO_ACTIVE: ()=>dist_G,
156
- S_BAR_START: ()=>ne,
157
- S_ERROR: ()=>$e,
135
+ log: ()=>dist_O,
136
+ note: ()=>Nt,
137
+ groupMultiselect: ()=>dist_bt,
138
+ password: ()=>dist_Lt,
139
+ S_CORNER_BOTTOM_RIGHT: ()=>le,
140
+ unicode: ()=>dist_J,
141
+ S_WARN: ()=>$e,
142
+ group: ()=>dist_xt,
143
+ S_CHECKBOX_ACTIVE: ()=>dist_X,
144
+ autocomplete: ()=>ke,
145
+ isCI: ()=>re,
146
+ confirm: ()=>dist_Bt,
147
+ S_BAR_END_RIGHT: ()=>xe,
148
+ S_CONNECT_LEFT: ()=>_e,
149
+ S_CHECKBOX_INACTIVE: ()=>Y,
150
+ S_CHECKBOX_SELECTED: ()=>dist_P,
151
+ limitOptions: ()=>dist_G,
152
+ multiselect: ()=>Rt,
153
+ taskLog: ()=>Gt,
154
+ unicodeOr: ()=>dist_S,
155
+ S_STEP_ERROR: ()=>ne,
156
+ S_RADIO_ACTIVE: ()=>dist_U,
157
+ S_BAR_START: ()=>ae,
158
+ S_ERROR: ()=>de,
158
159
  settings: ()=>dist_C,
159
- box: ()=>dist_St,
160
- intro: ()=>dist_bt,
160
+ box: ()=>dist_wt,
161
+ intro: ()=>dist_Dt,
161
162
  isTTY: ()=>Se,
162
- S_STEP_CANCEL: ()=>re,
163
+ S_STEP_CANCEL: ()=>ie,
163
164
  S_BAR_START_RIGHT: ()=>Be,
164
- S_BAR_H: ()=>Y,
165
+ S_BAR_H: ()=>z,
165
166
  S_CORNER_TOP_LEFT: ()=>Te,
166
- autocompleteMultiselect: ()=>dist_ut,
167
- S_BAR_END: ()=>dist_,
168
- cancel: ()=>dist_xt,
169
- outro: ()=>dist_Dt,
170
- path: ()=>Nt,
171
- progress: ()=>dist_Lt,
172
- select: ()=>dist_Wt,
173
- stream: ()=>dist_P,
174
- S_BAR: ()=>dist_u,
175
- symbol: ()=>dist_M,
176
- tasks: ()=>jt,
177
- text: ()=>dist_kt,
178
- isCancel: ()=>_t,
179
- S_SUCCESS: ()=>ue,
167
+ autocompleteMultiselect: ()=>dist_At,
168
+ S_BAR_END: ()=>dist_b,
169
+ cancel: ()=>dist_t,
170
+ outro: ()=>Tt,
171
+ path: ()=>dist_Wt,
172
+ progress: ()=>Pt,
173
+ select: ()=>jt,
174
+ stream: ()=>dist_j,
175
+ S_BAR: ()=>dist_c,
176
+ symbol: ()=>dist_L,
177
+ tasks: ()=>dist_kt,
178
+ text: ()=>Ht,
179
+ isCancel: ()=>It,
180
+ S_SUCCESS: ()=>ce,
180
181
  S_CORNER_BOTTOM_LEFT: ()=>De,
181
- updateSettings: ()=>vt,
182
- S_PASSWORD_MASK: ()=>xe,
183
- S_RADIO_INACTIVE: ()=>H
182
+ updateSettings: ()=>Et,
183
+ S_PASSWORD_MASK: ()=>be,
184
+ S_RADIO_INACTIVE: ()=>dist_K
184
185
  });
185
186
  var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
186
187
  var external_node_process_ = __webpack_require__("node:process");
187
188
  var external_node_readline_ = __webpack_require__("node:readline");
188
189
  var src = __webpack_require__("../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js");
189
190
  var external_node_tty_ = __webpack_require__("node:tty");
190
- const ut = (t)=>161 === t || 164 === t || 167 === t || 168 === t || 170 === t || 173 === t || 174 === t || t >= 176 && t <= 180 || t >= 182 && t <= 186 || t >= 188 && t <= 191 || 198 === t || 208 === t || 215 === t || 216 === t || t >= 222 && t <= 225 || 230 === t || t >= 232 && t <= 234 || 236 === t || 237 === t || 240 === t || 242 === t || 243 === t || t >= 247 && t <= 250 || 252 === t || 254 === t || 257 === t || 273 === t || 275 === t || 283 === t || 294 === t || 295 === t || 299 === t || t >= 305 && t <= 307 || 312 === t || t >= 319 && t <= 322 || 324 === t || t >= 328 && t <= 331 || 333 === t || 338 === t || 339 === t || 358 === t || 359 === t || 363 === t || 462 === t || 464 === t || 466 === t || 468 === t || 470 === t || 472 === t || 474 === t || 476 === t || 593 === t || 609 === t || 708 === t || 711 === t || t >= 713 && t <= 715 || 717 === t || 720 === t || t >= 728 && t <= 731 || 733 === t || 735 === t || t >= 768 && t <= 879 || t >= 913 && t <= 929 || t >= 931 && t <= 937 || t >= 945 && t <= 961 || t >= 963 && t <= 969 || 1025 === t || t >= 1040 && t <= 1103 || 1105 === t || 8208 === t || t >= 8211 && t <= 8214 || 8216 === t || 8217 === t || 8220 === t || 8221 === t || t >= 8224 && t <= 8226 || t >= 8228 && t <= 8231 || 8240 === t || 8242 === t || 8243 === t || 8245 === t || 8251 === t || 8254 === t || 8308 === t || 8319 === t || t >= 8321 && t <= 8324 || 8364 === t || 8451 === t || 8453 === t || 8457 === t || 8467 === t || 8470 === t || 8481 === t || 8482 === t || 8486 === t || 8491 === t || 8531 === t || 8532 === t || t >= 8539 && t <= 8542 || t >= 8544 && t <= 8555 || t >= 8560 && t <= 8569 || 8585 === t || t >= 8592 && t <= 8601 || 8632 === t || 8633 === t || 8658 === t || 8660 === t || 8679 === t || 8704 === t || 8706 === t || 8707 === t || 8711 === t || 8712 === t || 8715 === t || 8719 === t || 8721 === t || 8725 === t || 8730 === t || t >= 8733 && t <= 8736 || 8739 === t || 8741 === t || t >= 8743 && t <= 8748 || 8750 === t || t >= 8756 && t <= 8759 || 8764 === t || 8765 === t || 8776 === t || 8780 === t || 8786 === t || 8800 === t || 8801 === t || t >= 8804 && t <= 8807 || 8810 === t || 8811 === t || 8814 === t || 8815 === t || 8834 === t || 8835 === t || 8838 === t || 8839 === t || 8853 === t || 8857 === t || 8869 === t || 8895 === t || 8978 === t || t >= 9312 && t <= 9449 || t >= 9451 && t <= 9547 || t >= 9552 && t <= 9587 || t >= 9600 && t <= 9615 || t >= 9618 && t <= 9621 || 9632 === t || 9633 === t || t >= 9635 && t <= 9641 || 9650 === t || 9651 === t || 9654 === t || 9655 === t || 9660 === t || 9661 === t || 9664 === t || 9665 === t || t >= 9670 && t <= 9672 || 9675 === t || t >= 9678 && t <= 9681 || t >= 9698 && t <= 9701 || 9711 === t || 9733 === t || 9734 === t || 9737 === t || 9742 === t || 9743 === t || 9756 === t || 9758 === t || 9792 === t || 9794 === t || 9824 === t || 9825 === t || t >= 9827 && t <= 9829 || t >= 9831 && t <= 9834 || 9836 === t || 9837 === t || 9839 === t || 9886 === t || 9887 === t || 9919 === t || t >= 9926 && t <= 9933 || t >= 9935 && t <= 9939 || t >= 9941 && t <= 9953 || 9955 === t || 9960 === t || 9961 === t || t >= 9963 && t <= 9969 || 9972 === t || t >= 9974 && t <= 9977 || 9979 === t || 9980 === t || 9982 === t || 9983 === t || 10045 === t || t >= 10102 && t <= 10111 || t >= 11094 && t <= 11097 || t >= 12872 && t <= 12879 || t >= 57344 && t <= 63743 || t >= 65024 && t <= 65039 || 65533 === t || t >= 127232 && t <= 127242 || t >= 127248 && t <= 127277 || t >= 127280 && t <= 127337 || t >= 127344 && t <= 127373 || 127375 === t || 127376 === t || t >= 127387 && t <= 127404 || t >= 917760 && t <= 917999 || t >= 983040 && t <= 1048573 || t >= 1048576 && t <= 1114109, ot = (t)=>12288 === t || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510, at = (t)=>t >= 4352 && t <= 4447 || 8986 === t || 8987 === t || 9001 === t || 9002 === t || t >= 9193 && t <= 9196 || 9200 === t || 9203 === t || 9725 === t || 9726 === t || 9748 === t || 9749 === t || t >= 9800 && t <= 9811 || 9855 === t || 9875 === t || 9889 === t || 9898 === t || 9899 === t || 9917 === t || 9918 === t || 9924 === t || 9925 === t || 9934 === t || 9940 === t || 9962 === t || 9970 === t || 9971 === t || 9973 === t || 9978 === t || 9981 === t || 9989 === t || 9994 === t || 9995 === t || 10024 === t || 10060 === t || 10062 === t || t >= 10067 && t <= 10069 || 10071 === t || t >= 10133 && t <= 10135 || 10160 === t || 10175 === t || 11035 === t || 11036 === t || 11088 === t || 11093 === t || t >= 11904 && t <= 11929 || t >= 11931 && t <= 12019 || t >= 12032 && t <= 12245 || t >= 12272 && t <= 12287 || t >= 12289 && t <= 12350 || t >= 12353 && t <= 12438 || t >= 12441 && t <= 12543 || t >= 12549 && t <= 12591 || t >= 12593 && t <= 12686 || t >= 12688 && t <= 12771 || t >= 12783 && t <= 12830 || t >= 12832 && t <= 12871 || t >= 12880 && t <= 19903 || t >= 19968 && t <= 42124 || t >= 42128 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65106 || t >= 65108 && t <= 65126 || t >= 65128 && t <= 65131 || t >= 94176 && t <= 94180 || 94192 === t || 94193 === t || t >= 94208 && t <= 100343 || t >= 100352 && t <= 101589 || t >= 101632 && t <= 101640 || t >= 110576 && t <= 110579 || t >= 110581 && t <= 110587 || 110589 === t || 110590 === t || t >= 110592 && t <= 110882 || 110898 === t || t >= 110928 && t <= 110930 || 110933 === t || t >= 110948 && t <= 110951 || t >= 110960 && t <= 111355 || 126980 === t || 127183 === t || 127374 === t || t >= 127377 && t <= 127386 || t >= 127488 && t <= 127490 || t >= 127504 && t <= 127547 || t >= 127552 && t <= 127560 || 127568 === t || 127569 === t || t >= 127584 && t <= 127589 || t >= 127744 && t <= 127776 || t >= 127789 && t <= 127797 || t >= 127799 && t <= 127868 || t >= 127870 && t <= 127891 || t >= 127904 && t <= 127946 || t >= 127951 && t <= 127955 || t >= 127968 && t <= 127984 || 127988 === t || t >= 127992 && t <= 128062 || 128064 === t || t >= 128066 && t <= 128252 || t >= 128255 && t <= 128317 || t >= 128331 && t <= 128334 || t >= 128336 && t <= 128359 || 128378 === t || 128405 === t || 128406 === t || 128420 === t || t >= 128507 && t <= 128591 || t >= 128640 && t <= 128709 || 128716 === t || t >= 128720 && t <= 128722 || t >= 128725 && t <= 128727 || t >= 128732 && t <= 128735 || 128747 === t || 128748 === t || t >= 128756 && t <= 128764 || t >= 128992 && t <= 129003 || 129008 === t || t >= 129292 && t <= 129338 || t >= 129340 && t <= 129349 || t >= 129351 && t <= 129535 || t >= 129648 && t <= 129660 || t >= 129664 && t <= 129672 || t >= 129680 && t <= 129725 || t >= 129727 && t <= 129733 || t >= 129742 && t <= 129755 || t >= 129760 && t <= 129768 || t >= 129776 && t <= 129784 || t >= 131072 && t <= 196605 || t >= 196608 && t <= 262141, dist_R = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, k = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, dist_y = /\t{1,1000}/y, dist_N = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu, M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, lt = /\p{M}+/gu, ht = {
191
+ const nt = (t)=>161 === t || 164 === t || 167 === t || 168 === t || 170 === t || 173 === t || 174 === t || t >= 176 && t <= 180 || t >= 182 && t <= 186 || t >= 188 && t <= 191 || 198 === t || 208 === t || 215 === t || 216 === t || t >= 222 && t <= 225 || 230 === t || t >= 232 && t <= 234 || 236 === t || 237 === t || 240 === t || 242 === t || 243 === t || t >= 247 && t <= 250 || 252 === t || 254 === t || 257 === t || 273 === t || 275 === t || 283 === t || 294 === t || 295 === t || 299 === t || t >= 305 && t <= 307 || 312 === t || t >= 319 && t <= 322 || 324 === t || t >= 328 && t <= 331 || 333 === t || 338 === t || 339 === t || 358 === t || 359 === t || 363 === t || 462 === t || 464 === t || 466 === t || 468 === t || 470 === t || 472 === t || 474 === t || 476 === t || 593 === t || 609 === t || 708 === t || 711 === t || t >= 713 && t <= 715 || 717 === t || 720 === t || t >= 728 && t <= 731 || 733 === t || 735 === t || t >= 768 && t <= 879 || t >= 913 && t <= 929 || t >= 931 && t <= 937 || t >= 945 && t <= 961 || t >= 963 && t <= 969 || 1025 === t || t >= 1040 && t <= 1103 || 1105 === t || 8208 === t || t >= 8211 && t <= 8214 || 8216 === t || 8217 === t || 8220 === t || 8221 === t || t >= 8224 && t <= 8226 || t >= 8228 && t <= 8231 || 8240 === t || 8242 === t || 8243 === t || 8245 === t || 8251 === t || 8254 === t || 8308 === t || 8319 === t || t >= 8321 && t <= 8324 || 8364 === t || 8451 === t || 8453 === t || 8457 === t || 8467 === t || 8470 === t || 8481 === t || 8482 === t || 8486 === t || 8491 === t || 8531 === t || 8532 === t || t >= 8539 && t <= 8542 || t >= 8544 && t <= 8555 || t >= 8560 && t <= 8569 || 8585 === t || t >= 8592 && t <= 8601 || 8632 === t || 8633 === t || 8658 === t || 8660 === t || 8679 === t || 8704 === t || 8706 === t || 8707 === t || 8711 === t || 8712 === t || 8715 === t || 8719 === t || 8721 === t || 8725 === t || 8730 === t || t >= 8733 && t <= 8736 || 8739 === t || 8741 === t || t >= 8743 && t <= 8748 || 8750 === t || t >= 8756 && t <= 8759 || 8764 === t || 8765 === t || 8776 === t || 8780 === t || 8786 === t || 8800 === t || 8801 === t || t >= 8804 && t <= 8807 || 8810 === t || 8811 === t || 8814 === t || 8815 === t || 8834 === t || 8835 === t || 8838 === t || 8839 === t || 8853 === t || 8857 === t || 8869 === t || 8895 === t || 8978 === t || t >= 9312 && t <= 9449 || t >= 9451 && t <= 9547 || t >= 9552 && t <= 9587 || t >= 9600 && t <= 9615 || t >= 9618 && t <= 9621 || 9632 === t || 9633 === t || t >= 9635 && t <= 9641 || 9650 === t || 9651 === t || 9654 === t || 9655 === t || 9660 === t || 9661 === t || 9664 === t || 9665 === t || t >= 9670 && t <= 9672 || 9675 === t || t >= 9678 && t <= 9681 || t >= 9698 && t <= 9701 || 9711 === t || 9733 === t || 9734 === t || 9737 === t || 9742 === t || 9743 === t || 9756 === t || 9758 === t || 9792 === t || 9794 === t || 9824 === t || 9825 === t || t >= 9827 && t <= 9829 || t >= 9831 && t <= 9834 || 9836 === t || 9837 === t || 9839 === t || 9886 === t || 9887 === t || 9919 === t || t >= 9926 && t <= 9933 || t >= 9935 && t <= 9939 || t >= 9941 && t <= 9953 || 9955 === t || 9960 === t || 9961 === t || t >= 9963 && t <= 9969 || 9972 === t || t >= 9974 && t <= 9977 || 9979 === t || 9980 === t || 9982 === t || 9983 === t || 10045 === t || t >= 10102 && t <= 10111 || t >= 11094 && t <= 11097 || t >= 12872 && t <= 12879 || t >= 57344 && t <= 63743 || t >= 65024 && t <= 65039 || 65533 === t || t >= 127232 && t <= 127242 || t >= 127248 && t <= 127277 || t >= 127280 && t <= 127337 || t >= 127344 && t <= 127373 || 127375 === t || 127376 === t || t >= 127387 && t <= 127404 || t >= 917760 && t <= 917999 || t >= 983040 && t <= 1048573 || t >= 1048576 && t <= 1114109, ut = (t)=>12288 === t || t >= 65281 && t <= 65376 || t >= 65504 && t <= 65510, ot = (t)=>t >= 4352 && t <= 4447 || 8986 === t || 8987 === t || 9001 === t || 9002 === t || t >= 9193 && t <= 9196 || 9200 === t || 9203 === t || 9725 === t || 9726 === t || 9748 === t || 9749 === t || t >= 9800 && t <= 9811 || 9855 === t || 9875 === t || 9889 === t || 9898 === t || 9899 === t || 9917 === t || 9918 === t || 9924 === t || 9925 === t || 9934 === t || 9940 === t || 9962 === t || 9970 === t || 9971 === t || 9973 === t || 9978 === t || 9981 === t || 9989 === t || 9994 === t || 9995 === t || 10024 === t || 10060 === t || 10062 === t || t >= 10067 && t <= 10069 || 10071 === t || t >= 10133 && t <= 10135 || 10160 === t || 10175 === t || 11035 === t || 11036 === t || 11088 === t || 11093 === t || t >= 11904 && t <= 11929 || t >= 11931 && t <= 12019 || t >= 12032 && t <= 12245 || t >= 12272 && t <= 12287 || t >= 12289 && t <= 12350 || t >= 12353 && t <= 12438 || t >= 12441 && t <= 12543 || t >= 12549 && t <= 12591 || t >= 12593 && t <= 12686 || t >= 12688 && t <= 12771 || t >= 12783 && t <= 12830 || t >= 12832 && t <= 12871 || t >= 12880 && t <= 19903 || t >= 19968 && t <= 42124 || t >= 42128 && t <= 42182 || t >= 43360 && t <= 43388 || t >= 44032 && t <= 55203 || t >= 63744 && t <= 64255 || t >= 65040 && t <= 65049 || t >= 65072 && t <= 65106 || t >= 65108 && t <= 65126 || t >= 65128 && t <= 65131 || t >= 94176 && t <= 94180 || 94192 === t || 94193 === t || t >= 94208 && t <= 100343 || t >= 100352 && t <= 101589 || t >= 101632 && t <= 101640 || t >= 110576 && t <= 110579 || t >= 110581 && t <= 110587 || 110589 === t || 110590 === t || t >= 110592 && t <= 110882 || 110898 === t || t >= 110928 && t <= 110930 || 110933 === t || t >= 110948 && t <= 110951 || t >= 110960 && t <= 111355 || 126980 === t || 127183 === t || 127374 === t || t >= 127377 && t <= 127386 || t >= 127488 && t <= 127490 || t >= 127504 && t <= 127547 || t >= 127552 && t <= 127560 || 127568 === t || 127569 === t || t >= 127584 && t <= 127589 || t >= 127744 && t <= 127776 || t >= 127789 && t <= 127797 || t >= 127799 && t <= 127868 || t >= 127870 && t <= 127891 || t >= 127904 && t <= 127946 || t >= 127951 && t <= 127955 || t >= 127968 && t <= 127984 || 127988 === t || t >= 127992 && t <= 128062 || 128064 === t || t >= 128066 && t <= 128252 || t >= 128255 && t <= 128317 || t >= 128331 && t <= 128334 || t >= 128336 && t <= 128359 || 128378 === t || 128405 === t || 128406 === t || 128420 === t || t >= 128507 && t <= 128591 || t >= 128640 && t <= 128709 || 128716 === t || t >= 128720 && t <= 128722 || t >= 128725 && t <= 128727 || t >= 128732 && t <= 128735 || 128747 === t || 128748 === t || t >= 128756 && t <= 128764 || t >= 128992 && t <= 129003 || 129008 === t || t >= 129292 && t <= 129338 || t >= 129340 && t <= 129349 || t >= 129351 && t <= 129535 || t >= 129648 && t <= 129660 || t >= 129664 && t <= 129672 || t >= 129680 && t <= 129725 || t >= 129727 && t <= 129733 || t >= 129742 && t <= 129755 || t >= 129760 && t <= 129768 || t >= 129776 && t <= 129784 || t >= 131072 && t <= 196605 || t >= 196608 && t <= 262141, dist_$ = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, k = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, dist_y = /\t{1,1000}/y, N = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu, M = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, at = /\p{M}+/gu, lt = {
191
192
  limit: 1 / 0,
192
193
  ellipsis: ""
193
- }, q = (t, s = {}, e = {})=>{
194
- const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? q(r, ht, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, S = e.wideWidth ?? 2;
194
+ }, dist_q = (t, s = {}, e = {})=>{
195
+ const i = s.limit ?? 1 / 0, r = s.ellipsis ?? "", n = s?.ellipsisWidth ?? (r ? dist_q(r, lt, e).width : 0), F = e.ansiWidth ?? 0, l = e.controlWidth ?? 0, a = e.tabWidth ?? 8, v = e.ambiguousWidth ?? 1, g = e.emojiWidth ?? 2, m = e.fullWidthWidth ?? 2, A = e.regularWidth ?? 1, S = e.wideWidth ?? 2;
195
196
  let o = 0, u = 0, p = t.length, E = 0, f = !1, d = p, _ = Math.max(0, i - n), b = 0, x = 0, h = 0, c = 0;
196
197
  t: for(;;){
197
198
  if (x > b || u >= p && u > o) {
198
199
  const it = t.slice(b, x) || t.slice(o, u);
199
200
  E = 0;
200
- for (const K of it.replaceAll(lt, "")){
201
+ for (const K of it.replaceAll(at, "")){
201
202
  const T = K.codePointAt(0) || 0;
202
- if (ot(T) ? c = m : at(T) ? c = S : v !== A && ut(T) ? c = v : c = A, h + c > _ && (d = Math.min(d, Math.max(b, o) + E)), h + c > i) {
203
+ if (ut(T) ? c = m : ot(T) ? c = S : v !== A && nt(T) ? c = v : c = A, h + c > _ && (d = Math.min(d, Math.max(b, o) + E)), h + c > i) {
203
204
  f = !0;
204
205
  break t;
205
206
  }
@@ -216,12 +217,12 @@ export const __webpack_modules__ = {
216
217
  h += c, b = o, x = u, u = o = M.lastIndex;
217
218
  continue;
218
219
  }
219
- if (dist_R.lastIndex = u, dist_R.test(t)) {
220
+ if (dist_$.lastIndex = u, dist_$.test(t)) {
220
221
  if (h + F > _ && (d = Math.min(d, u)), h + F > i) {
221
222
  f = !0;
222
223
  break;
223
224
  }
224
- h += F, b = o, x = u, u = o = dist_R.lastIndex;
225
+ h += F, b = o, x = u, u = o = dist_$.lastIndex;
225
226
  continue;
226
227
  }
227
228
  if (k.lastIndex = u, k.test(t)) {
@@ -240,12 +241,12 @@ export const __webpack_modules__ = {
240
241
  h += c, b = o, x = u, u = o = dist_y.lastIndex;
241
242
  continue;
242
243
  }
243
- if (dist_N.lastIndex = u, dist_N.test(t)) {
244
+ if (N.lastIndex = u, N.test(t)) {
244
245
  if (h + g > _ && (d = Math.min(d, u)), h + g > i) {
245
246
  f = !0;
246
247
  break;
247
248
  }
248
- h += g, b = o, x = u, u = o = dist_N.lastIndex;
249
+ h += g, b = o, x = u, u = o = N.lastIndex;
249
250
  continue;
250
251
  }
251
252
  u += 1;
@@ -256,11 +257,11 @@ export const __webpack_modules__ = {
256
257
  truncated: f,
257
258
  ellipsed: f && i >= n
258
259
  };
259
- }, ct = {
260
+ }, ht = {
260
261
  limit: 1 / 0,
261
262
  ellipsis: "",
262
263
  ellipsisWidth: 0
263
- }, dist_w = (t, s = {})=>q(t, ct, s).width, L = "\x1B", J = "\x9B", Ft = 39, P = "\x07", X = "[", pt = "]", Z = "m", dist_O = `${pt}8;;`, Q = new RegExp(`(?:\\${X}(?<code>\\d+)m|\\${dist_O}(?<uri>.*)${P})`, "y"), ft = (t)=>{
264
+ }, dist_w = (t, s = {})=>dist_q(t, ht, s).width, L = "\x1B", J = "\x9B", ct = 39, P = "\x07", X = "[", Ft = "]", Z = "m", O = `${Ft}8;;`, Q = new RegExp(`(?:\\${X}(?<code>\\d+)m|\\${O}(?<uri>.*)${P})`, "y"), pt = (t)=>{
264
265
  if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
265
266
  if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
266
267
  if (1 === t || 2 === t) return 22;
@@ -270,23 +271,23 @@ export const __webpack_modules__ = {
270
271
  if (8 === t) return 28;
271
272
  if (9 === t) return 29;
272
273
  if (0 === t) return 0;
273
- }, tt = (t)=>`${L}${X}${t}${Z}`, st = (t)=>`${L}${dist_O}${t}${P}`, dt = (t)=>t.map((s)=>dist_w(s)), dist_j = (t, s, e)=>{
274
+ }, tt = (t)=>`${L}${X}${t}${Z}`, st = (t)=>`${L}${O}${t}${P}`, ft = (t)=>t.map((s)=>dist_w(s)), j = (t, s, e)=>{
274
275
  const i = s[Symbol.iterator]();
275
276
  let r = !1, n = !1, F = t.at(-1), l = void 0 === F ? 0 : dist_w(F), a = i.next(), v = i.next(), g = 0;
276
277
  for(; !a.done;){
277
278
  const m = a.value, A = dist_w(m);
278
- l + A <= e ? t[t.length - 1] += m : (t.push(m), l = 0), (m === L || m === J) && (r = !0, n = s.startsWith(dist_O, g + 1)), r ? n ? m === P && (r = !1, n = !1) : m === Z && (r = !1) : (l += A, l !== e || v.done || (t.push(""), l = 0)), a = v, v = i.next(), g += m.length;
279
+ l + A <= e ? t[t.length - 1] += m : (t.push(m), l = 0), (m === L || m === J) && (r = !0, n = s.startsWith(O, g + 1)), r ? n ? m === P && (r = !1, n = !1) : m === Z && (r = !1) : (l += A, l !== e || v.done || (t.push(""), l = 0)), a = v, v = i.next(), g += m.length;
279
280
  }
280
281
  F = t.at(-1), !l && void 0 !== F && F.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
281
- }, mt = (t)=>{
282
+ }, dt = (t)=>{
282
283
  const s = t.split(" ");
283
284
  let e = s.length;
284
285
  for(; e > 0 && !(dist_w(s[e - 1]) > 0);)e--;
285
286
  return e === s.length ? t : s.slice(0, e).join(" ") + s.slice(e).join("");
286
- }, gt = (t, s, e = {})=>{
287
+ }, mt = (t, s, e = {})=>{
287
288
  if (!1 !== e.trim && "" === t.trim()) return "";
288
289
  let i = "", r, n;
289
- const F = t.split(" "), l = dt(F);
290
+ const F = t.split(" "), l = ft(F);
290
291
  let a = [
291
292
  ""
292
293
  ];
@@ -295,23 +296,23 @@ export const __webpack_modules__ = {
295
296
  let p = dist_w(a.at(-1) ?? "");
296
297
  if (0 !== o && (p >= s && (!1 === e.wordWrap || !1 === e.trim) && (a.push(""), p = 0), (p > 0 || !1 === e.trim) && (a[a.length - 1] += " ", p++)), e.hard && l[o] > s) {
297
298
  const E = s - p, f = 1 + Math.floor((l[o] - E - 1) / s);
298
- Math.floor((l[o] - 1) / s) < f && a.push(""), dist_j(a, u, s);
299
+ Math.floor((l[o] - 1) / s) < f && a.push(""), j(a, u, s);
299
300
  continue;
300
301
  }
301
302
  if (p + l[o] > s && p > 0 && l[o] > 0) {
302
303
  if (!1 === e.wordWrap && p < s) {
303
- dist_j(a, u, s);
304
+ j(a, u, s);
304
305
  continue;
305
306
  }
306
307
  a.push("");
307
308
  }
308
309
  if (p + l[o] > s && !1 === e.wordWrap) {
309
- dist_j(a, u, s);
310
+ j(a, u, s);
310
311
  continue;
311
312
  }
312
313
  a[a.length - 1] += u;
313
314
  }
314
- !1 !== e.trim && (a = a.map((o)=>mt(o)));
315
+ !1 !== e.trim && (a = a.map((o)=>dt(o)));
315
316
  const v = a.join(`
316
317
  `), g = v[Symbol.iterator]();
317
318
  let m = g.next(), A = g.next(), S = 0;
@@ -322,10 +323,10 @@ export const __webpack_modules__ = {
322
323
  const f = Q.exec(v)?.groups;
323
324
  if (f?.code !== void 0) {
324
325
  const d = Number.parseFloat(f.code);
325
- r = d === Ft ? void 0 : d;
326
+ r = d === ct ? void 0 : d;
326
327
  } else f?.uri !== void 0 && (n = 0 === f.uri.length ? void 0 : f.uri);
327
328
  }
328
- const p = r ? ft(r) : void 0;
329
+ const p = r ? pt(r) : void 0;
329
330
  u === `
330
331
  ` ? (n && (i += st("")), r && p && (i += tt(p))) : o === `
331
332
  ` && (r && p && (i += tt(r)), n && (i += st(n))), S += o.length, m = A, A = g.next();
@@ -336,10 +337,10 @@ export const __webpack_modules__ = {
336
337
  return String(t).normalize().replaceAll(`\r
337
338
  `, `
338
339
  `).split(`
339
- `).map((i)=>gt(i, s, e)).join(`
340
+ `).map((i)=>mt(i, s, e)).join(`
340
341
  `);
341
342
  }
342
- const Et = [
343
+ const gt = [
343
344
  "up",
344
345
  "down",
345
346
  "left",
@@ -348,7 +349,7 @@ export const __webpack_modules__ = {
348
349
  "enter",
349
350
  "cancel"
350
351
  ], dist_C = {
351
- actions: new Set(Et),
352
+ actions: new Set(gt),
352
353
  aliases: new Map([
353
354
  [
354
355
  "k",
@@ -380,7 +381,7 @@ export const __webpack_modules__ = {
380
381
  error: "Something went wrong"
381
382
  }
382
383
  };
383
- function vt(t) {
384
+ function Et(t) {
384
385
  if (void 0 !== t.aliases) {
385
386
  const s = t.aliases;
386
387
  for(const e in s){
@@ -399,7 +400,7 @@ export const __webpack_modules__ = {
399
400
  for (const e of t)if (void 0 !== e && U(e, s)) return !0;
400
401
  return !1;
401
402
  }
402
- function At(t, s) {
403
+ function vt(t, s) {
403
404
  if (t === s) return;
404
405
  const e = t.split(`
405
406
  `), i = s.split(`
@@ -407,15 +408,15 @@ export const __webpack_modules__ = {
407
408
  for(let n = 0; n < Math.max(e.length, i.length); n++)e[n] !== i[n] && r.push(n);
408
409
  return r;
409
410
  }
410
- const It = globalThis.process.platform.startsWith("win"), G = Symbol("clack:cancel");
411
- function _t(t) {
411
+ const At = globalThis.process.platform.startsWith("win"), G = Symbol("clack:cancel");
412
+ function It(t) {
412
413
  return t === G;
413
414
  }
414
415
  function W(t, s) {
415
416
  const e = t;
416
417
  e.isTTY && e.setRawMode(s);
417
418
  }
418
- function Ct({ input: t = external_node_process_.stdin, output: s = external_node_process_.stdout, overwrite: e = !0, hideCursor: i = !0 } = {}) {
419
+ function _t({ input: t = external_node_process_.stdin, output: s = external_node_process_.stdout, overwrite: e = !0, hideCursor: i = !0 } = {}) {
419
420
  const r = external_node_readline_.createInterface({
420
421
  input: t,
421
422
  output: s,
@@ -442,10 +443,10 @@ export const __webpack_modules__ = {
442
443
  });
443
444
  };
444
445
  return i && s.write(src.cursor.hide), t.once("keypress", n), ()=>{
445
- t.off("keypress", n), i && s.write(src.cursor.show), t instanceof external_node_tty_.ReadStream && t.isTTY && !It && t.setRawMode(!1), r.terminal = !1, r.close();
446
+ t.off("keypress", n), i && s.write(src.cursor.show), t instanceof external_node_tty_.ReadStream && t.isTTY && !At && t.setRawMode(!1), r.terminal = !1, r.close();
446
447
  };
447
448
  }
448
- const bt = (t)=>t instanceof external_node_tty_.WriteStream && t.columns ? t.columns : 80;
449
+ const Ct = (t)=>"columns" in t && "number" == typeof t.columns ? t.columns : 80, bt = (t)=>"rows" in t && "number" == typeof t.rows ? t.rows : 20;
449
450
  class dist_B {
450
451
  input;
451
452
  output;
@@ -563,7 +564,7 @@ export const __webpack_modules__ = {
563
564
  if (s !== this._prevFrame) {
564
565
  if ("initial" === this.state) this.output.write(src.cursor.hide);
565
566
  else {
566
- const e = At(this._prevFrame, s);
567
+ const e = vt(this._prevFrame, s);
567
568
  if (this.restoreCursor(), e && e?.length === 1) {
568
569
  const i = e[0];
569
570
  this.output.write(src.cursor.move(0, i)), this.output.write(src.erase.lines(1));
@@ -751,7 +752,7 @@ export const __webpack_modules__ = {
751
752
  });
752
753
  }
753
754
  }
754
- let kt = class extends dist_B {
755
+ class kt extends dist_B {
755
756
  options;
756
757
  cursor = 0;
757
758
  get _value() {
@@ -762,8 +763,10 @@ export const __webpack_modules__ = {
762
763
  this.value = s ? [] : this.options.map((e)=>e.value);
763
764
  }
764
765
  toggleInvert() {
765
- const s = this.options.filter((e)=>!this.value.includes(e.value));
766
- this.value = s.map((e)=>e.value);
766
+ const s = this.value;
767
+ if (!s) return;
768
+ const e = this.options.filter((i)=>!s.includes(i.value));
769
+ this.value = e.map((i)=>i.value);
767
770
  }
768
771
  toggleValue() {
769
772
  void 0 === this.value && (this.value = []);
@@ -794,7 +797,8 @@ export const __webpack_modules__ = {
794
797
  }
795
798
  });
796
799
  }
797
- }, yt = class extends dist_B {
800
+ }
801
+ let yt = class extends dist_B {
798
802
  _mask = "\u2022";
799
803
  get cursor() {
800
804
  return this._cursor;
@@ -878,119 +882,303 @@ export const __webpack_modules__ = {
878
882
  });
879
883
  }
880
884
  }
881
- var external_node_util_ = __webpack_require__("node:util");
882
885
  var external_node_fs_ = __webpack_require__("node:fs");
883
886
  var external_node_path_ = __webpack_require__("node:path");
887
+ var external_node_util_ = __webpack_require__("node:util");
884
888
  function dist_ot() {
885
889
  return "win32" !== external_node_process_["default"].platform ? "linux" !== external_node_process_["default"].env.TERM : !!external_node_process_["default"].env.CI || !!external_node_process_["default"].env.WT_SESSION || !!external_node_process_["default"].env.TERMINUS_SUBLIME || "{cmd::Cmder}" === external_node_process_["default"].env.ConEmuTask || "Terminus-Sublime" === external_node_process_["default"].env.TERM_PROGRAM || "vscode" === external_node_process_["default"].env.TERM_PROGRAM || "xterm-256color" === external_node_process_["default"].env.TERM || "alacritty" === external_node_process_["default"].env.TERM || "JetBrains-JediTerm" === external_node_process_["default"].env.TERMINAL_EMULATOR;
886
890
  }
887
- const dist_q = dist_ot(), se = ()=>"true" === process.env.CI, Se = (e)=>!0 === e.isTTY, I = (e, r)=>dist_q ? e : r, we = I("\u25C6", "*"), re = I("\u25A0", "x"), ie = I("\u25B2", "x"), dist_L = I("\u25C7", "o"), ne = I("\u250C", "T"), dist_u = I("\u2502", "|"), dist_ = I("\u2514", "\u2014"), Be = I("\u2510", "T"), _e = I("\u2518", "\u2014"), dist_G = I("\u25CF", ">"), H = I("\u25CB", " "), dist_J = I("\u25FB", "[\u2022]"), dist_W = I("\u25FC", "[+]"), dist_X = I("\u25FB", "[ ]"), xe = I("\u25AA", "\u2022"), Y = I("\u2500", "-"), ae = I("\u256E", "+"), be = I("\u251C", "+"), oe = I("\u256F", "+"), De = I("\u2570", "+"), Te = I("\u256D", "+"), le = I("\u25CF", "\u2022"), ue = I("\u25C6", "*"), ce = I("\u25B2", "!"), $e = I("\u25A0", "x"), dist_M = (e)=>{
891
+ const dist_J = dist_ot(), re = ()=>"true" === process.env.CI, Se = (e)=>!0 === e.isTTY, dist_S = (e, r)=>dist_J ? e : r, we = dist_S("\u25C6", "*"), ie = dist_S("\u25A0", "x"), ne = dist_S("\u25B2", "x"), dist_W = dist_S("\u25C7", "o"), ae = dist_S("\u250C", "T"), dist_c = dist_S("\u2502", "|"), dist_b = dist_S("\u2514", "\u2014"), Be = dist_S("\u2510", "T"), xe = dist_S("\u2518", "\u2014"), dist_U = dist_S("\u25CF", ">"), dist_K = dist_S("\u25CB", " "), dist_X = dist_S("\u25FB", "[\u2022]"), dist_P = dist_S("\u25FC", "[+]"), Y = dist_S("\u25FB", "[ ]"), be = dist_S("\u25AA", "\u2022"), z = dist_S("\u2500", "-"), oe = dist_S("\u256E", "+"), _e = dist_S("\u251C", "+"), le = dist_S("\u256F", "+"), De = dist_S("\u2570", "+"), Te = dist_S("\u256D", "+"), ue = dist_S("\u25CF", "\u2022"), ce = dist_S("\u25C6", "*"), $e = dist_S("\u25B2", "!"), de = dist_S("\u25A0", "x"), dist_L = (e)=>{
888
892
  switch(e){
889
893
  case "initial":
890
894
  case "active":
891
895
  return picocolors.cyan(we);
892
896
  case "cancel":
893
- return picocolors.red(re);
897
+ return picocolors.red(ie);
894
898
  case "error":
895
- return picocolors.yellow(ie);
899
+ return picocolors.yellow(ne);
896
900
  case "submit":
897
- return picocolors.green(dist_L);
898
- }
899
- }, dist_k = (e)=>{
900
- const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = n instanceof external_node_tty_.WriteStream && void 0 !== n.rows ? n.rows : 10, c = picocolors.dim("..."), l = e.maxItems ?? 1 / 0, a = Math.max(o - 4, 0), h = Math.min(a, Math.max(l, 5));
901
- let g = 0;
902
- r >= g + h - 3 ? g = Math.max(Math.min(r - h + 3, s.length - h), 0) : r < g + 2 && (g = Math.max(r - 2, 0));
903
- const F = h < s.length && g > 0, y = h < s.length && g + h < s.length;
904
- return s.slice(g, g + h).map((m, p, $)=>{
905
- const d = 0 === p && F, f = p === $.length - 1 && y;
906
- return d || f ? c : i(m, p + g === r);
907
- });
901
+ return picocolors.green(dist_W);
902
+ }
903
+ }, dist_lt = (e)=>161 === e || 164 === e || 167 === e || 168 === e || 170 === e || 173 === e || 174 === e || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || 198 === e || 208 === e || 215 === e || 216 === e || e >= 222 && e <= 225 || 230 === e || e >= 232 && e <= 234 || 236 === e || 237 === e || 240 === e || 242 === e || 243 === e || e >= 247 && e <= 250 || 252 === e || 254 === e || 257 === e || 273 === e || 275 === e || 283 === e || 294 === e || 295 === e || 299 === e || e >= 305 && e <= 307 || 312 === e || e >= 319 && e <= 322 || 324 === e || e >= 328 && e <= 331 || 333 === e || 338 === e || 339 === e || 358 === e || 359 === e || 363 === e || 462 === e || 464 === e || 466 === e || 468 === e || 470 === e || 472 === e || 474 === e || 476 === e || 593 === e || 609 === e || 708 === e || 711 === e || e >= 713 && e <= 715 || 717 === e || 720 === e || e >= 728 && e <= 731 || 733 === e || 735 === e || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || 1025 === e || e >= 1040 && e <= 1103 || 1105 === e || 8208 === e || e >= 8211 && e <= 8214 || 8216 === e || 8217 === e || 8220 === e || 8221 === e || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || 8240 === e || 8242 === e || 8243 === e || 8245 === e || 8251 === e || 8254 === e || 8308 === e || 8319 === e || e >= 8321 && e <= 8324 || 8364 === e || 8451 === e || 8453 === e || 8457 === e || 8467 === e || 8470 === e || 8481 === e || 8482 === e || 8486 === e || 8491 === e || 8531 === e || 8532 === e || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || 8585 === e || e >= 8592 && e <= 8601 || 8632 === e || 8633 === e || 8658 === e || 8660 === e || 8679 === e || 8704 === e || 8706 === e || 8707 === e || 8711 === e || 8712 === e || 8715 === e || 8719 === e || 8721 === e || 8725 === e || 8730 === e || e >= 8733 && e <= 8736 || 8739 === e || 8741 === e || e >= 8743 && e <= 8748 || 8750 === e || e >= 8756 && e <= 8759 || 8764 === e || 8765 === e || 8776 === e || 8780 === e || 8786 === e || 8800 === e || 8801 === e || e >= 8804 && e <= 8807 || 8810 === e || 8811 === e || 8814 === e || 8815 === e || 8834 === e || 8835 === e || 8838 === e || 8839 === e || 8853 === e || 8857 === e || 8869 === e || 8895 === e || 8978 === e || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || 9632 === e || 9633 === e || e >= 9635 && e <= 9641 || 9650 === e || 9651 === e || 9654 === e || 9655 === e || 9660 === e || 9661 === e || 9664 === e || 9665 === e || e >= 9670 && e <= 9672 || 9675 === e || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || 9711 === e || 9733 === e || 9734 === e || 9737 === e || 9742 === e || 9743 === e || 9756 === e || 9758 === e || 9792 === e || 9794 === e || 9824 === e || 9825 === e || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || 9836 === e || 9837 === e || 9839 === e || 9886 === e || 9887 === e || 9919 === e || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || 9955 === e || 9960 === e || 9961 === e || e >= 9963 && e <= 9969 || 9972 === e || e >= 9974 && e <= 9977 || 9979 === e || 9980 === e || 9982 === e || 9983 === e || 10045 === e || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || 65533 === e || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || 127375 === e || 127376 === e || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, dist_ut = (e)=>12288 === e || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, dist_ct = (e)=>e >= 4352 && e <= 4447 || 8986 === e || 8987 === e || 9001 === e || 9002 === e || e >= 9193 && e <= 9196 || 9200 === e || 9203 === e || 9725 === e || 9726 === e || 9748 === e || 9749 === e || e >= 9800 && e <= 9811 || 9855 === e || 9875 === e || 9889 === e || 9898 === e || 9899 === e || 9917 === e || 9918 === e || 9924 === e || 9925 === e || 9934 === e || 9940 === e || 9962 === e || 9970 === e || 9971 === e || 9973 === e || 9978 === e || 9981 === e || 9989 === e || 9994 === e || 9995 === e || 10024 === e || 10060 === e || 10062 === e || e >= 10067 && e <= 10069 || 10071 === e || e >= 10133 && e <= 10135 || 10160 === e || 10175 === e || 11035 === e || 11036 === e || 11088 === e || 11093 === e || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || 94192 === e || 94193 === e || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || 110589 === e || 110590 === e || e >= 110592 && e <= 110882 || 110898 === e || e >= 110928 && e <= 110930 || 110933 === e || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || 126980 === e || 127183 === e || 127374 === e || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || 127568 === e || 127569 === e || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || 127988 === e || e >= 127992 && e <= 128062 || 128064 === e || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || 128378 === e || 128405 === e || 128406 === e || 128420 === e || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || 128716 === e || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || 128747 === e || 128748 === e || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || 129008 === e || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, he = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, dist_Z = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, dist_Q = /\t{1,1000}/y, me = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu, ee = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, $t = /\p{M}+/gu, dist_dt = {
904
+ limit: 1 / 0,
905
+ ellipsis: ""
906
+ }, Re = (e, r = {}, s = {})=>{
907
+ const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Re(n, dist_dt, s).width : 0), u = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, m = s.ambiguousWidth ?? 1, E = s.emojiWidth ?? 2, y = s.fullWidthWidth ?? 2, F = s.regularWidth ?? 1, p = s.wideWidth ?? 2;
908
+ let h = 0, d = 0, $ = e.length, g = 0, f = !1, v = $, w = Math.max(0, i - o), B = 0, x = 0, A = 0, C = 0;
909
+ e: for(;;){
910
+ if (x > B || d >= $ && d > h) {
911
+ const _ = e.slice(B, x) || e.slice(h, d);
912
+ g = 0;
913
+ for (const D of _.replaceAll($t, "")){
914
+ const I = D.codePointAt(0) || 0;
915
+ if (dist_ut(I) ? C = y : dist_ct(I) ? C = p : m !== F && dist_lt(I) ? C = m : C = F, A + C > w && (v = Math.min(v, Math.max(B, h) + g)), A + C > i) {
916
+ f = !0;
917
+ break e;
918
+ }
919
+ g += D.length, A += C;
920
+ }
921
+ B = x = 0;
922
+ }
923
+ if (d >= $) break;
924
+ if (ee.lastIndex = d, ee.test(e)) {
925
+ if (g = ee.lastIndex - d, C = g * F, A + C > w && (v = Math.min(v, d + Math.floor((w - A) / F))), A + C > i) {
926
+ f = !0;
927
+ break;
928
+ }
929
+ A += C, B = h, x = d, d = h = ee.lastIndex;
930
+ continue;
931
+ }
932
+ if (he.lastIndex = d, he.test(e)) {
933
+ if (A + u > w && (v = Math.min(v, d)), A + u > i) {
934
+ f = !0;
935
+ break;
936
+ }
937
+ A += u, B = h, x = d, d = h = he.lastIndex;
938
+ continue;
939
+ }
940
+ if (dist_Z.lastIndex = d, dist_Z.test(e)) {
941
+ if (g = dist_Z.lastIndex - d, C = g * l, A + C > w && (v = Math.min(v, d + Math.floor((w - A) / l))), A + C > i) {
942
+ f = !0;
943
+ break;
944
+ }
945
+ A += C, B = h, x = d, d = h = dist_Z.lastIndex;
946
+ continue;
947
+ }
948
+ if (dist_Q.lastIndex = d, dist_Q.test(e)) {
949
+ if (g = dist_Q.lastIndex - d, C = g * a, A + C > w && (v = Math.min(v, d + Math.floor((w - A) / a))), A + C > i) {
950
+ f = !0;
951
+ break;
952
+ }
953
+ A += C, B = h, x = d, d = h = dist_Q.lastIndex;
954
+ continue;
955
+ }
956
+ if (me.lastIndex = d, me.test(e)) {
957
+ if (A + E > w && (v = Math.min(v, d)), A + E > i) {
958
+ f = !0;
959
+ break;
960
+ }
961
+ A += E, B = h, x = d, d = h = me.lastIndex;
962
+ continue;
963
+ }
964
+ d += 1;
965
+ }
966
+ return {
967
+ width: f ? w : A,
968
+ index: f ? v : $,
969
+ truncated: f,
970
+ ellipsed: f && i >= o
971
+ };
972
+ }, dist_ht = {
973
+ limit: 1 / 0,
974
+ ellipsis: "",
975
+ ellipsisWidth: 0
976
+ }, dist_M = (e, r = {})=>Re(e, dist_ht, r).width, te = "\x1B", Me = "\x9B", dist_mt = 39, pe = "\x07", Oe = "[", dist_pt = "]", Ne = "m", ge = `${dist_pt}8;;`, Le = new RegExp(`(?:\\${Oe}(?<code>\\d+)m|\\${ge}(?<uri>.*)${pe})`, "y"), dist_gt = (e)=>{
977
+ if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
978
+ if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
979
+ if (1 === e || 2 === e) return 22;
980
+ if (3 === e) return 23;
981
+ if (4 === e) return 24;
982
+ if (7 === e) return 27;
983
+ if (8 === e) return 28;
984
+ if (9 === e) return 29;
985
+ if (0 === e) return 0;
986
+ }, We = (e)=>`${te}${Oe}${e}${Ne}`, Pe = (e)=>`${te}${ge}${e}${pe}`, dist_ft = (e)=>e.map((r)=>dist_M(r)), fe = (e, r, s)=>{
987
+ const i = r[Symbol.iterator]();
988
+ let n = !1, o = !1, u = e.at(-1), l = void 0 === u ? 0 : dist_M(u), a = i.next(), m = i.next(), E = 0;
989
+ for(; !a.done;){
990
+ const y = a.value, F = dist_M(y);
991
+ l + F <= s ? e[e.length - 1] += y : (e.push(y), l = 0), (y === te || y === Me) && (n = !0, o = r.startsWith(ge, E + 1)), n ? o ? y === pe && (n = !1, o = !1) : y === Ne && (n = !1) : (l += F, l !== s || m.done || (e.push(""), l = 0)), a = m, m = i.next(), E += y.length;
992
+ }
993
+ u = e.at(-1), !l && void 0 !== u && u.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
994
+ }, dist_Ft = (e)=>{
995
+ const r = e.split(" ");
996
+ let s = r.length;
997
+ for(; s > 0 && !(dist_M(r[s - 1]) > 0);)s--;
998
+ return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
999
+ }, dist_yt = (e, r, s = {})=>{
1000
+ if (!1 !== s.trim && "" === e.trim()) return "";
1001
+ let i = "", n, o;
1002
+ const u = e.split(" "), l = dist_ft(u);
1003
+ let a = [
1004
+ ""
1005
+ ];
1006
+ for (const [h, d] of u.entries()){
1007
+ !1 !== s.trim && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
1008
+ let $ = dist_M(a.at(-1) ?? "");
1009
+ if (0 !== h && ($ >= r && (!1 === s.wordWrap || !1 === s.trim) && (a.push(""), $ = 0), ($ > 0 || !1 === s.trim) && (a[a.length - 1] += " ", $++)), s.hard && l[h] > r) {
1010
+ const g = r - $, f = 1 + Math.floor((l[h] - g - 1) / r);
1011
+ Math.floor((l[h] - 1) / r) < f && a.push(""), fe(a, d, r);
1012
+ continue;
1013
+ }
1014
+ if ($ + l[h] > r && $ > 0 && l[h] > 0) {
1015
+ if (!1 === s.wordWrap && $ < r) {
1016
+ fe(a, d, r);
1017
+ continue;
1018
+ }
1019
+ a.push("");
1020
+ }
1021
+ if ($ + l[h] > r && !1 === s.wordWrap) {
1022
+ fe(a, d, r);
1023
+ continue;
1024
+ }
1025
+ a[a.length - 1] += d;
1026
+ }
1027
+ !1 !== s.trim && (a = a.map((h)=>dist_Ft(h)));
1028
+ const m = a.join(`
1029
+ `), E = m[Symbol.iterator]();
1030
+ let y = E.next(), F = E.next(), p = 0;
1031
+ for(; !y.done;){
1032
+ const h = y.value, d = F.value;
1033
+ if (i += h, h === te || h === Me) {
1034
+ Le.lastIndex = p + 1;
1035
+ const f = Le.exec(m)?.groups;
1036
+ if (f?.code !== void 0) {
1037
+ const v = Number.parseFloat(f.code);
1038
+ n = v === dist_mt ? void 0 : v;
1039
+ } else f?.uri !== void 0 && (o = 0 === f.uri.length ? void 0 : f.uri);
1040
+ }
1041
+ const $ = n ? dist_gt(n) : void 0;
1042
+ d === `
1043
+ ` ? (o && (i += Pe("")), n && $ && (i += We($))) : h === `
1044
+ ` && (n && $ && (i += We(n)), o && (i += Pe(o))), p += h.length, y = F, F = E.next();
1045
+ }
1046
+ return i;
908
1047
  };
909
- function Re(e) {
1048
+ function dist_k(e, r, s) {
1049
+ return String(e).normalize().replaceAll(`\r
1050
+ `, `
1051
+ `).split(`
1052
+ `).map((i)=>dist_yt(i, r, s)).join(`
1053
+ `);
1054
+ }
1055
+ const dist_Et = (e, r, s, i, n)=>{
1056
+ let o = r, u = 0;
1057
+ for(let l = s; l < i; l++){
1058
+ const a = e[l];
1059
+ if (o -= a.length, u++, o <= n) break;
1060
+ }
1061
+ return {
1062
+ lineCount: o,
1063
+ removals: u
1064
+ };
1065
+ }, dist_G = (e)=>{
1066
+ const { cursor: r, options: s, style: i } = e, n = e.output ?? process.stdout, o = Ct(n), u = e.columnPadding ?? 0, l = e.rowPadding ?? 4, a = o - u, m = bt(n), E = picocolors.dim("..."), y = e.maxItems ?? 1 / 0, F = Math.max(m - l, 0), p = Math.max(y, 5);
1067
+ let h = 0;
1068
+ r >= p - 3 && (h = Math.max(Math.min(r - p + 3, s.length - p), 0));
1069
+ let d = p < s.length && h > 0, $ = p < s.length && h + p < s.length;
1070
+ const g = Math.min(h + p, s.length), f = [];
1071
+ let v = 0;
1072
+ d && v++, $ && v++;
1073
+ const w = h + (d ? 1 : 0), B = g - ($ ? 1 : 0);
1074
+ for(let A = w; A < B; A++){
1075
+ const C = dist_k(i(s[A], A === r), a).split(`
1076
+ `);
1077
+ f.push(C), v += C.length;
1078
+ }
1079
+ if (v > F) {
1080
+ let A = 0, C = 0, _ = v;
1081
+ const D = r - w, I = (T, R)=>dist_Et(f, _, T, R, F);
1082
+ d ? ({ lineCount: _, removals: A } = I(0, D), _ > F && ({ lineCount: _, removals: C } = I(D + 1, f.length))) : ({ lineCount: _, removals: C } = I(D + 1, f.length), _ > F && ({ lineCount: _, removals: A } = I(0, D))), A > 0 && (d = !0, f.splice(0, A)), C > 0 && ($ = !0, f.splice(f.length - C, C));
1083
+ }
1084
+ const x = [];
1085
+ d && x.push(E);
1086
+ for (const A of f)for (const C of A)x.push(C);
1087
+ return $ && x.push(E), x;
1088
+ };
1089
+ function je(e) {
910
1090
  return e.label ?? String(e.value ?? "");
911
1091
  }
912
- function Me(e, r) {
1092
+ function Ve(e, r) {
913
1093
  if (!e) return !0;
914
1094
  const s = (r.label ?? String(r.value ?? "")).toLowerCase(), i = (r.hint ?? "").toLowerCase(), n = String(r.value).toLowerCase(), o = e.toLowerCase();
915
1095
  return s.includes(o) || i.includes(o) || n.includes(o);
916
1096
  }
917
- function dist_lt(e, r) {
1097
+ function dist_vt(e, r) {
918
1098
  const s = [];
919
1099
  for (const i of r)e.includes(i.value) && s.push(i);
920
1100
  return s;
921
1101
  }
922
- const Oe = (e)=>new wt({
1102
+ const ke = (e)=>new wt({
923
1103
  options: e.options,
924
1104
  initialValue: e.initialValue ? [
925
1105
  e.initialValue
926
1106
  ] : void 0,
927
1107
  initialUserInput: e.initialUserInput,
928
- filter: (r, s)=>Me(r, s),
1108
+ filter: (r, s)=>Ve(r, s),
929
1109
  signal: e.signal,
930
1110
  input: e.input,
931
1111
  output: e.output,
932
1112
  validate: e.validate,
933
1113
  render () {
934
- const r = `${picocolors.gray(dist_u)}
935
- ${dist_M(this.state)} ${e.message}
936
- `, s = this.userInput, i = String(this.value ?? ""), n = this.options, o = e.placeholder, c = "" === i && void 0 !== o;
1114
+ const r = [
1115
+ `${picocolors.gray(dist_c)}`,
1116
+ `${dist_L(this.state)} ${e.message}`
1117
+ ], s = this.userInput, i = String(this.value ?? ""), n = this.options, o = e.placeholder, u = "" === i && void 0 !== o;
937
1118
  switch(this.state){
938
1119
  case "submit":
939
1120
  {
940
- const l = dist_lt(this.selectedValues, n), a = l.length > 0 ? ` ${picocolors.dim(l.map(Re).join(", "))}` : "";
941
- return `${r}${picocolors.gray(dist_u)}${a}`;
1121
+ const l = dist_vt(this.selectedValues, n), a = l.length > 0 ? ` ${picocolors.dim(l.map(je).join(", "))}` : "";
1122
+ return `${r.join(`
1123
+ `)}
1124
+ ${picocolors.gray(dist_c)}${a}`;
942
1125
  }
943
1126
  case "cancel":
944
1127
  {
945
1128
  const l = s ? ` ${picocolors.strikethrough(picocolors.dim(s))}` : "";
946
- return `${r}${picocolors.gray(dist_u)}${l}`;
1129
+ return `${r.join(`
1130
+ `)}
1131
+ ${picocolors.gray(dist_c)}${l}`;
947
1132
  }
948
1133
  default:
949
1134
  {
950
1135
  let l = "";
951
- if (this.isNavigating || c) {
952
- const m = c ? o : s;
953
- l = "" !== m ? ` ${picocolors.dim(m)}` : "";
1136
+ if (this.isNavigating || u) {
1137
+ const h = u ? o : s;
1138
+ l = "" !== h ? ` ${picocolors.dim(h)}` : "";
954
1139
  } else l = ` ${this.userInputWithCursor}`;
955
- const a = this.filteredOptions.length !== n.length ? picocolors.dim(` (${this.filteredOptions.length} match${1 === this.filteredOptions.length ? "" : "es"})`) : "", h = 0 === this.filteredOptions.length ? [] : dist_k({
1140
+ const a = this.filteredOptions.length !== n.length ? picocolors.dim(` (${this.filteredOptions.length} match${1 === this.filteredOptions.length ? "" : "es"})`) : "", m = 0 === this.filteredOptions.length && s ? [
1141
+ `${picocolors.cyan(dist_c)} ${picocolors.yellow("No matches found")}`
1142
+ ] : [], E = "error" === this.state ? [
1143
+ `${picocolors.yellow(dist_c)} ${picocolors.yellow(this.error)}`
1144
+ ] : [];
1145
+ r.push(`${picocolors.cyan(dist_c)}`, `${picocolors.cyan(dist_c)} ${picocolors.dim("Search:")}${l}${a}`, ...m, ...E);
1146
+ const y = [
1147
+ `${picocolors.dim("\u2191/\u2193")} to select`,
1148
+ `${picocolors.dim("Enter:")} confirm`,
1149
+ `${picocolors.dim("Type:")} to search`
1150
+ ], F = [
1151
+ `${picocolors.cyan(dist_c)} ${picocolors.dim(y.join(" \u2022 "))}`,
1152
+ `${picocolors.cyan(dist_b)}`
1153
+ ], p = 0 === this.filteredOptions.length ? [] : dist_G({
956
1154
  cursor: this.cursor,
957
1155
  options: this.filteredOptions,
958
- style: (m, p)=>{
959
- const $ = Re(m), d = m.hint && m.value === this.focusedValue ? picocolors.dim(` (${m.hint})`) : "";
960
- return p ? `${picocolors.green(dist_G)} ${$}${d}` : `${picocolors.dim(H)} ${picocolors.dim($)}${d}`;
1156
+ columnPadding: 3,
1157
+ rowPadding: r.length + F.length,
1158
+ style: (h, d)=>{
1159
+ const $ = je(h), g = h.hint && h.value === this.focusedValue ? picocolors.dim(` (${h.hint})`) : "";
1160
+ return d ? `${picocolors.green(dist_U)} ${$}${g}` : `${picocolors.dim(dist_K)} ${picocolors.dim($)}${g}`;
961
1161
  },
962
1162
  maxItems: e.maxItems,
963
1163
  output: e.output
964
- }), g = [
965
- `${picocolors.dim("\u2191/\u2193")} to select`,
966
- `${picocolors.dim("Enter:")} confirm`,
967
- `${picocolors.dim("Type:")} to search`
968
- ], F = 0 === this.filteredOptions.length && s ? [
969
- `${picocolors.cyan(dist_u)} ${picocolors.yellow("No matches found")}`
970
- ] : [], y = "error" === this.state ? [
971
- `${picocolors.yellow(dist_u)} ${picocolors.yellow(this.error)}`
972
- ] : [];
1164
+ });
973
1165
  return [
974
- `${r}${picocolors.cyan(dist_u)}`,
975
- `${picocolors.cyan(dist_u)} ${picocolors.dim("Search:")}${l}${a}`,
976
- ...F,
977
- ...y,
978
- ...h.map((m)=>`${picocolors.cyan(dist_u)} ${m}`),
979
- `${picocolors.cyan(dist_u)} ${picocolors.dim(g.join(" \u2022 "))}`,
980
- `${picocolors.cyan(dist_)}`
1166
+ ...r,
1167
+ ...p.map((h)=>`${picocolors.cyan(dist_c)} ${h}`),
1168
+ ...F
981
1169
  ].join(`
982
1170
  `);
983
1171
  }
984
1172
  }
985
1173
  }
986
- }).prompt(), dist_ut = (e)=>{
987
- const r = (i, n, o, c)=>{
988
- const l = o.includes(i.value), a = i.label ?? String(i.value ?? ""), h = i.hint && void 0 !== c && i.value === c ? picocolors.dim(` (${i.hint})`) : "", g = l ? picocolors.green(dist_W) : picocolors.dim(dist_X);
989
- return n ? `${g} ${a}${h}` : `${g} ${picocolors.dim(a)}`;
1174
+ }).prompt(), dist_At = (e)=>{
1175
+ const r = (i, n, o, u)=>{
1176
+ const l = o.includes(i.value), a = i.label ?? String(i.value ?? ""), m = i.hint && void 0 !== u && i.value === u ? picocolors.dim(` (${i.hint})`) : "", E = l ? picocolors.green(dist_P) : picocolors.dim(Y);
1177
+ return n ? `${E} ${a}${m}` : `${E} ${picocolors.dim(a)}`;
990
1178
  }, s = new wt({
991
1179
  options: e.options,
992
1180
  multiple: !0,
993
- filter: (i, n)=>Me(i, n),
1181
+ filter: (i, n)=>Ve(i, n),
994
1182
  validate: ()=>{
995
1183
  if (e.required && 0 === s.selectedValues.length) return "Please select at least one item";
996
1184
  },
@@ -999,40 +1187,40 @@ ${dist_M(this.state)} ${e.message}
999
1187
  input: e.input,
1000
1188
  output: e.output,
1001
1189
  render () {
1002
- const i = `${picocolors.gray(dist_u)}
1003
- ${dist_M(this.state)} ${e.message}
1004
- `, n = this.userInput, o = e.placeholder, c = "" === n && void 0 !== o, l = this.isNavigating || c ? picocolors.dim(c ? o : n) : this.userInputWithCursor, a = this.options, h = this.filteredOptions.length !== a.length ? picocolors.dim(` (${this.filteredOptions.length} match${1 === this.filteredOptions.length ? "" : "es"})`) : "";
1190
+ const i = `${picocolors.gray(dist_c)}
1191
+ ${dist_L(this.state)} ${e.message}
1192
+ `, n = this.userInput, o = e.placeholder, u = "" === n && void 0 !== o, l = this.isNavigating || u ? picocolors.dim(u ? o : n) : this.userInputWithCursor, a = this.options, m = this.filteredOptions.length !== a.length ? picocolors.dim(` (${this.filteredOptions.length} match${1 === this.filteredOptions.length ? "" : "es"})`) : "";
1005
1193
  switch(this.state){
1006
1194
  case "submit":
1007
- return `${i}${picocolors.gray(dist_u)} ${picocolors.dim(`${this.selectedValues.length} items selected`)}`;
1195
+ return `${i}${picocolors.gray(dist_c)} ${picocolors.dim(`${this.selectedValues.length} items selected`)}`;
1008
1196
  case "cancel":
1009
- return `${i}${picocolors.gray(dist_u)} ${picocolors.strikethrough(picocolors.dim(n))}`;
1197
+ return `${i}${picocolors.gray(dist_c)} ${picocolors.strikethrough(picocolors.dim(n))}`;
1010
1198
  default:
1011
1199
  {
1012
- const g = [
1200
+ const E = [
1013
1201
  `${picocolors.dim("\u2191/\u2193")} to navigate`,
1014
1202
  `${picocolors.dim(this.isNavigating ? "Space/Tab:" : "Tab:")} select`,
1015
1203
  `${picocolors.dim("Enter:")} confirm`,
1016
1204
  `${picocolors.dim("Type:")} to search`
1017
- ], F = 0 === this.filteredOptions.length && n ? [
1018
- `${picocolors.cyan(dist_u)} ${picocolors.yellow("No matches found")}`
1019
- ] : [], y = "error" === this.state ? [
1020
- `${picocolors.cyan(dist_u)} ${picocolors.yellow(this.error)}`
1021
- ] : [], m = dist_k({
1205
+ ], y = 0 === this.filteredOptions.length && n ? [
1206
+ `${picocolors.cyan(dist_c)} ${picocolors.yellow("No matches found")}`
1207
+ ] : [], F = "error" === this.state ? [
1208
+ `${picocolors.cyan(dist_c)} ${picocolors.yellow(this.error)}`
1209
+ ] : [], p = dist_G({
1022
1210
  cursor: this.cursor,
1023
1211
  options: this.filteredOptions,
1024
- style: (p, $)=>r(p, $, this.selectedValues, this.focusedValue),
1212
+ style: (h, d)=>r(h, d, this.selectedValues, this.focusedValue),
1025
1213
  maxItems: e.maxItems,
1026
1214
  output: e.output
1027
1215
  });
1028
1216
  return [
1029
1217
  i,
1030
- `${picocolors.cyan(dist_u)} ${picocolors.dim("Search:")} ${l}${h}`,
1031
- ...F,
1218
+ `${picocolors.cyan(dist_c)} ${picocolors.dim("Search:")} ${l}${m}`,
1032
1219
  ...y,
1033
- ...m.map((p)=>`${picocolors.cyan(dist_u)} ${p}`),
1034
- `${picocolors.cyan(dist_u)} ${picocolors.dim(g.join(" \u2022 "))}`,
1035
- `${picocolors.cyan(dist_)}`
1220
+ ...F,
1221
+ ...p.map((h)=>`${picocolors.cyan(dist_c)} ${h}`),
1222
+ `${picocolors.cyan(dist_c)} ${picocolors.dim(E.join(" \u2022 "))}`,
1223
+ `${picocolors.cyan(dist_b)}`
1036
1224
  ].join(`
1037
1225
  `);
1038
1226
  }
@@ -1040,168 +1228,16 @@ ${dist_M(this.state)} ${e.message}
1040
1228
  }
1041
1229
  });
1042
1230
  return s.prompt();
1043
- }, dist_ct = (e)=>161 === e || 164 === e || 167 === e || 168 === e || 170 === e || 173 === e || 174 === e || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || 198 === e || 208 === e || 215 === e || 216 === e || e >= 222 && e <= 225 || 230 === e || e >= 232 && e <= 234 || 236 === e || 237 === e || 240 === e || 242 === e || 243 === e || e >= 247 && e <= 250 || 252 === e || 254 === e || 257 === e || 273 === e || 275 === e || 283 === e || 294 === e || 295 === e || 299 === e || e >= 305 && e <= 307 || 312 === e || e >= 319 && e <= 322 || 324 === e || e >= 328 && e <= 331 || 333 === e || 338 === e || 339 === e || 358 === e || 359 === e || 363 === e || 462 === e || 464 === e || 466 === e || 468 === e || 470 === e || 472 === e || 474 === e || 476 === e || 593 === e || 609 === e || 708 === e || 711 === e || e >= 713 && e <= 715 || 717 === e || 720 === e || e >= 728 && e <= 731 || 733 === e || 735 === e || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || 1025 === e || e >= 1040 && e <= 1103 || 1105 === e || 8208 === e || e >= 8211 && e <= 8214 || 8216 === e || 8217 === e || 8220 === e || 8221 === e || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || 8240 === e || 8242 === e || 8243 === e || 8245 === e || 8251 === e || 8254 === e || 8308 === e || 8319 === e || e >= 8321 && e <= 8324 || 8364 === e || 8451 === e || 8453 === e || 8457 === e || 8467 === e || 8470 === e || 8481 === e || 8482 === e || 8486 === e || 8491 === e || 8531 === e || 8532 === e || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || 8585 === e || e >= 8592 && e <= 8601 || 8632 === e || 8633 === e || 8658 === e || 8660 === e || 8679 === e || 8704 === e || 8706 === e || 8707 === e || 8711 === e || 8712 === e || 8715 === e || 8719 === e || 8721 === e || 8725 === e || 8730 === e || e >= 8733 && e <= 8736 || 8739 === e || 8741 === e || e >= 8743 && e <= 8748 || 8750 === e || e >= 8756 && e <= 8759 || 8764 === e || 8765 === e || 8776 === e || 8780 === e || 8786 === e || 8800 === e || 8801 === e || e >= 8804 && e <= 8807 || 8810 === e || 8811 === e || 8814 === e || 8815 === e || 8834 === e || 8835 === e || 8838 === e || 8839 === e || 8853 === e || 8857 === e || 8869 === e || 8895 === e || 8978 === e || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || 9632 === e || 9633 === e || e >= 9635 && e <= 9641 || 9650 === e || 9651 === e || 9654 === e || 9655 === e || 9660 === e || 9661 === e || 9664 === e || 9665 === e || e >= 9670 && e <= 9672 || 9675 === e || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || 9711 === e || 9733 === e || 9734 === e || 9737 === e || 9742 === e || 9743 === e || 9756 === e || 9758 === e || 9792 === e || 9794 === e || 9824 === e || 9825 === e || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || 9836 === e || 9837 === e || 9839 === e || 9886 === e || 9887 === e || 9919 === e || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || 9955 === e || 9960 === e || 9961 === e || e >= 9963 && e <= 9969 || 9972 === e || e >= 9974 && e <= 9977 || 9979 === e || 9980 === e || 9982 === e || 9983 === e || 10045 === e || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || 65533 === e || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || 127375 === e || 127376 === e || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, $t = (e)=>12288 === e || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, dist_dt = (e)=>e >= 4352 && e <= 4447 || 8986 === e || 8987 === e || 9001 === e || 9002 === e || e >= 9193 && e <= 9196 || 9200 === e || 9203 === e || 9725 === e || 9726 === e || 9748 === e || 9749 === e || e >= 9800 && e <= 9811 || 9855 === e || 9875 === e || 9889 === e || 9898 === e || 9899 === e || 9917 === e || 9918 === e || 9924 === e || 9925 === e || 9934 === e || 9940 === e || 9962 === e || 9970 === e || 9971 === e || 9973 === e || 9978 === e || 9981 === e || 9989 === e || 9994 === e || 9995 === e || 10024 === e || 10060 === e || 10062 === e || e >= 10067 && e <= 10069 || 10071 === e || e >= 10133 && e <= 10135 || 10160 === e || 10175 === e || 11035 === e || 11036 === e || 11088 === e || 11093 === e || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || 94192 === e || 94193 === e || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || 110589 === e || 110590 === e || e >= 110592 && e <= 110882 || 110898 === e || e >= 110928 && e <= 110930 || 110933 === e || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || 126980 === e || 127183 === e || 127374 === e || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || 127568 === e || 127569 === e || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || 127988 === e || e >= 127992 && e <= 128062 || 128064 === e || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || 128378 === e || 128405 === e || 128406 === e || 128420 === e || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || 128716 === e || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || 128747 === e || 128748 === e || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || 129008 === e || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, de = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, z = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, dist_Z = /\t{1,1000}/y, he = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu, dist_Q = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, dist_ht = /\p{M}+/gu, dist_mt = {
1044
- limit: 1 / 0,
1045
- ellipsis: ""
1046
- }, Ne = (e, r = {}, s = {})=>{
1047
- const i = r.limit ?? 1 / 0, n = r.ellipsis ?? "", o = r?.ellipsisWidth ?? (n ? Ne(n, dist_mt, s).width : 0), c = s.ansiWidth ?? 0, l = s.controlWidth ?? 0, a = s.tabWidth ?? 8, h = s.ambiguousWidth ?? 1, g = s.emojiWidth ?? 2, F = s.fullWidthWidth ?? 2, y = s.regularWidth ?? 1, m = s.wideWidth ?? 2;
1048
- let p = 0, $ = 0, d = e.length, f = 0, E = !1, v = d, w = Math.max(0, i - o), B = 0, x = 0, A = 0, C = 0;
1049
- e: for(;;){
1050
- if (x > B || $ >= d && $ > p) {
1051
- const O = e.slice(B, x) || e.slice(p, $);
1052
- f = 0;
1053
- for (const N of O.replaceAll(dist_ht, "")){
1054
- const S = N.codePointAt(0) || 0;
1055
- if ($t(S) ? C = F : dist_dt(S) ? C = m : h !== y && dist_ct(S) ? C = h : C = y, A + C > w && (v = Math.min(v, Math.max(B, p) + f)), A + C > i) {
1056
- E = !0;
1057
- break e;
1058
- }
1059
- f += N.length, A += C;
1060
- }
1061
- B = x = 0;
1062
- }
1063
- if ($ >= d) break;
1064
- if (dist_Q.lastIndex = $, dist_Q.test(e)) {
1065
- if (f = dist_Q.lastIndex - $, C = f * y, A + C > w && (v = Math.min(v, $ + Math.floor((w - A) / y))), A + C > i) {
1066
- E = !0;
1067
- break;
1068
- }
1069
- A += C, B = p, x = $, $ = p = dist_Q.lastIndex;
1070
- continue;
1071
- }
1072
- if (de.lastIndex = $, de.test(e)) {
1073
- if (A + c > w && (v = Math.min(v, $)), A + c > i) {
1074
- E = !0;
1075
- break;
1076
- }
1077
- A += c, B = p, x = $, $ = p = de.lastIndex;
1078
- continue;
1079
- }
1080
- if (z.lastIndex = $, z.test(e)) {
1081
- if (f = z.lastIndex - $, C = f * l, A + C > w && (v = Math.min(v, $ + Math.floor((w - A) / l))), A + C > i) {
1082
- E = !0;
1083
- break;
1084
- }
1085
- A += C, B = p, x = $, $ = p = z.lastIndex;
1086
- continue;
1087
- }
1088
- if (dist_Z.lastIndex = $, dist_Z.test(e)) {
1089
- if (f = dist_Z.lastIndex - $, C = f * a, A + C > w && (v = Math.min(v, $ + Math.floor((w - A) / a))), A + C > i) {
1090
- E = !0;
1091
- break;
1092
- }
1093
- A += C, B = p, x = $, $ = p = dist_Z.lastIndex;
1094
- continue;
1095
- }
1096
- if (he.lastIndex = $, he.test(e)) {
1097
- if (A + g > w && (v = Math.min(v, $)), A + g > i) {
1098
- E = !0;
1099
- break;
1100
- }
1101
- A += g, B = p, x = $, $ = p = he.lastIndex;
1102
- continue;
1103
- }
1104
- $ += 1;
1105
- }
1106
- return {
1107
- width: E ? w : A,
1108
- index: E ? v : d,
1109
- truncated: E,
1110
- ellipsed: E && i >= o
1111
- };
1112
- }, dist_pt = {
1113
- limit: 1 / 0,
1114
- ellipsis: "",
1115
- ellipsisWidth: 0
1116
- }, dist_U = (e, r = {})=>Ne(e, dist_pt, r).width, ee = "\x1B", Le = "\x9B", dist_gt = 39, me = "\x07", We = "[", dist_Ft = "]", Pe = "m", pe = `${dist_Ft}8;;`, je = new RegExp(`(?:\\${We}(?<code>\\d+)m|\\${pe}(?<uri>.*)${me})`, "y"), dist_ft = (e)=>{
1117
- if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
1118
- if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
1119
- if (1 === e || 2 === e) return 22;
1120
- if (3 === e) return 23;
1121
- if (4 === e) return 24;
1122
- if (7 === e) return 27;
1123
- if (8 === e) return 28;
1124
- if (9 === e) return 29;
1125
- if (0 === e) return 0;
1126
- }, Ve = (e)=>`${ee}${We}${e}${Pe}`, ke = (e)=>`${ee}${pe}${e}${me}`, dist_yt = (e)=>e.map((r)=>dist_U(r)), ge = (e, r, s)=>{
1127
- const i = r[Symbol.iterator]();
1128
- let n = !1, o = !1, c = e.at(-1), l = void 0 === c ? 0 : dist_U(c), a = i.next(), h = i.next(), g = 0;
1129
- for(; !a.done;){
1130
- const F = a.value, y = dist_U(F);
1131
- l + y <= s ? e[e.length - 1] += F : (e.push(F), l = 0), (F === ee || F === Le) && (n = !0, o = r.startsWith(pe, g + 1)), n ? o ? F === me && (n = !1, o = !1) : F === Pe && (n = !1) : (l += y, l !== s || h.done || (e.push(""), l = 0)), a = h, h = i.next(), g += F.length;
1132
- }
1133
- c = e.at(-1), !l && void 0 !== c && c.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
1134
- }, dist_Et = (e)=>{
1135
- const r = e.split(" ");
1136
- let s = r.length;
1137
- for(; s > 0 && !(dist_U(r[s - 1]) > 0);)s--;
1138
- return s === r.length ? e : r.slice(0, s).join(" ") + r.slice(s).join("");
1139
- }, dist_vt = (e, r, s = {})=>{
1140
- if (!1 !== s.trim && "" === e.trim()) return "";
1141
- let i = "", n, o;
1142
- const c = e.split(" "), l = dist_yt(c);
1143
- let a = [
1144
- ""
1145
- ];
1146
- for (const [p, $] of c.entries()){
1147
- !1 !== s.trim && (a[a.length - 1] = (a.at(-1) ?? "").trimStart());
1148
- let d = dist_U(a.at(-1) ?? "");
1149
- if (0 !== p && (d >= r && (!1 === s.wordWrap || !1 === s.trim) && (a.push(""), d = 0), (d > 0 || !1 === s.trim) && (a[a.length - 1] += " ", d++)), s.hard && l[p] > r) {
1150
- const f = r - d, E = 1 + Math.floor((l[p] - f - 1) / r);
1151
- Math.floor((l[p] - 1) / r) < E && a.push(""), ge(a, $, r);
1152
- continue;
1153
- }
1154
- if (d + l[p] > r && d > 0 && l[p] > 0) {
1155
- if (!1 === s.wordWrap && d < r) {
1156
- ge(a, $, r);
1157
- continue;
1158
- }
1159
- a.push("");
1160
- }
1161
- if (d + l[p] > r && !1 === s.wordWrap) {
1162
- ge(a, $, r);
1163
- continue;
1164
- }
1165
- a[a.length - 1] += $;
1166
- }
1167
- !1 !== s.trim && (a = a.map((p)=>dist_Et(p)));
1168
- const h = a.join(`
1169
- `), g = h[Symbol.iterator]();
1170
- let F = g.next(), y = g.next(), m = 0;
1171
- for(; !F.done;){
1172
- const p = F.value, $ = y.value;
1173
- if (i += p, p === ee || p === Le) {
1174
- je.lastIndex = m + 1;
1175
- const E = je.exec(h)?.groups;
1176
- if (E?.code !== void 0) {
1177
- const v = Number.parseFloat(E.code);
1178
- n = v === dist_gt ? void 0 : v;
1179
- } else E?.uri !== void 0 && (o = 0 === E.uri.length ? void 0 : E.uri);
1180
- }
1181
- const d = n ? dist_ft(n) : void 0;
1182
- $ === `
1183
- ` ? (o && (i += ke("")), n && d && (i += Ve(d))) : p === `
1184
- ` && (n && d && (i += Ve(n)), o && (i += ke(o))), m += p.length, F = y, y = g.next();
1185
- }
1186
- return i;
1187
- };
1188
- function Fe(e, r, s) {
1189
- return String(e).normalize().replaceAll(`\r
1190
- `, `
1191
- `).split(`
1192
- `).map((i)=>dist_vt(i, r, s)).join(`
1193
- `);
1194
- }
1195
- const dist_At = [
1231
+ }, dist_Ct = [
1196
1232
  Te,
1197
- ae,
1233
+ oe,
1198
1234
  De,
1199
- oe
1200
- ], dist_Ct = [
1201
- ne,
1235
+ le
1236
+ ], dist_It = [
1237
+ ae,
1202
1238
  Be,
1203
- dist_,
1204
- _e
1239
+ dist_b,
1240
+ xe
1205
1241
  ];
1206
1242
  function Ge(e, r, s, i) {
1207
1243
  let n = s, o = s;
@@ -1210,37 +1246,37 @@ ${dist_M(this.state)} ${e.message}
1210
1246
  o
1211
1247
  ];
1212
1248
  }
1213
- const dist_It = (e)=>e, dist_St = (e = "", r = "", s)=>{
1214
- const i = s?.output ?? process.stdout, n = bt(i), o = 2, c = s?.titlePadding ?? 1, l = s?.contentPadding ?? 2, a = s?.width === void 0 || "auto" === s.width ? 1 : Math.min(1, s.width), h = s?.includePrefix ? `${dist_u} ` : "", g = s?.formatBorder ?? dist_It, F = (s?.rounded ? dist_At : dist_Ct).map(g), y = g(Y), m = g(dist_u), p = n - h.length;
1215
- let $ = Math.floor(n * a) - h.length;
1249
+ const dist_St = (e)=>e, dist_wt = (e = "", r = "", s)=>{
1250
+ const i = s?.output ?? process.stdout, n = Ct(i), o = 2, u = s?.titlePadding ?? 1, l = s?.contentPadding ?? 2, a = s?.width === void 0 || "auto" === s.width ? 1 : Math.min(1, s.width), m = s?.includePrefix ? `${dist_c} ` : "", E = s?.formatBorder ?? dist_St, y = (s?.rounded ? dist_Ct : dist_It).map(E), F = E(z), p = E(dist_c), h = dist_M(m), d = dist_M(r), $ = n - h;
1251
+ let g = Math.floor(n * a) - h;
1216
1252
  if (s?.width === "auto") {
1217
- const A = e.split(`
1253
+ const _ = e.split(`
1218
1254
  `);
1219
- let C = r.length + 2 * c;
1220
- for (const N of A){
1221
- const S = N.length + 2 * l;
1222
- S > C && (C = S);
1255
+ let D = d + 2 * u;
1256
+ for (const T of _){
1257
+ const R = dist_M(T) + 2 * l;
1258
+ R > D && (D = R);
1223
1259
  }
1224
- const O = C + o;
1225
- O < $ && ($ = O);
1260
+ const I = D + o;
1261
+ I < g && (g = I);
1226
1262
  }
1227
- $ % 2 !== 0 && ($ < p ? $++ : $--);
1228
- const d = $ - o, f = d - 2 * c, E = r.length > f ? `${r.slice(0, f - 3)}...` : r, [v, w] = Ge(E.length, d, c, s?.titleAlign), B = Fe(e, d - 2 * l, {
1263
+ g % 2 !== 0 && (g < $ ? g++ : g--);
1264
+ const f = g - o, v = f - 2 * u, w = d > v ? `${r.slice(0, v - 3)}...` : r, [B, x] = Ge(dist_M(w), f, u, s?.titleAlign), A = dist_k(e, f - 2 * l, {
1229
1265
  hard: !0,
1230
1266
  trim: !1
1231
1267
  });
1232
- i.write(`${h}${F[0]}${y.repeat(v)}${E}${y.repeat(w)}${F[1]}
1268
+ i.write(`${m}${y[0]}${F.repeat(B)}${w}${F.repeat(x)}${y[1]}
1233
1269
  `);
1234
- const x = B.split(`
1270
+ const C = A.split(`
1235
1271
  `);
1236
- for (const A of x){
1237
- const [C, O] = Ge(A.length, d, l, s?.contentAlign);
1238
- i.write(`${h}${m}${" ".repeat(C)}${A}${" ".repeat(O)}${m}
1272
+ for (const _ of C){
1273
+ const [D, I] = Ge(dist_M(_), f, l, s?.contentAlign);
1274
+ i.write(`${m}${p}${" ".repeat(D)}${_}${" ".repeat(I)}${p}
1239
1275
  `);
1240
1276
  }
1241
- i.write(`${h}${F[2]}${y.repeat(d)}${F[3]}
1277
+ i.write(`${m}${y[2]}${F.repeat(f)}${y[3]}
1242
1278
  `);
1243
- }, dist_wt = (e)=>{
1279
+ }, dist_Bt = (e)=>{
1244
1280
  const r = e.active ?? "Yes", s = e.inactive ?? "No";
1245
1281
  return new St({
1246
1282
  active: r,
@@ -1250,62 +1286,62 @@ ${dist_M(this.state)} ${e.message}
1250
1286
  output: e.output,
1251
1287
  initialValue: e.initialValue ?? !0,
1252
1288
  render () {
1253
- const i = `${picocolors.gray(dist_u)}
1254
- ${dist_M(this.state)} ${e.message}
1289
+ const i = `${picocolors.gray(dist_c)}
1290
+ ${dist_L(this.state)} ${e.message}
1255
1291
  `, n = this.value ? r : s;
1256
1292
  switch(this.state){
1257
1293
  case "submit":
1258
- return `${i}${picocolors.gray(dist_u)} ${picocolors.dim(n)}`;
1294
+ return `${i}${picocolors.gray(dist_c)} ${picocolors.dim(n)}`;
1259
1295
  case "cancel":
1260
- return `${i}${picocolors.gray(dist_u)} ${picocolors.strikethrough(picocolors.dim(n))}
1261
- ${picocolors.gray(dist_u)}`;
1296
+ return `${i}${picocolors.gray(dist_c)} ${picocolors.strikethrough(picocolors.dim(n))}
1297
+ ${picocolors.gray(dist_c)}`;
1262
1298
  default:
1263
- return `${i}${picocolors.cyan(dist_u)} ${this.value ? `${picocolors.green(dist_G)} ${r}` : `${picocolors.dim(H)} ${picocolors.dim(r)}`} ${picocolors.dim("/")} ${this.value ? `${picocolors.dim(H)} ${picocolors.dim(s)}` : `${picocolors.green(dist_G)} ${s}`}
1264
- ${picocolors.cyan(dist_)}
1299
+ return `${i}${picocolors.cyan(dist_c)} ${this.value ? `${picocolors.green(dist_U)} ${r}` : `${picocolors.dim(dist_K)} ${picocolors.dim(r)}`} ${picocolors.dim("/")} ${this.value ? `${picocolors.dim(dist_K)} ${picocolors.dim(s)}` : `${picocolors.green(dist_U)} ${s}`}
1300
+ ${picocolors.cyan(dist_b)}
1265
1301
  `;
1266
1302
  }
1267
1303
  }
1268
1304
  }).prompt();
1269
- }, dist_Bt = async (e, r)=>{
1305
+ }, dist_xt = async (e, r)=>{
1270
1306
  const s = {}, i = Object.keys(e);
1271
1307
  for (const n of i){
1272
- const o = e[n], c = await o({
1308
+ const o = e[n], u = await o({
1273
1309
  results: s
1274
1310
  })?.catch((l)=>{
1275
1311
  throw l;
1276
1312
  });
1277
- if ("function" == typeof r?.onCancel && _t(c)) {
1313
+ if ("function" == typeof r?.onCancel && It(u)) {
1278
1314
  s[n] = "canceled", r.onCancel({
1279
1315
  results: s
1280
1316
  });
1281
1317
  continue;
1282
1318
  }
1283
- s[n] = c;
1319
+ s[n] = u;
1284
1320
  }
1285
1321
  return s;
1286
- }, dist_t = (e)=>{
1287
- const { selectableGroups: r = !0, groupSpacing: s = 0 } = e, i = (o, c, l = [])=>{
1288
- const a = o.label ?? String(o.value), h = "string" == typeof o.group, g = h && (l[l.indexOf(o) + 1] ?? {
1322
+ }, dist_bt = (e)=>{
1323
+ const { selectableGroups: r = !0, groupSpacing: s = 0 } = e, i = (o, u, l = [])=>{
1324
+ const a = o.label ?? String(o.value), m = "string" == typeof o.group, E = m && (l[l.indexOf(o) + 1] ?? {
1289
1325
  group: !0
1290
- }), F = h && g && !0 === g.group, y = h ? r ? `${F ? dist_ : dist_u} ` : " " : "";
1291
- let m = "";
1292
- if (s > 0 && !h) {
1293
- const $ = `
1294
- ${picocolors.cyan(dist_u)}`;
1295
- m = `${$.repeat(s - 1)}${$} `;
1326
+ }), y = m && E && !0 === E.group, F = m ? r ? `${y ? dist_b : dist_c} ` : " " : "";
1327
+ let p = "";
1328
+ if (s > 0 && !m) {
1329
+ const d = `
1330
+ ${picocolors.cyan(dist_c)}`;
1331
+ p = `${d.repeat(s - 1)}${d} `;
1296
1332
  }
1297
- if ("active" === c) return `${m}${picocolors.dim(y)}${picocolors.cyan(dist_J)} ${a}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1298
- if ("group-active" === c) return `${m}${y}${picocolors.cyan(dist_J)} ${picocolors.dim(a)}`;
1299
- if ("group-active-selected" === c) return `${m}${y}${picocolors.green(dist_W)} ${picocolors.dim(a)}`;
1300
- if ("selected" === c) {
1301
- const $ = h || r ? picocolors.green(dist_W) : "";
1302
- return `${m}${picocolors.dim(y)}${$} ${picocolors.dim(a)}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1333
+ if ("active" === u) return `${p}${picocolors.dim(F)}${picocolors.cyan(dist_X)} ${a}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1334
+ if ("group-active" === u) return `${p}${F}${picocolors.cyan(dist_X)} ${picocolors.dim(a)}`;
1335
+ if ("group-active-selected" === u) return `${p}${F}${picocolors.green(dist_P)} ${picocolors.dim(a)}`;
1336
+ if ("selected" === u) {
1337
+ const d = m || r ? picocolors.green(dist_P) : "";
1338
+ return `${p}${picocolors.dim(F)}${d} ${picocolors.dim(a)}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1303
1339
  }
1304
- if ("cancelled" === c) return `${picocolors.strikethrough(picocolors.dim(a))}`;
1305
- if ("active-selected" === c) return `${m}${picocolors.dim(y)}${picocolors.green(dist_W)} ${a}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1306
- if ("submitted" === c) return `${picocolors.dim(a)}`;
1307
- const p = h || r ? picocolors.dim(dist_X) : "";
1308
- return `${m}${picocolors.dim(y)}${p} ${picocolors.dim(a)}`;
1340
+ if ("cancelled" === u) return `${picocolors.strikethrough(picocolors.dim(a))}`;
1341
+ if ("active-selected" === u) return `${p}${picocolors.dim(F)}${picocolors.green(dist_P)} ${a}${o.hint ? ` ${picocolors.dim(`(${o.hint})`)}` : ""}`;
1342
+ if ("submitted" === u) return `${picocolors.dim(a)}`;
1343
+ const h = m || r ? picocolors.dim(Y) : "";
1344
+ return `${p}${picocolors.dim(F)}${h} ${picocolors.dim(a)}`;
1309
1345
  }, n = e.required ?? !0;
1310
1346
  return new Vt({
1311
1347
  options: e.options,
@@ -1321,115 +1357,115 @@ ${picocolors.cyan(dist_u)}`;
1321
1357
  ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1322
1358
  },
1323
1359
  render () {
1324
- const o = `${picocolors.gray(dist_u)}
1325
- ${dist_M(this.state)} ${e.message}
1326
- `, c = this.value ?? [];
1360
+ const o = `${picocolors.gray(dist_c)}
1361
+ ${dist_L(this.state)} ${e.message}
1362
+ `, u = this.value ?? [];
1327
1363
  switch(this.state){
1328
1364
  case "submit":
1329
1365
  {
1330
- const l = this.options.filter(({ value: h })=>c.includes(h)).map((h)=>i(h, "submitted")), a = 0 === l.length ? "" : ` ${l.join(picocolors.dim(", "))}`;
1331
- return `${o}${picocolors.gray(dist_u)}${a}`;
1366
+ const l = this.options.filter(({ value: m })=>u.includes(m)).map((m)=>i(m, "submitted")), a = 0 === l.length ? "" : ` ${l.join(picocolors.dim(", "))}`;
1367
+ return `${o}${picocolors.gray(dist_c)}${a}`;
1332
1368
  }
1333
1369
  case "cancel":
1334
1370
  {
1335
- const l = this.options.filter(({ value: a })=>c.includes(a)).map((a)=>i(a, "cancelled")).join(picocolors.dim(", "));
1336
- return `${o}${picocolors.gray(dist_u)} ${l.trim() ? `${l}
1337
- ${picocolors.gray(dist_u)}` : ""}`;
1371
+ const l = this.options.filter(({ value: a })=>u.includes(a)).map((a)=>i(a, "cancelled")).join(picocolors.dim(", "));
1372
+ return `${o}${picocolors.gray(dist_c)} ${l.trim() ? `${l}
1373
+ ${picocolors.gray(dist_c)}` : ""}`;
1338
1374
  }
1339
1375
  case "error":
1340
1376
  {
1341
1377
  const l = this.error.split(`
1342
- `).map((a, h)=>0 === h ? `${picocolors.yellow(dist_)} ${picocolors.yellow(a)}` : ` ${a}`).join(`
1378
+ `).map((a, m)=>0 === m ? `${picocolors.yellow(dist_b)} ${picocolors.yellow(a)}` : ` ${a}`).join(`
1343
1379
  `);
1344
- return `${o}${picocolors.yellow(dist_u)} ${this.options.map((a, h, g)=>{
1345
- const F = c.includes(a.value) || !0 === a.group && this.isGroupSelected(`${a.value}`), y = h === this.cursor;
1346
- return y || "string" != typeof a.group || this.options[this.cursor].value !== a.group ? y && F ? i(a, "active-selected", g) : F ? i(a, "selected", g) : i(a, y ? "active" : "inactive", g) : i(a, F ? "group-active-selected" : "group-active", g);
1380
+ return `${o}${picocolors.yellow(dist_c)} ${this.options.map((a, m, E)=>{
1381
+ const y = u.includes(a.value) || !0 === a.group && this.isGroupSelected(`${a.value}`), F = m === this.cursor;
1382
+ return F || "string" != typeof a.group || this.options[this.cursor].value !== a.group ? F && y ? i(a, "active-selected", E) : y ? i(a, "selected", E) : i(a, F ? "active" : "inactive", E) : i(a, y ? "group-active-selected" : "group-active", E);
1347
1383
  }).join(`
1348
- ${picocolors.yellow(dist_u)} `)}
1384
+ ${picocolors.yellow(dist_c)} `)}
1349
1385
  ${l}
1350
1386
  `;
1351
1387
  }
1352
1388
  default:
1353
1389
  {
1354
- const l = this.options.map((h, g, F)=>{
1355
- const y = c.includes(h.value) || !0 === h.group && this.isGroupSelected(`${h.value}`), m = g === this.cursor, p = !m && "string" == typeof h.group && this.options[this.cursor].value === h.group;
1356
- let $ = "";
1357
- return p ? $ = i(h, y ? "group-active-selected" : "group-active", F) : m && y ? $ = i(h, "active-selected", F) : y ? $ = i(h, "selected", F) : $ = i(h, m ? "active" : "inactive", F), `${0 !== g && !$.startsWith(`
1358
- `) ? " " : ""}${$}`;
1390
+ const l = this.options.map((m, E, y)=>{
1391
+ const F = u.includes(m.value) || !0 === m.group && this.isGroupSelected(`${m.value}`), p = E === this.cursor, h = !p && "string" == typeof m.group && this.options[this.cursor].value === m.group;
1392
+ let d = "";
1393
+ return h ? d = i(m, F ? "group-active-selected" : "group-active", y) : p && F ? d = i(m, "active-selected", y) : F ? d = i(m, "selected", y) : d = i(m, p ? "active" : "inactive", y), `${0 !== E && !d.startsWith(`
1394
+ `) ? " " : ""}${d}`;
1359
1395
  }).join(`
1360
- ${picocolors.cyan(dist_u)}`), a = l.startsWith(`
1396
+ ${picocolors.cyan(dist_c)}`), a = l.startsWith(`
1361
1397
  `) ? "" : " ";
1362
- return `${o}${picocolors.cyan(dist_u)}${a}${l}
1363
- ${picocolors.cyan(dist_)}
1398
+ return `${o}${picocolors.cyan(dist_c)}${a}${l}
1399
+ ${picocolors.cyan(dist_b)}
1364
1400
  `;
1365
1401
  }
1366
1402
  }
1367
1403
  }
1368
1404
  }).prompt();
1369
- }, dist_b = {
1370
- message: (e = [], { symbol: r = picocolors.gray(dist_u), secondarySymbol: s = picocolors.gray(dist_u), output: i = process.stdout, spacing: n = 1 } = {})=>{
1405
+ }, dist_O = {
1406
+ message: (e = [], { symbol: r = picocolors.gray(dist_c), secondarySymbol: s = picocolors.gray(dist_c), output: i = process.stdout, spacing: n = 1 } = {})=>{
1371
1407
  const o = [];
1372
1408
  for(let l = 0; l < n; l++)o.push(`${s}`);
1373
- const c = Array.isArray(e) ? e : e.split(`
1409
+ const u = Array.isArray(e) ? e : e.split(`
1374
1410
  `);
1375
- if (c.length > 0) {
1376
- const [l, ...a] = c;
1411
+ if (u.length > 0) {
1412
+ const [l, ...a] = u;
1377
1413
  l.length > 0 ? o.push(`${r} ${l}`) : o.push(r);
1378
- for (const h of a)h.length > 0 ? o.push(`${s} ${h}`) : o.push(s);
1414
+ for (const m of a)m.length > 0 ? o.push(`${s} ${m}`) : o.push(s);
1379
1415
  }
1380
1416
  i.write(`${o.join(`
1381
1417
  `)}
1382
1418
  `);
1383
1419
  },
1384
1420
  info: (e, r)=>{
1385
- dist_b.message(e, {
1421
+ dist_O.message(e, {
1386
1422
  ...r,
1387
- symbol: picocolors.blue(le)
1423
+ symbol: picocolors.blue(ue)
1388
1424
  });
1389
1425
  },
1390
1426
  success: (e, r)=>{
1391
- dist_b.message(e, {
1427
+ dist_O.message(e, {
1392
1428
  ...r,
1393
- symbol: picocolors.green(ue)
1429
+ symbol: picocolors.green(ce)
1394
1430
  });
1395
1431
  },
1396
1432
  step: (e, r)=>{
1397
- dist_b.message(e, {
1433
+ dist_O.message(e, {
1398
1434
  ...r,
1399
- symbol: picocolors.green(dist_L)
1435
+ symbol: picocolors.green(dist_W)
1400
1436
  });
1401
1437
  },
1402
1438
  warn: (e, r)=>{
1403
- dist_b.message(e, {
1439
+ dist_O.message(e, {
1404
1440
  ...r,
1405
- symbol: picocolors.yellow(ce)
1441
+ symbol: picocolors.yellow($e)
1406
1442
  });
1407
1443
  },
1408
1444
  warning: (e, r)=>{
1409
- dist_b.warn(e, r);
1445
+ dist_O.warn(e, r);
1410
1446
  },
1411
1447
  error: (e, r)=>{
1412
- dist_b.message(e, {
1448
+ dist_O.message(e, {
1413
1449
  ...r,
1414
- symbol: picocolors.red($e)
1450
+ symbol: picocolors.red(de)
1415
1451
  });
1416
1452
  }
1417
- }, dist_xt = (e = "", r)=>{
1418
- (r?.output ?? process.stdout).write(`${picocolors.gray(dist_)} ${picocolors.red(e)}
1453
+ }, dist_t = (e = "", r)=>{
1454
+ (r?.output ?? process.stdout).write(`${picocolors.gray(dist_b)} ${picocolors.red(e)}
1419
1455
 
1420
- `);
1421
- }, dist_bt = (e = "", r)=>{
1422
- (r?.output ?? process.stdout).write(`${picocolors.gray(ne)} ${e}
1423
1456
  `);
1424
1457
  }, dist_Dt = (e = "", r)=>{
1425
- (r?.output ?? process.stdout).write(`${picocolors.gray(dist_u)}
1426
- ${picocolors.gray(dist_)} ${e}
1458
+ (r?.output ?? process.stdout).write(`${picocolors.gray(ae)} ${e}
1459
+ `);
1460
+ }, Tt = (e = "", r)=>{
1461
+ (r?.output ?? process.stdout).write(`${picocolors.gray(dist_c)}
1462
+ ${picocolors.gray(dist_b)} ${e}
1427
1463
 
1428
1464
  `);
1429
- }, Tt = (e)=>{
1465
+ }, Rt = (e)=>{
1430
1466
  const r = (i, n)=>{
1431
1467
  const o = i.label ?? String(i.value);
1432
- return "active" === n ? `${picocolors.cyan(dist_J)} ${o}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "selected" === n ? `${picocolors.green(dist_W)} ${picocolors.dim(o)}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "cancelled" === n ? `${picocolors.strikethrough(picocolors.dim(o))}` : "active-selected" === n ? `${picocolors.green(dist_W)} ${o}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "submitted" === n ? `${picocolors.dim(o)}` : `${picocolors.dim(dist_X)} ${picocolors.dim(o)}`;
1468
+ return "active" === n ? `${picocolors.cyan(dist_X)} ${o}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "selected" === n ? `${picocolors.green(dist_P)} ${picocolors.dim(o)}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "cancelled" === n ? `${picocolors.strikethrough(picocolors.dim(o))}` : "active-selected" === n ? `${picocolors.green(dist_P)} ${o}${i.hint ? ` ${picocolors.dim(`(${i.hint})`)}` : ""}` : "submitted" === n ? `${picocolors.dim(o)}` : `${picocolors.dim(Y)} ${picocolors.dim(o)}`;
1433
1469
  }, s = e.required ?? !0;
1434
1470
  return new kt({
1435
1471
  options: e.options,
@@ -1444,106 +1480,113 @@ ${picocolors.gray(dist_)} ${e}
1444
1480
  ${picocolors.reset(picocolors.dim(`Press ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" space ")))} to select, ${picocolors.gray(picocolors.bgWhite(picocolors.inverse(" enter ")))} to submit`))}`;
1445
1481
  },
1446
1482
  render () {
1447
- const i = `${picocolors.gray(dist_u)}
1448
- ${dist_M(this.state)} ${e.message}
1449
- `, n = this.value ?? [], o = (c, l)=>{
1450
- const a = n.includes(c.value);
1451
- return l && a ? r(c, "active-selected") : a ? r(c, "selected") : r(c, l ? "active" : "inactive");
1483
+ const i = `${picocolors.gray(dist_c)}
1484
+ ${dist_L(this.state)} ${e.message}
1485
+ `, n = this.value ?? [], o = (u, l)=>{
1486
+ const a = n.includes(u.value);
1487
+ return l && a ? r(u, "active-selected") : a ? r(u, "selected") : r(u, l ? "active" : "inactive");
1452
1488
  };
1453
1489
  switch(this.state){
1454
1490
  case "submit":
1455
- return `${i}${picocolors.gray(dist_u)} ${this.options.filter(({ value: c })=>n.includes(c)).map((c)=>r(c, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1491
+ return `${i}${picocolors.gray(dist_c)} ${this.options.filter(({ value: u })=>n.includes(u)).map((u)=>r(u, "submitted")).join(picocolors.dim(", ")) || picocolors.dim("none")}`;
1456
1492
  case "cancel":
1457
1493
  {
1458
- const c = this.options.filter(({ value: l })=>n.includes(l)).map((l)=>r(l, "cancelled")).join(picocolors.dim(", "));
1459
- return `${i}${picocolors.gray(dist_u)}${c.trim() ? ` ${c}
1460
- ${picocolors.gray(dist_u)}` : ""}`;
1494
+ const u = this.options.filter(({ value: l })=>n.includes(l)).map((l)=>r(l, "cancelled")).join(picocolors.dim(", "));
1495
+ return `${i}${picocolors.gray(dist_c)}${u.trim() ? ` ${u}
1496
+ ${picocolors.gray(dist_c)}` : ""}`;
1461
1497
  }
1462
1498
  case "error":
1463
1499
  {
1464
- const c = this.error.split(`
1465
- `).map((l, a)=>0 === a ? `${picocolors.yellow(dist_)} ${picocolors.yellow(l)}` : ` ${l}`).join(`
1500
+ const u = this.error.split(`
1501
+ `).map((l, a)=>0 === a ? `${picocolors.yellow(dist_b)} ${picocolors.yellow(l)}` : ` ${l}`).join(`
1466
1502
  `);
1467
- return `${i + picocolors.yellow(dist_u)} ${dist_k({
1503
+ return `${i + picocolors.yellow(dist_c)} ${dist_G({
1468
1504
  output: e.output,
1469
1505
  options: this.options,
1470
1506
  cursor: this.cursor,
1471
1507
  maxItems: e.maxItems,
1472
1508
  style: o
1473
1509
  }).join(`
1474
- ${picocolors.yellow(dist_u)} `)}
1475
- ${c}
1510
+ ${picocolors.yellow(dist_c)} `)}
1511
+ ${u}
1476
1512
  `;
1477
1513
  }
1478
1514
  default:
1479
- return `${i}${picocolors.cyan(dist_u)} ${dist_k({
1515
+ return `${i}${picocolors.cyan(dist_c)} ${dist_G({
1480
1516
  output: e.output,
1481
1517
  options: this.options,
1482
1518
  cursor: this.cursor,
1483
1519
  maxItems: e.maxItems,
1484
1520
  style: o
1485
1521
  }).join(`
1486
- ${picocolors.cyan(dist_u)} `)}
1487
- ${picocolors.cyan(dist_)}
1522
+ ${picocolors.cyan(dist_c)} `)}
1523
+ ${picocolors.cyan(dist_b)}
1488
1524
  `;
1489
1525
  }
1490
1526
  }
1491
1527
  }).prompt();
1492
- }, Rt = (e)=>picocolors.dim(e), dist_Mt = (e = "", r = "", s)=>{
1493
- const i = s?.format ?? Rt, n = [
1528
+ }, dist_Mt = (e)=>picocolors.dim(e), Ot = (e, r, s)=>{
1529
+ const i = {
1530
+ hard: !0,
1531
+ trim: !1
1532
+ }, n = dist_k(e, r, i).split(`
1533
+ `), o = n.reduce((a, m)=>Math.max(dist_M(m), a), 0), u = n.map(s).reduce((a, m)=>Math.max(dist_M(m), a), 0), l = r - (u - o);
1534
+ return dist_k(e, l, i);
1535
+ }, Nt = (e = "", r = "", s)=>{
1536
+ const i = s?.output ?? external_node_process_["default"].stdout, n = s?.format ?? dist_Mt, o = [
1494
1537
  "",
1495
- ...e.split(`
1496
- `).map(i),
1538
+ ...Ot(e, Ct(i) - 6, n).split(`
1539
+ `).map(n),
1497
1540
  ""
1498
- ], o = (0, external_node_util_.stripVTControlCharacters)(r).length, c = s?.output ?? process.stdout, l = Math.max(n.reduce((h, g)=>{
1499
- const F = (0, external_node_util_.stripVTControlCharacters)(g);
1500
- return F.length > h ? F.length : h;
1501
- }, 0), o) + 2, a = n.map((h)=>`${picocolors.gray(dist_u)} ${h}${" ".repeat(l - (0, external_node_util_.stripVTControlCharacters)(h).length)}${picocolors.gray(dist_u)}`).join(`
1541
+ ], u = dist_M(r), l = Math.max(o.reduce((m, E)=>{
1542
+ const y = dist_M(E);
1543
+ return y > m ? y : m;
1544
+ }, 0), u) + 2, a = o.map((m)=>`${picocolors.gray(dist_c)} ${m}${" ".repeat(l - dist_M(m))}${picocolors.gray(dist_c)}`).join(`
1502
1545
  `);
1503
- c.write(`${picocolors.gray(dist_u)}
1504
- ${picocolors.green(dist_L)} ${picocolors.reset(r)} ${picocolors.gray(Y.repeat(Math.max(l - o - 1, 1)) + ae)}
1546
+ i.write(`${picocolors.gray(dist_c)}
1547
+ ${picocolors.green(dist_W)} ${picocolors.reset(r)} ${picocolors.gray(z.repeat(Math.max(l - u - 1, 1)) + oe)}
1505
1548
  ${a}
1506
- ${picocolors.gray(be + Y.repeat(l + 2) + oe)}
1549
+ ${picocolors.gray(_e + z.repeat(l + 2) + le)}
1507
1550
  `);
1508
- }, Ot = (e)=>new yt({
1551
+ }, dist_Lt = (e)=>new yt({
1509
1552
  validate: e.validate,
1510
- mask: e.mask ?? xe,
1553
+ mask: e.mask ?? be,
1511
1554
  signal: e.signal,
1512
1555
  input: e.input,
1513
1556
  output: e.output,
1514
1557
  render () {
1515
- const r = `${picocolors.gray(dist_u)}
1516
- ${dist_M(this.state)} ${e.message}
1558
+ const r = `${picocolors.gray(dist_c)}
1559
+ ${dist_L(this.state)} ${e.message}
1517
1560
  `, s = this.userInputWithCursor, i = this.masked;
1518
1561
  switch(this.state){
1519
1562
  case "error":
1520
1563
  {
1521
1564
  const n = i ? ` ${i}` : "";
1522
1565
  return e.clearOnError && this.clear(), `${r.trim()}
1523
- ${picocolors.yellow(dist_u)}${n}
1524
- ${picocolors.yellow(dist_)} ${picocolors.yellow(this.error)}
1566
+ ${picocolors.yellow(dist_c)}${n}
1567
+ ${picocolors.yellow(dist_b)} ${picocolors.yellow(this.error)}
1525
1568
  `;
1526
1569
  }
1527
1570
  case "submit":
1528
1571
  {
1529
1572
  const n = i ? ` ${picocolors.dim(i)}` : "";
1530
- return `${r}${picocolors.gray(dist_u)}${n}`;
1573
+ return `${r}${picocolors.gray(dist_c)}${n}`;
1531
1574
  }
1532
1575
  case "cancel":
1533
1576
  {
1534
1577
  const n = i ? ` ${picocolors.strikethrough(picocolors.dim(i))}` : "";
1535
- return `${r}${picocolors.gray(dist_u)}${n}${i ? `
1536
- ${picocolors.gray(dist_u)}` : ""}`;
1578
+ return `${r}${picocolors.gray(dist_c)}${n}${i ? `
1579
+ ${picocolors.gray(dist_c)}` : ""}`;
1537
1580
  }
1538
1581
  default:
1539
- return `${r}${picocolors.cyan(dist_u)} ${s}
1540
- ${picocolors.cyan(dist_)}
1582
+ return `${r}${picocolors.cyan(dist_c)} ${s}
1583
+ ${picocolors.cyan(dist_b)}
1541
1584
  `;
1542
1585
  }
1543
1586
  }
1544
- }).prompt(), Nt = (e)=>{
1587
+ }).prompt(), dist_Wt = (e)=>{
1545
1588
  const r = e.validate;
1546
- return Oe({
1589
+ return ke({
1547
1590
  ...e,
1548
1591
  initialUserInput: e.initialValue ?? e.root ?? process.cwd(),
1549
1592
  maxItems: 5,
@@ -1559,11 +1602,11 @@ ${picocolors.cyan(dist_)}
1559
1602
  try {
1560
1603
  let i;
1561
1604
  return (0, external_node_fs_.existsSync)(s) ? (0, external_node_fs_.lstatSync)(s).isDirectory() ? i = s : i = (0, external_node_path_.dirname)(s) : i = (0, external_node_path_.dirname)(s), (0, external_node_fs_.readdirSync)(i).map((n)=>{
1562
- const o = (0, external_node_path_.join)(i, n), c = (0, external_node_fs_.lstatSync)(o);
1605
+ const o = (0, external_node_path_.join)(i, n), u = (0, external_node_fs_.lstatSync)(o);
1563
1606
  return {
1564
1607
  name: n,
1565
1608
  path: o,
1566
- isDirectory: c.isDirectory()
1609
+ isDirectory: u.isDirectory()
1567
1610
  };
1568
1611
  }).filter(({ path: n, isDirectory: o })=>n.startsWith(s) && (e.directory || !o)).map((n)=>({
1569
1612
  value: n.path
@@ -1573,7 +1616,7 @@ ${picocolors.cyan(dist_)}
1573
1616
  }
1574
1617
  }
1575
1618
  });
1576
- }, fe = ({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: o = dist_q ? [
1619
+ }, Fe = ({ indicator: e = "dots", onCancel: r, output: s = process.stdout, cancelMessage: i, errorMessage: n, frames: o = dist_J ? [
1577
1620
  "\u25D2",
1578
1621
  "\u25D0",
1579
1622
  "\u25D3",
@@ -1583,79 +1626,80 @@ ${picocolors.cyan(dist_)}
1583
1626
  "o",
1584
1627
  "O",
1585
1628
  "0"
1586
- ], delay: c = dist_q ? 80 : 120, signal: l } = {})=>{
1587
- const a = se();
1588
- let h, g, F = !1, y = !1, m = "", p, $ = performance.now();
1589
- const d = bt(s), f = (S)=>{
1590
- const D = S > 1 ? n ?? dist_C.messages.error : i ?? dist_C.messages.cancel;
1591
- y = 1 === S, F && (N(D, S), y && "function" == typeof r && r());
1592
- }, E = ()=>f(2), v = ()=>f(1), w = ()=>{
1593
- process.on("uncaughtExceptionMonitor", E), process.on("unhandledRejection", E), process.on("SIGINT", v), process.on("SIGTERM", v), process.on("exit", f), l && l.addEventListener("abort", v);
1629
+ ], delay: u = dist_J ? 80 : 120, signal: l } = {})=>{
1630
+ const a = re();
1631
+ let m, E, y = !1, F = !1, p = "", h, d = performance.now();
1632
+ const $ = Ct(s), g = (I)=>{
1633
+ const T = I > 1 ? n ?? dist_C.messages.error : i ?? dist_C.messages.cancel;
1634
+ F = 1 === I, y && (D(T, I), F && "function" == typeof r && r());
1635
+ }, f = ()=>g(2), v = ()=>g(1), w = ()=>{
1636
+ process.on("uncaughtExceptionMonitor", f), process.on("unhandledRejection", f), process.on("SIGINT", v), process.on("SIGTERM", v), process.on("exit", g), l && l.addEventListener("abort", v);
1594
1637
  }, B = ()=>{
1595
- process.removeListener("uncaughtExceptionMonitor", E), process.removeListener("unhandledRejection", E), process.removeListener("SIGINT", v), process.removeListener("SIGTERM", v), process.removeListener("exit", f), l && l.removeEventListener("abort", v);
1638
+ process.removeListener("uncaughtExceptionMonitor", f), process.removeListener("unhandledRejection", f), process.removeListener("SIGINT", v), process.removeListener("SIGTERM", v), process.removeListener("exit", g), l && l.removeEventListener("abort", v);
1596
1639
  }, x = ()=>{
1597
- if (void 0 === p) return;
1640
+ if (void 0 === h) return;
1598
1641
  a && s.write(`
1599
1642
  `);
1600
- const S = Fe(p, d, {
1643
+ const I = dist_k(h, $, {
1601
1644
  hard: !0,
1602
1645
  trim: !1
1603
1646
  }).split(`
1604
1647
  `);
1605
- S.length > 1 && s.write(src.cursor.up(S.length - 1)), s.write(src.cursor.to(0)), s.write(src.erase.down());
1606
- }, A = (S)=>S.replace(/\.+$/, ""), C = (S)=>{
1607
- const D = (performance.now() - S) / 1e3, R = Math.floor(D / 60), j = Math.floor(D % 60);
1608
- return R > 0 ? `[${R}m ${j}s]` : `[${j}s]`;
1609
- }, O = (S = "")=>{
1610
- F = !0, h = Ct({
1648
+ I.length > 1 && s.write(src.cursor.up(I.length - 1)), s.write(src.cursor.to(0)), s.write(src.erase.down());
1649
+ }, A = (I)=>I.replace(/\.+$/, ""), C = (I)=>{
1650
+ const T = (performance.now() - I) / 1e3, R = Math.floor(T / 60), V = Math.floor(T % 60);
1651
+ return R > 0 ? `[${R}m ${V}s]` : `[${V}s]`;
1652
+ }, _ = (I = "")=>{
1653
+ y = !0, m = _t({
1611
1654
  output: s
1612
- }), m = A(S), $ = performance.now(), s.write(`${picocolors.gray(dist_u)}
1655
+ }), p = A(I), d = performance.now(), s.write(`${picocolors.gray(dist_c)}
1613
1656
  `);
1614
- let D = 0, R = 0;
1615
- w(), g = setInterval(()=>{
1616
- if (a && m === p) return;
1617
- x(), p = m;
1618
- const j = picocolors.magenta(o[D]);
1619
- let K;
1620
- if (a) K = `${j} ${m}...`;
1621
- else if ("timer" === e) K = `${j} ${m} ${C($)}`;
1657
+ let T = 0, R = 0;
1658
+ w(), E = setInterval(()=>{
1659
+ if (a && p === h) return;
1660
+ x(), h = p;
1661
+ const V = picocolors.magenta(o[T]);
1662
+ let q;
1663
+ if (a) q = `${V} ${p}...`;
1664
+ else if ("timer" === e) q = `${V} ${p} ${C(d)}`;
1622
1665
  else {
1623
1666
  const qe = ".".repeat(Math.floor(R)).slice(0, 3);
1624
- K = `${j} ${m}${qe}`;
1667
+ q = `${V} ${p}${qe}`;
1625
1668
  }
1626
- const Ke = Fe(K, d, {
1669
+ const Ke = dist_k(q, $, {
1627
1670
  hard: !0,
1628
1671
  trim: !1
1629
1672
  });
1630
- s.write(Ke), D = D + 1 < o.length ? D + 1 : 0, R = R < 4 ? R + .125 : 0;
1631
- }, c);
1632
- }, N = (S = "", D = 0)=>{
1633
- F = !1, clearInterval(g), x();
1634
- const R = 0 === D ? picocolors.green(dist_L) : 1 === D ? picocolors.red(re) : picocolors.red(ie);
1635
- m = S ?? m, "timer" === e ? s.write(`${R} ${m} ${C($)}
1636
- `) : s.write(`${R} ${m}
1637
- `), B(), h();
1673
+ s.write(Ke), T = T + 1 < o.length ? T + 1 : 0, R = R < 4 ? R + .125 : 0;
1674
+ }, u);
1675
+ }, D = (I = "", T = 0)=>{
1676
+ if (!y) return;
1677
+ y = !1, clearInterval(E), x();
1678
+ const R = 0 === T ? picocolors.green(dist_W) : 1 === T ? picocolors.red(ie) : picocolors.red(ne);
1679
+ p = I ?? p, "timer" === e ? s.write(`${R} ${p} ${C(d)}
1680
+ `) : s.write(`${R} ${p}
1681
+ `), B(), m();
1638
1682
  };
1639
1683
  return {
1640
- start: O,
1641
- stop: N,
1642
- message: (S = "")=>{
1643
- m = A(S ?? m);
1684
+ start: _,
1685
+ stop: D,
1686
+ message: (I = "")=>{
1687
+ p = A(I ?? p);
1644
1688
  },
1645
1689
  get isCancelled () {
1646
- return y;
1690
+ return F;
1647
1691
  }
1648
1692
  };
1649
1693
  }, He = {
1650
- light: I("\u2500", "-"),
1651
- heavy: I("\u2501", "="),
1652
- block: I("\u2588", "#")
1694
+ light: dist_S("\u2500", "-"),
1695
+ heavy: dist_S("\u2501", "="),
1696
+ block: dist_S("\u2588", "#")
1653
1697
  };
1654
- function dist_Lt({ style: e = "heavy", max: r = 100, size: s = 40, ...i } = {}) {
1655
- const n = fe(i);
1656
- let o = 0, c = "";
1657
- const l = Math.max(1, r), a = Math.max(1, s), h = (m)=>{
1658
- switch(m){
1698
+ function Pt({ style: e = "heavy", max: r = 100, size: s = 40, ...i } = {}) {
1699
+ const n = Fe(i);
1700
+ let o = 0, u = "";
1701
+ const l = Math.max(1, r), a = Math.max(1, s), m = (p)=>{
1702
+ switch(p){
1659
1703
  case "initial":
1660
1704
  case "active":
1661
1705
  return picocolors.magenta;
@@ -1667,32 +1711,34 @@ ${picocolors.cyan(dist_)}
1667
1711
  default:
1668
1712
  return picocolors.magenta;
1669
1713
  }
1670
- }, g = (m, p)=>{
1671
- const $ = Math.floor(o / l * a);
1672
- return `${h(m)(He[e].repeat($))}${picocolors.dim(He[e].repeat(a - $))} ${p}`;
1673
- }, F = (m = "")=>(c = m, n.start(g("initial", m))), y = (m = 1, p)=>{
1674
- o = Math.min(l, m + o), n.message(g("active", p ?? c)), c = p ?? c;
1714
+ }, E = (p, h)=>{
1715
+ const d = Math.floor(o / l * a);
1716
+ return `${m(p)(He[e].repeat(d))}${picocolors.dim(He[e].repeat(a - d))} ${h}`;
1717
+ }, y = (p = "")=>{
1718
+ u = p, n.start(E("initial", p));
1719
+ }, F = (p = 1, h)=>{
1720
+ o = Math.min(l, p + o), n.message(E("active", h ?? u)), u = h ?? u;
1675
1721
  };
1676
1722
  return {
1677
- start: F,
1723
+ start: y,
1678
1724
  stop: n.stop,
1679
- advance: y,
1725
+ advance: F,
1680
1726
  isCancelled: n.isCancelled,
1681
- message: (m)=>y(0, m)
1727
+ message: (p)=>F(0, p)
1682
1728
  };
1683
1729
  }
1684
- const dist_Wt = (e)=>{
1730
+ const jt = (e)=>{
1685
1731
  const r = (s, i)=>{
1686
1732
  const n = s.label ?? String(s.value);
1687
1733
  switch(i){
1688
1734
  case "selected":
1689
1735
  return `${picocolors.dim(n)}`;
1690
1736
  case "active":
1691
- return `${picocolors.green(dist_G)} ${n}${s.hint ? ` ${picocolors.dim(`(${s.hint})`)}` : ""}`;
1737
+ return `${picocolors.green(dist_U)} ${n}${s.hint ? ` ${picocolors.dim(`(${s.hint})`)}` : ""}`;
1692
1738
  case "cancelled":
1693
1739
  return `${picocolors.strikethrough(picocolors.dim(n))}`;
1694
1740
  default:
1695
- return `${picocolors.dim(H)} ${picocolors.dim(n)}`;
1741
+ return `${picocolors.dim(dist_K)} ${picocolors.dim(n)}`;
1696
1742
  }
1697
1743
  };
1698
1744
  return new Mt({
@@ -1702,30 +1748,30 @@ ${picocolors.cyan(dist_)}
1702
1748
  output: e.output,
1703
1749
  initialValue: e.initialValue,
1704
1750
  render () {
1705
- const s = `${picocolors.gray(dist_u)}
1706
- ${dist_M(this.state)} ${e.message}
1751
+ const s = `${picocolors.gray(dist_c)}
1752
+ ${dist_L(this.state)} ${e.message}
1707
1753
  `;
1708
1754
  switch(this.state){
1709
1755
  case "submit":
1710
- return `${s}${picocolors.gray(dist_u)} ${r(this.options[this.cursor], "selected")}`;
1756
+ return `${s}${picocolors.gray(dist_c)} ${r(this.options[this.cursor], "selected")}`;
1711
1757
  case "cancel":
1712
- return `${s}${picocolors.gray(dist_u)} ${r(this.options[this.cursor], "cancelled")}
1713
- ${picocolors.gray(dist_u)}`;
1758
+ return `${s}${picocolors.gray(dist_c)} ${r(this.options[this.cursor], "cancelled")}
1759
+ ${picocolors.gray(dist_c)}`;
1714
1760
  default:
1715
- return `${s}${picocolors.cyan(dist_u)} ${dist_k({
1761
+ return `${s}${picocolors.cyan(dist_c)} ${dist_G({
1716
1762
  output: e.output,
1717
1763
  cursor: this.cursor,
1718
1764
  options: this.options,
1719
1765
  maxItems: e.maxItems,
1720
1766
  style: (i, n)=>r(i, n ? "active" : "inactive")
1721
1767
  }).join(`
1722
- ${picocolors.cyan(dist_u)} `)}
1723
- ${picocolors.cyan(dist_)}
1768
+ ${picocolors.cyan(dist_c)} `)}
1769
+ ${picocolors.cyan(dist_b)}
1724
1770
  `;
1725
1771
  }
1726
1772
  }
1727
1773
  }).prompt();
1728
- }, Pt = (e)=>{
1774
+ }, dist_Vt = (e)=>{
1729
1775
  const r = (s, i = "inactive")=>{
1730
1776
  const n = s.label ?? String(s.value);
1731
1777
  return "selected" === i ? `${picocolors.dim(n)}` : "cancelled" === i ? `${picocolors.strikethrough(picocolors.dim(n))}` : "active" === i ? `${picocolors.bgCyan(picocolors.gray(` ${s.value} `))} ${n} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}` : `${picocolors.gray(picocolors.bgWhite(picocolors.inverse(` ${s.value} `)))} ${n} ${s.hint ? picocolors.dim(`(${s.hint})`) : ""}`;
@@ -1737,26 +1783,26 @@ ${picocolors.cyan(dist_)}
1737
1783
  output: e.output,
1738
1784
  initialValue: e.initialValue,
1739
1785
  render () {
1740
- const s = `${picocolors.gray(dist_u)}
1741
- ${dist_M(this.state)} ${e.message}
1786
+ const s = `${picocolors.gray(dist_c)}
1787
+ ${dist_L(this.state)} ${e.message}
1742
1788
  `;
1743
1789
  switch(this.state){
1744
1790
  case "submit":
1745
- return `${s}${picocolors.gray(dist_u)} ${r(this.options.find((i)=>i.value === this.value) ?? e.options[0], "selected")}`;
1791
+ return `${s}${picocolors.gray(dist_c)} ${r(this.options.find((i)=>i.value === this.value) ?? e.options[0], "selected")}`;
1746
1792
  case "cancel":
1747
- return `${s}${picocolors.gray(dist_u)} ${r(this.options[0], "cancelled")}
1748
- ${picocolors.gray(dist_u)}`;
1793
+ return `${s}${picocolors.gray(dist_c)} ${r(this.options[0], "cancelled")}
1794
+ ${picocolors.gray(dist_c)}`;
1749
1795
  default:
1750
- return `${s}${picocolors.cyan(dist_u)} ${this.options.map((i, n)=>r(i, n === this.cursor ? "active" : "inactive")).join(`
1751
- ${picocolors.cyan(dist_u)} `)}
1752
- ${picocolors.cyan(dist_)}
1796
+ return `${s}${picocolors.cyan(dist_c)} ${this.options.map((i, n)=>r(i, n === this.cursor ? "active" : "inactive")).join(`
1797
+ ${picocolors.cyan(dist_c)} `)}
1798
+ ${picocolors.cyan(dist_b)}
1753
1799
  `;
1754
1800
  }
1755
1801
  }
1756
1802
  }).prompt();
1757
- }, Ue = `${picocolors.gray(dist_u)} `, dist_P = {
1758
- message: async (e, { symbol: r = picocolors.gray(dist_u) } = {})=>{
1759
- process.stdout.write(`${picocolors.gray(dist_u)}
1803
+ }, Ue = `${picocolors.gray(dist_c)} `, dist_j = {
1804
+ message: async (e, { symbol: r = picocolors.gray(dist_c) } = {})=>{
1805
+ process.stdout.write(`${picocolors.gray(dist_c)}
1760
1806
  ${r} `);
1761
1807
  let s = 3;
1762
1808
  for await (let i of e){
@@ -1771,36 +1817,36 @@ ${Ue}${i.trimStart()}`), s = 3 + (0, external_node_util_.stripVTControlCharacter
1771
1817
  process.stdout.write(`
1772
1818
  `);
1773
1819
  },
1774
- info: (e)=>dist_P.message(e, {
1775
- symbol: picocolors.blue(le)
1820
+ info: (e)=>dist_j.message(e, {
1821
+ symbol: picocolors.blue(ue)
1776
1822
  }),
1777
- success: (e)=>dist_P.message(e, {
1778
- symbol: picocolors.green(ue)
1823
+ success: (e)=>dist_j.message(e, {
1824
+ symbol: picocolors.green(ce)
1779
1825
  }),
1780
- step: (e)=>dist_P.message(e, {
1781
- symbol: picocolors.green(dist_L)
1826
+ step: (e)=>dist_j.message(e, {
1827
+ symbol: picocolors.green(dist_W)
1782
1828
  }),
1783
- warn: (e)=>dist_P.message(e, {
1784
- symbol: picocolors.yellow(ce)
1829
+ warn: (e)=>dist_j.message(e, {
1830
+ symbol: picocolors.yellow($e)
1785
1831
  }),
1786
- warning: (e)=>dist_P.warn(e),
1787
- error: (e)=>dist_P.message(e, {
1788
- symbol: picocolors.red($e)
1832
+ warning: (e)=>dist_j.warn(e),
1833
+ error: (e)=>dist_j.message(e, {
1834
+ symbol: picocolors.red(de)
1789
1835
  })
1790
- }, jt = async (e, r)=>{
1836
+ }, dist_kt = async (e, r)=>{
1791
1837
  for (const s of e){
1792
1838
  if (!1 === s.enabled) continue;
1793
- const i = fe(r);
1839
+ const i = Fe(r);
1794
1840
  i.start(s.title);
1795
1841
  const n = await s.task(i.message);
1796
1842
  i.stop(n || s.title);
1797
1843
  }
1798
- }, dist_Vt = (e)=>{
1799
- const r = e.output ?? process.stdout, s = bt(r), i = picocolors.gray(dist_u), n = e.spacing ?? 1, o = 3, c = !0 === e.retainLog, l = !se() && Se(r);
1844
+ }, Gt = (e)=>{
1845
+ const r = e.output ?? process.stdout, s = Ct(r), i = picocolors.gray(dist_c), n = e.spacing ?? 1, o = 3, u = !0 === e.retainLog, l = !re() && Se(r);
1800
1846
  r.write(`${i}
1801
- `), r.write(`${picocolors.green(dist_L)} ${e.title}
1847
+ `), r.write(`${picocolors.green(dist_W)} ${e.title}
1802
1848
  `);
1803
- for(let d = 0; d < n; d++)r.write(`${i}
1849
+ for(let $ = 0; $ < n; $++)r.write(`${i}
1804
1850
  `);
1805
1851
  const a = [
1806
1852
  {
@@ -1808,115 +1854,115 @@ ${Ue}${i.trimStart()}`), s = 3 + (0, external_node_util_.stripVTControlCharacter
1808
1854
  full: ""
1809
1855
  }
1810
1856
  ];
1811
- let h = !1;
1812
- const g = (d)=>{
1857
+ let m = !1;
1858
+ const E = ($)=>{
1813
1859
  if (0 === a.length) return;
1814
- let f = 0;
1815
- d && (f += n + 2);
1816
- for (const E of a){
1817
- const { value: v, result: w } = E;
1860
+ let g = 0;
1861
+ $ && (g += n + 2);
1862
+ for (const f of a){
1863
+ const { value: v, result: w } = f;
1818
1864
  let B = w?.message ?? v;
1819
1865
  if (0 === B.length) continue;
1820
- void 0 === w && void 0 !== E.header && "" !== E.header && (B += `
1821
- ${E.header}`);
1866
+ void 0 === w && void 0 !== f.header && "" !== f.header && (B += `
1867
+ ${f.header}`);
1822
1868
  const x = B.split(`
1823
1869
  `).reduce((A, C)=>"" === C ? A + 1 : A + Math.ceil((C.length + o) / s), 0);
1824
- f += x;
1870
+ g += x;
1825
1871
  }
1826
- f > 0 && (f += 1, r.write(src.erase.lines(f)));
1827
- }, F = (d, f, E)=>{
1828
- const v = E ? `${d.full}
1829
- ${d.value}` : d.value;
1830
- void 0 !== d.header && "" !== d.header && dist_b.message(d.header.split(`
1872
+ g > 0 && (g += 1, r.write(src.erase.lines(g)));
1873
+ }, y = ($, g, f)=>{
1874
+ const v = f ? `${$.full}
1875
+ ${$.value}` : $.value;
1876
+ void 0 !== $.header && "" !== $.header && dist_O.message($.header.split(`
1831
1877
  `).map(picocolors.bold), {
1832
1878
  output: r,
1833
1879
  secondarySymbol: i,
1834
1880
  symbol: i,
1835
1881
  spacing: 0
1836
- }), dist_b.message(v.split(`
1882
+ }), dist_O.message(v.split(`
1837
1883
  `).map(picocolors.dim), {
1838
1884
  output: r,
1839
1885
  secondarySymbol: i,
1840
1886
  symbol: i,
1841
- spacing: f ?? n
1887
+ spacing: g ?? n
1842
1888
  });
1843
- }, y = ()=>{
1844
- for (const d of a){
1845
- const { header: f, value: E, full: v } = d;
1846
- (void 0 === f || 0 === f.length) && 0 === E.length || F(d, void 0, !0 === c && v.length > 0);
1889
+ }, F = ()=>{
1890
+ for (const $ of a){
1891
+ const { header: g, value: f, full: v } = $;
1892
+ (void 0 === g || 0 === g.length) && 0 === f.length || y($, void 0, !0 === u && v.length > 0);
1847
1893
  }
1848
- }, m = (d, f, E)=>{
1849
- if (g(!1), E?.raw === !0 && h || "" === d.value || (d.value += `
1850
- `), d.value += f, h = E?.raw === !0, void 0 !== e.limit) {
1851
- const v = d.value.split(`
1894
+ }, p = ($, g, f)=>{
1895
+ if (E(!1), f?.raw === !0 && m || "" === $.value || ($.value += `
1896
+ `), $.value += g, m = f?.raw === !0, void 0 !== e.limit) {
1897
+ const v = $.value.split(`
1852
1898
  `), w = v.length - e.limit;
1853
1899
  if (w > 0) {
1854
1900
  const B = v.splice(0, w);
1855
- c && (d.full += ("" === d.full ? "" : `
1901
+ u && ($.full += ("" === $.full ? "" : `
1856
1902
  `) + B.join(`
1857
1903
  `));
1858
1904
  }
1859
- d.value = v.join(`
1905
+ $.value = v.join(`
1860
1906
  `);
1861
1907
  }
1862
- l && p();
1863
- }, p = ()=>{
1864
- for (const d of a)d.result ? "error" === d.result.status ? dist_b.error(d.result.message, {
1908
+ l && h();
1909
+ }, h = ()=>{
1910
+ for (const $ of a)$.result ? "error" === $.result.status ? dist_O.error($.result.message, {
1865
1911
  output: r,
1866
1912
  secondarySymbol: i,
1867
1913
  spacing: 0
1868
- }) : dist_b.success(d.result.message, {
1914
+ }) : dist_O.success($.result.message, {
1869
1915
  output: r,
1870
1916
  secondarySymbol: i,
1871
1917
  spacing: 0
1872
- }) : "" !== d.value && F(d, 0);
1873
- }, $ = (d, f)=>{
1874
- g(!1), d.result = f, l && p();
1918
+ }) : "" !== $.value && y($, 0);
1919
+ }, d = ($, g)=>{
1920
+ E(!1), $.result = g, l && h();
1875
1921
  };
1876
1922
  return {
1877
- message (d, f) {
1878
- m(a[0], d, f);
1923
+ message ($, g) {
1924
+ p(a[0], $, g);
1879
1925
  },
1880
- group (d) {
1881
- const f = {
1882
- header: d,
1926
+ group ($) {
1927
+ const g = {
1928
+ header: $,
1883
1929
  value: "",
1884
1930
  full: ""
1885
1931
  };
1886
- return a.push(f), {
1887
- message (E, v) {
1888
- m(f, E, v);
1932
+ return a.push(g), {
1933
+ message (f, v) {
1934
+ p(g, f, v);
1889
1935
  },
1890
- error (E) {
1891
- $(f, {
1936
+ error (f) {
1937
+ d(g, {
1892
1938
  status: "error",
1893
- message: E
1939
+ message: f
1894
1940
  });
1895
1941
  },
1896
- success (E) {
1897
- $(f, {
1942
+ success (f) {
1943
+ d(g, {
1898
1944
  status: "success",
1899
- message: E
1945
+ message: f
1900
1946
  });
1901
1947
  }
1902
1948
  };
1903
1949
  },
1904
- error (d, f) {
1905
- g(!0), dist_b.error(d, {
1950
+ error ($, g) {
1951
+ E(!0), dist_O.error($, {
1906
1952
  output: r,
1907
1953
  secondarySymbol: i,
1908
1954
  spacing: 1
1909
- }), f?.showLog !== !1 && y(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
1955
+ }), g?.showLog !== !1 && F(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
1910
1956
  },
1911
- success (d, f) {
1912
- g(!0), dist_b.success(d, {
1957
+ success ($, g) {
1958
+ E(!0), dist_O.success($, {
1913
1959
  output: r,
1914
1960
  secondarySymbol: i,
1915
1961
  spacing: 1
1916
- }), f?.showLog === !0 && y(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
1962
+ }), g?.showLog === !0 && F(), a.splice(1, a.length - 1), a[0].value = "", a[0].full = "";
1917
1963
  }
1918
1964
  };
1919
- }, dist_kt = (e)=>new Wt({
1965
+ }, Ht = (e)=>new Wt({
1920
1966
  validate: e.validate,
1921
1967
  placeholder: e.placeholder,
1922
1968
  defaultValue: e.defaultValue,
@@ -1925,32 +1971,32 @@ ${d.value}` : d.value;
1925
1971
  signal: e.signal,
1926
1972
  input: e.input,
1927
1973
  render () {
1928
- const r = `${picocolors.gray(dist_u)}
1929
- ${dist_M(this.state)} ${e.message}
1974
+ const r = `${picocolors.gray(dist_c)}
1975
+ ${dist_L(this.state)} ${e.message}
1930
1976
  `, s = e.placeholder ? picocolors.inverse(e.placeholder[0]) + picocolors.dim(e.placeholder.slice(1)) : picocolors.inverse(picocolors.hidden("_")), i = this.userInput ? this.userInputWithCursor : s, n = this.value ?? "";
1931
1977
  switch(this.state){
1932
1978
  case "error":
1933
1979
  {
1934
1980
  const o = this.error ? ` ${picocolors.yellow(this.error)}` : "";
1935
1981
  return `${r.trim()}
1936
- ${picocolors.yellow(dist_u)} ${i}
1937
- ${picocolors.yellow(dist_)}${o}
1982
+ ${picocolors.yellow(dist_c)} ${i}
1983
+ ${picocolors.yellow(dist_b)}${o}
1938
1984
  `;
1939
1985
  }
1940
1986
  case "submit":
1941
1987
  {
1942
1988
  const o = n ? ` ${picocolors.dim(n)}` : "";
1943
- return `${r}${picocolors.gray(dist_u)}${o}`;
1989
+ return `${r}${picocolors.gray(dist_c)}${o}`;
1944
1990
  }
1945
1991
  case "cancel":
1946
1992
  {
1947
1993
  const o = n ? ` ${picocolors.strikethrough(picocolors.dim(n))}` : "";
1948
- return `${r}${picocolors.gray(dist_u)}${o}${n.trim() ? `
1949
- ${picocolors.gray(dist_u)}` : ""}`;
1994
+ return `${r}${picocolors.gray(dist_c)}${o}${n.trim() ? `
1995
+ ${picocolors.gray(dist_c)}` : ""}`;
1950
1996
  }
1951
1997
  default:
1952
- return `${r}${picocolors.cyan(dist_u)} ${i}
1953
- ${picocolors.cyan(dist_)}
1998
+ return `${r}${picocolors.cyan(dist_c)} ${i}
1999
+ ${picocolors.cyan(dist_b)}
1954
2000
  `;
1955
2001
  }
1956
2002
  }