XML 82 R60.htm IDEA: XBRL DOCUMENT v3.22.1
Notes Payable - Schedule of Notes Payable (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended 24 Months Ended
Mar. 25, 2022
USD ($)
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. 20, 2021
USD ($)
Jun. 09, 2021
USD ($)
instrument
$ / shares
shares
May 13, 2021
USD ($)
Mar. 12, 2021
USD ($)
Mar. 08, 2021
USD ($)
Mar. 01, 2021
USD ($)
$ / shares
Jan. 13, 2021
USD ($)
$ / shares
shares
Oct. 09, 2020
USD ($)
Sep. 09, 2020
USD ($)
Apr. 17, 2020
USD ($)
Feb. 28, 2022
USD ($)
Dec. 31, 2020
USD ($)
Sep. 30, 2020
USD ($)
Jan. 31, 2020
USD ($)
Apr. 30, 2019
USD ($)
Dec. 31, 2021
USD ($)
$ / shares
shares
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
Dec. 31, 2016
USD ($)
Dec. 31, 2018
USD ($)
Apr. 30, 2022
USD ($)
Jul. 21, 2021
USD ($)
$ / shares
shares
Mar. 31, 2021
USD ($)
Feb. 01, 2021
Nov. 30, 2019
USD ($)
Sep. 30, 2019
USD ($)
Aug. 30, 2019
USD ($)
Jun. 30, 2019
USD ($)
May 31, 2019
USD ($)
Mar. 31, 2019
USD ($)
Jan. 31, 2019
USD ($)
Oct. 31, 2018
USD ($)
Jul. 31, 2017
USD ($)
Apr. 30, 2017
USD ($)
Jun. 30, 2016
USD ($)
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                               1.00%                                                      
Unpaid Balance                                           $ 164,689                                          
Loss (Gain) at Settlement                                           86,904 $ (2,107)                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                               $ 11,515                                      
Proceeds from notes payable, net of original issuance discount                                           172,031 40,595                                        
Notes payable bearing interest rate                               1.00%                                                      
Outstanding principal                                           164,689                                          
Restricted cash                                   $ 703       25,386 703 1,133                                      
Debt issuance costs                                           3,355 4,562                                        
Proceeds from loans                               $ 9,168                                                      
Deferral payments period                               2 years                                                      
Unforgiven portion period                               6 months                                                      
Gain (loss) on extinguishment                                           (86,904) 2,107                                        
Notes payable             $ 85,202                                                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                           164,689                                          
Interest expense                                           30,181 32,173                                        
Proceeds from notes payable, net of original issuance discount                                           172,031 40,595                                        
Principal amounts converted or repaid     $ 8,975                                                                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                               1.00%                                                      
Payments of notes payable, including liquidation premiums                                           (48,210) (32)                                        
Class A Common Stock                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Aggregating principal amount             130,479   $ 90,869                                                                    
Summary Of Debt [Abstract]                                                                                      
Principal settled with equity             19,196                                                                        
Ares Warrants                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Exercisable period           6 years                                                                          
Exercise price of the warrant (in dollars per share) | $ / shares           $ 10.00                                                                          
Warrants rights (in shares) | shares           670,092                                                                          
Fair value of warrants           $ 2,507                                                 $ 5,000                        
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                                                                            
Changes in fair value         $ 7,976                                 5,125                                          
Warrants term               7 years                                                                      
US-Based Investment Firm Warrants | Class A Common Stock                                                                                      
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                          
Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   146,341       164,689 146,341                                        
Fair Value Measurement Adjustments                                   12,106       29,489 12,106                                        
Original issue discount and proceeds allocated to warrants                                           (27,124)                                          
Loss (Gain) at Settlement                                           25,908 (80)                                        
Net Carrying Value                                   158,367       167,054 158,367                                        
Debt Footnote Information [Abstract]                                                                                      
Outstanding principal                                   146,341       164,689 146,341                                        
Aggregating principal amount             75,100                                                                        
Notes payable, related parties, accrued interest                                                           $ 7,436                          
Gain (loss) on extinguishment                                           (25,908) 80                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   146,341       164,689 146,341                                        
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   158,367       167,054 158,367                                        
Fair Value Measurement Adjustments                                   12,106       29,489 12,106                                        
Notes payable | Class A Common Stock                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Aggregating principal amount             $ 75,100                                                                        
March 1, 2021 And August 26, 2021 Notes | Notes payable | Subsequent Event                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Aggregating principal amount   $ 85,000                                                                                  
Notes payable, related parties, accrued interest   $ 9,856                                                                                  
Interest premium $ 2,065                                                                                    
Summary Of Debt [Abstract]                                                                                      
Principal payments in cash                                 $ 96,921                                                    
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                                                                          
Fair value of warrants           $ 2,507                                                                          
Notes Payable Due On March 1, 2022, At 14.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                       14.00%                                                              
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                       14.00%                                                              
Cash requirement                       $ 5                                   $ 25                          
Restricted cash                                           $ 25                                          
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                       14.00%                                                              
Notes Payable March 1, 2021, Due On March 1, 2022, At 14.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                           14.00%                                          
Unpaid Balance                                   0       $ 55,000 0                                        
Fair Value Measurement Adjustments                                           7,692                                          
Original issue discount and proceeds allocated to warrants                                           (5,997)                                          
Net Carrying Value                                           56,695                                          
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal amount that may be issued                       $ 85                                                              
Aggregate principal loan                       55                                                              
Proceeds from notes payable, net of original issuance discount                       $ 51,510                   $ 51,510 0                                        
Original issue discount percent                       4.00%                                                              
Debt issuance costs paid by lender                       $ 90                                                              
Notes payable bearing interest rate                                           14.00%                                          
Outstanding principal                                   0       $ 55,000 0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   0       55,000 0                                        
Accrued interest                                   0       6,455 0                                        
Interest expense                                           6,455 0                                        
Original issue discount                                   0       3,490 0                                        
Proceeds from notes payable, net of original issuance discount                       $ 51,510                   $ 51,510 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                           14.00%                                          
Net Carrying Value                                           $ 56,695                                          
Fair Value Measurement Adjustments                                           $ 7,692                                          
Notes Payable August 26, 2021, Due On March 1, 2022, At 14.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                           14.00%                                          
Unpaid Balance       $ 30                           0       $ 30,000 0                                        
Fair Value Measurement Adjustments                                           1,011                                          
Original issue discount and proceeds allocated to warrants                                           (87)                                          
Net Carrying Value                                           30,924                                          
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount       29,913                                   $ 29,913 0                                        
Notes payable bearing interest rate                                           14.00%                                          
Outstanding principal       30                           0       $ 30,000 0                                        
Debt issuance costs recorded in interest expense       87                                                                              
Summary Of Debt [Abstract]                                                                                      
Outstanding principal       30                           0       30,000 0                                        
Accrued interest                                   0       1,473 0                                        
Interest expense                                           1,473 0                                        
Original issue discount                                   0       87 0                                        
Proceeds from notes payable, net of original issuance discount       $ 29,913                                   $ 29,913 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                           14.00%                                          
Net Carrying Value                                           $ 30,924                                          
Fair Value Measurement Adjustments                                           1,011                                          
Notes Payable June 9, 2021 Notes, Due On December 9, 2022                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Number of notes payable | instrument               2                                                                      
Notes Payable June 9, 2021 Notes, Due On December 9, 2022 | 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                                                                            
Fair value of warrants         $ 7,976                                                                            
Warrants exercisable period         7 years                                                                            
Notes Payable June 9, 2021 Notes 1, Due On December 9, 2022 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   0       20,000 0                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan               $ 20,000                                                                      
Proceeds from notes payable, net of original issuance discount                                           18,203 0                                        
Original issue discount percent               8.00%                                                                      
Outstanding principal                                   0       20,000 0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   0       20,000 0                                        
Original issue discount                                   0       1,797 0                                        
Proceeds from notes payable, net of original issuance discount                                           18,203 0                                        
Notes Payable June 9, 2021 Notes 2, Due On December 9, 2022 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   0       20,000 0                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan               $ 20,000                                                                      
Proceeds from notes payable, net of original issuance discount                                           17,400 0                                        
Original issue discount percent               13.00%                                                                      
Outstanding principal                                   0       20,000 0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   0       20,000 0                                        
Original issue discount                                   0       2,600 0                                        
Proceeds from notes payable, net of original issuance discount                                           $ 17,400 0                                        
Notes Payable June 9, 2021 Notes 1 And 2, Due On December 9, 2022 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                           0.00%                                          
Unpaid Balance                                           $ 40,000                                          
Fair Value Measurement Adjustments                                           8,503                                          
Original issue discount and proceeds allocated to warrants                                           (9,522)                                          
Net Carrying Value                                           $ 38,981                                          
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                           0.00%                                          
Outstanding principal                                           $ 40,000                                          
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                           $ 40,000                                          
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                           0.00%                                          
Net Carrying Value                                           $ 38,981                                          
Fair Value Measurement Adjustments                                           $ 8,503                                          
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%                                 15.00%                                          
Unpaid Balance         $ 33,917                         0       $ 33,917 0                                        
Fair Value Measurement Adjustments                                           12,283                                          
Original issue discount and proceeds allocated to warrants                                           (11,518)                                          
Net Carrying Value                                           34,682                                          
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount         $ 30,375                                 $ 30,375 0                                        
Original issue discount percent         8.00%                                                                            
Notes payable bearing interest rate         15.00%                                 15.00%                                          
Outstanding principal         $ 33,917                         0       $ 33,917 0                                        
Debt issuance costs recorded in interest expense         $ 828                                                                            
Liquidation premium, percent         30.00%                                                                            
Conversion price (in dollars per share) | $ / shares         $ 10.00                                                                            
Summary Of Debt [Abstract]                                                                                      
Outstanding principal         $ 33,917                         0       33,917 0                                        
Accrued interest                                   0       183 0                                        
Interest expense                                           183 0                                        
Original issue discount                                   $ 0       3,542 0                                        
Proceeds from notes payable, net of original issuance discount         $ 30,375                                 $ 30,375 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates         15.00%                                 15.00%                                          
Net Carrying Value                                           $ 34,682                                          
Fair Value Measurement Adjustments                                           $ 12,283                                          
Notes Payable - China Various Other, Due On Demand | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                           0.00%                                          
Unpaid Balance                                           $ 5,458                                          
Fair Value Measurement Adjustments                                           0                                          
Original issue discount and proceeds allocated to warrants                                           0                                          
Net Carrying Value                                           $ 5,458                                          
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                           0.00%                                          
Outstanding principal                                           $ 5,458                                          
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                           $ 5,458                                          
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                           0.00%                                          
Net Carrying Value                                           $ 5,458                                          
Fair Value Measurement Adjustments                                           $ 0                                          
Notes Payable, Due On April 17, 2022, At 1.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   1.00%       1.00% 1.00%                                        
Unpaid Balance                                   $ 9,168       $ 193 $ 9,168                                        
Fair Value Measurement Adjustments                                   0       0 0                                        
Original issue discount and proceeds allocated to warrants                                           0                                          
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 9,168       193 9,168                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                           $ 0 $ 9,168                                        
Notes payable bearing interest rate                                   1.00%       1.00% 1.00%                                        
Outstanding principal                                   $ 9,168       $ 193 $ 9,168                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   9,168       193 9,168                                        
Accrued interest                                   $ 65       2 65                                        
Interest expense                                           92 65                                        
Proceeds from notes payable, net of original issuance discount                                           0 9,168                                        
Principal amounts converted or repaid                                           8,975 0                                        
Accrued interest settled     $ 155                                     $ 155 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   1.00%       1.00% 1.00%                                        
Net Carrying Value                                   $ 9,168       $ 193 $ 9,168                                        
Fair Value Measurement Adjustments                                   $ 0       0 $ 0                                        
Notes Payable, Due On April 17, 2022, At 1.00% | Notes payable | Forecast                                                                                      
Debt Outstanding [Abstract]                                                                                      
Net Carrying Value                                                         $ 195                            
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                                         $ 195                            
Auto Loans With Various Interest Rates | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                           121                                          
Fair Value Measurement Adjustments                                           0                                          
Original issue discount and proceeds allocated to warrants                                           0                                          
Net Carrying Value                                           121                                          
Debt Footnote Information [Abstract]                                                                                      
Outstanding principal                                           121                                          
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                           121                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                           121                                          
Fair Value Measurement Adjustments                                           0                                          
Notes Payable, Due On Contingent, At 12.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   12.00%         12.00%                               12.00%        
Unpaid Balance                                   $ 57,293       0 $ 57,293                                        
Fair Value Measurement Adjustments                                   0         0                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 57,293         $ 57,293                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                             $ 54,179        
Notes payable bearing interest rate                                   12.00%         12.00%                               12.00%        
Outstanding principal                                   $ 57,293       0 $ 57,293                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   57,293       0 57,293                                        
Accrued interest                                   $ 13,769       0 13,769                                        
Interest expense                                           3,408 7,387                                        
Foreign exchange (gain) loss on principal                                           (1,293) 4,108                                        
Principal settled with equity                                           56,000 0                                        
Interest settled with equity                                           $ 17,177 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   12.00%         12.00%                               12.00%        
Net Carrying Value                                   $ 57,293         $ 57,293                                        
Fair Value Measurement Adjustments                                   $ 0         $ 0                                        
Notes payable – NPA Tranche, Due On October 6, 2020, At 10.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   10.00%       10.00% 10.00%                                        
Unpaid Balance                                   $ 17,637         $ 17,637                                        
Fair Value Measurement Adjustments                                   3,422         3,422                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 21,059         $ 21,059                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                   10.00%       10.00% 10.00%                                        
Outstanding principal                                   $ 17,637         $ 17,637                                        
Percentage of premium into shares of preferred stock                                         20.00%                                            
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 17,637         $ 17,637                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   10.00%       10.00% 10.00%                                        
Net Carrying Value                                   $ 21,059         $ 21,059                                        
Fair Value Measurement Adjustments                                   3,422         3,422                                        
Notes Payable - Other, Due On Demand, At 8.99%, Original Note | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                           8.99%          
Unpaid Balance                                   380       $ 0 380                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                           $ 1,500          
Notes payable bearing interest rate                                                                           8.99%          
Outstanding principal                                   380       0 380                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   380       0 380                                        
Accrued interest                                   99       0 99                                        
Interest expense                                           21 45                                        
Principal settled with equity                                           380 0                                        
Interest settled with equity                                           118 0                                        
Principal payments in cash                                           0 120                                        
Principal amounts converted or repaid                                     $ 380                                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                           8.99%          
Payments of notes payable, including liquidation premiums                                             (120) (1)                                      
Notes Payable - Other, Due On Demand, At 8.99%, Additional Note At 2.99% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                       2.99%              
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                       $ 3,600              
Notes payable bearing interest rate                                                                       2.99%              
Summary Of Debt [Abstract]                                                                                      
Accrued interest                                   4       0 4                                        
Interest settled with equity                                           4 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                       2.99%              
Notes Payable - Other Notes, Due June 2021 At 6.99%, Note One | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                   6.99%                  
Unpaid Balance                                   180       0 180                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                   $ 180                  
Notes payable bearing interest rate                                                                   6.99%                  
Outstanding principal                                   180       0 180                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   180       0 180                                        
Accrued interest                                   10       0 10                                        
Interest expense                                           8 6                                        
Principal settled with equity                                           180 0                                        
Interest settled with equity                                           17 0                                        
Principal amounts converted or repaid                                     180                                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                   6.99%                  
Notes Payable - Other Notes, Due June 2021 At 6.99%, Note Two | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                 6.99%                    
Unpaid Balance                                   1,200       0 1,200                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                 $ 2,700                    
Notes payable bearing interest rate                                                                 6.99%                    
Outstanding principal                                   1,200       0 1,200                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   1,200       0 1,200                                        
Accrued interest                                   192       0 192                                        
Interest expense                                           55 171                                        
Principal settled with equity                                           1,200 0                                        
Interest settled with equity                                           239 0                                        
Principal payments in cash                                           0 1,500                                        
Interest payments in cash                                           0 5                                        
Principal amounts converted or repaid                                     $ 1,200                                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                 6.99%                    
Notes payable – NPA Tranche, Due On October 6, 2020, At 10.00%, April 2019 Transactions                                                                                      
Summary Of Debt [Abstract]                                                                                      
Principal and conversion premium settled with equity                                           1,716 0                                        
Interest settled with equity                                           1,914 0                                        
Notes payable – NPA Tranche, Due On October 6, 2020, At 10.00%, April 2019 Transactions | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                         20.00%                                            
Unpaid Balance                                   8,581       0 8,581                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                         20.00%                                            
Outstanding principal                                   8,581       0 8,581                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   8,581       0 8,581                                        
Accrued interest                                   1,418       0 1,418                                        
Interest expense                                           496 861                                        
Principal payments in cash                                         $ 8,581 8,581 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                         20.00%                                            
Notes payable – NPA Tranche, Due On October 6, 2020, At 10.00%, June Through August 2019 Transactions | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                     10.00%                
Unpaid Balance                                   17,637       0 17,637                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                     $ 17,637                
Notes payable bearing interest rate                                                                     10.00%                
Outstanding principal                                   17,637       0 17,637                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   17,637       0 17,637                                        
Accrued interest                                   2,637       0 2,637                                        
Interest expense                                           976 1,768                                        
Principal and conversion premium settled with equity                                           3,527 0                                        
Interest settled with equity                                           3,613 0                                        
Principal payments in cash                                           17,637 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                     10.00%                
Notes payable – NPA Tranche, Due On October 6, 2020, At 10.00%, May 2019 Transactions | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                         10.00%            
Unpaid Balance                                   900       0 900                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                         $ 900            
Notes payable bearing interest rate                                                                         10.00%            
Outstanding principal                                   900       0 900                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   900       0 900                                        
Accrued interest                                   $ 143       0 143                                        
Interest expense                                           50 90                                        
Principal and conversion premium settled with equity                                           180 0                                        
Interest settled with equity                                           193 0                                        
Principal payments in cash                                           $ 900 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                         10.00%            
Notes payable – Due On June 30 2021, At 12.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   12.00%       12.00% 12.00%                                        
Unpaid Balance                                   $ 19,100         $ 19,100                                        
Fair Value Measurement Adjustments                                   0         0                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 19,100         $ 19,100                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                                     $ 31,500                                
Notes payable bearing interest rate                                   12.00%       12.00% 12.00%                                        
Outstanding principal                                   $ 19,100         $ 19,100                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 19,100         $ 19,100                                        
Proceeds from notes payable, net of original issuance discount                                                     31,500                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   12.00%       12.00% 12.00%                                        
Net Carrying Value                                   $ 19,100         $ 19,100                                        
Fair Value Measurement Adjustments                                   0         0                                        
Notes Payable – Due On June 30 2021, At 12.00%, December 2016 Transaction One | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   10,600       $ 0 10,600                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                     10,000                                
Outstanding principal                                   10,600       0 10,600                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   10,600       0 10,600                                        
Accrued interest                                   2,547       0 2,547 $ 600                                      
Interest expense                                           704 1,275                                        
Principal settled with equity                                           10,600 0                                        
Interest settled with equity                                           3,251 0                                        
Notes Payable – Due On June 30 2021, At 12.00%, December 2016 Transaction Two | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   1,500       0 1,500                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                     $ 1,500                                
Outstanding principal                                   1,500       0 1,500                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   1,500       0 1,500                                        
Accrued interest                                   587       0 587                                        
Interest expense                                           112 203                                        
Principal settled with equity                                           1,500 0                                        
Interest settled with equity                                           699 0                                        
Notes Payable – Due On June 30 2021, At 12.00%, June 2016 Transaction | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   7,000       0 7,000                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                                     $ 20,000
Outstanding principal                                   7,000       0 7,000                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   7,000       0 7,000                                        
Accrued interest                                   $ 1,682       0 1,682                                        
Interest expense                                           465 842                                        
Principal and conversion premium settled with equity                                           10,375 0                                        
Interest settled with equity                                           2,147 $ 0                                        
Principal payments in cash                                                 $ 13,000                                    
Notes Payable - China, Due On Demand, At 9.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   9.00%         9.00%                                     9.00%  
Unpaid Balance                                   $ 3,677       0 $ 3,677                                        
Fair Value Measurement Adjustments                                   0       0 0                                        
Loss (Gain) at Settlement                                           2,430 (18)                                        
Net Carrying Value                                   $ 3,659       0 $ 3,659                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                                   $ 3,496  
Notes payable bearing interest rate                                   9.00%         9.00%                                     9.00%  
Outstanding principal                                   $ 3,677       0 $ 3,677                                        
Gain (loss) on extinguishment                                           (2,430) 18                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   3,677       0 3,677                                        
Accrued interest                                   $ 2,314       0 2,314                                        
Interest expense                                           374 637                                        
Principal settled with equity                                           3,715 0                                        
Interest settled with equity                                           2,713 0                                        
Principal payments in cash                                           219 237                                        
Interest payments in cash                                           167 $ 142                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   9.00%         9.00%                                     9.00%  
Net Carrying Value                                   $ 3,659       0 $ 3,659                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                   $ 0       0 $ 0                                        
Accrued Interest at Settlement                                           2,713                                          
FX and Other                                           56                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (6,428)                                          
Notes Payable - China, Various Dates 2021, At 6.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   6.00%         6.00%                                        
Unpaid Balance                                   $ 4,869         $ 4,869                                        
Fair Value Measurement Adjustments                                   0       0 0                                        
Loss (Gain) at Settlement                                           2,145 (62)                                        
Net Carrying Value                                   $ 4,807       0 $ 4,807                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                   6.00%         6.00%                                        
Outstanding principal                                   $ 4,869         $ 4,869                                        
Gain (loss) on extinguishment                                           (2,145) 62                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 4,869         $ 4,869                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   6.00%         6.00%                                        
Net Carrying Value                                   $ 4,807       0 $ 4,807                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                   0       0 0                                        
Accrued Interest at Settlement                                           757                                          
FX and Other                                           110                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (5,674)                                          
Notes Payable - China, Various Dates 2021, At 6.00%, Note One | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                               6.00%                                      
Unpaid Balance                                   4,140       0 4,140                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                           0 766                                        
Notes payable bearing interest rate                                               6.00%                                      
Outstanding principal                                   4,140       0 4,140                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   4,140       0 4,140                                        
Accrued interest                                   569       0 569                                        
Interest expense                                           139 235                                        
Proceeds from notes payable, net of original issuance discount                                           0 766                                        
Foreign exchange (gain) loss on principal                                           260 219                                        
Foreign exchange (gain) loss on accrued interest                                           44 35                                        
Principal settled with equity                                           4,181 0                                        
Interest settled with equity                                           713 0                                        
Principal payments in cash                                               $ 8,155                                      
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                               6.00%                                      
Notes Payable - China, Various Dates 2021, At 6.00%, Note Two | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                     6.00%                                                
Unpaid Balance                                   729       0 729                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                     $ 761                                                
Proceeds from notes payable, net of original issuance discount                                           0 761                                        
Notes payable bearing interest rate                                     6.00%                                                
Outstanding principal                                   729       0 729                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   729       0 729                                        
Accrued interest                                   $ 19       0 19                                        
Interest expense                                           24 19                                        
Proceeds from notes payable, net of original issuance discount                                           0 761                                        
Foreign exchange (gain) loss on principal                                           (25) 0                                        
Foreign exchange (gain) loss on accrued interest                                           1 0                                        
Principal settled with equity                                           736 0                                        
Interest settled with equity                                           44 0                                        
Principal payments in cash                                           0 $ 32                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                     6.00%                                                
Notes Payable - China, Due On Demand, At 0.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   0.00%         0.00%                                        
Unpaid Balance                                   $ 4,597       5,458 $ 4,597                                        
Fair Value Measurement Adjustments                                   0         0                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 4,597         $ 4,597                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                                       $ 4,371                              
Notes payable bearing interest rate                                   0.00%         0.00%                                        
Outstanding principal                                   $ 4,597       5,458 $ 4,597                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 4,597       5,458 4,597                                        
Proceeds from notes payable, net of original issuance discount                                                       $ 4,371                              
Foreign exchange (gain) loss on principal                                           133 297                                        
Reclassification from related party notes payable                                           730 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   0.00%         0.00%                                        
Net Carrying Value                                   $ 4,597         $ 4,597                                        
Fair Value Measurement Adjustments                                   $ 0         $ 0                                        
Notes Payable - Due On March 9, 2021 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   0.00%         0.00%                                        
Unpaid Balance                                   $ 15,000         $ 15,000                                        
Fair Value Measurement Adjustments                                   2,712         2,712                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 17,712         $ 17,712                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                   0.00%         0.00%                                        
Outstanding principal                                   $ 15,000         $ 15,000                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 15,000         $ 15,000                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   0.00%         0.00%                                        
Net Carrying Value                                   $ 17,712         $ 17,712                                        
Fair Value Measurement Adjustments                                   2,712         2,712                                        
Notes Payable - Due On March 9, 2021, Original Note | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                         $ 15         15,000       0 15,000                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                           $ 0 13,800                                        
Exercise price of the warrant (in dollars per share) | $ / shares                                           $ 10.00                                          
Outstanding principal                         15         15,000       $ 0 15,000                                        
Outstanding principal, accrued and unpaid interest and accrued original issue discount percentage                                           130.00%                                          
Notes payable                                           $ 17,712                                          
Increase in principal amount                         667                                                            
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                         $ 15         15,000       0 15,000                                        
Proceeds from notes payable, net of original issuance discount                                           0 13,800                                        
Principal and conversion premium settled with equity                                           20,367 0                                        
Notes Payable - Due On March 9, 2021, Original Note | Notes payable | Non Performing Assets                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                             0.00%                                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                             $ 15,000                                                        
Proceeds from notes payable, net of original issuance discount                             $ 13,800                                                        
Notes payable bearing interest rate                             0.00%                                                        
Original issue discount                             8.00%                                                        
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                             $ 13,800                                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                             0.00%                                                        
Notes Payable - Due On March 9, 2021, Original Note | Notes payable | Black Scholes Option Pricing Model                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Gain from settlement                                           $ 490                                          
Notes Payable - Due On March 9, 2021, Original Note | Notes payable | Class A Common Stock                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Warrants rights (in shares) | shares                                           525,000                                          
Warrants term                                           7 years                                          
Notes Payable - Due On March 9, 2021, Additional Notes | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   0       $ 0 0                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                           16,310 0                                        
Exercise price of the warrant (in dollars per share) | $ / shares                         $ 10.00                                                            
Warrants rights (in shares) | shares                         662,083                                                            
Fair value of warrants                         $ 1,988                                                            
Outstanding principal                                   0       0 0                                        
Warrants exercisable period                   7 years                                                                  
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   0       0 0                                        
Original issue discount                                   $ 0       1,940 0                                        
Proceeds from notes payable, net of original issuance discount                                           16,310 0                                        
Principal and conversion premium settled with equity                                           23,725 $ 0                                        
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,250                                                            
Proceeds from notes payable, net of original issuance discount                         $ 9,870                                                            
Original issue discount percent                         8.00%                                                            
Debt issuance costs paid by lender                         $ 480                                                            
Notes payable bearing interest rate                         0.00%                                                            
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                         $ 9,870                                                            
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                         0.00%                                                            
Notes Payable - Due On March 9, 2021, Additional Note, March 12 Notes | Notes payable                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                   $ 7                                                                  
Proceeds from notes payable, net of original issuance discount                   $ 6,440                                                                  
Original issue discount percent                   8.00%                                                                  
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                   $ 6,440                                                                  
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   12.75%         12.75%                                        
Unpaid Balance                                   $ 15,000         $ 15,000                                        
Fair Value Measurement Adjustments                                   5,972         5,972                                        
Loss (Gain) at Settlement                                             0                                        
Net Carrying Value                                   $ 20,972         $ 20,972                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                   12.75%         12.75%                                        
Outstanding principal                                   $ 15,000         $ 15,000                                        
Gain (loss) on extinguishment                                             0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   $ 15,000         $ 15,000                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   12.75%         12.75%                                        
Net Carrying Value                                   $ 20,972         $ 20,972                                        
Fair Value Measurement Adjustments                                   5,972         5,972                                        
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Original Note                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Notes payable                                   20,972         20,972                                        
Conversion rate                           50.00%                                                          
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Original Note | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                           12.75%                                   15.75%                      
Unpaid Balance                                   15,000       0 15,000                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                           $ 15,000                                                          
Proceeds from notes payable, net of original issuance discount                                           0 15,000                                        
Notes payable bearing interest rate                           12.75%                                   15.75%                      
Outstanding principal                                   15,000       0 15,000                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   15,000       0 15,000                                        
Interest expense                                           1,334 366                                        
Proceeds from notes payable, net of original issuance discount                                           0 15,000                                        
Principal and conversion premium settled with equity                                           2,785 0                                        
Interest and adjustment fee settled with equity                                           270 0                                        
Principal and conversion premium payments in cash                                           18,992 0                                        
Interest payments in cash                                           1,197 366                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                           12.75%                                   15.75%                      
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Original Note | Notes payable | Minimum                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Liquidation preference premium percentage                           35.00%                                                          
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Original Note | Notes payable | Maximum                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Liquidation preference premium percentage                           45.00%                                                          
Notes Payable, Various Other Notes, Due On October 6, 2021, At 12.75%, Additional Note | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Unpaid Balance                                   0       0 0                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                           8,218 0                                        
Outstanding principal                                   0       0 0                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   0       0 0                                        
Interest expense                                           632 0                                        
Original issue discount                                   0       1,132 0                                        
Proceeds from notes payable, net of original issuance discount                                           8,218 0                                        
Principal and conversion premium settled with equity                                           2,069 0                                        
Interest settled with equity                                           82 0                                        
Principal and conversion premium payments in cash                                           11,582 0                                        
Interest payments in cash                                           550 0                                        
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,750                                                            
Proceeds from notes payable, net of original issuance discount                         $ 3,285                                                            
Original issue discount percent                         6.50%                                                            
Debt issuance costs paid by lender                         $ 225                                                            
Notes payable bearing interest rate                         8.00%                                                            
Percent of premium convertible into equity                         50.00%                                                            
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                         $ 3,285                                                            
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                         8.00%                                                            
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional January 2021 Note | Notes payable | Minimum                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Liquidation premium, percent                         35.00%                                                            
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional January 2021 Note | Notes payable | Maximum                                                                                      
Debt Footnote Information [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                                                                
Proceeds from notes payable, net of original issuance discount                     $ 5,240                                                                
Original issue discount percent                     6.50%                                                                
Debt issuance costs paid by lender                     $ 307                                                                
Notes payable bearing interest rate                     15.75%                                                                
Percent of premium convertible into equity                     50.00%                                                                
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                     $ 5,240                                                                
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                     15.75%                                                                
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional March 2021 Note | Notes payable | Minimum                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Liquidation premium, percent                     42.00%                                                                
Notes Payable, Various Other Notes, Due On October 6, 2021, Additional March 2021 Note | Notes payable | Maximum                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Liquidation premium, percent                     52.00%                                                                
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                                                                      
Aggregate principal loan               20,000                                                                      
Proceeds from notes payable, net of original issuance discount               $ 35,603                                                                      
Notes payable bearing interest rate               10.00%                                                                      
Exercise price of the warrant (in dollars per share) | $ / shares               $ 10.00                                                                      
Warrants rights (in shares) | shares               1,500,000                                                                      
Original issuance discount               $ 4,200                                                                      
Debt issuance costs               $ 197                                                                      
Liquidation premium, percent               30.00%                                                                      
Changes in fair value               $ 5,125                                                                      
Threshold period for additional issuance               12 months                                                                      
Summary Of Debt [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount               $ 35,603                                                                      
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates               10.00%                                                                      
Note Payable With Repayment In 12% Increments, Contingent On Fundraising Event | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           0                                          
Loss (Gain) at Settlement                                           0                                          
Net Carrying Value                                   57,293       0 57,293                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           0                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   57,293       0 57,293                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           0                                          
Accrued Interest at Settlement                                           17,177                                          
FX and Other                                           (1,293)                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (73,177)                                          
Notes Payable, Due On June 2021, At 12.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           0                                          
Loss (Gain) at Settlement                                           0                                          
Net Carrying Value                                   19,100       0 19,100                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           0                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   19,100       0 19,100                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           0                                          
Accrued Interest at Settlement                                           6,098                                          
FX and Other                                           0                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (25,198)                                          
Notes Payable, Settlements Prior To Transaction | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           0                                          
Loss (Gain) at Settlement                                           0                                          
Net Carrying Value                                   76,393       0 76,393                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           0                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   76,393       0 76,393                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           0                                          
Accrued Interest at Settlement                                           23,275                                          
FX and Other                                           (1,293)                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (98,375)                                          
Notes Payable, NPA Tranche, Due October 2021 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           104                                          
Loss (Gain) at Settlement                                           2,699                                          
Net Carrying Value                                   21,059       0 21,059                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (2,699)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   21,059       0 21,059                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           104                                          
Accrued Interest at Settlement                                           3,614                                          
FX and Other                                           0                                          
Payments of notes payable, including liquidation premiums                                           (17,636)                                          
Equity Settlement                                           (7,141)                                          
Notes Payable, Due On June 2021, At 1.52% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                                 1.52%    
Unpaid Balance                                   4,400       0 4,400                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                                 $ 22,400    
Notes payable bearing interest rate                                                                                 1.52%    
Outstanding principal                                   4,400       0 4,400                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   4,400       0 4,400                                        
Accrued interest                                   $ 314       0 314                                        
Interest expense                                           37 84                                        
Principal settled with equity                                           4,400 0                                        
Interest settled with equity                                           351 $ 0                                        
Principal payments in cash                                                 $ 18,000 $ 18,000                                  
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                                 1.52%    
Notes Payable, Due On June 2021, At 8.99% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   8.99%         8.99%                                        
Unpaid Balance                                   $ 2,240       0 $ 2,240                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                   $ 2,240                                                  
Notes payable bearing interest rate                                   8.99%         8.99%                                        
Outstanding principal                                   $ 2,240       0 $ 2,240                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   2,240       0 2,240                                        
Accrued interest                                   202       0 202                                        
Interest expense                                           111 185                                        
Proceeds from notes payable, net of original issuance discount                                   $ 2,240                                                  
Principal settled with equity                                           2,240 0                                        
Interest settled with equity                                           313 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   8.99%         8.99%                                        
Notes Payable, Due On June 2021, At 8.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                       8.00%                                              
Unpaid Balance                                   $ 300       0 $ 300                                        
Debt Footnote Information [Abstract]                                                                                      
Proceeds from notes payable, net of original issuance discount                                       $ 300   0 300                                        
Notes payable bearing interest rate                                       8.00%                                              
Outstanding principal                                   300       0 300                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   300       0 300                                        
Accrued interest                                   23       0 23                                        
Interest expense                                           13 23                                        
Proceeds from notes payable, net of original issuance discount                                       $ 300   0 300                                        
Principal settled with equity                                           300 0                                        
Interest settled with equity                                           36 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                       8.00%                                              
Notes Payable, Other Notes, Due On June 2021, At 2.86% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                                                               2.86%      
Unpaid Balance                                   1,500       0 1,500                                        
Debt Footnote Information [Abstract]                                                                                      
Aggregate principal loan                                                                               $ 1,500      
Notes payable bearing interest rate                                                                               2.86%      
Outstanding principal                                   1,500       0 1,500                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   1,500       0 1,500                                        
Accrued interest                                   95       0 95                                        
Interest expense                                           24 43                                        
Principal settled with equity                                           1,500 0                                        
Interest settled with equity                                           119 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                                                               2.86%      
Note Payable, Due March 2022 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           1,988                                          
Loss (Gain) at Settlement                                           7,698                                          
Net Carrying Value                                   17,712       0 17,712                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (7,698)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   17,712       0 17,712                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           1,988                                          
Accrued Interest at Settlement                                           0                                          
FX and Other                                           667                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (20,367)                                          
January 13 And March 8, 2021 Notes, Due October 2021, Various Interest Rates | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           6,935                                          
Loss (Gain) at Settlement                                           8,968                                          
Net Carrying Value                                   0       0 0                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (8,968)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   0       0 0                                        
Borrowings, net of OID                                           16,790                                          
Fair Value Measurement Adjustments                                           6,935                                          
Accrued Interest at Settlement                                           0                                          
FX and Other                                           0                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           (23,725)                                          
Note Payable, Due October 2021 At 12.75% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           138                                          
Loss (Gain) at Settlement                                           1,155                                          
Net Carrying Value                                   20,972       0 20,972                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (1,155)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   20,972       0 20,972                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           138                                          
Accrued Interest at Settlement                                           270                                          
FX and Other                                           667                                          
Payments of notes payable, including liquidation premiums                                           (18,992)                                          
Equity Settlement                                           (3,055)                                          
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                                          
Loss (Gain) at Settlement                                           813                                          
Net Carrying Value                                   0       0 0                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (813)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   0       0 0                                        
Borrowings, net of OID                                           8,750                                          
Fair Value Measurement Adjustments                                           4,901                                          
Accrued Interest at Settlement                                           82                                          
FX and Other                                           0                                          
Payments of notes payable, including liquidation premiums                                           (11,582)                                          
Equity Settlement                                           (2,151)                                          
Notes Payable, Settlements During The Transaction | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           14,066                                          
Loss (Gain) at Settlement                                           25,908                                          
Net Carrying Value                                   68,209       0 68,209                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (25,908)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   68,209       0 68,209                                        
Borrowings, net of OID                                           25,540                                          
Fair Value Measurement Adjustments                                           14,066                                          
Accrued Interest at Settlement                                           7,436                                          
FX and Other                                           1,500                                          
Payments of notes payable, including liquidation premiums                                           (48,210)                                          
Equity Settlement                                           (68,541)                                          
Note Payable, Due April 2022 | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           0                                          
Loss (Gain) at Settlement                                           (8,975)                                          
Net Carrying Value                                   9,168       193 9,168                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           8,975                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   9,168       193 9,168                                        
Borrowings, net of OID                                           0                                          
Fair Value Measurement Adjustments                                           0                                          
Accrued Interest at Settlement                                           0                                          
FX and Other                                           (8,975)                                          
Payments of notes payable, including liquidation premiums                                           0                                          
Equity Settlement                                           0                                          
Settlements And Loan Forgiveness | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Fair Value Measurement Adjustments                                           14,066                                          
Loss (Gain) at Settlement                                           16,933                                          
Net Carrying Value                                   153,770       193 153,770                                        
Debt Footnote Information [Abstract]                                                                                      
Gain (loss) on extinguishment                                           (16,933)                                          
Debt Settlement [Abstract]                                                                                      
Net Carrying Value                                   $ 153,770       193 $ 153,770                                        
Borrowings, net of OID                                           25,540                                          
Fair Value Measurement Adjustments                                           14,066                                          
Accrued Interest at Settlement                                           30,711                                          
FX and Other                                           (8,768)                                          
Payments of notes payable, including liquidation premiums                                           (48,210)                                          
Equity Settlement                                           (166,916)                                          
Notes Payable, Various Other Notes, Due On June 30, 2021, At 8.00% | Notes payable                                                                                      
Debt Outstanding [Abstract]                                                                                      
Contractual Interest Rates                                   8.00%         8.00%                                        
Unpaid Balance                                   $ 11,635       0 $ 11,635                                        
Debt Footnote Information [Abstract]                                                                                      
Notes payable bearing interest rate                                   8.00%         8.00%                                        
Outstanding principal                                   $ 11,635       0 $ 11,635                                        
Summary Of Debt [Abstract]                                                                                      
Outstanding principal                                   11,635       0 11,635                                        
Accrued interest                                   $ 1,177       0 1,177                                        
Interest expense                                           515 933                                        
Principal settled with equity                                           11,635 0                                        
Interest settled with equity                                           $ 1,692 $ 0                                        
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                                   8.00%         8.00%                                        
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]                                                                                      
Notes payable bearing interest rate                       14.00%                                                              
Issuance period                       15 days                                                              
Fully diluted capitalization (in percent)                       0.20%                                                              
Exercise price of the warrant (in dollars per share) | $ / shares                       $ 10.00                                                              
Liability value                       $ 5                                                              
Debt Settlement [Abstract]                                                                                      
Contractual Interest Rates                       14.00%                                                              
August 26, 2021 Notes, Due on March 1, 2022 At 0.00% | Notes payable                                                                                      
Debt Footnote Information [Abstract]                                                                                      
Payment premium, percentage       14.00%