Replace calls to goog.define with assignments to the result of goog.define.
Replace calls to goog.define with assignments to the result of goog.define.

Background: To support goog.define within modules, it will soon stop exporting the named variable on the global object. In preparation for this, we need to manually export the names instead. This is effectively performing the rewriting that the compiler was already doing in RewriteClosurePrimitives.

Nonqualified names that are never mutated have been made into module locals for production code and globals for test code.  This is consistent with production code being most likely to work compiled (where the compiler rewrites them to locals) and test code being most likely to work uncompiled (where Closure Library makes them global).

This change was generated by http://cs/experimental/users/sdh/util/googdef and manually filtering out changes that cause breakages.

See go/lsc-goog-define for more details.

Tested:
    tap_presubmit: http://test/OCL:238550853:BASE:239112971:1552989820804:1540e1f1
    Some tests failed; test failures are believed to be unrelated to this CL
PiperOrigin-RevId: 239513785

google/j2cl,google/j2cl,google/j2cl,google/j2cl,google/j2cl