From Artisan to Worker: Guilds, the French State, and the Organization of Labor, 1776-1821