Here’s an updated version with some heavy refactoring to make better use of the cleaner architecture. I’ve also cleaned up the imports so that the dependency structure is more apparent:
https://anvil.works/build#clone:UKRF2DT2EMVCKMK5=6X3PGSYGKEYIEXIKMJEB2XVD