create-bite 1.0.3

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.
package/LICENSE ADDED
@@ -0,0 +1,541 @@
1
+ # create-bite license
2
+ create-bite is released under the MIT license:
3
+
4
+ MIT License
5
+
6
+ Copyright (c) 2019-present, VoidZero Inc. and Vite contributors
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software are
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+
26
+ # License of the files in the directories starting with "template-" in create-vite
27
+ The files in the directories starting with "template-" in create-vite and files
28
+ generated from those files are licensed under the CC0 1.0 Universal license:
29
+
30
+ CC0 1.0 Universal
31
+
32
+ Statement of Purpose
33
+
34
+ The laws of most jurisdictions throughout the world automatically confer
35
+ exclusive Copyright and Related Rights (defined below) upon the creator and
36
+ subsequent owner(s) (each and all, an "owner") of an original work of
37
+ authorship and/or a database (each, a "Work").
38
+
39
+ Certain owners wish to permanently relinquish those rights to a Work for the
40
+ purpose of contributing to a commons of creative, cultural and scientific
41
+ works ("Commons") that the public can reliably and without fear of later
42
+ claims of infringement build upon, modify, incorporate in other works, reuse
43
+ and redistribute as freely as possible in any form whatsoever and for any
44
+ purposes, including without limitation commercial purposes. These owners may
45
+ contribute to the Commons to promote the ideal of a free culture and the
46
+ further production of creative, cultural and scientific works, or to gain
47
+ reputation or greater distribution for their Work in part through the use and
48
+ efforts of others.
49
+
50
+ For these and/or other purposes and motivations, and without any expectation
51
+ of additional consideration or compensation, the person associating CC0 with a
52
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
53
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
54
+ and publicly distribute the Work under its terms, with knowledge of his or her
55
+ Copyright and Related Rights in the Work and the meaning and intended legal
56
+ effect of CC0 on those rights.
57
+
58
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
59
+ protected by copyright and related or neighboring rights ("Copyright and
60
+ Related Rights"). Copyright and Related Rights include, but are not limited
61
+ to, the following:
62
+
63
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
64
+ and translate a Work;
65
+
66
+ ii. moral rights retained by the original author(s) and/or performer(s);
67
+
68
+ iii. publicity and privacy rights pertaining to a person's image or likeness
69
+ depicted in a Work;
70
+
71
+ iv. rights protecting against unfair competition in regards to a Work,
72
+ subject to the limitations in paragraph 4(a), below;
73
+
74
+ v. rights protecting the extraction, dissemination, use and reuse of data in
75
+ a Work;
76
+
77
+ vi. database rights (such as those arising under Directive 96/9/EC of the
78
+ European Parliament and of the Council of 11 March 1996 on the legal
79
+ protection of databases, and under any national implementation thereof,
80
+ including any amended or successor version of such directive); and
81
+
82
+ vii. other similar, equivalent or corresponding rights throughout the world
83
+ based on applicable law or treaty, and any national implementations thereof.
84
+
85
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
86
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
87
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
88
+ and Related Rights and associated claims and causes of action, whether now
89
+ known or unknown (including existing as well as future claims and causes of
90
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
91
+ duration provided by applicable law or treaty (including future time
92
+ extensions), (iii) in any current or future medium and for any number of
93
+ copies, and (iv) for any purpose whatsoever, including without limitation
94
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
95
+ the Waiver for the benefit of each member of the public at large and to the
96
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
97
+ shall not be subject to revocation, rescission, cancellation, termination, or
98
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
99
+ by the public as contemplated by Affirmer's express Statement of Purpose.
100
+
101
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
102
+ judged legally invalid or ineffective under applicable law, then the Waiver
103
+ shall be preserved to the maximum extent permitted taking into account
104
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
105
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
106
+ non transferable, non sublicensable, non exclusive, irrevocable and
107
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
108
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
109
+ provided by applicable law or treaty (including future time extensions), (iii)
110
+ in any current or future medium and for any number of copies, and (iv) for any
111
+ purpose whatsoever, including without limitation commercial, advertising or
112
+ promotional purposes (the "License"). The License shall be deemed effective as
113
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
114
+ License for any reason be judged legally invalid or ineffective under
115
+ applicable law, such partial invalidity or ineffectiveness shall not
116
+ invalidate the remainder of the License, and in such case Affirmer hereby
117
+ affirms that he or she will not (i) exercise any of his or her remaining
118
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
119
+ and causes of action with respect to the Work, in either case contrary to
120
+ Affirmer's express Statement of Purpose.
121
+
122
+ 4. Limitations and Disclaimers.
123
+
124
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
125
+ surrendered, licensed or otherwise affected by this document.
126
+
127
+ b. Affirmer offers the Work as-is and makes no representations or warranties
128
+ of any kind concerning the Work, express, implied, statutory or otherwise,
129
+ including without limitation warranties of title, merchantability, fitness
130
+ for a particular purpose, non infringement, or the absence of latent or
131
+ other defects, accuracy, or the present or absence of errors, whether or not
132
+ discoverable, all to the greatest extent permissible under applicable law.
133
+
134
+ c. Affirmer disclaims responsibility for clearing rights of other persons
135
+ that may apply to the Work or any use thereof, including without limitation
136
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
137
+ disclaims responsibility for obtaining any necessary consents, permissions
138
+ or other rights required for any use of the Work.
139
+
140
+ d. Affirmer understands and acknowledges that Creative Commons is not a
141
+ party to this document and has no duty or obligation with respect to this
142
+ CC0 or use of the Work.
143
+
144
+ For more information, please see
145
+ <http://creativecommons.org/publicdomain/zero/1.0/>
146
+
147
+ # Licenses of bundled dependencies
148
+ The published create-vite artifact additionally contains code with the following licenses:
149
+ Apache-2.0, ISC, MIT
150
+
151
+ # Bundled dependencies:
152
+ ## @clack/core, @clack/prompts
153
+ License: MIT
154
+ By: Nate Moore
155
+ Repositories: https://github.com/bombshell-dev/clack, https://github.com/bombshell-dev/clack
156
+
157
+ > MIT License
158
+ >
159
+ > Copyright (c) Nate Moore
160
+ >
161
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
162
+ >
163
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
164
+ >
165
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
166
+
167
+ ---------------------------------------
168
+
169
+ ## @vercel/detect-agent
170
+ License: Apache-2.0
171
+ By: Vercel
172
+ Repository: https://github.com/vercel/vercel
173
+
174
+ > Apache License
175
+ > Version 2.0, January 2004
176
+ > http://www.apache.org/licenses/
177
+ >
178
+ > TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
179
+ >
180
+ > 1. Definitions.
181
+ >
182
+ > "License" shall mean the terms and conditions for use, reproduction,
183
+ > and distribution as defined by Sections 1 through 9 of this document.
184
+ >
185
+ > "Licensor" shall mean the copyright owner or entity authorized by
186
+ > the copyright owner that is granting the License.
187
+ >
188
+ > "Legal Entity" shall mean the union of the acting entity and all
189
+ > other entities that control, are controlled by, or are under common
190
+ > control with that entity. For the purposes of this definition,
191
+ > "control" means (i) the power, direct or indirect, to cause the
192
+ > direction or management of such entity, whether by contract or
193
+ > otherwise, or (ii) ownership of fifty percent (50%) or more of the
194
+ > outstanding shares, or (iii) beneficial ownership of such entity.
195
+ >
196
+ > "You" (or "Your") shall mean an individual or Legal Entity
197
+ > exercising permissions granted by this License.
198
+ >
199
+ > "Source" form shall mean the preferred form for making modifications,
200
+ > including but not limited to software source code, documentation
201
+ > source, and configuration files.
202
+ >
203
+ > "Object" form shall mean any form resulting from mechanical
204
+ > transformation or translation of a Source form, including but
205
+ > not limited to compiled object code, generated documentation,
206
+ > and conversions to other media types.
207
+ >
208
+ > "Work" shall mean the work of authorship, whether in Source or
209
+ > Object form, made available under the License, as indicated by a
210
+ > copyright notice that is included in or attached to the work
211
+ > (an example is provided in the Appendix below).
212
+ >
213
+ > "Derivative Works" shall mean any work, whether in Source or Object
214
+ > form, that is based on (or derived from) the Work and for which the
215
+ > editorial revisions, annotations, elaborations, or other modifications
216
+ > represent, as a whole, an original work of authorship. For the purposes
217
+ > of this License, Derivative Works shall not include works that remain
218
+ > separable from, or merely link (or bind by name) to the interfaces of,
219
+ > the Work and Derivative Works thereof.
220
+ >
221
+ > "Contribution" shall mean any work of authorship, including
222
+ > the original version of the Work and any modifications or additions
223
+ > to that Work or Derivative Works thereof, that is intentionally
224
+ > submitted to Licensor for inclusion in the Work by the copyright owner
225
+ > or by an individual or Legal Entity authorized to submit on behalf of
226
+ > the copyright owner. For the purposes of this definition, "submitted"
227
+ > means any form of electronic, verbal, or written communication sent
228
+ > to the Licensor or its representatives, including but not limited to
229
+ > communication on electronic mailing lists, source code control systems,
230
+ > and issue tracking systems that are managed by, or on behalf of, the
231
+ > Licensor for the purpose of discussing and improving the Work, but
232
+ > excluding communication that is conspicuously marked or otherwise
233
+ > designated in writing by the copyright owner as "Not a Contribution."
234
+ >
235
+ > "Contributor" shall mean Licensor and any individual or Legal Entity
236
+ > on behalf of whom a Contribution has been received by Licensor and
237
+ > subsequently incorporated within the Work.
238
+ >
239
+ > 2. Grant of Copyright License. Subject to the terms and conditions of
240
+ > this License, each Contributor hereby grants to You a perpetual,
241
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
242
+ > copyright license to reproduce, prepare Derivative Works of,
243
+ > publicly display, publicly perform, sublicense, and distribute the
244
+ > Work and such Derivative Works in Source or Object form.
245
+ >
246
+ > 3. Grant of Patent License. Subject to the terms and conditions of
247
+ > this License, each Contributor hereby grants to You a perpetual,
248
+ > worldwide, non-exclusive, no-charge, royalty-free, irrevocable
249
+ > (except as stated in this section) patent license to make, have made,
250
+ > use, offer to sell, sell, import, and otherwise transfer the Work,
251
+ > where such license applies only to those patent claims licensable
252
+ > by such Contributor that are necessarily infringed by their
253
+ > Contribution(s) alone or by combination of their Contribution(s)
254
+ > with the Work to which such Contribution(s) was submitted. If You
255
+ > institute patent litigation against any entity (including a
256
+ > cross-claim or counterclaim in a lawsuit) alleging that the Work
257
+ > or a Contribution incorporated within the Work constitutes direct
258
+ > or contributory patent infringement, then any patent licenses
259
+ > granted to You under this License for that Work shall terminate
260
+ > as of the date such litigation is filed.
261
+ >
262
+ > 4. Redistribution. You may reproduce and distribute copies of the
263
+ > Work or Derivative Works thereof in any medium, with or without
264
+ > modifications, and in Source or Object form, provided that You
265
+ > meet the following conditions:
266
+ >
267
+ > (a) You must give any other recipients of the Work or
268
+ > Derivative Works a copy of this License; and
269
+ >
270
+ > (b) You must cause any modified files to carry prominent notices
271
+ > stating that You changed the files; and
272
+ >
273
+ > (c) You must retain, in the Source form of any Derivative Works
274
+ > that You distribute, all copyright, patent, trademark, and
275
+ > attribution notices from the Source form of the Work,
276
+ > excluding those notices that do not pertain to any part of
277
+ > the Derivative Works; and
278
+ >
279
+ > (d) If the Work includes a "NOTICE" text file as part of its
280
+ > distribution, then any Derivative Works that You distribute must
281
+ > include a readable copy of the attribution notices contained
282
+ > within such NOTICE file, excluding those notices that do not
283
+ > pertain to any part of the Derivative Works, in at least one
284
+ > of the following places: within a NOTICE text file distributed
285
+ > as part of the Derivative Works; within the Source form or
286
+ > documentation, if provided along with the Derivative Works; or,
287
+ > within a display generated by the Derivative Works, if and
288
+ > wherever such third-party notices normally appear. The contents
289
+ > of the NOTICE file are for informational purposes only and
290
+ > do not modify the License. You may add Your own attribution
291
+ > notices within Derivative Works that You distribute, alongside
292
+ > or as an addendum to the NOTICE text from the Work, provided
293
+ > that such additional attribution notices cannot be construed
294
+ > as modifying the License.
295
+ >
296
+ > You may add Your own copyright statement to Your modifications and
297
+ > may provide additional or different license terms and conditions
298
+ > for use, reproduction, or distribution of Your modifications, or
299
+ > for any such Derivative Works as a whole, provided Your use,
300
+ > reproduction, and distribution of the Work otherwise complies with
301
+ > the conditions stated in this License.
302
+ >
303
+ > 5. Submission of Contributions. Unless You explicitly state otherwise,
304
+ > any Contribution intentionally submitted for inclusion in the Work
305
+ > by You to the Licensor shall be under the terms and conditions of
306
+ > this License, without any additional terms or conditions.
307
+ > Notwithstanding the above, nothing herein shall supersede or modify
308
+ > the terms of any separate license agreement you may have executed
309
+ > with Licensor regarding such Contributions.
310
+ >
311
+ > 6. Trademarks. This License does not grant permission to use the trade
312
+ > names, trademarks, service marks, or product names of the Licensor,
313
+ > except as required for reasonable and customary use in describing the
314
+ > origin of the Work and reproducing the content of the NOTICE file.
315
+ >
316
+ > 7. Disclaimer of Warranty. Unless required by applicable law or
317
+ > agreed to in writing, Licensor provides the Work (and each
318
+ > Contributor provides its Contributions) on an "AS IS" BASIS,
319
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
320
+ > implied, including, without limitation, any warranties or conditions
321
+ > of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
322
+ > PARTICULAR PURPOSE. You are solely responsible for determining the
323
+ > appropriateness of using or redistributing the Work and assume any
324
+ > risks associated with Your exercise of permissions under this License.
325
+ >
326
+ > 8. Limitation of Liability. In no event and under no legal theory,
327
+ > whether in tort (including negligence), contract, or otherwise,
328
+ > unless required by applicable law (such as deliberate and grossly
329
+ > negligent acts) or agreed to in writing, shall any Contributor be
330
+ > liable to You for damages, including any direct, indirect, special,
331
+ > incidental, or consequential damages of any character arising as a
332
+ > result of this License or out of the use or inability to use the
333
+ > Work (including but not limited to damages for loss of goodwill,
334
+ > work stoppage, computer failure or malfunction, or any and all
335
+ > other commercial damages or losses), even if such Contributor
336
+ > has been advised of the possibility of such damages.
337
+ >
338
+ > 9. Accepting Warranty or Additional Liability. While redistributing
339
+ > the Work or Derivative Works thereof, You may choose to offer,
340
+ > and charge a fee for, acceptance of support, warranty, indemnity,
341
+ > or other liability obligations and/or rights consistent with this
342
+ > License. However, in accepting such obligations, You may act only
343
+ > on Your own behalf and on Your sole responsibility, not on behalf
344
+ > of any other Contributor, and only if You agree to indemnify,
345
+ > defend, and hold each Contributor harmless for any liability
346
+ > incurred by, or claims asserted against, such Contributor by reason
347
+ > of your accepting any such warranty or additional liability.
348
+ >
349
+ > END OF TERMS AND CONDITIONS
350
+ >
351
+ > APPENDIX: How to apply the Apache License to your work.
352
+ >
353
+ > To apply the Apache License to your work, attach the following
354
+ > boilerplate notice, with the fields enclosed by brackets "[]"
355
+ > replaced with your own identifying information. (Don't include
356
+ > the brackets!) The text should be enclosed in the appropriate
357
+ > comment syntax for the file format. We also recommend that a
358
+ > file or class name and description of purpose be included on the
359
+ > same "printed page" as the copyright notice for easier
360
+ > identification within third-party archives.
361
+ >
362
+ > Copyright 2017 Vercel, Inc.
363
+ >
364
+ > Licensed under the Apache License, Version 2.0 (the "License");
365
+ > you may not use this file except in compliance with the License.
366
+ > You may obtain a copy of the License at
367
+ >
368
+ > http://www.apache.org/licenses/LICENSE-2.0
369
+ >
370
+ > Unless required by applicable law or agreed to in writing, software
371
+ > distributed under the License is distributed on an "AS IS" BASIS,
372
+ > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
373
+ > See the License for the specific language governing permissions and
374
+ > limitations under the License.
375
+
376
+ ---------------------------------------
377
+
378
+ ## cross-spawn
379
+ License: MIT
380
+ By: André Cruz
381
+ Repository: https://github.com/moxystudio/node-cross-spawn
382
+
383
+ > The MIT License (MIT)
384
+ >
385
+ > Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
386
+ >
387
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
388
+ > of this software and associated documentation files (the "Software"), to deal
389
+ > in the Software without restriction, including without limitation the rights
390
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
391
+ > copies of the Software, and to permit persons to whom the Software is
392
+ > furnished to do so, subject to the following conditions:
393
+ >
394
+ > The above copyright notice and this permission notice shall be included in
395
+ > all copies or substantial portions of the Software.
396
+ >
397
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
398
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
399
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
400
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
401
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
402
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
403
+ > THE SOFTWARE.
404
+
405
+ ---------------------------------------
406
+
407
+ ## isexe, which
408
+ License: ISC
409
+ By: Isaac Z. Schlueter
410
+ Repositories: https://github.com/isaacs/isexe, https://github.com/isaacs/node-which
411
+
412
+ > The ISC License
413
+ >
414
+ > Copyright (c) Isaac Z. Schlueter and Contributors
415
+ >
416
+ > Permission to use, copy, modify, and/or distribute this software for any
417
+ > purpose with or without fee is hereby granted, provided that the above
418
+ > copyright notice and this permission notice appear in all copies.
419
+ >
420
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
421
+ > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
422
+ > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
423
+ > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
424
+ > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
425
+ > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
426
+ > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
427
+
428
+ ---------------------------------------
429
+
430
+ ## mri
431
+ License: MIT
432
+ By: Luke Edwards
433
+ Repository: https://github.com/lukeed/mri
434
+
435
+ > The MIT License (MIT)
436
+ >
437
+ > Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
438
+ >
439
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
440
+ > of this software and associated documentation files (the "Software"), to deal
441
+ > in the Software without restriction, including without limitation the rights
442
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
443
+ > copies of the Software, and to permit persons to whom the Software is
444
+ > furnished to do so, subject to the following conditions:
445
+ >
446
+ > The above copyright notice and this permission notice shall be included in
447
+ > all copies or substantial portions of the Software.
448
+ >
449
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
450
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
451
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
452
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
453
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
454
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
455
+ > THE SOFTWARE.
456
+
457
+ ---------------------------------------
458
+
459
+ ## path-key, shebang-regex
460
+ License: MIT
461
+ By: Sindre Sorhus
462
+ Repositories: https://github.com/sindresorhus/path-key, https://github.com/sindresorhus/shebang-regex
463
+
464
+ > MIT License
465
+ >
466
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
467
+ >
468
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
469
+ >
470
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
471
+ >
472
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
473
+
474
+ ---------------------------------------
475
+
476
+ ## picocolors
477
+ License: ISC
478
+ By: Alexey Raspopov
479
+ Repository: https://github.com/alexeyraspopov/picocolors
480
+
481
+ > ISC License
482
+ >
483
+ > Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
484
+ >
485
+ > Permission to use, copy, modify, and/or distribute this software for any
486
+ > purpose with or without fee is hereby granted, provided that the above
487
+ > copyright notice and this permission notice appear in all copies.
488
+ >
489
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
490
+ > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
491
+ > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
492
+ > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
493
+ > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
494
+ > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
495
+ > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
496
+
497
+ ---------------------------------------
498
+
499
+ ## shebang-command
500
+ License: MIT
501
+ By: Kevin Mårtensson
502
+ Repository: https://github.com/kevva/shebang-command
503
+
504
+ > MIT License
505
+ >
506
+ > Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
507
+ >
508
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
509
+ >
510
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
511
+ >
512
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
513
+
514
+ ---------------------------------------
515
+
516
+ ## sisteransi
517
+ License: MIT
518
+ By: Terkel Gjervig
519
+ Repository: https://github.com/terkelg/sisteransi
520
+
521
+ > MIT License
522
+ >
523
+ > Copyright (c) 2018 Terkel Gjervig Nielsen
524
+ >
525
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
526
+ > of this software and associated documentation files (the "Software"), to deal
527
+ > in the Software without restriction, including without limitation the rights
528
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
529
+ > copies of the Software, and to permit persons to whom the Software is
530
+ > furnished to do so, subject to the following conditions:
531
+ >
532
+ > The above copyright notice and this permission notice shall be included in all
533
+ > copies or substantial portions of the Software.
534
+ >
535
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
536
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
537
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
538
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
539
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
540
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
541
+ > SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,151 @@
1
+ # create-bite <a href="https://npmjs.com/package/create-bite"><img src="https://img.shields.io/npm/v/create-bite" alt="npm package"></a>
2
+ [![Node.js Package](https://github.com/Sumangal44/create-bite/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Sumangal44/create-bite/actions/workflows/npm-publish.yml)
3
+ > Zero-config scaffolder for modern web apps. Pick a framework + template and get a ready-to-run project in seconds.
4
+
5
+ - Interactive prompts with pretty, colorful UI
6
+ - Sensible defaults for TypeScript or JavaScript
7
+ - Quick start for React, Vue, Svelte, Solid, Preact, Lit, Qwik, and Vanilla
8
+ - Optional “immediate” install + dev server startup
9
+
10
+ ## Requirements
11
+
12
+ - Node.js: 20.19+ or 24.12+
13
+
14
+ ## Scaffolding Your First Project
15
+
16
+ > **Compatibility Note:**
17
+ > create-bite requires [Node.js](https://nodejs.org/en/) version 20.19+, or 24.12+. Some templates may require higher versions.
18
+
19
+ With npm:
20
+
21
+ ```bash
22
+ npm create bite@latest
23
+ ```
24
+
25
+ With yarn:
26
+
27
+ ```bash
28
+ yarn create bite
29
+ ```
30
+
31
+ With pnpm:
32
+
33
+ ```bash
34
+ pnpm create bite
35
+ ```
36
+
37
+ With Bun:
38
+
39
+ ```bash
40
+ bun create bite
41
+ ```
42
+
43
+ With Deno:
44
+
45
+ ```bash
46
+ deno run -A npm:create-bite
47
+ ```
48
+
49
+ Then follow the prompts!
50
+
51
+ ## Non‑Interactive Examples
52
+
53
+ Skip prompts by passing options. For example, to scaffold a Vue app in `my-vue-app`:
54
+
55
+ ```bash
56
+ # npm 7+, extra double-dash is needed:
57
+ npm create bite@latest my-vue-app -- --template vue
58
+
59
+ # yarn
60
+ yarn create bite my-vue-app --template vue
61
+
62
+ # pnpm
63
+ pnpm create bite my-vue-app --template vue
64
+
65
+ # bun
66
+ bun create bite my-vue-app --template vue
67
+
68
+ # deno
69
+ deno run -A npm:create-bite my-vue-app --template vue
70
+ ```
71
+
72
+ Use `.` to scaffold into the current directory:
73
+
74
+ ```bash
75
+ npm create bite@latest . -- --template react
76
+ ```
77
+
78
+ Create into nested folders:
79
+
80
+ ```bash
81
+ npm create bite@latest packages/web -- --template svelte
82
+ ```
83
+
84
+ ## CLI Options
85
+
86
+ Run `create-bite --help` to see the full help. Abridged:
87
+
88
+ ```
89
+ Usage: create-bite [OPTION]... [DIRECTORY]
90
+
91
+ Options:
92
+ -t, --template NAME use a specific template
93
+ -i, --immediate install dependencies and start dev
94
+ --interactive / --no-interactive force interactive / non-interactive mode
95
+ ```
96
+
97
+ Additional behavior:
98
+
99
+ - Directory handling: if the target exists and is not empty, you’ll be prompted to remove files or cancel. Passing `--overwrite` skips the prompt and removes existing files.
100
+ - Immediate mode: pass `--immediate` (or `-i`) to install deps and start the dev server right away.
101
+ - Package manager: detected automatically from your environment; you can still run the generated project with any manager.
102
+
103
+ ## Available Templates
104
+
105
+ Each framework has TypeScript and JavaScript variants. TypeScript variants end with `-ts`.
106
+
107
+ - `vanilla`, `vanilla-ts`
108
+ - `vue`, `vue-ts`
109
+ - `react`, `react-ts`, `react-swc`, `react-swc-ts`, `react-compiler`, `react-compiler-ts`
110
+ - `preact`, `preact-ts`
111
+ - `lit`, `lit-ts`
112
+ - `svelte`, `svelte-ts`
113
+ - `solid`, `solid-ts`
114
+ - `qwik`, `qwik-ts`
115
+
116
+ You can use `.` for the project name to scaffold in the current directory.
117
+
118
+ ## Troubleshooting
119
+
120
+ - “This is not the tsc command you are looking for”: ensure `typescript` is installed in your devDependencies if you run `tsc` yourself. The CLI does not require `tsc` to scaffold.
121
+ - ESM/CommonJS errors in custom scripts: generated templates default to ESM in most ecosystems. If you modify tooling, align `type` in `package.json` and use appropriate imports.
122
+ - Corporate proxies / network: if dependency install is slow or blocked, use `--no-immediate` to skip the install step and run it later with your proxy configuration.
123
+
124
+ ## Contributing
125
+
126
+ Issues and PRs are welcome. See the repository: https://github.com/sumangalkaran/create-bite
127
+
128
+ ## License
129
+
130
+ MIT © Sumangal Karan
131
+
132
+ ## Releasing (Auto Publish)
133
+
134
+ This repo is configured to auto-publish to npm when you push a version tag like `v1.2.3`.
135
+
136
+ - Setup once:
137
+ - Create an npm Automation token in your npm account.
138
+ - Add it as a GitHub secret named `NPM_TOKEN` in the repository settings.
139
+ - Release steps:
140
+ - Bump version locally: `npm version patch` (or `minor`/`major`).
141
+ - Push the commit and tag: `git push && git push --tags`.
142
+ - GitHub Actions will run tests, build, and `npm publish` automatically.
143
+
144
+ Local testing before release:
145
+
146
+ ```bash
147
+ npm ci
148
+ npm test
149
+ npm run build
150
+ npm pack --dry-run
151
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,83 @@
1
+ import{createRequire as e}from"node:module";import t from"node:fs";import n from"node:path";import{fileURLToPath as r}from"node:url";import{stripVTControlCharacters as i}from"node:util";import a,{stdin as o,stdout as s}from"node:process";import*as c from"node:readline";import l from"node:readline";import{Writable as u}from"node:stream";var d=Object.create,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,h=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),v=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=m(t),a=0,o=i.length,s;a<o;a++)s=i[a],!g.call(e,s)&&s!==n&&f(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=p(t,s))||r.enumerable});return e},y=(e,t,n)=>(n=e==null?{}:d(h(e)),v(t||!e||!e.__esModule?f(n,`default`,{value:e,enumerable:!0}):n,e)),b=e(import.meta.url),x=_(((e,t)=>{t.exports=a,a.sync=o;var n=b(`fs`);function r(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function i(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:r(t,n)}function a(e,t,r){n.stat(e,function(n,a){r(n,n?!1:i(a,e,t))})}function o(e,t){return i(n.statSync(e),e,t)}})),S=_(((e,t)=>{t.exports=r,r.sync=i;var n=b(`fs`);function r(e,t,r){n.stat(e,function(e,n){r(e,e?!1:a(n,t))})}function i(e,t){return a(n.statSync(e),t)}function a(e,t){return e.isFile()&&o(e,t)}function o(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),C=_(((e,t)=>{b(`fs`);var n=process.platform===`win32`||global.TESTING_WINDOWS?x():S();t.exports=r,r.sync=i;function r(e,t,i){if(typeof t==`function`&&(i=t,t={}),!i){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,i){r(e,t||{},function(e,t){e?i(e):n(t)})})}n(e,t||{},function(e,n){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,n=!1),i(e,n)})}function i(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),ee=_(((e,t)=>{let n=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,r=b(`path`),i=n?`;`:`:`,a=C(),o=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),s=(e,t)=>{let r=t.colon||i,a=e.match(/\//)||n&&e.match(/\\/)?[``]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(r)],o=n?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=n?o.split(r):[``];return n&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:a,pathExt:s,pathExtExe:o}},c=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:i,pathExt:c,pathExtExe:l}=s(e,t),u=[],d=n=>new Promise((a,s)=>{if(n===i.length)return t.all&&u.length?a(u):s(o(e));let c=i[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=r.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,o)=>{if(r===c.length)return i(d(n+1));let s=c[r];a(e+s,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+s);else return i(e+s);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=c,c.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:i,pathExtExe:c}=s(e,t),l=[];for(let o=0;o<n.length;o++){let s=n[o],u=/^".*"$/.test(s)?s.slice(1,-1):s,d=r.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<i.length;e++){let n=f+i[e];try{if(a.sync(n,{pathExt:c}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw o(e)}})),w=_(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),te=_(((e,t)=>{let n=b(`path`),r=ee(),i=w();function a(e,t){let a=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=r.sync(e.command,{path:a[i({env:a})],pathExt:t?n.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=n.resolve(s?e.options.cwd:``,l),l}function o(e){return a(e)||a(e,!0)}t.exports=o})),ne=_(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),re=_(((e,t)=>{t.exports=/^#!(.*)/})),ie=_(((e,t)=>{let n=re();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),ae=_(((e,t)=>{let n=b(`fs`),r=ie();function i(e){let t=Buffer.alloc(150),i;try{i=n.openSync(e,`r`),n.readSync(i,t,0,150,0),n.closeSync(i)}catch{}return r(t.toString())}t.exports=i})),oe=_(((e,t)=>{let n=b(`path`),r=te(),i=ne(),a=ae(),o=process.platform===`win32`,s=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function l(e){e.file=r(e);let t=e.file&&a(e.file);return t?(e.args.unshift(e.file),e.command=t,r(e)):e.file}function u(e){if(!o)return e;let t=l(e),r=!s.test(t);if(e.options.forceShell||r){let r=c.test(t);e.command=n.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map(e=>i.argument(e,r)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function d(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:u(r)}t.exports=d})),se=_(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),ce=_(((e,t)=>{let n=b(`child_process`),r=oe(),i=se();function a(e,t,a){let o=r(e,t,a),s=n.spawn(o.command,o.args,o.options);return i.hookChildProcess(s,o),s}function o(e,t,a){let o=r(e,t,a),s=n.spawnSync(o.command,o.args,o.options);return s.error=s.error||i.verifyENOENTSync(s.status,o),s}t.exports=a,t.exports.spawn=a,t.exports.sync=o,t.exports._parse=r,t.exports._enoent=i})),le=_(((e,t)=>{function n(e){return e==null?[]:Array.isArray(e)?e:[e]}function r(e,t,n,r){var i,a=e[t],o=~r.string.indexOf(t)?n==null||n===!0?``:String(n):typeof n==`boolean`?n:~r.boolean.indexOf(t)?n===`false`?!1:n===`true`||(e._.push((i=+n,i*0==0?i:n)),!!n):(i=+n,i*0==0?i:n);e[t]=a==null?o:Array.isArray(a)?a.concat(o):[a,o]}t.exports=function(e,t){e||=[],t||={};var i,a,o,s,c,l={_:[]},u=0,d=0,f=0,p=e.length;let m=t.alias!==void 0,h=t.unknown!==void 0,g=t.default!==void 0;if(t.alias=t.alias||{},t.string=n(t.string),t.boolean=n(t.boolean),m)for(i in t.alias)for(a=t.alias[i]=n(t.alias[i]),u=0;u<a.length;u++)(t.alias[a[u]]=a.concat(i)).splice(u,1);for(u=t.boolean.length;u-- >0;)for(a=t.alias[t.boolean[u]]||[],d=a.length;d-- >0;)t.boolean.push(a[d]);for(u=t.string.length;u-- >0;)for(a=t.alias[t.string[u]]||[],d=a.length;d-- >0;)t.string.push(a[d]);if(g){for(i in t.default)if(s=typeof t.default[i],a=t.alias[i]=t.alias[i]||[],t[s]!==void 0)for(t[s].push(i),u=0;u<a.length;u++)t[s].push(a[u])}let _=h?Object.keys(t.alias):[];for(u=0;u<p;u++){if(o=e[u],o===`--`){l._=l._.concat(e.slice(++u));break}for(d=0;d<o.length&&o.charCodeAt(d)===45;d++);if(d===0)l._.push(o);else if(o.substring(d,d+3)===`no-`){if(s=o.substring(d+3),h&&!~_.indexOf(s))return t.unknown(o);l[s]=!1}else{for(f=d+1;f<o.length&&o.charCodeAt(f)!==61;f++);for(s=o.substring(d,f),c=o.substring(++f)||u+1===p||(``+e[u+1]).charCodeAt(0)===45||e[++u],a=d===2?[s]:s,f=0;f<a.length;f++){if(s=a[f],h&&!~_.indexOf(s))return t.unknown(`-`.repeat(d)+s);r(l,s,f+1<a.length||c,t)}}}if(g)for(i in t.default)l[i]===void 0&&(l[i]=t.default[i]);if(m)for(i in l)for(a=t.alias[i]||[];a.length>0;)l[a.shift()]=l[i];return l}})),ue=_(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}})),de=_(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),fe=y(le(),1),pe=y(ce(),1),T=ue(),E=y(de(),1);function me({onlyFirst:e=!1}={}){let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}const he=me();function ge(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(he,``)}function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var ve={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r==12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r==8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r==172||r==175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r==161||r==164||167<=r&&r<=168||r==170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r==198||r==208||215<=r&&r<=216||222<=r&&r<=225||r==230||232<=r&&r<=234||236<=r&&r<=237||r==240||242<=r&&r<=243||247<=r&&r<=250||r==252||r==254||r==257||r==273||r==275||r==283||294<=r&&r<=295||r==299||305<=r&&r<=307||r==312||319<=r&&r<=322||r==324||328<=r&&r<=331||r==333||338<=r&&r<=339||358<=r&&r<=359||r==363||r==462||r==464||r==466||r==468||r==470||r==472||r==474||r==476||r==593||r==609||r==708||r==711||713<=r&&r<=715||r==717||r==720||728<=r&&r<=731||r==733||r==735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r==1025||1040<=r&&r<=1103||r==1105||r==8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r==8240||8242<=r&&r<=8243||r==8245||r==8251||r==8254||r==8308||r==8319||8321<=r&&r<=8324||r==8364||r==8451||r==8453||r==8457||r==8467||r==8470||8481<=r&&r<=8482||r==8486||r==8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r==8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r==8658||r==8660||r==8679||r==8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r==8715||r==8719||r==8721||r==8725||r==8730||8733<=r&&r<=8736||r==8739||r==8741||8743<=r&&r<=8748||r==8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r==8776||r==8780||r==8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r==8853||r==8857||r==8869||r==8895||r==8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r==9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r==9711||9733<=r&&r<=9734||r==9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r==9756||r==9758||r==9792||r==9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r==9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r==9955||9960<=r&&r<=9983||r==10045||r==10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r==65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`},t.characterLength=function(e){var t=this.eastAsianWidth(e);return t==`F`||t==`W`||t==`A`?2:1};function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(e){for(var t=n(e),r=0,i=0;i<t.length;i++)r+=this.characterLength(t[i]);return r},t.slice=function(e,r,i){textLen=t.length(e),r||=0,i||=1,r<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var a=``,o=0,s=n(e),c=0;c<s.length;c++){var l=s[c],u=t.length(l);if(o>=r-(u==2?1:0))if(o+u<=i)a+=l;else break;o+=u}return a}})(ve);var ye=ve.exports;const be=_e(ye),xe=_e(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function D(e,t={}){if(typeof e!=`string`||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=ge(e),e.length===0))return 0;e=e.replace(xe(),` `);let n=t.ambiguousIsNarrow?1:2,r=0;for(let t of e){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159||e>=768&&e<=879))switch(be.eastAsianWidth(t)){case`F`:case`W`:r+=2;break;case`A`:r+=n;break;default:r+=1}}return r}const Se=(e=0)=>t=>`\x1B[${t+e}m`,Ce=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,we=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,O={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(O.modifier);const Te=Object.keys(O.color),Ee=Object.keys(O.bgColor);[...Te,...Ee];function De(){let e=new Map;for(let[t,n]of Object.entries(O)){for(let[t,r]of Object.entries(n))O[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=O[t],e.set(r[0],r[1]);Object.defineProperty(O,t,{value:n,enumerable:!1})}return Object.defineProperty(O,`codes`,{value:e,enumerable:!1}),O.color.close=`\x1B[39m`,O.bgColor.close=`\x1B[49m`,O.color.ansi=Se(),O.color.ansi256=Ce(),O.color.ansi16m=we(),O.bgColor.ansi=Se(10),O.bgColor.ansi256=Ce(10),O.bgColor.ansi16m=we(10),Object.defineProperties(O,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>O.rgbToAnsi256(...O.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>O.ansi256ToAnsi(O.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>O.ansi256ToAnsi(O.hexToAnsi256(e)),enumerable:!1}}),O}const Oe=De(),k=new Set([`\x1B`,`›`]),ke=`]8;;`,Ae=e=>`${k.values().next().value}[${e}m`,je=e=>`${k.values().next().value}${ke}${e}`,Me=e=>e.split(` `).map(e=>D(e)),Ne=(e,t,n)=>{let r=[...t],i=!1,a=!1,o=D(ge(e[e.length-1]));for(let[t,s]of r.entries()){let c=D(s);if(o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),k.has(s)&&(i=!0,a=r.slice(t+1).join(``).startsWith(ke)),i){a?s===`\x07`&&(i=!1,a=!1):s===`m`&&(i=!1);continue}o+=c,o===n&&t<r.length-1&&(e.push(``),o=0)}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Pe=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(D(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Fe=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=Me(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let e=D(s[s.length-1]);if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),Ne(s,i,t);continue}if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){Ne(s,i,t);continue}s.push(``)}if(e+o[r]>t&&n.wordWrap===!1){Ne(s,i,t);continue}s[s.length-1]+=i}n.trim!==!1&&(s=s.map(e=>Pe(e)));let c=[...s.join(`
2
+ `)];for(let[e,t]of c.entries()){if(r+=t,k.has(t)){let{groups:t}=RegExp(`(?:\\[(?<code>\\d+)m|\\${ke}(?<uri>.*))`).exec(c.slice(e).join(``))||{groups:{}};if(t.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}let n=Oe.codes.get(Number(i));c[e+1]===`
3
+ `?(a&&(r+=je(``)),i&&n&&(r+=Ae(n))):t===`
4
+ `&&(i&&n&&(r+=Ae(i)),a&&(r+=je(a)))}return r};function Ie(e,t,n){return String(e).normalize().replace(/\r\n/g,`
5
+ `).split(`
6
+ `).map(e=>Fe(e,t,n)).join(`
7
+ `)}const A={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]])};function Le(e,t){if(typeof e==`string`)return A.aliases.get(e)===t;for(let n of e)if(n!==void 0&&Le(n,t))return!0;return!1}function Re(e,t){if(e===t)return;let n=e.split(`
8
+ `),r=t.split(`
9
+ `),i=[];for(let e=0;e<Math.max(n.length,r.length);e++)n[e]!==r[e]&&i.push(e);return i}globalThis.process.platform.startsWith(`win`);const j=Symbol(`clack:cancel`);function M(e){return e===j}function N(e,t){let n=e;n.isTTY&&n.setRawMode(t)}var ze=Object.defineProperty,Be=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>(Be(e,typeof t==`symbol`?t:t+``,n),n),F=class{constructor(e,t=!0){P(this,`input`),P(this,`output`),P(this,`_abortSignal`),P(this,`rl`),P(this,`opts`),P(this,`_render`),P(this,`_track`,!1),P(this,`_prevFrame`,``),P(this,`_subscribers`,new Map),P(this,`_cursor`,0),P(this,`state`,`initial`),P(this,`error`,``),P(this,`value`);let{input:n=o,output:r=s,render:i,signal:a,...c}=e;this.opts=c,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=a,this.input=n,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(j);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}let n=new u;n._write=(e,t,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,``),this._cursor=this.rl?.cursor??0,this.emit(`value`,this.value)),n()},this.input.pipe(n),this.rl=l.createInterface({input:this.input,output:n,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),l.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on(`keypress`,this.onKeypress),N(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(T.cursor.show),this.output.off(`resize`,this.render),N(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(T.cursor.show),this.output.off(`resize`,this.render),N(this.input,!1),e(j)})})}onKeypress(e,t){if(this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&A.aliases.has(t.name)&&this.emit(`cursor`,A.aliases.get(t.name)),A.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),e===` `&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit(`value`,this.opts.placeholder))),e&&this.emit(`key`,e.toLowerCase()),t?.name===`return`){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.value))}this.state!==`error`&&(this.state=`submit`)}Le([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
10
+ `),N(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=Ie(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
11
+ `).length-1;this.output.write(T.cursor.move(-999,e*-1))}render(){let e=Ie(this._render(this)??``,process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state===`initial`)this.output.write(T.cursor.hide);else{let t=Re(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){let n=t[0];this.output.write(T.cursor.move(0,n)),this.output.write(T.erase.lines(1));let r=e.split(`
12
+ `);this.output.write(r[n]),this._prevFrame=e,this.output.write(T.cursor.move(0,r.length-n-1));return}if(t&&t?.length>1){let n=t[0];this.output.write(T.cursor.move(0,n)),this.output.write(T.erase.down());let r=e.split(`
13
+ `).slice(n);this.output.write(r.join(`
14
+ `)),this._prevFrame=e;return}this.output.write(T.erase.down())}this.output.write(e),this.state===`initial`&&(this.state=`active`),this._prevFrame=e}}},Ve=class extends F{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`value`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(T.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}};Object.defineProperty,Object.defineProperty,Object.defineProperty;var He=Object.defineProperty,Ue=(e,t,n)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,We=(e,t,n)=>(Ue(e,typeof t==`symbol`?t:t+``,n),n),Ge=class extends F{constructor(e){super(e,!1),We(this,`options`),We(this,`cursor`,0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};Object.defineProperty;var Ke=class extends F{get valueWithCursor(){if(this.state===`submit`)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let e=this.value.slice(0,this.cursor),[t,...n]=this.value.slice(this.cursor);return`${e}${E.default.inverse(t)}${n.join(``)}`}get cursor(){return this._cursor}constructor(e){super(e),this.on(`finalize`,()=>{this.value||=e.defaultValue})}};function qe(){return a.platform===`win32`?!!a.env.CI||!!a.env.WT_SESSION||!!a.env.TERMINUS_SUBLIME||a.env.ConEmuTask===`{cmd::Cmder}`||a.env.TERM_PROGRAM===`Terminus-Sublime`||a.env.TERM_PROGRAM===`vscode`||a.env.TERM===`xterm-256color`||a.env.TERM===`alacritty`||a.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:a.env.TERM!==`linux`}const Je=qe(),I=(e,t)=>Je?e:t,Ye=I(`◆`,`*`),Xe=I(`■`,`x`),Ze=I(`▲`,`x`),L=I(`◇`,`o`),R=I(`│`,`|`),z=I(`└`,`—`),Qe=I(`●`,`>`),$e=I(`○`,` `),et=I(`●`,`•`),tt=I(`◆`,`*`),nt=I(`▲`,`!`),rt=I(`■`,`x`),B=e=>{switch(e){case`initial`:case`active`:return E.default.cyan(Ye);case`cancel`:return E.default.red(Xe);case`error`:return E.default.yellow(Ze);case`submit`:return E.default.green(L)}},it=e=>{let{cursor:t,options:n,style:r}=e,i=e.maxItems??1/0,a=Math.max(process.stdout.rows-4,0),o=Math.min(a,Math.max(i,5)),s=0;t>=s+o-3?s=Math.max(Math.min(t-o+3,n.length-o),0):t<s+2&&(s=Math.max(t-2,0));let c=o<n.length&&s>0,l=o<n.length&&s+o<n.length;return n.slice(s,s+o).map((e,n,i)=>{let a=n===0&&c,o=n===i.length-1&&l;return a||o?E.default.dim(`...`):r(e,n+s===t)})},at=e=>new Ke({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){let t=`${E.default.gray(R)}
15
+ ${B(this.state)} ${e.message}
16
+ `,n=e.placeholder?E.default.inverse(e.placeholder[0])+E.default.dim(e.placeholder.slice(1)):E.default.inverse(E.default.hidden(`_`)),r=this.value?this.valueWithCursor:n;switch(this.state){case`error`:return`${t.trim()}
17
+ ${E.default.yellow(R)} ${r}
18
+ ${E.default.yellow(z)} ${E.default.yellow(this.error)}
19
+ `;case`submit`:return`${t}${E.default.gray(R)} ${E.default.dim(this.value||e.placeholder)}`;case`cancel`:return`${t}${E.default.gray(R)} ${E.default.strikethrough(E.default.dim(this.value??``))}${this.value?.trim()?`
20
+ ${E.default.gray(R)}`:``}`;default:return`${t}${E.default.cyan(R)} ${r}
21
+ ${E.default.cyan(z)}
22
+ `}}}).prompt(),ot=e=>{let t=e.active??`Yes`,n=e.inactive??`No`;return new Ve({active:t,inactive:n,initialValue:e.initialValue??!0,render(){let r=`${E.default.gray(R)}
23
+ ${B(this.state)} ${e.message}
24
+ `,i=this.value?t:n;switch(this.state){case`submit`:return`${r}${E.default.gray(R)} ${E.default.dim(i)}`;case`cancel`:return`${r}${E.default.gray(R)} ${E.default.strikethrough(E.default.dim(i))}
25
+ ${E.default.gray(R)}`;default:return`${r}${E.default.cyan(R)} ${this.value?`${E.default.green(Qe)} ${t}`:`${E.default.dim($e)} ${E.default.dim(t)}`} ${E.default.dim(`/`)} ${this.value?`${E.default.dim($e)} ${E.default.dim(n)}`:`${E.default.green(Qe)} ${n}`}
26
+ ${E.default.cyan(z)}
27
+ `}}}).prompt()},V=e=>{let t=(e,t)=>{let n=e.label??String(e.value);switch(t){case`selected`:return`${E.default.dim(n)}`;case`active`:return`${E.default.green(Qe)} ${n} ${e.hint?E.default.dim(`(${e.hint})`):``}`;case`cancelled`:return`${E.default.strikethrough(E.default.dim(n))}`;default:return`${E.default.dim($e)} ${E.default.dim(n)}`}};return new Ge({options:e.options,initialValue:e.initialValue,render(){let n=`${E.default.gray(R)}
28
+ ${B(this.state)} ${e.message}
29
+ `;switch(this.state){case`submit`:return`${n}${E.default.gray(R)} ${t(this.options[this.cursor],`selected`)}`;case`cancel`:return`${n}${E.default.gray(R)} ${t(this.options[this.cursor],`cancelled`)}
30
+ ${E.default.gray(R)}`;default:return`${n}${E.default.cyan(R)} ${it({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(e,n)=>t(e,n?`active`:`inactive`)}).join(`
31
+ ${E.default.cyan(R)} `)}
32
+ ${E.default.cyan(z)}
33
+ `}}}).prompt()},st=(e=``)=>{process.stdout.write(`${E.default.gray(z)} ${E.default.red(e)}
34
+
35
+ `)},ct=(e=``)=>{process.stdout.write(`${E.default.gray(R)}
36
+ ${E.default.gray(z)} ${e}
37
+
38
+ `)},H={message:(e=``,{symbol:t=E.default.gray(R)}={})=>{let n=[`${E.default.gray(R)}`];if(e){let[r,...i]=e.split(`
39
+ `);n.push(`${t} ${r}`,...i.map(e=>`${E.default.gray(R)} ${e}`))}process.stdout.write(`${n.join(`
40
+ `)}
41
+ `)},info:e=>{H.message(e,{symbol:E.default.blue(et)})},success:e=>{H.message(e,{symbol:E.default.green(tt)})},step:e=>{H.message(e,{symbol:E.default.green(L)})},warn:e=>{H.message(e,{symbol:E.default.yellow(nt)})},warning:e=>{H.warn(e)},error:e=>{H.message(e,{symbol:E.default.red(rt)})}},lt=`${E.default.gray(R)} `,U={message:async(e,{symbol:t=E.default.gray(R)}={})=>{process.stdout.write(`${E.default.gray(R)}
42
+ ${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`
43
+ ${lt}`),t.includes(`
44
+ `)&&(n=3+i(t.slice(t.lastIndexOf(`
45
+ `))).length);let e=i(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`
46
+ ${lt}${t.trimStart()}`),n=3+i(t.trimStart()).length)}process.stdout.write(`
47
+ `)},info:e=>U.message(e,{symbol:E.default.blue(et)}),success:e=>U.message(e,{symbol:E.default.green(tt)}),step:e=>U.message(e,{symbol:E.default.green(L)}),warn:e=>U.message(e,{symbol:E.default.yellow(nt)}),warning:e=>U.warn(e),error:e=>U.message(e,{symbol:E.default.red(rt)})};var ut=_(((e,t)=>{var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!a.call(e,c)&&c!==o&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},c=e=>s(n({},`__esModule`,{value:!0}),e),l={};o(l,{KNOWN_AGENTS:()=>y,determineAgent:()=>x}),t.exports=c(l);var u=b(`node:fs/promises`),d=b(`node:fs`);let f=`cursor`,p=`cursor-cli`,m=`claude`,h=`devin`,g=`replit`,_=`gemini`,v=`codex`,y={CURSOR:f,CURSOR_CLI:p,CLAUDE:m,DEVIN:h,REPLIT:g,GEMINI:_,CODEX:v};async function x(){if(process.env.AI_AGENT){let e=process.env.AI_AGENT.trim();if(e)return{isAgent:!0,agent:{name:e}}}if(process.env.CURSOR_TRACE_ID)return{isAgent:!0,agent:{name:f}};if(process.env.CURSOR_AGENT)return{isAgent:!0,agent:{name:p}};if(process.env.GEMINI_CLI)return{isAgent:!0,agent:{name:_}};if(process.env.CODEX_SANDBOX)return{isAgent:!0,agent:{name:v}};if(process.env.CLAUDECODE||process.env.CLAUDE_CODE)return{isAgent:!0,agent:{name:m}};if(process.env.REPL_ID)return{isAgent:!0,agent:{name:g}};try{return await(0,u.access)(`/opt/.devin`,d.constants.F_OK),{isAgent:!0,agent:{name:h}}}catch{}return{isAgent:!1,agent:void 0}}}))();const{blue:W,blueBright:G,cyan:K,green:q,greenBright:dt,magenta:J,red:Y,redBright:X,reset:ft,yellow:Z}=E.default,Q=(0,fe.default)(process.argv.slice(2),{boolean:[`help`,`overwrite`,`immediate`,`rolldown`,`interactive`],alias:{h:`help`,t:`template`,i:`immediate`},string:[`template`]}),pt=process.cwd(),mt=`\
48
+ Usage: create-bite [OPTION]... [DIRECTORY]
49
+
50
+ ${E.default.dim(`Create a new bite project in JavaScript or TypeScript.`)}
51
+ ${E.default.dim(`When running in TTY, the CLI will start in interactive mode.`)}
52
+
53
+ ${E.default.bold(`Options:`)}
54
+ -t, --template NAME use a specific template
55
+ -i, --immediate install dependencies and start dev
56
+ --interactive / --no-interactive force interactive / non-interactive mode
57
+
58
+ ${E.default.bold(`Available templates:`)}
59
+ ${Z(`vanilla-ts vanilla`)}
60
+ ${q(`vue-ts vue`)}
61
+ ${K(`react-ts react`)}
62
+ ${K(`react-compiler-ts react-compiler`)}
63
+ ${K(`react-swc-ts react-swc`)}
64
+ ${J(`preact-ts preact`)}
65
+ ${X(`lit-ts lit`)}
66
+ ${Y(`svelte-ts svelte`)}
67
+ ${W(`solid-ts solid`)}
68
+ ${G(`qwik-ts qwik`)}`,ht=[{name:`vanilla`,display:`Vanilla`,color:Z,variants:[{name:`vanilla-ts`,display:`TypeScript`,color:W},{name:`vanilla`,display:`JavaScript`,color:Z}]},{name:`vue`,display:`Vue`,color:q,variants:[{name:`vue-ts`,display:`TypeScript`,color:W},{name:`vue`,display:`JavaScript`,color:Z},{name:`custom-create-vue`,display:`Official Vue Starter ↗`,color:q,customCommand:`npm create vue@latest TARGET_DIR`},{name:`custom-nuxt`,display:`Nuxt ↗`,color:dt,customCommand:`npm exec nuxi init TARGET_DIR`},{name:`custom-vike-vue`,display:`Vike ↗`,color:dt,customCommand:`npm create -- vike@latest --vue TARGET_DIR`}]},{name:`react`,display:`React`,color:K,variants:[{name:`react-ts`,display:`TypeScript`,color:W},{name:`react-compiler-ts`,display:`TypeScript + React Compiler`,color:W},{name:`react-swc-ts`,display:`TypeScript + SWC`,color:W},{name:`react`,display:`JavaScript`,color:Z},{name:`react-compiler`,display:`JavaScript + React Compiler`,color:Z},{name:`react-swc`,display:`JavaScript + SWC`,color:Z},{name:`custom-react-router`,display:`React Router v7 ↗`,color:K,customCommand:`npm create react-router@latest TARGET_DIR`},{name:`custom-tanstack-router-react`,display:`TanStack Router ↗`,color:K,customCommand:`npm create -- tsrouter-app@latest TARGET_DIR --framework React --interactive`},{name:`redwoodsdk-standard`,display:`RedwoodSDK ↗`,color:Y,customCommand:`npm create rwsdk@latest TARGET_DIR`},{name:`rsc`,display:`RSC ↗`,color:J,customCommand:`npm exec tiged vitejs/vite-plugin-react/packages/plugin-rsc/examples/starter TARGET_DIR`},{name:`custom-vike-react`,display:`Vike ↗`,color:K,customCommand:`npm create -- vike@latest --react TARGET_DIR`}]},{name:`preact`,display:`Preact`,color:J,variants:[{name:`preact-ts`,display:`TypeScript`,color:W},{name:`preact`,display:`JavaScript`,color:Z},{name:`custom-create-preact`,display:`Official Preact Starter ↗`,color:J,customCommand:`npm create preact@latest TARGET_DIR`}]},{name:`lit`,display:`Lit`,color:X,variants:[{name:`lit-ts`,display:`TypeScript`,color:W},{name:`lit`,display:`JavaScript`,color:Z}]},{name:`svelte`,display:`Svelte`,color:Y,variants:[{name:`svelte-ts`,display:`TypeScript`,color:W},{name:`svelte`,display:`JavaScript`,color:Z},{name:`custom-svelte-kit`,display:`SvelteKit ↗`,color:Y,customCommand:`npm exec sv create TARGET_DIR`}]},{name:`solid`,display:`Solid`,color:W,variants:[{name:`solid-ts`,display:`TypeScript`,color:W},{name:`solid`,display:`JavaScript`,color:Z},{name:`custom-tanstack-router-solid`,display:`TanStack Router ↗`,color:K,customCommand:`npm create -- tsrouter-app@latest TARGET_DIR --framework Solid --interactive`},{name:`custom-vike-solid`,display:`Vike ↗`,color:K,customCommand:`npm create -- vike@latest --solid TARGET_DIR`}]},{name:`ember`,display:`Ember`,color:X,variants:[{name:`ember-app-ts`,display:`TypeScript ↗`,color:G,customCommand:`npm exec -- ember-cli@latest new TARGET_DIR --typescript`},{name:`ember-app`,display:`JavaScript ↗`,color:X,customCommand:`npm exec -- ember-cli@latest new TARGET_DIR`}]},{name:`qwik`,display:`Qwik`,color:G,variants:[{name:`qwik-ts`,display:`TypeScript`,color:G},{name:`qwik`,display:`JavaScript`,color:Z},{name:`custom-qwik-city`,display:`QwikCity ↗`,color:G,customCommand:`npm create qwik@latest empty TARGET_DIR`}]},{name:`angular`,display:`Angular`,color:Y,variants:[{name:`custom-angular`,display:`Angular ↗`,color:Y,customCommand:`npm exec @angular/cli@latest new TARGET_DIR`},{name:`custom-analog`,display:`Analog ↗`,color:Z,customCommand:`npm create analog@latest TARGET_DIR`}]},{name:`marko`,display:`Marko`,color:J,variants:[{name:`marko-run`,display:`Marko Run ↗`,color:J,customCommand:`npm create -- marko@latest --name TARGET_DIR`}]},{name:`others`,display:`Others`,color:ft,variants:[{name:`create-bite-extra`,display:`Extra Bite Starters ↗`,color:ft,customCommand:`npm create bite-extra@latest TARGET_DIR`},{name:`create-electron-bite`,display:`Electron ↗`,color:ft,customCommand:`npm create electron-bite@latest TARGET_DIR`}]}],gt=ht.map(e=>e.variants.map(e=>e.name)).reduce((e,t)=>e.concat(t),[]),_t={_gitignore:`.gitignore`},vt=`bite-project`;function yt([e,...t],n){let{status:r,error:i}=pe.default.sync(e,t,n);r!=null&&r>0&&(H.error(E.default.red(`✖ ${e} ${t.join(` `)} failed with status ${r}`)),process.exit(r)),i&&(H.error(E.default.red(`\n✖ ${e} ${t.join(` `)} error!`)),console.error(i),process.exit(1))}function bt(e,t){if(process.env._VITE_TEST_CLI){H.step(E.default.yellow(`📦 Installing dependencies with ${t}... (skipped in test)`));return}H.step(E.default.yellow(`📦 Installing dependencies with ${t}...`)),yt(Ft(t),{stdio:`inherit`,cwd:e})}function xt(e,t){if(process.env._VITE_TEST_CLI){H.step(E.default.cyan(`🚀 Starting dev server... (skipped in test)`));return}H.step(E.default.cyan(`🚀 Starting dev server...`)),yt(It(t,`dev`),{stdio:`inherit`,cwd:e})}async function St(){let e=Q._[0]?Ct(String(Q._[0])):void 0,i=Q.template,a=Q.overwrite,o=Q.immediate,s=Q.interactive;if(Q.help){console.log(mt);return}let c=s??process.stdin.isTTY,{isAgent:l}=await(0,ut.determineAgent)();l&&c&&console.log(`
69
+ To create in one go, run: create-vite <DIRECTORY> --no-interactive --template <TEMPLATE>
70
+ `);let u=At(process.env.npm_config_user_agent),d=()=>st(`Operation cancelled`),f=e;if(!f)if(c){let e=await at({message:`Project name:`,defaultValue:vt,placeholder:vt,validate:e=>e.length===0||Ct(e).length>0?void 0:`Invalid project name`});if(M(e))return d();f=Ct(e)}else f=vt;if(t.existsSync(f)&&!Ot(f)){let e=a?`yes`:void 0;if(!e)if(c){let t=await V({message:(f===`.`?`Current directory`:`Target directory "${f}"`)+` is not empty. Please choose how to proceed:`,options:[{label:`Cancel operation`,value:`no`},{label:`Remove existing files and continue`,value:`yes`},{label:`Ignore files and continue`,value:`ignore`}]});if(M(t))return d();e=t}else e=`no`;switch(e){case`yes`:kt(f);break;case`no`:d();return}}let p=n.basename(n.resolve(f));if(!Tt(p))if(c){let e=await at({message:`Package name:`,defaultValue:Et(p),placeholder:Et(p),validate(e){if(!Tt(e))return`Invalid package.json name`}});if(M(e))return d();p=e}else p=Et(p);let m=i,h=!1;if(i&&!gt.includes(i)&&(m=void 0,h=!0),!m)if(c){let e=await V({message:h?`"${i}" isn't a valid template. Please choose from below: `:`Select a framework:`,options:ht.map(e=>{let t=e.color;return{label:t(e.display||e.name),value:e}})});if(M(e))return d();let t=await V({message:`Select a variant:`,options:e.variants.map(e=>{let t=e.color,n=e.customCommand?Pt(e.customCommand,u).replace(/ TARGET_DIR$/,``):void 0;return{label:t(e.display||e.name),value:e.name,hint:n}})});if(M(t))return d();m=t}else m=`vanilla-ts`;let g=u?u.name:`npm`,_=o;if(_===void 0)if(c){let e=await ot({message:`Install with ${g} and start now?`});if(M(e))return d();_=e}else _=!1;let v=n.join(pt,f);t.mkdirSync(v,{recursive:!0});let y=!1;m.includes(`-swc`)&&(y=!0,m=m.replace(`-swc`,``));let b=!1;m.includes(`react-compiler`)&&(b=!0,m=m.replace(`-compiler`,``));let{customCommand:x}=ht.flatMap(e=>e.variants).find(e=>e.name===m)??{};if(x){let[e,...t]=Pt(x,u).split(` `),n=t.map(e=>e.replace(`TARGET_DIR`,()=>f)),{status:r}=pe.default.sync(e,n,{stdio:`inherit`});process.exit(r??0)}H.step(K(`🛠️ Scaffolding project in ${v}...`));let S=n.resolve(r(import.meta.url),`../..`,`template-${m}`),C=(e,r)=>{let i=n.join(v,_t[e]??e);if(r)t.writeFileSync(i,r);else if(e===`index.html`){let r=n.join(S,e),a=t.readFileSync(r,`utf-8`).replace(/<title>.*?<\/title>/,`<title>${p}</title>`);t.writeFileSync(i,a)}else wt(n.join(S,e),i)},ee=t.readdirSync(S);for(let e of ee.filter(e=>e!==`package.json`))C(e);let w=JSON.parse(t.readFileSync(n.join(S,`package.json`),`utf-8`));if(w.name=p,C(`package.json`,JSON.stringify(w,null,2)+`
71
+ `),y?jt(v,m.endsWith(`-ts`)):b&&Mt(v,m.endsWith(`-ts`)),_)bt(v,g),xt(v,g);else{let e=``,t=n.relative(pt,v);e+=`${E.default.green(E.default.bold(`✅ Done. Now run:`))}\n`,v!==pt&&(e+=`\n cd ${t.includes(` `)?`"${t}"`:t}`),e+=`\n ${Ft(g).join(` `)}`,e+=`\n ${It(g,`dev`).join(` `)}`,ct(e)}}function Ct(e){return e.trim().replace(/\/+$/g,``)}function wt(e,n){t.statSync(e).isDirectory()?Dt(e,n):t.copyFileSync(e,n)}function Tt(e){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e)}function Et(e){return e.trim().toLowerCase().replace(/\s+/g,`-`).replace(/^[._]/,``).replace(/[^a-z\d\-~]+/g,`-`)}function Dt(e,r){t.mkdirSync(r,{recursive:!0});for(let i of t.readdirSync(e))wt(n.resolve(e,i),n.resolve(r,i))}function Ot(e){let n=t.readdirSync(e);return n.length===0||n.length===1&&n[0]===`.git`}function kt(e){if(t.existsSync(e))for(let r of t.readdirSync(e))r!==`.git`&&t.rmSync(n.resolve(e,r),{recursive:!0,force:!0})}function At(e){if(!e)return;let t=e.split(` `)[0].split(`/`);return{name:t[0],version:t[1]}}function jt(e,t){$(n.resolve(e,`package.json`),e=>e.replace(/"@vitejs\/plugin-react": ".+?"/,`"@vitejs/plugin-react-swc": "^4.2.2"`)),$(n.resolve(e,`vite.config.${t?`ts`:`js`}`),e=>e.replace(`@vitejs/plugin-react`,`@vitejs/plugin-react-swc`)),Nt(e,`The React Compiler is currently not compatible with SWC. See [this issue](https://github.com/vitejs/vite-plugin-react/issues/428) for tracking the progress.`)}function Mt(e,t){$(n.resolve(e,`package.json`),e=>{let t=JSON.parse(e),n=Object.entries(t.devDependencies);return n.push([`babel-plugin-react-compiler`,`^1.0.0`]),n.sort(),t.devDependencies=Object.fromEntries(n),JSON.stringify(t,null,2)+`
72
+ `}),$(n.resolve(e,`vite.config.${t?`ts`:`js`}`),e=>e.replace(` plugins: [react()],`,` plugins: [
73
+ react({
74
+ babel: {
75
+ plugins: [['babel-plugin-react-compiler']],
76
+ },
77
+ }),
78
+ ],`)),Nt(e,`The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
79
+
80
+ Note: This will impact Vite dev & build performances.`)}function Nt(e,t){$(n.resolve(e,`README.md`),e=>{let n=e.indexOf(`## React Compiler`),r=e.indexOf(`
81
+
82
+ `,n),i=e.indexOf(`
83
+ ## `,r);return n===-1||r===-1||i===-1?(console.warn(`Could not update compiler section in README.md`),e):e.replace(e.slice(r+2,i-1),t)})}function $(e,n){let r=t.readFileSync(e,`utf-8`);t.writeFileSync(e,n(r),`utf-8`)}function Pt(e,t){let n=t?t.name:`npm`,r=n===`yarn`&&t?.version.startsWith(`1.`);return e.replace(/^npm create (?:-- )?/,()=>n===`bun`?`bun x create-`:n===`deno`?`deno run -A npm:create-`:n===`pnpm`?`pnpm create `:e.startsWith(`npm create -- `)?`${n} create -- `:`${n} create `).replace(`@latest`,()=>r?``:`@latest`).replace(/^npm exec /,()=>n===`pnpm`?`pnpm dlx `:n===`yarn`&&!r?`yarn dlx `:n===`bun`?`bun x `:n===`deno`?`deno run -A npm:`:`npm exec `)}function Ft(e){return e===`yarn`?[e]:[e,`install`]}function It(e,t){switch(e){case`yarn`:case`pnpm`:case`bun`:return[e,t];case`deno`:return[e,`task`,t];default:return[e,`run`,t]}}St().catch(e=>{console.error(e)});export{};
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import './dist/index.js'
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "create-bite",
3
+ "version": "1.0.3",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "author": "sumangal karan",
7
+ "bin": {
8
+ "create-bite": "index.js",
9
+ "cva": "index.js"
10
+ },
11
+ "files": [
12
+ "index.js",
13
+ "template-*",
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "dev": "tsdown --watch",
18
+ "build": "tsdown",
19
+ "typecheck": "tsc",
20
+ "prepublishOnly": "npm run build",
21
+ "test": "vitest"
22
+ },
23
+ "engines": {
24
+ "node": "^20.19.0 || >=24.12.0"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/sumangalkaran/create-bite.git"
29
+ },
30
+ "bugs": {
31
+ "url": "https://github.com/sumangalkaran/create-bite/issues"
32
+ },
33
+ "homepage": "https://github.com/sumangalkaran/create-bite#readme",
34
+ "funding": "https://github.com/sumangalkaran/create-bite?sponsor=1",
35
+ "devDependencies": {
36
+ "@clack/prompts": "^0.11.0",
37
+ "@types/cross-spawn": "^6.0.6",
38
+ "@types/node": "^25.0.5",
39
+ "@vercel/detect-agent": "^1.0.0",
40
+ "execa": "^9.6.1",
41
+ "cross-spawn": "^7.0.6",
42
+ "mri": "^1.2.0",
43
+ "picocolors": "^1.1.1",
44
+ "tsdown": "^0.19.0",
45
+ "typescript": "^5.9.3",
46
+ "vitest": "^4.0.16"
47
+ },
48
+ "dependencies": {},
49
+ "publishConfig": {
50
+ "registry": "https://registry.npmjs.org/",
51
+ "access": "public"
52
+
53
+ }
54
+ }