Chewy Inc. surprises Wall Street Thursday with a quarterly profit, but says headwinds include labor labor shortages and supply problems leading to running out of items.