define('@cardstack/rendering/helpers/cs-assert', ['exports'], function (exports) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = Ember.Helper.extend({
    init: function init() {
      this._super.apply(this, arguments);
      this.environment = Ember.getOwner(this).resolveRegistration('config:environment').environment;
    },
    compute: function compute(messages) {
      if (this.environment === 'production') {
        return;
      }

      var message = messages.join(' ');
      if (this.environment === 'development') {
        return Ember.String.htmlSafe('<div style="color: red">' + message + '</div>');
      }

      throw new Error(message);
    }
  });
});