Create a portable bash shell script to safely uninstall the Fabric AI CLI and related packages on Debian, Ubuntu, and Fedora systems. The script must: - Detect the operating system and select the appropriate package manager (`apt`, `dnf`, or `yum`). - Uninstall Fabric packages installed via system package managers and Python package managers (`pip`, `pip3`). - Check for errors after each removal step; abort the script if a critical error occurs. - Prompt the user for confirmation before making any changes. - Advise the user to reboot the system if required after uninstallation. - Log all actions and errors to a user-specified log file. - Be fully self-contained and compatible with bash. Reference the official [Fabric documentation](https://github.com/danielmiessler/Fabric) and your distribution’s package manager documentation for implementation details.