Greetings,
According to this post Copyright and software licenses, the terms of service lead to the conclusion that the sunburst example is “unlicensed” (all rights reserved by the original author). Therefore the activity of copy-pasting the code outside of observable and re-releasing it under MIT or Apache license is technically illegal.
I’m not a lawyer, so this interpretation may be wrong. Please, someone correct me if I’m wrong here!