Founded five years ago by a breakaway group from OpenAI, Anthropic is now preparing a stock market listing that will be the biggest test yet of AI's long-term financial viability.