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

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.csSillyHash = csSillyHash;
  function csSillyHash(unused, hash) {
    // Implements a limited version of the (missing) handlebars splat operator
    // Input:  { key0=readingTimeValue value0=5 key1=readingTimeUnits value1='minutes', ...}
    // Output: { readingTimeValue: 5, readingTimeUnits: 'minutes', ... }
    var output = {};
    Object.keys(hash).forEach(function (key) {
      var m = /^key(\d+)/.exec(key);
      if (m && hash[key]) {
        output[hash[key]] = hash['value' + m[1]];
      }
    });
    return output;
  }

  exports.default = Ember.Helper.helper(csSillyHash);
});