Quarterly report pursuant to Section 13 or 15(d)

Subsequent Events (Details)

v3.22.2
Subsequent Events (Details)
$ / shares in Units, shares in Millions, $ in Millions
Aug. 08, 2022
USD ($)
Jul. 22, 2022
USD ($)
Jul. 20, 2022
USD ($)
$ / shares
Jul. 11, 2022
USD ($)
electricVehicle
$ / shares
shares
May 10, 2022
$ / shares
Jun. 30, 2022
$ / shares
Subsequent Event [Line Items]            
Warrant exercise price (in dollars per share) | $ / shares           $ 11.50
Common stock            
Subsequent Event [Line Items]            
Share price (in dollars per share) | $ / shares         $ 3.65  
Warrant Agreement | Subsequent Event            
Subsequent Event [Line Items]            
Warrants outstanding (in shares) | shares       61.2    
Warrant exercise price (in dollars per share) | $ / shares       $ 2.15    
Vested of warrants       10 years    
Warrants vested (in shares) | shares       15.3    
Yorkville            
Subsequent Event [Line Items]            
Pre-paid advance agreement, annual rate         5.00%  
Pre-paid advance agreement, increase upon to default         15.00%  
Yorkville | Common stock            
Subsequent Event [Line Items]            
Exchange cap, maximum ownership percent         19.90%  
Yorkville | Subsequent Event            
Subsequent Event [Line Items]            
Pre-paid advance agreement, in cash advances     $ 50.0      
Pre-paid advance agreement, in commitment amount     $ 300.0      
Share price (in dollars per share) | $ / shares     $ 1.00      
First pre-paid advance   $ 49.5        
Outstanding under prior pre-paid advances   $ 10.0        
Yorkville | Subsequent Event | Common stock            
Subsequent Event [Line Items]            
Share price (in dollars per share) | $ / shares     $ 1.00      
Walmart Inc | Subsequent Event            
Subsequent Event [Line Items]            
Number of electric vehicles | electricVehicle       4,500    
Number of electric vehicles, additions | electricVehicle       5,500    
Walmart Inc | Warrant Agreement | Subsequent Event            
Subsequent Event [Line Items]            
Revenue from related affiliates       $ 300.0    
Evercore Group, L.L.C. and H.C. Wainwright & Co., LLC | Subsequent Event | At-the-Market Offering Agreement            
Subsequent Event [Line Items]            
Sale of stock consideration $ 200.0