@donotdev/cli 0.1.0 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +0 -0
  3. package/dependencies-matrix.json +175 -72
  4. package/dist/bin/commands/agent-setup.js +936 -428
  5. package/dist/bin/commands/build.js +4363 -883
  6. package/dist/bin/commands/bump.js +1296 -780
  7. package/dist/bin/commands/cacheout.js +494 -363
  8. package/dist/bin/commands/coach.js +632 -431
  9. package/dist/bin/commands/create-app.js +1316 -799
  10. package/dist/bin/commands/create-project.js +1355 -827
  11. package/dist/bin/commands/db.js +26158 -18868
  12. package/dist/bin/commands/deploy.js +5983 -1971
  13. package/dist/bin/commands/dev.js +1223 -657
  14. package/dist/bin/commands/doctor.js +1100 -528
  15. package/dist/bin/commands/emu.js +1380 -757
  16. package/dist/bin/commands/format.js +494 -363
  17. package/dist/bin/commands/get-demo.js +1210 -715
  18. package/dist/bin/commands/make-admin.js +16073 -8700
  19. package/dist/bin/commands/preview.js +1227 -658
  20. package/dist/bin/commands/seed.js +26171 -18881
  21. package/dist/bin/commands/setup-cicd.js +1475 -880
  22. package/dist/bin/commands/setup.js +1574 -956
  23. package/dist/bin/commands/staging.js +5984 -1972
  24. package/dist/bin/commands/sync-secrets.js +1423 -676
  25. package/dist/bin/commands/type-check.js +976 -469
  26. package/dist/bin/commands/wai.js +499 -368
  27. package/dist/bin/dndev.js +43 -19
  28. package/dist/bin/donotdev.js +43 -19
  29. package/dist/index.js +6166 -2133
  30. package/guidelines/DEPENDENCIES.md +155 -0
  31. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  32. package/package.json +2 -1
  33. package/templates/app-demo/.env.example +1 -1
  34. package/templates/app-demo/entities/Contact.ts.example +0 -0
  35. package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
  36. package/templates/app-demo/entities/demo.ts.example +0 -0
  37. package/templates/app-demo/index.html.example +0 -0
  38. package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
  39. package/templates/app-demo/public/fonts/fonts.css.example +0 -0
  40. package/templates/app-demo/public/icon-192x192.png.example +0 -0
  41. package/templates/app-demo/public/icon-512x512.png.example +0 -0
  42. package/templates/app-demo/src/App.tsx.example +0 -0
  43. package/templates/app-demo/src/config/app.ts.example +0 -0
  44. package/templates/app-demo/src/entities/booking.ts.example +0 -0
  45. package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
  46. package/templates/app-demo/src/entities/product.ts.example +0 -0
  47. package/templates/app-demo/src/entities/quote.ts.example +0 -0
  48. package/templates/app-demo/src/globals.css.example +0 -0
  49. package/templates/app-demo/src/main.tsx.example +0 -0
  50. package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
  51. package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
  52. package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
  53. package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
  54. package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
  55. package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
  56. package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
  57. package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
  58. package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
  59. package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
  60. package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
  61. package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
  62. package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
  63. package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
  64. package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
  65. package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
  66. package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
  67. package/templates/app-demo/src/themes.css.example +27 -0
  68. package/templates/app-demo/tsconfig.json.example +0 -0
  69. package/templates/app-demo/vite.config.ts.example +0 -0
  70. package/templates/app-dndev/index.html.example +0 -3
  71. package/templates/app-dndev/src/App.tsx.example +0 -0
  72. package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
  73. package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
  74. package/templates/app-dndev/src/components/Kanban.css.example +0 -0
  75. package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
  76. package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
  77. package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
  78. package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
  79. package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
  80. package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
  81. package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
  82. package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
  83. package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
  84. package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
  85. package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
  86. package/templates/app-dndev/src/config/app.ts.example +0 -0
  87. package/templates/app-dndev/src/config/commands.ts.example +0 -0
  88. package/templates/app-dndev/src/config/legal.ts.example +0 -0
  89. package/templates/app-dndev/src/config/providers.ts.example +1 -1
  90. package/templates/app-dndev/src/globals.css.example +0 -0
  91. package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
  92. package/templates/app-dndev/src/main.tsx.example +0 -0
  93. package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
  94. package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
  95. package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
  96. package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
  97. package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
  98. package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
  99. package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  100. package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
  101. package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
  102. package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
  103. package/templates/app-dndev/src/themes.css.example +26 -0
  104. package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
  105. package/templates/app-dndev/vite.config.ts.example +0 -0
  106. package/templates/app-expo/.env.example +0 -32
  107. package/templates/app-expo/.expo/README.md.example +0 -0
  108. package/templates/app-expo/.gitignore.example +0 -0
  109. package/templates/app-expo/README.md.example +1 -1
  110. package/templates/app-expo/app/.gitkeep +0 -0
  111. package/templates/app-expo/app/_layout.tsx.example +0 -0
  112. package/templates/app-expo/app/form.tsx.example +0 -0
  113. package/templates/app-expo/app/index.tsx.example +0 -0
  114. package/templates/app-expo/app/list.tsx.example +0 -0
  115. package/templates/app-expo/app/profile.tsx.example +0 -0
  116. package/templates/app-expo/app/signin.tsx.example +0 -0
  117. package/templates/app-expo/app.json.example +0 -0
  118. package/templates/app-expo/assets/adaptive-icon.png +0 -0
  119. package/templates/app-expo/assets/favicon.png +0 -0
  120. package/templates/app-expo/assets/icon.png +0 -0
  121. package/templates/app-expo/assets/splash.png +0 -0
  122. package/templates/app-expo/babel.config.js.example +0 -0
  123. package/templates/app-expo/eas.json.example +0 -0
  124. package/templates/app-expo/expo-env.d.ts.example +0 -0
  125. package/templates/app-expo/metro.config.js.example +0 -0
  126. package/templates/app-expo/service-account-key.json.example +1 -1
  127. package/templates/app-expo/src/config/app.ts.example +0 -0
  128. package/templates/app-expo/src/config/providers.ts.example +1 -1
  129. package/templates/app-expo/tsconfig.json.example +0 -0
  130. package/templates/app-next/.env.example +0 -33
  131. package/templates/app-next/next.config.ts.example +0 -2
  132. package/templates/app-next/postcss.config.js.example +0 -0
  133. package/templates/app-next/service-account-key.json.example +0 -0
  134. package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
  135. package/templates/app-next/src/app/layout.tsx.example +13 -4
  136. package/templates/app-next/src/app/not-found.tsx.example +0 -0
  137. package/templates/app-next/src/config/app.ts.example +0 -0
  138. package/templates/app-next/src/config/legal.ts.example +0 -0
  139. package/templates/app-next/src/config/providers.ts.example +1 -1
  140. package/templates/app-next/src/globals.css.example +0 -0
  141. package/templates/app-next/src/locales/dndev_en.json.example +0 -0
  142. package/templates/app-next/src/locales/home_en.json.example +6 -6
  143. package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
  144. package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  145. package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
  146. package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
  147. package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
  148. package/templates/app-next/src/themes.css.example +28 -1
  149. package/templates/app-vite/.env.example +0 -33
  150. package/templates/app-vite/csp.example.json +44 -0
  151. package/templates/app-vite/index.html.example +0 -3
  152. package/templates/app-vite/service-account-key.json.example +0 -0
  153. package/templates/app-vite/src/App.tsx.example +0 -0
  154. package/templates/app-vite/src/config/app.ts.example +0 -0
  155. package/templates/app-vite/src/config/legal.ts.example +0 -0
  156. package/templates/app-vite/src/config/providers.ts.example +1 -1
  157. package/templates/app-vite/src/globals.css.example +0 -0
  158. package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
  159. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  160. package/templates/app-vite/src/main.tsx.example +0 -0
  161. package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
  162. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  163. package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
  164. package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
  165. package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  166. package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
  167. package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
  168. package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
  169. package/templates/app-vite/src/themes.css.example +26 -0
  170. package/templates/deploy-config/.firebaserc.example +0 -0
  171. package/templates/deploy-config/firestore.indexes.json.example +0 -0
  172. package/templates/deploy-config/firestore.rules.example +0 -0
  173. package/templates/deploy-config/storage.rules.example +0 -0
  174. package/templates/deploy-config/tsconfig.functions.json.example +0 -0
  175. package/templates/deploy-config/vercel.json.example +2 -2
  176. package/templates/functions-firebase/.env.example +2 -2
  177. package/templates/functions-firebase/README.md.example +3 -3
  178. package/templates/functions-firebase/build.mjs.example +0 -0
  179. package/templates/functions-firebase/functions.config.js.example +0 -0
  180. package/templates/functions-firebase/functions.yaml.example +0 -0
  181. package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
  182. package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
  183. package/templates/functions-firebase/src/auth/index.ts.example +0 -0
  184. package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
  185. package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
  186. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
  187. package/templates/functions-firebase/src/billing/index.ts.example +0 -0
  188. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
  189. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
  190. package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
  191. package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
  192. package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
  193. package/templates/functions-firebase/src/crud/index.ts.example +0 -0
  194. package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
  195. package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
  196. package/templates/functions-firebase/src/index.ts.example +0 -0
  197. package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
  198. package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
  199. package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
  200. package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
  201. package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
  202. package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
  203. package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
  204. package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
  205. package/templates/functions-firebase/tsconfig.json.example +0 -0
  206. package/templates/functions-supabase/supabase/config.toml.example +0 -0
  207. package/templates/functions-supabase/supabase/functions/.env.example +0 -0
  208. package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
  209. package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
  210. package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
  211. package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
  212. package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
  213. package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
  214. package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
  215. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
  216. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
  217. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
  218. package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
  219. package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
  220. package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
  221. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
  222. package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
  223. package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
  224. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  225. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  226. package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
  227. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  228. package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
  229. package/templates/functions-vercel/.env.example +3 -3
  230. package/templates/functions-vercel/README.md.example +2 -2
  231. package/templates/functions-vercel/build.mjs.example +0 -0
  232. package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
  233. package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
  234. package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
  235. package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
  236. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
  237. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
  238. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
  239. package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
  240. package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
  241. package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
  242. package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
  243. package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
  244. package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
  245. package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
  246. package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
  247. package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
  248. package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
  249. package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
  250. package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
  251. package/templates/functions-vercel/tsconfig.json.example +0 -0
  252. package/templates/functions-vercel/vercel.json.example +0 -0
  253. package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
  254. package/templates/overlay-firebase/env.fragment.example +0 -0
  255. package/templates/overlay-firebase/env.fragment.expo.example +0 -0
  256. package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
  257. package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
  258. package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
  259. package/templates/overlay-supabase/env.fragment.example +0 -0
  260. package/templates/overlay-supabase/env.fragment.expo.example +0 -0
  261. package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
  262. package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
  263. package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
  264. package/templates/overlay-vercel/env.fragment.example +0 -0
  265. package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
  266. package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
  267. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
  268. package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
  269. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
  270. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
  271. package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
  272. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
  273. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
  274. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
  275. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
  276. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
  277. package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
  278. package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
  279. package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
  280. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
  281. package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
  282. package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
  283. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
  284. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
  285. package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
  286. package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
  287. package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
  288. package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
  289. package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
  290. package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
  291. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  292. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
  293. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  294. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  295. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  296. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  297. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  298. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  299. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  300. package/templates/root-consumer/.claude/settings.json.example +100 -4
  301. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
  302. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
  303. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
  304. package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
  305. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  306. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  307. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
  308. package/templates/root-consumer/.cursor/mcp.json.example +0 -0
  309. package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
  310. package/templates/root-consumer/.dndev/args.json.example +0 -0
  311. package/templates/root-consumer/.dndev.secrets.example +0 -0
  312. package/templates/root-consumer/.env.example +0 -1
  313. package/templates/root-consumer/.gemini/settings.json.example +0 -0
  314. package/templates/root-consumer/.gitignore.example +1 -0
  315. package/templates/root-consumer/.mcp.json.example +0 -0
  316. package/templates/root-consumer/.prettierrc.cjs.example +0 -0
  317. package/templates/root-consumer/AGENTS.md.example +63 -0
  318. package/templates/root-consumer/CLAUDE.md.example +1 -1
  319. package/templates/root-consumer/README.md.example +11 -33
  320. package/templates/root-consumer/entities/index.ts.example +0 -0
  321. package/templates/root-consumer/eslint.config.js.example +0 -0
  322. package/templates/root-consumer/tsconfig.json.example +0 -0
  323. package/templates/app-demo/public/manifest.json.example +0 -10
  324. package/templates/app-dndev/public/manifest.json.example +0 -10
  325. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  326. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  327. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  328. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  329. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  330. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  331. package/templates/root-consumer/.claude/statusline.py.example +0 -79
  332. package/templates/root-consumer/.clinerules.example +0 -1
  333. package/templates/root-consumer/.cursorrules.example +0 -1
  334. package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
  335. package/templates/root-consumer/.windsurfrules.example +0 -1
  336. package/templates/root-consumer/AI.md.example +0 -108
  337. package/templates/root-consumer/CONVENTIONS.md.example +0 -1
  338. package/templates/root-consumer/GEMINI.md.example +0 -1
  339. package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
  340. package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
  341. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  342. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  343. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  344. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  345. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  346. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  347. package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
  348. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  349. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
  350. package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
  351. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  352. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  353. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  354. package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
  355. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  356. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  357. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  358. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
  359. package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
  360. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  361. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  362. package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
  363. package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
  364. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
  365. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  366. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  367. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  368. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  369. package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
  370. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
  371. package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
  372. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
  373. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
  374. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
  375. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
  376. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
  377. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
  378. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
  379. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
  380. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
  381. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
  382. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
  383. package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
  384. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
  385. package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
  386. package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
  387. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
  388. package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
  389. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
  390. package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
@@ -5,7 +5,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b2) => (typeof require !== "undefined" ? require : a)[b2]
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
9
  }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
@@ -33,50 +33,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
37
+ var isAmbiguous, isFullWidth, isWide;
38
+ var init_utils = __esm({
39
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
40
+ init_utils2();
41
+ isAmbiguous = (x) => {
42
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
43
+ };
44
+ isFullWidth = (x) => {
45
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
46
+ };
47
+ isWide = (x) => {
48
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
49
+ };
50
+ }
51
+ });
52
+
53
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
54
+ var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
55
+ var init_dist = __esm({
56
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
57
+ init_utils2();
58
+ init_utils();
59
+ ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
60
+ CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
61
+ TAB_RE = /\t{1,1000}/y;
62
+ EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
63
+ LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
64
+ MODIFIER_RE = new RegExp("\\p{M}+", "gu");
65
+ NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
66
+ getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
67
+ const LIMIT = truncationOptions.limit ?? Infinity;
68
+ const ELLIPSIS = truncationOptions.ellipsis ?? "";
69
+ const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
70
+ const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
71
+ const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
72
+ const TAB_WIDTH = widthOptions.tabWidth ?? 8;
73
+ const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
74
+ const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
75
+ const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
76
+ const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
77
+ const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
78
+ let indexPrev = 0;
79
+ let index = 0;
80
+ let length = input.length;
81
+ let lengthExtra = 0;
82
+ let truncationEnabled = false;
83
+ let truncationIndex = length;
84
+ let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
85
+ let unmatchedStart = 0;
86
+ let unmatchedEnd = 0;
87
+ let width = 0;
88
+ let widthExtra = 0;
89
+ outer: while (true) {
90
+ if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
91
+ const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
92
+ lengthExtra = 0;
93
+ for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
94
+ const codePoint = char.codePointAt(0) || 0;
95
+ if (isFullWidth(codePoint)) {
96
+ widthExtra = FULL_WIDTH_WIDTH;
97
+ } else if (isWide(codePoint)) {
98
+ widthExtra = WIDE_WIDTH;
99
+ } else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
100
+ widthExtra = AMBIGUOUS_WIDTH;
101
+ } else {
102
+ widthExtra = REGULAR_WIDTH;
103
+ }
104
+ if (width + widthExtra > truncationLimit) {
105
+ truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
106
+ }
107
+ if (width + widthExtra > LIMIT) {
108
+ truncationEnabled = true;
109
+ break outer;
110
+ }
111
+ lengthExtra += char.length;
112
+ width += widthExtra;
113
+ }
114
+ unmatchedStart = unmatchedEnd = 0;
115
+ }
116
+ if (index >= length)
117
+ break;
118
+ LATIN_RE.lastIndex = index;
119
+ if (LATIN_RE.test(input)) {
120
+ lengthExtra = LATIN_RE.lastIndex - index;
121
+ widthExtra = lengthExtra * REGULAR_WIDTH;
122
+ if (width + widthExtra > truncationLimit) {
123
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
124
+ }
125
+ if (width + widthExtra > LIMIT) {
126
+ truncationEnabled = true;
127
+ break;
128
+ }
129
+ width += widthExtra;
130
+ unmatchedStart = indexPrev;
131
+ unmatchedEnd = index;
132
+ index = indexPrev = LATIN_RE.lastIndex;
133
+ continue;
134
+ }
135
+ ANSI_RE.lastIndex = index;
136
+ if (ANSI_RE.test(input)) {
137
+ if (width + ANSI_WIDTH > truncationLimit) {
138
+ truncationIndex = Math.min(truncationIndex, index);
139
+ }
140
+ if (width + ANSI_WIDTH > LIMIT) {
141
+ truncationEnabled = true;
142
+ break;
143
+ }
144
+ width += ANSI_WIDTH;
145
+ unmatchedStart = indexPrev;
146
+ unmatchedEnd = index;
147
+ index = indexPrev = ANSI_RE.lastIndex;
148
+ continue;
149
+ }
150
+ CONTROL_RE.lastIndex = index;
151
+ if (CONTROL_RE.test(input)) {
152
+ lengthExtra = CONTROL_RE.lastIndex - index;
153
+ widthExtra = lengthExtra * CONTROL_WIDTH;
154
+ if (width + widthExtra > truncationLimit) {
155
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
156
+ }
157
+ if (width + widthExtra > LIMIT) {
158
+ truncationEnabled = true;
159
+ break;
160
+ }
161
+ width += widthExtra;
162
+ unmatchedStart = indexPrev;
163
+ unmatchedEnd = index;
164
+ index = indexPrev = CONTROL_RE.lastIndex;
165
+ continue;
166
+ }
167
+ TAB_RE.lastIndex = index;
168
+ if (TAB_RE.test(input)) {
169
+ lengthExtra = TAB_RE.lastIndex - index;
170
+ widthExtra = lengthExtra * TAB_WIDTH;
171
+ if (width + widthExtra > truncationLimit) {
172
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
173
+ }
174
+ if (width + widthExtra > LIMIT) {
175
+ truncationEnabled = true;
176
+ break;
177
+ }
178
+ width += widthExtra;
179
+ unmatchedStart = indexPrev;
180
+ unmatchedEnd = index;
181
+ index = indexPrev = TAB_RE.lastIndex;
182
+ continue;
183
+ }
184
+ EMOJI_RE.lastIndex = index;
185
+ if (EMOJI_RE.test(input)) {
186
+ if (width + EMOJI_WIDTH > truncationLimit) {
187
+ truncationIndex = Math.min(truncationIndex, index);
188
+ }
189
+ if (width + EMOJI_WIDTH > LIMIT) {
190
+ truncationEnabled = true;
191
+ break;
192
+ }
193
+ width += EMOJI_WIDTH;
194
+ unmatchedStart = indexPrev;
195
+ unmatchedEnd = index;
196
+ index = indexPrev = EMOJI_RE.lastIndex;
197
+ continue;
198
+ }
199
+ index += 1;
200
+ }
201
+ return {
202
+ width: truncationEnabled ? truncationLimit : width,
203
+ index: truncationEnabled ? truncationIndex : length,
204
+ truncated: truncationEnabled,
205
+ ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
206
+ };
207
+ };
208
+ dist_default = getStringTruncatedWidth;
209
+ }
210
+ });
211
+
212
+ // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
213
+ var NO_TRUNCATION2, fastStringWidth, dist_default2;
214
+ var init_dist2 = __esm({
215
+ "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
216
+ init_utils2();
217
+ init_dist();
218
+ NO_TRUNCATION2 = {
219
+ limit: Infinity,
220
+ ellipsis: "",
221
+ ellipsisWidth: 0
222
+ };
223
+ fastStringWidth = (input, options = {}) => {
224
+ return dist_default(input, NO_TRUNCATION2, options).width;
225
+ };
226
+ dist_default2 = fastStringWidth;
227
+ }
228
+ });
229
+
230
+ // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
231
+ function wrapAnsi(string, columns, options) {
232
+ return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
233
+ }
234
+ var ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF;
235
+ var init_main = __esm({
236
+ "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
237
+ init_utils2();
238
+ init_dist2();
239
+ ESC = "\x1B";
240
+ CSI = "\x9B";
241
+ END_CODE = 39;
242
+ ANSI_ESCAPE_BELL = "\x07";
243
+ ANSI_CSI = "[";
244
+ ANSI_OSC = "]";
245
+ ANSI_SGR_TERMINATOR = "m";
246
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
247
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
248
+ getClosingCode = (openingCode) => {
249
+ if (openingCode >= 30 && openingCode <= 37)
250
+ return 39;
251
+ if (openingCode >= 90 && openingCode <= 97)
252
+ return 39;
253
+ if (openingCode >= 40 && openingCode <= 47)
254
+ return 49;
255
+ if (openingCode >= 100 && openingCode <= 107)
256
+ return 49;
257
+ if (openingCode === 1 || openingCode === 2)
258
+ return 22;
259
+ if (openingCode === 3)
260
+ return 23;
261
+ if (openingCode === 4)
262
+ return 24;
263
+ if (openingCode === 7)
264
+ return 27;
265
+ if (openingCode === 8)
266
+ return 28;
267
+ if (openingCode === 9)
268
+ return 29;
269
+ if (openingCode === 0)
270
+ return 0;
271
+ return void 0;
272
+ };
273
+ wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
274
+ wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
275
+ wrapWord = (rows, word, columns) => {
276
+ const characters = word[Symbol.iterator]();
277
+ let isInsideEscape = false;
278
+ let isInsideLinkEscape = false;
279
+ let lastRow = rows.at(-1);
280
+ let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
281
+ let currentCharacter = characters.next();
282
+ let nextCharacter = characters.next();
283
+ let rawCharacterIndex = 0;
284
+ while (!currentCharacter.done) {
285
+ const character = currentCharacter.value;
286
+ const characterLength = dist_default2(character);
287
+ if (visible + characterLength <= columns) {
288
+ rows[rows.length - 1] += character;
289
+ } else {
290
+ rows.push(character);
291
+ visible = 0;
292
+ }
293
+ if (character === ESC || character === CSI) {
294
+ isInsideEscape = true;
295
+ isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
296
+ }
297
+ if (isInsideEscape) {
298
+ if (isInsideLinkEscape) {
299
+ if (character === ANSI_ESCAPE_BELL) {
300
+ isInsideEscape = false;
301
+ isInsideLinkEscape = false;
302
+ }
303
+ } else if (character === ANSI_SGR_TERMINATOR) {
304
+ isInsideEscape = false;
305
+ }
306
+ } else {
307
+ visible += characterLength;
308
+ if (visible === columns && !nextCharacter.done) {
309
+ rows.push("");
310
+ visible = 0;
311
+ }
312
+ }
313
+ currentCharacter = nextCharacter;
314
+ nextCharacter = characters.next();
315
+ rawCharacterIndex += character.length;
316
+ }
317
+ lastRow = rows.at(-1);
318
+ if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
319
+ rows[rows.length - 2] += rows.pop();
320
+ }
321
+ };
322
+ stringVisibleTrimSpacesRight = (string) => {
323
+ const words = string.split(" ");
324
+ let last = words.length;
325
+ while (last) {
326
+ if (dist_default2(words[last - 1])) {
327
+ break;
328
+ }
329
+ last--;
330
+ }
331
+ if (last === words.length) {
332
+ return string;
333
+ }
334
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
335
+ };
336
+ exec = (string, columns, options = {}) => {
337
+ if (options.trim !== false && string.trim() === "") {
338
+ return "";
339
+ }
340
+ let returnValue = "";
341
+ let escapeCode;
342
+ let escapeUrl;
343
+ const words = string.split(" ");
344
+ let rows = [""];
345
+ let rowLength = 0;
346
+ for (let index = 0; index < words.length; index++) {
347
+ const word = words[index];
348
+ if (options.trim !== false) {
349
+ const row = rows.at(-1) ?? "";
350
+ const trimmed = row.trimStart();
351
+ if (row.length !== trimmed.length) {
352
+ rows[rows.length - 1] = trimmed;
353
+ rowLength = dist_default2(trimmed);
354
+ }
355
+ }
356
+ if (index !== 0) {
357
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
358
+ rows.push("");
359
+ rowLength = 0;
360
+ }
361
+ if (rowLength || options.trim === false) {
362
+ rows[rows.length - 1] += " ";
363
+ rowLength++;
364
+ }
365
+ }
366
+ const wordLength = dist_default2(word);
367
+ if (options.hard && wordLength > columns) {
368
+ const remainingColumns = columns - rowLength;
369
+ const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
370
+ const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
371
+ if (breaksStartingNextLine < breaksStartingThisLine) {
372
+ rows.push("");
373
+ }
374
+ wrapWord(rows, word, columns);
375
+ rowLength = dist_default2(rows.at(-1) ?? "");
376
+ continue;
377
+ }
378
+ if (rowLength + wordLength > columns && rowLength && wordLength) {
379
+ if (options.wordWrap === false && rowLength < columns) {
380
+ wrapWord(rows, word, columns);
381
+ rowLength = dist_default2(rows.at(-1) ?? "");
382
+ continue;
383
+ }
384
+ rows.push("");
385
+ rowLength = 0;
386
+ }
387
+ if (rowLength + wordLength > columns && options.wordWrap === false) {
388
+ wrapWord(rows, word, columns);
389
+ rowLength = dist_default2(rows.at(-1) ?? "");
390
+ continue;
391
+ }
392
+ rows[rows.length - 1] += word;
393
+ rowLength += wordLength;
394
+ }
395
+ if (options.trim !== false) {
396
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
397
+ }
398
+ const preString = rows.join("\n");
399
+ let inSurrogate = false;
400
+ for (let i = 0; i < preString.length; i++) {
401
+ const character = preString[i];
402
+ returnValue += character;
403
+ if (!inSurrogate) {
404
+ inSurrogate = character >= "\uD800" && character <= "\uDBFF";
405
+ } else {
406
+ continue;
407
+ }
408
+ if (character === ESC || character === CSI) {
409
+ GROUP_REGEX.lastIndex = i + 1;
410
+ const groupsResult = GROUP_REGEX.exec(preString);
411
+ const groups = groupsResult?.groups;
412
+ if (groups?.code !== void 0) {
413
+ const code = Number.parseFloat(groups.code);
414
+ escapeCode = code === END_CODE ? void 0 : code;
415
+ } else if (groups?.uri !== void 0) {
416
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
417
+ }
418
+ }
419
+ if (preString[i + 1] === "\n") {
420
+ if (escapeUrl) {
421
+ returnValue += wrapAnsiHyperlink("");
422
+ }
423
+ const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
424
+ if (escapeCode && closingCode) {
425
+ returnValue += wrapAnsiCode(closingCode);
426
+ }
427
+ } else if (character === "\n") {
428
+ if (escapeCode && getClosingCode(escapeCode)) {
429
+ returnValue += wrapAnsiCode(escapeCode);
430
+ }
431
+ if (escapeUrl) {
432
+ returnValue += wrapAnsiHyperlink(escapeUrl);
433
+ }
434
+ }
435
+ }
436
+ return returnValue;
437
+ };
438
+ CRLF_OR_LF = /\r?\n/;
439
+ }
440
+ });
441
+
36
442
  // node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
37
443
  var require_src = __commonJS({
38
444
  "node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
39
445
  "use strict";
40
- init_utils();
41
- var ESC = "\x1B";
42
- var CSI = `${ESC}[`;
446
+ init_utils2();
447
+ var ESC2 = "\x1B";
448
+ var CSI2 = `${ESC2}[`;
43
449
  var beep = "\x07";
44
450
  var cursor = {
45
451
  to(x, y2) {
46
- if (!y2) return `${CSI}${x + 1}G`;
47
- return `${CSI}${y2 + 1};${x + 1}H`;
452
+ if (!y2) return `${CSI2}${x + 1}G`;
453
+ return `${CSI2}${y2 + 1};${x + 1}H`;
48
454
  },
49
455
  move(x, y2) {
50
456
  let ret = "";
51
- if (x < 0) ret += `${CSI}${-x}D`;
52
- else if (x > 0) ret += `${CSI}${x}C`;
53
- if (y2 < 0) ret += `${CSI}${-y2}A`;
54
- else if (y2 > 0) ret += `${CSI}${y2}B`;
457
+ if (x < 0) ret += `${CSI2}${-x}D`;
458
+ else if (x > 0) ret += `${CSI2}${x}C`;
459
+ if (y2 < 0) ret += `${CSI2}${-y2}A`;
460
+ else if (y2 > 0) ret += `${CSI2}${y2}B`;
55
461
  return ret;
56
462
  },
57
- up: (count = 1) => `${CSI}${count}A`,
58
- down: (count = 1) => `${CSI}${count}B`,
59
- forward: (count = 1) => `${CSI}${count}C`,
60
- backward: (count = 1) => `${CSI}${count}D`,
61
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
62
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
63
- left: `${CSI}G`,
64
- hide: `${CSI}?25l`,
65
- show: `${CSI}?25h`,
66
- save: `${ESC}7`,
67
- restore: `${ESC}8`
463
+ up: (count = 1) => `${CSI2}${count}A`,
464
+ down: (count = 1) => `${CSI2}${count}B`,
465
+ forward: (count = 1) => `${CSI2}${count}C`,
466
+ backward: (count = 1) => `${CSI2}${count}D`,
467
+ nextLine: (count = 1) => `${CSI2}E`.repeat(count),
468
+ prevLine: (count = 1) => `${CSI2}F`.repeat(count),
469
+ left: `${CSI2}G`,
470
+ hide: `${CSI2}?25l`,
471
+ show: `${CSI2}?25h`,
472
+ save: `${ESC2}7`,
473
+ restore: `${ESC2}8`
68
474
  };
69
475
  var scroll = {
70
- up: (count = 1) => `${CSI}S`.repeat(count),
71
- down: (count = 1) => `${CSI}T`.repeat(count)
476
+ up: (count = 1) => `${CSI2}S`.repeat(count),
477
+ down: (count = 1) => `${CSI2}T`.repeat(count)
72
478
  };
73
479
  var erase = {
74
- screen: `${CSI}2J`,
75
- up: (count = 1) => `${CSI}1J`.repeat(count),
76
- down: (count = 1) => `${CSI}J`.repeat(count),
77
- line: `${CSI}2K`,
78
- lineEnd: `${CSI}K`,
79
- lineStart: `${CSI}1K`,
480
+ screen: `${CSI2}2J`,
481
+ up: (count = 1) => `${CSI2}1J`.repeat(count),
482
+ down: (count = 1) => `${CSI2}J`.repeat(count),
483
+ line: `${CSI2}2K`,
484
+ lineEnd: `${CSI2}K`,
485
+ lineStart: `${CSI2}1K`,
80
486
  lines(count) {
81
487
  let clear = "";
82
488
  for (let i = 0; i < count; i++)
@@ -90,321 +496,189 @@ var require_src = __commonJS({
90
496
  }
91
497
  });
92
498
 
93
- // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
94
- var require_picocolors = __commonJS({
95
- "node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
96
- init_utils();
97
- var p = process || {};
98
- var argv = p.argv || [];
99
- var env = p.env || {};
100
- var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
101
- var formatter = (open, close, replace = open) => (input) => {
102
- let string = "" + input, index = string.indexOf(close, open.length);
103
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
104
- };
105
- var replaceClose = (string, close, replace, index) => {
106
- let result = "", cursor = 0;
107
- do {
108
- result += string.substring(cursor, index) + replace;
109
- cursor = index + close.length;
110
- index = string.indexOf(close, cursor);
111
- } while (~index);
112
- return result + string.substring(cursor);
113
- };
114
- var createColors = (enabled = isColorSupported) => {
115
- let f = enabled ? formatter : () => String;
116
- return {
117
- isColorSupported: enabled,
118
- reset: f("\x1B[0m", "\x1B[0m"),
119
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
120
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
121
- italic: f("\x1B[3m", "\x1B[23m"),
122
- underline: f("\x1B[4m", "\x1B[24m"),
123
- inverse: f("\x1B[7m", "\x1B[27m"),
124
- hidden: f("\x1B[8m", "\x1B[28m"),
125
- strikethrough: f("\x1B[9m", "\x1B[29m"),
126
- black: f("\x1B[30m", "\x1B[39m"),
127
- red: f("\x1B[31m", "\x1B[39m"),
128
- green: f("\x1B[32m", "\x1B[39m"),
129
- yellow: f("\x1B[33m", "\x1B[39m"),
130
- blue: f("\x1B[34m", "\x1B[39m"),
131
- magenta: f("\x1B[35m", "\x1B[39m"),
132
- cyan: f("\x1B[36m", "\x1B[39m"),
133
- white: f("\x1B[37m", "\x1B[39m"),
134
- gray: f("\x1B[90m", "\x1B[39m"),
135
- bgBlack: f("\x1B[40m", "\x1B[49m"),
136
- bgRed: f("\x1B[41m", "\x1B[49m"),
137
- bgGreen: f("\x1B[42m", "\x1B[49m"),
138
- bgYellow: f("\x1B[43m", "\x1B[49m"),
139
- bgBlue: f("\x1B[44m", "\x1B[49m"),
140
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
141
- bgCyan: f("\x1B[46m", "\x1B[49m"),
142
- bgWhite: f("\x1B[47m", "\x1B[49m"),
143
- blackBright: f("\x1B[90m", "\x1B[39m"),
144
- redBright: f("\x1B[91m", "\x1B[39m"),
145
- greenBright: f("\x1B[92m", "\x1B[39m"),
146
- yellowBright: f("\x1B[93m", "\x1B[39m"),
147
- blueBright: f("\x1B[94m", "\x1B[39m"),
148
- magentaBright: f("\x1B[95m", "\x1B[39m"),
149
- cyanBright: f("\x1B[96m", "\x1B[39m"),
150
- whiteBright: f("\x1B[97m", "\x1B[39m"),
151
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
152
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
153
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
154
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
155
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
156
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
157
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
158
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
159
- };
160
- };
161
- module.exports = createColors();
162
- module.exports.createColors = createColors;
163
- }
164
- });
165
-
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
- import { stdin as j, stdout as M } from "node:process";
168
- import * as g from "node:readline";
169
- import { Writable as X } from "node:stream";
170
- function DD({ onlyFirst: e2 = false } = {}) {
171
- const 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("|");
172
- return new RegExp(t, e2 ? void 0 : "g");
173
- }
174
- function L(e2) {
175
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
176
- }
177
- function rD() {
178
- const e2 = /* @__PURE__ */ new Map();
179
- for (const [u2, t] of Object.entries(r)) {
180
- for (const [F2, s] of Object.entries(t)) r[F2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, t[F2] = r[F2], e2.set(s[0], s[1]);
181
- Object.defineProperty(r, u2, { value: t, enumerable: false });
182
- }
183
- return Object.defineProperty(r, "codes", { value: e2, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = N(), r.color.ansi256 = I(), r.color.ansi16m = R(), r.bgColor.ansi = N(w), r.bgColor.ansi256 = I(w), r.bgColor.ansi16m = R(w), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, t, F2) => u2 === t && t === F2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
184
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
185
- if (!t) return [0, 0, 0];
186
- let [F2] = t;
187
- F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
188
- const s = Number.parseInt(F2, 16);
189
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
190
- }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
191
- if (u2 < 8) return 30 + u2;
192
- if (u2 < 16) return 90 + (u2 - 8);
193
- let t, F2, s;
194
- if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
195
- else {
196
- u2 -= 16;
197
- const C2 = u2 % 36;
198
- t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
199
- }
200
- const i = Math.max(t, F2, s) * 2;
201
- if (i === 0) return 30;
202
- let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
203
- return i === 2 && (D2 += 60), D2;
204
- }, enumerable: false }, rgbToAnsi: { value: (u2, t, F2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, t, F2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
205
- }
206
- function $(e2, u2) {
207
- if (typeof e2 == "string") return B.aliases.get(e2) === u2;
208
- for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
499
+ // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
500
+ import { styleText as y } from "node:util";
501
+ import { stdout as S, stdin as $ } from "node:process";
502
+ import * as _ from "node:readline";
503
+ import { ReadStream as D } from "node:tty";
504
+ function V(r, t2) {
505
+ if (typeof r == "string") return u.aliases.get(r) === t2;
506
+ for (const e of r) if (e !== void 0 && V(e, t2)) return true;
209
507
  return false;
210
508
  }
211
- function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2 = true } = {}) {
212
- const s = g.createInterface({ input: e2, output: u2, prompt: "", tabSize: 1 });
213
- g.emitKeypressEvents(e2, s), e2.isTTY && e2.setRawMode(true);
214
- const i = (D2, { name: C2, sequence: n }) => {
215
- const E = String(D2);
216
- if ($([E, C2, n], "cancel")) {
217
- F2 && u2.write(import_sisteransi.cursor.show), process.exit(0);
509
+ function z({ input: r = $, output: t2 = S, overwrite: e = true, hideCursor: s = true } = {}) {
510
+ const i = _.createInterface({ input: r, output: t2, prompt: "", tabSize: 1 });
511
+ _.emitKeypressEvents(r, i), r instanceof D && r.isTTY && r.setRawMode(true);
512
+ const n = (o, { name: a, sequence: h }) => {
513
+ const l = String(o);
514
+ if (V([l, a, h], "cancel")) {
515
+ s && t2.write(import_sisteransi.cursor.show), process.exit(0);
218
516
  return;
219
517
  }
220
- if (!t) return;
221
- const a = C2 === "return" ? 0 : -1, o2 = C2 === "return" ? -1 : 0;
222
- g.moveCursor(u2, a, o2, () => {
223
- g.clearLine(u2, 1, () => {
224
- e2.once("keypress", i);
518
+ if (!e) return;
519
+ const f = a === "return" ? 0 : -1, v = a === "return" ? -1 : 0;
520
+ _.moveCursor(t2, f, v, () => {
521
+ _.clearLine(t2, 1, () => {
522
+ r.once("keypress", n);
225
523
  });
226
524
  });
227
525
  };
228
- return F2 && u2.write(import_sisteransi.cursor.hide), e2.once("keypress", i), () => {
229
- e2.off("keypress", i), F2 && u2.write(import_sisteransi.cursor.show), e2.isTTY && !AD && e2.setRawMode(false), s.terminal = false, s.close();
526
+ return s && t2.write(import_sisteransi.cursor.hide), r.once("keypress", n), () => {
527
+ r.off("keypress", n), s && t2.write(import_sisteransi.cursor.show), r instanceof D && r.isTTY && !Y && r.setRawMode(false), i.terminal = false, i.close();
230
528
  };
231
529
  }
232
- var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
233
- var init_dist = __esm({
234
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
235
- init_utils();
530
+ var import_sisteransi, E, G, u, Y, O;
531
+ var init_dist3 = __esm({
532
+ "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
533
+ init_utils2();
534
+ init_main();
236
535
  import_sisteransi = __toESM(require_src(), 1);
237
- uD = DD();
238
- W = { exports: {} };
239
- (function(e2) {
240
- var u2 = {};
241
- e2.exports = u2, u2.eastAsianWidth = function(F2) {
242
- var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
243
- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D2 = s << 10 | i, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
244
- }, u2.characterLength = function(F2) {
245
- var s = this.eastAsianWidth(F2);
246
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
247
- };
248
- function t(F2) {
249
- return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
250
- }
251
- u2.length = function(F2) {
252
- for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
253
- return i;
254
- }, u2.slice = function(F2, s, i) {
255
- textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
256
- for (var D2 = "", C2 = 0, n = t(F2), E = 0; E < n.length; E++) {
257
- var a = n[E], o2 = u2.length(a);
258
- if (C2 >= s - (o2 == 2 ? 1 : 0)) if (C2 + o2 <= i) D2 += a;
259
- else break;
260
- C2 += o2;
261
- }
262
- return D2;
263
- };
264
- })(W);
265
- tD = W.exports;
266
- eD = L(tD);
267
- FD = function() {
268
- 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;
269
- };
270
- sD = L(FD);
271
- w = 10;
272
- N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
273
- I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
274
- R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
275
- r = { 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] } };
276
- Object.keys(r.modifier);
277
- iD = Object.keys(r.color);
278
- CD = Object.keys(r.bgColor);
279
- [...iD, ...CD];
280
- ED = rD();
281
- nD = "]";
282
- _ = `${nD}8;;`;
283
- xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
284
- B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
285
- AD = globalThis.process.platform.startsWith("win");
286
- A = /* @__PURE__ */ new WeakMap();
536
+ E = ["up", "down", "left", "right", "space", "enter", "cancel"];
537
+ G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
538
+ u = { actions: new Set(E), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...G], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t2) => `There are only ${r} days in ${t2}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
539
+ Y = globalThis.process.platform.startsWith("win");
540
+ O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
287
541
  }
288
542
  });
289
543
 
290
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
291
- import { stripVTControlCharacters as S } from "node:util";
292
- import y from "node:process";
293
- function ce() {
294
- return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
544
+ // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
545
+ import { styleText as t, stripVTControlCharacters as ne } from "node:util";
546
+ import P from "node:process";
547
+ import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
548
+ import { dirname as be, join as Qe } from "node:path";
549
+ function Ze() {
550
+ return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
295
551
  }
296
- var import_picocolors, import_sisteransi2, V, u, le, L2, W2, C, ue, o, d, k, P, A2, T, F, $e, _2, me, de, pe, q, D, U, K, Ie, Se, M2, J, Y;
297
- var init_dist2 = __esm({
298
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
299
- init_utils();
300
- init_dist();
301
- init_dist();
302
- import_picocolors = __toESM(require_picocolors(), 1);
552
+ var import_sisteransi2, ee, ae, w, _e, oe, ue, F, le, d, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, O2, mt, gt, Ct, fe, Ve, je;
553
+ var init_dist4 = __esm({
554
+ "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
555
+ init_utils2();
556
+ init_dist3();
557
+ init_dist3();
558
+ init_main();
559
+ init_dist2();
303
560
  import_sisteransi2 = __toESM(require_src(), 1);
304
- V = ce();
305
- u = (t, n) => V ? t : n;
306
- le = u("\u25C6", "*");
307
- L2 = u("\u25A0", "x");
308
- W2 = u("\u25B2", "x");
309
- C = u("\u25C7", "o");
310
- ue = u("\u250C", "T");
311
- o = u("\u2502", "|");
312
- d = u("\u2514", "\u2014");
313
- k = u("\u25CF", ">");
314
- P = u("\u25CB", " ");
315
- A2 = u("\u25FB", "[\u2022]");
316
- T = u("\u25FC", "[+]");
317
- F = u("\u25FB", "[ ]");
318
- $e = u("\u25AA", "\u2022");
319
- _2 = u("\u2500", "-");
320
- me = u("\u256E", "+");
321
- de = u("\u251C", "+");
322
- pe = u("\u256F", "+");
323
- q = u("\u25CF", "\u2022");
324
- D = u("\u25C6", "*");
325
- U = u("\u25B2", "!");
326
- K = u("\u25A0", "x");
327
- Ie = (t = "") => {
328
- process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
329
- `);
330
- };
331
- Se = (t = "") => {
332
- process.stdout.write(`${import_picocolors.default.gray(o)}
333
- ${import_picocolors.default.gray(d)} ${t}
334
-
335
- `);
336
- };
337
- M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
338
- const r2 = [`${import_picocolors.default.gray(o)}`];
339
- if (t) {
340
- const [i, ...s] = t.split(`
561
+ ee = Ze();
562
+ ae = () => process.env.CI === "true";
563
+ w = (e, i) => ee ? e : i;
564
+ _e = w("\u25C6", "*");
565
+ oe = w("\u25A0", "x");
566
+ ue = w("\u25B2", "x");
567
+ F = w("\u25C7", "o");
568
+ le = w("\u250C", "T");
569
+ d = w("\u2502", "|");
570
+ E2 = w("\u2514", "\u2014");
571
+ Ie = w("\u2510", "T");
572
+ Ee = w("\u2518", "\u2014");
573
+ z2 = w("\u25CF", ">");
574
+ H2 = w("\u25CB", " ");
575
+ te = w("\u25FB", "[\u2022]");
576
+ U = w("\u25FC", "[+]");
577
+ J = w("\u25FB", "[ ]");
578
+ xe = w("\u25AA", "\u2022");
579
+ se = w("\u2500", "-");
580
+ ce = w("\u256E", "+");
581
+ Ge = w("\u251C", "+");
582
+ $e = w("\u256F", "+");
583
+ de = w("\u2570", "+");
584
+ Oe = w("\u256D", "+");
585
+ he = w("\u25CF", "\u2022");
586
+ pe = w("\u25C6", "*");
587
+ me = w("\u25B2", "!");
588
+ ge = w("\u25A0", "x");
589
+ O2 = { message: (e = [], { symbol: i = t("gray", d), secondarySymbol: s = t("gray", d), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
590
+ const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
591
+ for (let p = 0; p < u2; p++) o.push(a);
592
+ const y2 = Array.isArray(e) ? e : e.split(`
341
593
  `);
342
- r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
594
+ if (y2.length > 0) {
595
+ const [p, ...m] = y2;
596
+ p.length > 0 ? o.push(`${l}${p}`) : o.push(c2 ? i : "");
597
+ for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
343
598
  }
344
- process.stdout.write(`${r2.join(`
599
+ r.write(`${o.join(`
345
600
  `)}
346
601
  `);
347
- }, info: (t) => {
348
- M2.message(t, { symbol: import_picocolors.default.blue(q) });
349
- }, success: (t) => {
350
- M2.message(t, { symbol: import_picocolors.default.green(D) });
351
- }, step: (t) => {
352
- M2.message(t, { symbol: import_picocolors.default.green(C) });
353
- }, warn: (t) => {
354
- M2.message(t, { symbol: import_picocolors.default.yellow(U) });
355
- }, warning: (t) => {
356
- M2.warn(t);
357
- }, error: (t) => {
358
- M2.message(t, { symbol: import_picocolors.default.red(K) });
602
+ }, info: (e, i) => {
603
+ O2.message(e, { ...i, symbol: t("blue", he) });
604
+ }, success: (e, i) => {
605
+ O2.message(e, { ...i, symbol: t("green", pe) });
606
+ }, step: (e, i) => {
607
+ O2.message(e, { ...i, symbol: t("green", F) });
608
+ }, warn: (e, i) => {
609
+ O2.message(e, { ...i, symbol: t("yellow", me) });
610
+ }, warning: (e, i) => {
611
+ O2.warn(e, i);
612
+ }, error: (e, i) => {
613
+ O2.message(e, { ...i, symbol: t("red", ge) });
359
614
  } };
360
- J = `${import_picocolors.default.gray(o)} `;
361
- Y = ({ indicator: t = "dots" } = {}) => {
362
- const n = V ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r2 = V ? 80 : 120, i = process.env.CI === "true";
363
- let s, c, a = false, l2 = "", $2, g2 = performance.now();
364
- const p = (m) => {
365
- const h = m > 1 ? "Something went wrong" : "Canceled";
366
- a && N2(h, m);
367
- }, v = () => p(2), f = () => p(1), j2 = () => {
368
- process.on("uncaughtExceptionMonitor", v), process.on("unhandledRejection", v), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p);
369
- }, E = () => {
370
- process.removeListener("uncaughtExceptionMonitor", v), process.removeListener("unhandledRejection", v), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p);
371
- }, B2 = () => {
372
- if ($2 === void 0) return;
373
- i && process.stdout.write(`
615
+ mt = (e = "", i) => {
616
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
617
+ s.write(`${r}${e}
374
618
  `);
375
- const m = $2.split(`
619
+ };
620
+ gt = (e = "", i) => {
621
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d)}
622
+ ${t("gray", E2)} ` : "";
623
+ s.write(`${r}${e}
624
+
625
+ `);
626
+ };
627
+ Ct = (e) => t("magenta", e);
628
+ fe = ({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u2, frames: n = ee ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: o = ee ? 80 : 120, signal: c2, ...a } = {}) => {
629
+ const l = ae();
630
+ let $2, y2, p = false, m = false, g = "", S2, h = performance.now();
631
+ const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
632
+ const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
633
+ m = _2 === 1, p && (W(A2, _2), m && typeof i == "function" && i());
634
+ }, C = () => T(2), b = () => T(1), x = () => {
635
+ process.on("uncaughtExceptionMonitor", C), process.on("unhandledRejection", C), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", T), c2 && c2.addEventListener("abort", b);
636
+ }, G2 = () => {
637
+ process.removeListener("uncaughtExceptionMonitor", C), process.removeListener("unhandledRejection", C), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", T), c2 && c2.removeEventListener("abort", b);
638
+ }, M2 = () => {
639
+ if (S2 === void 0) return;
640
+ l && s.write(`
641
+ `);
642
+ const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
376
643
  `);
377
- process.stdout.write(import_sisteransi2.cursor.move(-999, m.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m.length));
378
- }, R2 = (m) => m.replace(/\.+$/, ""), O = (m) => {
379
- const h = (performance.now() - m) / 1e3, w2 = Math.floor(h / 60), I2 = Math.floor(h % 60);
380
- return w2 > 0 ? `[${w2}m ${I2}s]` : `[${I2}s]`;
381
- }, H = (m = "") => {
382
- a = true, s = fD(), l2 = R2(m), g2 = performance.now(), process.stdout.write(`${import_picocolors.default.gray(o)}
644
+ _2.length > 1 && s.write(import_sisteransi2.cursor.up(_2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
645
+ }, R2 = (_2) => _2.replace(/\.+$/, ""), j = (_2) => {
646
+ const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
647
+ return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
648
+ }, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
649
+ p = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d)}
383
650
  `);
384
- let h = 0, w2 = 0;
385
- j2(), c = setInterval(() => {
386
- if (i && l2 === $2) return;
387
- B2(), $2 = l2;
388
- const I2 = import_picocolors.default.magenta(n[h]);
389
- if (i) process.stdout.write(`${I2} ${l2}...`);
390
- else if (t === "timer") process.stdout.write(`${I2} ${l2} ${O(g2)}`);
651
+ let A2 = 0, k = 0;
652
+ x(), y2 = setInterval(() => {
653
+ if (l && g === S2) return;
654
+ M2(), S2 = g;
655
+ const L = v(n[A2]);
656
+ let Z;
657
+ if (l) Z = `${L} ${g}...`;
658
+ else if (e === "timer") Z = `${L} ${g} ${j(h)}`;
391
659
  else {
392
- const z = ".".repeat(Math.floor(w2)).slice(0, 3);
393
- process.stdout.write(`${I2} ${l2}${z}`);
394
- }
395
- h = h + 1 < n.length ? h + 1 : 0, w2 = w2 < n.length ? w2 + 0.125 : 0;
396
- }, r2);
397
- }, N2 = (m = "", h = 0) => {
398
- a = false, clearInterval(c), B2();
399
- const w2 = h === 0 ? import_picocolors.default.green(C) : h === 1 ? import_picocolors.default.red(L2) : import_picocolors.default.red(W2);
400
- l2 = R2(m ?? l2), t === "timer" ? process.stdout.write(`${w2} ${l2} ${O(g2)}
401
- `) : process.stdout.write(`${w2} ${l2}
402
- `), E(), s();
660
+ const Be = ".".repeat(Math.floor(k)).slice(0, 3);
661
+ Z = `${L} ${g}${Be}`;
662
+ }
663
+ const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
664
+ s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
665
+ }, o);
666
+ }, W = (_2 = "", A2 = 0, k = false) => {
667
+ if (!p) return;
668
+ p = false, clearInterval(y2), M2();
669
+ const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
670
+ g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j(h)}
671
+ `) : s.write(`${L} ${g}
672
+ `)), G2(), $2();
403
673
  };
404
- return { start: H, stop: N2, message: (m = "") => {
405
- l2 = R2(m ?? l2);
674
+ return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
675
+ g = R2(_2 ?? g);
676
+ }, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
677
+ return m;
406
678
  } };
407
679
  };
680
+ Ve = { light: w("\u2500", "-"), heavy: w("\u2501", "="), block: w("\u2588", "#") };
681
+ je = `${t("gray", d)} `;
408
682
  }
409
683
  });
410
684
 
@@ -469,15 +743,15 @@ ${contextStr}`;
469
743
 
470
744
  Original error: ${originalMsg}`;
471
745
  }
472
- M2.error(message);
746
+ O2.error(message);
473
747
  }
474
748
  var colors, colorUtils, currentLogLevel, log, error, warn, info, success;
475
749
  var init_cli_output = __esm({
476
750
  "packages/tooling/src/utils/cli-output.ts"() {
477
751
  "use strict";
478
- init_utils();
479
- init_dist2();
480
- init_dist2();
752
+ init_utils2();
753
+ init_dist4();
754
+ init_dist4();
481
755
  colors = {
482
756
  reset: "\x1B[0m",
483
757
  // Success (green)
@@ -517,7 +791,7 @@ var init_cli_output = __esm({
517
791
  error(...args) {
518
792
  if (currentLogLevel < 0 /* Quiet */) return;
519
793
  const message = formatMessage(...args);
520
- M2.error(colorize(message, colors.brightRed));
794
+ O2.error(colorize(message, colors.brightRed));
521
795
  },
522
796
  /**
523
797
  * Logs a warning message (shows at Normal level and above)
@@ -526,7 +800,7 @@ var init_cli_output = __esm({
526
800
  warn(...args) {
527
801
  if (currentLogLevel < 1 /* Normal */) return;
528
802
  const message = formatMessage(...args);
529
- M2.warn(colorize(message, colors.brightYellow));
803
+ O2.warn(colorize(message, colors.brightYellow));
530
804
  },
531
805
  /**
532
806
  * Logs an info message (shows at Normal level and above)
@@ -535,7 +809,7 @@ var init_cli_output = __esm({
535
809
  info(...args) {
536
810
  if (currentLogLevel < 1 /* Normal */) return;
537
811
  const message = formatMessage(...args);
538
- M2.info(colorize(message, colors.brightCyan));
812
+ O2.info(colorize(message, colors.brightCyan));
539
813
  },
540
814
  /**
541
815
  * Logs a success message (shows at Normal level and above)
@@ -544,7 +818,7 @@ var init_cli_output = __esm({
544
818
  success(...args) {
545
819
  if (currentLogLevel < 1 /* Normal */) return;
546
820
  const message = formatMessage(...args);
547
- M2.success(colorize(message, colors.brightGreen));
821
+ O2.success(colorize(message, colors.brightGreen));
548
822
  },
549
823
  /**
550
824
  * Logs a debug message (only shows at Verbose level and above)
@@ -553,7 +827,7 @@ var init_cli_output = __esm({
553
827
  debug(...args) {
554
828
  if (currentLogLevel < 2 /* Verbose */) return;
555
829
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
556
- M2.message(
830
+ O2.message(
557
831
  colorize(
558
832
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
559
833
  colors.gray
@@ -567,7 +841,7 @@ var init_cli_output = __esm({
567
841
  trace(...args) {
568
842
  if (currentLogLevel < 3 /* Debug */) return;
569
843
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
570
- M2.message(
844
+ O2.message(
571
845
  colorize(
572
846
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
573
847
  colors.gray
@@ -587,7 +861,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
587
861
  var init_errors = __esm({
588
862
  "packages/tooling/src/utils/errors.ts"() {
589
863
  "use strict";
590
- init_utils();
864
+ init_utils2();
591
865
  DO_NOT_DEV_ERROR_CODES = {
592
866
  CONFIGURATION_ERROR: "configuration-error",
593
867
  CONFIG_NOT_FOUND: "config-not-found",
@@ -728,7 +1002,7 @@ var init_errors = __esm({
728
1002
  var require_array = __commonJS({
729
1003
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
730
1004
  "use strict";
731
- init_utils();
1005
+ init_utils2();
732
1006
  Object.defineProperty(exports, "__esModule", { value: true });
733
1007
  exports.splitWhen = exports.flatten = void 0;
734
1008
  function flatten(items) {
@@ -756,7 +1030,7 @@ var require_array = __commonJS({
756
1030
  var require_errno = __commonJS({
757
1031
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
758
1032
  "use strict";
759
- init_utils();
1033
+ init_utils2();
760
1034
  Object.defineProperty(exports, "__esModule", { value: true });
761
1035
  exports.isEnoentCodeError = void 0;
762
1036
  function isEnoentCodeError(error2) {
@@ -770,7 +1044,7 @@ var require_errno = __commonJS({
770
1044
  var require_fs = __commonJS({
771
1045
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
772
1046
  "use strict";
773
- init_utils();
1047
+ init_utils2();
774
1048
  Object.defineProperty(exports, "__esModule", { value: true });
775
1049
  exports.createDirentFromStats = void 0;
776
1050
  var DirentFromStats = class {
@@ -796,7 +1070,7 @@ var require_fs = __commonJS({
796
1070
  var require_path = __commonJS({
797
1071
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
798
1072
  "use strict";
799
- init_utils();
1073
+ init_utils2();
800
1074
  Object.defineProperty(exports, "__esModule", { value: true });
801
1075
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
802
1076
  var os = __require("os");
@@ -849,7 +1123,7 @@ var require_path = __commonJS({
849
1123
  // node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
850
1124
  var require_is_extglob = __commonJS({
851
1125
  "node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
852
- init_utils();
1126
+ init_utils2();
853
1127
  module.exports = function isExtglob(str) {
854
1128
  if (typeof str !== "string" || str === "") {
855
1129
  return false;
@@ -867,7 +1141,7 @@ var require_is_extglob = __commonJS({
867
1141
  // node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
868
1142
  var require_is_glob = __commonJS({
869
1143
  "node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
870
- init_utils();
1144
+ init_utils2();
871
1145
  var isExtglob = require_is_extglob();
872
1146
  var chars = { "{": "}", "(": ")", "[": "]" };
873
1147
  var strictCheck = function(str) {
@@ -1000,7 +1274,7 @@ var require_is_glob = __commonJS({
1000
1274
  var require_glob_parent = __commonJS({
1001
1275
  "node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
1002
1276
  "use strict";
1003
- init_utils();
1277
+ init_utils2();
1004
1278
  var isGlob = require_is_glob();
1005
1279
  var pathPosixDirname = __require("path").posix.dirname;
1006
1280
  var isWin32 = __require("os").platform() === "win32";
@@ -1030,7 +1304,7 @@ var require_glob_parent = __commonJS({
1030
1304
  var require_utils = __commonJS({
1031
1305
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
1032
1306
  "use strict";
1033
- init_utils();
1307
+ init_utils2();
1034
1308
  exports.isInteger = (num) => {
1035
1309
  if (typeof num === "number") {
1036
1310
  return Number.isInteger(num);
@@ -1113,7 +1387,7 @@ var require_utils = __commonJS({
1113
1387
  var require_stringify = __commonJS({
1114
1388
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
1115
1389
  "use strict";
1116
- init_utils();
1390
+ init_utils2();
1117
1391
  var utils = require_utils();
1118
1392
  module.exports = (ast, options = {}) => {
1119
1393
  const stringify2 = (node, parent = {}) => {
@@ -1145,7 +1419,7 @@ var require_stringify = __commonJS({
1145
1419
  var require_is_number = __commonJS({
1146
1420
  "node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
1147
1421
  "use strict";
1148
- init_utils();
1422
+ init_utils2();
1149
1423
  module.exports = function(num) {
1150
1424
  if (typeof num === "number") {
1151
1425
  return num - num === 0;
@@ -1162,7 +1436,7 @@ var require_is_number = __commonJS({
1162
1436
  var require_to_regex_range = __commonJS({
1163
1437
  "node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
1164
1438
  "use strict";
1165
- init_utils();
1439
+ init_utils2();
1166
1440
  var isNumber = require_is_number();
1167
1441
  var toRegexRange = (min, max, options) => {
1168
1442
  if (isNumber(min) === false) {
@@ -1187,8 +1461,8 @@ var require_to_regex_range = __commonJS({
1187
1461
  return toRegexRange.cache[cacheKey].result;
1188
1462
  }
1189
1463
  let a = Math.min(min, max);
1190
- let b2 = Math.max(min, max);
1191
- if (Math.abs(a - b2) === 1) {
1464
+ let b = Math.max(min, max);
1465
+ if (Math.abs(a - b) === 1) {
1192
1466
  let result = min + "|" + max;
1193
1467
  if (opts.capture) {
1194
1468
  return `(${result})`;
@@ -1199,7 +1473,7 @@ var require_to_regex_range = __commonJS({
1199
1473
  return `(?:${result})`;
1200
1474
  }
1201
1475
  let isPadded = hasPadding(min) || hasPadding(max);
1202
- let state = { min, max, a, b: b2 };
1476
+ let state = { min, max, a, b };
1203
1477
  let positives = [];
1204
1478
  let negatives = [];
1205
1479
  if (isPadded) {
@@ -1207,12 +1481,12 @@ var require_to_regex_range = __commonJS({
1207
1481
  state.maxLen = String(state.max).length;
1208
1482
  }
1209
1483
  if (a < 0) {
1210
- let newMin = b2 < 0 ? Math.abs(b2) : 1;
1484
+ let newMin = b < 0 ? Math.abs(b) : 1;
1211
1485
  negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
1212
1486
  a = state.a = 0;
1213
1487
  }
1214
- if (b2 >= 0) {
1215
- positives = splitToPatterns(a, b2, state, opts);
1488
+ if (b >= 0) {
1489
+ positives = splitToPatterns(a, b, state, opts);
1216
1490
  }
1217
1491
  state.negatives = negatives;
1218
1492
  state.positives = positives;
@@ -1316,13 +1590,13 @@ var require_to_regex_range = __commonJS({
1316
1590
  }
1317
1591
  return result;
1318
1592
  }
1319
- function zip(a, b2) {
1593
+ function zip(a, b) {
1320
1594
  let arr = [];
1321
- for (let i = 0; i < a.length; i++) arr.push([a[i], b2[i]]);
1595
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1322
1596
  return arr;
1323
1597
  }
1324
- function compare(a, b2) {
1325
- return a > b2 ? 1 : b2 > a ? -1 : 0;
1598
+ function compare(a, b) {
1599
+ return a > b ? 1 : b > a ? -1 : 0;
1326
1600
  }
1327
1601
  function contains(arr, key, val) {
1328
1602
  return arr.some((ele) => ele[key] === val);
@@ -1340,8 +1614,8 @@ var require_to_regex_range = __commonJS({
1340
1614
  }
1341
1615
  return "";
1342
1616
  }
1343
- function toCharacterClass(a, b2, options) {
1344
- return `[${a}${b2 - a === 1 ? "" : "-"}${b2}]`;
1617
+ function toCharacterClass(a, b, options) {
1618
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1345
1619
  }
1346
1620
  function hasPadding(str) {
1347
1621
  return /^-?(0+)\d/.test(str);
@@ -1374,7 +1648,7 @@ var require_to_regex_range = __commonJS({
1374
1648
  var require_fill_range = __commonJS({
1375
1649
  "node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
1376
1650
  "use strict";
1377
- init_utils();
1651
+ init_utils2();
1378
1652
  var util = __require("util");
1379
1653
  var toRegexRange = require_to_regex_range();
1380
1654
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -1420,8 +1694,8 @@ var require_fill_range = __commonJS({
1420
1694
  return negative ? "-" + input : input;
1421
1695
  };
1422
1696
  var toSequence = (parts, options, maxLen) => {
1423
- parts.negatives.sort((a, b2) => a < b2 ? -1 : a > b2 ? 1 : 0);
1424
- parts.positives.sort((a, b2) => a < b2 ? -1 : a > b2 ? 1 : 0);
1697
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1698
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1425
1699
  let prefix = options.capture ? "" : "?:";
1426
1700
  let positives = "";
1427
1701
  let negatives = "";
@@ -1442,13 +1716,13 @@ var require_fill_range = __commonJS({
1442
1716
  }
1443
1717
  return result;
1444
1718
  };
1445
- var toRange = (a, b2, isNumbers, options) => {
1719
+ var toRange = (a, b, isNumbers, options) => {
1446
1720
  if (isNumbers) {
1447
- return toRegexRange(a, b2, { wrap: false, ...options });
1721
+ return toRegexRange(a, b, { wrap: false, ...options });
1448
1722
  }
1449
1723
  let start = String.fromCharCode(a);
1450
- if (a === b2) return start;
1451
- let stop = String.fromCharCode(b2);
1724
+ if (a === b) return start;
1725
+ let stop = String.fromCharCode(b);
1452
1726
  return `[${start}-${stop}]`;
1453
1727
  };
1454
1728
  var toRegex = (start, end, options) => {
@@ -1474,14 +1748,14 @@ var require_fill_range = __commonJS({
1474
1748
  };
1475
1749
  var fillNumbers = (start, end, step = 1, options = {}) => {
1476
1750
  let a = Number(start);
1477
- let b2 = Number(end);
1478
- if (!Number.isInteger(a) || !Number.isInteger(b2)) {
1751
+ let b = Number(end);
1752
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
1479
1753
  if (options.strictRanges === true) throw rangeError([start, end]);
1480
1754
  return [];
1481
1755
  }
1482
1756
  if (a === 0) a = 0;
1483
- if (b2 === 0) b2 = 0;
1484
- let descending = a > b2;
1757
+ if (b === 0) b = 0;
1758
+ let descending = a > b;
1485
1759
  let startString = String(start);
1486
1760
  let endString = String(end);
1487
1761
  let stepString = String(step);
@@ -1497,7 +1771,7 @@ var require_fill_range = __commonJS({
1497
1771
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1498
1772
  let range = [];
1499
1773
  let index = 0;
1500
- while (descending ? a >= b2 : a <= b2) {
1774
+ while (descending ? a >= b : a <= b) {
1501
1775
  if (options.toRegex === true && step > 1) {
1502
1776
  push(a);
1503
1777
  } else {
@@ -1517,16 +1791,16 @@ var require_fill_range = __commonJS({
1517
1791
  }
1518
1792
  let format = options.transform || ((val) => String.fromCharCode(val));
1519
1793
  let a = `${start}`.charCodeAt(0);
1520
- let b2 = `${end}`.charCodeAt(0);
1521
- let descending = a > b2;
1522
- let min = Math.min(a, b2);
1523
- let max = Math.max(a, b2);
1794
+ let b = `${end}`.charCodeAt(0);
1795
+ let descending = a > b;
1796
+ let min = Math.min(a, b);
1797
+ let max = Math.max(a, b);
1524
1798
  if (options.toRegex && step === 1) {
1525
1799
  return toRange(min, max, false, options);
1526
1800
  }
1527
1801
  let range = [];
1528
1802
  let index = 0;
1529
- while (descending ? a >= b2 : a <= b2) {
1803
+ while (descending ? a >= b : a <= b) {
1530
1804
  range.push(format(a, index));
1531
1805
  a = descending ? a - step : a + step;
1532
1806
  index++;
@@ -1569,7 +1843,7 @@ var require_fill_range = __commonJS({
1569
1843
  var require_compile = __commonJS({
1570
1844
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
1571
1845
  "use strict";
1572
- init_utils();
1846
+ init_utils2();
1573
1847
  var fill = require_fill_range();
1574
1848
  var utils = require_utils();
1575
1849
  var compile = (ast, options = {}) => {
@@ -1621,7 +1895,7 @@ var require_compile = __commonJS({
1621
1895
  var require_expand = __commonJS({
1622
1896
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
1623
1897
  "use strict";
1624
- init_utils();
1898
+ init_utils2();
1625
1899
  var fill = require_fill_range();
1626
1900
  var stringify2 = require_stringify();
1627
1901
  var utils = require_utils();
@@ -1716,7 +1990,7 @@ var require_expand = __commonJS({
1716
1990
  var require_constants = __commonJS({
1717
1991
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
1718
1992
  "use strict";
1719
- init_utils();
1993
+ init_utils2();
1720
1994
  module.exports = {
1721
1995
  MAX_LENGTH: 1e4,
1722
1996
  // Digits
@@ -1818,7 +2092,7 @@ var require_constants = __commonJS({
1818
2092
  var require_parse = __commonJS({
1819
2093
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
1820
2094
  "use strict";
1821
- init_utils();
2095
+ init_utils2();
1822
2096
  var stringify2 = require_stringify();
1823
2097
  var {
1824
2098
  MAX_LENGTH,
@@ -2057,7 +2331,7 @@ var require_parse = __commonJS({
2057
2331
  var require_braces = __commonJS({
2058
2332
  "node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
2059
2333
  "use strict";
2060
- init_utils();
2334
+ init_utils2();
2061
2335
  var stringify2 = require_stringify();
2062
2336
  var compile = require_compile();
2063
2337
  var expand = require_expand();
@@ -2117,14 +2391,15 @@ var require_braces = __commonJS({
2117
2391
  }
2118
2392
  });
2119
2393
 
2120
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2394
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2121
2395
  var require_constants2 = __commonJS({
2122
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2396
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2123
2397
  "use strict";
2124
- init_utils();
2398
+ init_utils2();
2125
2399
  var path = __require("path");
2126
2400
  var WIN_SLASH = "\\\\/";
2127
2401
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2402
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2128
2403
  var DOT_LITERAL = "\\.";
2129
2404
  var PLUS_LITERAL = "\\+";
2130
2405
  var QMARK_LITERAL = "\\?";
@@ -2172,6 +2447,7 @@ var require_constants2 = __commonJS({
2172
2447
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2173
2448
  };
2174
2449
  var POSIX_REGEX_SOURCE = {
2450
+ __proto__: null,
2175
2451
  alnum: "a-zA-Z0-9",
2176
2452
  alpha: "a-zA-Z",
2177
2453
  ascii: "\\x00-\\x7F",
@@ -2188,6 +2464,7 @@ var require_constants2 = __commonJS({
2188
2464
  xdigit: "A-Fa-f0-9"
2189
2465
  };
2190
2466
  module.exports = {
2467
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2191
2468
  MAX_LENGTH: 1024 * 64,
2192
2469
  POSIX_REGEX_SOURCE,
2193
2470
  // regular expressions
@@ -2199,6 +2476,7 @@ var require_constants2 = __commonJS({
2199
2476
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2200
2477
  // Replace globs with equivalent patterns to reduce parsing time.
2201
2478
  REPLACEMENTS: {
2479
+ __proto__: null,
2202
2480
  "***": "*",
2203
2481
  "**/**": "**",
2204
2482
  "**/**/**": "**"
@@ -2315,11 +2593,11 @@ var require_constants2 = __commonJS({
2315
2593
  }
2316
2594
  });
2317
2595
 
2318
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2596
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2319
2597
  var require_utils2 = __commonJS({
2320
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2598
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2321
2599
  "use strict";
2322
- init_utils();
2600
+ init_utils2();
2323
2601
  var path = __require("path");
2324
2602
  var win32 = process.platform === "win32";
2325
2603
  var {
@@ -2377,11 +2655,11 @@ var require_utils2 = __commonJS({
2377
2655
  }
2378
2656
  });
2379
2657
 
2380
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2658
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2381
2659
  var require_scan = __commonJS({
2382
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2660
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2383
2661
  "use strict";
2384
- init_utils();
2662
+ init_utils2();
2385
2663
  var utils = require_utils2();
2386
2664
  var {
2387
2665
  CHAR_ASTERISK,
@@ -2708,11 +2986,11 @@ var require_scan = __commonJS({
2708
2986
  }
2709
2987
  });
2710
2988
 
2711
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
2989
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2712
2990
  var require_parse2 = __commonJS({
2713
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
2991
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2714
2992
  "use strict";
2715
- init_utils();
2993
+ init_utils2();
2716
2994
  var constants2 = require_constants2();
2717
2995
  var utils = require_utils2();
2718
2996
  var {
@@ -2738,6 +3016,213 @@ var require_parse2 = __commonJS({
2738
3016
  var syntaxError = (type, char) => {
2739
3017
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2740
3018
  };
3019
+ var splitTopLevel = (input) => {
3020
+ const parts = [];
3021
+ let bracket = 0;
3022
+ let paren = 0;
3023
+ let quote = 0;
3024
+ let value = "";
3025
+ let escaped = false;
3026
+ for (const ch of input) {
3027
+ if (escaped === true) {
3028
+ value += ch;
3029
+ escaped = false;
3030
+ continue;
3031
+ }
3032
+ if (ch === "\\") {
3033
+ value += ch;
3034
+ escaped = true;
3035
+ continue;
3036
+ }
3037
+ if (ch === '"') {
3038
+ quote = quote === 1 ? 0 : 1;
3039
+ value += ch;
3040
+ continue;
3041
+ }
3042
+ if (quote === 0) {
3043
+ if (ch === "[") {
3044
+ bracket++;
3045
+ } else if (ch === "]" && bracket > 0) {
3046
+ bracket--;
3047
+ } else if (bracket === 0) {
3048
+ if (ch === "(") {
3049
+ paren++;
3050
+ } else if (ch === ")" && paren > 0) {
3051
+ paren--;
3052
+ } else if (ch === "|" && paren === 0) {
3053
+ parts.push(value);
3054
+ value = "";
3055
+ continue;
3056
+ }
3057
+ }
3058
+ }
3059
+ value += ch;
3060
+ }
3061
+ parts.push(value);
3062
+ return parts;
3063
+ };
3064
+ var isPlainBranch = (branch) => {
3065
+ let escaped = false;
3066
+ for (const ch of branch) {
3067
+ if (escaped === true) {
3068
+ escaped = false;
3069
+ continue;
3070
+ }
3071
+ if (ch === "\\") {
3072
+ escaped = true;
3073
+ continue;
3074
+ }
3075
+ if (/[?*+@!()[\]{}]/.test(ch)) {
3076
+ return false;
3077
+ }
3078
+ }
3079
+ return true;
3080
+ };
3081
+ var normalizeSimpleBranch = (branch) => {
3082
+ let value = branch.trim();
3083
+ let changed = true;
3084
+ while (changed === true) {
3085
+ changed = false;
3086
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
3087
+ value = value.slice(2, -1);
3088
+ changed = true;
3089
+ }
3090
+ }
3091
+ if (!isPlainBranch(value)) {
3092
+ return;
3093
+ }
3094
+ return value.replace(/\\(.)/g, "$1");
3095
+ };
3096
+ var hasRepeatedCharPrefixOverlap = (branches) => {
3097
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
3098
+ for (let i = 0; i < values.length; i++) {
3099
+ for (let j = i + 1; j < values.length; j++) {
3100
+ const a = values[i];
3101
+ const b = values[j];
3102
+ const char = a[0];
3103
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
3104
+ continue;
3105
+ }
3106
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
3107
+ return true;
3108
+ }
3109
+ }
3110
+ }
3111
+ return false;
3112
+ };
3113
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
3114
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
3115
+ return;
3116
+ }
3117
+ let bracket = 0;
3118
+ let paren = 0;
3119
+ let quote = 0;
3120
+ let escaped = false;
3121
+ for (let i = 1; i < pattern.length; i++) {
3122
+ const ch = pattern[i];
3123
+ if (escaped === true) {
3124
+ escaped = false;
3125
+ continue;
3126
+ }
3127
+ if (ch === "\\") {
3128
+ escaped = true;
3129
+ continue;
3130
+ }
3131
+ if (ch === '"') {
3132
+ quote = quote === 1 ? 0 : 1;
3133
+ continue;
3134
+ }
3135
+ if (quote === 1) {
3136
+ continue;
3137
+ }
3138
+ if (ch === "[") {
3139
+ bracket++;
3140
+ continue;
3141
+ }
3142
+ if (ch === "]" && bracket > 0) {
3143
+ bracket--;
3144
+ continue;
3145
+ }
3146
+ if (bracket > 0) {
3147
+ continue;
3148
+ }
3149
+ if (ch === "(") {
3150
+ paren++;
3151
+ continue;
3152
+ }
3153
+ if (ch === ")") {
3154
+ paren--;
3155
+ if (paren === 0) {
3156
+ if (requireEnd === true && i !== pattern.length - 1) {
3157
+ return;
3158
+ }
3159
+ return {
3160
+ type: pattern[0],
3161
+ body: pattern.slice(2, i),
3162
+ end: i
3163
+ };
3164
+ }
3165
+ }
3166
+ }
3167
+ };
3168
+ var getStarExtglobSequenceOutput = (pattern) => {
3169
+ let index = 0;
3170
+ const chars = [];
3171
+ while (index < pattern.length) {
3172
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3173
+ if (!match || match.type !== "*") {
3174
+ return;
3175
+ }
3176
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3177
+ if (branches.length !== 1) {
3178
+ return;
3179
+ }
3180
+ const branch = normalizeSimpleBranch(branches[0]);
3181
+ if (!branch || branch.length !== 1) {
3182
+ return;
3183
+ }
3184
+ chars.push(branch);
3185
+ index += match.end + 1;
3186
+ }
3187
+ if (chars.length < 1) {
3188
+ return;
3189
+ }
3190
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3191
+ return `${source}*`;
3192
+ };
3193
+ var repeatedExtglobRecursion = (pattern) => {
3194
+ let depth = 0;
3195
+ let value = pattern.trim();
3196
+ let match = parseRepeatedExtglob(value);
3197
+ while (match) {
3198
+ depth++;
3199
+ value = match.body.trim();
3200
+ match = parseRepeatedExtglob(value);
3201
+ }
3202
+ return depth;
3203
+ };
3204
+ var analyzeRepeatedExtglob = (body, options) => {
3205
+ if (options.maxExtglobRecursion === false) {
3206
+ return { risky: false };
3207
+ }
3208
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3209
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3210
+ if (branches.length > 1) {
3211
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3212
+ return { risky: true };
3213
+ }
3214
+ }
3215
+ for (const branch of branches) {
3216
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3217
+ if (safeOutput) {
3218
+ return { risky: true, safeOutput };
3219
+ }
3220
+ if (repeatedExtglobRecursion(branch) > max) {
3221
+ return { risky: true };
3222
+ }
3223
+ }
3224
+ return { risky: false };
3225
+ };
2741
3226
  var parse2 = (input, options) => {
2742
3227
  if (typeof input !== "string") {
2743
3228
  throw new TypeError("Expected a string");
@@ -2869,6 +3354,8 @@ var require_parse2 = __commonJS({
2869
3354
  token.prev = prev;
2870
3355
  token.parens = state.parens;
2871
3356
  token.output = state.output;
3357
+ token.startIndex = state.index;
3358
+ token.tokensIndex = tokens.length;
2872
3359
  const output = (opts.capture ? "(" : "") + token.open;
2873
3360
  increment("parens");
2874
3361
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -2876,6 +3363,26 @@ var require_parse2 = __commonJS({
2876
3363
  extglobs.push(token);
2877
3364
  };
2878
3365
  const extglobClose = (token) => {
3366
+ const literal = input.slice(token.startIndex, state.index + 1);
3367
+ const body = input.slice(token.startIndex + 2, state.index);
3368
+ const analysis = analyzeRepeatedExtglob(body, opts);
3369
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3370
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3371
+ const open = tokens[token.tokensIndex];
3372
+ open.type = "text";
3373
+ open.value = literal;
3374
+ open.output = safeOutput || utils.escapeRegex(literal);
3375
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3376
+ tokens[i].value = "";
3377
+ tokens[i].output = "";
3378
+ delete tokens[i].suffix;
3379
+ }
3380
+ state.output = token.output + open.output;
3381
+ state.backtrack = true;
3382
+ push({ type: "paren", extglob: true, value, output: "" });
3383
+ decrement("parens");
3384
+ return;
3385
+ }
2879
3386
  let output = token.close + (opts.capture ? ")" : "");
2880
3387
  let rest;
2881
3388
  if (token.type === "negate") {
@@ -3129,8 +3636,8 @@ var require_parse2 = __commonJS({
3129
3636
  brace.value = brace.output = "\\{";
3130
3637
  value = output = "\\}";
3131
3638
  state.output = out;
3132
- for (const t of toks) {
3133
- state.output += t.output || t.value;
3639
+ for (const t2 of toks) {
3640
+ state.output += t2.output || t2.value;
3134
3641
  }
3135
3642
  }
3136
3643
  push({ type: "brace", value, output });
@@ -3482,11 +3989,11 @@ var require_parse2 = __commonJS({
3482
3989
  }
3483
3990
  });
3484
3991
 
3485
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
3992
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3486
3993
  var require_picomatch = __commonJS({
3487
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3994
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3488
3995
  "use strict";
3489
- init_utils();
3996
+ init_utils2();
3490
3997
  var path = __require("path");
3491
3998
  var scan = require_scan();
3492
3999
  var parse2 = require_parse2();
@@ -3624,11 +4131,11 @@ var require_picomatch = __commonJS({
3624
4131
  }
3625
4132
  });
3626
4133
 
3627
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
4134
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3628
4135
  var require_picomatch2 = __commonJS({
3629
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
4136
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3630
4137
  "use strict";
3631
- init_utils();
4138
+ init_utils2();
3632
4139
  module.exports = require_picomatch();
3633
4140
  }
3634
4141
  });
@@ -3637,7 +4144,7 @@ var require_picomatch2 = __commonJS({
3637
4144
  var require_micromatch = __commonJS({
3638
4145
  "node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
3639
4146
  "use strict";
3640
- init_utils();
4147
+ init_utils2();
3641
4148
  var util = __require("util");
3642
4149
  var braces = require_braces();
3643
4150
  var picomatch = require_picomatch2();
@@ -3799,7 +4306,7 @@ var require_micromatch = __commonJS({
3799
4306
  var require_pattern = __commonJS({
3800
4307
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
3801
4308
  "use strict";
3802
- init_utils();
4309
+ init_utils2();
3803
4310
  Object.defineProperty(exports, "__esModule", { value: true });
3804
4311
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
3805
4312
  var path = __require("path");
@@ -3909,7 +4416,7 @@ var require_pattern = __commonJS({
3909
4416
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
3910
4417
  function expandBraceExpansion(pattern) {
3911
4418
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
3912
- patterns.sort((a, b2) => a.length - b2.length);
4419
+ patterns.sort((a, b) => a.length - b.length);
3913
4420
  return patterns.filter((pattern2) => pattern2 !== "");
3914
4421
  }
3915
4422
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -3965,7 +4472,7 @@ var require_pattern = __commonJS({
3965
4472
  var require_merge2 = __commonJS({
3966
4473
  "node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
3967
4474
  "use strict";
3968
- init_utils();
4475
+ init_utils2();
3969
4476
  var Stream = __require("stream");
3970
4477
  var PassThrough = Stream.PassThrough;
3971
4478
  var slice = Array.prototype.slice;
@@ -4085,7 +4592,7 @@ var require_merge2 = __commonJS({
4085
4592
  var require_stream = __commonJS({
4086
4593
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
4087
4594
  "use strict";
4088
- init_utils();
4595
+ init_utils2();
4089
4596
  Object.defineProperty(exports, "__esModule", { value: true });
4090
4597
  exports.merge = void 0;
4091
4598
  var merge2 = require_merge2();
@@ -4109,7 +4616,7 @@ var require_stream = __commonJS({
4109
4616
  var require_string = __commonJS({
4110
4617
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
4111
4618
  "use strict";
4112
- init_utils();
4619
+ init_utils2();
4113
4620
  Object.defineProperty(exports, "__esModule", { value: true });
4114
4621
  exports.isEmpty = exports.isString = void 0;
4115
4622
  function isString(input) {
@@ -4127,7 +4634,7 @@ var require_string = __commonJS({
4127
4634
  var require_utils3 = __commonJS({
4128
4635
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
4129
4636
  "use strict";
4130
- init_utils();
4637
+ init_utils2();
4131
4638
  Object.defineProperty(exports, "__esModule", { value: true });
4132
4639
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
4133
4640
  var array = require_array();
@@ -4151,7 +4658,7 @@ var require_utils3 = __commonJS({
4151
4658
  var require_tasks = __commonJS({
4152
4659
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
4153
4660
  "use strict";
4154
- init_utils();
4661
+ init_utils2();
4155
4662
  Object.defineProperty(exports, "__esModule", { value: true });
4156
4663
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4157
4664
  var utils = require_utils3();
@@ -4248,7 +4755,7 @@ var require_tasks = __commonJS({
4248
4755
  var require_async = __commonJS({
4249
4756
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
4250
4757
  "use strict";
4251
- init_utils();
4758
+ init_utils2();
4252
4759
  Object.defineProperty(exports, "__esModule", { value: true });
4253
4760
  exports.read = void 0;
4254
4761
  function read(path, settings, callback) {
@@ -4291,7 +4798,7 @@ var require_async = __commonJS({
4291
4798
  var require_sync = __commonJS({
4292
4799
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
4293
4800
  "use strict";
4294
- init_utils();
4801
+ init_utils2();
4295
4802
  Object.defineProperty(exports, "__esModule", { value: true });
4296
4803
  exports.read = void 0;
4297
4804
  function read(path, settings) {
@@ -4320,7 +4827,7 @@ var require_sync = __commonJS({
4320
4827
  var require_fs2 = __commonJS({
4321
4828
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
4322
4829
  "use strict";
4323
- init_utils();
4830
+ init_utils2();
4324
4831
  Object.defineProperty(exports, "__esModule", { value: true });
4325
4832
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4326
4833
  var fs2 = __require("fs");
@@ -4344,7 +4851,7 @@ var require_fs2 = __commonJS({
4344
4851
  var require_settings = __commonJS({
4345
4852
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
4346
4853
  "use strict";
4347
- init_utils();
4854
+ init_utils2();
4348
4855
  Object.defineProperty(exports, "__esModule", { value: true });
4349
4856
  var fs2 = require_fs2();
4350
4857
  var Settings = class {
@@ -4367,7 +4874,7 @@ var require_settings = __commonJS({
4367
4874
  var require_out = __commonJS({
4368
4875
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
4369
4876
  "use strict";
4370
- init_utils();
4877
+ init_utils2();
4371
4878
  Object.defineProperty(exports, "__esModule", { value: true });
4372
4879
  exports.statSync = exports.stat = exports.Settings = void 0;
4373
4880
  var async = require_async();
@@ -4399,7 +4906,7 @@ var require_out = __commonJS({
4399
4906
  // node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
4400
4907
  var require_queue_microtask = __commonJS({
4401
4908
  "node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
4402
- init_utils();
4909
+ init_utils2();
4403
4910
  var promise;
4404
4911
  module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
4405
4912
  throw err;
@@ -4410,7 +4917,7 @@ var require_queue_microtask = __commonJS({
4410
4917
  // node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
4411
4918
  var require_run_parallel = __commonJS({
4412
4919
  "node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
4413
- init_utils();
4920
+ init_utils2();
4414
4921
  module.exports = runParallel;
4415
4922
  var queueMicrotask2 = require_queue_microtask();
4416
4923
  function runParallel(tasks, cb) {
@@ -4462,7 +4969,7 @@ var require_run_parallel = __commonJS({
4462
4969
  var require_constants3 = __commonJS({
4463
4970
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
4464
4971
  "use strict";
4465
- init_utils();
4972
+ init_utils2();
4466
4973
  Object.defineProperty(exports, "__esModule", { value: true });
4467
4974
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4468
4975
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
@@ -4483,7 +4990,7 @@ var require_constants3 = __commonJS({
4483
4990
  var require_fs3 = __commonJS({
4484
4991
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
4485
4992
  "use strict";
4486
- init_utils();
4993
+ init_utils2();
4487
4994
  Object.defineProperty(exports, "__esModule", { value: true });
4488
4995
  exports.createDirentFromStats = void 0;
4489
4996
  var DirentFromStats = class {
@@ -4509,7 +5016,7 @@ var require_fs3 = __commonJS({
4509
5016
  var require_utils4 = __commonJS({
4510
5017
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4511
5018
  "use strict";
4512
- init_utils();
5019
+ init_utils2();
4513
5020
  Object.defineProperty(exports, "__esModule", { value: true });
4514
5021
  exports.fs = void 0;
4515
5022
  var fs2 = require_fs3();
@@ -4521,14 +5028,14 @@ var require_utils4 = __commonJS({
4521
5028
  var require_common = __commonJS({
4522
5029
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4523
5030
  "use strict";
4524
- init_utils();
5031
+ init_utils2();
4525
5032
  Object.defineProperty(exports, "__esModule", { value: true });
4526
5033
  exports.joinPathSegments = void 0;
4527
- function joinPathSegments(a, b2, separator) {
5034
+ function joinPathSegments(a, b, separator) {
4528
5035
  if (a.endsWith(separator)) {
4529
- return a + b2;
5036
+ return a + b;
4530
5037
  }
4531
- return a + separator + b2;
5038
+ return a + separator + b;
4532
5039
  }
4533
5040
  exports.joinPathSegments = joinPathSegments;
4534
5041
  }
@@ -4538,7 +5045,7 @@ var require_common = __commonJS({
4538
5045
  var require_async2 = __commonJS({
4539
5046
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4540
5047
  "use strict";
4541
- init_utils();
5048
+ init_utils2();
4542
5049
  Object.defineProperty(exports, "__esModule", { value: true });
4543
5050
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4544
5051
  var fsStat = require_out();
@@ -4649,7 +5156,7 @@ var require_async2 = __commonJS({
4649
5156
  var require_sync2 = __commonJS({
4650
5157
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4651
5158
  "use strict";
4652
- init_utils();
5159
+ init_utils2();
4653
5160
  Object.defineProperty(exports, "__esModule", { value: true });
4654
5161
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4655
5162
  var fsStat = require_out();
@@ -4709,7 +5216,7 @@ var require_sync2 = __commonJS({
4709
5216
  var require_fs4 = __commonJS({
4710
5217
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
4711
5218
  "use strict";
4712
- init_utils();
5219
+ init_utils2();
4713
5220
  Object.defineProperty(exports, "__esModule", { value: true });
4714
5221
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4715
5222
  var fs2 = __require("fs");
@@ -4735,7 +5242,7 @@ var require_fs4 = __commonJS({
4735
5242
  var require_settings2 = __commonJS({
4736
5243
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
4737
5244
  "use strict";
4738
- init_utils();
5245
+ init_utils2();
4739
5246
  Object.defineProperty(exports, "__esModule", { value: true });
4740
5247
  var path = __require("path");
4741
5248
  var fsStat = require_out();
@@ -4766,7 +5273,7 @@ var require_settings2 = __commonJS({
4766
5273
  var require_out2 = __commonJS({
4767
5274
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
4768
5275
  "use strict";
4769
- init_utils();
5276
+ init_utils2();
4770
5277
  Object.defineProperty(exports, "__esModule", { value: true });
4771
5278
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
4772
5279
  var async = require_async2();
@@ -4799,7 +5306,7 @@ var require_out2 = __commonJS({
4799
5306
  var require_reusify = __commonJS({
4800
5307
  "node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
4801
5308
  "use strict";
4802
- init_utils();
5309
+ init_utils2();
4803
5310
  function reusify(Constructor) {
4804
5311
  var head = new Constructor();
4805
5312
  var tail = head;
@@ -4831,7 +5338,7 @@ var require_reusify = __commonJS({
4831
5338
  var require_queue = __commonJS({
4832
5339
  "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
4833
5340
  "use strict";
4834
- init_utils();
5341
+ init_utils2();
4835
5342
  var reusify = require_reusify();
4836
5343
  function fastqueue(context, worker, _concurrency) {
4837
5344
  if (typeof context === "function") {
@@ -5116,7 +5623,7 @@ var require_queue = __commonJS({
5116
5623
  var require_common2 = __commonJS({
5117
5624
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
5118
5625
  "use strict";
5119
- init_utils();
5626
+ init_utils2();
5120
5627
  Object.defineProperty(exports, "__esModule", { value: true });
5121
5628
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5122
5629
  function isFatalError(settings, error2) {
@@ -5134,14 +5641,14 @@ var require_common2 = __commonJS({
5134
5641
  return filepath.split(/[/\\]/).join(separator);
5135
5642
  }
5136
5643
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5137
- function joinPathSegments(a, b2, separator) {
5644
+ function joinPathSegments(a, b, separator) {
5138
5645
  if (a === "") {
5139
- return b2;
5646
+ return b;
5140
5647
  }
5141
5648
  if (a.endsWith(separator)) {
5142
- return a + b2;
5649
+ return a + b;
5143
5650
  }
5144
- return a + separator + b2;
5651
+ return a + separator + b;
5145
5652
  }
5146
5653
  exports.joinPathSegments = joinPathSegments;
5147
5654
  }
@@ -5151,7 +5658,7 @@ var require_common2 = __commonJS({
5151
5658
  var require_reader = __commonJS({
5152
5659
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
5153
5660
  "use strict";
5154
- init_utils();
5661
+ init_utils2();
5155
5662
  Object.defineProperty(exports, "__esModule", { value: true });
5156
5663
  var common = require_common2();
5157
5664
  var Reader = class {
@@ -5169,7 +5676,7 @@ var require_reader = __commonJS({
5169
5676
  var require_async3 = __commonJS({
5170
5677
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
5171
5678
  "use strict";
5172
- init_utils();
5679
+ init_utils2();
5173
5680
  Object.defineProperty(exports, "__esModule", { value: true });
5174
5681
  var events_1 = __require("events");
5175
5682
  var fsScandir = require_out2();
@@ -5273,7 +5780,7 @@ var require_async3 = __commonJS({
5273
5780
  var require_async4 = __commonJS({
5274
5781
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
5275
5782
  "use strict";
5276
- init_utils();
5783
+ init_utils2();
5277
5784
  Object.defineProperty(exports, "__esModule", { value: true });
5278
5785
  var async_1 = require_async3();
5279
5786
  var AsyncProvider = class {
@@ -5310,7 +5817,7 @@ var require_async4 = __commonJS({
5310
5817
  var require_stream2 = __commonJS({
5311
5818
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
5312
5819
  "use strict";
5313
- init_utils();
5820
+ init_utils2();
5314
5821
  Object.defineProperty(exports, "__esModule", { value: true });
5315
5822
  var stream_1 = __require("stream");
5316
5823
  var async_1 = require_async3();
@@ -5352,7 +5859,7 @@ var require_stream2 = __commonJS({
5352
5859
  var require_sync3 = __commonJS({
5353
5860
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
5354
5861
  "use strict";
5355
- init_utils();
5862
+ init_utils2();
5356
5863
  Object.defineProperty(exports, "__esModule", { value: true });
5357
5864
  var fsScandir = require_out2();
5358
5865
  var common = require_common2();
@@ -5417,7 +5924,7 @@ var require_sync3 = __commonJS({
5417
5924
  var require_sync4 = __commonJS({
5418
5925
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
5419
5926
  "use strict";
5420
- init_utils();
5927
+ init_utils2();
5421
5928
  Object.defineProperty(exports, "__esModule", { value: true });
5422
5929
  var sync_1 = require_sync3();
5423
5930
  var SyncProvider = class {
@@ -5438,7 +5945,7 @@ var require_sync4 = __commonJS({
5438
5945
  var require_settings3 = __commonJS({
5439
5946
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
5440
5947
  "use strict";
5441
- init_utils();
5948
+ init_utils2();
5442
5949
  Object.defineProperty(exports, "__esModule", { value: true });
5443
5950
  var path = __require("path");
5444
5951
  var fsScandir = require_out2();
@@ -5471,7 +5978,7 @@ var require_settings3 = __commonJS({
5471
5978
  var require_out3 = __commonJS({
5472
5979
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
5473
5980
  "use strict";
5474
- init_utils();
5981
+ init_utils2();
5475
5982
  Object.defineProperty(exports, "__esModule", { value: true });
5476
5983
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5477
5984
  var async_1 = require_async4();
@@ -5512,7 +6019,7 @@ var require_out3 = __commonJS({
5512
6019
  var require_reader2 = __commonJS({
5513
6020
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
5514
6021
  "use strict";
5515
- init_utils();
6022
+ init_utils2();
5516
6023
  Object.defineProperty(exports, "__esModule", { value: true });
5517
6024
  var path = __require("path");
5518
6025
  var fsStat = require_out();
@@ -5552,7 +6059,7 @@ var require_reader2 = __commonJS({
5552
6059
  var require_stream3 = __commonJS({
5553
6060
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5554
6061
  "use strict";
5555
- init_utils();
6062
+ init_utils2();
5556
6063
  Object.defineProperty(exports, "__esModule", { value: true });
5557
6064
  var stream_1 = __require("stream");
5558
6065
  var fsStat = require_out();
@@ -5610,7 +6117,7 @@ var require_stream3 = __commonJS({
5610
6117
  var require_async5 = __commonJS({
5611
6118
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5612
6119
  "use strict";
5613
- init_utils();
6120
+ init_utils2();
5614
6121
  Object.defineProperty(exports, "__esModule", { value: true });
5615
6122
  var fsWalk = require_out3();
5616
6123
  var reader_1 = require_reader2();
@@ -5650,7 +6157,7 @@ var require_async5 = __commonJS({
5650
6157
  var require_matcher = __commonJS({
5651
6158
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5652
6159
  "use strict";
5653
- init_utils();
6160
+ init_utils2();
5654
6161
  Object.defineProperty(exports, "__esModule", { value: true });
5655
6162
  var utils = require_utils3();
5656
6163
  var Matcher = class {
@@ -5702,7 +6209,7 @@ var require_matcher = __commonJS({
5702
6209
  var require_partial = __commonJS({
5703
6210
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
5704
6211
  "use strict";
5705
- init_utils();
6212
+ init_utils2();
5706
6213
  Object.defineProperty(exports, "__esModule", { value: true });
5707
6214
  var matcher_1 = require_matcher();
5708
6215
  var PartialMatcher = class extends matcher_1.default {
@@ -5740,7 +6247,7 @@ var require_partial = __commonJS({
5740
6247
  var require_deep = __commonJS({
5741
6248
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
5742
6249
  "use strict";
5743
- init_utils();
6250
+ init_utils2();
5744
6251
  Object.defineProperty(exports, "__esModule", { value: true });
5745
6252
  var utils = require_utils3();
5746
6253
  var partial_1 = require_partial();
@@ -5806,7 +6313,7 @@ var require_deep = __commonJS({
5806
6313
  var require_entry = __commonJS({
5807
6314
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
5808
6315
  "use strict";
5809
- init_utils();
6316
+ init_utils2();
5810
6317
  Object.defineProperty(exports, "__esModule", { value: true });
5811
6318
  var utils = require_utils3();
5812
6319
  var EntryFilter = class {
@@ -5895,7 +6402,7 @@ var require_entry = __commonJS({
5895
6402
  var require_error = __commonJS({
5896
6403
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
5897
6404
  "use strict";
5898
- init_utils();
6405
+ init_utils2();
5899
6406
  Object.defineProperty(exports, "__esModule", { value: true });
5900
6407
  var utils = require_utils3();
5901
6408
  var ErrorFilter = class {
@@ -5917,7 +6424,7 @@ var require_error = __commonJS({
5917
6424
  var require_entry2 = __commonJS({
5918
6425
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
5919
6426
  "use strict";
5920
- init_utils();
6427
+ init_utils2();
5921
6428
  Object.defineProperty(exports, "__esModule", { value: true });
5922
6429
  var utils = require_utils3();
5923
6430
  var EntryTransformer = class {
@@ -5950,7 +6457,7 @@ var require_entry2 = __commonJS({
5950
6457
  var require_provider = __commonJS({
5951
6458
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
5952
6459
  "use strict";
5953
- init_utils();
6460
+ init_utils2();
5954
6461
  Object.defineProperty(exports, "__esModule", { value: true });
5955
6462
  var path = __require("path");
5956
6463
  var deep_1 = require_deep();
@@ -6005,7 +6512,7 @@ var require_provider = __commonJS({
6005
6512
  var require_async6 = __commonJS({
6006
6513
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
6007
6514
  "use strict";
6008
- init_utils();
6515
+ init_utils2();
6009
6516
  Object.defineProperty(exports, "__esModule", { value: true });
6010
6517
  var async_1 = require_async5();
6011
6518
  var provider_1 = require_provider();
@@ -6035,7 +6542,7 @@ var require_async6 = __commonJS({
6035
6542
  var require_stream4 = __commonJS({
6036
6543
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
6037
6544
  "use strict";
6038
- init_utils();
6545
+ init_utils2();
6039
6546
  Object.defineProperty(exports, "__esModule", { value: true });
6040
6547
  var stream_1 = __require("stream");
6041
6548
  var stream_2 = require_stream3();
@@ -6070,7 +6577,7 @@ var require_stream4 = __commonJS({
6070
6577
  var require_sync5 = __commonJS({
6071
6578
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
6072
6579
  "use strict";
6073
- init_utils();
6580
+ init_utils2();
6074
6581
  Object.defineProperty(exports, "__esModule", { value: true });
6075
6582
  var fsStat = require_out();
6076
6583
  var fsWalk = require_out3();
@@ -6119,7 +6626,7 @@ var require_sync5 = __commonJS({
6119
6626
  var require_sync6 = __commonJS({
6120
6627
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
6121
6628
  "use strict";
6122
- init_utils();
6629
+ init_utils2();
6123
6630
  Object.defineProperty(exports, "__esModule", { value: true });
6124
6631
  var sync_1 = require_sync5();
6125
6632
  var provider_1 = require_provider();
@@ -6149,7 +6656,7 @@ var require_sync6 = __commonJS({
6149
6656
  var require_settings4 = __commonJS({
6150
6657
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
6151
6658
  "use strict";
6152
- init_utils();
6659
+ init_utils2();
6153
6660
  Object.defineProperty(exports, "__esModule", { value: true });
6154
6661
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6155
6662
  var fs2 = __require("fs");
@@ -6210,7 +6717,7 @@ var require_settings4 = __commonJS({
6210
6717
  var require_out4 = __commonJS({
6211
6718
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
6212
6719
  "use strict";
6213
- init_utils();
6720
+ init_utils2();
6214
6721
  var taskManager = require_tasks();
6215
6722
  var async_1 = require_async6();
6216
6723
  var stream_1 = require_stream4();
@@ -6329,7 +6836,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6329
6836
  var init_constants = __esm({
6330
6837
  "packages/core/config/constants.js"() {
6331
6838
  "use strict";
6332
- init_utils();
6839
+ init_utils2();
6333
6840
  I18N_PATHS = {
6334
6841
  // Monorepo source structure (locales at root, not in src/)
6335
6842
  SOURCE_ROOT: "packages/core/i18n",
@@ -6491,7 +6998,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6491
6998
  var init_PathResolver = __esm({
6492
6999
  "packages/core/config/utils/PathResolver.ts"() {
6493
7000
  "use strict";
6494
- init_utils();
7001
+ init_utils2();
6495
7002
  import_fast_glob = __toESM(require_out4(), 1);
6496
7003
  init_constants();
6497
7004
  constants = {
@@ -7523,7 +8030,7 @@ var pathResolverInstance, getRepoRoot, normalizePath, pathExists, readSync, writ
7523
8030
  var init_pathResolver = __esm({
7524
8031
  "packages/tooling/src/utils/pathResolver.ts"() {
7525
8032
  "use strict";
7526
- init_utils();
8033
+ init_utils2();
7527
8034
  init_PathResolver();
7528
8035
  pathResolverInstance = PathResolver.getInstance({ debug: false });
7529
8036
  getRepoRoot = () => pathResolverInstance.getRepoRoot();
@@ -7551,7 +8058,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
7551
8058
  import process from "node:process";
7552
8059
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7553
8060
  var require2, __filename, __dirname;
7554
- var init_utils = __esm({
8061
+ var init_utils2 = __esm({
7555
8062
  "packages/tooling/src/bundler/utils.ts"() {
7556
8063
  "use strict";
7557
8064
  require2 = createRequire3(import.meta.url);
@@ -7571,16 +8078,16 @@ var init_utils = __esm({
7571
8078
  });
7572
8079
 
7573
8080
  // packages/cli/src/bin/commands/type-check.ts
7574
- init_utils();
8081
+ init_utils2();
7575
8082
 
7576
8083
  // packages/tooling/src/index.ts
7577
- init_utils();
8084
+ init_utils2();
7578
8085
 
7579
8086
  // packages/tooling/src/cli/index.ts
7580
- init_utils();
8087
+ init_utils2();
7581
8088
 
7582
8089
  // packages/tooling/src/quality/type-check.ts
7583
- init_utils();
8090
+ init_utils2();
7584
8091
  import { spawn } from "node:child_process";
7585
8092
  import { EOL as EOL2 } from "node:os";
7586
8093
  init_errors();
@@ -7698,7 +8205,7 @@ function discoverPackages(repoRoot, filter) {
7698
8205
  continue;
7699
8206
  }
7700
8207
  }
7701
- return packages.sort((a, b2) => a.name.localeCompare(b2.name));
8208
+ return packages.sort((a, b) => a.name.localeCompare(b.name));
7702
8209
  }
7703
8210
  function parseTypeScriptErrors(output) {
7704
8211
  const lines = output.split("\n");
@@ -7799,7 +8306,7 @@ async function main(options = {}) {
7799
8306
  };
7800
8307
  try {
7801
8308
  if (isTTY) {
7802
- Ie("\u{1F50D} DoNotDev Type Check");
8309
+ mt("\u{1F50D} DoNotDev Type Check");
7803
8310
  }
7804
8311
  logToFile("\u{1F50D} DoNotDev Type Check\n");
7805
8312
  const debug = options.debug ?? options.verbose ?? false;
@@ -7826,7 +8333,7 @@ async function main(options = {}) {
7826
8333
  if (options.package) {
7827
8334
  log.warn(` Filter: ${options.package}`);
7828
8335
  }
7829
- Se("No packages to type-check");
8336
+ gt("No packages to type-check");
7830
8337
  } else {
7831
8338
  process.stdout.write("RESULT: 0 passed, 0 failed, 0 total errors\n");
7832
8339
  }
@@ -7881,7 +8388,7 @@ ${violations.map(
7881
8388
  `
7882
8389
  );
7883
8390
  if (isTTY) {
7884
- Se("Type-check failed: direct imports from private core packages");
8391
+ gt("Type-check failed: direct imports from private core packages");
7885
8392
  } else {
7886
8393
  process.stdout.write("RESULT: 0 passed, 0 failed, 0 total errors\n");
7887
8394
  process.stdout.write(
@@ -7898,7 +8405,7 @@ ${violations.map(
7898
8405
  const progress = `${i + 1}/${packages.length}`;
7899
8406
  let result;
7900
8407
  if (isTTY) {
7901
- const s = Y();
8408
+ const s = fe();
7902
8409
  s.start(`[${progress}] Type-checking ${pkg.name}...`);
7903
8410
  result = await typeCheckPackage(pkg, repoRoot, verbose, s);
7904
8411
  if (result.success) {
@@ -7941,9 +8448,9 @@ ${violations.map(
7941
8448
  logToFile(result.output);
7942
8449
  logToFile("\n");
7943
8450
  }
7944
- const failed = results.filter((r2) => !r2.success);
7945
- const passed = results.filter((r2) => r2.success);
7946
- const totalErrors = results.reduce((sum, r2) => sum + r2.errorCount, 0);
8451
+ const failed = results.filter((r) => !r.success);
8452
+ const passed = results.filter((r) => r.success);
8453
+ const totalErrors = results.reduce((sum, r) => sum + r.errorCount, 0);
7947
8454
  if (!isTTY) {
7948
8455
  process.stdout.write(
7949
8456
  `RESULT: ${passed.length} passed, ${failed.length} failed, ${totalErrors} total errors
@@ -7990,7 +8497,7 @@ ${output}
7990
8497
  `);
7991
8498
  }
7992
8499
  if (isTTY) {
7993
- Se("Type-check completed with errors");
8500
+ gt("Type-check completed with errors");
7994
8501
  }
7995
8502
  return 1;
7996
8503
  }
@@ -8000,7 +8507,7 @@ ${output}
8000
8507
  removeSync(logFilePath);
8001
8508
  }
8002
8509
  if (isTTY) {
8003
- Se("All packages type-checked successfully!");
8510
+ gt("All packages type-checked successfully!");
8004
8511
  }
8005
8512
  return 0;
8006
8513
  } catch (error2) {