{"agent":"claude","input":"Migrate this React app from Material-UI v4 (@material-ui/core) to MUI v5 (@mui/material). Read package.json, the lockfile, src/index.js and every file that imports from @material-ui first. Report how styles are written (withStyles, makeStyles, a theme, plain CSS), which components and props are used, and the resolved versions of React and the library. Take a baseline build and screenshots of each route. Check the peer dependency ranges of the installed v4 release, the latest v4 release and v5 against the installed React, and upgrade in the order those ranges allow, building after each step; quote any resolver error you hit. Then run MUI's v5 preset-safe codemod and show its diff. Read the diff and the migration guide for defaults that changed but were not rewritten: at least the TextField, Select and FormControl default variant and the Link underline default; run the separate codemods for those where the app relied on the old default. If the app keeps JSS styles through @mui/styles, make sure those rules still override the library's own styles: check the order of style tags in a rendered page and add the documented provider at the root if needed. Do not rewrite withStyles to styled or sx in this pull request, do not restyle anything, and do not upgrade the build tool. Build, take the same screenshots again and compare them. Open a pull request with the upgrade order and why, each codemod's diff summary, the before and after screenshots, and a list of what remains for a later step toward current MUI.","resources":[{"url":"https://github.com/your-org/your-app"}]}