Debt (Details Narrative) | | | | | | | | | | | | | | | | | | 1 Months Ended | 3 Months Ended | 6 Months Ended | | | | | | | | | | | | | | | | |
Aug. 31, 2023 USD ($) $ / shares shares | Apr. 30, 2023 USD ($) $ / shares | Mar. 20, 2023 USD ($) shares | Mar. 13, 2023 USD ($) shares | Mar. 07, 2023 USD ($) Integer | Feb. 17, 2023 USD ($) shares | Dec. 21, 2022 USD ($) | Dec. 19, 2022 USD ($) | Sep. 15, 2022 USD ($) $ / shares | Sep. 15, 2022 USD ($) $ / shares shares | May 04, 2022 USD ($) $ / shares shares | Apr. 04, 2022 USD ($) $ / shares | Mar. 21, 2022 USD ($) $ / shares | Feb. 15, 2022 | Oct. 14, 2020 USD ($) $ / shares | Jun. 09, 2020 USD ($) $ / shares shares | Apr. 26, 2020 | Apr. 24, 2020 USD ($) $ / shares shares | Aug. 14, 2023 shares | May 31, 2023 USD ($) | May 31, 2022 Integer | Jun. 30, 2023 USD ($) $ / shares | Jun. 30, 2022 USD ($) | Mar. 31, 2022 USD ($) | Jun. 30, 2023 USD ($) $ / shares shares | Jun. 30, 2022 USD ($) | Aug. 07, 2023 $ / shares | Jul. 31, 2023 shares | Apr. 05, 2023 $ / shares | Mar. 31, 2023 $ / shares | Feb. 28, 2023 $ / shares | Dec. 31, 2022 USD ($) $ / shares | Dec. 20, 2022 USD ($) $ / shares shares | Oct. 03, 2022 $ / shares | Sep. 30, 2022 $ / shares | Sep. 12, 2022 USD ($) | Apr. 30, 2022 $ / shares | Mar. 01, 2022 USD ($) $ / shares shares | Jan. 13, 2022 USD ($) $ / shares shares | Jan. 02, 2022 | Nov. 20, 2021 USD ($) $ / shares shares | Apr. 23, 2020 USD ($) |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Purchase agreement, threshold amount of aggregate gross proceeds from future sale of equity securities | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 50,000,000 | |
Interest expense | | | | | | | | | | | | | | | | | | | | | | | | | $ 1,134,000 | $ 1,055,000 | | | | | | | | | | | | | | | | |
Debt covenant, cumulative net sales requirement | | | | | | | | | | | | | | | | | | | | | | | | | 100,000,000 | | | | | | | | | | | | | | | | | |
Debt Instrument, Periodic Payment | | | | | $ 92,700,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument, Convertible, Threshold Trading Days | Integer | | | | | 3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible notes payable, current | | | | | | | | | | | | | | | | | | | | | | $ 15,600,000 | | | $ 15,600,000 | | | | | | | $ 39,416,000 | | | | | | | | | | |
Common stock, par value (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | | $ 0.0001 | | | | | | | $ 0.0001 | $ 0.0001 | $ 0.01 | | | | | | | | |
Net proceeds from offering | | | $ 300,000 | $ 400,000 | | $ 900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Series B-2 Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of convertible shares to be redeemed (in shares) | shares | | | | | | | | | | | 2,100 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Series C Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of convertible shares to be redeemed (in shares) | shares | | | | | | | | | | | 1,700 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Common Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 587.50 | | | | | |
Subsequent Event [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | $ 1,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[custom:DebtConversionConvertedInstrumentAmount] | shares | | | | | | | | | | | | | | | | | | | 1,147,332 | | | | | | | | | | | | | | | | | | | | | | | |
Net proceeds from offering | $ 500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Minimum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial ownership limitation percentage | | | | | | | | | | | | | | 4.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Maximum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial ownership limitation percentage | | | | | | | | | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Second Baker Amendment [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | | $ 725.81 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt covenant, cumulative net sales requirement | | | | | | | | | | | | | | | | | | | | | | | | | $ 100,000,000 | | | | | | | | | | | | | | | | | |
conversion price percentage | | | | | | | | | | | | | 100% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Agreegate gross proceeds | | | | | | | | | | | | | $ 20,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Third Baker Amendment [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | $ 26.25 | $ 26.25 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Accrued interest | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1,400,000 | | | | | | |
Debt principal amount | | | | | | | | | $ 44,200,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt interest payments | | | | | | | | | $ 1,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Secured Creditor Forbearance Agreement [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt default amount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1,000,000 | | | | | | | | | | |
Debt instrument indebtedness amount | | | | | | | | $ 5,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
June 2022 Baker Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 582,886 | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 93.75 | |
Baker Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | $ 0.8125 | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1.625 | | | | | | | | | | | | |
Baker Warrants [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.40 | | | | | | | | | | | | | | | |
Baker Warrants [Member] | Second Baker Amendment [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 93.75 | | | | | | | |
Warrant [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | 799,999 | | | | | | | | | | | | | | | | | | | | | | | | | | | 1,200,000 | | | | | | | | | | | | | | |
December 2022 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 369,230 | | | | | | | | | |
Strike price (in usd per share) | $ / shares | | $ 0.8125 | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1.625 | | | $ 6.25 | | | | | | | | | |
December 2022 Warrants [Member] | Series D Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70 | | | | | | | | | |
December 2022 Warrants [Member] | Subsequent Event [Member] | Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible conversion price | $ / shares | $ 0.40 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
2023 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | 215,384 | 240,000 | | 553,846 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
2023 Warrants [Member] | Placement Agent [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | 43,200 | | | 99,692 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Baker First Closing Notes [Member] | First Closing Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | 1,639 | | | | | | | | | | | | | | | | | | | | | | | | |
Unsecured Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, term | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5 years | 5 years | | | |
Unsecured Debt [Member] | January 2022 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 735 | | | |
Unsecured Debt [Member] | January 2022 Warrants [Member] | Common Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8,003 | | | |
Common stock, par value (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | | |
Unsecured Debt [Member] | March 2022 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8,303 | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 897.56 | | | | |
Common stock, par value (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.0001 | | | | |
May 2022 Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of common shares to be redeemed (in shares) | shares | | | | | | | | | | | 4,266 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of common shares to be issued (in shares) | shares | | | | | | | | | | | 1,666 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, redemption price, percentage | | | | | | | | | | | 100% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, underwritten public offering threshold amount | | | | | | | | | | | $ 20,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, underwritten public offering threshold amount | | | | | | | | | | | $ 5,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Trading period suspension | Integer | | | | | | | | | | | | | | | | | | | | | 5 | | | | | | | | | | | | | | | | | | | | | |
Debt default interest rate | | | | | | | | | | | | | | | | | | | | | | | | | 18% | | | | | | | | | | | | | | | | | |
Debt default redemption percentage | | | | | | | | | | | | | | | | | | | | | | | | | 125% | | | | | | | | | | | | | | | | | |
May 2022 Notes [Member] | Series B-2 Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of convertible shares to be redeemed (in shares) | shares | | | | | | | | | | | 2,100 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
May 2022 Notes [Member] | Series C Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of convertible shares to be redeemed (in shares) | shares | | | | | | | | | | | 1,700 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
May 2022 Notes [Member] | Common Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Exchange agreement, number of common shares to be redeemed (in shares) | shares | | | | | | | | | | | 4,266 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
May 2022 Notes [Member] | Warrant [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | 6,666 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | $ 309.56 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Warrants and rights outstanding, term | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Senior Subordinated Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Net proceeds from offering | | $ 500,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Senior Subordinated Notes [Member] | April 2023 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | 615,384 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, vesting term | | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.8125 | | | | | | | | | | | | $ 4,575 | |
Conversion price as a percentage of lowest stock price | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 115% | |
Debt covenant, cumulative net sales requirement | | | | | | | | | | | | | | | | | | | | | | | | | $ 100,000,000 | | | | | | | | | | | | | | | | | |
conversion price percentage | | | | | | | | | | | | | 100% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Changes in fair value | | | | | | | | | | | | | | | | | | | | | | $ 8,200,000 | | | 8,200,000 | | | | | | | | | | | | | | | | | |
Convertible notes payable, current | | | | | | | | | | | | | | | | | | | | | | 15,600,000 | | | 15,600,000 | | | | | | | | | | | | | | | | | |
Convertible notes payable, current, outstanding balance, principal and interest | | | | | | | | | | | | | | | | | | | | | | 95,700,000 | | | 95,700,000 | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible conversion price | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.40 | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Convertible Notes Payable [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 25,000,000 |
Debt instrument, term | | | | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term with no prepayment | | | | | | | | | | | | | | | | | 3 years | | | | | | | | | | | | | | | | | | | | | | | | | |
Note interest rate percent | | | | | | | | | | | | | | | | | | 10% | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument, rate | | | | | | | | | | | | | | | | | | 10% | | | | | | | | | | | | | | | | | | | | | | | | |
Interest expense | | | | | | | | | | | | | | | | | | | | | | 2,400,000 | $ 700,000 | | 3,800,000 | $ 1,400,000 | | | | | | | | | | | | | | | | |
Debt instrument, convertible, number of shares issuable if converted | | | | | | | | | | | | | | | | | | | | | | $ 117,756,776 | | | $ 117,756,776 | | | | | | | | | | | | | | | | | |
Written notice period | | | | | | | | | | | | | | | | | | 10 days | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, convertible, weighted average price measurement period | | | | | | | | | | | | | | | | | | 30 days | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, convertible, weighted average price measurement period | $ / shares | | | | | | | | | | | | | | | | | | $ 9,356.25 | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | $ 4,575 | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Convertible Notes Payable [Member] | Debt Instrument, Redemption, Period Two [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, redemption price, percentage | | | | | | | | | | | | | | | | | | 100% | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Convertible Notes Payable [Member] | Debt Instrument, Redemption, Period One [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, redemption price, percentage | | | | | | | | | | | | | | | | | | 110% | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Convertible Notes Payable [Member] | Debt Instrument, Redemption, Period Three [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, redemption price, percentage | | | | | | | | | | | | | | | | | | 110% | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Baker First Closing Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Securities sold under purchase agreement | | | | | | | | | | | | | | | | | | $ 15,000,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Purchase agreement, maximum amount of securities purchasable under agreement | | | | | | | | | | | | | | | | | | 10,000,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Purchase agreement, threshold amount of aggregate gross proceeds from future sale of equity securities | | | | | | | | | | | | | | | | | | $ 100,000,000 | | | | | | | | | | | | | | | | | | | | | | | | |
Baker Bros. Notes [Member] | Baker Second Closing Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Securities sold under purchase agreement | | | | | | | | | | | | | | | | $ 10,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Number of shares of to purchase capital stock (in shares) | shares | | | | | | | | | | | | | | | | 1,092 | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | $ 4,575 | | | | | | | | | | | | | | | | | | | | | | | | | | |
February 2023 [Member] | June 2022 Baker Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 1.625 | |
March 2023 [Member] | June 2022 Baker Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.8125 | |
April 2023 [Member] | June 2022 Baker Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Stock option warrant to purchase, exercise price per share (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 0.40 | |
Adjuvant Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt conversion, converted instrument, rate | | | | | | | | | | | | | | | 7.70% | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | $ 678.49 | | | | | | | | | | $ 0.8125 | | | $ 0.8125 | | | | | | | | | | | | | | | | | |
Conversion price as a percentage of lowest stock price | | | | | | | | | | | | 100% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible (in shares) | shares | | | | | | | | | | | | | | | | | | | | | | | | | 33,723,393 | | | | | | | | | | | | | | | | | |
Adjuvant Notes [Member] | Convertible Notes Payable [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | | | | | $ 25,000,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument, term | | | | | | | | | | | | | | | 5 years | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Note interest rate percent | | | | | | | | | | | | | | | 7.50% | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | $ 26.25 | $ 26.25 | | | | | $ 6,843.75 | | | | | | | | | | | | | | | | $ 1.625 | | | | | | | | | | | |
Debt covenant, cumulative net sales requirement | | | | | | | | | | | | $ 100,000,000 | | | | | | | | | | | | | $ 100,000,000 | | | | | | | | | | | | | | | | | |
Common stock, par value (in usd per share) | $ / shares | | | | | | | | | | | | | | | $ 0.0001 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument weighted average period | | | | | | | | | | | | 30 days | | | 30 days | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument weighted average price per share | $ / shares | | | | | | | | | | | | $ 18,750 | | | $ 18,750 | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Cumulative adjustment period | | | | | | | | | | 2 years | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Convertible exchange percentage | | | | | | | | | 10% | 10% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Conversion, Converted Instrument, Amount | | | | | | | | | | $ 2,900,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[custom:DebtConversionConvertedInstrumentAmount] | shares | | | | | | | | | | 109,842 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible conversion price | $ / shares | | $ 0.8125 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Restricted Cash | | | | | | | | | $ 25,000,000 | $ 25,000,000 | | | | | | | | | | | | $ 600,000 | | | 600,000 | | | | | | | $ 900,000 | | | | | | | | | | |
Gain (Loss) on Extinguishment of Debt | | | | | | | | | | | | | | | | | | | | | | | | $ 2,500,000 | | | | | | | | | | | | | | | | | | |
Convertible debt, noncurrent | | | | | | | | | | | | | | | | | | | | | | 27,400,000 | | | 27,400,000 | | | | | | | | | | | | | | | | | |
Convertible debt, noncurrent principal amount | | | | | | | | | | | | | | | | | | | | | | 22,400,000 | | | 22,400,000 | | | | | | | | | | | | | | | | | |
Convertible debt, noncurrent, accrued interest | | | | | | | | | | | | | | | | | | | | | | $ 5,000,000 | | | $ 5,000,000 | | | | | | | | | | | | | | | | | |
Adjuvant Notes [Member] | Convertible Notes Payable [Member] | Subsequent Event [Member] | Preferred Stock [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible conversion price | $ / shares | $ 0.40 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjuvant Notes [Member] | Convertible Notes Payable [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial ownership limitation percentage | | | | | | | | | | | | | | | 4.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Adjuvant Notes [Member] | Convertible Notes Payable [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Beneficial ownership limitation percentage | | | | | | | | | | | | | | | 19.99% | | | | | | | | | | | | | | | | | | | | | | | | | | | |
A 50 Senior Subordinated Notes Due 2025 Issued January 2022 [Member] | Unsecured Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 5,900,000 | | | |
Interest rate (in percent) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5% | | | |
Debt discount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 900,000 | | | |
A 50 Senior Subordinated Notes Due 2025 Issued March 2022 [Member] | Unsecured Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 7,450,000 | | | | |
Interest rate (in percent) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5% | | | | |
Debt discount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2,450,000 | | | | |
January and March 2022 Notes [Member] | Unsecured Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate (in percent) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5% | | | | |
Interest rate in event of default | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 18% | | | | |
Interest rate in event of default | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 25% | | 25% | | |
A 50 Senior Subordinated Notes [Member] | May 2022 Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | $ 22,300,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Interest rate (in percent) | | | | | | | | | | | 5% | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
May 2022 Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt instrument convertible (in shares) | shares | | | | | | | | | | 832,237 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
A 80 Senior Subordinated Notes Due 2025 Issued December 2022 [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Conversion price (in usd per share) | $ / shares | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 6.25 | | | | | | | | | |
A 80 Senior Subordinated Notes Due 2025 Issued December 2022 [Member] | December 2022 Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Net proceeds from offering | | | | | | | $ 1,250,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
A 80 Senior Subordinated Notes Due 2025 Issued December 2022 [Member] | Unsecured Debt [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 2,300,000 | | | | | | | | | |
Interest rate (in percent) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8% | | | | | | | | | |
Debt discount | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ 800,000 | | | | | | | | | |
Interest rate in event of default | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12% | | | | | | | | | |
Interest rate in event of default | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32.50% | | | | | | | | | |
Two Thousand Twenty Two December Warrants [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Gains reclassified to equity | | | | | | | | | | | | | | | | | | | | $ 200,000 | | | | | | | | | | | | | | | | | | | | | | |
2023 Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | | $ 500,000 | $ 600,000 | | $ 1,400,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
April 2023 Notes [Member] | Senior Subordinated Notes [Member] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Aggregate principal amount of convertible senior secured promissory notes (up to) | | $ 800,000 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |