Pretty sure none of the GUI parts are open sourced.
2-3mb JS files brought it to a crawl, and I didn’t have many plugins btw.
https://opensource.apple.com/source/Chess/Chess-318/Styles/G...
For comparison, the source of the older Chess is also available, in https://opensource.apple.com/release/mac-os-x-1015.html though some parts might no longer compile.