Inventories - Additional Information (Details) - USD ($) $ in Thousands |
Jan. 31, 2024 |
Apr. 30, 2023 |
|---|---|---|
| Inventory [Line Items] | ||
| Prepaid expenses and other current assets | $ 6,564 | $ 7,839 |
| Asia | ||
| Inventory [Line Items] | ||
| Prepaid expenses and other current assets | $ 3,800 | $ 4,300 |
| Asia | Maximum | ||
| Inventory [Line Items] | ||
| Percentage of inventory deposits | 100.00% | |
| Asia | Minimum | ||
| Inventory [Line Items] | ||
| Percentage of inventory deposits | 30.00% |