The "Edit on Compiler Explorer" link in embedded iframes was not updating
with the current code state. This was caused by the Sharing class only
being instantiated in non-embedded mode, but containing the code that
updates embedded links.
Solution: Refactored Sharing into a base class (SharingBase) that handles
state tracking and embedded link updates, with the full Sharing class
extending it for non-embedded features. Now both modes get the necessary
functionality.
Closes#8097🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>