v3.24.0.1
CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS)      
Net product revenue $ 582,022 $ 437,855 $ 305,440
Revenue from Contract with Customer, Product and Service [Extensible Enumeration] us-gaap:ProductMember us-gaap:ProductMember us-gaap:ProductMember
Cost of product sold $ 121,236 $ 83,481 $ 55,518
Cost, Product and Service [Extensible Enumeration] us-gaap:ProductMember us-gaap:ProductMember us-gaap:ProductMember
Gross profit $ 460,786 $ 354,374 $ 249,922
Operating expenses:      
Research and development 76,063 70,886 30,367
Sales and marketing 97,404 79,285 68,118
General and administrative 95,289 84,017 63,909
Total operating expenses 268,756 234,188 162,394
Operating income 192,030 120,186 87,528
Loss on debt extinguishment (9,766)   (26,146)
Other (expense) income, net 159 169 16
Interest expense (23,757) (18,795) (24,194)
Interest income 14,730 3,126 224
Income before income taxes 173,396 104,686 37,428
Income tax (expense) benefit (44,543) 76,782 (2,831)
Net income 128,853 181,468 34,597
Unrealized income (loss) on investments 153 (151)  
Comprehensive income $ 129,006 $ 181,317 $ 34,597
EARNINGS PER SHARE:      
Basic $ 2.17 $ 3.07 $ 0.60
Diluted $ 2.13 $ 2.97 $ 0.58
Weighted average number of shares of common stock - basic 59,469,648 59,173,121 57,531,540
Weighted average number of shares of common stock - diluted 60,372,397 61,097,045 59,205,213