XML 87 R67.htm IDEA: XBRL DOCUMENT v3.23.2
Notes Payable (as Restated) - Schedule of Notes Payable (Details)
1 Months Ended 12 Months Ended 24 Months Ended
Dec. 28, 2022
USD ($)
Sep. 23, 2022
USD ($)
$ / shares
Aug. 14, 2022
USD ($)
tranche
$ / shares
shares
Jul. 26, 2022
USD ($)
trading_day
$ / shares
Feb. 25, 2022
USD ($)
Dec. 30, 2021
USD ($)
Aug. 26, 2021
USD ($)
Aug. 10, 2021
USD ($)
$ / shares
shares
Aug. 05, 2021
USD ($)
$ / shares
shares
Jul. 21, 2021
USD ($)
$ / shares
shares
Jun. 09, 2021
USD ($)
$ / shares
shares
Mar. 12, 2021
USD ($)
Mar. 08, 2021
USD ($)
Mar. 01, 2021
USD ($)
$ / shares
Jan. 13, 2021
USD ($)
$ / shares
shares
Apr. 17, 2020
USD ($)
Oct. 31, 2022
USD ($)
shares
Sep. 14, 2022
$ / shares
shares
Dec. 31, 2022
USD ($)
trading_day
$ / shares
shares
Dec. 31, 2021
USD ($)
shares
Dec. 31, 2018
USD ($)
Nov. 08, 2022
$ / shares
Oct. 11, 2022
USD ($)
Sep. 25, 2022
USD ($)
Apr. 30, 2022
USD ($)
Mar. 31, 2022
USD ($)
Jul. 20, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                               1.00%                          
Cash Payment                                     $ (87,279,000) $ (48,210,000)                  
Debt Footnote Information [Abstract]                                                          
Notes payable accrued interest                                                     $ 7,400,000    
Proceeds from notes payable, net of original issuance discount                                     73,800,000 172,031,000                  
Change in fair value measurements                                     (70,512,000) (22,700,000)                  
Proceeds of additional funding                                     38,400,000                    
Liability value                                       12,600,000                  
Payments of notes payable issuance costs                                     3,834,000 3,355,000                  
Summary Of Debt [Abstract]                                                          
Interest expense                                     5,561,000 30,181,000                  
Restricted cash                                     1,546,000 25,386,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                     73,204,000 86,904,000                  
Proceeds from loans                               $ 9,200,000                          
Deferral payments period                               2 years                          
Principal amounts converted or repaid           $ 9,000,000.0                                              
Notes payable                                                     $ 85,200,000    
Unforgiven portion period                               6 months                          
Change in fair value measurement of warrant liability                                     92,781,000 0                  
Notes Payable With Employee On Demand 0%, Related Party | Affiliated Entity                                                          
Summary Of Debt [Abstract]                                                          
Note payable                                       700,000                 $ 700,000
Notes Payable At Fair Value                                                          
Debt Footnote Information [Abstract]                                                          
Liability value                                     26,000,000 161,282,000               $ 59,742,000  
Summary Of Debt [Abstract]                                                          
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings                                       31,008,000                  
Bridge Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Liability value                                     92,781,000 $ 0                  
Summary Of Debt [Abstract]                                                          
Additions                                     9,938,000                    
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings                                     86,033,000                    
Ares Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares                 $ 10.00                                        
Warrants rights (in shares) | shares                 670,092                                        
Summary Of Debt [Abstract]                                                          
Exercisable period                 6 years                                        
Fair value of warrants                 $ 2,500,000                                 $ 5,000,000.0      
US-Based Investment Firm Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares               $ 10.00                                          
Warrants term                     7 years                                    
Warrants rights (in shares) | shares               1,187,083                                          
Summary Of Debt [Abstract]                                                          
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings               $ 8,000,000.0                     $ 5,100,000                    
Class A Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Number of shares purchased (in shares) | shares                   76,140,000                                      
Warrants (in shares) | shares                                     476,364,277 28,196,377                  
Class A Common Stock | Bridge Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Warrants (in shares) | shares                                     346,453,115                    
Class A Common Stock | US-Based Investment Firm Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares               $ 10.00   $ 10.00                                      
Warrants rights (in shares) | shares               1,500,000   2,687,083                                      
Class A Common Stock | Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Conversion of convertible securities (in shares) | shares                                     257,041,879                    
Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                     $ 41,719,000 $ 164,689,000                  
Fair Value Measurement Adjustments                                       29,489,000                  
Original issue discount and proceeds allocated to warrants                                       (27,124,000)                  
Net Carrying Value                                       167,054,000                  
Debt Footnote Information [Abstract]                                                          
Notes payable                   $ 93,700,000                                      
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     41,719,000 164,689,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                     25,900,000                    
Notes Payable | Affiliated Entity                                                          
Debt Outstanding [Abstract]                                                          
Cash Payment                   (41,900,000)                                      
Summary Of Debt [Abstract]                                                          
Principal amounts converted or repaid                   96,900,000                                      
Accrued interest settled                   13,600,000                                      
Notes Payable | Level 3 | Fair Value, Nonrecurring                                                          
Debt Footnote Information [Abstract]                                                          
Notes payable                                     $ 4,900,000 5,400,000                  
Notes Payable | Bridge Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Number of shares purchased (in shares) | shares     16,392,267                                                    
Warrants term     7 years                                                    
Warrants rights (in shares) | shares                                     8,559,863                    
Notes Payable | Class A Common Stock | Affiliated Entity                                                          
Summary Of Debt [Abstract]                                                          
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       $ 26,200,000                  
Bridge Notes Due on August 14, 2026 At 10.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                     $ 36,622,000                    
Fair Value Measurement Adjustments                                     264,000                    
Original issue discount and proceeds allocated to warrants                                     (10,878,000)                    
Net Carrying Value                                     26,008,000                    
Interest expense, debt including extinguishment                                     0                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     $ 36,622,000                    
Bridge Notes Due on August 14, 2026 At 10.00% | Notes Payable | Minimum                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     10.00%                    
Bridge Notes Due on August 14, 2026 At 10.00% | Notes Payable | Maximum                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     15.00%                    
Notes Payable, China Various Other, Due On Demand At 0.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     0.00% 0.00%                  
Unpaid Principal Balance                                     $ 4,997,000 $ 5,458,000                  
Fair Value Measurement Adjustments                                     0 0                  
Original issue discount and proceeds allocated to warrants                                     0 0                  
Net Carrying Value                                     4,997,000 5,458,000                  
Interest expense, debt including extinguishment                                     0                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     4,997,000 $ 5,458,000                  
Existing Notes Payable Agreements With Third Parties | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                     41,719,000                    
Fair Value Measurement Adjustments                                     264,000                    
Original issue discount and proceeds allocated to warrants                                     (10,878,000)                    
Net Carrying Value                                     31,105,000                    
Interest expense, debt including extinguishment                                     7,000                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     $ 41,719,000                    
Notes Payable March 1, 2021, Due On March 1, 2022, At 14.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     14.00% 14.00%                  
Unpaid Principal Balance                                     $ 0 $ 55,000,000                  
Fair Value Measurement Adjustments                                     (1,695,000) 7,692,000                  
Original issue discount and proceeds allocated to warrants                                       (5,997,000)                  
Net Carrying Value                                       56,695,000                  
Interest premium                                     0                    
Cash Payment                                     (55,000,000)                    
Conversion into Class A Common Stock (As Restated)                                     0                    
Debt Footnote Information [Abstract]                                                          
Aggregate principal amount that may be issued                           $ 85,000,000                              
Aggregate principal loan                           $ 55,000,000                              
Original issue discount percent                           4.00%                              
Repayments of debt         $ 55,000,000                                                
Notes payable accrued interest                           $ 7,700,000                              
Proceeds from notes payable, net of original issuance discount                           51,500,000                              
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     0 55,000,000                  
Interest Payable                                     0 6,455,000                  
Interest expense                                     1,266,000 0                  
Principal conversion into Class A Common Stock                                     55,000,000 0                  
Interest payments                                     $ 7,721,000 $ 0                  
Debt issuance costs paid by lender                           $ 100,000                              
Notes Payable August 26, 2021, Due On March 1, 2022, At 14.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     14.00% 14.00%                  
Unpaid Principal Balance                                     $ 0 $ 30,000,000                  
Fair Value Measurement Adjustments                                     (924,000) 1,011,000                  
Original issue discount and proceeds allocated to warrants                                       (87,000)                  
Net Carrying Value                                       30,924,000                  
Interest premium             $ 2,100,000                       2,065,000                    
Cash Payment                                     (32,065,000)                    
Conversion into Class A Common Stock (As Restated)                                     0                    
Debt Footnote Information [Abstract]                                                          
Aggregate principal amount that may be issued             $ 30,000,000                                            
Original issue discount percent             14.00%                                            
Repayments of debt             $ 30,000,000                                            
Notes payable accrued interest             $ 2,100,000                                            
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     0 30,000,000                  
Interest Payable                                     0 1,473,000                  
Interest expense                                     662,000 0                  
Principal conversion into Class A Common Stock                                     30,000,000 0                  
Interest payments                                     2,135,000 0                  
Payment Premium payments                                     $ 2,065,000 $ 0                  
Optional Notes Due October 2026 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     15.00% 15.00%                  
Unpaid Principal Balance                                     $ 0 $ 33,917,000                  
Fair Value Measurement Adjustments                                     (765,000) 12,283,000                  
Original issue discount and proceeds allocated to warrants                                       (11,518,000)                  
Net Carrying Value                                       34,682,000                  
Interest premium                                     0                    
Cash Payment                                     0                    
Conversion into Class A Common Stock (As Restated)                                     (33,917,000)                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     0 33,917,000                  
Interest Payable                                     0 183,000                  
Interest expense                                     2,572,000 0                  
Principal conversion into Class A Common Stock                                     33,917,000 0                  
Interest payments                                     $ 2,756,000 $ 0                  
PPP Loan Due on April 17, 2022 At 1.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     1.00% 1.00%                  
Unpaid Principal Balance                                       $ 193,000                  
Fair Value Measurement Adjustments                                     $ 0 0                  
Original issue discount and proceeds allocated to warrants                                       0                  
Net Carrying Value                                       193,000                  
Interest premium                                     0                    
Cash Payment                                     (193,000)                    
Conversion into Class A Common Stock (As Restated)                                     $ 0                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       $ 193,000                  
Auto Loans Due on October 26, 2026 At 7.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     7.00% 7.00%                  
Unpaid Principal Balance                                     $ 100,000 $ 121,000                  
Fair Value Measurement Adjustments                                     0 0                  
Original issue discount and proceeds allocated to warrants                                     0 0                  
Net Carrying Value                                     100,000 121,000                  
Interest expense, debt including extinguishment                                     7,000                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     $ 100,000 $ 121,000                  
Notes Payable June 9, 2021 , Due On March 1, 2022 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     0.00% 0.00%                  
Unpaid Principal Balance                                       $ 40,000,000                  
Fair Value Measurement Adjustments                                     $ 1,019,000 8,503,000                  
Original issue discount and proceeds allocated to warrants                                       (9,522,000)                  
Net Carrying Value                                       38,981,000                  
Interest premium                                     0                    
Cash Payment                                     0                    
Conversion into Class A Common Stock (As Restated)                                     $ (40,000,000)                    
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       40,000,000                  
Bridge Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     10.00%                    
Conversion into Class A Common Stock (As Restated)                                     $ (45,400,000)                    
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan     $ 52,000,000.0                                                    
Original issue discount percent     10.00%                                                    
Conversion price (in dollars per share) | $ / shares     $ 2.69                                                    
Number of tranches | tranche     3                                                    
Debt conversion, percent decrease of original issue discount     50.00%                                                    
Unamortized discount     $ 5,200,000                                                    
Proceeds from notes payable, net of original issuance discount     46,800,000                                                    
Debt instrument, commitment amount     $ 300,000,000                                                    
Debt instrument, option to purchase additional notes, period     12 months                                                    
Payments of notes payable issuance costs                                     3,800,000                    
Summary Of Debt [Abstract]                                                          
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                     $ 41,100,000                    
Bridge Notes | Notes Payable | Debt Instrument, Redemption, Period One                                                          
Debt Footnote Information [Abstract]                                                          
Conversion price (in dollars per share) | $ / shares     $ 2.2865                                                    
Bridge Notes | Notes Payable | Make-Whole Amount                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                                     15.00%                    
Debt Footnote Information [Abstract]                                                          
Redemption price, percentage                                     90.00%                    
Bridge Notes | Notes Payable | Class A Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Debt instrument, convertible, threshold consecutive trading days | trading_day                                     5                    
Bridge Notes | Notes Payable | Maximum                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan     $ 52,000,000                                                    
Notes Payable, Settled                                                          
Debt Outstanding [Abstract]                                                          
Conversion into Class A Common Stock (As Restated)                                     $ (73,917,000)                    
Notes Payable, Settled | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                     (2,365,000)                    
Net Carrying Value                                       161,475,000                  
Interest premium                                     2,065,000                    
Cash Payment                                     (87,258,000)                    
Amended ATW Convertible Notes                                                          
Summary Of Debt [Abstract]                                                          
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                     23,500,000                    
Amended ATW Convertible Notes | Class A Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Conversion of convertible securities (in shares) | shares                                   64,843,850                      
Amended ATW Convertible Notes | Minimum                                                          
Debt Footnote Information [Abstract]                                                          
Conversion price (in dollars per share) | $ / shares                                   $ 0.84                      
Amended ATW Convertible Notes | Maximum                                                          
Debt Footnote Information [Abstract]                                                          
Conversion price (in dollars per share) | $ / shares                                   $ 2.29                      
Amended ATW Convertible Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates       10.00%                                                  
Conversion into Class A Common Stock (As Restated)                                 $ (6,700,000)                        
Debt Footnote Information [Abstract]                                                          
Aggregate principal amount that may be issued       $ 35,000,000                                                  
Conversion price (in dollars per share) | $ / shares       $ 10                                                  
Conversion of convertible securities (in shares) | shares                                 11,496,868                        
Amended ATW Convertible Notes | Notes Payable | Debt Instrument, Redemption, Period One                                                          
Debt Footnote Information [Abstract]                                                          
Redemption price, percentage       95.00%                                                  
Conversion of optional notes issuance period | trading_day       30                                                  
Amended ATW Convertible Notes | Notes Payable | Debt Instrument, Redemption, Period Two                                                          
Debt Footnote Information [Abstract]                                                          
Redemption price, percentage       92.00%                                                  
Conversion of optional notes issuance period | trading_day       7                                                  
June, 2021 Note Due on October 31, 2026, At 0.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                     0 40,000,000                  
Debt Footnote Information [Abstract]                                                          
Aggregate principal amount that may be issued       $ 40,000,000                                                  
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                     0 40,000,000                  
Interest Payable                                     0 0                  
Interest expense                                     0 0                  
Principal conversion into Class A Common Stock                                     40,000,000 0                  
Interest payments                                     0 0                  
Bridge Warrants | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Change in fair value measurements                                     $ 86,000,000                    
Exercise price of the warrant (in dollars per share) | $ / shares                                     $ 5.0                    
Bridge Warrants | Notes Payable | Class A Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Conversion of optional notes issuance period | trading_day                                     20                    
Debt instrument, convertible, threshold consecutive trading days | trading_day                                     30                    
Bridge Warrants | Notes Payable | Minimum                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares                                     $ 0.01                    
Bridge Warrants | Notes Payable | Maximum                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares                                     $ 15.0                    
Third Bridge Notes | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan   $ 7,500,000                                                      
Fourth Bridge Notes | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                                             $ 7,500,000            
Third And Fourth Bridge Notes | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Debt conversion, converted instrument, conversion price (in dollars per share) | $ / shares   $ 1.05                                                      
SPA Notes                                                          
Debt Outstanding [Abstract]                                                          
Conversion into Class A Common Stock (As Restated) $ (900,000)                                                        
SPA Notes | Minimum                                                          
Summary Of Debt [Abstract]                                                          
Conversion rate 105.00%                                                        
SPA Notes | Minimum | Class A Common Stock                                                          
Debt Footnote Information [Abstract]                                                          
Conversion price (in dollars per share) | $ / shares                                           $ 0.21              
SPA Notes | Maximum                                                          
Summary Of Debt [Abstract]                                                          
Conversion rate 89.00%                                                        
SPA Notes | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan     $ 25,000,000                                                    
Debt conversion, converted instrument, conversion price (in dollars per share) | $ / shares   $ 1.05                                                      
Change in fair value measurements                                     $ 7,700,000                    
SPA Notes | Notes Payable | Senyun                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                                               $ 60,000,000          
Proceeds of additional funding                                     30,000,000.0                    
Proceeds from funding net of original issue discount                                     27,000,000.0                    
Notes Payable, Excluding Bridge Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Conversion into Class A Common Stock (As Restated)                                     $ (99,500,000) (98,400,000)                  
March 1, 2021 Notes Due on March 1, 2022 At 14.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                           14.00%                              
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares                           $ 10.00                              
Liability value                           $ 5,000,000                              
Summary Of Debt [Abstract]                                                          
Issuance period                           15 days                              
Fully diluted capitalization (in percent)                           0.20%                              
Notes Payable Due On March 1, 2022, At 14.00% | Ares Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares                 $ 10.00                                        
Warrants rights (in shares) | shares                 670,092                                        
Summary Of Debt [Abstract]                                                          
Fair value of warrants                 $ 2,500,000                                        
Notes Payable Due On March 1, 2022, At 14.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                           14.00%                              
Summary Of Debt [Abstract]                                                          
Cash requirement                   $ 25,000,000       $ 5,000,000                              
Restricted cash                                       25,000,000                  
August 26, 2021 Notes, Due on March 1, 2022 At 0.00% | Notes Payable                                                          
Summary Of Debt [Abstract]                                                          
Payment premium, percentage             14.00%                                            
Notes Payable June 9, 2021 Notes, Due On December 9, 2022 | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                     $ 20,000,000                                    
Notes Payable June 9, 2021 Notes 2, Due On December 9, 2022 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                       20,000,000                  
Debt Footnote Information [Abstract]                                                          
Original issue discount percent                     13.00%                                    
Proceeds from notes payable, net of original issuance discount                                       17,400,000                  
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       20,000,000                  
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net                                       2,600,000                  
Notes Payable, Convertible, Due December 2022, June 2021 Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                     10.00%                                    
Debt Footnote Information [Abstract]                                                          
Aggregate principal amount that may be issued                     $ 40,000,000                                    
Aggregate principal loan                     20,000,000                                    
Proceeds from notes payable, net of original issuance discount                     $ 35,600,000                                    
Exercise price of the warrant (in dollars per share) | $ / shares                     $ 10.00                                    
Warrants rights (in shares) | shares                     1,500,000                                    
Payments of notes payable issuance costs                     $ 200,000                                    
Summary Of Debt [Abstract]                                                          
Additions                     4,200,000                                    
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings                     $ 5,100,000                                    
Liquidation premium, percent                     30.00%                                    
Notes Payable June 9, 2021 Notes 1, Due On December 9, 2022 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                       20,000,000                  
Debt Footnote Information [Abstract]                                                          
Original issue discount percent                     8.00%                                    
Proceeds from notes payable, net of original issuance discount                                       18,203,000                  
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       20,000,000                  
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net                                       1,797,000                  
Notes Payable August 10, 2021 Optional Notes, Due On February 10, 2023, At 15.00% | US-Based Investment Firm Warrants                                                          
Debt Footnote Information [Abstract]                                                          
Exercise price of the warrant (in dollars per share) | $ / shares               $ 10.00                                          
Warrants rights (in shares) | shares               1,187,083                                          
Summary Of Debt [Abstract]                                                          
Fair value of warrants               $ 8,000,000                                          
Warrants exercisable period               7 years                                          
Notes Payable August 10, 2021 Optional Notes, Due On February 10, 2023, At 15.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates               15.00%                                          
Unpaid Principal Balance               $ 33,900,000                       33,917,000                  
Debt Footnote Information [Abstract]                                                          
Original issue discount percent               8.00%                                          
Conversion price (in dollars per share) | $ / shares               $ 10.00                                          
Proceeds from notes payable, net of original issuance discount               $ 30,400,000                       30,375,000                  
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross               33,900,000                       33,917,000                  
Interest Payable                                       183,000                  
Interest expense                                       183,000                  
Debt issuance costs recorded in interest expense               $ 800,000                                          
Liquidation premium, percent               30.00%                                          
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net                                       3,542,000                  
Notes Payable - China, Due On Demand, At 0.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                       5,458,000                  
Debt Footnote Information [Abstract]                                                          
Proceeds from notes payable, net of original issuance discount                                         $ 4,400,000                
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       5,458,000                  
Foreign Currency Transaction Gain (Loss), Unrealized                                       133,000                  
Reclassification Of Debt Instrument                                       730,000                  
Note Payable With Repayment In 12% Increments, Contingent On Fundraising Event | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       0               57,293,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (73,177,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       3,408                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       17,177,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       (1,293,000)                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       0                  
Notes Payable, Due On June 2021, At 12.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       0               19,100,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (25,198,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       1,281                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       6,098,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       0                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       0                  
Notes Payable, Settlements Prior To Transaction | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       0               76,393,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (98,375,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       4,689                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       23,275,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       (1,293,000)                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       0                  
Notes Payable, NPA Tranche, Due October 2021 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       104,000                  
Net Carrying Value                                       0               21,059,000  
Cash Payment                                       (17,636,000)                  
Conversion into Class A Common Stock (As Restated)                                       (7,141,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       976                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       3,614,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       0                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       2,699,000                  
Notes Payable - China, Due On Demand, At 9.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       0               3,659,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (6,428,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       374                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       2,713,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       56,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       2,430,000                  
Notes Payable - China, Various Dates 2021, At 6.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       0               4,807,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (5,674,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       164                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       757,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       110,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       2,145,000                  
Note Payable, Due March 2022 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       1,988,000                  
Net Carrying Value                                       0               17,712,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (20,367,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       0                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       0                  
Debt Instrument, Other Settlement Gain (Loss)                                       667,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       7,698,000                  
January 13 And March 8, 2021 Notes, Due October 2021, Various Interest Rates | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       6,935,000                  
Net Carrying Value                                       0               0  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       (23,725,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       0                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       16,790,000                  
Accrued Interest At Settlement                                       0                  
Debt Instrument, Other Settlement Gain (Loss)                                       0                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       8,968,000                  
Note Payable, Due October 2021 At 12.75% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       138,000                  
Net Carrying Value                                       0               20,972,000  
Cash Payment                                       (18,992,000)                  
Conversion into Class A Common Stock (As Restated)                                       (3,055,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       1,334                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       270,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       667,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       1,155,000                  
January 13 Notes and March 12 Notes, Due October 6, 2021, At 8.00% & 15.75% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       4,901,000                  
Net Carrying Value                                       0               0  
Cash Payment                                       (11,582,000)                  
Conversion into Class A Common Stock (As Restated)                                       (2,151,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       632                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       8,750,000                  
Accrued Interest At Settlement                                       82,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       0                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       813,000                  
Notes Payable, Settlements During The Transaction | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       14,066,000                  
Net Carrying Value                                       0               68,209,000  
Cash Payment                                       (48,210,000)                  
Conversion into Class A Common Stock (As Restated)                                       (68,541,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       3,480                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       25,540,000                  
Accrued Interest At Settlement                                       7,436,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       1,500,000                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       25,908,000                  
Note Payable, Due April 2022 | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       0                  
Net Carrying Value                                       193,000               9,168,000  
Cash Payment                                       0                  
Conversion into Class A Common Stock (As Restated)                                       0                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       92                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       0                  
Accrued Interest At Settlement                                       0                  
Debt Instrument, Other Settlement Gain (Loss)                                       (8,975,000)                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       (8,975,000)                  
Settlements And Loan Forgiveness | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Fair Value Measurement Adjustments                                       14,066,000                  
Net Carrying Value                                       193,000               $ 153,770,000  
Cash Payment                                       (48,210,000)                  
Conversion into Class A Common Stock (As Restated)                                       (166,916,000)                  
Summary Of Debt [Abstract]                                                          
Interest expense                                       8,261                  
Long-Term Debt, Net Of Original Issue Discount And Warrants                                       25,540,000                  
Accrued Interest At Settlement                                       30,711,000                  
Debt Instrument, Other Settlement Gain (Loss)                                       (8,768,000)                  
Loss on extinguishment of related party notes payable, notes payable and vendor payables in trust, net                                       16,933,000                  
Notes Payable, Due On April 17, 2022, At 1.00% | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Net Carrying Value                                                 $ 200,000        
Summary Of Debt [Abstract]                                                          
Accrued interest settled           $ 200,000                                              
Notes Payable - Due On March 9, 2021, Additional Notes, January 13 Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                             0.00%                            
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                             $ 11,300,000                            
Original issue discount percent                             8.00%                            
Proceeds from notes payable, net of original issuance discount                             $ 9,900,000                            
Summary Of Debt [Abstract]                                                          
Debt issuance costs paid by lender                             $ 500,000                            
Notes Payable - Due On March 9, 2021, Additional Note, March 12 Notes | Notes Payable                                                          
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                       $ 7,000,000                                  
Original issue discount percent                       8.00%                                  
Proceeds from notes payable, net of original issuance discount                       $ 6,400,000                                  
Notes Payable - Due On March 9, 2021, Additional Notes | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                       0                  
Debt Footnote Information [Abstract]                                                          
Proceeds from notes payable, net of original issuance discount                                       16,310,000                  
Exercise price of the warrant (in dollars per share) | $ / shares                             $ 10.00                            
Warrants rights (in shares) | shares                             662,083                            
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       0                  
Fair value of warrants                             $ 2,000,000.0                            
Warrants exercisable period                       7 years                                  
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net                                       1,940,000                  
Principal Conversion Premium Payments Settled With Equity                                       23,725,000                  
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional January 2021 Note | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                             8.00%                            
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                             $ 3,800,000                            
Original issue discount percent                             6.50%                            
Proceeds from notes payable, net of original issuance discount                             $ 3,300,000                            
Summary Of Debt [Abstract]                                                          
Debt issuance costs paid by lender                             $ 200,000                            
Percent of premium convertible into equity                             50.00%                            
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional January 2021 Note | Notes Payable | Minimum                                                          
Summary Of Debt [Abstract]                                                          
Liquidation premium, percent                             35.00%                            
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional January 2021 Note | Notes Payable | Maximum                                                          
Summary Of Debt [Abstract]                                                          
Liquidation premium, percent                             45.00%                            
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional March 2021 Note | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Contractual Interest Rates                         15.75%                                
Debt Footnote Information [Abstract]                                                          
Aggregate principal loan                         $ 5,600,000                                
Original issue discount percent                         6.50%                                
Proceeds from notes payable, net of original issuance discount                         $ 5,200,000                                
Summary Of Debt [Abstract]                                                          
Debt issuance costs paid by lender                         $ 300,000                                
Percent of premium convertible into equity                         50.00%                                
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional March 2021 Note | Notes Payable | Minimum                                                          
Summary Of Debt [Abstract]                                                          
Liquidation premium, percent                         42.00%                                
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional March 2021 Note | Notes Payable | Maximum                                                          
Summary Of Debt [Abstract]                                                          
Liquidation premium, percent                         52.00%                                
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Additional Note | Notes Payable                                                          
Debt Outstanding [Abstract]                                                          
Unpaid Principal Balance                                       0                  
Debt Footnote Information [Abstract]                                                          
Proceeds from notes payable, net of original issuance discount                                       8,218,000                  
Summary Of Debt [Abstract]                                                          
Long-Term Debt, Gross                                       0                  
Interest expense                                       632,000                  
Interest payments                                       550,000                  
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net                                       1,132,000                  
Interest Payments Settled With Equity                                       82,000                  
Principal Conversion Premium Payments Settled With Equity                                       2,069,000                  
Principal Payments And Conversion Premium Settled With Cash                                       $ 11,582,000