/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['socket.io/utils.js']) {
  _$jscoverage['socket.io/utils.js'] = [];
  _$jscoverage['socket.io/utils.js'][1] = 0;
  _$jscoverage['socket.io/utils.js'][3] = 0;
  _$jscoverage['socket.io/utils.js'][7] = 0;
  _$jscoverage['socket.io/utils.js'][8] = 0;
  _$jscoverage['socket.io/utils.js'][9] = 0;
  _$jscoverage['socket.io/utils.js'][12] = 0;
  _$jscoverage['socket.io/utils.js'][14] = 0;
  _$jscoverage['socket.io/utils.js'][15] = 0;
  _$jscoverage['socket.io/utils.js'][16] = 0;
  _$jscoverage['socket.io/utils.js'][18] = 0;
  _$jscoverage['socket.io/utils.js'][20] = 0;
  _$jscoverage['socket.io/utils.js'][22] = 0;
  _$jscoverage['socket.io/utils.js'][23] = 0;
  _$jscoverage['socket.io/utils.js'][25] = 0;
  _$jscoverage['socket.io/utils.js'][26] = 0;
  _$jscoverage['socket.io/utils.js'][27] = 0;
  _$jscoverage['socket.io/utils.js'][29] = 0;
  _$jscoverage['socket.io/utils.js'][32] = 0;
  _$jscoverage['socket.io/utils.js'][33] = 0;
  _$jscoverage['socket.io/utils.js'][34] = 0;
  _$jscoverage['socket.io/utils.js'][35] = 0;
  _$jscoverage['socket.io/utils.js'][36] = 0;
  _$jscoverage['socket.io/utils.js'][37] = 0;
  _$jscoverage['socket.io/utils.js'][38] = 0;
  _$jscoverage['socket.io/utils.js'][39] = 0;
  _$jscoverage['socket.io/utils.js'][40] = 0;
  _$jscoverage['socket.io/utils.js'][41] = 0;
  _$jscoverage['socket.io/utils.js'][43] = 0;
  _$jscoverage['socket.io/utils.js'][44] = 0;
  _$jscoverage['socket.io/utils.js'][45] = 0;
  _$jscoverage['socket.io/utils.js'][48] = 0;
  _$jscoverage['socket.io/utils.js'][49] = 0;
  _$jscoverage['socket.io/utils.js'][51] = 0;
}
_$jscoverage['socket.io/utils.js'][1]++;
exports.options = {options: (function (options, merge) {
  _$jscoverage['socket.io/utils.js'][3]++;
  this.options = exports.merge(options || {}, merge || {});
})};
_$jscoverage['socket.io/utils.js'][7]++;
exports.merge = (function (source, merge) {
  _$jscoverage['socket.io/utils.js'][8]++;
  for (var i in merge) {
    _$jscoverage['socket.io/utils.js'][8]++;
    source[i] = merge[i];
}
  _$jscoverage['socket.io/utils.js'][9]++;
  return source;
});
_$jscoverage['socket.io/utils.js'][12]++;
var frame = "~m~";
_$jscoverage['socket.io/utils.js'][14]++;
function stringify(message) {
  _$jscoverage['socket.io/utils.js'][15]++;
  if (Object.prototype.toString.call(message) == "[object Object]") {
    _$jscoverage['socket.io/utils.js'][16]++;
    return "~j~" + JSON.stringify(message);
  }
  else {
    _$jscoverage['socket.io/utils.js'][18]++;
    return String(message);
  }
}
_$jscoverage['socket.io/utils.js'][20]++;
;
_$jscoverage['socket.io/utils.js'][22]++;
exports.encode = (function (messages) {
  _$jscoverage['socket.io/utils.js'][23]++;
  var ret = "", message, messages = Array.isArray(messages)? messages: [messages];
  _$jscoverage['socket.io/utils.js'][25]++;
  for (var i = 0, l = messages.length; i < l; i++) {
    _$jscoverage['socket.io/utils.js'][26]++;
    message = messages[i] === null || messages[i] === undefined? "": stringify(messages[i]);
    _$jscoverage['socket.io/utils.js'][27]++;
    ret += frame + message.length + frame + message;
}
  _$jscoverage['socket.io/utils.js'][29]++;
  return ret;
});
_$jscoverage['socket.io/utils.js'][32]++;
exports.decode = (function (data) {
  _$jscoverage['socket.io/utils.js'][33]++;
  var messages = [], number, n;
  _$jscoverage['socket.io/utils.js'][34]++;
  do {
    _$jscoverage['socket.io/utils.js'][35]++;
    if (data.substr(0, 3) !== frame) {
      _$jscoverage['socket.io/utils.js'][35]++;
      return messages;
    }
    _$jscoverage['socket.io/utils.js'][36]++;
    data = data.substr(3);
    _$jscoverage['socket.io/utils.js'][37]++;
    number = "", n = "";
    _$jscoverage['socket.io/utils.js'][38]++;
    for (var i = 0, l = data.length; i < l; i++) {
      _$jscoverage['socket.io/utils.js'][39]++;
      n = Number(data.substr(i, 1));
      _$jscoverage['socket.io/utils.js'][40]++;
      if (data.substr(i, 1) == n) {
        _$jscoverage['socket.io/utils.js'][41]++;
        number += n;
      }
      else {
        _$jscoverage['socket.io/utils.js'][43]++;
        data = data.substr(number.length + frame.length);
        _$jscoverage['socket.io/utils.js'][44]++;
        number = Number(number);
        _$jscoverage['socket.io/utils.js'][45]++;
        break;
      }
}
    _$jscoverage['socket.io/utils.js'][48]++;
    messages.push(data.substr(0, number));
    _$jscoverage['socket.io/utils.js'][49]++;
    data = data.substr(number);
}
  while (data !== "");
  _$jscoverage['socket.io/utils.js'][51]++;
  return messages;
});
_$jscoverage['socket.io/utils.js'].source = ["exports.options = {","  options: function(options, merge){","    this.options = exports.merge(options || {}, merge || {});","  }","};","","exports.merge = function(source, merge){","  for (var i in merge) source[i] = merge[i];","  return source;","};","","var frame = '~m~';","","function stringify(message){","  if (Object.prototype.toString.call(message) == '[object Object]'){","    return '~j~' + JSON.stringify(message);","  } else {","    return String(message);","  }","};","","exports.encode = function(messages){","  var ret = '', message,","      messages = Array.isArray(messages) ? messages : [messages];","  for (var i = 0, l = messages.length; i &lt; l; i++){","    message = messages[i] === null || messages[i] === undefined ? '' : stringify(messages[i]);","    ret += frame + message.length + frame + message;","  }","  return ret;","};","","exports.decode = function(data){","  var messages = [], number, n;","  do {","    if (data.substr(0, 3) !== frame) return messages;","    data = data.substr(3);","    number = '', n = '';","    for (var i = 0, l = data.length; i &lt; l; i++){","      n = Number(data.substr(i, 1));","      if (data.substr(i, 1) == n){","        number += n;","      } else {  ","        data = data.substr(number.length + frame.length)","        number = Number(number);","        break;","      } ","    }","    messages.push(data.substr(0, number)); // here","    data = data.substr(number);","  } while(data !== '');","  return messages;","};"];
