@quotemedia.com/streamer 2.25.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,7 +177,7 @@ var Connection = function () {
177
177
 
178
178
  exports["default"] = Connection;
179
179
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/Connection.js","/lib")
180
- },{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":93,"_process":114,"buffer":104,"timers":135}],2:[function(require,module,exports){
180
+ },{"./EventSupport.js":2,"./logging.js":16,"./streamer-events.js":97,"_process":119,"buffer":109,"timers":140}],2:[function(require,module,exports){
181
181
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
182
182
  "use strict";
183
183
 
@@ -226,7 +226,7 @@ var EventSupport = function () {
226
226
 
227
227
  exports["default"] = EventSupport;
228
228
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/EventSupport.js","/lib")
229
- },{"_process":114,"buffer":104,"timers":135}],3:[function(require,module,exports){
229
+ },{"_process":119,"buffer":109,"timers":140}],3:[function(require,module,exports){
230
230
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
231
231
  "use strict";
232
232
 
@@ -275,7 +275,7 @@ var FlowControl = function () {
275
275
 
276
276
  exports["default"] = FlowControl;
277
277
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/FlowControl.js","/lib")
278
- },{"./LongSequence.js":4,"./streamer-api.js":92,"_process":114,"buffer":104,"timers":135}],4:[function(require,module,exports){
278
+ },{"./LongSequence.js":4,"./streamer-api.js":96,"_process":119,"buffer":109,"timers":140}],4:[function(require,module,exports){
279
279
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
280
280
  "use strict";
281
281
 
@@ -308,7 +308,7 @@ LongSequence.MAX_VALUE = Number.MAX_SAFE_INTEGER;
308
308
 
309
309
  exports["default"] = LongSequence;
310
310
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/LongSequence.js","/lib")
311
- },{"_process":114,"buffer":104,"timers":135}],5:[function(require,module,exports){
311
+ },{"_process":119,"buffer":109,"timers":140}],5:[function(require,module,exports){
312
312
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
313
313
  "use strict";
314
314
 
@@ -374,7 +374,7 @@ var SMessage = function SMessage() {
374
374
 
375
375
  exports["default"] = SMessage;
376
376
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/SMessage.js","/lib")
377
- },{"./serialization/v1/codec.js":91,"_process":114,"buffer":104,"timers":135}],6:[function(require,module,exports){
377
+ },{"./serialization/v1/codec.js":91,"_process":119,"buffer":109,"timers":140}],6:[function(require,module,exports){
378
378
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
379
379
  "use strict";
380
380
 
@@ -957,7 +957,7 @@ var Stream = function () {
957
957
  msg.newsFilters = newsFilters;
958
958
  msg.mimetype = sub.mimetype;
959
959
  if (opts && opts.skipHeavyInitialLoad) {
960
- msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad === '0' ? false : true;
960
+ msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad;
961
961
  }
962
962
  return msg;
963
963
  };
@@ -1580,7 +1580,7 @@ var Stream = function () {
1580
1580
 
1581
1581
  exports["default"] = Stream;
1582
1582
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/Stream.js","/lib")
1583
- },{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":92,"./streamer-events.js":93,"./streamer-utils.js":94,"./utils.js":98,"_process":114,"buffer":104,"timers":135}],7:[function(require,module,exports){
1583
+ },{"./EventSupport.js":2,"./FlowControl.js":3,"./UShortId.js":9,"./formatting.js":13,"./logging.js":16,"./polyfills.js":18,"./streamer-api.js":96,"./streamer-events.js":97,"./streamer-utils.js":98,"./utils.js":103,"_process":119,"buffer":109,"timers":140}],7:[function(require,module,exports){
1584
1584
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
1585
1585
  "use strict";
1586
1586
 
@@ -1608,6 +1608,14 @@ var _StreamingService = require("./StreamingService.js");
1608
1608
 
1609
1609
  var _StreamingService2 = _interopRequireDefault(_StreamingService);
1610
1610
 
1611
+ var _StompStreamingService = require("./stomp/StompStreamingService.js");
1612
+
1613
+ var _StompStreamingService2 = _interopRequireDefault(_StompStreamingService);
1614
+
1615
+ var _stomp = require("./stomp.js/lib/stomp.js");
1616
+
1617
+ var _stomp2 = _interopRequireDefault(_stomp);
1618
+
1611
1619
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1612
1620
 
1613
1621
  var Streamer = {};
@@ -1649,6 +1657,33 @@ Object.assign(Streamer, {
1649
1657
  new _StreamingService2["default"](_http2["default"], _atmosphere2["default"], logger, config).openStream(callback);
1650
1658
  },
1651
1659
 
1660
+ openStomp: function openStomp(_config, callback) {
1661
+ // Note: only turn on stomp connection in Local and QA
1662
+ var stompHostConfig = ["http://localhost:7000", "https://qa.quotemedia.com/cache"];
1663
+ if (stompHostConfig.includes(_config.host)) {
1664
+ initLogger();
1665
+
1666
+ var credentials = void 0;
1667
+ try {
1668
+ credentials = (0, _AuthService.asCredentials)(_config.credentials);
1669
+ } catch (e) {
1670
+ callback(e);
1671
+ return;
1672
+ }
1673
+
1674
+ var hostProtocol = _config.host.split('//');
1675
+ var wsProtocol = hostProtocol[0] === "http:" ? "ws://" : "wss://";
1676
+ var config = Object.assign({}, _config);
1677
+ config.credentials = credentials;
1678
+ config.format = config.format || "application/json";
1679
+ config.url = wsProtocol + hostProtocol[1];
1680
+
1681
+ new _StompStreamingService2["default"](_http2["default"], _stomp2["default"], logger, config).openStompStream(callback);
1682
+ } else {
1683
+ callback("ERROR: Stomp Connection is only turn on in Local and QA");
1684
+ }
1685
+ },
1686
+
1652
1687
  ping: function ping(host, callback) {
1653
1688
  new _StreamingService2["default"](_http2["default"], _atmosphere2["default"], logger, { host: host }).ping(callback);
1654
1689
  },
@@ -1660,7 +1695,7 @@ Object.assign(Streamer, {
1660
1695
 
1661
1696
  exports["default"] = Streamer;
1662
1697
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/Streamer.js","/lib")
1663
- },{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,"_process":114,"buffer":104,"timers":135}],8:[function(require,module,exports){
1698
+ },{"./StreamingService.js":8,"./atmosphere.js/lib/atmosphere.js":10,"./auth/AuthService.js":11,"./auth/EnduserAuthService.js":12,"./http.js":14,"./logging.js":16,"./polyfills.js":18,"./stomp.js/lib/stomp.js":92,"./stomp/StompStreamingService.js":95,"_process":119,"buffer":109,"timers":140}],8:[function(require,module,exports){
1664
1699
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
1665
1700
  "use strict";
1666
1701
 
@@ -1827,6 +1862,7 @@ var StreamingService = function () {
1827
1862
  success: function success(result) {
1828
1863
  return callback(null, result);
1829
1864
  },
1865
+ type: "GET",
1830
1866
  failure: callback
1831
1867
  });
1832
1868
  };
@@ -1837,6 +1873,7 @@ var StreamingService = function () {
1837
1873
  success: function success(result) {
1838
1874
  return callback(null, result);
1839
1875
  },
1876
+ type: 'GET',
1840
1877
  failure: callback
1841
1878
  });
1842
1879
  };
@@ -1846,7 +1883,7 @@ var StreamingService = function () {
1846
1883
 
1847
1884
  exports["default"] = StreamingService;
1848
1885
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/StreamingService.js","/lib")
1849
- },{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":92,"./transmission/JsonTransmitter.js":95,"./transmission/QitchTransmitter.js":96,"./transmission/SMessageTransmitter.js":97,"_process":114,"buffer":104,"timers":135}],9:[function(require,module,exports){
1886
+ },{"./Connection.js":1,"./Stream.js":6,"./logging.js":16,"./message.js":17,"./polyfills.js":18,"./qitch/encoder/QitchEncoder":67,"./serialization/SMessageDecoder.js":87,"./serialization/SMessageEncoder.js":88,"./streamer-api.js":96,"./transmission/JsonTransmitter.js":100,"./transmission/QitchTransmitter.js":101,"./transmission/SMessageTransmitter.js":102,"_process":119,"buffer":109,"timers":140}],9:[function(require,module,exports){
1850
1887
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
1851
1888
  "use strict";
1852
1889
 
@@ -1880,7 +1917,7 @@ UShortId.MAX_VALUE = 65535; // 2^16-1
1880
1917
 
1881
1918
  exports["default"] = UShortId;
1882
1919
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/UShortId.js","/lib")
1883
- },{"_process":114,"buffer":104,"timers":135}],10:[function(require,module,exports){
1920
+ },{"_process":119,"buffer":109,"timers":140}],10:[function(require,module,exports){
1884
1921
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
1885
1922
  "use strict";
1886
1923
 
@@ -5392,7 +5429,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5392
5429
  });
5393
5430
  /* jshint eqnull:true, noarg:true, noempty:true, eqeqeq:true, evil:true, laxbreak:true, undef:true, browser:true, indent:false, maxerr:50 */
5394
5431
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/atmosphere.js/lib/atmosphere.js","/lib/atmosphere.js/lib")
5395
- },{"_process":114,"buffer":104,"timers":135}],11:[function(require,module,exports){
5432
+ },{"_process":119,"buffer":109,"timers":140}],11:[function(require,module,exports){
5396
5433
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
5397
5434
  "use strict";
5398
5435
 
@@ -5492,7 +5529,7 @@ function asCredentials(credentials) {
5492
5529
  }
5493
5530
  };
5494
5531
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/auth/AuthService.js","/lib/auth")
5495
- },{"./EnduserAuthService.js":12,"_process":114,"array-equal":99,"buffer":104,"timers":135}],12:[function(require,module,exports){
5532
+ },{"./EnduserAuthService.js":12,"_process":119,"array-equal":104,"buffer":109,"timers":140}],12:[function(require,module,exports){
5496
5533
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
5497
5534
  "use strict";
5498
5535
 
@@ -5567,7 +5604,7 @@ var EnduserAuthService = function () {
5567
5604
 
5568
5605
  exports["default"] = EnduserAuthService;
5569
5606
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/auth/EnduserAuthService.js","/lib/auth")
5570
- },{"_process":114,"buffer":104,"timers":135}],13:[function(require,module,exports){
5607
+ },{"_process":119,"buffer":109,"timers":140}],13:[function(require,module,exports){
5571
5608
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
5572
5609
  "use strict";
5573
5610
 
@@ -5611,6 +5648,7 @@ fmt.Formatter = function () {
5611
5648
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE] = this._fmtconnectresponse;
5612
5649
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE] = this._fmtconnectionclose;
5613
5650
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.FLOW] = this._fmtflowmessage;
5651
+ this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.OPEN_FLOW] = this._fmtopenflowmessage;
5614
5652
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.SLOW_CONNECTION] = this._fmtslowconnection;
5615
5653
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS] = this._fmtstats;
5616
5654
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS_RESPONSE] = this._fmtstatsresponse;
@@ -5650,6 +5688,7 @@ fmt.Formatter = function () {
5650
5688
  this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWS] = this._fmtnews;
5651
5689
  this.formatters[_streamerApi.messages.MessageTypeNames.data.TRADENOTIFICATION] = this._fmttradeNotification;
5652
5690
  this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSCMDFILTER] = this._fmtnewscmdfilter;
5691
+ this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSERROR] = this._fmtnewserror;
5653
5692
  };
5654
5693
 
5655
5694
  fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
@@ -5799,6 +5838,8 @@ fmt.Formatter.prototype._fmtlastsale = function (val) {
5799
5838
  s.append(val.accumulatedVolume);
5800
5839
  s.sep();
5801
5840
  s.append(val.tick);
5841
+ s.sep();
5842
+ s.append(val.lastTradeExcode);
5802
5843
  return s.toString();
5803
5844
  };
5804
5845
  fmt.Formatter.prototype._fmtlimituplimitdown = function (val) {
@@ -5853,6 +5894,12 @@ fmt.Formatter.prototype._fmtivgreeks = function (val) {
5853
5894
  s.append(val.intrinsicValue);
5854
5895
  s.sep();
5855
5896
  s.append(val.extrinsicValue);
5897
+ s.sep();
5898
+ s.append(val.previousMark);
5899
+ s.sep();
5900
+ s.append(val.markChange);
5901
+ s.sep();
5902
+ s.append(val.markChangePercent);
5856
5903
  return s.toString();
5857
5904
  };
5858
5905
 
@@ -6261,6 +6308,19 @@ fmt.Formatter.prototype._fmtnewscmdfilter = function (val) {
6261
6308
  return s.toString();
6262
6309
  };
6263
6310
 
6311
+ fmt.Formatter.prototype._fmtnewserror = function (val) {
6312
+ var s = new fmt.StringBuilder();
6313
+ s.append("NEWS ERROR");
6314
+ s.sep();
6315
+ s.append("Event: " + val.event);
6316
+ s.sep();
6317
+ s.append("Code: " + val.code);
6318
+ s.sep();
6319
+ s.append("Message: " + val.message);
6320
+
6321
+ return s.toString();
6322
+ };
6323
+
6264
6324
  fmt.Formatter.prototype._fmtheartbeat = function (val) {
6265
6325
  var s = new fmt.StringBuilder();
6266
6326
  s.append("HEARBEAT");
@@ -6491,6 +6551,14 @@ fmt.Formatter.prototype._fmtflowmessage = function (val) {
6491
6551
  return s.toString();
6492
6552
  };
6493
6553
 
6554
+ fmt.Formatter.prototype._fmtopenflowmessage = function (val) {
6555
+ var s = new fmt.StringBuilder();
6556
+ s.append('OPEN FLOW');
6557
+ s.sep();
6558
+ s.append(val.sequence);
6559
+ return s.toString();
6560
+ };
6561
+
6494
6562
  fmt.Formatter.prototype.__baseresponse = function (val, s) {
6495
6563
  s.append(val.code);
6496
6564
  s.sep();
@@ -6540,7 +6608,7 @@ fmt.format = function (msg) {
6540
6608
 
6541
6609
  module.exports = fmt;
6542
6610
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/formatting.js","/lib")
6543
- },{"./streamer-api.js":92,"./streamer-utils.js":94,"_process":114,"buffer":104,"jsbi":111,"timers":135}],14:[function(require,module,exports){
6611
+ },{"./streamer-api.js":96,"./streamer-utils.js":98,"_process":119,"buffer":109,"jsbi":116,"timers":140}],14:[function(require,module,exports){
6544
6612
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6545
6613
  "use strict";
6546
6614
 
@@ -6622,7 +6690,7 @@ function http(opts) {
6622
6690
  xhr.send(data);
6623
6691
  };
6624
6692
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/http.js","/lib")
6625
- },{"_process":114,"buffer":104,"timers":135,"xmlhttprequest":140}],15:[function(require,module,exports){
6693
+ },{"_process":119,"buffer":109,"timers":140,"xmlhttprequest":145}],15:[function(require,module,exports){
6626
6694
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6627
6695
  "use strict";
6628
6696
 
@@ -6667,7 +6735,7 @@ _Streamer2["default"].dataTypes.get = function (msg) {
6667
6735
 
6668
6736
  module.exports = _Streamer2["default"];
6669
6737
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/index.js","/lib")
6670
- },{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":92,"./streamer-utils.js":94,"_process":114,"buffer":104,"json3":112,"timers":135}],16:[function(require,module,exports){
6738
+ },{"./Streamer.js":7,"./formatting.js":13,"./polyfills":18,"./streamer-api.js":96,"./streamer-utils.js":98,"_process":119,"buffer":109,"json3":117,"timers":140}],16:[function(require,module,exports){
6671
6739
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6672
6740
  "use strict";
6673
6741
 
@@ -6727,7 +6795,7 @@ function asLogger(logger) {
6727
6795
  }
6728
6796
  }
6729
6797
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/logging.js","/lib")
6730
- },{"_process":114,"buffer":104,"timers":135}],17:[function(require,module,exports){
6798
+ },{"_process":119,"buffer":109,"timers":140}],17:[function(require,module,exports){
6731
6799
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6732
6800
  "use strict";
6733
6801
 
@@ -6803,7 +6871,7 @@ var lpad = exports.lpad = function lpad(num, len) {
6803
6871
  return _pad + _numstr;
6804
6872
  };
6805
6873
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/message.js","/lib")
6806
- },{"_process":114,"buffer":104,"timers":135}],18:[function(require,module,exports){
6874
+ },{"_process":119,"buffer":109,"timers":140}],18:[function(require,module,exports){
6807
6875
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6808
6876
  'use strict';
6809
6877
 
@@ -7021,7 +7089,7 @@ if (!Array.from) {
7021
7089
  }();
7022
7090
  }
7023
7091
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/polyfills.js","/lib")
7024
- },{"_process":114,"buffer":104,"timers":135}],19:[function(require,module,exports){
7092
+ },{"_process":119,"buffer":109,"timers":140}],19:[function(require,module,exports){
7025
7093
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7026
7094
  "use strict";
7027
7095
 
@@ -7083,7 +7151,7 @@ var BlockHeader = function () {
7083
7151
 
7084
7152
  exports["default"] = BlockHeader;
7085
7153
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/BlockHeader.js","/lib/qitch")
7086
- },{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,"_process":114,"buffer":104,"timers":135}],20:[function(require,module,exports){
7154
+ },{"./Bytes":20,"./DataOperations":21,"./Qitch":25,"./QitchConstants":26,"_process":119,"buffer":109,"timers":140}],20:[function(require,module,exports){
7087
7155
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7088
7156
  "use strict";
7089
7157
 
@@ -7178,7 +7246,7 @@ var Bytes = function () {
7178
7246
 
7179
7247
  exports["default"] = Bytes;
7180
7248
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/Bytes.js","/lib/qitch")
7181
- },{"_process":114,"buffer":104,"jsbi":111,"timers":135}],21:[function(require,module,exports){
7249
+ },{"_process":119,"buffer":109,"jsbi":116,"timers":140}],21:[function(require,module,exports){
7182
7250
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7183
7251
  "use strict";
7184
7252
 
@@ -7329,7 +7397,7 @@ exports.UShort = UShort;
7329
7397
  exports.UInt = UInt;
7330
7398
  exports.ASCIIString = ASCIIString;
7331
7399
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/DataOperations.js","/lib/qitch")
7332
- },{"_process":114,"buffer":104,"timers":135}],22:[function(require,module,exports){
7400
+ },{"_process":119,"buffer":109,"timers":140}],22:[function(require,module,exports){
7333
7401
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7334
7402
  "use strict";
7335
7403
 
@@ -7403,7 +7471,7 @@ var EnumValueTranslator = function () {
7403
7471
 
7404
7472
  exports["default"] = EnumValueTranslator;
7405
7473
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/EnumValueTranslator.js","/lib/qitch")
7406
- },{"../streamer-api":92,"_process":114,"buffer":104,"timers":135}],23:[function(require,module,exports){
7474
+ },{"../streamer-api":96,"_process":119,"buffer":109,"timers":140}],23:[function(require,module,exports){
7407
7475
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7408
7476
  "use strict";
7409
7477
 
@@ -7435,7 +7503,7 @@ var LocateCodeInjector = function () {
7435
7503
 
7436
7504
  exports["default"] = LocateCodeInjector;
7437
7505
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/LocateCodeInjector.js","/lib/qitch")
7438
- },{"../streamer-api":92,"_process":114,"buffer":104,"timers":135}],24:[function(require,module,exports){
7506
+ },{"../streamer-api":96,"_process":119,"buffer":109,"timers":140}],24:[function(require,module,exports){
7439
7507
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7440
7508
  "use strict";
7441
7509
 
@@ -7480,7 +7548,7 @@ var MessageHeader = function () {
7480
7548
 
7481
7549
  exports["default"] = MessageHeader;
7482
7550
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/MessageHeader.js","/lib/qitch")
7483
- },{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,"_process":114,"buffer":104,"timers":135}],25:[function(require,module,exports){
7551
+ },{"./Bytes":20,"./DataOperations":21,"./QitchConstants":26,"_process":119,"buffer":109,"timers":140}],25:[function(require,module,exports){
7484
7552
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7485
7553
  "use strict";
7486
7554
 
@@ -8282,7 +8350,7 @@ var Qitch = function () {
8282
8350
 
8283
8351
  exports["default"] = Qitch;
8284
8352
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/Qitch.js","/lib/qitch")
8285
- },{"../streamer-api":92,"./Bytes":20,"./DataOperations":21,"./EnumValueTranslator":22,"./QitchConstants":26,"_process":114,"bignumber.js":101,"buffer":104,"jsbi":111,"timers":135}],26:[function(require,module,exports){
8353
+ },{"../streamer-api":96,"./Bytes":20,"./DataOperations":21,"./EnumValueTranslator":22,"./QitchConstants":26,"_process":119,"bignumber.js":106,"buffer":109,"jsbi":116,"timers":140}],26:[function(require,module,exports){
8286
8354
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8287
8355
  "use strict";
8288
8356
 
@@ -8345,7 +8413,7 @@ var BLOCK_HEADER_RESERVED_OFFSET = exports.BLOCK_HEADER_RESERVED_OFFSET = BLOCK_
8345
8413
  var BLOCK_HEADER_SEQUENCE_OFFSET = exports.BLOCK_HEADER_SEQUENCE_OFFSET = BLOCK_HEADER_RESERVED_OFFSET + BYTE_LENGTH;
8346
8414
  var BLOCK_HEADER_LENGTH = exports.BLOCK_HEADER_LENGTH = BLOCK_HEADER_SEQUENCE_OFFSET + INT_LENGTH;
8347
8415
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/QitchConstants.js","/lib/qitch")
8348
- },{"_process":114,"buffer":104,"jsbi":111,"timers":135}],27:[function(require,module,exports){
8416
+ },{"_process":119,"buffer":109,"jsbi":116,"timers":140}],27:[function(require,module,exports){
8349
8417
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8350
8418
  "use strict";
8351
8419
 
@@ -8368,7 +8436,7 @@ var MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET = exports.MAX_ENTITLEMENTS_PER_SUBS
8368
8436
 
8369
8437
  var LENGTH = exports.LENGTH = MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET + _QitchConstants.INT_LENGTH;
8370
8438
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectResponseDef.js","/lib/qitch/controlMessageDefinition")
8371
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],28:[function(require,module,exports){
8439
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],28:[function(require,module,exports){
8372
8440
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8373
8441
  "use strict";
8374
8442
 
@@ -8384,7 +8452,7 @@ var REASON_OFFSET = exports.REASON_OFFSET = CODE_OFFSET + _QitchConstants.INT_LE
8384
8452
 
8385
8453
  var LENGTH = exports.LENGTH = REASON_OFFSET + _QitchConstants.REASON_LENGTH;
8386
8454
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ConnectionCloseDef.js","/lib/qitch/controlMessageDefinition")
8387
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],29:[function(require,module,exports){
8455
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],29:[function(require,module,exports){
8388
8456
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8389
8457
  "use strict";
8390
8458
 
@@ -8398,7 +8466,7 @@ var TYPEID = exports.TYPEID = 107;
8398
8466
  var SEQUENCE_NUMBER_OFFSET = exports.SEQUENCE_NUMBER_OFFSET = 0;
8399
8467
  var LENGTH = exports.LENGTH = SEQUENCE_NUMBER_OFFSET + _QitchConstants.INT_LENGTH;
8400
8468
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/FlowMessageDef.js","/lib/qitch/controlMessageDefinition")
8401
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],30:[function(require,module,exports){
8469
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],30:[function(require,module,exports){
8402
8470
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8403
8471
  "use strict";
8404
8472
 
@@ -8412,7 +8480,7 @@ var TYPEID = exports.TYPEID = 101;
8412
8480
  var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8413
8481
  var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8414
8482
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/HeartbeatDef.js","/lib/qitch/controlMessageDefinition")
8415
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],31:[function(require,module,exports){
8483
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],31:[function(require,module,exports){
8416
8484
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8417
8485
  "use strict";
8418
8486
 
@@ -8427,7 +8495,7 @@ var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8427
8495
  var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8428
8496
  var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
8429
8497
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/InitialDataSentDef.js","/lib/qitch/controlMessageDefinition")
8430
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],32:[function(require,module,exports){
8498
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],32:[function(require,module,exports){
8431
8499
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8432
8500
  "use strict";
8433
8501
 
@@ -8441,7 +8509,7 @@ var TYPEID = exports.TYPEID = 112;
8441
8509
  var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8442
8510
  var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8443
8511
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/ResubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")
8444
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],33:[function(require,module,exports){
8512
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],33:[function(require,module,exports){
8445
8513
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8446
8514
  "use strict";
8447
8515
 
@@ -8457,7 +8525,7 @@ var MAX_EXCEED_OFFSET = exports.MAX_EXCEED_OFFSET = TIMES_EXCEED_OFFSET + _Qitch
8457
8525
 
8458
8526
  var LENGTH = exports.LENGTH = MAX_EXCEED_OFFSET + _QitchConstants.INT_LENGTH;
8459
8527
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SlowConnectionDef.js","/lib/qitch/controlMessageDefinition")
8460
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],34:[function(require,module,exports){
8528
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],34:[function(require,module,exports){
8461
8529
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8462
8530
  "use strict";
8463
8531
 
@@ -8471,7 +8539,7 @@ var TYPEID = exports.TYPEID = 108;
8471
8539
  var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = 0;
8472
8540
  var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
8473
8541
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsMessageDef.js","/lib/qitch/controlMessageDefinition")
8474
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],35:[function(require,module,exports){
8542
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],35:[function(require,module,exports){
8475
8543
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8476
8544
  "use strict";
8477
8545
 
@@ -8494,7 +8562,7 @@ var NUMBER_OF_AVAILABLE_CONNECTIONS = exports.NUMBER_OF_AVAILABLE_CONNECTIONS =
8494
8562
 
8495
8563
  var LENGTH = exports.LENGTH = NUMBER_OF_AVAILABLE_CONNECTIONS + _QitchConstants.INT_LENGTH;
8496
8564
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/StatsResponseDef.js","/lib/qitch/controlMessageDefinition")
8497
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],36:[function(require,module,exports){
8565
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],36:[function(require,module,exports){
8498
8566
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8499
8567
  "use strict";
8500
8568
 
@@ -8515,7 +8583,7 @@ var NUMBER_OF_TYPES_OFFSET = exports.NUMBER_OF_TYPES_OFFSET = NUMBER_OF_SYMBOLS_
8515
8583
 
8516
8584
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_TYPES_OFFSET + _QitchConstants.BYTE_LENGTH;
8517
8585
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeMessageDef.js","/lib/qitch/controlMessageDefinition")
8518
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],37:[function(require,module,exports){
8586
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],37:[function(require,module,exports){
8519
8587
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8520
8588
  "use strict";
8521
8589
 
@@ -8535,7 +8603,7 @@ var NUMBER_OF_INVALID_SYMBOLS_OFFSET = exports.NUMBER_OF_INVALID_SYMBOLS_OFFSET
8535
8603
 
8536
8604
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_INVALID_SYMBOLS_OFFSET + _QitchConstants.INT_LENGTH;
8537
8605
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/SubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")
8538
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],38:[function(require,module,exports){
8606
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],38:[function(require,module,exports){
8539
8607
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8540
8608
  "use strict";
8541
8609
 
@@ -8553,7 +8621,7 @@ var NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET = exports.NUMBER_OF_UNSUBSCRIBED_
8553
8621
 
8554
8622
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET + _QitchConstants.INT_LENGTH;
8555
8623
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/controlMessageDefinition/UnsubscribeResponseDef.js","/lib/qitch/controlMessageDefinition")
8556
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],39:[function(require,module,exports){
8624
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],39:[function(require,module,exports){
8557
8625
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8558
8626
  "use strict";
8559
8627
 
@@ -8812,7 +8880,7 @@ var DecodeMessage = function () {
8812
8880
 
8813
8881
  exports["default"] = BlockDecoder;
8814
8882
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/BlockDecoder.js","/lib/qitch/decoder")
8815
- },{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],40:[function(require,module,exports){
8883
+ },{"../BlockHeader":19,"../MessageHeader":24,"../Qitch":25,"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],40:[function(require,module,exports){
8816
8884
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8817
8885
  "use strict";
8818
8886
 
@@ -8874,7 +8942,7 @@ var MessageDecoder = function () {
8874
8942
 
8875
8943
  exports["default"] = MessageDecoder;
8876
8944
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/MessageDecoder.js","/lib/qitch/decoder")
8877
- },{"../MessageHeader":24,"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],41:[function(require,module,exports){
8945
+ },{"../MessageHeader":24,"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],41:[function(require,module,exports){
8878
8946
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8879
8947
  "use strict";
8880
8948
 
@@ -9118,7 +9186,7 @@ var MessageBlock = exports.MessageBlock = function (_SMessage2) {
9118
9186
 
9119
9187
  exports["default"] = QitchDecoder;
9120
9188
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/QitchDecoder.js","/lib/qitch/decoder")
9121
- },{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,"_process":114,"buffer":104,"timers":135}],42:[function(require,module,exports){
9189
+ },{"../../SMessage":5,"../../message.js":17,"./BlockDecoder":39,"./MessageDecoder":40,"./controlMessageDecoder/ConnectResponseDecoder":42,"./controlMessageDecoder/ConnectionCloseDecoder":43,"./controlMessageDecoder/HeartbeatDecoder":44,"./controlMessageDecoder/InitialDataSentDecoder":45,"./controlMessageDecoder/ResubscribeMessageDecoder":46,"./controlMessageDecoder/SlowConnectionDecoder":47,"./controlMessageDecoder/StatsResponseDecoder":48,"./controlMessageDecoder/SubscribeResponseDecoder":49,"./controlMessageDecoder/UnsubscribeResponseDecoder":50,"./dataDecoder/BookDeleteDecoder":51,"./dataDecoder/BookOrderDecoder":52,"./dataDecoder/DerivativeInfoDecoder":53,"./dataDecoder/IVGreeksDecoder":54,"./dataDecoder/ImbalanceStatusDecoder":55,"./dataDecoder/IntervalDecoder":56,"./dataDecoder/LastSaleDecoder":57,"./dataDecoder/LimitUpLimitDownDecoder":58,"./dataDecoder/MMQuoteDecoder":59,"./dataDecoder/NethousePositionDecoder":60,"./dataDecoder/PricedataDecoder":61,"./dataDecoder/PurgeBookDecoder":62,"./dataDecoder/QuoteDecoder":63,"./dataDecoder/SymbolInfoDecoder":64,"./dataDecoder/SymbolStatusDecoder":65,"./dataDecoder/TradeDecoder":66,"_process":119,"buffer":109,"timers":140}],42:[function(require,module,exports){
9122
9190
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9123
9191
  "use strict";
9124
9192
 
@@ -9168,7 +9236,7 @@ var ConnectResponseDecoder = function () {
9168
9236
 
9169
9237
  exports["default"] = ConnectResponseDecoder;
9170
9238
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9171
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectResponseDef":27,"_process":114,"buffer":104,"timers":135}],43:[function(require,module,exports){
9239
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ConnectResponseDef":27,"_process":119,"buffer":109,"timers":140}],43:[function(require,module,exports){
9172
9240
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9173
9241
  "use strict";
9174
9242
 
@@ -9211,7 +9279,7 @@ var ConnectionCloseDecoder = function () {
9211
9279
 
9212
9280
  exports["default"] = ConnectionCloseDecoder;
9213
9281
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ConnectionCloseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9214
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ConnectionCloseDef":28,"_process":114,"buffer":104,"timers":135}],44:[function(require,module,exports){
9282
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ConnectionCloseDef":28,"_process":119,"buffer":109,"timers":140}],44:[function(require,module,exports){
9215
9283
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9216
9284
  "use strict";
9217
9285
 
@@ -9253,7 +9321,7 @@ var HeartbeatDecoder = function () {
9253
9321
 
9254
9322
  exports["default"] = HeartbeatDecoder;
9255
9323
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/HeartbeatDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9256
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/HeartbeatDef":30,"_process":114,"buffer":104,"timers":135}],45:[function(require,module,exports){
9324
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/HeartbeatDef":30,"_process":119,"buffer":109,"timers":140}],45:[function(require,module,exports){
9257
9325
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9258
9326
  "use strict";
9259
9327
 
@@ -9296,7 +9364,7 @@ var InitialDataSentDecoder = function () {
9296
9364
 
9297
9365
  exports["default"] = InitialDataSentDecoder;
9298
9366
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/InitialDataSentDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9299
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/InitialDataSentDef":31,"_process":114,"buffer":104,"timers":135}],46:[function(require,module,exports){
9367
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/InitialDataSentDef":31,"_process":119,"buffer":109,"timers":140}],46:[function(require,module,exports){
9300
9368
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9301
9369
  "use strict";
9302
9370
 
@@ -9338,7 +9406,7 @@ var ResubscribeMessageDecoder = function () {
9338
9406
 
9339
9407
  exports["default"] = ResubscribeMessageDecoder;
9340
9408
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/ResubscribeMessageDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9341
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/ResubscribeMessageDef":32,"_process":114,"buffer":104,"timers":135}],47:[function(require,module,exports){
9409
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/ResubscribeMessageDef":32,"_process":119,"buffer":109,"timers":140}],47:[function(require,module,exports){
9342
9410
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9343
9411
  "use strict";
9344
9412
 
@@ -9381,7 +9449,7 @@ var SlowConnectionDecoder = function () {
9381
9449
 
9382
9450
  exports["default"] = SlowConnectionDecoder;
9383
9451
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SlowConnectionDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9384
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/SlowConnectionDef":33,"_process":114,"buffer":104,"timers":135}],48:[function(require,module,exports){
9452
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/SlowConnectionDef":33,"_process":119,"buffer":109,"timers":140}],48:[function(require,module,exports){
9385
9453
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9386
9454
  "use strict";
9387
9455
 
@@ -9431,7 +9499,7 @@ var StatsResponseDecoder = function () {
9431
9499
 
9432
9500
  exports["default"] = StatsResponseDecoder;
9433
9501
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/StatsResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9434
- },{"../../../streamer-api":92,"../../Qitch":25,"../../controlMessageDefinition/StatsResponseDef":35,"_process":114,"buffer":104,"timers":135}],49:[function(require,module,exports){
9502
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../controlMessageDefinition/StatsResponseDef":35,"_process":119,"buffer":109,"timers":140}],49:[function(require,module,exports){
9435
9503
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9436
9504
  "use strict";
9437
9505
 
@@ -9502,7 +9570,7 @@ var SubscribeResponseDecoder = function () {
9502
9570
 
9503
9571
  exports["default"] = SubscribeResponseDecoder;
9504
9572
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/SubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9505
- },{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeResponseDef":37,"_process":114,"buffer":104,"timers":135}],50:[function(require,module,exports){
9573
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeResponseDef":37,"_process":119,"buffer":109,"timers":140}],50:[function(require,module,exports){
9506
9574
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9507
9575
  "use strict";
9508
9576
 
@@ -9560,7 +9628,7 @@ var UnsubscribeResponseDecoder = function () {
9560
9628
 
9561
9629
  exports["default"] = UnsubscribeResponseDecoder;
9562
9630
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/controlMessageDecoder/UnsubscribeResponseDecoder.js","/lib/qitch/decoder/controlMessageDecoder")
9563
- },{"../../../streamer-api":92,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/UnsubscribeResponseDef":38,"_process":114,"buffer":104,"timers":135}],51:[function(require,module,exports){
9631
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/UnsubscribeResponseDef":38,"_process":119,"buffer":109,"timers":140}],51:[function(require,module,exports){
9564
9632
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9565
9633
  "use strict";
9566
9634
 
@@ -9604,7 +9672,7 @@ var BookDeleteDecoder = function () {
9604
9672
 
9605
9673
  exports["default"] = BookDeleteDecoder;
9606
9674
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookDeleteDecoder.js","/lib/qitch/decoder/dataDecoder")
9607
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookDeleteDef":71,"_process":114,"buffer":104,"timers":135}],52:[function(require,module,exports){
9675
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/BookDeleteDef":71,"_process":119,"buffer":109,"timers":140}],52:[function(require,module,exports){
9608
9676
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9609
9677
  "use strict";
9610
9678
 
@@ -9659,7 +9727,7 @@ var BookOrderDecoder = function () {
9659
9727
 
9660
9728
  exports["default"] = BookOrderDecoder;
9661
9729
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/BookOrderDecoder.js","/lib/qitch/decoder/dataDecoder")
9662
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/BookOrderDef":72,"_process":114,"buffer":104,"timers":135}],53:[function(require,module,exports){
9730
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/BookOrderDef":72,"_process":119,"buffer":109,"timers":140}],53:[function(require,module,exports){
9663
9731
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9664
9732
  "use strict";
9665
9733
 
@@ -9708,7 +9776,7 @@ var DerivativeInfoDecoder = function () {
9708
9776
 
9709
9777
  exports["default"] = DerivativeInfoDecoder;
9710
9778
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/DerivativeInfoDecoder.js","/lib/qitch/decoder/dataDecoder")
9711
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/DerivativeInfoDef":73,"_process":114,"buffer":104,"timers":135}],54:[function(require,module,exports){
9779
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/DerivativeInfoDef":73,"_process":119,"buffer":109,"timers":140}],54:[function(require,module,exports){
9712
9780
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9713
9781
  "use strict";
9714
9782
 
@@ -9755,6 +9823,9 @@ var IVGreeksDecoder = function () {
9755
9823
  out.mark = _Qitch2["default"].dec8double(src, offset + def.MARK_OFFSET);
9756
9824
  out.intrinsicValue = _Qitch2["default"].dec8double(src, offset + def.INTRINSIC_VALUE_OFFSET);
9757
9825
  out.extrinsicValue = _Qitch2["default"].dec8double(src, offset + def.EXTRINSIC_VALUE_OFFSET);
9826
+ out.previousMark = _Qitch2["default"].dec8double(src, offset + def.PREVIOUS_MARK_OFFSET);
9827
+ out.markChange = _Qitch2["default"].dec8double(src, offset + def.MARK_CHANGE_OFFSET);
9828
+ out.markChangePercent = _Qitch2["default"].dec8double(src, offset + def.MARK_CHANGE_PERCENT_OFFSET);
9758
9829
  return out;
9759
9830
  };
9760
9831
 
@@ -9763,7 +9834,7 @@ var IVGreeksDecoder = function () {
9763
9834
 
9764
9835
  exports["default"] = IVGreeksDecoder;
9765
9836
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IVGreeksDecoder.js","/lib/qitch/decoder/dataDecoder")
9766
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IVGreeksDef":74,"_process":114,"buffer":104,"timers":135}],55:[function(require,module,exports){
9837
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/IVGreeksDef":74,"_process":119,"buffer":109,"timers":140}],55:[function(require,module,exports){
9767
9838
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9768
9839
  "use strict";
9769
9840
 
@@ -9814,7 +9885,7 @@ var ImbalanceStatusDecoder = function () {
9814
9885
 
9815
9886
  exports["default"] = ImbalanceStatusDecoder;
9816
9887
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/ImbalanceStatusDecoder.js","/lib/qitch/decoder/dataDecoder")
9817
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/ImbalanceStatusDef":75,"_process":114,"buffer":104,"timers":135}],56:[function(require,module,exports){
9888
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/ImbalanceStatusDef":75,"_process":119,"buffer":109,"timers":140}],56:[function(require,module,exports){
9818
9889
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9819
9890
  "use strict";
9820
9891
 
@@ -9882,7 +9953,7 @@ var IntervalDecoder = function () {
9882
9953
 
9883
9954
  exports["default"] = IntervalDecoder;
9884
9955
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/IntervalDecoder.js","/lib/qitch/decoder/dataDecoder")
9885
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/IntervalDef":76,"_process":114,"bignumber.js":101,"buffer":104,"jsbi":111,"timers":135}],57:[function(require,module,exports){
9956
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/IntervalDef":76,"_process":119,"bignumber.js":106,"buffer":109,"jsbi":116,"timers":140}],57:[function(require,module,exports){
9886
9957
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9887
9958
  "use strict";
9888
9959
 
@@ -9923,6 +9994,7 @@ var LastSaleDecoder = function () {
9923
9994
  out.tick = _Qitch2["default"].tick(src, offset + def.TICK_OFFSET);
9924
9995
  out.change = this._change(out);
9925
9996
  out.percentChange = this._percentChange(out);
9997
+ out.lastTradeExcode = _Qitch2["default"].excode(src, offset + def.LASTTRADE_EXCODE_OFFSET);
9926
9998
  return out;
9927
9999
  };
9928
10000
 
@@ -9945,7 +10017,7 @@ var LastSaleDecoder = function () {
9945
10017
 
9946
10018
  exports["default"] = LastSaleDecoder;
9947
10019
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LastSaleDecoder.js","/lib/qitch/decoder/dataDecoder")
9948
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LastSaleDef":77,"_process":114,"buffer":104,"timers":135}],58:[function(require,module,exports){
10020
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/LastSaleDef":77,"_process":119,"buffer":109,"timers":140}],58:[function(require,module,exports){
9949
10021
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9950
10022
  "use strict";
9951
10023
 
@@ -9995,7 +10067,7 @@ var LimitUpLimitDownDecoder = function () {
9995
10067
 
9996
10068
  exports["default"] = LimitUpLimitDownDecoder;
9997
10069
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/LimitUpLimitDownDecoder.js","/lib/qitch/decoder/dataDecoder")
9998
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/LimitUpLimitDownDef":78,"_process":114,"buffer":104,"timers":135}],59:[function(require,module,exports){
10070
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/LimitUpLimitDownDef":78,"_process":119,"buffer":109,"timers":140}],59:[function(require,module,exports){
9999
10071
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10000
10072
  "use strict";
10001
10073
 
@@ -10047,7 +10119,7 @@ var MMQuoteDecoder = function () {
10047
10119
 
10048
10120
  exports["default"] = MMQuoteDecoder;
10049
10121
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/MMQuoteDecoder.js","/lib/qitch/decoder/dataDecoder")
10050
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/MMQuoteDef":79,"_process":114,"buffer":104,"timers":135}],60:[function(require,module,exports){
10122
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/MMQuoteDef":79,"_process":119,"buffer":109,"timers":140}],60:[function(require,module,exports){
10051
10123
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10052
10124
  "use strict";
10053
10125
 
@@ -10103,7 +10175,7 @@ var NethousePositionDecoder = function () {
10103
10175
 
10104
10176
  exports["default"] = NethousePositionDecoder;
10105
10177
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/NethousePositionDecoder.js","/lib/qitch/decoder/dataDecoder")
10106
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/NethousePositionDef":80,"_process":114,"buffer":104,"timers":135}],61:[function(require,module,exports){
10178
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/NethousePositionDef":80,"_process":119,"buffer":109,"timers":140}],61:[function(require,module,exports){
10107
10179
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10108
10180
  "use strict";
10109
10181
 
@@ -10211,7 +10283,7 @@ var PricedataDecoder = function () {
10211
10283
 
10212
10284
  exports["default"] = PricedataDecoder;
10213
10285
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PricedataDecoder.js","/lib/qitch/decoder/dataDecoder")
10214
- },{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/PricedataDef":81,"_process":114,"buffer":104,"timers":135}],62:[function(require,module,exports){
10286
+ },{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/PricedataDef":81,"_process":119,"buffer":109,"timers":140}],62:[function(require,module,exports){
10215
10287
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10216
10288
  "use strict";
10217
10289
 
@@ -10253,7 +10325,7 @@ var PurgeBookDecoder = function () {
10253
10325
 
10254
10326
  exports["default"] = PurgeBookDecoder;
10255
10327
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/PurgeBookDecoder.js","/lib/qitch/decoder/dataDecoder")
10256
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/PurgeBookDef":82,"_process":114,"buffer":104,"timers":135}],63:[function(require,module,exports){
10328
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/PurgeBookDef":82,"_process":119,"buffer":109,"timers":140}],63:[function(require,module,exports){
10257
10329
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10258
10330
  "use strict";
10259
10331
 
@@ -10306,7 +10378,7 @@ var QuoteDecoder = function () {
10306
10378
 
10307
10379
  exports["default"] = QuoteDecoder;
10308
10380
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/QuoteDecoder.js","/lib/qitch/decoder/dataDecoder")
10309
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/QuoteDef":83,"_process":114,"buffer":104,"timers":135}],64:[function(require,module,exports){
10381
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/QuoteDef":83,"_process":119,"buffer":109,"timers":140}],64:[function(require,module,exports){
10310
10382
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10311
10383
  "use strict";
10312
10384
 
@@ -10359,7 +10431,7 @@ var SymbolInfoDecoder = function () {
10359
10431
 
10360
10432
  exports["default"] = SymbolInfoDecoder;
10361
10433
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolInfoDecoder.js","/lib/qitch/decoder/dataDecoder")
10362
- },{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/SymbolInfoDef":84,"_process":114,"buffer":104,"timers":135}],65:[function(require,module,exports){
10434
+ },{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/SymbolInfoDef":84,"_process":119,"buffer":109,"timers":140}],65:[function(require,module,exports){
10363
10435
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10364
10436
  "use strict";
10365
10437
 
@@ -10408,7 +10480,7 @@ var SymbolStatusDecoder = function () {
10408
10480
 
10409
10481
  exports["default"] = SymbolStatusDecoder;
10410
10482
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/SymbolStatusDecoder.js","/lib/qitch/decoder/dataDecoder")
10411
- },{"../../../streamer-api":92,"../../Qitch":25,"../../marketDataDefinition/SymbolStatusDef":85,"_process":114,"buffer":104,"timers":135}],66:[function(require,module,exports){
10483
+ },{"../../../streamer-api":96,"../../Qitch":25,"../../marketDataDefinition/SymbolStatusDef":85,"_process":119,"buffer":109,"timers":140}],66:[function(require,module,exports){
10412
10484
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10413
10485
  "use strict";
10414
10486
 
@@ -10464,7 +10536,7 @@ var TradeDecoder = function () {
10464
10536
 
10465
10537
  exports["default"] = TradeDecoder;
10466
10538
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/decoder/dataDecoder/TradeDecoder.js","/lib/qitch/decoder/dataDecoder")
10467
- },{"../../../streamer-api.js":92,"../../Qitch":25,"../../marketDataDefinition/TradeDef":86,"_process":114,"buffer":104,"timers":135}],67:[function(require,module,exports){
10539
+ },{"../../../streamer-api.js":96,"../../Qitch":25,"../../marketDataDefinition/TradeDef":86,"_process":119,"buffer":109,"timers":140}],67:[function(require,module,exports){
10468
10540
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10469
10541
  "use strict";
10470
10542
 
@@ -10576,7 +10648,7 @@ var MessageEncoder = function () {
10576
10648
 
10577
10649
  exports["default"] = QitchEncoder;
10578
10650
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/encoder/QitchEncoder.js","/lib/qitch/encoder")
10579
- },{"../../SMessage":5,"../../streamer-api":92,"../../streamer-utils":94,"../BlockHeader":19,"../MessageHeader":24,"../QitchConstants":26,"./controlMessageEncoder/FlowMessageEncoder":68,"./controlMessageEncoder/StatsMessageEncoder":69,"./controlMessageEncoder/SubscribeMessageEncoder":70,"_process":114,"buffer":104,"timers":135}],68:[function(require,module,exports){
10651
+ },{"../../SMessage":5,"../../streamer-api":96,"../../streamer-utils":98,"../BlockHeader":19,"../MessageHeader":24,"../QitchConstants":26,"./controlMessageEncoder/FlowMessageEncoder":68,"./controlMessageEncoder/StatsMessageEncoder":69,"./controlMessageEncoder/SubscribeMessageEncoder":70,"_process":119,"buffer":109,"timers":140}],68:[function(require,module,exports){
10580
10652
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10581
10653
  "use strict";
10582
10654
 
@@ -10619,7 +10691,7 @@ var FlowMessageEncoder = function () {
10619
10691
 
10620
10692
  exports["default"] = FlowMessageEncoder;
10621
10693
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/FlowMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
10622
- },{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,"_process":114,"buffer":104,"timers":135}],69:[function(require,module,exports){
10694
+ },{"../../Qitch":25,"../../controlMessageDefinition/FlowMessageDef":29,"_process":119,"buffer":109,"timers":140}],69:[function(require,module,exports){
10623
10695
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10624
10696
  "use strict";
10625
10697
 
@@ -10662,7 +10734,7 @@ var StatsMessageEncoder = function () {
10662
10734
 
10663
10735
  exports["default"] = StatsMessageEncoder;
10664
10736
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/StatsMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
10665
- },{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,"_process":114,"buffer":104,"timers":135}],70:[function(require,module,exports){
10737
+ },{"../../Qitch":25,"../../controlMessageDefinition/StatsMessageDef":34,"_process":119,"buffer":109,"timers":140}],70:[function(require,module,exports){
10666
10738
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10667
10739
  "use strict";
10668
10740
 
@@ -10731,7 +10803,7 @@ var SubscribeMessageEncoder = function () {
10731
10803
 
10732
10804
  exports["default"] = SubscribeMessageEncoder;
10733
10805
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/encoder/controlMessageEncoder/SubscribeMessageEncoder.js","/lib/qitch/encoder/controlMessageEncoder")
10734
- },{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,"_process":114,"buffer":104,"timers":135}],71:[function(require,module,exports){
10806
+ },{"../../Qitch":25,"../../QitchConstants":26,"../../controlMessageDefinition/SubscribeMessageDef":36,"_process":119,"buffer":109,"timers":140}],71:[function(require,module,exports){
10735
10807
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10736
10808
  "use strict";
10737
10809
 
@@ -10747,7 +10819,7 @@ var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.T
10747
10819
  var ORDER_REFERENCE_OFFSET = exports.ORDER_REFERENCE_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
10748
10820
  var LENGTH = exports.LENGTH = ORDER_REFERENCE_OFFSET + _QitchConstants.ORDER_REFERENCE_LENGTH;
10749
10821
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookDeleteDef.js","/lib/qitch/marketDataDefinition")
10750
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],72:[function(require,module,exports){
10822
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],72:[function(require,module,exports){
10751
10823
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10752
10824
  "use strict";
10753
10825
 
@@ -10868,7 +10940,7 @@ BookOrderFlags.prototype.PRICE_MUSTBEFILLED_MASK = 0x40000000;
10868
10940
  BookOrderFlags.prototype.FUTURESETTLEMENT_MASK = 0x0800;
10869
10941
  BookOrderFlags.prototype.NEXTDAYSETTLEMENT_MASK = 0x1000;
10870
10942
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/BookOrderDef.js","/lib/qitch/marketDataDefinition")
10871
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],73:[function(require,module,exports){
10943
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],73:[function(require,module,exports){
10872
10944
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10873
10945
  "use strict";
10874
10946
 
@@ -10889,12 +10961,12 @@ var CALLPUTINDICATOR_OFFSET = exports.CALLPUTINDICATOR_OFFSET = CONTRACTSIZE_OFF
10889
10961
  var MINTICKSIZE_OFFSET = exports.MINTICKSIZE_OFFSET = CALLPUTINDICATOR_OFFSET + _QitchConstants.ASCIICHAR_LENGTH;
10890
10962
  var LENGTH = exports.LENGTH = MINTICKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10891
10963
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/DerivativeInfoDef.js","/lib/qitch/marketDataDefinition")
10892
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],74:[function(require,module,exports){
10964
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],74:[function(require,module,exports){
10893
10965
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10894
10966
  "use strict";
10895
10967
 
10896
10968
  exports.__esModule = true;
10897
- exports.LENGTH = exports.EXTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = exports.MARK_OFFSET = exports.LAST_CALCULATION_OFFSET = exports.ASK_IMPLIED_VOLATILITY_OFFSET = exports.BID_IMPLIED_VOLATILITY_OFFSET = exports.IMPLIED_VOLATILITY_CHANGE_OFFSET = exports.IMPLIED_VOLATILITY_OFFSET = exports.THETA_OFFSET = exports.RHO_OFFSET = exports.VEGA_OFFSET = exports.GAMMA_OFFSET = exports.DELTA_OFFSET = exports.LOCATECODE_OFFSET = exports.TYPEID = undefined;
10969
+ exports.LENGTH = exports.MARK_CHANGE_PERCENT_OFFSET = exports.MARK_CHANGE_OFFSET = exports.PREVIOUS_MARK_OFFSET = exports.EXTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = exports.MARK_OFFSET = exports.LAST_CALCULATION_OFFSET = exports.ASK_IMPLIED_VOLATILITY_OFFSET = exports.BID_IMPLIED_VOLATILITY_OFFSET = exports.IMPLIED_VOLATILITY_CHANGE_OFFSET = exports.IMPLIED_VOLATILITY_OFFSET = exports.THETA_OFFSET = exports.RHO_OFFSET = exports.VEGA_OFFSET = exports.GAMMA_OFFSET = exports.DELTA_OFFSET = exports.LOCATECODE_OFFSET = exports.TYPEID = undefined;
10898
10970
 
10899
10971
  var _QitchConstants = require("../QitchConstants");
10900
10972
 
@@ -10914,10 +10986,13 @@ var LAST_CALCULATION_OFFSET = exports.LAST_CALCULATION_OFFSET = ASK_IMPLIED_VOLA
10914
10986
  var MARK_OFFSET = exports.MARK_OFFSET = LAST_CALCULATION_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
10915
10987
  var INTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = MARK_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10916
10988
  var EXTRINSIC_VALUE_OFFSET = exports.EXTRINSIC_VALUE_OFFSET = INTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10989
+ var PREVIOUS_MARK_OFFSET = exports.PREVIOUS_MARK_OFFSET = EXTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10990
+ var MARK_CHANGE_OFFSET = exports.MARK_CHANGE_OFFSET = PREVIOUS_MARK_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10991
+ var MARK_CHANGE_PERCENT_OFFSET = exports.MARK_CHANGE_PERCENT_OFFSET = MARK_CHANGE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10917
10992
 
10918
- var LENGTH = exports.LENGTH = EXTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10993
+ var LENGTH = exports.LENGTH = MARK_CHANGE_PERCENT_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10919
10994
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IVGreeksDef.js","/lib/qitch/marketDataDefinition")
10920
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],75:[function(require,module,exports){
10995
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],75:[function(require,module,exports){
10921
10996
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10922
10997
  "use strict";
10923
10998
 
@@ -10940,7 +11015,7 @@ var FARINDICATIVEPRICE_OFFSET = exports.FARINDICATIVEPRICE_OFFSET = NEARINDICATI
10940
11015
  var PRICEVARIATION_OFFSET = exports.PRICEVARIATION_OFFSET = FARINDICATIVEPRICE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10941
11016
  var LENGTH = exports.LENGTH = PRICEVARIATION_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10942
11017
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/ImbalanceStatusDef.js","/lib/qitch/marketDataDefinition")
10943
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],76:[function(require,module,exports){
11018
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],76:[function(require,module,exports){
10944
11019
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10945
11020
  "use strict";
10946
11021
 
@@ -10965,12 +11040,12 @@ var TRADEVALUE_OFFSET = exports.TRADEVALUE_OFFSET = LASTTIME_OFFSET + _QitchCons
10965
11040
  var LONGDECIMALVOLUME_OFFSET = exports.LONGDECIMALVOLUME_OFFSET = TRADEVALUE_OFFSET + _QitchConstants.LONG_LENGTH;
10966
11041
  var LENGTH = exports.LENGTH = LONGDECIMALVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10967
11042
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/IntervalDef.js","/lib/qitch/marketDataDefinition")
10968
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],77:[function(require,module,exports){
11043
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],77:[function(require,module,exports){
10969
11044
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10970
11045
  "use strict";
10971
11046
 
10972
11047
  exports.__esModule = true;
10973
- exports.LENGTH = exports.TICK_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
11048
+ exports.LENGTH = exports.LASTTRADE_EXCODE_OFFSET = exports.TICK_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = exports.PREVCLOSE_OFFSET = exports.LAST_OFFSET = exports.SYMBOL_OFFSET = exports.TIMESTAMP_OFFSET = exports.TYPEID = undefined;
10974
11049
 
10975
11050
  var _QitchConstants = require("../QitchConstants");
10976
11051
 
@@ -10982,9 +11057,10 @@ var LAST_OFFSET = exports.LAST_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECO
10982
11057
  var PREVCLOSE_OFFSET = exports.PREVCLOSE_OFFSET = LAST_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10983
11058
  var ACCUMULATEDVOLUME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = PREVCLOSE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10984
11059
  var TICK_OFFSET = exports.TICK_OFFSET = ACCUMULATEDVOLUME_OFFSET + _QitchConstants.LONG_LENGTH;
10985
- var LENGTH = exports.LENGTH = TICK_OFFSET + _QitchConstants.TICK_LENGTH;
11060
+ var LASTTRADE_EXCODE_OFFSET = exports.LASTTRADE_EXCODE_OFFSET = TICK_OFFSET + _QitchConstants.TICK_LENGTH;
11061
+ var LENGTH = exports.LENGTH = LASTTRADE_EXCODE_OFFSET + _QitchConstants.EXCODE_LENGTH;
10986
11062
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LastSaleDef.js","/lib/qitch/marketDataDefinition")
10987
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],78:[function(require,module,exports){
11063
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],78:[function(require,module,exports){
10988
11064
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10989
11065
  "use strict";
10990
11066
 
@@ -11024,7 +11100,7 @@ var LimitUpLimitDownFlags = exports.LimitUpLimitDownFlags = function () {
11024
11100
  LimitUpLimitDownFlags.prototype.BID_NOT_EXECUTABLE = 0x1;
11025
11101
  LimitUpLimitDownFlags.prototype.ASK_NOT_EXECUTABLE = 0x2;
11026
11102
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/LimitUpLimitDownDef.js","/lib/qitch/marketDataDefinition")
11027
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],79:[function(require,module,exports){
11103
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],79:[function(require,module,exports){
11028
11104
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11029
11105
  "use strict";
11030
11106
 
@@ -11050,7 +11126,7 @@ var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = SHARESPERSIZEUNIT_OF
11050
11126
  var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11051
11127
  var LENGTH = exports.LENGTH = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11052
11128
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/MMQuoteDef.js","/lib/qitch/marketDataDefinition")
11053
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],80:[function(require,module,exports){
11129
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],80:[function(require,module,exports){
11054
11130
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11055
11131
  "use strict";
11056
11132
 
@@ -11078,7 +11154,7 @@ var BUYBLOCKTRANSACTIONS_OFFSET = exports.BUYBLOCKTRANSACTIONS_OFFSET = SELLTRAN
11078
11154
  var SELLBLOCKTRANSACTIONS_OFFSET = exports.SELLBLOCKTRANSACTIONS_OFFSET = BUYBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
11079
11155
  var LENGTH = exports.LENGTH = SELLBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
11080
11156
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/NethousePositionDef.js","/lib/qitch/marketDataDefinition")
11081
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],81:[function(require,module,exports){
11157
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],81:[function(require,module,exports){
11082
11158
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11083
11159
  "use strict";
11084
11160
 
@@ -11144,7 +11220,7 @@ var PricedataFlags = exports.PricedataFlags = function () {
11144
11220
  PricedataFlags.prototype.ANNUALHIGH_MASK = 0x01;
11145
11221
  PricedataFlags.prototype.ANNUALLOW_MASK = 0x02;
11146
11222
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PricedataDef.js","/lib/qitch/marketDataDefinition")
11147
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],82:[function(require,module,exports){
11223
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],82:[function(require,module,exports){
11148
11224
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11149
11225
  "use strict";
11150
11226
 
@@ -11158,7 +11234,7 @@ var TYPEID = exports.TYPEID = 6;
11158
11234
  var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = 0;
11159
11235
  var LENGTH = exports.LENGTH = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
11160
11236
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/PurgeBookDef.js","/lib/qitch/marketDataDefinition")
11161
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],83:[function(require,module,exports){
11237
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],83:[function(require,module,exports){
11162
11238
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11163
11239
  "use strict";
11164
11240
 
@@ -11185,7 +11261,7 @@ var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = SHARESPERSIZEUNIT_OF
11185
11261
  var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11186
11262
  var LENGTH = exports.LENGTH = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11187
11263
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/QuoteDef.js","/lib/qitch/marketDataDefinition")
11188
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],84:[function(require,module,exports){
11264
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],84:[function(require,module,exports){
11189
11265
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11190
11266
  "use strict";
11191
11267
 
@@ -11209,7 +11285,7 @@ var CAVEATEMPTOR_OFFSET = exports.CAVEATEMPTOR_OFFSET = PQE_OFFSET + _QitchConst
11209
11285
  var BOARDLOTSIZE_OFFSET = exports.BOARDLOTSIZE_OFFSET = CAVEATEMPTOR_OFFSET + _QitchConstants.BYTE_LENGTH;
11210
11286
  var LENGTH = exports.LENGTH = BOARDLOTSIZE_OFFSET + _QitchConstants.INT_LENGTH;
11211
11287
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolInfoDef.js","/lib/qitch/marketDataDefinition")
11212
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],85:[function(require,module,exports){
11288
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],85:[function(require,module,exports){
11213
11289
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11214
11290
  "use strict";
11215
11291
 
@@ -11231,7 +11307,7 @@ var NOTE_OFFSET = exports.NOTE_OFFSET = OPENINGTIME_OFFSET + _QitchConstants.TIM
11231
11307
 
11232
11308
  var LENGTH = exports.LENGTH = NOTE_OFFSET + _QitchConstants.NOTE_LENGTH;
11233
11309
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/SymbolStatusDef.js","/lib/qitch/marketDataDefinition")
11234
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],86:[function(require,module,exports){
11310
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],86:[function(require,module,exports){
11235
11311
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11236
11312
  "use strict";
11237
11313
 
@@ -11361,7 +11437,7 @@ TradeFlags.prototype.IGNOREOPEN_MASK = 0x00000100;
11361
11437
  TradeFlags.prototype.TRADETHROUGHEXEMPT = 0x00000200;
11362
11438
  TradeFlags.prototype.CORRECTION_MASK = 0x08000000;
11363
11439
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/qitch/marketDataDefinition/TradeDef.js","/lib/qitch/marketDataDefinition")
11364
- },{"../QitchConstants":26,"_process":114,"buffer":104,"timers":135}],87:[function(require,module,exports){
11440
+ },{"../QitchConstants":26,"_process":119,"buffer":109,"timers":140}],87:[function(require,module,exports){
11365
11441
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11366
11442
  "use strict";
11367
11443
 
@@ -11411,7 +11487,7 @@ var SMessageDecoder = function () {
11411
11487
 
11412
11488
  exports["default"] = SMessageDecoder;
11413
11489
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/serialization/SMessageDecoder.js","/lib/serialization")
11414
- },{"./v1/SMessageDecoder_1.js":89,"_process":114,"buffer":104,"timers":135}],88:[function(require,module,exports){
11490
+ },{"./v1/SMessageDecoder_1.js":89,"_process":119,"buffer":109,"timers":140}],88:[function(require,module,exports){
11415
11491
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11416
11492
  "use strict";
11417
11493
 
@@ -11458,7 +11534,7 @@ var SMessageEncoder = function () {
11458
11534
 
11459
11535
  exports["default"] = SMessageEncoder;
11460
11536
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/serialization/SMessageEncoder.js","/lib/serialization")
11461
- },{"./v1/SMessageEncoder_1.js":90,"_process":114,"buffer":104,"timers":135}],89:[function(require,module,exports){
11537
+ },{"./v1/SMessageEncoder_1.js":90,"_process":119,"buffer":109,"timers":140}],89:[function(require,module,exports){
11462
11538
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11463
11539
  "use strict";
11464
11540
 
@@ -11512,7 +11588,7 @@ var SMessageDecoder_1 = function () {
11512
11588
 
11513
11589
  exports["default"] = SMessageDecoder_1;
11514
11590
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/serialization/v1/SMessageDecoder_1.js","/lib/serialization/v1")
11515
- },{"../../SMessage.js":5,"./codec.js":91,"_process":114,"buffer":104,"timers":135}],90:[function(require,module,exports){
11591
+ },{"../../SMessage.js":5,"./codec.js":91,"_process":119,"buffer":109,"timers":140}],90:[function(require,module,exports){
11516
11592
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11517
11593
  "use strict";
11518
11594
 
@@ -11562,7 +11638,7 @@ var SMessageEncoder_1 = function () {
11562
11638
 
11563
11639
  exports["default"] = SMessageEncoder_1;
11564
11640
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/serialization/v1/SMessageEncoder_1.js","/lib/serialization/v1")
11565
- },{"../../message.js":17,"./codec.js":91,"_process":114,"buffer":104,"timers":135}],91:[function(require,module,exports){
11641
+ },{"../../message.js":17,"./codec.js":91,"_process":119,"buffer":109,"timers":140}],91:[function(require,module,exports){
11566
11642
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11567
11643
  "use strict";
11568
11644
 
@@ -11607,205 +11683,2172 @@ exports["default"] = new function () {
11607
11683
  this.HEADER_LENGTH_CHAR = this.PAYLOADLENGTH_OFFSET + this.UINT_LENGTH_CHAR;
11608
11684
  }();
11609
11685
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/serialization/v1/codec.js","/lib/serialization/v1")
11610
- },{"_process":114,"buffer":104,"timers":135}],92:[function(require,module,exports){
11686
+ },{"_process":119,"buffer":109,"timers":140}],92:[function(require,module,exports){
11611
11687
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11612
- "use strict";
11613
-
11614
- exports.__esModule = true;
11615
- /* @see http://usejsdoc.org */
11616
-
11617
- /**
11618
- * Streamer api namespace.
11619
- * @namespace
11620
- */
11621
-
11622
- var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
11623
- var VERSION = exports.VERSION = "2.25.0";
11624
-
11625
- /**
11626
- * Streamer message api namespace.
11627
- * @namespace
11628
- */
11629
- var messages = exports.messages = {};
11688
+ 'use strict';
11630
11689
 
11631
- /**
11632
- * Streamer control message namespace. * @namespace
11633
- */
11634
- messages.control = {};
11690
+ // Generated by CoffeeScript 1.7.1
11635
11691
 
11636
- /**
11637
- * Streamer market data message namespace.
11638
- * @namespace
11692
+ /*
11693
+ Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
11694
+
11695
+ Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
11696
+ Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
11639
11697
  */
11640
- messages.market = {};
11641
11698
 
11642
- /* ****************************************************************************************************************** */
11699
+ (function () {
11700
+ var Byte,
11701
+ Client,
11702
+ Frame,
11703
+ Stomp,
11704
+ __hasProp = {}.hasOwnProperty,
11705
+ __slice = [].slice;
11706
+
11707
+ Byte = {
11708
+ LF: '\x0A',
11709
+ NULL: '\x00'
11710
+ };
11643
11711
 
11644
- /**
11645
- *
11646
- * @type {string}
11647
- */
11648
- messages.JSON_TYPE_PROPERTY = '@T';
11712
+ Frame = function () {
11713
+ var unmarshallSingle;
11649
11714
 
11650
- /**
11651
- * Message type identifiers.<br>
11652
- * Ensure identifiers are unique within this name space.
11653
- * @namespace
11654
- */
11655
- messages.MessageTypeNames = {
11656
- /**
11657
- * Name space for control message type identifiers.
11658
- * @namespace
11659
- */
11660
- ctrl: {
11661
- HEARTBEAT: 'C1',
11662
- SUBSCRIBE: 'C2',
11663
- SUBSCRIBE_RESPONSE: 'C3',
11664
- UNSUBSCRIBE_RESPONSE: 'C4',
11665
- CONNECT_RESPONSE: 'C5',
11666
- CONNECTION_CLOSE: 'C6',
11667
- FLOW: 'C7',
11668
- SLOW_CONNECTION: 'C8',
11669
- INITIAL_DATA_SENT: 'C9',
11670
- RESUBSCRIBE_MESSAGE: 'C10',
11671
- STATS: 'C12',
11672
- STATS_RESPONSE: 'C13',
11673
- EXCHANGE_SUBSCRIBE: 'C14',
11674
- EXCHANGE_RESPONSE: 'C15',
11675
- EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
11676
- NEWS_SUBSCRIBE: 'C17',
11677
- NEWS_SUBSCRIBE_RESPONSE: 'C18',
11678
- ALERTS_SUBUNSUB: 'C19',
11679
- ALERTS_SUBUNSUB_RESPONSE: 'C20',
11680
- TRADE_SUBSCRIBE: 'C21',
11681
- TRADE_SUBSCRIBE_RESPONSE: 'C22',
11682
- NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
11683
- NEWS_COMMAND: 'C24',
11684
- NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
11685
- NEWS_CMD_FILTER_RESPONSE: 'C26'
11686
- },
11687
- /**
11688
- * Name space for data message type identifiers.<br>
11689
- * Prefix with 'D'.
11690
- * @namespace
11691
- */
11692
- data: {
11693
- QUOTE: 'D1',
11694
- PRICEDATA: 'D2',
11695
- TRADE: 'D3',
11696
- BOOKORDER: 'D4',
11697
- BOOKDELETE: 'D5',
11698
- PURGEBOOK: 'D6',
11699
- MMQUOTE: 'D7',
11700
- INTERVAL: 'D8',
11701
- NETHOUSEPOSITION: 'D9',
11702
- SYMBOLINFO: 'D10',
11703
- SYMBOLSTATUS: 'D11',
11704
- DERIVATIVEINFO: 'D12',
11705
- LASTSALE: 'D13',
11706
- LIMITUPLIMITDOWN: 'D14',
11707
- IVGREEKS: 'D15',
11708
- IMBALANCESTATUS: 'D16',
11709
- ALERT: 'D17',
11710
- NEWS: 'D18',
11711
- TRADENOTIFICATION: 'D19',
11712
- NEWSCMDFILTER: 'D20'
11715
+ function Frame(command, headers, body) {
11716
+ this.command = command;
11717
+ this.headers = headers != null ? headers : {};
11718
+ this.body = body != null ? body : '';
11713
11719
  }
11714
- };
11715
-
11716
- /**
11717
- * Super type of all exports.
11718
- * @abstract
11719
- * @constructor
11720
- */
11721
- messages.Message = function () {};
11722
11720
 
11723
- messages.Message.prototype.init = function (typeid) {
11724
- this[messages.JSON_TYPE_PROPERTY] = typeid;
11725
- };
11721
+ Frame.prototype.toString = function () {
11722
+ var lines, name, skipContentLength, value, _ref;
11723
+ lines = [this.command];
11724
+ skipContentLength = this.headers['content-length'] === false ? true : false;
11725
+ if (skipContentLength) {
11726
+ delete this.headers['content-length'];
11727
+ }
11728
+ _ref = this.headers;
11729
+ for (name in _ref) {
11730
+ if (!__hasProp.call(_ref, name)) continue;
11731
+ value = _ref[name];
11732
+ lines.push("" + name + ":" + value);
11733
+ }
11734
+ if (this.body && !skipContentLength) {
11735
+ lines.push("content-length:" + Frame.sizeOfUTF8(this.body));
11736
+ }
11737
+ lines.push(Byte.LF + this.body);
11738
+ return lines.join(Byte.LF);
11739
+ };
11726
11740
 
11727
- /* ****************************************************************************************************************** */
11741
+ Frame.sizeOfUTF8 = function (s) {
11742
+ if (s) {
11743
+ return encodeURI(s).match(/%..|./g).length;
11744
+ } else {
11745
+ return 0;
11746
+ }
11747
+ };
11728
11748
 
11729
- /**
11730
- * Creates a control message base object.
11731
- * @abstract
11732
- * @constructor
11733
- */
11734
- messages.control.CtrlMessage = function () {};
11735
- messages.control.CtrlMessage.prototype = new messages.Message();
11749
+ unmarshallSingle = function unmarshallSingle(data) {
11750
+ var body, chr, command, divider, headerLines, headers, i, idx, len, line, start, trim, _i, _j, _len, _ref, _ref1;
11751
+ divider = data.search(RegExp("" + Byte.LF + Byte.LF));
11752
+ headerLines = data.substring(0, divider).split(Byte.LF);
11753
+ command = headerLines.shift();
11754
+ headers = {};
11755
+ trim = function trim(str) {
11756
+ return str.replace(/^\s+|\s+$/g, '');
11757
+ };
11758
+ _ref = headerLines.reverse();
11759
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
11760
+ line = _ref[_i];
11761
+ idx = line.indexOf(':');
11762
+ headers[trim(line.substring(0, idx))] = trim(line.substring(idx + 1));
11763
+ }
11764
+ body = '';
11765
+ start = divider + 2;
11766
+ if (headers['content-length']) {
11767
+ len = parseInt(headers['content-length']);
11768
+ body = ('' + data).substring(start, start + len);
11769
+ } else {
11770
+ chr = null;
11771
+ for (i = _j = start, _ref1 = data.length; start <= _ref1 ? _j < _ref1 : _j > _ref1; i = start <= _ref1 ? ++_j : --_j) {
11772
+ chr = data.charAt(i);
11773
+ if (chr === Byte.NULL) {
11774
+ break;
11775
+ }
11776
+ body += chr;
11777
+ }
11778
+ }
11779
+ return new Frame(command, headers, body);
11780
+ };
11781
+
11782
+ Frame.unmarshall = function (datas) {
11783
+ var data;
11784
+ return function () {
11785
+ var _i, _len, _ref, _results;
11786
+ _ref = datas.split(RegExp("" + Byte.NULL + Byte.LF + "*"));
11787
+ _results = [];
11788
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
11789
+ data = _ref[_i];
11790
+ if ((data != null ? data.length : void 0) > 0) {
11791
+ _results.push(unmarshallSingle(data));
11792
+ }
11793
+ }
11794
+ return _results;
11795
+ }();
11796
+ };
11736
11797
 
11737
- /**
11738
- * Creates a heartbeat message.
11739
- * @constructor
11740
- */
11741
- messages.control.Heartbeat = function () {
11742
- this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
11798
+ Frame.marshall = function (command, headers, body) {
11799
+ var frame;
11800
+ frame = new Frame(command, headers, body);
11801
+ return frame.toString() + Byte.NULL;
11802
+ };
11743
11803
 
11744
- /**
11745
- * Timestamp when heartbeat was generated.
11746
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
11747
- * for connections with QITCH format - {@link JSBI.BigInt}
11748
- */
11749
- this.timestamp = null;
11750
- };
11751
- messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
11752
- /**
11753
- * Creates a stats message.
11754
- * @constructor
11755
- */
11756
- messages.control.StatsMessage = function () {
11757
- this.init(messages.MessageTypeNames.ctrl.STATS);
11758
- };
11759
- messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
11804
+ return Frame;
11805
+ }();
11760
11806
 
11761
- /**
11762
- * Creates a subscribe message.
11763
- * @constructor
11764
- */
11765
- messages.control.SubscribeMessage = function () {
11766
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
11807
+ Client = function () {
11808
+ var now;
11767
11809
 
11768
- /**
11769
- * The action the server will taken when receiving this message.
11770
- * @type {string}
11771
- * @see exports.messages.control.Action
11772
- */
11773
- this.action = null;
11810
+ function Client(ws) {
11811
+ this.ws = ws;
11812
+ this.ws.binaryType = "arraybuffer";
11813
+ this.counter = 0;
11814
+ this.connected = false;
11815
+ this.heartbeat = {
11816
+ outgoing: 10000,
11817
+ incoming: 10000
11818
+ };
11819
+ this.maxWebSocketFrameSize = 16 * 1024;
11820
+ this.subscriptions = {};
11821
+ }
11774
11822
 
11775
- /**
11776
- * List of ticker symbols to subscribe/un-subscribe for.
11777
- * @type {Array.<string>}
11778
- */
11779
- this.symbols = [];
11823
+ Client.prototype.debug = function (message) {
11824
+ var _ref;
11825
+ return typeof window !== "undefined" && window !== null ? (_ref = window.console) != null ? _ref.log(message) : void 0 : void 0;
11826
+ };
11780
11827
 
11781
- /**
11782
- * List of streaming message types to subscribe each ticker symbol for.
11783
- * @type {Array.<string>}
11784
- * @see exports.messages.control.MarketdataType
11785
- */
11786
- this.types = [];
11828
+ now = function now() {
11829
+ if (Date.now) {
11830
+ return Date.now();
11831
+ } else {
11832
+ return new Date().valueOf;
11833
+ }
11834
+ };
11787
11835
 
11788
- /**
11789
- * Requested message mime-type format.
11790
- * @type {string}
11791
- * @see exports.messages.MimeTypes
11792
- */
11793
- this.mimetype = null;
11836
+ Client.prototype._transmit = function (command, headers, body) {
11837
+ var out;
11838
+ out = Frame.marshall(command, headers, body);
11839
+ if (typeof this.debug === "function") {
11840
+ this.debug(">>> " + out);
11841
+ }
11842
+ while (true) {
11843
+ if (out.length > this.maxWebSocketFrameSize) {
11844
+ this.ws.send(out.substring(0, this.maxWebSocketFrameSize));
11845
+ out = out.substring(this.maxWebSocketFrameSize);
11846
+ if (typeof this.debug === "function") {
11847
+ this.debug("remaining = " + out.length);
11848
+ }
11849
+ } else {
11850
+ return this.ws.send(out);
11851
+ }
11852
+ }
11853
+ };
11794
11854
 
11795
- /**
11796
- * Requested conflation. Null indicates using the default conflation.
11797
- * @type {int}
11798
- */
11799
- this.conflation = null;
11800
- };
11801
- messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
11855
+ Client.prototype._setupHeartbeat = function (headers) {
11856
+ var serverIncoming, serverOutgoing, ttl, v, _ref, _ref1;
11857
+ if ((_ref = headers.version) !== Stomp.VERSIONS.V1_1 && _ref !== Stomp.VERSIONS.V1_2) {
11858
+ return;
11859
+ }
11860
+ _ref1 = function () {
11861
+ var _i, _len, _ref1, _results;
11862
+ _ref1 = headers['heart-beat'].split(",");
11863
+ _results = [];
11864
+ for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
11865
+ v = _ref1[_i];
11866
+ _results.push(parseInt(v));
11867
+ }
11868
+ return _results;
11869
+ }(), serverOutgoing = _ref1[0], serverIncoming = _ref1[1];
11870
+ if (!(this.heartbeat.outgoing === 0 || serverIncoming === 0)) {
11871
+ ttl = Math.max(this.heartbeat.outgoing, serverIncoming);
11872
+ if (typeof this.debug === "function") {
11873
+ this.debug("send PING every " + ttl + "ms");
11874
+ }
11875
+ this.pinger = Stomp.setInterval(ttl, function (_this) {
11876
+ return function () {
11877
+ _this.ws.send(Byte.LF);
11878
+ return typeof _this.debug === "function" ? _this.debug(">>> PING") : void 0;
11879
+ };
11880
+ }(this));
11881
+ }
11882
+ if (!(this.heartbeat.incoming === 0 || serverOutgoing === 0)) {
11883
+ ttl = Math.max(this.heartbeat.incoming, serverOutgoing);
11884
+ if (typeof this.debug === "function") {
11885
+ this.debug("check PONG every " + ttl + "ms");
11886
+ }
11887
+ return this.ponger = Stomp.setInterval(ttl, function (_this) {
11888
+ return function () {
11889
+ var delta;
11890
+ delta = now() - _this.serverActivity;
11891
+ if (delta > ttl * 2) {
11892
+ if (typeof _this.debug === "function") {
11893
+ _this.debug("did not receive server activity for the last " + delta + "ms");
11894
+ }
11895
+ return _this.ws.close();
11896
+ }
11897
+ };
11898
+ }(this));
11899
+ }
11900
+ };
11802
11901
 
11803
- /**
11804
- * Creates an exchange subscribe message.
11805
- * @constructor
11806
- */
11807
- messages.control.ExchangeSubscribeMessage = function () {
11808
- this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
11902
+ Client.prototype._parseConnect = function () {
11903
+ var args, connectCallback, errorCallback, headers;
11904
+ args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
11905
+ headers = {};
11906
+ switch (args.length) {
11907
+ case 2:
11908
+ headers = args[0], connectCallback = args[1];
11909
+ break;
11910
+ case 3:
11911
+ if (args[1] instanceof Function) {
11912
+ headers = args[0], connectCallback = args[1], errorCallback = args[2];
11913
+ } else {
11914
+ headers.login = args[0], headers.passcode = args[1], connectCallback = args[2];
11915
+ }
11916
+ break;
11917
+ case 4:
11918
+ headers.login = args[0], headers.passcode = args[1], connectCallback = args[2], errorCallback = args[3];
11919
+ break;
11920
+ default:
11921
+ headers.login = args[0], headers.passcode = args[1], connectCallback = args[2], errorCallback = args[3], headers.host = args[4];
11922
+ }
11923
+ return [headers, connectCallback, errorCallback];
11924
+ };
11925
+
11926
+ Client.prototype.connect = function () {
11927
+ var args, errorCallback, headers, out;
11928
+ args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
11929
+ out = this._parseConnect.apply(this, args);
11930
+ headers = out[0], this.connectCallback = out[1], errorCallback = out[2];
11931
+ if (typeof this.debug === "function") {
11932
+ this.debug("Opening Web Socket...");
11933
+ }
11934
+ this.ws.onmessage = function (_this) {
11935
+ return function (evt) {
11936
+ var arr, c, client, data, frame, messageID, onreceive, subscription, _i, _len, _ref, _results;
11937
+ data = typeof ArrayBuffer !== 'undefined' && evt.data instanceof ArrayBuffer ? (arr = new Uint8Array(evt.data), typeof _this.debug === "function" ? _this.debug("--- got data length: " + arr.length) : void 0, function () {
11938
+ var _i, _len, _results;
11939
+ _results = [];
11940
+ for (_i = 0, _len = arr.length; _i < _len; _i++) {
11941
+ c = arr[_i];
11942
+ _results.push(String.fromCharCode(c));
11943
+ }
11944
+ return _results;
11945
+ }().join('')) : evt.data;
11946
+ _this.serverActivity = now();
11947
+ if (data === Byte.LF) {
11948
+ if (typeof _this.debug === "function") {
11949
+ _this.debug("<<< PONG");
11950
+ }
11951
+ return;
11952
+ }
11953
+ if (typeof _this.debug === "function") {
11954
+ _this.debug("<<< " + data);
11955
+ }
11956
+ _ref = Frame.unmarshall(data);
11957
+ _results = [];
11958
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
11959
+ frame = _ref[_i];
11960
+ switch (frame.command) {
11961
+ case "CONNECTED":
11962
+ if (typeof _this.debug === "function") {
11963
+ _this.debug("connected to server " + frame.headers.server);
11964
+ }
11965
+ _this.connected = true;
11966
+ _this._setupHeartbeat(frame.headers);
11967
+ _results.push(typeof _this.connectCallback === "function" ? _this.connectCallback(frame) : void 0);
11968
+ break;
11969
+ case "MESSAGE":
11970
+ subscription = frame.headers.subscription;
11971
+ onreceive = _this.subscriptions[subscription] || _this.onreceive;
11972
+ if (onreceive) {
11973
+ client = _this;
11974
+ messageID = frame.headers["message-id"];
11975
+ frame.ack = function (headers) {
11976
+ if (headers == null) {
11977
+ headers = {};
11978
+ }
11979
+ return client.ack(messageID, subscription, headers);
11980
+ };
11981
+ frame.nack = function (headers) {
11982
+ if (headers == null) {
11983
+ headers = {};
11984
+ }
11985
+ return client.nack(messageID, subscription, headers);
11986
+ };
11987
+ _results.push(onreceive(frame));
11988
+ } else {
11989
+ _results.push(typeof _this.debug === "function" ? _this.debug("Unhandled received MESSAGE: " + frame) : void 0);
11990
+ }
11991
+ break;
11992
+ case "RECEIPT":
11993
+ _results.push(typeof _this.onreceipt === "function" ? _this.onreceipt(frame) : void 0);
11994
+ break;
11995
+ case "ERROR":
11996
+ _results.push(typeof errorCallback === "function" ? errorCallback(frame) : void 0);
11997
+ break;
11998
+ default:
11999
+ _results.push(typeof _this.debug === "function" ? _this.debug("Unhandled frame: " + frame) : void 0);
12000
+ }
12001
+ }
12002
+ return _results;
12003
+ };
12004
+ }(this);
12005
+ this.ws.onclose = function (_this) {
12006
+ return function () {
12007
+ var msg;
12008
+ msg = "Whoops! Lost connection to " + _this.ws.url;
12009
+ if (typeof _this.debug === "function") {
12010
+ _this.debug(msg);
12011
+ }
12012
+ _this._cleanUp();
12013
+ return typeof errorCallback === "function" ? errorCallback(msg) : void 0;
12014
+ };
12015
+ }(this);
12016
+ return this.ws.onopen = function (_this) {
12017
+ return function () {
12018
+ if (typeof _this.debug === "function") {
12019
+ _this.debug('Web Socket Opened...');
12020
+ }
12021
+ headers["accept-version"] = Stomp.VERSIONS.supportedVersions();
12022
+ headers["heart-beat"] = [_this.heartbeat.outgoing, _this.heartbeat.incoming].join(',');
12023
+ return _this._transmit("CONNECT", headers);
12024
+ };
12025
+ }(this);
12026
+ };
12027
+
12028
+ Client.prototype.disconnect = function (disconnectCallback, headers) {
12029
+ if (headers == null) {
12030
+ headers = {};
12031
+ }
12032
+ this._transmit("DISCONNECT", headers);
12033
+ this.ws.onclose = null;
12034
+ this.ws.close();
12035
+ this._cleanUp();
12036
+ return typeof disconnectCallback === "function" ? disconnectCallback() : void 0;
12037
+ };
12038
+
12039
+ Client.prototype._cleanUp = function () {
12040
+ this.connected = false;
12041
+ if (this.pinger) {
12042
+ Stomp.clearInterval(this.pinger);
12043
+ }
12044
+ if (this.ponger) {
12045
+ return Stomp.clearInterval(this.ponger);
12046
+ }
12047
+ };
12048
+
12049
+ Client.prototype.send = function (destination, headers, body) {
12050
+ if (headers == null) {
12051
+ headers = {};
12052
+ }
12053
+ if (body == null) {
12054
+ body = '';
12055
+ }
12056
+ headers.destination = destination;
12057
+ return this._transmit("SEND", headers, body);
12058
+ };
12059
+
12060
+ Client.prototype.subscribe = function (destination, callback, headers) {
12061
+ var client;
12062
+ if (headers == null) {
12063
+ headers = {};
12064
+ }
12065
+ if (!headers.id) {
12066
+ headers.id = "sub-" + this.counter++;
12067
+ }
12068
+ headers.destination = destination;
12069
+ this.subscriptions[headers.id] = callback;
12070
+ this._transmit("SUBSCRIBE", headers);
12071
+ client = this;
12072
+ return {
12073
+ id: headers.id,
12074
+ unsubscribe: function unsubscribe() {
12075
+ return client.unsubscribe(headers.id);
12076
+ }
12077
+ };
12078
+ };
12079
+
12080
+ Client.prototype.unsubscribe = function (id) {
12081
+ delete this.subscriptions[id];
12082
+ return this._transmit("UNSUBSCRIBE", {
12083
+ id: id
12084
+ });
12085
+ };
12086
+
12087
+ Client.prototype.begin = function (transaction) {
12088
+ var client, txid;
12089
+ txid = transaction || "tx-" + this.counter++;
12090
+ this._transmit("BEGIN", {
12091
+ transaction: txid
12092
+ });
12093
+ client = this;
12094
+ return {
12095
+ id: txid,
12096
+ commit: function commit() {
12097
+ return client.commit(txid);
12098
+ },
12099
+ abort: function abort() {
12100
+ return client.abort(txid);
12101
+ }
12102
+ };
12103
+ };
12104
+
12105
+ Client.prototype.commit = function (transaction) {
12106
+ return this._transmit("COMMIT", {
12107
+ transaction: transaction
12108
+ });
12109
+ };
12110
+
12111
+ Client.prototype.abort = function (transaction) {
12112
+ return this._transmit("ABORT", {
12113
+ transaction: transaction
12114
+ });
12115
+ };
12116
+
12117
+ Client.prototype.ack = function (messageID, subscription, headers) {
12118
+ if (headers == null) {
12119
+ headers = {};
12120
+ }
12121
+ headers["message-id"] = messageID;
12122
+ headers.subscription = subscription;
12123
+ return this._transmit("ACK", headers);
12124
+ };
12125
+
12126
+ Client.prototype.nack = function (messageID, subscription, headers) {
12127
+ if (headers == null) {
12128
+ headers = {};
12129
+ }
12130
+ headers["message-id"] = messageID;
12131
+ headers.subscription = subscription;
12132
+ return this._transmit("NACK", headers);
12133
+ };
12134
+
12135
+ return Client;
12136
+ }();
12137
+
12138
+ Stomp = {
12139
+ VERSIONS: {
12140
+ V1_0: '1.0',
12141
+ V1_1: '1.1',
12142
+ V1_2: '1.2',
12143
+ supportedVersions: function supportedVersions() {
12144
+ return '1.1,1.0';
12145
+ }
12146
+ },
12147
+ client: function client(url, protocols) {
12148
+ var klass, ws;
12149
+ if (protocols == null) {
12150
+ protocols = ['v10.stomp', 'v11.stomp'];
12151
+ }
12152
+ klass = Stomp.WebSocketClass || WebSocket;
12153
+ ws = new klass(url, protocols);
12154
+ return new Client(ws);
12155
+ },
12156
+ over: function over(ws) {
12157
+ return new Client(ws);
12158
+ },
12159
+ Frame: Frame
12160
+ };
12161
+
12162
+ if (typeof exports !== "undefined" && exports !== null) {
12163
+ exports.Stomp = Stomp;
12164
+ }
12165
+
12166
+ if (typeof window !== "undefined" && window !== null) {
12167
+ Stomp.setInterval = function (interval, f) {
12168
+ return window.setInterval(f, interval);
12169
+ };
12170
+ Stomp.clearInterval = function (id) {
12171
+ return window.clearInterval(id);
12172
+ };
12173
+ window.Stomp = Stomp;
12174
+ } else if (!exports) {
12175
+ self.Stomp = Stomp;
12176
+ }
12177
+ }).call(undefined);
12178
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/stomp.js/lib/stomp.js","/lib/stomp.js/lib")
12179
+ },{"_process":119,"buffer":109,"timers":140}],93:[function(require,module,exports){
12180
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12181
+ "use strict";
12182
+
12183
+ exports.__esModule = true;
12184
+
12185
+ var _logging = require("../logging.js");
12186
+
12187
+ var _EventSupport = require("../EventSupport.js");
12188
+
12189
+ var _EventSupport2 = _interopRequireDefault(_EventSupport);
12190
+
12191
+ var _streamerEvents = require("../streamer-events.js");
12192
+
12193
+ var events = _interopRequireWildcard(_streamerEvents);
12194
+
12195
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
12196
+
12197
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12198
+
12199
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12200
+
12201
+ var StompConnection = function () {
12202
+ function StompConnection(createTransmitter, openSocket, log) {
12203
+ _classCallCheck(this, StompConnection);
12204
+
12205
+ this.openSocket = openSocket;
12206
+ this.createTransmitter = createTransmitter;
12207
+ this.log = (0, _logging.asLogger)(log);
12208
+ this.events = new _EventSupport2["default"](this);
12209
+ }
12210
+
12211
+ StompConnection.prototype.open = function open() {
12212
+ var _this = this;
12213
+
12214
+ var socketProxy = { // Late binding for socket
12215
+ send: function send(message) {
12216
+ return _this.socket.send(message);
12217
+ }
12218
+ };
12219
+
12220
+ this.transmitter = this.createTransmitter(socketProxy);
12221
+
12222
+ this.transmitter.on("message", function (message) {
12223
+ _this.events.fire("message", message);
12224
+ });
12225
+
12226
+ this.socket = this.openSocket(function (request) {
12227
+ _this.request = request;
12228
+ return {
12229
+ onMessage: function onMessage(response) {
12230
+ _this.transmitter.onMessage(response.body);
12231
+ }
12232
+
12233
+ };
12234
+ });
12235
+ };
12236
+
12237
+ StompConnection.prototype.close = function close() {
12238
+ if (this.socket) {
12239
+ try {
12240
+ this.socket.close();
12241
+ this.socket = null;
12242
+ } catch (err) {
12243
+ this.events.fire("error", events.error("Error closing", {
12244
+ reason: err.message,
12245
+ cause: err,
12246
+ code: -3
12247
+ }));
12248
+ }
12249
+ }
12250
+ };
12251
+
12252
+ StompConnection.prototype.send = function send(message) {
12253
+ try {
12254
+ this.transmitter.send(message);
12255
+ } catch (err) {
12256
+ this.events.fire("error", events.error("Error sending message", {
12257
+ reason: err.message,
12258
+ cause: err,
12259
+ code: -4
12260
+ }));
12261
+ }
12262
+ };
12263
+
12264
+ StompConnection.prototype.setServer = function setServer(server) {
12265
+ this.request['X-Stream-Instance'] = server;
12266
+ };
12267
+
12268
+ StompConnection.prototype.isClosed = function isClosed() {
12269
+ return this.socket == null;
12270
+ };
12271
+
12272
+ StompConnection.prototype.on = function on(event, callback) {
12273
+ return this.events.on(event, callback);
12274
+ };
12275
+
12276
+ return StompConnection;
12277
+ }();
12278
+
12279
+ exports["default"] = StompConnection;
12280
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/stomp/StompConnection.js","/lib/stomp")
12281
+ },{"../EventSupport.js":2,"../logging.js":16,"../streamer-events.js":97,"_process":119,"buffer":109,"timers":140}],94:[function(require,module,exports){
12282
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12283
+ "use strict";
12284
+
12285
+ exports.__esModule = true;
12286
+
12287
+ require("../polyfills.js");
12288
+
12289
+ var _streamerApi = require("../streamer-api.js");
12290
+
12291
+ var _streamerUtils = require("../streamer-utils.js");
12292
+
12293
+ var _logging = require("../logging.js");
12294
+
12295
+ var _utils = require("../utils.js");
12296
+
12297
+ var _UShortId = require("../UShortId.js");
12298
+
12299
+ var _UShortId2 = _interopRequireDefault(_UShortId);
12300
+
12301
+ var _EventSupport = require("../EventSupport.js");
12302
+
12303
+ var _EventSupport2 = _interopRequireDefault(_EventSupport);
12304
+
12305
+ var _formatting = require("../formatting.js");
12306
+
12307
+ var _streamerEvents = require("../streamer-events.js");
12308
+
12309
+ var events = _interopRequireWildcard(_streamerEvents);
12310
+
12311
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
12312
+
12313
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12314
+
12315
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12316
+
12317
+ var CONSOLIDATED_SYMBOL_ENTITLEMENTS_COEFFICIENT = 14;
12318
+ var CONSOLIDATED_SYMBOL_SUFFIX = ":CC";
12319
+
12320
+ var StompStream = function () {
12321
+ function StompStream(streamingService, format, log) {
12322
+ var _this = this;
12323
+
12324
+ _classCallCheck(this, StompStream);
12325
+
12326
+ this.events = new _EventSupport2["default"]();
12327
+ this.streamingService = streamingService;
12328
+ this.format = format;
12329
+ this.log = (0, _logging.asLogger)(log);
12330
+
12331
+ this.conn = streamingService.createStompConnection();
12332
+
12333
+ this.conn.on("message", function (msg) {
12334
+ _this._handlejsonmsg(msg);
12335
+ }).on("close", function (msg) {
12336
+ _this.doClose(msg);
12337
+ }).on("error", function (err) {
12338
+ if (_this.pendingConnection) {
12339
+ _this.pendingConnection(err);
12340
+ }
12341
+ _this.events.fire("error", err);
12342
+ });
12343
+
12344
+ this.requestid = new _UShortId2["default"]();
12345
+
12346
+ this.pendingsubscriptions = {};
12347
+ this.pendingUnsubscriptions = {};
12348
+ this.pendingExchangeSubscriptions = {};
12349
+ this.pendingExchangeUnsubscriptions = {};
12350
+ this.pendingNewsSubscriptions = {};
12351
+ this.pendingNewsUnsubscriptions = {};
12352
+ this.pendingAlertSubscription = {};
12353
+ this.pendingTradeSubscription = {};
12354
+
12355
+ this.on("error", function (err) {
12356
+ _this.log.warn(err);
12357
+ });
12358
+ }
12359
+
12360
+ StompStream.prototype.openStomp = function openStomp(callback) {
12361
+ try {
12362
+ this.pendingConnection = callback;
12363
+ this.conn.open();
12364
+ } catch (err) {
12365
+ if (callback) {
12366
+ callback(err);
12367
+ }
12368
+ }
12369
+ };
12370
+
12371
+ StompStream.prototype.on = function on(event, listener) {
12372
+ return this.events.on(event, listener);
12373
+ };
12374
+
12375
+ StompStream.prototype.subscribe = function subscribe(symbols, types, optsOrCallback, callbackOrNothing) {
12376
+ var _this2 = this;
12377
+
12378
+ symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
12379
+ return s.toUpperCase();
12380
+ });
12381
+ types = Array.isArray(types) ? types : [types].map(function (s) {
12382
+ return s.toUpperCase();
12383
+ });
12384
+
12385
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12386
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12387
+
12388
+ if (this.isClosed()) {
12389
+ var event = events.error("Stream is disconnected", {
12390
+ code: -1,
12391
+ reason: "Already disconnected"
12392
+ });
12393
+ this.events.fire("error", event);
12394
+ if (callback) {
12395
+ callback(event);
12396
+ }
12397
+ return;
12398
+ }
12399
+
12400
+ var subscription = {
12401
+ ids: [],
12402
+ types: types,
12403
+ mimetype: this.format,
12404
+ callback: callback,
12405
+ result: {
12406
+ subscribed: [],
12407
+ rejected: [],
12408
+ unentitled: [],
12409
+ invalidSymbols: []
12410
+ }
12411
+ };
12412
+
12413
+ if (symbols.length === 0 || types.length === 0) {
12414
+ callback(null, subscription.result);
12415
+ return;
12416
+ }
12417
+
12418
+ var requests = this._prepareSubscriptionRequests(symbols, subscription, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
12419
+ requests.forEach(function (request) {
12420
+ var id = _this2.requestid.next();
12421
+ subscription.ids.push(id);
12422
+ _this2.pendingsubscriptions[id] = subscription;
12423
+ request.id = id;
12424
+
12425
+ _this2.send(request);
12426
+ });
12427
+ };
12428
+
12429
+ StompStream.prototype.subscribeExchange = function subscribeExchange(exchanges, optsOrCallback, callbackOrNothing) {
12430
+ var _this3 = this;
12431
+
12432
+ exchanges = (Array.isArray(exchanges) ? exchanges : [exchanges]).map(function (e) {
12433
+ return e.toUpperCase();
12434
+ });
12435
+
12436
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12437
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12438
+
12439
+ if (this.isClosed()) {
12440
+ var event = events.error("Stream is disconnected", {
12441
+ code: -1,
12442
+ reason: "Already disconnected"
12443
+ });
12444
+ this.events.fire("error", event);
12445
+ if (callback) {
12446
+ callback(event);
12447
+ }
12448
+ return;
12449
+ }
12450
+
12451
+ var exchangeSub = {
12452
+ callback: callback,
12453
+ mimetype: this.format,
12454
+ id: [],
12455
+ result: {
12456
+ subscribed: [],
12457
+ rejected: []
12458
+ }
12459
+ };
12460
+ //check for empty string
12461
+ if (exchanges.length === 0) {
12462
+ callback(null, exchangeSub.result);
12463
+ }
12464
+
12465
+ var requests = this.prepareExchangeSubscriptionRequest(exchanges, exchangeSub, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
12466
+
12467
+ requests.forEach(function (request) {
12468
+ var id = _this3.requestid.next();
12469
+ exchangeSub.id.push(id);
12470
+ exchangeSub.exchange = request.exchange;
12471
+ exchangeSub.conflation = request.conflation;
12472
+ _this3.pendingExchangeSubscriptions[id] = exchangeSub;
12473
+ request.id = id;
12474
+ _this3.send(request);
12475
+ });
12476
+ };
12477
+
12478
+ StompStream.prototype.subscribeNews = function subscribeNews(newsFilters, optsOrCallback, callbackOrNothing) {
12479
+
12480
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12481
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12482
+
12483
+ if (this.isClosed()) {
12484
+ var event = events.error("Stream is disconnected", {
12485
+ code: -1,
12486
+ reason: "Already disconnected"
12487
+ });
12488
+ this.events.fire("error", event);
12489
+ if (callback) {
12490
+ callback(event);
12491
+ }
12492
+ return;
12493
+ }
12494
+
12495
+ var newsSub = {
12496
+ callback: callback,
12497
+ mimetype: this.format,
12498
+ id: [],
12499
+ result: {
12500
+ newsFilters: [],
12501
+ rejectedNewsFilters: [],
12502
+ unentitledNewsFilters: []
12503
+ }
12504
+ };
12505
+ //check for empty filters
12506
+ if (newsFilters.length === 0) {
12507
+ callback(null, newsSub.result);
12508
+ }
12509
+ var request = this.buildNewsSubscribeRequest(newsFilters, newsSub, _streamerApi.messages.control.Action.SUBSCRIBE, opts);
12510
+
12511
+ var id = this.requestid.next();
12512
+ this.pendingNewsSubscriptions[id] = newsSub;
12513
+
12514
+ request.id = id;
12515
+
12516
+ this.send(request);
12517
+ };
12518
+
12519
+ StompStream.prototype.subUnsubAlerts = function subUnsubAlerts(operation, optsOrCallback, callbackOrNothing) {
12520
+
12521
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12522
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12523
+
12524
+ if (this.isClosed()) {
12525
+ var event = events.error("Stream is disconnected", {
12526
+ code: -1,
12527
+ reason: "Already disconnected"
12528
+ });
12529
+ this.events.fire("error", event);
12530
+ return;
12531
+ }
12532
+
12533
+ var subscription = {
12534
+ id: [],
12535
+ mimetype: this.format,
12536
+ callback: callback,
12537
+ result: {
12538
+ operation: ""
12539
+ }
12540
+ };
12541
+
12542
+ var request = this.buildAlertsSubUnsubRequest(operation, subscription);
12543
+ var id = this.requestid.next();
12544
+ subscription.id.push(id);
12545
+ this.pendingAlertSubscription[id] = subscription;
12546
+ request.id = id;
12547
+
12548
+ this.send(request);
12549
+ };
12550
+
12551
+ StompStream.prototype.subscribeTrade = function subscribeTrade(operation, optsOrCallback, callbackOrNothing) {
12552
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12553
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12554
+
12555
+ if (this.isClosed()) {
12556
+ var event = events.error("Stream is disconnected", {
12557
+ code: -1,
12558
+ reason: "Already disconnected"
12559
+ });
12560
+ this.events.fire("error", event);
12561
+ return;
12562
+ }
12563
+
12564
+ var tradeSub = {
12565
+ id: [],
12566
+ mimetype: this.format,
12567
+ callback: callback,
12568
+ result: {
12569
+ operation: ""
12570
+ }
12571
+ };
12572
+
12573
+ var request = this.buildTradeSubscribeRequest(operation, tradeSub);
12574
+ var id = this.requestid.next();
12575
+ tradeSub.id.push(id);
12576
+ this.pendingTradeSubscription[id] = tradeSub;
12577
+ request.id = id;
12578
+
12579
+ this.send(request);
12580
+ };
12581
+
12582
+ StompStream.prototype.getSessionStats = function getSessionStats() {
12583
+ if (this.isClosed()) {
12584
+ var event = events.error("Stream is disconnected", {
12585
+ code: -1,
12586
+ reason: "Already disconnected"
12587
+ });
12588
+ this.events.fire("error", event);
12589
+ return;
12590
+ }
12591
+ var msg = new _streamerApi.messages.control.StatsMessage();
12592
+ this.send(msg);
12593
+ };
12594
+
12595
+ StompStream.prototype.cmdFilterRefreshNews = function cmdFilterRefreshNews(callbackOrNothing) {
12596
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12597
+
12598
+ if (this.isClosed()) {
12599
+ var event = events.error("Stream is disconnected", {
12600
+ code: -1,
12601
+ reason: "Already disconnected"
12602
+ });
12603
+ this.events.fire("error", event);
12604
+ if (callback) {
12605
+ callback(event);
12606
+ }
12607
+ return;
12608
+ }
12609
+
12610
+ var newsCmdFilterRefresh = {
12611
+ callback: callback,
12612
+ mimetype: this.format
12613
+ };
12614
+
12615
+ var request = this.buildNewsCommandRequest(newsCmdFilterRefresh, 'NEWSCMDFILTERREFRESH');
12616
+ this.send(request);
12617
+ };
12618
+
12619
+ StompStream.prototype.cmdFilterNews = function cmdFilterNews(callbackOrNothing) {
12620
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12621
+
12622
+ if (this.isClosed()) {
12623
+ var event = events.error("Stream is disconnected", {
12624
+ code: -1,
12625
+ reason: "Already disconnected"
12626
+ });
12627
+ this.events.fire("error", event);
12628
+ if (callback) {
12629
+ callback(event);
12630
+ }
12631
+ return;
12632
+ }
12633
+
12634
+ var newsCmdFilter = {
12635
+ callback: callback,
12636
+ mimetype: this.format
12637
+ };
12638
+
12639
+ var request = this.buildNewsCommandRequest(newsCmdFilter, 'NEWSCMDFILTER');
12640
+ this.send(request);
12641
+ };
12642
+
12643
+ StompStream.prototype.unsubscribe = function unsubscribe(symbols, types, optsOrCallback, callbackOrNothing) {
12644
+ var _this4 = this;
12645
+
12646
+ symbols = (Array.isArray(symbols) ? symbols : [symbols]).map(function (s) {
12647
+ return s.toUpperCase();
12648
+ });
12649
+ types = Array.isArray(types) ? types : [types].map(function (s) {
12650
+ return s.toUpperCase();
12651
+ });
12652
+
12653
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12654
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12655
+
12656
+ if (this.isClosed()) {
12657
+ var event = events.error("Stream is disconnected", {
12658
+ code: -1,
12659
+ reason: "Already disconnected"
12660
+ });
12661
+ this.events.fire("error", event);
12662
+ if (callback) {
12663
+ callback(event);
12664
+ }
12665
+ return;
12666
+ }
12667
+
12668
+ var unsubscription = {
12669
+ ids: [],
12670
+ types: types,
12671
+ mimetype: this.format,
12672
+ callback: callback,
12673
+ result: {
12674
+ unsubscribed: []
12675
+ }
12676
+ };
12677
+
12678
+ if (symbols.length === 0 || types.length === 0) {
12679
+ if (callback) {
12680
+ callback(null, unsubscription.result);
12681
+ }
12682
+ }
12683
+
12684
+ var requests = this._prepareSubscriptionRequests(symbols, unsubscription, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
12685
+ requests.forEach(function (request) {
12686
+ var id = _this4.requestid.next();
12687
+ unsubscription.ids.push(id);
12688
+ _this4.pendingUnsubscriptions[id] = unsubscription;
12689
+ request.id = id;
12690
+
12691
+ _this4.send(request);
12692
+ });
12693
+ };
12694
+
12695
+ StompStream.prototype.unsubscribeExchange = function unsubscribeExchange(exchanges, optsOrCallback, callbackOrNothing) {
12696
+ var _this5 = this;
12697
+
12698
+ exchanges = (Array.isArray(exchanges) ? exchanges : [exchanges]).map(function (e) {
12699
+ return e.toUpperCase();
12700
+ });
12701
+
12702
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12703
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12704
+
12705
+ if (this.isClosed()) {
12706
+ var event = events.error("Stream is disconnected", {
12707
+ code: -1,
12708
+ reason: "Already disconnected"
12709
+ });
12710
+ this.events.fire("error", event);
12711
+ if (callback) {
12712
+ callback(event);
12713
+ }
12714
+ return;
12715
+ }
12716
+
12717
+ var exchangeSub = {
12718
+ callback: callback,
12719
+ mimetype: this.format,
12720
+ id: [],
12721
+ result: {
12722
+ subscribed: [],
12723
+ rejected: []
12724
+ }
12725
+ };
12726
+ //check for empty string
12727
+ if (exchanges.length === 0) {
12728
+ callback(null, exchangeSub.result);
12729
+ }
12730
+
12731
+ var requests = this.prepareExchangeSubscriptionRequest(exchanges, exchangeSub, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
12732
+
12733
+ requests.forEach(function (request) {
12734
+ var id = _this5.requestid.next();
12735
+ exchangeSub.id.push(id);
12736
+ exchangeSub.exchange = request.exchange;
12737
+ exchangeSub.conflation = request.conflation;
12738
+ _this5.pendingExchangeUnsubscriptions[id] = exchangeSub;
12739
+ request.id = id;
12740
+ _this5.send(request);
12741
+ });
12742
+ };
12743
+
12744
+ StompStream.prototype.unsubscribeNews = function unsubscribeNews(newsFilters, optsOrCallback, callbackOrNothing) {
12745
+ newsFilters = Array.isArray(newsFilters) ? newsFilters : [newsFilters];
12746
+
12747
+ var opts = optsOrCallback && typeof optsOrCallback !== "function" ? optsOrCallback : null;
12748
+ var callback = callbackOrNothing ? callbackOrNothing : optsOrCallback && typeof optsOrCallback === "function" ? optsOrCallback : null;
12749
+
12750
+ if (this.isClosed()) {
12751
+ var event = events.error("Stream is disconnected", {
12752
+ code: -1,
12753
+ reason: "Already disconnected"
12754
+ });
12755
+ this.events.fire("error", event);
12756
+ if (callback) {
12757
+ callback(event);
12758
+ }
12759
+ return;
12760
+ }
12761
+
12762
+ var unsubscription = {
12763
+ callback: callback,
12764
+ mimetype: this.format,
12765
+ id: [],
12766
+ result: {
12767
+ unsubscribed: []
12768
+ }
12769
+ };
12770
+
12771
+ if (newsFilters.length === 0) {
12772
+ if (callback) {
12773
+ callback(null, unsubscription.result);
12774
+ }
12775
+ }
12776
+
12777
+ var request = this.buildNewsSubscribeRequest(newsFilters, unsubscription, _streamerApi.messages.control.Action.UNSUBSCRIBE, opts);
12778
+
12779
+ var id = this.requestid.next();
12780
+ unsubscription.id.push(id);
12781
+ this.pendingNewsUnsubscriptions[id] = unsubscription;
12782
+ request.id = id;
12783
+
12784
+ this.send(request);
12785
+ };
12786
+
12787
+ StompStream.prototype._handlejsonmsg = function _handlejsonmsg(msg) {
12788
+ if ((0, _streamerUtils.iscontrolmessage)(msg)) {
12789
+ this.handlectrlmsg(msg);
12790
+ } else if ((0, _streamerUtils.isdatamessage)(msg)) {
12791
+ this._handledatamsg(msg);
12792
+ } else {
12793
+ this.events.fire("error", msg);
12794
+ }
12795
+ };
12796
+
12797
+ StompStream.prototype._prepareSubscriptionRequests = function _prepareSubscriptionRequests(symbols, subscription, action, opts) {
12798
+ var currentApproximateNumberOfEntitlements = 0;
12799
+ var lastAddedSymbolIndex = -1;
12800
+ var numberOfSymbols = symbols.length;
12801
+ var isOrderbookSubscription = subscription.types.includes("ORDERBOOK");
12802
+ var requests = [];
12803
+ for (var i = 0; i < numberOfSymbols; i++) {
12804
+ currentApproximateNumberOfEntitlements = this._getUpdatedNumberOfEntitlements(subscription.types.length, currentApproximateNumberOfEntitlements, symbols[i], isOrderbookSubscription);
12805
+ if (currentApproximateNumberOfEntitlements >= this.maxEntitlementsPerSubscription || i === numberOfSymbols - 1) {
12806
+ requests.push(this._buildRequest(symbols.slice(lastAddedSymbolIndex + 1, i + 1), subscription, action, opts));
12807
+ lastAddedSymbolIndex = i;
12808
+ currentApproximateNumberOfEntitlements = 0;
12809
+ }
12810
+ }
12811
+ return requests;
12812
+ };
12813
+
12814
+ StompStream.prototype._buildRequest = function _buildRequest(symbols, sub, action, opts) {
12815
+ var msg = new _streamerApi.messages.control.SubscribeMessage();
12816
+ msg.action = action;
12817
+ msg.symbols = symbols;
12818
+ msg.types = sub.types;
12819
+ msg.mimetype = sub.mimetype;
12820
+ if (opts && opts.skipHeavyInitialLoad) {
12821
+ msg.skipHeavyInitialLoad = true;
12822
+ }
12823
+ if (opts) {
12824
+ msg.conflation = opts.conflation;
12825
+ }
12826
+ return msg;
12827
+ };
12828
+
12829
+ StompStream.prototype.prepareExchangeSubscriptionRequest = function prepareExchangeSubscriptionRequest(exchanges, exchangeSub, action, opts) {
12830
+ var requests = [];
12831
+ var numberOfExchanges = exchanges.length;
12832
+ for (var i = 0; i < numberOfExchanges; i++) {
12833
+ requests.push(this.buildExchangeRequest(exchanges[i], exchangeSub, action, opts));
12834
+ }
12835
+ return requests;
12836
+ };
12837
+
12838
+ StompStream.prototype.buildExchangeRequest = function buildExchangeRequest(exchange, sub, action, opts) {
12839
+ var msg = new _streamerApi.messages.control.ExchangeSubscribeMessage();
12840
+ msg.action = action;
12841
+ msg.exchange = exchange;
12842
+ msg.mimetype = sub.mimetype;
12843
+ if (opts) {
12844
+ msg.conflation = opts.conflation;
12845
+ }
12846
+ return msg;
12847
+ };
12848
+
12849
+ StompStream.prototype.buildNewsSubscribeRequest = function buildNewsSubscribeRequest(newsFilters, sub, action, opts) {
12850
+ var msg = new _streamerApi.messages.control.NewsSubscribeMessage();
12851
+ msg.action = action;
12852
+ msg.newsFilters = newsFilters;
12853
+ msg.mimetype = sub.mimetype;
12854
+ if (opts && opts.skipHeavyInitialLoad) {
12855
+ msg.skipHeavyInitialLoad = opts.skipHeavyInitialLoad;
12856
+ }
12857
+ return msg;
12858
+ };
12859
+
12860
+ StompStream.prototype.buildAlertsSubUnsubRequest = function buildAlertsSubUnsubRequest(opr, subscription) {
12861
+ var msg = new _streamerApi.messages.control.AlertsSubUnsubMessage();
12862
+ msg.operation = opr;
12863
+ msg.mimetype = subscription.mimetype;
12864
+ return msg;
12865
+ };
12866
+
12867
+ StompStream.prototype.buildTradeSubscribeRequest = function buildTradeSubscribeRequest(operation, sub) {
12868
+ var msg = new _streamerApi.messages.control.TradeSubscribeMessage();
12869
+ msg.operation = operation;
12870
+ msg.mimetype = sub.mimetype;
12871
+ return msg;
12872
+ };
12873
+
12874
+ StompStream.prototype.buildNewsCommandRequest = function buildNewsCommandRequest(sub, newsAction) {
12875
+ var msg = new _streamerApi.messages.control.NewsCommandMessage();
12876
+ msg.newsAction = newsAction;
12877
+ msg.mimetype = sub.mimetype;
12878
+ return msg;
12879
+ };
12880
+
12881
+ StompStream.prototype._getUpdatedNumberOfEntitlements = function _getUpdatedNumberOfEntitlements(numberOfSubscriptionTypes, currentApproximateNumberOfEntitlements, symbol, isSubscribeToOrderbook) {
12882
+ var result = currentApproximateNumberOfEntitlements;
12883
+ if (isSubscribeToOrderbook && symbol.endsWith(CONSOLIDATED_SYMBOL_SUFFIX)) {
12884
+ result += CONSOLIDATED_SYMBOL_ENTITLEMENTS_COEFFICIENT * numberOfSubscriptionTypes;
12885
+ } else {
12886
+ result += numberOfSubscriptionTypes;
12887
+ }
12888
+ return result;
12889
+ };
12890
+
12891
+ StompStream.prototype.handlectrlmsg = function handlectrlmsg(msg) {
12892
+ this.log.debug(_formatting.msgfmt.fmt(msg));
12893
+ var _type = (0, _streamerUtils.messagetype)(msg);
12894
+ switch (_type) {
12895
+ case _streamerApi.messages.MessageTypeNames.ctrl.HEARTBEAT:
12896
+ this.onHeartbeat(msg);
12897
+ break;
12898
+ case _streamerApi.messages.MessageTypeNames.ctrl.SUBSCRIBE_RESPONSE:
12899
+ this.onSubscribeResponse(msg);
12900
+ break;
12901
+ case _streamerApi.messages.MessageTypeNames.ctrl.EXCHANGE_RESPONSE:
12902
+ this.onExchangeSubscribeResponse(msg);
12903
+ break;
12904
+ case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_SUBSCRIBE_RESPONSE:
12905
+ this.onNewsSubscribeResponse(msg);
12906
+ break;
12907
+ case _streamerApi.messages.MessageTypeNames.ctrl.ALERTS_SUBUNSUB_RESPONSE:
12908
+ this.onAlertsSubUnsubResponse(msg);
12909
+ break;
12910
+ case _streamerApi.messages.MessageTypeNames.ctrl.TRADE_SUBSCRIBE_RESPONSE:
12911
+ this.onTradeSubscribeResponse(msg);
12912
+ break;
12913
+ case _streamerApi.messages.MessageTypeNames.ctrl.UNSUBSCRIBE_RESPONSE:
12914
+ this.onUnsubscribeResponse(msg);
12915
+ break;
12916
+ case _streamerApi.messages.MessageTypeNames.ctrl.EXCHANGE_UNSUBSCRIBE_RESPONSE:
12917
+ this.onExchangeUnsubscribeResponse(msg);
12918
+ break;
12919
+ case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_UNSUBSCRIBE_RESPONSE:
12920
+ this.onNewsUnsubscribeResponse(msg);
12921
+ break;
12922
+ case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_REFRESH_RESPONSE:
12923
+ this.onNewsCmdFilterRefreshResponse(msg);
12924
+ break;
12925
+ case _streamerApi.messages.MessageTypeNames.ctrl.NEWS_CMD_FILTER_RESPONSE:
12926
+ this.onNewsCmdFilterResponse(msg);
12927
+ break;
12928
+ case _streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE:
12929
+ this.onConnectResponse(msg);
12930
+ break;
12931
+ case _streamerApi.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE:
12932
+ this.onConnectionClose(msg);
12933
+ break;
12934
+ case _streamerApi.messages.MessageTypeNames.ctrl.SLOW_CONNECTION:
12935
+ this.onSlowConnection(msg);
12936
+ break;
12937
+ case _streamerApi.messages.MessageTypeNames.ctrl.STATS_RESPONSE:
12938
+ this.onStatsResponse(msg);
12939
+ break;
12940
+ case _streamerApi.messages.MessageTypeNames.ctrl.INITIAL_DATA_SENT:
12941
+ this.onInitialDataSent(msg);
12942
+ break;
12943
+ case _streamerApi.messages.MessageTypeNames.ctrl.RESUBSCRIBE_MESSAGE:
12944
+ this.onResubscribeMessage(msg);
12945
+ break;
12946
+ case _streamerApi.messages.MessageTypeNames.ctrl.OPEN_FLOW:
12947
+ this.onOpenFlow(msg);
12948
+ break;
12949
+ }
12950
+ };
12951
+
12952
+ StompStream.prototype.onHeartbeat = function onHeartbeat(msg) {};
12953
+
12954
+ StompStream.prototype.onSubscribeResponse = function onSubscribeResponse(msg) {
12955
+ var subscription = this.pendingsubscriptions[msg.__id];
12956
+ var callback = subscription.callback;
12957
+
12958
+ (0, _utils.removeFromArray)(subscription.ids, msg.__id);
12959
+ delete this.pendingsubscriptions[msg.__id];
12960
+
12961
+ if (msg.code != 200 && !subscription.failed) {
12962
+ subscription.failed = true;
12963
+ var event = events.error("Error subscribing", {
12964
+ code: msg.code,
12965
+ reason: msg.reason
12966
+ });
12967
+ this.events.fire("error", event);
12968
+ if (callback) {
12969
+ subscription.callback(event);
12970
+ }
12971
+ return;
12972
+ }
12973
+
12974
+ var result = subscription.result;
12975
+
12976
+ if (msg.entitlements) {
12977
+ for (var _iterator = msg.entitlements, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
12978
+ var _ref;
12979
+
12980
+ if (_isArray) {
12981
+ if (_i >= _iterator.length) break;
12982
+ _ref = _iterator[_i++];
12983
+ } else {
12984
+ _i = _iterator.next();
12985
+ if (_i.done) break;
12986
+ _ref = _i.value;
12987
+ }
12988
+
12989
+ var key = _ref;
12990
+ var _key = key,
12991
+ symbol = _key.symbol,
12992
+ marketdatatype = _key.marketdatatype,
12993
+ entitlement = _key.entitlement;
12994
+
12995
+ key = { symbol: symbol, type: marketdatatype };
12996
+ if (entitlement !== 'NA') {
12997
+ this.log.debug('SUBSCRIBED <' + symbol + ', ' + marketdatatype + '>');
12998
+ key.entitlement = entitlement;
12999
+ result.subscribed.push(key);
13000
+ } else {
13001
+ this.log.warn('NOT ENTITLED <' + symbol + ',' + marketdatatype + '>');
13002
+ result.unentitled.push(key);
13003
+ }
13004
+ }
13005
+ }
13006
+ if (msg.rejectedSymbols) {
13007
+ for (var _iterator2 = msg.rejectedSymbols, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
13008
+ var _ref2;
13009
+
13010
+ if (_isArray2) {
13011
+ if (_i2 >= _iterator2.length) break;
13012
+ _ref2 = _iterator2[_i2++];
13013
+ } else {
13014
+ _i2 = _iterator2.next();
13015
+ if (_i2.done) break;
13016
+ _ref2 = _i2.value;
13017
+ }
13018
+
13019
+ var symbol = _ref2;
13020
+
13021
+ this.log.warn('REJECTED ' + symbol);
13022
+ result.rejected.push(symbol);
13023
+ }
13024
+ }
13025
+ if (msg.invalidSymbols) {
13026
+ for (var _iterator3 = msg.invalidSymbols, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
13027
+ var _result$invalidSymbol;
13028
+
13029
+ var _ref3;
13030
+
13031
+ if (_isArray3) {
13032
+ if (_i3 >= _iterator3.length) break;
13033
+ _ref3 = _iterator3[_i3++];
13034
+ } else {
13035
+ _i3 = _iterator3.next();
13036
+ if (_i3.done) break;
13037
+ _ref3 = _i3.value;
13038
+ }
13039
+
13040
+ var _symbol2 = _ref3;
13041
+
13042
+ this.log.warn('INVALID SYMBOL ' + _symbol2);
13043
+ (_result$invalidSymbol = result.invalidSymbols).push.apply(_result$invalidSymbol, msg.invalidSymbols);
13044
+ }
13045
+ }
13046
+
13047
+ if (subscription.ids.length === 0 && !subscription.failed) {
13048
+ if (callback) {
13049
+ callback(null, subscription.result);
13050
+ }
13051
+ }
13052
+ };
13053
+
13054
+ StompStream.prototype.onExchangeSubscribeResponse = function onExchangeSubscribeResponse(msg) {
13055
+ var exchangeSub = this.pendingExchangeSubscriptions[msg.__id];
13056
+ var callback = exchangeSub.callback;
13057
+
13058
+ (0, _utils.removeFromArray)(exchangeSub.id, msg.__id);
13059
+ delete this.pendingExchangeSubscriptions[msg.__id];
13060
+
13061
+ console.log(msg);
13062
+ if (msg.code != 200) {
13063
+ var event = events.error("Error subscribing", {
13064
+ code: msg.code,
13065
+ reason: msg.reason
13066
+ });
13067
+ this.events.fire("error", event);
13068
+ if (callback) {
13069
+ exchangeSub.callback(event);
13070
+ }
13071
+ return;
13072
+ }
13073
+ if (exchangeSub.id.length === 0) {
13074
+ if (callback) {
13075
+ callback(null, exchangeSub);
13076
+ }
13077
+ }
13078
+ };
13079
+
13080
+ StompStream.prototype.onNewsSubscribeResponse = function onNewsSubscribeResponse(msg) {
13081
+ var newsSub = this.pendingNewsSubscriptions[msg.__id];
13082
+ var callback = newsSub.callback;
13083
+
13084
+ (0, _utils.removeFromArray)(newsSub.id, msg.__id);
13085
+ delete this.pendingNewsSubscriptions[msg.__id];
13086
+
13087
+ var result = newsSub.result;
13088
+
13089
+ console.log(msg);
13090
+ if (msg.code != 200) {
13091
+ var event = events.error("Error subscribing to news", {
13092
+ code: msg.code,
13093
+ reason: msg.reason
13094
+ });
13095
+ this.events.fire("error", event);
13096
+ if (callback) {
13097
+ newsSub.callback(event);
13098
+ }
13099
+ return;
13100
+ }
13101
+ if (msg.newsFilters) {
13102
+ for (var _iterator4 = msg.newsFilters, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
13103
+ var _ref4;
13104
+
13105
+ if (_isArray4) {
13106
+ if (_i4 >= _iterator4.length) break;
13107
+ _ref4 = _iterator4[_i4++];
13108
+ } else {
13109
+ _i4 = _iterator4.next();
13110
+ if (_i4.done) break;
13111
+ _ref4 = _i4.value;
13112
+ }
13113
+
13114
+ var newsFilter = _ref4;
13115
+
13116
+ result.newsFilters.push(newsFilter);
13117
+ }
13118
+ }
13119
+ if (msg.rejectedNewsFilters) {
13120
+ for (var _iterator5 = msg.rejectedNewsFilters, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
13121
+ var _ref5;
13122
+
13123
+ if (_isArray5) {
13124
+ if (_i5 >= _iterator5.length) break;
13125
+ _ref5 = _iterator5[_i5++];
13126
+ } else {
13127
+ _i5 = _iterator5.next();
13128
+ if (_i5.done) break;
13129
+ _ref5 = _i5.value;
13130
+ }
13131
+
13132
+ var rejectedFilter = _ref5;
13133
+
13134
+ result.rejectedNewsFilters.push(rejectedFilter);
13135
+ }
13136
+ }
13137
+ if (msg.unentitledNewsFilters) {
13138
+ for (var _iterator6 = msg.unentitledNewsFilters, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
13139
+ var _ref6;
13140
+
13141
+ if (_isArray6) {
13142
+ if (_i6 >= _iterator6.length) break;
13143
+ _ref6 = _iterator6[_i6++];
13144
+ } else {
13145
+ _i6 = _iterator6.next();
13146
+ if (_i6.done) break;
13147
+ _ref6 = _i6.value;
13148
+ }
13149
+
13150
+ var unentitledFilter = _ref6;
13151
+
13152
+ result.unentitledNewsFilters.push(unentitledFilter);
13153
+ }
13154
+ }
13155
+
13156
+ if (newsSub.id.length === 0) {
13157
+ if (callback) {
13158
+ callback(null, newsSub.result);
13159
+ }
13160
+ }
13161
+ };
13162
+
13163
+ StompStream.prototype.onAlertsSubUnsubResponse = function onAlertsSubUnsubResponse(msg) {
13164
+ var alertsSub = this.pendingAlertSubscription[msg.__id];
13165
+ var callback = alertsSub.callback;
13166
+
13167
+ (0, _utils.removeFromArray)(alertsSub.id, msg.__id);
13168
+ delete this.pendingAlertSubscription[msg.__id];
13169
+
13170
+ console.log(msg);
13171
+ if (msg.code != 200 && !alertsSub.failed) {
13172
+ alertsSub.failed = true;
13173
+ var event = events.error("Error subscribing", {
13174
+ code: msg.code,
13175
+ reason: msg.reason
13176
+ });
13177
+ this.events.fire("error", event);
13178
+ if (callback) {
13179
+ alertsSub.callback(event);
13180
+ }
13181
+ return;
13182
+ }
13183
+
13184
+ var result = alertsSub.result;
13185
+
13186
+ if (msg.operation) {
13187
+ this.log.debug('Alerts ' + msg.operation);
13188
+ result.operation = msg.operation;
13189
+ }
13190
+
13191
+ if (alertsSub.id.length === 0) {
13192
+ if (callback) {
13193
+ callback(null, alertsSub.result);
13194
+ }
13195
+ }
13196
+ };
13197
+
13198
+ StompStream.prototype.onTradeSubscribeResponse = function onTradeSubscribeResponse(msg) {
13199
+ var tradeSub = this.pendingTradeSubscription[msg.__id];
13200
+ var callback = tradeSub.callback;
13201
+
13202
+ (0, _utils.removeFromArray)(tradeSub.id, msg.__id);
13203
+ delete this.pendingTradeSubscription[msg.__id];
13204
+
13205
+ console.log(msg);
13206
+ if (msg.code != 200 && !tradeSub.failed) {
13207
+ tradeSub.failed = true;
13208
+ var event = events.error("Error subscribing", {
13209
+ code: msg.code,
13210
+ reason: msg.reason
13211
+ });
13212
+ this.events.fire("error", event);
13213
+ if (callback) {
13214
+ tradeSub.callback(event);
13215
+ }
13216
+ return;
13217
+ }
13218
+
13219
+ var result = tradeSub.result;
13220
+
13221
+ if (msg.operation) {
13222
+ this.log.debug('Trade ' + msg.operation);
13223
+ result.operation = msg.operation;
13224
+ }
13225
+
13226
+ if (tradeSub.id.length === 0) {
13227
+ if (callback) {
13228
+ callback(null, tradeSub.result);
13229
+ }
13230
+ }
13231
+ };
13232
+
13233
+ StompStream.prototype.onNewsUnsubscribeResponse = function onNewsUnsubscribeResponse(msg) {
13234
+ var newsUnsub = this.pendingNewsUnsubscriptions[msg.__id];
13235
+ var callback = newsUnsub.callback;
13236
+
13237
+ (0, _utils.removeFromArray)(newsUnsub.id, msg.__id);
13238
+ delete this.pendingNewsUnsubscriptions[msg.__id];
13239
+
13240
+ console.log("msg", msg);
13241
+ var result = newsUnsub.result;
13242
+
13243
+ if (msg.code != 200 && !newsUnsub.failed) {
13244
+ newsUnsub.failed = true;
13245
+ var event = events.error("Error unsubscribing to news", {
13246
+ code: msg.code,
13247
+ reason: msg.reason
13248
+ });
13249
+ this.events.fire("error", event);
13250
+ if (callback) {
13251
+ newsUnsub.callback(event);
13252
+ }
13253
+ return;
13254
+ }
13255
+
13256
+ if (msg.newsFilters) {
13257
+ for (var _iterator7 = msg.newsFilters, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
13258
+ var _ref7;
13259
+
13260
+ if (_isArray7) {
13261
+ if (_i7 >= _iterator7.length) break;
13262
+ _ref7 = _iterator7[_i7++];
13263
+ } else {
13264
+ _i7 = _iterator7.next();
13265
+ if (_i7.done) break;
13266
+ _ref7 = _i7.value;
13267
+ }
13268
+
13269
+ var newsFilter = _ref7;
13270
+
13271
+ result.unsubscribed.push(newsFilter);
13272
+ }
13273
+ }
13274
+
13275
+ if (newsUnsub.id.length === 0) {
13276
+ if (callback) {
13277
+ callback(null, newsUnsub.result);
13278
+ }
13279
+ }
13280
+ };
13281
+
13282
+ StompStream.prototype.onNewsCmdFilterRefreshResponse = function onNewsCmdFilterRefreshResponse(msg) {
13283
+ console.log("msg", msg);
13284
+ if (msg.code != 200) {
13285
+ var event = events.error("Error Refreshing News Filters", {
13286
+ code: msg.code,
13287
+ reason: msg.reason
13288
+ });
13289
+ this.events.fire("error", event);
13290
+ return;
13291
+ }
13292
+
13293
+ this.events.fire("msg", msg);
13294
+ };
13295
+
13296
+ StompStream.prototype.onNewsCmdFilterResponse = function onNewsCmdFilterResponse(msg) {
13297
+ console.log("msg", msg);
13298
+ if (msg.code != 200) {
13299
+ var event = events.error("Error Getting News Filters Status", {
13300
+ code: msg.code,
13301
+ reason: msg.reason
13302
+ });
13303
+ this.events.fire("error", event);
13304
+ return;
13305
+ }
13306
+
13307
+ this.events.fire("filter status", msg);
13308
+ };
13309
+
13310
+ StompStream.prototype.onUnsubscribeResponse = function onUnsubscribeResponse(msg) {
13311
+ var unsubscription = this.pendingUnsubscriptions[msg.__id];
13312
+ var callback = unsubscription.callback;
13313
+
13314
+ (0, _utils.removeFromArray)(unsubscription.ids, msg.__id);
13315
+ delete this.pendingUnsubscriptions[msg.__id];
13316
+
13317
+ if (msg.code != 200 && !unsubscription.failed) {
13318
+ unsubscription.failed = true;
13319
+ var event = events.error("Error unsubscribing", {
13320
+ code: msg.code,
13321
+ reason: msg.reason
13322
+ });
13323
+ this.events.fire("error", event);
13324
+ if (callback) {
13325
+ callback(event);
13326
+ }
13327
+ return;
13328
+ }
13329
+
13330
+ for (var index = 0; index < msg.unsubscribed.length; ++index) {
13331
+ var result = unsubscription.result;
13332
+
13333
+ var unsubscribe = msg.unsubscribed[index];
13334
+ var _symbol = unsubscribe.symbol;
13335
+ var _datatype = unsubscribe.marketdatatype;
13336
+ this.log.debug('UNSUBSCRIBED <' + _symbol + ', ' + _datatype + '>');
13337
+ result.unsubscribed.push({ symbol: _symbol, type: _datatype });
13338
+ }
13339
+
13340
+ if (unsubscription.ids.length === 0 && !unsubscription.failed) {
13341
+ if (callback) {
13342
+ callback(null, unsubscription.result);
13343
+ }
13344
+ }
13345
+ };
13346
+
13347
+ StompStream.prototype.onExchangeUnsubscribeResponse = function onExchangeUnsubscribeResponse(msg) {
13348
+ var exchangeSub = this.pendingExchangeUnsubscriptions[msg.__id];
13349
+ var callback = exchangeSub.callback;
13350
+
13351
+ (0, _utils.removeFromArray)(exchangeSub.id, msg.__id);
13352
+ delete this.pendingExchangeUnsubscriptions[msg.__id];
13353
+
13354
+ console.log(msg);
13355
+ if (msg.code != 200) {
13356
+ var event = events.error("Error unsubscribing", {
13357
+ code: msg.code,
13358
+ reason: msg.reason
13359
+ });
13360
+ this.events.fire("error", event);
13361
+ if (callback) {
13362
+ exchangeSub.callback(event);
13363
+ }
13364
+ return;
13365
+ }
13366
+ if (exchangeSub.id.length === 0) {
13367
+ if (callback) {
13368
+ callback(null, exchangeSub);
13369
+ }
13370
+ }
13371
+ };
13372
+
13373
+ StompStream.prototype.onConnectResponse = function onConnectResponse(msg) {
13374
+ if (msg.code != 200) {
13375
+ var event = events.error("Connection failed", {
13376
+ code: msg.code,
13377
+ reason: msg.reason
13378
+ });
13379
+ this.events.fire("error", event);
13380
+ if (this.pendingConnection) {
13381
+ this.pendingConnection(event);
13382
+ }
13383
+ this.doClose(event);
13384
+ return;
13385
+ }
13386
+
13387
+ this._serverversion = msg.version;
13388
+ this.maxEntitlementsPerSubscription = msg.maxEntitlementsPerSubscription;
13389
+ if (this.isClosed()) {
13390
+ var _event = events.error("Connection was already closed", {
13391
+ code: -1,
13392
+ reason: "Already disconnected"
13393
+ });
13394
+ this.events.fire("error", _event);
13395
+ if (this.pendingConnection) {
13396
+ this.pendingConnection(_event);
13397
+ }
13398
+ return;
13399
+ }
13400
+ this.conn.setServer(msg.serverInstance);
13401
+ if (this.pendingConnection) {
13402
+ this.pendingConnection(null, this);
13403
+ }
13404
+ };
13405
+
13406
+ StompStream.prototype.onConnectionClose = function onConnectionClose(msg) {
13407
+ this.doClose(events.close({
13408
+ reason: msg.reason,
13409
+ code: msg.code
13410
+ }));
13411
+ };
13412
+
13413
+ StompStream.prototype.onSlowConnection = function onSlowConnection(msg) {
13414
+ this.log.debug(_formatting.msgfmt.fmt(msg));
13415
+ this.events.fire("slow", msg);
13416
+ };
13417
+
13418
+ StompStream.prototype.onStatsResponse = function onStatsResponse(msg) {
13419
+ if (msg.code != 200) {
13420
+ var event = events.error("Error getting stats", {
13421
+ code: msg.code,
13422
+ reason: msg.reason
13423
+ });
13424
+ this.events.fire("error", event);
13425
+ return;
13426
+ }
13427
+ ;
13428
+ this.events.fire("stats", msg);
13429
+ };
13430
+
13431
+ StompStream.prototype.onInitialDataSent = function onInitialDataSent(msg) {
13432
+ this.log.debug(_formatting.msgfmt.fmt(msg));
13433
+ this.events.fire("initialDataSent", msg);
13434
+ };
13435
+
13436
+ StompStream.prototype.onResubscribeMessage = function onResubscribeMessage(msg) {
13437
+ this.log.debug(_formatting.msgfmt.fmt(msg));
13438
+ this.events.fire("resubscribeMessage", msg);
13439
+ };
13440
+
13441
+ StompStream.prototype.onOpenFlow = function onOpenFlow(msg) {
13442
+ this.conn.send(msg);
13443
+ };
13444
+
13445
+ StompStream.prototype._handledatamsg = function _handledatamsg(msg) {
13446
+ this.events.fire("message", msg);
13447
+ };
13448
+
13449
+ StompStream.prototype.send = function send(msg) {
13450
+ if (this.conn) {
13451
+ this.conn.send(msg);
13452
+ }
13453
+ };
13454
+
13455
+ StompStream.prototype.doClose = function doClose(msg) {
13456
+ if (!this.isClosed()) {
13457
+ var conn = this.conn;
13458
+ this.conn = null;
13459
+ this.events.fire("close", msg);
13460
+ conn.close();
13461
+ }
13462
+ };
13463
+
13464
+ StompStream.prototype.close = function close(callback) {
13465
+ this.doClose(events.close({
13466
+ reason: "Manually closed",
13467
+ code: 200
13468
+ }));
13469
+ if (callback) {
13470
+ callback();
13471
+ }
13472
+ };
13473
+
13474
+ StompStream.prototype.isClosed = function isClosed() {
13475
+ return this.conn == null;
13476
+ };
13477
+
13478
+ return StompStream;
13479
+ }();
13480
+
13481
+ exports["default"] = StompStream;
13482
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/stomp/StompStream.js","/lib/stomp")
13483
+ },{"../EventSupport.js":2,"../UShortId.js":9,"../formatting.js":13,"../logging.js":16,"../polyfills.js":18,"../streamer-api.js":96,"../streamer-events.js":97,"../streamer-utils.js":98,"../utils.js":103,"_process":119,"buffer":109,"timers":140}],95:[function(require,module,exports){
13484
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13485
+ "use strict";
13486
+
13487
+ exports.__esModule = true;
13488
+
13489
+ require("../polyfills.js");
13490
+
13491
+ var _logging = require("../logging.js");
13492
+
13493
+ var _streamerApi = require("../streamer-api.js");
13494
+
13495
+ var _message = require("../message.js");
13496
+
13497
+ var _JsonStompTransmitter = require("../transmission/JsonStompTransmitter.js");
13498
+
13499
+ var _JsonStompTransmitter2 = _interopRequireDefault(_JsonStompTransmitter);
13500
+
13501
+ var _StompConnection = require("./StompConnection.js");
13502
+
13503
+ var _StompConnection2 = _interopRequireDefault(_StompConnection);
13504
+
13505
+ var _StompStream = require("./StompStream.js");
13506
+
13507
+ var _StompStream2 = _interopRequireDefault(_StompStream);
13508
+
13509
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13510
+
13511
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13512
+
13513
+ var STREAMURLS = {
13514
+ "ping": "/ping/v1",
13515
+ "version": "/version/v1",
13516
+ "streamStomp": "/stream/connect"
13517
+ };
13518
+
13519
+ var StompStreamingService = function () {
13520
+ function StompStreamingService(http, stompJs, log, config) {
13521
+ var _this = this;
13522
+
13523
+ _classCallCheck(this, StompStreamingService);
13524
+
13525
+ this.http = http;
13526
+ this.stompJs = stompJs;
13527
+ this.log = (0, _logging.asLogger)(log);
13528
+ this.config = config || {};
13529
+
13530
+ this.format = this.config.format;
13531
+ if (this.config.format === 'application/json') {
13532
+ this.createTransmitter = function (socket) {
13533
+ return new _JsonStompTransmitter2["default"](socket, _this.log);
13534
+ };
13535
+ }
13536
+ }
13537
+
13538
+ StompStreamingService.prototype.openStompSocket = function openStompSocket(handlers) {
13539
+ var headers = {
13540
+ 'X-Stream-Version': _streamerApi.VERSION,
13541
+ 'X-Stream-Lib': _streamerApi.LIBRARY_NAME
13542
+ };
13543
+
13544
+ var _conflation = this.config.conflation;
13545
+ if (_conflation != null && _conflation !== '') {
13546
+ headers['X-Stream-Conflation'] = _conflation;
13547
+ }
13548
+
13549
+ var _rejectExcessiveConnection = this.config.rejectExcessiveConnection;
13550
+ if (_rejectExcessiveConnection != null && _rejectExcessiveConnection !== '') {
13551
+ headers['X-Stream-Reject'] = _rejectExcessiveConnection;
13552
+ }
13553
+
13554
+ if (this.config.format === 'application/json' || this.config.format === _message.MimeTypes.QITCH) {
13555
+ headers['X-Stream-Format'] = this.format;
13556
+ }
13557
+
13558
+ if (this.config.updatesOnly === 'true') {
13559
+ headers['X-Stream-UpdatesOnly'] = true;
13560
+ }
13561
+
13562
+ Object.assign(headers, this.config.credentials.getHeaders());
13563
+
13564
+ var url = this.config.url + STREAMURLS.streamStomp;
13565
+ var stompClient = this.stompJs.Stomp.client(url);
13566
+
13567
+ var authMessage = new _streamerApi.messages.control.AuthenticationMessage();
13568
+ if (this.config.credentials.sid !== undefined) {
13569
+ authMessage.authenticationMethod = "sid";
13570
+ authMessage.authorization = this.config.credentials.sid;
13571
+ } else if (this.config.credentials.wmid !== undefined && this.config.credentials.token !== undefined) {
13572
+ authMessage.authenticationMethod = "enterprise";
13573
+ authMessage.authorization = this.config.credentials.token;
13574
+ } else if (this.config.credentials.wmid !== undefined) {
13575
+ authMessage.authenticationMethod = "wmid";
13576
+ authMessage.authorization = this.config.credentials.wmid;
13577
+ } else if (this.config.credentials.data_token !== undefined) {
13578
+ authMessage.authenticationMethod = "datatool";
13579
+ authMessage.authorization = this.config.credentials.data_token;
13580
+ }
13581
+
13582
+ if (this.config.conflation != null && this.config.conflation !== "") {
13583
+ authMessage.conflation = this.config.conflation;
13584
+ }
13585
+
13586
+ if (this.config.rejectExcessiveConnection != null && this.config.rejectExcessiveConnection !== "") {
13587
+ authMessage.rejectExcessiveConnection = this.config.rejectExcessiveConnection;
13588
+ }
13589
+
13590
+ stompClient.connect({}, function (frame) {
13591
+ stompClient.subscribe('/user/queue/messages', function (responseMessage) {
13592
+ handlers(headers).onMessage(responseMessage);
13593
+ });
13594
+
13595
+ stompClient.send("/stream/subscribe", headers, JSON.stringify(authMessage));
13596
+ });
13597
+
13598
+ return {
13599
+ send: function send(msg) {
13600
+ stompClient.send("/stream/subscribe", headers, msg);
13601
+ },
13602
+ close: function close() {
13603
+ stompClient.disconnect();
13604
+ }
13605
+ };
13606
+ };
13607
+
13608
+ StompStreamingService.prototype.createStompConnection = function createStompConnection() {
13609
+ var _this2 = this;
13610
+
13611
+ return new _StompConnection2["default"](function (socket) {
13612
+ return _this2.createTransmitter(socket);
13613
+ }, function (handlers) {
13614
+ return _this2.openStompSocket(handlers);
13615
+ }, this.logger);
13616
+ };
13617
+
13618
+ StompStreamingService.prototype.openStompStream = function openStompStream(callback) {
13619
+ var stompStream = new _StompStream2["default"](this, this.format, this.log);
13620
+ stompStream.openStomp(callback);
13621
+ };
13622
+
13623
+ StompStreamingService.prototype.ping = function ping(callback) {
13624
+ this.http({
13625
+ url: this.config.host + STREAMURLS.ping,
13626
+ success: function success(result) {
13627
+ return callback(null, result);
13628
+ },
13629
+ type: "GET",
13630
+ failure: callback
13631
+ });
13632
+ };
13633
+
13634
+ StompStreamingService.prototype.getVersion = function getVersion(callback) {
13635
+ this.http({
13636
+ url: this.config.host + STREAMURLS.version,
13637
+ success: function success(result) {
13638
+ return callback(null, result);
13639
+ },
13640
+ type: "GET",
13641
+ failure: callback
13642
+ });
13643
+ };
13644
+
13645
+ return StompStreamingService;
13646
+ }();
13647
+
13648
+ exports["default"] = StompStreamingService;
13649
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/stomp/StompStreamingService.js","/lib/stomp")
13650
+ },{"../logging.js":16,"../message.js":17,"../polyfills.js":18,"../streamer-api.js":96,"../transmission/JsonStompTransmitter.js":99,"./StompConnection.js":93,"./StompStream.js":94,"_process":119,"buffer":109,"timers":140}],96:[function(require,module,exports){
13651
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13652
+ "use strict";
13653
+
13654
+ exports.__esModule = true;
13655
+ /* @see http://usejsdoc.org */
13656
+
13657
+ /**
13658
+ * Streamer api namespace.
13659
+ * @namespace
13660
+ */
13661
+
13662
+ var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
13663
+ var VERSION = exports.VERSION = "2.27.0";
13664
+
13665
+ /**
13666
+ * Streamer message api namespace.
13667
+ * @namespace
13668
+ */
13669
+ var messages = exports.messages = {};
13670
+
13671
+ /**
13672
+ * Streamer control message namespace. * @namespace
13673
+ */
13674
+ messages.control = {};
13675
+
13676
+ /**
13677
+ * Streamer market data message namespace.
13678
+ * @namespace
13679
+ */
13680
+ messages.market = {};
13681
+
13682
+ /* ****************************************************************************************************************** */
13683
+
13684
+ /**
13685
+ *
13686
+ * @type {string}
13687
+ */
13688
+ messages.JSON_TYPE_PROPERTY = '@T';
13689
+
13690
+ /**
13691
+ * Message type identifiers.<br>
13692
+ * Ensure identifiers are unique within this name space.
13693
+ * @namespace
13694
+ */
13695
+ messages.MessageTypeNames = {
13696
+ /**
13697
+ * Name space for control message type identifiers.
13698
+ * @namespace
13699
+ */
13700
+ ctrl: {
13701
+ HEARTBEAT: 'C1',
13702
+ SUBSCRIBE: 'C2',
13703
+ SUBSCRIBE_RESPONSE: 'C3',
13704
+ UNSUBSCRIBE_RESPONSE: 'C4',
13705
+ CONNECT_RESPONSE: 'C5',
13706
+ CONNECTION_CLOSE: 'C6',
13707
+ FLOW: 'C7',
13708
+ SLOW_CONNECTION: 'C8',
13709
+ INITIAL_DATA_SENT: 'C9',
13710
+ RESUBSCRIBE_MESSAGE: 'C10',
13711
+ STATS: 'C12',
13712
+ STATS_RESPONSE: 'C13',
13713
+ EXCHANGE_SUBSCRIBE: 'C14',
13714
+ EXCHANGE_RESPONSE: 'C15',
13715
+ EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
13716
+ NEWS_SUBSCRIBE: 'C17',
13717
+ NEWS_SUBSCRIBE_RESPONSE: 'C18',
13718
+ ALERTS_SUBUNSUB: 'C19',
13719
+ ALERTS_SUBUNSUB_RESPONSE: 'C20',
13720
+ TRADE_SUBSCRIBE: 'C21',
13721
+ TRADE_SUBSCRIBE_RESPONSE: 'C22',
13722
+ NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
13723
+ NEWS_COMMAND: 'C24',
13724
+ NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
13725
+ NEWS_CMD_FILTER_RESPONSE: 'C26',
13726
+ AUTHENTICATION: 'C27',
13727
+ OPEN_FLOW: 'C28'
13728
+ },
13729
+ /**
13730
+ * Name space for data message type identifiers.<br>
13731
+ * Prefix with 'D'.
13732
+ * @namespace
13733
+ */
13734
+ data: {
13735
+ QUOTE: 'D1',
13736
+ PRICEDATA: 'D2',
13737
+ TRADE: 'D3',
13738
+ BOOKORDER: 'D4',
13739
+ BOOKDELETE: 'D5',
13740
+ PURGEBOOK: 'D6',
13741
+ MMQUOTE: 'D7',
13742
+ INTERVAL: 'D8',
13743
+ NETHOUSEPOSITION: 'D9',
13744
+ SYMBOLINFO: 'D10',
13745
+ SYMBOLSTATUS: 'D11',
13746
+ DERIVATIVEINFO: 'D12',
13747
+ LASTSALE: 'D13',
13748
+ LIMITUPLIMITDOWN: 'D14',
13749
+ IVGREEKS: 'D15',
13750
+ IMBALANCESTATUS: 'D16',
13751
+ ALERT: 'D17',
13752
+ NEWS: 'D18',
13753
+ TRADENOTIFICATION: 'D19',
13754
+ NEWSCMDFILTER: 'D20',
13755
+ NEWSERROR: 'D21'
13756
+ }
13757
+ };
13758
+
13759
+ /**
13760
+ * Super type of all exports.
13761
+ * @abstract
13762
+ * @constructor
13763
+ */
13764
+ messages.Message = function () {};
13765
+
13766
+ messages.Message.prototype.init = function (typeid) {
13767
+ this[messages.JSON_TYPE_PROPERTY] = typeid;
13768
+ };
13769
+
13770
+ /* ****************************************************************************************************************** */
13771
+
13772
+ /**
13773
+ * Creates a control message base object.
13774
+ * @abstract
13775
+ * @constructor
13776
+ */
13777
+ messages.control.CtrlMessage = function () {};
13778
+ messages.control.CtrlMessage.prototype = new messages.Message();
13779
+
13780
+ /**
13781
+ * Creates a heartbeat message.
13782
+ * @constructor
13783
+ */
13784
+ messages.control.Heartbeat = function () {
13785
+ this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
13786
+
13787
+ /**
13788
+ * Timestamp when heartbeat was generated.
13789
+ * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
13790
+ * for connections with QITCH format - {@link JSBI.BigInt}
13791
+ */
13792
+ this.timestamp = null;
13793
+ };
13794
+ messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
13795
+ /**
13796
+ * Creates a stats message.
13797
+ * @constructor
13798
+ */
13799
+ messages.control.StatsMessage = function () {
13800
+ this.init(messages.MessageTypeNames.ctrl.STATS);
13801
+ };
13802
+ messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
13803
+
13804
+ /**
13805
+ * Creates a subscribe message.
13806
+ * @constructor
13807
+ */
13808
+ messages.control.SubscribeMessage = function () {
13809
+ this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
13810
+
13811
+ /**
13812
+ * The action the server will taken when receiving this message.
13813
+ * @type {string}
13814
+ * @see exports.messages.control.Action
13815
+ */
13816
+ this.action = null;
13817
+
13818
+ /**
13819
+ * List of ticker symbols to subscribe/un-subscribe for.
13820
+ * @type {Array.<string>}
13821
+ */
13822
+ this.symbols = [];
13823
+
13824
+ /**
13825
+ * List of streaming message types to subscribe each ticker symbol for.
13826
+ * @type {Array.<string>}
13827
+ * @see exports.messages.control.MarketdataType
13828
+ */
13829
+ this.types = [];
13830
+
13831
+ /**
13832
+ * Requested message mime-type format.
13833
+ * @type {string}
13834
+ * @see exports.messages.MimeTypes
13835
+ */
13836
+ this.mimetype = null;
13837
+
13838
+ /**
13839
+ * Requested conflation. Null indicates using the default conflation.
13840
+ * @type {int}
13841
+ */
13842
+ this.conflation = null;
13843
+ };
13844
+ messages.control.SubscribeMessage.prototype = new messages.control.CtrlMessage();
13845
+
13846
+ /**
13847
+ * Creates an exchange subscribe message.
13848
+ * @constructor
13849
+ */
13850
+ messages.control.ExchangeSubscribeMessage = function () {
13851
+ this.init(messages.MessageTypeNames.ctrl.EXCHANGE_SUBSCRIBE);
11809
13852
 
11810
13853
  /**
11811
13854
  * The action the server will taken when receiving this message.
@@ -12159,6 +14202,39 @@ messages.control.FlowMessage = function () {
12159
14202
  };
12160
14203
  messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
12161
14204
 
14205
+ /**
14206
+ * Creates an Auth message for Stomp connection Auth verification.
14207
+ * @constructor
14208
+ */
14209
+ messages.control.AuthenticationMessage = function () {
14210
+ this.init(messages.MessageTypeNames.ctrl.AUTHENTICATION);
14211
+
14212
+ /**
14213
+ * Auth method.
14214
+ * @type {String}
14215
+ */
14216
+ this.authenticationMethod = null;
14217
+
14218
+ /**
14219
+ * Auth token.
14220
+ * @type {String}
14221
+ */
14222
+ this.authorization = null;
14223
+
14224
+ /**
14225
+ * Requested conflation. Null indicates using the default conflation.
14226
+ * @type {number}
14227
+ */
14228
+ this.conflation = 150;
14229
+
14230
+ /**
14231
+ *
14232
+ * @type {Boolean}
14233
+ */
14234
+ this.rejectExcessiveConnection = false;
14235
+ };
14236
+ messages.control.AuthenticationMessage.prototype = new messages.control.CtrlMessage();
14237
+
12162
14238
  /**
12163
14239
  * Creates a stats response message.
12164
14240
  * @constructor
@@ -12595,7 +14671,7 @@ messages.market.OrderChangeType = {
12595
14671
  'E': "EXECUTE"
12596
14672
  };
12597
14673
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/streamer-api.js","/lib")
12598
- },{"_process":114,"buffer":104,"timers":135}],93:[function(require,module,exports){
14674
+ },{"_process":119,"buffer":109,"timers":140}],97:[function(require,module,exports){
12599
14675
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12600
14676
  "use strict";
12601
14677
 
@@ -12649,7 +14725,7 @@ var close = exports.close = function close(moreArgs) {
12649
14725
  return event("close", moreArgs);
12650
14726
  };
12651
14727
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/streamer-events.js","/lib")
12652
- },{"./polyfills":18,"_process":114,"buffer":104,"timers":135}],94:[function(require,module,exports){
14728
+ },{"./polyfills":18,"_process":119,"buffer":109,"timers":140}],98:[function(require,module,exports){
12653
14729
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12654
14730
  'use strict';
12655
14731
 
@@ -12774,7 +14850,57 @@ var getMessageName = exports.getMessageName = function () {
12774
14850
  };
12775
14851
  }();
12776
14852
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/streamer-utils.js","/lib")
12777
- },{"./streamer-api.js":92,"_process":114,"buffer":104,"timers":135}],95:[function(require,module,exports){
14853
+ },{"./streamer-api.js":96,"_process":119,"buffer":109,"timers":140}],99:[function(require,module,exports){
14854
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
14855
+ "use strict";
14856
+
14857
+ exports.__esModule = true;
14858
+
14859
+ var _EventSupport = require("../EventSupport.js");
14860
+
14861
+ var _EventSupport2 = _interopRequireDefault(_EventSupport);
14862
+
14863
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14864
+
14865
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14866
+
14867
+ var JsonStompTransmitter = function () {
14868
+ function JsonStompTransmitter(socket, log) {
14869
+ _classCallCheck(this, JsonStompTransmitter);
14870
+
14871
+ this.socket = socket;
14872
+ this.log = log;
14873
+ this.events = new _EventSupport2["default"](this);
14874
+ }
14875
+
14876
+ JsonStompTransmitter.prototype.send = function send(msg, id) {
14877
+ this.socket.send(JSON.stringify(msg));
14878
+ };
14879
+
14880
+ JsonStompTransmitter.prototype.onMessage = function onMessage(msg) {
14881
+ var _jsonblock = null;
14882
+ try {
14883
+ _jsonblock = JSON.parse(msg);
14884
+ } catch (e) {
14885
+ this.log.error(e);
14886
+ return;
14887
+ }
14888
+
14889
+ var _jsonmsg = _jsonblock;
14890
+ _jsonmsg.__id = _jsonmsg['requestId'];
14891
+ this.events.fire("message", _jsonmsg);
14892
+ };
14893
+
14894
+ JsonStompTransmitter.prototype.on = function on(event, callback) {
14895
+ return this.events.on(event, callback);
14896
+ };
14897
+
14898
+ return JsonStompTransmitter;
14899
+ }();
14900
+
14901
+ exports["default"] = JsonStompTransmitter;
14902
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/transmission/JsonStompTransmitter.js","/lib/transmission")
14903
+ },{"../EventSupport.js":2,"_process":119,"buffer":109,"timers":140}],100:[function(require,module,exports){
12778
14904
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12779
14905
  "use strict";
12780
14906
 
@@ -12833,7 +14959,7 @@ var JsonTransmitter = function () {
12833
14959
 
12834
14960
  exports["default"] = JsonTransmitter;
12835
14961
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/transmission/JsonTransmitter.js","/lib/transmission")
12836
- },{"../EventSupport.js":2,"../message.js":17,"_process":114,"buffer":104,"timers":135}],96:[function(require,module,exports){
14962
+ },{"../EventSupport.js":2,"../message.js":17,"_process":119,"buffer":109,"timers":140}],101:[function(require,module,exports){
12837
14963
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12838
14964
  "use strict";
12839
14965
 
@@ -12957,7 +15083,7 @@ QitchTransmitter.prototype.DEFAULT_BUFFERSIZE = 4096;
12957
15083
 
12958
15084
  exports["default"] = QitchTransmitter;
12959
15085
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/transmission/QitchTransmitter.js","/lib/transmission")
12960
- },{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":98,"_process":114,"buffer":104,"timers":135}],97:[function(require,module,exports){
15086
+ },{"../EventSupport.js":2,"../SMessage":5,"../UShortId.js":9,"../message.js":17,"../qitch/LocateCodeInjector":23,"../qitch/decoder/QitchDecoder":41,"../qitch/encoder/QitchEncoder":67,"../utils":103,"_process":119,"buffer":109,"timers":140}],102:[function(require,module,exports){
12961
15087
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12962
15088
  "use strict";
12963
15089
 
@@ -13047,7 +15173,7 @@ var SMessageTransmitter = function () {
13047
15173
 
13048
15174
  exports["default"] = SMessageTransmitter;
13049
15175
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/transmission/SMessageTransmitter.js","/lib/transmission")
13050
- },{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,"_process":114,"buffer":104,"timers":135}],98:[function(require,module,exports){
15176
+ },{"../EventSupport.js":2,"../SMessage.js":5,"../UShortId.js":9,"../formatting.js":13,"../message.js":17,"_process":119,"buffer":109,"timers":140}],103:[function(require,module,exports){
13051
15177
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13052
15178
  "use strict";
13053
15179
 
@@ -13098,7 +15224,7 @@ var asciiStringToArrayBuffer = exports.asciiStringToArrayBuffer = function ascii
13098
15224
  return buf;
13099
15225
  };
13100
15226
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/lib/utils.js","/lib")
13101
- },{"_process":114,"buffer":104,"timers":135}],99:[function(require,module,exports){
15227
+ },{"_process":119,"buffer":109,"timers":140}],104:[function(require,module,exports){
13102
15228
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13103
15229
 
13104
15230
  module.exports = function equal(arr1, arr2) {
@@ -13111,7 +15237,7 @@ module.exports = function equal(arr1, arr2) {
13111
15237
  }
13112
15238
 
13113
15239
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/array-equal/index.js","/node_modules/array-equal")
13114
- },{"_process":114,"buffer":104,"timers":135}],100:[function(require,module,exports){
15240
+ },{"_process":119,"buffer":109,"timers":140}],105:[function(require,module,exports){
13115
15241
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13116
15242
  'use strict'
13117
15243
 
@@ -13266,7 +15392,7 @@ function fromByteArray (uint8) {
13266
15392
  }
13267
15393
 
13268
15394
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/base64-js/index.js","/node_modules/base64-js")
13269
- },{"_process":114,"buffer":104,"timers":135}],101:[function(require,module,exports){
15395
+ },{"_process":119,"buffer":109,"timers":140}],106:[function(require,module,exports){
13270
15396
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13271
15397
  ;(function (globalObject) {
13272
15398
  'use strict';
@@ -16172,15 +18298,15 @@ function fromByteArray (uint8) {
16172
18298
  })(this);
16173
18299
 
16174
18300
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/bignumber.js/bignumber.js","/node_modules/bignumber.js")
16175
- },{"_process":114,"buffer":104,"timers":135}],102:[function(require,module,exports){
18301
+ },{"_process":119,"buffer":109,"timers":140}],107:[function(require,module,exports){
16176
18302
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16177
18303
 
16178
18304
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/browser-resolve/empty.js","/node_modules/browser-resolve")
16179
- },{"_process":114,"buffer":104,"timers":135}],103:[function(require,module,exports){
18305
+ },{"_process":119,"buffer":109,"timers":140}],108:[function(require,module,exports){
16180
18306
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16181
18307
 
16182
18308
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/browserify/lib/_empty.js","/node_modules/browserify/lib")
16183
- },{"_process":114,"buffer":104,"timers":135}],104:[function(require,module,exports){
18309
+ },{"_process":119,"buffer":109,"timers":140}],109:[function(require,module,exports){
16184
18310
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16185
18311
  /*!
16186
18312
  * The buffer module from node.js, for the browser.
@@ -17920,7 +20046,7 @@ function numberIsNaN (obj) {
17920
20046
  }
17921
20047
 
17922
20048
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/buffer/index.js","/node_modules/buffer")
17923
- },{"_process":114,"base64-js":100,"buffer":104,"ieee754":109,"timers":135}],105:[function(require,module,exports){
20049
+ },{"_process":119,"base64-js":105,"buffer":109,"ieee754":114,"timers":140}],110:[function(require,module,exports){
17924
20050
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
17925
20051
  module.exports = {
17926
20052
  "100": "Continue",
@@ -17988,7 +20114,7 @@ module.exports = {
17988
20114
  }
17989
20115
 
17990
20116
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/builtin-status-codes/browser.js","/node_modules/builtin-status-codes")
17991
- },{"_process":114,"buffer":104,"timers":135}],106:[function(require,module,exports){
20117
+ },{"_process":119,"buffer":109,"timers":140}],111:[function(require,module,exports){
17992
20118
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
17993
20119
  // Copyright Joyent, Inc. and other Node contributors.
17994
20120
  //
@@ -18099,7 +20225,7 @@ function objectToString(o) {
18099
20225
  }
18100
20226
 
18101
20227
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/core-util-is/lib/util.js","/node_modules/core-util-is/lib")
18102
- },{"_process":114,"buffer":104,"timers":135}],107:[function(require,module,exports){
20228
+ },{"_process":119,"buffer":109,"timers":140}],112:[function(require,module,exports){
18103
20229
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18104
20230
  // Copyright Joyent, Inc. and other Node contributors.
18105
20231
  //
@@ -18626,7 +20752,7 @@ function functionBindPolyfill(context) {
18626
20752
  }
18627
20753
 
18628
20754
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/events/events.js","/node_modules/events")
18629
- },{"_process":114,"buffer":104,"timers":135}],108:[function(require,module,exports){
20755
+ },{"_process":119,"buffer":109,"timers":140}],113:[function(require,module,exports){
18630
20756
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18631
20757
  var http = require('http')
18632
20758
  var url = require('url')
@@ -18661,7 +20787,7 @@ function validateParams (params) {
18661
20787
  }
18662
20788
 
18663
20789
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/https-browserify/index.js","/node_modules/https-browserify")
18664
- },{"_process":114,"buffer":104,"http":120,"timers":135,"url":137}],109:[function(require,module,exports){
20790
+ },{"_process":119,"buffer":109,"http":125,"timers":140,"url":142}],114:[function(require,module,exports){
18665
20791
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18666
20792
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
18667
20793
  var e, m
@@ -18749,7 +20875,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
18749
20875
  }
18750
20876
 
18751
20877
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/ieee754/index.js","/node_modules/ieee754")
18752
- },{"_process":114,"buffer":104,"timers":135}],110:[function(require,module,exports){
20878
+ },{"_process":119,"buffer":109,"timers":140}],115:[function(require,module,exports){
18753
20879
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18754
20880
  if (typeof Object.create === 'function') {
18755
20881
  // implementation from standard node.js 'util' module
@@ -18776,12 +20902,12 @@ if (typeof Object.create === 'function') {
18776
20902
  }
18777
20903
 
18778
20904
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/inherits/inherits_browser.js","/node_modules/inherits")
18779
- },{"_process":114,"buffer":104,"timers":135}],111:[function(require,module,exports){
20905
+ },{"_process":119,"buffer":109,"timers":140}],116:[function(require,module,exports){
18780
20906
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18781
20907
  (function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,e.JSBI=t())})(this,function(){'use strict';function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var _,n=0;n<t.length;n++)_=t[n],_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(e,_.key,_)}function _(e,t,_){return t&&i(e.prototype,t),_&&i(e,_),e}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function a(){return a=o()?Reflect.construct:function(e,t,i){var _=[null];_.push.apply(_,t);var n=Function.bind.apply(e,_),g=new n;return i&&l(g,i.prototype),g},a.apply(null,arguments)}function s(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){function i(){return a(e,arguments,g(this).constructor)}if(null===e||!s(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!=typeof t){if(t.has(e))return t.get(e);t.set(e,i)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)},u(e)}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return t&&("object"==typeof t||"function"==typeof t)?t:r(e)}var h=function(i){var o=Math.abs,a=Math.max,s=Math.imul,u=Math.clz32;function l(e,i){var _;if(t(this,l),e>l.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return _=d(this,g(l).call(this,e)),_.sign=i,_}return n(l,i),_(l,[{key:"toDebugString",value:function(){var e=["BigInt["],t=!0,i=!1,_=void 0;try{for(var n,g,l=this[Symbol.iterator]();!(t=(n=l.next()).done);t=!0)g=n.value,e.push((g?(g>>>0).toString(16):g)+", ")}catch(e){i=!0,_=e}finally{try{t||null==l["return"]||l["return"]()}finally{if(i)throw _}}return e.push("]"),e.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?l.__toStringBasePowerOfTwo(this,e):l.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new l(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)e--,t=this[e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return u(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,_){_>this.length&&(_=this.length);for(var n=65535&e,g=e>>>16,l=0,o=65535&t,a=t>>>16,u=0;u<_;u++){var r=this.__digit(u),d=65535&r,h=r>>>16,b=s(d,n),m=s(d,g),c=s(h,n),v=s(h,g),y=o+(65535&b),f=a+l+(y>>>16)+(b>>>16)+(65535&m)+(65535&c);o=(m>>>16)+(c>>>16)+(65535&v)+(f>>>16),l=o>>>16,o&=65535,a=v>>>16;this.__setDigit(u,65535&y|f<<16)}if(0!==l||0!==o||0!==a)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,_){for(var n,g=0,l=0;l<_;l++)n=this.__halfDigit(t+l)+e.__halfDigit(l)+g,g=n>>>16,this.__setHalfDigit(t+l,n);return g}},{key:"__inplaceSub",value:function(e,t,_){var n=0;if(1&t){t>>=1;for(var g=this.__digit(t),l=65535&g,o=0;o<_-1>>>1;o++){var a=e.__digit(o),s=(g>>>16)-(65535&a)-n;n=1&s>>>16,this.__setDigit(t+o,s<<16|65535&l),g=this.__digit(t+o+1),l=(65535&g)-(a>>>16)-n,n=1&l>>>16}var u=e.__digit(o),r=(g>>>16)-(65535&u)-n;n=1&r>>>16,this.__setDigit(t+o,r<<16|65535&l);if(t+o+1>=this.length)throw new RangeError("out of bounds");0==(1&_)&&(g=this.__digit(t+o+1),l=(65535&g)-(u>>>16)-n,n=1&l>>>16,this.__setDigit(t+e.length,4294901760&g|65535&l))}else{t>>=1;for(var d=0;d<e.length-1;d++){var h=this.__digit(t+d),b=e.__digit(d),m=(65535&h)-(65535&b)-n;n=1&m>>>16;var c=(h>>>16)-(b>>>16)-n;n=1&c>>>16,this.__setDigit(t+d,c<<16|65535&m)}var v=this.__digit(t+d),y=e.__digit(d),f=(65535&v)-(65535&y)-n;n=1&f>>>16;var k=0;0==(1&_)&&(k=(v>>>16)-(y>>>16)-n,n=1&k>>>16),this.__setDigit(t+d,k<<16|65535&f)}return n}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,_=this.__digit(0)>>>e,n=this.length-1,g=0;g<n;g++)t=this.__digit(g+1),this.__setDigit(g,t<<32-e|_),_=t>>>e;this.__setDigit(n,_)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var i=e>>>1,_=this.__digit(i),n=1&e?65535&_|t<<16:4294901760&_|65535&t;this.__setDigit(i,n)}}],[{key:"BigInt",value:function(t){var i=Math.floor,_=Number.isFinite;if("number"==typeof t){if(0===t)return l.__zero();if((0|t)===t)return 0>t?l.__oneDigit(-t,!0):l.__oneDigit(t,!1);if(!_(t)||i(t)!==t)throw new RangeError("The number "+t+" cannot be converted to BigInt because it is not an integer");return l.__fromDouble(t)}if("string"==typeof t){var n=l.__fromString(t);if(null===n)throw new SyntaxError("Cannot convert "+t+" to a BigInt");return n}if("boolean"==typeof t)return!0===t?l.__oneDigit(1,!1):l.__zero();if("object"===e(t)){if(t.constructor===l)return t;var g=l.__toPrimitive(t);return l.BigInt(g)}throw new TypeError("Cannot convert "+t+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var i=e.__unsignedDigit(0);return e.sign?-i:i}var _=e.__digit(t-1),n=u(_),g=32*t-n;if(1024<g)return e.sign?-Infinity:1/0;var o=g-1,a=_,s=t-1,r=n+1,d=32===r?0:a<<r;d>>>=12;var h=r-12,b=12<=r?0:a<<20+r,m=20+r;0<h&&0<s&&(s--,a=e.__digit(s),d|=a>>>32-h,b=a<<h,m=h),0<m&&0<s&&(s--,a=e.__digit(s),b|=a>>>32-m,m-=32);var c=l.__decideRounding(e,m,s,a);if((1===c||0===c&&1==(1&b))&&(b=b+1>>>0,0===b&&(d++,0!=d>>>20&&(d=0,o++,1023<o))))return e.sign?-Infinity:1/0;var v=e.sign?-2147483648:0;return o=o+1023<<20,l.__kBitConversionInts[1]=v|o|d,l.__kBitConversionInts[0]=b,l.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?l.__absoluteSubOne(e).__trim():l.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return l.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?l.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var i=t.__unsignedDigit(0);if(1===i)return e;if(i>=l.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var _=1+(i>>>5),n=e.sign&&0!=(1&i),g=new l(_,n);g.__initializeDigits();var o=1<<(31&i);return g.__setDigit(_-1,o),g}var a=null,s=e;for(0!=(1&i)&&(a=e),i>>=1;0!==i;i>>=1)s=l.multiply(s,s),0!=(1&i)&&(null===a?a=s:a=l.multiply(a,s));return a}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var _=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&_--;var n=new l(_,e.sign!==t.sign);n.__initializeDigits();for(var g=0;g<e.length;g++)l.__multiplyAccumulate(t,e.__digit(g),n,g);return n.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(e,t))return l.__zero();var i,_=e.sign!==t.sign,n=t.__unsignedDigit(0);if(1===t.length&&65535>=n){if(1===n)return _===e.sign?e:l.unaryMinus(e);i=l.__absoluteDivSmall(e,n,null)}else i=l.__absoluteDivLarge(e,t,!0,!1);return i.sign=_,i.__trim()}},{key:"remainder",value:function e(t,i){if(0===i.length)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(t,i))return t;var _=i.__unsignedDigit(0);if(1===i.length&&65535>=_){if(1===_)return l.__zero();var n=l.__absoluteModSmall(t,_);return 0===n?l.__zero():l.__oneDigit(n,t.sign)}var e=l.__absoluteDivLarge(t,i,!1,!0);return e.sign=t.sign,e.__trim()}},{key:"add",value:function(e,t){var i=e.sign;return i===t.sign?l.__absoluteAdd(e,t,i):0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i)}},{key:"subtract",value:function(e,t){var i=e.sign;return i===t.sign?0<=l.__absoluteCompare(e,t)?l.__absoluteSub(e,t,i):l.__absoluteSub(t,e,!i):l.__absoluteAdd(e,t,i)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__rightShiftByAbsolute(e,t):l.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?l.__leftShiftByAbsolute(e,t):l.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>l.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=l.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<l.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=l.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(e.__digit(_)!==t.__digit(_))return!1;return!0}},{key:"notEqual",value:function(e,t){return!l.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return l.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var i=a(e.length,t.length)+1,_=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return _=l.__absoluteOr(_,n,_),l.__absoluteAddOne(_,!0,_).__trim()}if(e.sign){var g=[t,e];e=g[0],t=g[1]}return l.__absoluteAndNot(e,l.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return l.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var i=a(e.length,t.length),_=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return l.__absoluteXor(_,n,_).__trim()}var g=a(e.length,t.length)+1;if(e.sign){var o=[t,e];e=o[0],t=o[1]}var s=l.__absoluteSubOne(t,g);return s=l.__absoluteXor(s,e,s),l.__absoluteAddOne(s,!0,s).__trim()}},{key:"bitwiseOr",value:function(e,t){var i=a(e.length,t.length);if(!e.sign&&!t.sign)return l.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var _=l.__absoluteSubOne(e,i),n=l.__absoluteSubOne(t);return _=l.__absoluteAnd(_,n,_),l.__absoluteAddOne(_,!0,_).__trim()}if(e.sign){var g=[t,e];e=g[0],t=g[1]}var o=l.__absoluteSubOne(t,i);return o=l.__absoluteAndNot(o,e,o),l.__absoluteAddOne(o,!0,o).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return l.__zero();if(e>=l.__kMaxLengthBits)return t;var _=e+31>>>5;if(t.length<_)return t;var n=t.__unsignedDigit(_-1),g=1<<(31&e-1);if(t.length===_&&n<g)return t;if(!((n&g)===g))return l.__truncateToNBits(e,t);if(!t.sign)return l.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(n&g-1)){for(var o=_-2;0<=o;o--)if(0!==t.__digit(o))return l.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===_&&n===g?t:l.__truncateToNBits(e,t)}return l.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return l.__zero();if(t.sign){if(e>l.__kMaxLengthBits)throw new RangeError("BigInt too big");return l.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=l.__kMaxLengthBits)return t;var i=e+31>>>5;if(t.length<i)return t;var _=31&e;if(t.length==i){if(0==_)return t;var n=t.__digit(i-1);if(0==n>>>_)return t}return l.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=l.__toPrimitive(e),t=l.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)&&l.__isBigInt(t))return l.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return l.__compare(e,t,0)}},{key:"LE",value:function(e,t){return l.__compare(e,t,1)}},{key:"GT",value:function(e,t){return l.__compare(e,t,2)}},{key:"GE",value:function(e,t){return l.__compare(e,t,3)}},{key:"EQ",value:function(t,i){for(;;){if(l.__isBigInt(t))return l.__isBigInt(i)?l.equal(t,i):l.EQ(i,t);if("number"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,t);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("string"==typeof t){if(l.__isBigInt(i))return t=l.__fromString(t),null!==t&&l.equal(t,i);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("boolean"==typeof t){if(l.__isBigInt(i))return l.__equalToNumber(i,+t);if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("symbol"===e(t)){if(l.__isBigInt(i))return!1;if("object"!==e(i))return t==i;i=l.__toPrimitive(i)}else if("object"===e(t)){if("object"===e(i)&&i.constructor!==l)return t==i;t=l.__toPrimitive(t)}else return t==i}}},{key:"NE",value:function(e,t){return!l.EQ(e,t)}},{key:"__zero",value:function(){return new l(0,!1)}},{key:"__oneDigit",value:function(e,t){var i=new l(1,t);return i.__setDigit(0,e),i}},{key:"__decideRounding",value:function(e,t,i,_){if(0<t)return-1;var n;if(0>t)n=-t-1;else{if(0===i)return-1;i--,_=e.__digit(i),n=31}var g=1<<n;if(0==(_&g))return-1;if(g-=1,0!=(_&g))return 1;for(;0<i;)if(i--,0!==e.__digit(i))return 1;return 0}},{key:"__fromDouble",value:function(e){l.__kBitConversionDouble[0]=e;var t,i=2047&l.__kBitConversionInts[1]>>>20,_=i-1023,n=(_>>>5)+1,g=new l(n,0>e),o=1048575&l.__kBitConversionInts[1]|1048576,a=l.__kBitConversionInts[0],s=20,u=31&_,r=0;if(u<s){var d=s-u;r=d+32,t=o>>>d,o=o<<32-d|a>>>d,a<<=32-d}else if(u===s)r=32,t=o,o=a;else{var h=u-s;r=32-h,t=o<<h|a>>>32-h,o=a<<h}g.__setDigit(n-1,t);for(var b=n-2;0<=b;b--)0<r?(r-=32,t=o,o=a):t=0,g.__setDigit(b,t);return g.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?(e&=131071,10>=e||40==e||41==e||47==e||95==e||4096==e):65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=0,_=e.length,n=0;if(n===_)return l.__zero();for(var g=e.charCodeAt(n);l.__isWhitespace(g);){if(++n===_)return l.__zero();g=e.charCodeAt(n)}if(43===g){if(++n===_)return null;g=e.charCodeAt(n),i=1}else if(45===g){if(++n===_)return null;g=e.charCodeAt(n),i=-1}if(0===t){if(t=10,48===g){if(++n===_)return l.__zero();if(g=e.charCodeAt(n),88===g||120===g){if(t=16,++n===_)return null;g=e.charCodeAt(n)}else if(79===g||111===g){if(t=8,++n===_)return null;g=e.charCodeAt(n)}else if(66===g||98===g){if(t=2,++n===_)return null;g=e.charCodeAt(n)}}}else if(16===t&&48===g){if(++n===_)return l.__zero();if(g=e.charCodeAt(n),88===g||120===g){if(++n===_)return null;g=e.charCodeAt(n)}}for(;48===g;){if(++n===_)return l.__zero();g=e.charCodeAt(n)}var o=_-n,a=l.__kMaxBitsPerChar[t],s=l.__kBitsPerCharTableMultiplier-1;if(o>1073741824/a)return null;var u=a*o+s>>>l.__kBitsPerCharTableShift,r=new l(u+31>>>5,!1),h=10>t?t:10,b=10<t?t-10:0;if(0==(t&t-1)){a>>=l.__kBitsPerCharTableShift;var c=[],v=[],y=!1;do{for(var f,k=0,D=0;;){if(f=void 0,g-48>>>0<h)f=g-48;else if((32|g)-97>>>0<b)f=(32|g)-87;else{y=!0;break}if(D+=a,k=k<<a|f,++n===_){y=!0;break}if(g=e.charCodeAt(n),32<D+a)break}c.push(k),v.push(D)}while(!y);l.__fillFromParts(r,c,v)}else{r.__initializeDigits();var p=!1,B=0;do{for(var S,C=0,A=1;;){if(S=void 0,g-48>>>0<h)S=g-48;else if((32|g)-97>>>0<b)S=(32|g)-87;else{p=!0;break}var T=A*t;if(4294967295<T)break;if(A=T,C=C*t+S,B++,++n===_){p=!0;break}g=e.charCodeAt(n)}s=32*l.__kBitsPerCharTableMultiplier-1;var m=a*B+s>>>l.__kBitsPerCharTableShift+5;r.__inplaceMultiplyAdd(A,C,m)}while(!p)}for(;n!==_;){if(!l.__isWhitespace(g))return null;g=e.charCodeAt(n++)}return 0!==i&&10!==t?null:(r.sign=-1===i,r.__trim())}},{key:"__fillFromParts",value:function(e,t,_){for(var n=0,g=0,l=0,o=t.length-1;0<=o;o--){var a=t[o],s=_[o];g|=a<<l,l+=s,32===l?(e.__setDigit(n++,g),l=0,g=0):32<l&&(e.__setDigit(n++,g),l-=32,g=a>>>s-l)}if(0!==g){if(n>=e.length)throw new Error("implementation bug");e.__setDigit(n++,g)}for(;n<e.length;n++)e.__setDigit(n,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var _=e.length,n=t-1;n=(85&n>>>1)+(85&n),n=(51&n>>>2)+(51&n),n=(15&n>>>4)+(15&n);var g=n,o=t-1,a=e.__digit(_-1),s=u(a),r=0|(32*_-s+g-1)/g;if(e.sign&&r++,268435456<r)throw new Error("string too long");for(var d=Array(r),h=r-1,b=0,m=0,c=0;c<_-1;c++){var v=e.__digit(c),y=(b|v<<m)&o;d[h--]=l.__kConversionChars[y];var f=g-m;for(b=v>>>f,m=32-f;m>=g;)d[h--]=l.__kConversionChars[b&o],b>>>=g,m-=g}var k=(b|a<<m)&o;for(d[h--]=l.__kConversionChars[k],b=a>>>g-m;0!==b;)d[h--]=l.__kConversionChars[b&o],b>>>=g;if(e.sign&&(d[h--]="-"),-1!==h)throw new Error("implementation bug");return d.join("")}},{key:"__toStringGeneric",value:function(e,t,_){var n=e.length;if(0===n)return"";if(1===n){var g=e.__unsignedDigit(0).toString(t);return!1===_&&e.sign&&(g="-"+g),g}var o=32*n-u(e.__digit(n-1)),a=l.__kMaxBitsPerChar[t],s=a-1,r=o*l.__kBitsPerCharTableMultiplier;r+=s-1,r=0|r/s;var d,h,b=r+1>>1,m=l.exponentiate(l.__oneDigit(t,!1),l.__oneDigit(b,!1)),c=m.__unsignedDigit(0);if(1===m.length&&65535>=c){d=new l(e.length,!1),d.__initializeDigits();for(var v,y=0,f=2*e.length-1;0<=f;f--)v=y<<16|e.__halfDigit(f),d.__setHalfDigit(f,0|v/c),y=0|v%c;h=y.toString(t)}else{var k=l.__absoluteDivLarge(e,m,!0,!0);d=k.quotient;var D=k.remainder.__trim();h=l.__toStringGeneric(D,t,!0)}d.__trim();for(var p=l.__toStringGeneric(d,t,!0);h.length<b;)h="0"+h;return!1===_&&e.sign&&(p="-"+p),p+h}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var i=e.sign;if(i!==t.sign)return l.__unequalSign(i);var _=l.__absoluteCompare(e,t);return 0<_?l.__absoluteGreater(i):0>_?l.__absoluteLess(i):0}},{key:"__compareToNumber",value:function(e,t){if(!0|t){var i=e.sign,_=0>t;if(i!==_)return l.__unequalSign(i);if(0===e.length){if(_)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return l.__absoluteGreater(i);var n=o(t),g=e.__unsignedDigit(0);return g>n?l.__absoluteGreater(i):g<n?l.__absoluteLess(i):0}return l.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!==t)return t;if(t===1/0)return-1;if(t===-Infinity)return 1;var i=e.sign;if(i!==0>t)return l.__unequalSign(i);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;l.__kBitConversionDouble[0]=t;var _=2047&l.__kBitConversionInts[1]>>>20;if(2047==_)throw new Error("implementation bug: handled elsewhere");var n=_-1023;if(0>n)return l.__absoluteGreater(i);var g=e.length,o=e.__digit(g-1),a=u(o),s=32*g-a,r=n+1;if(s<r)return l.__absoluteLess(i);if(s>r)return l.__absoluteGreater(i);var d=1048576|1048575&l.__kBitConversionInts[1],h=l.__kBitConversionInts[0],b=20,m=31-a;if(m!==(s-1)%31)throw new Error("implementation bug");var c,v=0;if(m<b){var y=b-m;v=y+32,c=d>>>y,d=d<<32-y|h>>>y,h<<=32-y}else if(m===b)v=32,c=d,d=h;else{var f=m-b;v=32-f,c=d<<f|h>>>32-f,d=h<<f}if(o>>>=0,c>>>=0,o>c)return l.__absoluteGreater(i);if(o<c)return l.__absoluteLess(i);for(var k=g-2;0<=k;k--){0<v?(v-=32,c=d>>>0,d=h,h=0):c=0;var D=e.__unsignedDigit(k);if(D>c)return l.__absoluteGreater(i);if(D<c)return l.__absoluteLess(i)}if(0!==d||0!==h){if(0===v)throw new Error("implementation bug");return l.__absoluteLess(i)}return 0}},{key:"__equalToNumber",value:function(e,t){return t|0===t?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===o(t):0===l.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0<e;case 3:return 0<=e;}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,i){if(e=l.__toPrimitive(e),t=l.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(i){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t;}if(l.__isBigInt(e)&&"string"==typeof t)return t=l.__fromString(t),null!==t&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if("string"==typeof e&&l.__isBigInt(t))return e=l.__fromString(e),null!==e&&l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if(e=l.__toNumeric(e),t=l.__toNumeric(t),l.__isBigInt(e)){if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToBigInt(e,t),i);if("number"!=typeof t)throw new Error("implementation bug");return l.__comparisonResultToBool(l.__compareToNumber(e,t),i)}if("number"!=typeof e)throw new Error("implementation bug");if(l.__isBigInt(t))return l.__comparisonResultToBool(l.__compareToNumber(t,e),2^i);if("number"!=typeof t)throw new Error("implementation bug");return 0===i?e<t:1===i?e<=t:2===i?e>t:3===i?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,_){if(e.length<t.length)return l.__absoluteAdd(t,e,_);if(0===e.length)return e;if(0===t.length)return e.sign===_?e:l.unaryMinus(e);var n=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&n++;for(var g=new l(n,_),o=0,a=0;a<t.length;a++){var s=t.__digit(a),u=e.__digit(a),r=(65535&u)+(65535&s)+o,d=(u>>>16)+(s>>>16)+(r>>>16);o=d>>>16,g.__setDigit(a,65535&r|d<<16)}for(;a<e.length;a++){var h=e.__digit(a),b=(65535&h)+o,m=(h>>>16)+(b>>>16);o=m>>>16,g.__setDigit(a,65535&b|m<<16)}return a<g.length&&g.__setDigit(a,o),g.__trim()}},{key:"__absoluteSub",value:function(e,t,_){if(0===e.length)return e;if(0===t.length)return e.sign===_?e:l.unaryMinus(e);for(var n=new l(e.length,_),g=0,o=0;o<t.length;o++){var a=e.__digit(o),s=t.__digit(o),u=(65535&a)-(65535&s)-g;g=1&u>>>16;var r=(a>>>16)-(s>>>16)-g;g=1&r>>>16,n.__setDigit(o,65535&u|r<<16)}for(;o<e.length;o++){var d=e.__digit(o),h=(65535&d)-g;g=1&h>>>16;var b=(d>>>16)-g;g=1&b>>>16,n.__setDigit(o,65535&h|b<<16)}return n.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length;null===_?_=new l(n,t):_.sign=t;for(var g=!0,o=0;o<n;o++){var a=e.__digit(o),s=-1===a;g&&(a=0|a+1),g=s,_.__setDigit(o,a)}return g&&_.__setDigitGrow(n,1),_}},{key:"__absoluteSubOne",value:function(e,t){var _=e.length;t=t||_;for(var n=new l(t,!1),g=!0,o=0;o<_;o++){var a=e.__digit(o),s=0===a;g&&(a=0|a-1),g=s,n.__setDigit(o,a)}for(var u=_;u<t;u++)n.__setDigit(u,0);return n}},{key:"__absoluteAnd",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=o;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)&t.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteAndNot",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;n<g&&(o=n);var a=n;null===_?_=new l(a,!1):a=_.length;for(var s=0;s<o;s++)_.__setDigit(s,e.__digit(s)&~t.__digit(s));for(;s<n;s++)_.__setDigit(s,e.__digit(s));for(;s<a;s++)_.__setDigit(s,0);return _}},{key:"__absoluteOr",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=n;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)|t.__digit(r));for(;r<n;r++)_.__setDigit(r,e.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteXor",value:function(e,t){var _=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=e.length,g=t.length,o=g;if(n<g){o=n;var a=e,s=n;e=t,n=g,t=a,g=s}var u=n;null===_?_=new l(u,!1):u=_.length;for(var r=0;r<o;r++)_.__setDigit(r,e.__digit(r)^t.__digit(r));for(;r<n;r++)_.__setDigit(r,e.__digit(r));for(;r<u;r++)_.__setDigit(r,0);return _}},{key:"__absoluteCompare",value:function(e,t){var _=e.length-t.length;if(0!=_)return _;for(var n=e.length-1;0<=n&&e.__digit(n)===t.__digit(n);)n--;return 0>n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,_,n){if(0!==t){for(var g=65535&t,l=t>>>16,o=0,a=0,u=0,r=0;r<e.length;r++,n++){var d=_.__digit(n),h=65535&d,b=d>>>16,m=e.__digit(r),c=65535&m,v=m>>>16,y=s(c,g),f=s(c,l),k=s(v,g),D=s(v,l);h+=a+(65535&y),b+=u+o+(h>>>16)+(y>>>16)+(65535&f)+(65535&k),o=b>>>16,a=(f>>>16)+(k>>>16)+(65535&D)+o,o=a>>>16,a&=65535,u=D>>>16,d=65535&h|b<<16,_.__setDigit(n,d)}for(;0!==o||0!==a||0!==u;n++){var p=_.__digit(n),B=(65535&p)+a,S=(p>>>16)+(B>>>16)+u+o;a=0,u=0,o=S>>>16,p=65535&B|S<<16,_.__setDigit(n,p)}}}},{key:"__internalMultiplyAdd",value:function(e,t,_,g,l){for(var o=_,a=0,u=0;u<g;u++){var r=e.__digit(u),d=s(65535&r,t),h=(65535&d)+a+o;o=h>>>16;var b=s(r>>>16,t),m=(65535&b)+(d>>>16)+o;o=m>>>16,a=b>>>16,l.__setDigit(u,m<<16|65535&h)}if(l.length>g)for(l.__setDigit(g++,o+a);g<l.length;)l.__setDigit(g++,0);else if(0!==o+a)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,_){null===_&&(_=new l(e.length,!1));for(var n=0,g=2*e.length-1;0<=g;g-=2){var o=(n<<16|e.__halfDigit(g))>>>0,a=0|o/t;n=0|o%t,o=(n<<16|e.__halfDigit(g-1))>>>0;var s=0|o/t;n=0|o%t,_.__setDigit(g>>>1,a<<16|s)}return _}},{key:"__absoluteModSmall",value:function(e,t){for(var _,n=0,g=2*e.length-1;0<=g;g--)_=(n<<16|e.__halfDigit(g))>>>0,n=0|_%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,i,_){var g=t.__halfDigitLength(),n=t.length,o=e.__halfDigitLength()-g,a=null;i&&(a=new l(o+2>>>1,!1),a.__initializeDigits());var r=new l(g+2>>>1,!1);r.__initializeDigits();var d=l.__clz16(t.__halfDigit(g-1));0<d&&(t=l.__specialLeftShift(t,d,0));for(var h=l.__specialLeftShift(e,d,1),u=t.__halfDigit(g-1),b=0,m=o;0<=m;m--){var v=65535,y=h.__halfDigit(m+g);if(y!==u){var f=(y<<16|h.__halfDigit(m+g-1))>>>0;v=0|f/u;for(var k=0|f%u,D=t.__halfDigit(g-2),p=h.__halfDigit(m+g-2);s(v,D)>>>0>(k<<16|p)>>>0&&(v--,k+=u,!(65535<k)););}l.__internalMultiplyAdd(t,v,0,n,r);var B=h.__inplaceSub(r,m,g+1);0!==B&&(B=h.__inplaceAdd(t,m,g),h.__setHalfDigit(m+g,h.__halfDigit(m+g)+B),v--),i&&(1&m?b=v<<16:a.__setDigit(m>>>1,b|v))}return _?(h.__inplaceRightShift(d),i?{quotient:a,remainder:h}:h):i?a:void 0}},{key:"__clz16",value:function(e){return u(e)-16}},{key:"__specialLeftShift",value:function(e,t,_){var g=e.length,n=new l(g+_,!1);if(0===t){for(var o=0;o<g;o++)n.__setDigit(o,e.__digit(o));return 0<_&&n.__setDigit(g,0),n}for(var a,s=0,u=0;u<g;u++)a=e.__digit(u),n.__setDigit(u,a<<t|s),s=a>>>32-t;return 0<_&&n.__setDigit(g,s),n}},{key:"__leftShiftByAbsolute",value:function(e,t){var _=l.__toShiftAmount(t);if(0>_)throw new RangeError("BigInt too big");var n=_>>>5,g=31&_,o=e.length,a=0!==g&&0!=e.__digit(o-1)>>>32-g,s=o+n+(a?1:0),u=new l(s,e.sign);if(0===g){for(var r=0;r<n;r++)u.__setDigit(r,0);for(;r<s;r++)u.__setDigit(r,e.__digit(r-n))}else{for(var h=0,b=0;b<n;b++)u.__setDigit(b,0);for(var m,c=0;c<o;c++)m=e.__digit(c),u.__setDigit(c+n,m<<g|h),h=m>>>32-g;if(a)u.__setDigit(o+n,h);else if(0!==h)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var _=e.length,n=e.sign,g=l.__toShiftAmount(t);if(0>g)return l.__rightShiftByMaximum(n);var o=g>>>5,a=31&g,s=_-o;if(0>=s)return l.__rightShiftByMaximum(n);var u=!1;if(n){if(0!=(e.__digit(o)&(1<<a)-1))u=!0;else for(var r=0;r<o;r++)if(0!==e.__digit(r)){u=!0;break}}if(u&&0===a){var h=e.__digit(_-1);0==~h&&s++}var b=new l(s,n);if(0===a)for(var m=o;m<_;m++)b.__setDigit(m-o,e.__digit(m));else{for(var c,v=e.__digit(o)>>>a,y=_-o-1,f=0;f<y;f++)c=e.__digit(f+o+1),b.__setDigit(f,c<<32-a|v),v=c>>>a;b.__setDigit(y,v)}return u&&(b=l.__absoluteAddOne(b,!0,b)),b.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?l.__oneDigit(1,!0):l.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>l.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==e(t))return t;if(t.constructor===l)return t;var _=t[Symbol.toPrimitive];if(_){var n=_(i);if("object"!==e(n))return n;throw new TypeError("Cannot convert object to primitive value")}var g=t.valueOf;if(g){var o=g.call(t);if("object"!==e(o))return o}var a=t.toString;if(a){var s=a.call(t);if("object"!==e(s))return s}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return l.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(t){return"object"===e(t)&&t.constructor===l}},{key:"__truncateToNBits",value:function(e,t){for(var _=e+31>>>5,n=new l(_,t.sign),g=_-1,o=0;o<g;o++)n.__setDigit(o,t.__digit(o));var a=t.__digit(g);if(0!=(31&e)){var s=32-(31&e);a=a<<s>>>s}return n.__setDigit(g,a),n.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,_){for(var n=Math.min,g=e+31>>>5,o=new l(g,_),a=0,s=g-1,u=0,r=n(s,t.length);a<r;a++){var d=t.__digit(a),h=0-(65535&d)-u;u=1&h>>>16;var b=0-(d>>>16)-u;u=1&b>>>16,o.__setDigit(a,65535&h|b<<16)}for(;a<s;a++)o.__setDigit(a,0|-u);var m,c=s<t.length?t.__digit(s):0,v=31&e;if(0===v){var y=0-(65535&c)-u;u=1&y>>>16;var f=0-(c>>>16)-u;m=65535&y|f<<16}else{var k=32-v;c=c<<k>>>k;var D=1<<32-k,p=(65535&D)-(65535&c)-u;u=1&p>>>16;var B=(D>>>16)-(c>>>16)-u;m=65535&p|B<<16,m&=D-1}return o.__setDigit(s,m),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var i=1;0<t;)1&t&&(i*=e),t>>>=1,e*=e;return i}}]),l}(u(Array));return h.__kMaxLength=33554432,h.__kMaxLengthBits=h.__kMaxLength<<5,h.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],h.__kBitsPerCharTableShift=5,h.__kBitsPerCharTableMultiplier=1<<h.__kBitsPerCharTableShift,h.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],h.__kBitConversionBuffer=new ArrayBuffer(8),h.__kBitConversionDouble=new Float64Array(h.__kBitConversionBuffer),h.__kBitConversionInts=new Int32Array(h.__kBitConversionBuffer),h});
18782
20908
 
18783
20909
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/jsbi/dist/jsbi-umd.js","/node_modules/jsbi/dist")
18784
- },{"_process":114,"buffer":104,"timers":135}],112:[function(require,module,exports){
20910
+ },{"_process":119,"buffer":109,"timers":140}],117:[function(require,module,exports){
18785
20911
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18786
20912
  /*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
18787
20913
  ;(function () {
@@ -19687,7 +21813,7 @@ if (typeof Object.create === 'function') {
19687
21813
  }).call(this);
19688
21814
 
19689
21815
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/json3/lib/json3.js","/node_modules/json3/lib")
19690
- },{"_process":114,"buffer":104,"timers":135}],113:[function(require,module,exports){
21816
+ },{"_process":119,"buffer":109,"timers":140}],118:[function(require,module,exports){
19691
21817
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19692
21818
  'use strict';
19693
21819
 
@@ -19735,7 +21861,7 @@ function nextTick(fn, arg1, arg2, arg3) {
19735
21861
 
19736
21862
 
19737
21863
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/process-nextick-args/index.js","/node_modules/process-nextick-args")
19738
- },{"_process":114,"buffer":104,"timers":135}],114:[function(require,module,exports){
21864
+ },{"_process":119,"buffer":109,"timers":140}],119:[function(require,module,exports){
19739
21865
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19740
21866
  // shim for using process in browser
19741
21867
  var process = module.exports = {};
@@ -19923,7 +22049,7 @@ process.chdir = function (dir) {
19923
22049
  process.umask = function() { return 0; };
19924
22050
 
19925
22051
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/process/browser.js","/node_modules/process")
19926
- },{"_process":114,"buffer":104,"timers":135}],115:[function(require,module,exports){
22052
+ },{"_process":119,"buffer":109,"timers":140}],120:[function(require,module,exports){
19927
22053
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19928
22054
  /*! https://mths.be/punycode v1.4.1 by @mathias */
19929
22055
  ;(function(root) {
@@ -20460,7 +22586,7 @@ process.umask = function() { return 0; };
20460
22586
  }(this));
20461
22587
 
20462
22588
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/punycode/punycode.js","/node_modules/punycode")
20463
- },{"_process":114,"buffer":104,"timers":135}],116:[function(require,module,exports){
22589
+ },{"_process":119,"buffer":109,"timers":140}],121:[function(require,module,exports){
20464
22590
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20465
22591
  // Copyright Joyent, Inc. and other Node contributors.
20466
22592
  //
@@ -20548,7 +22674,7 @@ var isArray = Array.isArray || function (xs) {
20548
22674
  };
20549
22675
 
20550
22676
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/querystring-es3/decode.js","/node_modules/querystring-es3")
20551
- },{"_process":114,"buffer":104,"timers":135}],117:[function(require,module,exports){
22677
+ },{"_process":119,"buffer":109,"timers":140}],122:[function(require,module,exports){
20552
22678
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20553
22679
  // Copyright Joyent, Inc. and other Node contributors.
20554
22680
  //
@@ -20637,7 +22763,7 @@ var objectKeys = Object.keys || function (obj) {
20637
22763
  };
20638
22764
 
20639
22765
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/querystring-es3/encode.js","/node_modules/querystring-es3")
20640
- },{"_process":114,"buffer":104,"timers":135}],118:[function(require,module,exports){
22766
+ },{"_process":119,"buffer":109,"timers":140}],123:[function(require,module,exports){
20641
22767
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20642
22768
  'use strict';
20643
22769
 
@@ -20645,7 +22771,7 @@ exports.decode = exports.parse = require('./decode');
20645
22771
  exports.encode = exports.stringify = require('./encode');
20646
22772
 
20647
22773
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/querystring-es3/index.js","/node_modules/querystring-es3")
20648
- },{"./decode":116,"./encode":117,"_process":114,"buffer":104,"timers":135}],119:[function(require,module,exports){
22774
+ },{"./decode":121,"./encode":122,"_process":119,"buffer":109,"timers":140}],124:[function(require,module,exports){
20649
22775
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20650
22776
  /* eslint-disable node/no-deprecated-api */
20651
22777
  var buffer = require('buffer')
@@ -20711,7 +22837,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
20711
22837
  }
20712
22838
 
20713
22839
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/safe-buffer/index.js","/node_modules/safe-buffer")
20714
- },{"_process":114,"buffer":104,"timers":135}],120:[function(require,module,exports){
22840
+ },{"_process":119,"buffer":109,"timers":140}],125:[function(require,module,exports){
20715
22841
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20716
22842
  var ClientRequest = require('./lib/request')
20717
22843
  var response = require('./lib/response')
@@ -20799,7 +22925,7 @@ http.METHODS = [
20799
22925
  'UNSUBSCRIBE'
20800
22926
  ]
20801
22927
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/index.js","/node_modules/stream-http")
20802
- },{"./lib/request":122,"./lib/response":123,"_process":114,"buffer":104,"builtin-status-codes":105,"timers":135,"url":137,"xtend":141}],121:[function(require,module,exports){
22928
+ },{"./lib/request":127,"./lib/response":128,"_process":119,"buffer":109,"builtin-status-codes":110,"timers":140,"url":142,"xtend":146}],126:[function(require,module,exports){
20803
22929
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20804
22930
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
20805
22931
 
@@ -20876,7 +23002,7 @@ function isFunction (value) {
20876
23002
  xhr = null // Help gc
20877
23003
 
20878
23004
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/lib/capability.js","/node_modules/stream-http/lib")
20879
- },{"_process":114,"buffer":104,"timers":135}],122:[function(require,module,exports){
23005
+ },{"_process":119,"buffer":109,"timers":140}],127:[function(require,module,exports){
20880
23006
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20881
23007
  var capability = require('./capability')
20882
23008
  var inherits = require('inherits')
@@ -21207,7 +23333,7 @@ var unsafeHeaders = [
21207
23333
  ]
21208
23334
 
21209
23335
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/lib/request.js","/node_modules/stream-http/lib")
21210
- },{"./capability":121,"./response":123,"_process":114,"buffer":104,"inherits":110,"readable-stream":133,"timers":135,"to-arraybuffer":136}],123:[function(require,module,exports){
23336
+ },{"./capability":126,"./response":128,"_process":119,"buffer":109,"inherits":115,"readable-stream":138,"timers":140,"to-arraybuffer":141}],128:[function(require,module,exports){
21211
23337
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21212
23338
  var capability = require('./capability')
21213
23339
  var inherits = require('inherits')
@@ -21435,7 +23561,7 @@ IncomingMessage.prototype._onXHRProgress = function () {
21435
23561
  }
21436
23562
 
21437
23563
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/lib/response.js","/node_modules/stream-http/lib")
21438
- },{"./capability":121,"_process":114,"buffer":104,"inherits":110,"readable-stream":133,"timers":135}],124:[function(require,module,exports){
23564
+ },{"./capability":126,"_process":119,"buffer":109,"inherits":115,"readable-stream":138,"timers":140}],129:[function(require,module,exports){
21439
23565
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21440
23566
  var toString = {}.toString;
21441
23567
 
@@ -21444,7 +23570,7 @@ module.exports = Array.isArray || function (arr) {
21444
23570
  };
21445
23571
 
21446
23572
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/isarray/index.js","/node_modules/stream-http/node_modules/isarray")
21447
- },{"_process":114,"buffer":104,"timers":135}],125:[function(require,module,exports){
23573
+ },{"_process":119,"buffer":109,"timers":140}],130:[function(require,module,exports){
21448
23574
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21449
23575
  // Copyright Joyent, Inc. and other Node contributors.
21450
23576
  //
@@ -21578,7 +23704,7 @@ Duplex.prototype._destroy = function (err, cb) {
21578
23704
  pna.nextTick(cb, err);
21579
23705
  };
21580
23706
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_duplex.js","/node_modules/stream-http/node_modules/readable-stream/lib")
21581
- },{"./_stream_readable":127,"./_stream_writable":129,"_process":114,"buffer":104,"core-util-is":106,"inherits":110,"process-nextick-args":113,"timers":135}],126:[function(require,module,exports){
23707
+ },{"./_stream_readable":132,"./_stream_writable":134,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"process-nextick-args":118,"timers":140}],131:[function(require,module,exports){
21582
23708
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21583
23709
  // Copyright Joyent, Inc. and other Node contributors.
21584
23710
  //
@@ -21628,7 +23754,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
21628
23754
  cb(null, chunk);
21629
23755
  };
21630
23756
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_passthrough.js","/node_modules/stream-http/node_modules/readable-stream/lib")
21631
- },{"./_stream_transform":128,"_process":114,"buffer":104,"core-util-is":106,"inherits":110,"timers":135}],127:[function(require,module,exports){
23757
+ },{"./_stream_transform":133,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"timers":140}],132:[function(require,module,exports){
21632
23758
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21633
23759
  // Copyright Joyent, Inc. and other Node contributors.
21634
23760
  //
@@ -22650,7 +24776,7 @@ function indexOf(xs, x) {
22650
24776
  return -1;
22651
24777
  }
22652
24778
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_readable.js","/node_modules/stream-http/node_modules/readable-stream/lib")
22653
- },{"./_stream_duplex":125,"./internal/streams/BufferList":130,"./internal/streams/destroy":131,"./internal/streams/stream":132,"_process":114,"buffer":104,"core-util-is":106,"events":107,"inherits":110,"isarray":124,"process-nextick-args":113,"safe-buffer":119,"string_decoder/":134,"timers":135,"util":102}],128:[function(require,module,exports){
24779
+ },{"./_stream_duplex":130,"./internal/streams/BufferList":135,"./internal/streams/destroy":136,"./internal/streams/stream":137,"_process":119,"buffer":109,"core-util-is":111,"events":112,"inherits":115,"isarray":129,"process-nextick-args":118,"safe-buffer":124,"string_decoder/":139,"timers":140,"util":107}],133:[function(require,module,exports){
22654
24780
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
22655
24781
  // Copyright Joyent, Inc. and other Node contributors.
22656
24782
  //
@@ -22867,7 +24993,7 @@ function done(stream, er, data) {
22867
24993
  return stream.push(null);
22868
24994
  }
22869
24995
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_transform.js","/node_modules/stream-http/node_modules/readable-stream/lib")
22870
- },{"./_stream_duplex":125,"_process":114,"buffer":104,"core-util-is":106,"inherits":110,"timers":135}],129:[function(require,module,exports){
24996
+ },{"./_stream_duplex":130,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"timers":140}],134:[function(require,module,exports){
22871
24997
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
22872
24998
  // Copyright Joyent, Inc. and other Node contributors.
22873
24999
  //
@@ -23557,7 +25683,7 @@ Writable.prototype._destroy = function (err, cb) {
23557
25683
  cb(err);
23558
25684
  };
23559
25685
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/_stream_writable.js","/node_modules/stream-http/node_modules/readable-stream/lib")
23560
- },{"./_stream_duplex":125,"./internal/streams/destroy":131,"./internal/streams/stream":132,"_process":114,"buffer":104,"core-util-is":106,"inherits":110,"process-nextick-args":113,"safe-buffer":119,"timers":135,"util-deprecate":139}],130:[function(require,module,exports){
25686
+ },{"./_stream_duplex":130,"./internal/streams/destroy":136,"./internal/streams/stream":137,"_process":119,"buffer":109,"core-util-is":111,"inherits":115,"process-nextick-args":118,"safe-buffer":124,"timers":140,"util-deprecate":144}],135:[function(require,module,exports){
23561
25687
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23562
25688
  'use strict';
23563
25689
 
@@ -23639,7 +25765,7 @@ if (util && util.inspect && util.inspect.custom) {
23639
25765
  };
23640
25766
  }
23641
25767
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/BufferList.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
23642
- },{"_process":114,"buffer":104,"safe-buffer":119,"timers":135,"util":102}],131:[function(require,module,exports){
25768
+ },{"_process":119,"buffer":109,"safe-buffer":124,"timers":140,"util":107}],136:[function(require,module,exports){
23643
25769
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23644
25770
  'use strict';
23645
25771
 
@@ -23716,12 +25842,12 @@ module.exports = {
23716
25842
  undestroy: undestroy
23717
25843
  };
23718
25844
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/destroy.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
23719
- },{"_process":114,"buffer":104,"process-nextick-args":113,"timers":135}],132:[function(require,module,exports){
25845
+ },{"_process":119,"buffer":109,"process-nextick-args":118,"timers":140}],137:[function(require,module,exports){
23720
25846
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23721
25847
  module.exports = require('events').EventEmitter;
23722
25848
 
23723
25849
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams/stream-browser.js","/node_modules/stream-http/node_modules/readable-stream/lib/internal/streams")
23724
- },{"_process":114,"buffer":104,"events":107,"timers":135}],133:[function(require,module,exports){
25850
+ },{"_process":119,"buffer":109,"events":112,"timers":140}],138:[function(require,module,exports){
23725
25851
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23726
25852
  exports = module.exports = require('./lib/_stream_readable.js');
23727
25853
  exports.Stream = exports;
@@ -23732,7 +25858,7 @@ exports.Transform = require('./lib/_stream_transform.js');
23732
25858
  exports.PassThrough = require('./lib/_stream_passthrough.js');
23733
25859
 
23734
25860
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/readable-stream/readable-browser.js","/node_modules/stream-http/node_modules/readable-stream")
23735
- },{"./lib/_stream_duplex.js":125,"./lib/_stream_passthrough.js":126,"./lib/_stream_readable.js":127,"./lib/_stream_transform.js":128,"./lib/_stream_writable.js":129,"_process":114,"buffer":104,"timers":135}],134:[function(require,module,exports){
25861
+ },{"./lib/_stream_duplex.js":130,"./lib/_stream_passthrough.js":131,"./lib/_stream_readable.js":132,"./lib/_stream_transform.js":133,"./lib/_stream_writable.js":134,"_process":119,"buffer":109,"timers":140}],139:[function(require,module,exports){
23736
25862
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23737
25863
  // Copyright Joyent, Inc. and other Node contributors.
23738
25864
  //
@@ -24031,7 +26157,7 @@ function simpleEnd(buf) {
24031
26157
  return buf && buf.length ? this.write(buf) : '';
24032
26158
  }
24033
26159
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/stream-http/node_modules/string_decoder/lib/string_decoder.js","/node_modules/stream-http/node_modules/string_decoder/lib")
24034
- },{"_process":114,"buffer":104,"safe-buffer":119,"timers":135}],135:[function(require,module,exports){
26160
+ },{"_process":119,"buffer":109,"safe-buffer":124,"timers":140}],140:[function(require,module,exports){
24035
26161
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24036
26162
  var nextTick = require('process/browser.js').nextTick;
24037
26163
  var apply = Function.prototype.apply;
@@ -24110,7 +26236,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
24110
26236
  delete immediateIds[id];
24111
26237
  };
24112
26238
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/timers-browserify/main.js","/node_modules/timers-browserify")
24113
- },{"_process":114,"buffer":104,"process/browser.js":114,"timers":135}],136:[function(require,module,exports){
26239
+ },{"_process":119,"buffer":109,"process/browser.js":119,"timers":140}],141:[function(require,module,exports){
24114
26240
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24115
26241
  var Buffer = require('buffer').Buffer
24116
26242
 
@@ -24141,7 +26267,7 @@ module.exports = function (buf) {
24141
26267
  }
24142
26268
 
24143
26269
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/to-arraybuffer/index.js","/node_modules/to-arraybuffer")
24144
- },{"_process":114,"buffer":104,"timers":135}],137:[function(require,module,exports){
26270
+ },{"_process":119,"buffer":109,"timers":140}],142:[function(require,module,exports){
24145
26271
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24146
26272
  // Copyright Joyent, Inc. and other Node contributors.
24147
26273
  //
@@ -24877,7 +27003,7 @@ Url.prototype.parseHost = function() {
24877
27003
  };
24878
27004
 
24879
27005
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/url/url.js","/node_modules/url")
24880
- },{"./util":138,"_process":114,"buffer":104,"punycode":115,"querystring":118,"timers":135}],138:[function(require,module,exports){
27006
+ },{"./util":143,"_process":119,"buffer":109,"punycode":120,"querystring":123,"timers":140}],143:[function(require,module,exports){
24881
27007
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24882
27008
  'use strict';
24883
27009
 
@@ -24897,7 +27023,7 @@ module.exports = {
24897
27023
  };
24898
27024
 
24899
27025
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/url/util.js","/node_modules/url")
24900
- },{"_process":114,"buffer":104,"timers":135}],139:[function(require,module,exports){
27026
+ },{"_process":119,"buffer":109,"timers":140}],144:[function(require,module,exports){
24901
27027
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24902
27028
 
24903
27029
  /**
@@ -24968,7 +27094,7 @@ function config (name) {
24968
27094
  }
24969
27095
 
24970
27096
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/util-deprecate/browser.js","/node_modules/util-deprecate")
24971
- },{"_process":114,"buffer":104,"timers":135}],140:[function(require,module,exports){
27097
+ },{"_process":119,"buffer":109,"timers":140}],145:[function(require,module,exports){
24972
27098
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24973
27099
  /**
24974
27100
  * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
@@ -25592,7 +27718,7 @@ exports.XMLHttpRequest = function() {
25592
27718
  };
25593
27719
 
25594
27720
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/xmlhttprequest/lib/XMLHttpRequest.js","/node_modules/xmlhttprequest/lib")
25595
- },{"_process":114,"buffer":104,"child_process":103,"fs":103,"http":120,"https":108,"timers":135,"url":137}],141:[function(require,module,exports){
27721
+ },{"_process":119,"buffer":109,"child_process":108,"fs":108,"http":125,"https":113,"timers":140,"url":142}],146:[function(require,module,exports){
25596
27722
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
25597
27723
  module.exports = extend
25598
27724
 
@@ -25615,5 +27741,5 @@ function extend() {
25615
27741
  }
25616
27742
 
25617
27743
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],require("timers").setImmediate,require("timers").clearImmediate,"/node_modules/xtend/immutable.js","/node_modules/xtend")
25618
- },{"_process":114,"buffer":104,"timers":135}]},{},[15])(15)
27744
+ },{"_process":119,"buffer":109,"timers":140}]},{},[15])(15)
25619
27745
  });