EmojiPicker stores state in global module-level variables

Your commit here is what’s breaking everything:

https://github.com/discourse/discourse/commit/6a4d74d9f8681038ea1b273c173308b2fbd0f687#diff-2eadf5f693f654ff37f740c2904219a2

You attempted to optimize by caching some values, but caching them into module-global variables. Should have cached them into instance properties.