@quotemedia.com/streamer 2.24.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
 
@@ -5502,8 +5539,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5502
5539
 
5503
5540
  var AUTHSERVICEURLS = {
5504
5541
  "ping": "/g/ping",
5505
- "authenticate_get": "/g/authenticate/v0",
5506
- "authenticate_post": "/p/authenticate/v0/legacy=false"
5542
+ "authenticate_post": "/p/authenticate/v0/?legacy=false"
5507
5543
  };
5508
5544
 
5509
5545
  var EnduserAuthService = function () {
@@ -5522,15 +5558,11 @@ var EnduserAuthService = function () {
5522
5558
  this.http = http;
5523
5559
  this.host = config.host || "app.quotemedia.com";
5524
5560
  this.credentials = credentials;
5525
- this.method = config.method || "GET";
5561
+ this.method = "POST";
5526
5562
  }
5527
5563
 
5528
5564
  EnduserAuthService.prototype.login = function login(callback) {
5529
- if ('POST' == this.method) {
5530
- this.login_POST(callback);
5531
- } else {
5532
- this.login_GET(callback);
5533
- }
5565
+ this.login_POST(callback);
5534
5566
  };
5535
5567
 
5536
5568
  EnduserAuthService.prototype.login_POST = function login_POST(callback) {
@@ -5545,18 +5577,7 @@ var EnduserAuthService = function () {
5545
5577
  type: 'POST',
5546
5578
  contentType: 'application/json',
5547
5579
  data: JSON.stringify(req),
5548
- success: this.handleSuccess(callback),
5549
- failure: this.handleFailure(callback)
5550
- });
5551
- };
5552
-
5553
- EnduserAuthService.prototype.login_GET = function login_GET(callback) {
5554
- var url = this.host + AUTHSERVICEURLS.authenticate_get;
5555
- url += '/' + this.credentials.wmid + '/' + this.credentials.username + '/' + this.credentials.password + '/';
5556
- this.http({
5557
- url: url,
5558
5580
  dataType: "json",
5559
- timeout: 5000,
5560
5581
  success: this.handleSuccess(callback),
5561
5582
  failure: this.handleFailure(callback)
5562
5583
  });
@@ -5583,7 +5604,7 @@ var EnduserAuthService = function () {
5583
5604
 
5584
5605
  exports["default"] = EnduserAuthService;
5585
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")
5586
- },{"_process":114,"buffer":104,"timers":135}],13:[function(require,module,exports){
5607
+ },{"_process":119,"buffer":109,"timers":140}],13:[function(require,module,exports){
5587
5608
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
5588
5609
  "use strict";
5589
5610
 
@@ -5627,6 +5648,7 @@ fmt.Formatter = function () {
5627
5648
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECT_RESPONSE] = this._fmtconnectresponse;
5628
5649
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.CONNECTION_CLOSE] = this._fmtconnectionclose;
5629
5650
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.FLOW] = this._fmtflowmessage;
5651
+ this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.OPEN_FLOW] = this._fmtopenflowmessage;
5630
5652
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.SLOW_CONNECTION] = this._fmtslowconnection;
5631
5653
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS] = this._fmtstats;
5632
5654
  this.formatters[_streamerApi.messages.MessageTypeNames.ctrl.STATS_RESPONSE] = this._fmtstatsresponse;
@@ -5665,6 +5687,8 @@ fmt.Formatter = function () {
5665
5687
  this.formatters[_streamerApi.messages.MessageTypeNames.data.ALERT] = this._fmtalert;
5666
5688
  this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWS] = this._fmtnews;
5667
5689
  this.formatters[_streamerApi.messages.MessageTypeNames.data.TRADENOTIFICATION] = this._fmttradeNotification;
5690
+ this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSCMDFILTER] = this._fmtnewscmdfilter;
5691
+ this.formatters[_streamerApi.messages.MessageTypeNames.data.NEWSERROR] = this._fmtnewserror;
5668
5692
  };
5669
5693
 
5670
5694
  fmt.Formatter._UNKOWNTYPE = '__UNKNOWN__';
@@ -5814,6 +5838,8 @@ fmt.Formatter.prototype._fmtlastsale = function (val) {
5814
5838
  s.append(val.accumulatedVolume);
5815
5839
  s.sep();
5816
5840
  s.append(val.tick);
5841
+ s.sep();
5842
+ s.append(val.lastTradeExcode);
5817
5843
  return s.toString();
5818
5844
  };
5819
5845
  fmt.Formatter.prototype._fmtlimituplimitdown = function (val) {
@@ -5868,6 +5894,12 @@ fmt.Formatter.prototype._fmtivgreeks = function (val) {
5868
5894
  s.append(val.intrinsicValue);
5869
5895
  s.sep();
5870
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);
5871
5903
  return s.toString();
5872
5904
  };
5873
5905
 
@@ -6230,7 +6262,7 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
6230
6262
  s.sep();
6231
6263
  s.append(val.accountId);
6232
6264
  s.sep();
6233
- s.append(val.brokerId);
6265
+ s.append(val.enduserId);
6234
6266
  s.sep();
6235
6267
  s.append(val.message);
6236
6268
  s.sep();
@@ -6239,6 +6271,56 @@ fmt.Formatter.prototype._fmttradeNotification = function (val) {
6239
6271
  return s.toString();
6240
6272
  };
6241
6273
 
6274
+ fmt.Formatter.prototype._fmtnewscmdfilter = function (val) {
6275
+ var s = new fmt.StringBuilder();
6276
+ s.append("NEWS CMD_FILTER");
6277
+ s.sep();
6278
+ s.append(val.srcName + ": [");
6279
+ s.append(val.srcValue);
6280
+ s.append("]");
6281
+ s.sep();
6282
+ s.append(val.topicName + ": [");
6283
+ s.append(val.topicValue);
6284
+ s.append("]");
6285
+ s.sep();
6286
+ s.append(val.symbolName + ": [");
6287
+ s.append(val.symbolValue);
6288
+ s.append("]");
6289
+ s.sep();
6290
+ s.append(val.excodeName + ": ");
6291
+ s.append(val.excodeValue);
6292
+ s.sep();
6293
+ s.append(val.exgroupName + ": ");
6294
+ s.append(val.exgroupValue);
6295
+ s.sep();
6296
+ s.append(val.summaryName + ": ");
6297
+ s.append(val.summaryValue);
6298
+ s.sep();
6299
+ s.append(val.summlenName + ": ");
6300
+ s.append(val.summlenValue);
6301
+ s.sep();
6302
+ s.append(val.constituentName + ": ");
6303
+ s.append(val.constituentValue);
6304
+ s.sep();
6305
+ s.append(val.searchByExchangeName + ": ");
6306
+ s.append(val.searchByExchangeValue);
6307
+
6308
+ return s.toString();
6309
+ };
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
+
6242
6324
  fmt.Formatter.prototype._fmtheartbeat = function (val) {
6243
6325
  var s = new fmt.StringBuilder();
6244
6326
  s.append("HEARBEAT");
@@ -6469,6 +6551,14 @@ fmt.Formatter.prototype._fmtflowmessage = function (val) {
6469
6551
  return s.toString();
6470
6552
  };
6471
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
+
6472
6562
  fmt.Formatter.prototype.__baseresponse = function (val, s) {
6473
6563
  s.append(val.code);
6474
6564
  s.sep();
@@ -6518,7 +6608,7 @@ fmt.format = function (msg) {
6518
6608
 
6519
6609
  module.exports = fmt;
6520
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")
6521
- },{"./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){
6522
6612
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6523
6613
  "use strict";
6524
6614
 
@@ -6573,8 +6663,8 @@ function http(opts) {
6573
6663
  var url = opts.url;
6574
6664
  var success = opts.success || function () {};
6575
6665
  var failure = opts.failure || function () {};
6576
- var type = opts.type || "GET";
6577
- var applicationType = opts.applicationType;
6666
+ var type = opts.type || "POST";
6667
+ var contentType = opts.contentType;
6578
6668
  var data = opts.data;
6579
6669
  var timeout = opts.timeout;
6580
6670
 
@@ -6590,17 +6680,17 @@ function http(opts) {
6590
6680
  }
6591
6681
  }
6592
6682
  };
6593
- if (applicationType) {
6594
- xhr.setRequestHeader("Content-Type", applicationType);
6595
- }
6596
6683
  xhr.open(type, url, true);
6684
+ if (contentType) {
6685
+ xhr.setRequestHeader("Content-Type", contentType);
6686
+ }
6597
6687
  if (timeout) {
6598
6688
  xhr.timeout = timeout;
6599
6689
  }
6600
6690
  xhr.send(data);
6601
6691
  };
6602
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")
6603
- },{"_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){
6604
6694
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6605
6695
  "use strict";
6606
6696
 
@@ -6645,7 +6735,7 @@ _Streamer2["default"].dataTypes.get = function (msg) {
6645
6735
 
6646
6736
  module.exports = _Streamer2["default"];
6647
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")
6648
- },{"./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){
6649
6739
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6650
6740
  "use strict";
6651
6741
 
@@ -6705,7 +6795,7 @@ function asLogger(logger) {
6705
6795
  }
6706
6796
  }
6707
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")
6708
- },{"_process":114,"buffer":104,"timers":135}],17:[function(require,module,exports){
6798
+ },{"_process":119,"buffer":109,"timers":140}],17:[function(require,module,exports){
6709
6799
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6710
6800
  "use strict";
6711
6801
 
@@ -6781,7 +6871,7 @@ var lpad = exports.lpad = function lpad(num, len) {
6781
6871
  return _pad + _numstr;
6782
6872
  };
6783
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")
6784
- },{"_process":114,"buffer":104,"timers":135}],18:[function(require,module,exports){
6874
+ },{"_process":119,"buffer":109,"timers":140}],18:[function(require,module,exports){
6785
6875
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
6786
6876
  'use strict';
6787
6877
 
@@ -6999,7 +7089,7 @@ if (!Array.from) {
6999
7089
  }();
7000
7090
  }
7001
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")
7002
- },{"_process":114,"buffer":104,"timers":135}],19:[function(require,module,exports){
7092
+ },{"_process":119,"buffer":109,"timers":140}],19:[function(require,module,exports){
7003
7093
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7004
7094
  "use strict";
7005
7095
 
@@ -7061,7 +7151,7 @@ var BlockHeader = function () {
7061
7151
 
7062
7152
  exports["default"] = BlockHeader;
7063
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")
7064
- },{"./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){
7065
7155
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7066
7156
  "use strict";
7067
7157
 
@@ -7156,7 +7246,7 @@ var Bytes = function () {
7156
7246
 
7157
7247
  exports["default"] = Bytes;
7158
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")
7159
- },{"_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){
7160
7250
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7161
7251
  "use strict";
7162
7252
 
@@ -7307,7 +7397,7 @@ exports.UShort = UShort;
7307
7397
  exports.UInt = UInt;
7308
7398
  exports.ASCIIString = ASCIIString;
7309
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")
7310
- },{"_process":114,"buffer":104,"timers":135}],22:[function(require,module,exports){
7400
+ },{"_process":119,"buffer":109,"timers":140}],22:[function(require,module,exports){
7311
7401
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7312
7402
  "use strict";
7313
7403
 
@@ -7381,7 +7471,7 @@ var EnumValueTranslator = function () {
7381
7471
 
7382
7472
  exports["default"] = EnumValueTranslator;
7383
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")
7384
- },{"../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){
7385
7475
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7386
7476
  "use strict";
7387
7477
 
@@ -7413,7 +7503,7 @@ var LocateCodeInjector = function () {
7413
7503
 
7414
7504
  exports["default"] = LocateCodeInjector;
7415
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")
7416
- },{"../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){
7417
7507
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7418
7508
  "use strict";
7419
7509
 
@@ -7458,7 +7548,7 @@ var MessageHeader = function () {
7458
7548
 
7459
7549
  exports["default"] = MessageHeader;
7460
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")
7461
- },{"./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){
7462
7552
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
7463
7553
  "use strict";
7464
7554
 
@@ -8260,7 +8350,7 @@ var Qitch = function () {
8260
8350
 
8261
8351
  exports["default"] = Qitch;
8262
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")
8263
- },{"../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){
8264
8354
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8265
8355
  "use strict";
8266
8356
 
@@ -8323,7 +8413,7 @@ var BLOCK_HEADER_RESERVED_OFFSET = exports.BLOCK_HEADER_RESERVED_OFFSET = BLOCK_
8323
8413
  var BLOCK_HEADER_SEQUENCE_OFFSET = exports.BLOCK_HEADER_SEQUENCE_OFFSET = BLOCK_HEADER_RESERVED_OFFSET + BYTE_LENGTH;
8324
8414
  var BLOCK_HEADER_LENGTH = exports.BLOCK_HEADER_LENGTH = BLOCK_HEADER_SEQUENCE_OFFSET + INT_LENGTH;
8325
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")
8326
- },{"_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){
8327
8417
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8328
8418
  "use strict";
8329
8419
 
@@ -8346,7 +8436,7 @@ var MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET = exports.MAX_ENTITLEMENTS_PER_SUBS
8346
8436
 
8347
8437
  var LENGTH = exports.LENGTH = MAX_ENTITLEMENTS_PER_SUBSCRIPTION_OFFSET + _QitchConstants.INT_LENGTH;
8348
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")
8349
- },{"../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){
8350
8440
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8351
8441
  "use strict";
8352
8442
 
@@ -8362,7 +8452,7 @@ var REASON_OFFSET = exports.REASON_OFFSET = CODE_OFFSET + _QitchConstants.INT_LE
8362
8452
 
8363
8453
  var LENGTH = exports.LENGTH = REASON_OFFSET + _QitchConstants.REASON_LENGTH;
8364
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")
8365
- },{"../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){
8366
8456
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8367
8457
  "use strict";
8368
8458
 
@@ -8376,7 +8466,7 @@ var TYPEID = exports.TYPEID = 107;
8376
8466
  var SEQUENCE_NUMBER_OFFSET = exports.SEQUENCE_NUMBER_OFFSET = 0;
8377
8467
  var LENGTH = exports.LENGTH = SEQUENCE_NUMBER_OFFSET + _QitchConstants.INT_LENGTH;
8378
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")
8379
- },{"../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){
8380
8470
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8381
8471
  "use strict";
8382
8472
 
@@ -8390,7 +8480,7 @@ var TYPEID = exports.TYPEID = 101;
8390
8480
  var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8391
8481
  var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8392
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")
8393
- },{"../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){
8394
8484
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8395
8485
  "use strict";
8396
8486
 
@@ -8405,7 +8495,7 @@ var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8405
8495
  var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8406
8496
  var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
8407
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")
8408
- },{"../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){
8409
8499
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8410
8500
  "use strict";
8411
8501
 
@@ -8419,7 +8509,7 @@ var TYPEID = exports.TYPEID = 112;
8419
8509
  var TIMESTAMP_OFFSET = exports.TIMESTAMP_OFFSET = 0;
8420
8510
  var LENGTH = exports.LENGTH = TIMESTAMP_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
8421
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")
8422
- },{"../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){
8423
8513
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8424
8514
  "use strict";
8425
8515
 
@@ -8435,7 +8525,7 @@ var MAX_EXCEED_OFFSET = exports.MAX_EXCEED_OFFSET = TIMES_EXCEED_OFFSET + _Qitch
8435
8525
 
8436
8526
  var LENGTH = exports.LENGTH = MAX_EXCEED_OFFSET + _QitchConstants.INT_LENGTH;
8437
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")
8438
- },{"../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){
8439
8529
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8440
8530
  "use strict";
8441
8531
 
@@ -8449,7 +8539,7 @@ var TYPEID = exports.TYPEID = 108;
8449
8539
  var REQUEST_ID_OFFSET = exports.REQUEST_ID_OFFSET = 0;
8450
8540
  var LENGTH = exports.LENGTH = REQUEST_ID_OFFSET + _QitchConstants.INT_LENGTH;
8451
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")
8452
- },{"../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){
8453
8543
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8454
8544
  "use strict";
8455
8545
 
@@ -8472,7 +8562,7 @@ var NUMBER_OF_AVAILABLE_CONNECTIONS = exports.NUMBER_OF_AVAILABLE_CONNECTIONS =
8472
8562
 
8473
8563
  var LENGTH = exports.LENGTH = NUMBER_OF_AVAILABLE_CONNECTIONS + _QitchConstants.INT_LENGTH;
8474
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")
8475
- },{"../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){
8476
8566
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8477
8567
  "use strict";
8478
8568
 
@@ -8493,7 +8583,7 @@ var NUMBER_OF_TYPES_OFFSET = exports.NUMBER_OF_TYPES_OFFSET = NUMBER_OF_SYMBOLS_
8493
8583
 
8494
8584
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_TYPES_OFFSET + _QitchConstants.BYTE_LENGTH;
8495
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")
8496
- },{"../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){
8497
8587
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8498
8588
  "use strict";
8499
8589
 
@@ -8513,7 +8603,7 @@ var NUMBER_OF_INVALID_SYMBOLS_OFFSET = exports.NUMBER_OF_INVALID_SYMBOLS_OFFSET
8513
8603
 
8514
8604
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_INVALID_SYMBOLS_OFFSET + _QitchConstants.INT_LENGTH;
8515
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")
8516
- },{"../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){
8517
8607
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8518
8608
  "use strict";
8519
8609
 
@@ -8531,7 +8621,7 @@ var NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET = exports.NUMBER_OF_UNSUBSCRIBED_
8531
8621
 
8532
8622
  var FIXED_LENGTH = exports.FIXED_LENGTH = NUMBER_OF_UNSUBSCRIBED_ENTITLEMENTS_OFFSET + _QitchConstants.INT_LENGTH;
8533
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")
8534
- },{"../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){
8535
8625
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8536
8626
  "use strict";
8537
8627
 
@@ -8790,7 +8880,7 @@ var DecodeMessage = function () {
8790
8880
 
8791
8881
  exports["default"] = BlockDecoder;
8792
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")
8793
- },{"../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){
8794
8884
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8795
8885
  "use strict";
8796
8886
 
@@ -8852,7 +8942,7 @@ var MessageDecoder = function () {
8852
8942
 
8853
8943
  exports["default"] = MessageDecoder;
8854
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")
8855
- },{"../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){
8856
8946
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
8857
8947
  "use strict";
8858
8948
 
@@ -9096,7 +9186,7 @@ var MessageBlock = exports.MessageBlock = function (_SMessage2) {
9096
9186
 
9097
9187
  exports["default"] = QitchDecoder;
9098
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")
9099
- },{"../../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){
9100
9190
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9101
9191
  "use strict";
9102
9192
 
@@ -9146,7 +9236,7 @@ var ConnectResponseDecoder = function () {
9146
9236
 
9147
9237
  exports["default"] = ConnectResponseDecoder;
9148
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")
9149
- },{"../../../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){
9150
9240
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9151
9241
  "use strict";
9152
9242
 
@@ -9189,7 +9279,7 @@ var ConnectionCloseDecoder = function () {
9189
9279
 
9190
9280
  exports["default"] = ConnectionCloseDecoder;
9191
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")
9192
- },{"../../../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){
9193
9283
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9194
9284
  "use strict";
9195
9285
 
@@ -9231,7 +9321,7 @@ var HeartbeatDecoder = function () {
9231
9321
 
9232
9322
  exports["default"] = HeartbeatDecoder;
9233
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")
9234
- },{"../../../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){
9235
9325
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9236
9326
  "use strict";
9237
9327
 
@@ -9274,7 +9364,7 @@ var InitialDataSentDecoder = function () {
9274
9364
 
9275
9365
  exports["default"] = InitialDataSentDecoder;
9276
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")
9277
- },{"../../../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){
9278
9368
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9279
9369
  "use strict";
9280
9370
 
@@ -9316,7 +9406,7 @@ var ResubscribeMessageDecoder = function () {
9316
9406
 
9317
9407
  exports["default"] = ResubscribeMessageDecoder;
9318
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")
9319
- },{"../../../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){
9320
9410
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9321
9411
  "use strict";
9322
9412
 
@@ -9359,7 +9449,7 @@ var SlowConnectionDecoder = function () {
9359
9449
 
9360
9450
  exports["default"] = SlowConnectionDecoder;
9361
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")
9362
- },{"../../../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){
9363
9453
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9364
9454
  "use strict";
9365
9455
 
@@ -9409,7 +9499,7 @@ var StatsResponseDecoder = function () {
9409
9499
 
9410
9500
  exports["default"] = StatsResponseDecoder;
9411
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")
9412
- },{"../../../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){
9413
9503
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9414
9504
  "use strict";
9415
9505
 
@@ -9480,7 +9570,7 @@ var SubscribeResponseDecoder = function () {
9480
9570
 
9481
9571
  exports["default"] = SubscribeResponseDecoder;
9482
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")
9483
- },{"../../../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){
9484
9574
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9485
9575
  "use strict";
9486
9576
 
@@ -9538,7 +9628,7 @@ var UnsubscribeResponseDecoder = function () {
9538
9628
 
9539
9629
  exports["default"] = UnsubscribeResponseDecoder;
9540
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")
9541
- },{"../../../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){
9542
9632
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9543
9633
  "use strict";
9544
9634
 
@@ -9582,7 +9672,7 @@ var BookDeleteDecoder = function () {
9582
9672
 
9583
9673
  exports["default"] = BookDeleteDecoder;
9584
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")
9585
- },{"../../../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){
9586
9676
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9587
9677
  "use strict";
9588
9678
 
@@ -9637,7 +9727,7 @@ var BookOrderDecoder = function () {
9637
9727
 
9638
9728
  exports["default"] = BookOrderDecoder;
9639
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")
9640
- },{"../../../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){
9641
9731
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9642
9732
  "use strict";
9643
9733
 
@@ -9686,7 +9776,7 @@ var DerivativeInfoDecoder = function () {
9686
9776
 
9687
9777
  exports["default"] = DerivativeInfoDecoder;
9688
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")
9689
- },{"../../../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){
9690
9780
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9691
9781
  "use strict";
9692
9782
 
@@ -9733,6 +9823,9 @@ var IVGreeksDecoder = function () {
9733
9823
  out.mark = _Qitch2["default"].dec8double(src, offset + def.MARK_OFFSET);
9734
9824
  out.intrinsicValue = _Qitch2["default"].dec8double(src, offset + def.INTRINSIC_VALUE_OFFSET);
9735
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);
9736
9829
  return out;
9737
9830
  };
9738
9831
 
@@ -9741,7 +9834,7 @@ var IVGreeksDecoder = function () {
9741
9834
 
9742
9835
  exports["default"] = IVGreeksDecoder;
9743
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")
9744
- },{"../../../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){
9745
9838
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9746
9839
  "use strict";
9747
9840
 
@@ -9792,7 +9885,7 @@ var ImbalanceStatusDecoder = function () {
9792
9885
 
9793
9886
  exports["default"] = ImbalanceStatusDecoder;
9794
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")
9795
- },{"../../../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){
9796
9889
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9797
9890
  "use strict";
9798
9891
 
@@ -9860,7 +9953,7 @@ var IntervalDecoder = function () {
9860
9953
 
9861
9954
  exports["default"] = IntervalDecoder;
9862
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")
9863
- },{"../../../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){
9864
9957
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9865
9958
  "use strict";
9866
9959
 
@@ -9901,6 +9994,7 @@ var LastSaleDecoder = function () {
9901
9994
  out.tick = _Qitch2["default"].tick(src, offset + def.TICK_OFFSET);
9902
9995
  out.change = this._change(out);
9903
9996
  out.percentChange = this._percentChange(out);
9997
+ out.lastTradeExcode = _Qitch2["default"].excode(src, offset + def.LASTTRADE_EXCODE_OFFSET);
9904
9998
  return out;
9905
9999
  };
9906
10000
 
@@ -9923,7 +10017,7 @@ var LastSaleDecoder = function () {
9923
10017
 
9924
10018
  exports["default"] = LastSaleDecoder;
9925
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")
9926
- },{"../../../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){
9927
10021
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9928
10022
  "use strict";
9929
10023
 
@@ -9973,7 +10067,7 @@ var LimitUpLimitDownDecoder = function () {
9973
10067
 
9974
10068
  exports["default"] = LimitUpLimitDownDecoder;
9975
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")
9976
- },{"../../../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){
9977
10071
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
9978
10072
  "use strict";
9979
10073
 
@@ -10025,7 +10119,7 @@ var MMQuoteDecoder = function () {
10025
10119
 
10026
10120
  exports["default"] = MMQuoteDecoder;
10027
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")
10028
- },{"../../../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){
10029
10123
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10030
10124
  "use strict";
10031
10125
 
@@ -10081,7 +10175,7 @@ var NethousePositionDecoder = function () {
10081
10175
 
10082
10176
  exports["default"] = NethousePositionDecoder;
10083
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")
10084
- },{"../../../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){
10085
10179
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10086
10180
  "use strict";
10087
10181
 
@@ -10189,7 +10283,7 @@ var PricedataDecoder = function () {
10189
10283
 
10190
10284
  exports["default"] = PricedataDecoder;
10191
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")
10192
- },{"../../../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){
10193
10287
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10194
10288
  "use strict";
10195
10289
 
@@ -10231,7 +10325,7 @@ var PurgeBookDecoder = function () {
10231
10325
 
10232
10326
  exports["default"] = PurgeBookDecoder;
10233
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")
10234
- },{"../../../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){
10235
10329
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10236
10330
  "use strict";
10237
10331
 
@@ -10284,7 +10378,7 @@ var QuoteDecoder = function () {
10284
10378
 
10285
10379
  exports["default"] = QuoteDecoder;
10286
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")
10287
- },{"../../../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){
10288
10382
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10289
10383
  "use strict";
10290
10384
 
@@ -10337,7 +10431,7 @@ var SymbolInfoDecoder = function () {
10337
10431
 
10338
10432
  exports["default"] = SymbolInfoDecoder;
10339
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")
10340
- },{"../../../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){
10341
10435
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10342
10436
  "use strict";
10343
10437
 
@@ -10386,7 +10480,7 @@ var SymbolStatusDecoder = function () {
10386
10480
 
10387
10481
  exports["default"] = SymbolStatusDecoder;
10388
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")
10389
- },{"../../../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){
10390
10484
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10391
10485
  "use strict";
10392
10486
 
@@ -10442,7 +10536,7 @@ var TradeDecoder = function () {
10442
10536
 
10443
10537
  exports["default"] = TradeDecoder;
10444
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")
10445
- },{"../../../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){
10446
10540
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10447
10541
  "use strict";
10448
10542
 
@@ -10554,7 +10648,7 @@ var MessageEncoder = function () {
10554
10648
 
10555
10649
  exports["default"] = QitchEncoder;
10556
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")
10557
- },{"../../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){
10558
10652
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10559
10653
  "use strict";
10560
10654
 
@@ -10597,7 +10691,7 @@ var FlowMessageEncoder = function () {
10597
10691
 
10598
10692
  exports["default"] = FlowMessageEncoder;
10599
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")
10600
- },{"../../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){
10601
10695
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10602
10696
  "use strict";
10603
10697
 
@@ -10640,7 +10734,7 @@ var StatsMessageEncoder = function () {
10640
10734
 
10641
10735
  exports["default"] = StatsMessageEncoder;
10642
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")
10643
- },{"../../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){
10644
10738
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10645
10739
  "use strict";
10646
10740
 
@@ -10709,7 +10803,7 @@ var SubscribeMessageEncoder = function () {
10709
10803
 
10710
10804
  exports["default"] = SubscribeMessageEncoder;
10711
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")
10712
- },{"../../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){
10713
10807
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10714
10808
  "use strict";
10715
10809
 
@@ -10725,7 +10819,7 @@ var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = TIMESTAMP_OFFSET + _QitchConstants.T
10725
10819
  var ORDER_REFERENCE_OFFSET = exports.ORDER_REFERENCE_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
10726
10820
  var LENGTH = exports.LENGTH = ORDER_REFERENCE_OFFSET + _QitchConstants.ORDER_REFERENCE_LENGTH;
10727
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")
10728
- },{"../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){
10729
10823
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10730
10824
  "use strict";
10731
10825
 
@@ -10846,7 +10940,7 @@ BookOrderFlags.prototype.PRICE_MUSTBEFILLED_MASK = 0x40000000;
10846
10940
  BookOrderFlags.prototype.FUTURESETTLEMENT_MASK = 0x0800;
10847
10941
  BookOrderFlags.prototype.NEXTDAYSETTLEMENT_MASK = 0x1000;
10848
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")
10849
- },{"../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){
10850
10944
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10851
10945
  "use strict";
10852
10946
 
@@ -10867,12 +10961,12 @@ var CALLPUTINDICATOR_OFFSET = exports.CALLPUTINDICATOR_OFFSET = CONTRACTSIZE_OFF
10867
10961
  var MINTICKSIZE_OFFSET = exports.MINTICKSIZE_OFFSET = CALLPUTINDICATOR_OFFSET + _QitchConstants.ASCIICHAR_LENGTH;
10868
10962
  var LENGTH = exports.LENGTH = MINTICKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10869
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")
10870
- },{"../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){
10871
10965
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10872
10966
  "use strict";
10873
10967
 
10874
10968
  exports.__esModule = true;
10875
- 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;
10876
10970
 
10877
10971
  var _QitchConstants = require("../QitchConstants");
10878
10972
 
@@ -10892,10 +10986,13 @@ var LAST_CALCULATION_OFFSET = exports.LAST_CALCULATION_OFFSET = ASK_IMPLIED_VOLA
10892
10986
  var MARK_OFFSET = exports.MARK_OFFSET = LAST_CALCULATION_OFFSET + _QitchConstants.TIMESTAMP_LENGTH;
10893
10987
  var INTRINSIC_VALUE_OFFSET = exports.INTRINSIC_VALUE_OFFSET = MARK_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10894
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;
10895
10992
 
10896
- var LENGTH = exports.LENGTH = EXTRINSIC_VALUE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10993
+ var LENGTH = exports.LENGTH = MARK_CHANGE_PERCENT_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10897
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")
10898
- },{"../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){
10899
10996
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10900
10997
  "use strict";
10901
10998
 
@@ -10918,7 +11015,7 @@ var FARINDICATIVEPRICE_OFFSET = exports.FARINDICATIVEPRICE_OFFSET = NEARINDICATI
10918
11015
  var PRICEVARIATION_OFFSET = exports.PRICEVARIATION_OFFSET = FARINDICATIVEPRICE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10919
11016
  var LENGTH = exports.LENGTH = PRICEVARIATION_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10920
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")
10921
- },{"../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){
10922
11019
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10923
11020
  "use strict";
10924
11021
 
@@ -10943,12 +11040,12 @@ var TRADEVALUE_OFFSET = exports.TRADEVALUE_OFFSET = LASTTIME_OFFSET + _QitchCons
10943
11040
  var LONGDECIMALVOLUME_OFFSET = exports.LONGDECIMALVOLUME_OFFSET = TRADEVALUE_OFFSET + _QitchConstants.LONG_LENGTH;
10944
11041
  var LENGTH = exports.LENGTH = LONGDECIMALVOLUME_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10945
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")
10946
- },{"../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){
10947
11044
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10948
11045
  "use strict";
10949
11046
 
10950
11047
  exports.__esModule = true;
10951
- 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;
10952
11049
 
10953
11050
  var _QitchConstants = require("../QitchConstants");
10954
11051
 
@@ -10960,9 +11057,10 @@ var LAST_OFFSET = exports.LAST_OFFSET = SYMBOL_OFFSET + _QitchConstants.LOCATECO
10960
11057
  var PREVCLOSE_OFFSET = exports.PREVCLOSE_OFFSET = LAST_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10961
11058
  var ACCUMULATEDVOLUME_OFFSET = exports.ACCUMULATEDVOLUME_OFFSET = PREVCLOSE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
10962
11059
  var TICK_OFFSET = exports.TICK_OFFSET = ACCUMULATEDVOLUME_OFFSET + _QitchConstants.LONG_LENGTH;
10963
- 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;
10964
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")
10965
- },{"../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){
10966
11064
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
10967
11065
  "use strict";
10968
11066
 
@@ -11002,7 +11100,7 @@ var LimitUpLimitDownFlags = exports.LimitUpLimitDownFlags = function () {
11002
11100
  LimitUpLimitDownFlags.prototype.BID_NOT_EXECUTABLE = 0x1;
11003
11101
  LimitUpLimitDownFlags.prototype.ASK_NOT_EXECUTABLE = 0x2;
11004
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")
11005
- },{"../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){
11006
11104
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11007
11105
  "use strict";
11008
11106
 
@@ -11028,7 +11126,7 @@ var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = SHARESPERSIZEUNIT_OF
11028
11126
  var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11029
11127
  var LENGTH = exports.LENGTH = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11030
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")
11031
- },{"../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){
11032
11130
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11033
11131
  "use strict";
11034
11132
 
@@ -11056,7 +11154,7 @@ var BUYBLOCKTRANSACTIONS_OFFSET = exports.BUYBLOCKTRANSACTIONS_OFFSET = SELLTRAN
11056
11154
  var SELLBLOCKTRANSACTIONS_OFFSET = exports.SELLBLOCKTRANSACTIONS_OFFSET = BUYBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
11057
11155
  var LENGTH = exports.LENGTH = SELLBLOCKTRANSACTIONS_OFFSET + _QitchConstants.INT_LENGTH;
11058
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")
11059
- },{"../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){
11060
11158
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11061
11159
  "use strict";
11062
11160
 
@@ -11122,7 +11220,7 @@ var PricedataFlags = exports.PricedataFlags = function () {
11122
11220
  PricedataFlags.prototype.ANNUALHIGH_MASK = 0x01;
11123
11221
  PricedataFlags.prototype.ANNUALLOW_MASK = 0x02;
11124
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")
11125
- },{"../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){
11126
11224
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11127
11225
  "use strict";
11128
11226
 
@@ -11136,7 +11234,7 @@ var TYPEID = exports.TYPEID = 6;
11136
11234
  var SYMBOL_OFFSET = exports.SYMBOL_OFFSET = 0;
11137
11235
  var LENGTH = exports.LENGTH = SYMBOL_OFFSET + _QitchConstants.LOCATECODE_LENGTH;
11138
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")
11139
- },{"../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){
11140
11238
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11141
11239
  "use strict";
11142
11240
 
@@ -11163,7 +11261,7 @@ var DECIMALASKSIZE_OFFSET = exports.DECIMALASKSIZE_OFFSET = SHARESPERSIZEUNIT_OF
11163
11261
  var DECIMALBIDSIZE_OFFSET = exports.DECIMALBIDSIZE_OFFSET = DECIMALASKSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11164
11262
  var LENGTH = exports.LENGTH = DECIMALBIDSIZE_OFFSET + _QitchConstants.DOUBLE_LENGTH;
11165
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")
11166
- },{"../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){
11167
11265
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11168
11266
  "use strict";
11169
11267
 
@@ -11187,7 +11285,7 @@ var CAVEATEMPTOR_OFFSET = exports.CAVEATEMPTOR_OFFSET = PQE_OFFSET + _QitchConst
11187
11285
  var BOARDLOTSIZE_OFFSET = exports.BOARDLOTSIZE_OFFSET = CAVEATEMPTOR_OFFSET + _QitchConstants.BYTE_LENGTH;
11188
11286
  var LENGTH = exports.LENGTH = BOARDLOTSIZE_OFFSET + _QitchConstants.INT_LENGTH;
11189
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")
11190
- },{"../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){
11191
11289
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11192
11290
  "use strict";
11193
11291
 
@@ -11209,7 +11307,7 @@ var NOTE_OFFSET = exports.NOTE_OFFSET = OPENINGTIME_OFFSET + _QitchConstants.TIM
11209
11307
 
11210
11308
  var LENGTH = exports.LENGTH = NOTE_OFFSET + _QitchConstants.NOTE_LENGTH;
11211
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")
11212
- },{"../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){
11213
11311
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11214
11312
  "use strict";
11215
11313
 
@@ -11339,7 +11437,7 @@ TradeFlags.prototype.IGNOREOPEN_MASK = 0x00000100;
11339
11437
  TradeFlags.prototype.TRADETHROUGHEXEMPT = 0x00000200;
11340
11438
  TradeFlags.prototype.CORRECTION_MASK = 0x08000000;
11341
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")
11342
- },{"../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){
11343
11441
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11344
11442
  "use strict";
11345
11443
 
@@ -11389,7 +11487,7 @@ var SMessageDecoder = function () {
11389
11487
 
11390
11488
  exports["default"] = SMessageDecoder;
11391
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")
11392
- },{"./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){
11393
11491
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11394
11492
  "use strict";
11395
11493
 
@@ -11436,7 +11534,7 @@ var SMessageEncoder = function () {
11436
11534
 
11437
11535
  exports["default"] = SMessageEncoder;
11438
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")
11439
- },{"./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){
11440
11538
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11441
11539
  "use strict";
11442
11540
 
@@ -11490,7 +11588,7 @@ var SMessageDecoder_1 = function () {
11490
11588
 
11491
11589
  exports["default"] = SMessageDecoder_1;
11492
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")
11493
- },{"../../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){
11494
11592
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11495
11593
  "use strict";
11496
11594
 
@@ -11540,7 +11638,7 @@ var SMessageEncoder_1 = function () {
11540
11638
 
11541
11639
  exports["default"] = SMessageEncoder_1;
11542
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")
11543
- },{"../../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){
11544
11642
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11545
11643
  "use strict";
11546
11644
 
@@ -11585,171 +11683,2139 @@ exports["default"] = new function () {
11585
11683
  this.HEADER_LENGTH_CHAR = this.PAYLOADLENGTH_OFFSET + this.UINT_LENGTH_CHAR;
11586
11684
  }();
11587
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")
11588
- },{"_process":114,"buffer":104,"timers":135}],92:[function(require,module,exports){
11686
+ },{"_process":119,"buffer":109,"timers":140}],92:[function(require,module,exports){
11589
11687
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
11590
- "use strict";
11688
+ 'use strict';
11591
11689
 
11592
- exports.__esModule = true;
11593
- /* @see http://usejsdoc.org */
11690
+ // Generated by CoffeeScript 1.7.1
11594
11691
 
11595
- /**
11596
- * Streamer api namespace.
11597
- * @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)
11598
11697
  */
11599
11698
 
11600
- var LIBRARY_NAME = exports.LIBRARY_NAME = "JavaScript";
11601
- var VERSION = exports.VERSION = "2.24.0";
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
+ };
11602
11711
 
11603
- /**
11604
- * Streamer message api namespace.
11605
- * @namespace
11606
- */
11607
- var messages = exports.messages = {};
11712
+ Frame = function () {
11713
+ var unmarshallSingle;
11608
11714
 
11609
- /**
11610
- * Streamer control message namespace. * @namespace
11611
- */
11612
- messages.control = {};
11715
+ function Frame(command, headers, body) {
11716
+ this.command = command;
11717
+ this.headers = headers != null ? headers : {};
11718
+ this.body = body != null ? body : '';
11719
+ }
11613
11720
 
11614
- /**
11615
- * Streamer market data message namespace.
11616
- * @namespace
11617
- */
11618
- messages.market = {};
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
+ };
11619
11740
 
11620
- /* ****************************************************************************************************************** */
11741
+ Frame.sizeOfUTF8 = function (s) {
11742
+ if (s) {
11743
+ return encodeURI(s).match(/%..|./g).length;
11744
+ } else {
11745
+ return 0;
11746
+ }
11747
+ };
11621
11748
 
11622
- /**
11623
- *
11624
- * @type {string}
11625
- */
11626
- messages.JSON_TYPE_PROPERTY = '@T';
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
+ };
11627
11797
 
11628
- /**
11629
- * Message type identifiers.<br>
11630
- * Ensure identifiers are unique within this name space.
11631
- * @namespace
11632
- */
11633
- messages.MessageTypeNames = {
11634
- /**
11635
- * Name space for control message type identifiers.
11636
- * @namespace
11637
- */
11638
- ctrl: {
11639
- HEARTBEAT: 'C1',
11640
- SUBSCRIBE: 'C2',
11641
- SUBSCRIBE_RESPONSE: 'C3',
11642
- UNSUBSCRIBE_RESPONSE: 'C4',
11643
- CONNECT_RESPONSE: 'C5',
11644
- CONNECTION_CLOSE: 'C6',
11645
- FLOW: 'C7',
11646
- SLOW_CONNECTION: 'C8',
11647
- INITIAL_DATA_SENT: 'C9',
11648
- RESUBSCRIBE_MESSAGE: 'C10',
11649
- STATS: 'C12',
11650
- STATS_RESPONSE: 'C13',
11651
- EXCHANGE_SUBSCRIBE: 'C14',
11652
- EXCHANGE_RESPONSE: 'C15',
11653
- EXCHANGE_UNSUBSCRIBE_RESPONSE: 'C16',
11654
- NEWS_SUBSCRIBE: 'C17',
11655
- NEWS_SUBSCRIBE_RESPONSE: 'C18',
11656
- ALERTS_SUBUNSUB: 'C19',
11657
- ALERTS_SUBUNSUB_RESPONSE: 'C20',
11658
- TRADE_SUBSCRIBE: 'C21',
11659
- TRADE_SUBSCRIBE_RESPONSE: 'C22',
11660
- NEWS_UNSUBSCRIBE_RESPONSE: 'C23',
11661
- NEWS_COMMAND: 'C24',
11662
- NEWS_CMD_FILTER_REFRESH_RESPONSE: 'C25',
11663
- NEWS_CMD_FILTER_RESPONSE: 'C26'
11664
- },
11665
- /**
11666
- * Name space for data message type identifiers.<br>
11667
- * Prefix with 'D'.
11668
- * @namespace
11669
- */
11670
- data: {
11671
- QUOTE: 'D1',
11672
- PRICEDATA: 'D2',
11673
- TRADE: 'D3',
11674
- BOOKORDER: 'D4',
11675
- BOOKDELETE: 'D5',
11676
- PURGEBOOK: 'D6',
11677
- MMQUOTE: 'D7',
11678
- INTERVAL: 'D8',
11679
- NETHOUSEPOSITION: 'D9',
11680
- SYMBOLINFO: 'D10',
11681
- SYMBOLSTATUS: 'D11',
11682
- DERIVATIVEINFO: 'D12',
11683
- LASTSALE: 'D13',
11684
- LIMITUPLIMITDOWN: 'D14',
11685
- IVGREEKS: 'D15',
11686
- IMBALANCESTATUS: 'D16',
11687
- ALERT: 'D17',
11688
- NEWS: 'D18',
11689
- TRADENOTIFICATION: 'D19'
11690
- }
11691
- };
11798
+ Frame.marshall = function (command, headers, body) {
11799
+ var frame;
11800
+ frame = new Frame(command, headers, body);
11801
+ return frame.toString() + Byte.NULL;
11802
+ };
11692
11803
 
11693
- /**
11694
- * Super type of all exports.
11695
- * @abstract
11696
- * @constructor
11697
- */
11698
- messages.Message = function () {};
11804
+ return Frame;
11805
+ }();
11699
11806
 
11700
- messages.Message.prototype.init = function (typeid) {
11701
- this[messages.JSON_TYPE_PROPERTY] = typeid;
11702
- };
11807
+ Client = function () {
11808
+ var now;
11703
11809
 
11704
- /* ****************************************************************************************************************** */
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
+ }
11705
11822
 
11706
- /**
11707
- * Creates a control message base object.
11708
- * @abstract
11709
- * @constructor
11710
- */
11711
- messages.control.CtrlMessage = function () {};
11712
- messages.control.CtrlMessage.prototype = new messages.Message();
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
+ };
11713
11827
 
11714
- /**
11715
- * Creates a heartbeat message.
11716
- * @constructor
11717
- */
11718
- messages.control.Heartbeat = function () {
11719
- this.init(messages.MessageTypeNames.ctrl.HEARTBEAT);
11828
+ now = function now() {
11829
+ if (Date.now) {
11830
+ return Date.now();
11831
+ } else {
11832
+ return new Date().valueOf;
11833
+ }
11834
+ };
11720
11835
 
11721
- /**
11722
- * Timestamp when heartbeat was generated.
11723
- * @type {number|JSBI} for connections with JSON format timestamp will be decoded as number,
11724
- * for connections with QITCH format - {@link JSBI.BigInt}
11725
- */
11726
- this.timestamp = null;
11727
- };
11728
- messages.control.Heartbeat.prototype = new messages.control.CtrlMessage();
11729
- /**
11730
- * Creates a stats message.
11731
- * @constructor
11732
- */
11733
- messages.control.StatsMessage = function () {
11734
- this.init(messages.MessageTypeNames.ctrl.STATS);
11735
- };
11736
- messages.control.StatsMessage.prototype = new messages.control.CtrlMessage();
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
+ };
11737
11854
 
11738
- /**
11739
- * Creates a subscribe message.
11740
- * @constructor
11741
- */
11742
- messages.control.SubscribeMessage = function () {
11743
- this.init(messages.MessageTypeNames.ctrl.SUBSCRIBE);
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
+ };
11744
11901
 
11745
- /**
11746
- * The action the server will taken when receiving this message.
11747
- * @type {string}
11748
- * @see exports.messages.control.Action
11749
- */
11750
- this.action = null;
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
+ };
11751
11925
 
11752
- /**
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
+ /**
11753
13819
  * List of ticker symbols to subscribe/un-subscribe for.
11754
13820
  * @type {Array.<string>}
11755
13821
  */
@@ -12136,6 +14202,39 @@ messages.control.FlowMessage = function () {
12136
14202
  };
12137
14203
  messages.control.FlowMessage.prototype = new messages.control.CtrlMessage();
12138
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
+
12139
14238
  /**
12140
14239
  * Creates a stats response message.
12141
14240
  * @constructor
@@ -12572,7 +14671,7 @@ messages.market.OrderChangeType = {
12572
14671
  'E': "EXECUTE"
12573
14672
  };
12574
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")
12575
- },{"_process":114,"buffer":104,"timers":135}],93:[function(require,module,exports){
14674
+ },{"_process":119,"buffer":109,"timers":140}],97:[function(require,module,exports){
12576
14675
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12577
14676
  "use strict";
12578
14677
 
@@ -12626,7 +14725,7 @@ var close = exports.close = function close(moreArgs) {
12626
14725
  return event("close", moreArgs);
12627
14726
  };
12628
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")
12629
- },{"./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){
12630
14729
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12631
14730
  'use strict';
12632
14731
 
@@ -12751,7 +14850,57 @@ var getMessageName = exports.getMessageName = function () {
12751
14850
  };
12752
14851
  }();
12753
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")
12754
- },{"./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){
12755
14904
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12756
14905
  "use strict";
12757
14906
 
@@ -12810,7 +14959,7 @@ var JsonTransmitter = function () {
12810
14959
 
12811
14960
  exports["default"] = JsonTransmitter;
12812
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")
12813
- },{"../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){
12814
14963
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12815
14964
  "use strict";
12816
14965
 
@@ -12934,7 +15083,7 @@ QitchTransmitter.prototype.DEFAULT_BUFFERSIZE = 4096;
12934
15083
 
12935
15084
  exports["default"] = QitchTransmitter;
12936
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")
12937
- },{"../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){
12938
15087
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
12939
15088
  "use strict";
12940
15089
 
@@ -13024,7 +15173,7 @@ var SMessageTransmitter = function () {
13024
15173
 
13025
15174
  exports["default"] = SMessageTransmitter;
13026
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")
13027
- },{"../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){
13028
15177
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13029
15178
  "use strict";
13030
15179
 
@@ -13075,7 +15224,7 @@ var asciiStringToArrayBuffer = exports.asciiStringToArrayBuffer = function ascii
13075
15224
  return buf;
13076
15225
  };
13077
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")
13078
- },{"_process":114,"buffer":104,"timers":135}],99:[function(require,module,exports){
15227
+ },{"_process":119,"buffer":109,"timers":140}],104:[function(require,module,exports){
13079
15228
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13080
15229
 
13081
15230
  module.exports = function equal(arr1, arr2) {
@@ -13088,7 +15237,7 @@ module.exports = function equal(arr1, arr2) {
13088
15237
  }
13089
15238
 
13090
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")
13091
- },{"_process":114,"buffer":104,"timers":135}],100:[function(require,module,exports){
15240
+ },{"_process":119,"buffer":109,"timers":140}],105:[function(require,module,exports){
13092
15241
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13093
15242
  'use strict'
13094
15243
 
@@ -13243,7 +15392,7 @@ function fromByteArray (uint8) {
13243
15392
  }
13244
15393
 
13245
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")
13246
- },{"_process":114,"buffer":104,"timers":135}],101:[function(require,module,exports){
15395
+ },{"_process":119,"buffer":109,"timers":140}],106:[function(require,module,exports){
13247
15396
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
13248
15397
  ;(function (globalObject) {
13249
15398
  'use strict';
@@ -16149,15 +18298,15 @@ function fromByteArray (uint8) {
16149
18298
  })(this);
16150
18299
 
16151
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")
16152
- },{"_process":114,"buffer":104,"timers":135}],102:[function(require,module,exports){
18301
+ },{"_process":119,"buffer":109,"timers":140}],107:[function(require,module,exports){
16153
18302
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16154
18303
 
16155
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")
16156
- },{"_process":114,"buffer":104,"timers":135}],103:[function(require,module,exports){
18305
+ },{"_process":119,"buffer":109,"timers":140}],108:[function(require,module,exports){
16157
18306
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16158
18307
 
16159
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")
16160
- },{"_process":114,"buffer":104,"timers":135}],104:[function(require,module,exports){
18309
+ },{"_process":119,"buffer":109,"timers":140}],109:[function(require,module,exports){
16161
18310
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
16162
18311
  /*!
16163
18312
  * The buffer module from node.js, for the browser.
@@ -17897,7 +20046,7 @@ function numberIsNaN (obj) {
17897
20046
  }
17898
20047
 
17899
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")
17900
- },{"_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){
17901
20050
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
17902
20051
  module.exports = {
17903
20052
  "100": "Continue",
@@ -17965,7 +20114,7 @@ module.exports = {
17965
20114
  }
17966
20115
 
17967
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")
17968
- },{"_process":114,"buffer":104,"timers":135}],106:[function(require,module,exports){
20117
+ },{"_process":119,"buffer":109,"timers":140}],111:[function(require,module,exports){
17969
20118
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
17970
20119
  // Copyright Joyent, Inc. and other Node contributors.
17971
20120
  //
@@ -18076,7 +20225,7 @@ function objectToString(o) {
18076
20225
  }
18077
20226
 
18078
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")
18079
- },{"_process":114,"buffer":104,"timers":135}],107:[function(require,module,exports){
20228
+ },{"_process":119,"buffer":109,"timers":140}],112:[function(require,module,exports){
18080
20229
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18081
20230
  // Copyright Joyent, Inc. and other Node contributors.
18082
20231
  //
@@ -18603,7 +20752,7 @@ function functionBindPolyfill(context) {
18603
20752
  }
18604
20753
 
18605
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")
18606
- },{"_process":114,"buffer":104,"timers":135}],108:[function(require,module,exports){
20755
+ },{"_process":119,"buffer":109,"timers":140}],113:[function(require,module,exports){
18607
20756
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18608
20757
  var http = require('http')
18609
20758
  var url = require('url')
@@ -18638,7 +20787,7 @@ function validateParams (params) {
18638
20787
  }
18639
20788
 
18640
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")
18641
- },{"_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){
18642
20791
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18643
20792
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
18644
20793
  var e, m
@@ -18726,7 +20875,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
18726
20875
  }
18727
20876
 
18728
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")
18729
- },{"_process":114,"buffer":104,"timers":135}],110:[function(require,module,exports){
20878
+ },{"_process":119,"buffer":109,"timers":140}],115:[function(require,module,exports){
18730
20879
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18731
20880
  if (typeof Object.create === 'function') {
18732
20881
  // implementation from standard node.js 'util' module
@@ -18753,12 +20902,12 @@ if (typeof Object.create === 'function') {
18753
20902
  }
18754
20903
 
18755
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")
18756
- },{"_process":114,"buffer":104,"timers":135}],111:[function(require,module,exports){
20905
+ },{"_process":119,"buffer":109,"timers":140}],116:[function(require,module,exports){
18757
20906
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18758
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});
18759
20908
 
18760
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")
18761
- },{"_process":114,"buffer":104,"timers":135}],112:[function(require,module,exports){
20910
+ },{"_process":119,"buffer":109,"timers":140}],117:[function(require,module,exports){
18762
20911
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
18763
20912
  /*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
18764
20913
  ;(function () {
@@ -19664,7 +21813,7 @@ if (typeof Object.create === 'function') {
19664
21813
  }).call(this);
19665
21814
 
19666
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")
19667
- },{"_process":114,"buffer":104,"timers":135}],113:[function(require,module,exports){
21816
+ },{"_process":119,"buffer":109,"timers":140}],118:[function(require,module,exports){
19668
21817
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19669
21818
  'use strict';
19670
21819
 
@@ -19712,7 +21861,7 @@ function nextTick(fn, arg1, arg2, arg3) {
19712
21861
 
19713
21862
 
19714
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")
19715
- },{"_process":114,"buffer":104,"timers":135}],114:[function(require,module,exports){
21864
+ },{"_process":119,"buffer":109,"timers":140}],119:[function(require,module,exports){
19716
21865
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19717
21866
  // shim for using process in browser
19718
21867
  var process = module.exports = {};
@@ -19900,7 +22049,7 @@ process.chdir = function (dir) {
19900
22049
  process.umask = function() { return 0; };
19901
22050
 
19902
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")
19903
- },{"_process":114,"buffer":104,"timers":135}],115:[function(require,module,exports){
22052
+ },{"_process":119,"buffer":109,"timers":140}],120:[function(require,module,exports){
19904
22053
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
19905
22054
  /*! https://mths.be/punycode v1.4.1 by @mathias */
19906
22055
  ;(function(root) {
@@ -20437,7 +22586,7 @@ process.umask = function() { return 0; };
20437
22586
  }(this));
20438
22587
 
20439
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")
20440
- },{"_process":114,"buffer":104,"timers":135}],116:[function(require,module,exports){
22589
+ },{"_process":119,"buffer":109,"timers":140}],121:[function(require,module,exports){
20441
22590
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20442
22591
  // Copyright Joyent, Inc. and other Node contributors.
20443
22592
  //
@@ -20525,7 +22674,7 @@ var isArray = Array.isArray || function (xs) {
20525
22674
  };
20526
22675
 
20527
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")
20528
- },{"_process":114,"buffer":104,"timers":135}],117:[function(require,module,exports){
22677
+ },{"_process":119,"buffer":109,"timers":140}],122:[function(require,module,exports){
20529
22678
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20530
22679
  // Copyright Joyent, Inc. and other Node contributors.
20531
22680
  //
@@ -20614,7 +22763,7 @@ var objectKeys = Object.keys || function (obj) {
20614
22763
  };
20615
22764
 
20616
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")
20617
- },{"_process":114,"buffer":104,"timers":135}],118:[function(require,module,exports){
22766
+ },{"_process":119,"buffer":109,"timers":140}],123:[function(require,module,exports){
20618
22767
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20619
22768
  'use strict';
20620
22769
 
@@ -20622,7 +22771,7 @@ exports.decode = exports.parse = require('./decode');
20622
22771
  exports.encode = exports.stringify = require('./encode');
20623
22772
 
20624
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")
20625
- },{"./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){
20626
22775
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20627
22776
  /* eslint-disable node/no-deprecated-api */
20628
22777
  var buffer = require('buffer')
@@ -20688,7 +22837,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
20688
22837
  }
20689
22838
 
20690
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")
20691
- },{"_process":114,"buffer":104,"timers":135}],120:[function(require,module,exports){
22840
+ },{"_process":119,"buffer":109,"timers":140}],125:[function(require,module,exports){
20692
22841
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20693
22842
  var ClientRequest = require('./lib/request')
20694
22843
  var response = require('./lib/response')
@@ -20776,7 +22925,7 @@ http.METHODS = [
20776
22925
  'UNSUBSCRIBE'
20777
22926
  ]
20778
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")
20779
- },{"./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){
20780
22929
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20781
22930
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
20782
22931
 
@@ -20853,7 +23002,7 @@ function isFunction (value) {
20853
23002
  xhr = null // Help gc
20854
23003
 
20855
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")
20856
- },{"_process":114,"buffer":104,"timers":135}],122:[function(require,module,exports){
23005
+ },{"_process":119,"buffer":109,"timers":140}],127:[function(require,module,exports){
20857
23006
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
20858
23007
  var capability = require('./capability')
20859
23008
  var inherits = require('inherits')
@@ -21184,7 +23333,7 @@ var unsafeHeaders = [
21184
23333
  ]
21185
23334
 
21186
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")
21187
- },{"./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){
21188
23337
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21189
23338
  var capability = require('./capability')
21190
23339
  var inherits = require('inherits')
@@ -21412,7 +23561,7 @@ IncomingMessage.prototype._onXHRProgress = function () {
21412
23561
  }
21413
23562
 
21414
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")
21415
- },{"./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){
21416
23565
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21417
23566
  var toString = {}.toString;
21418
23567
 
@@ -21421,7 +23570,7 @@ module.exports = Array.isArray || function (arr) {
21421
23570
  };
21422
23571
 
21423
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")
21424
- },{"_process":114,"buffer":104,"timers":135}],125:[function(require,module,exports){
23573
+ },{"_process":119,"buffer":109,"timers":140}],130:[function(require,module,exports){
21425
23574
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21426
23575
  // Copyright Joyent, Inc. and other Node contributors.
21427
23576
  //
@@ -21555,7 +23704,7 @@ Duplex.prototype._destroy = function (err, cb) {
21555
23704
  pna.nextTick(cb, err);
21556
23705
  };
21557
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")
21558
- },{"./_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){
21559
23708
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21560
23709
  // Copyright Joyent, Inc. and other Node contributors.
21561
23710
  //
@@ -21605,7 +23754,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
21605
23754
  cb(null, chunk);
21606
23755
  };
21607
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")
21608
- },{"./_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){
21609
23758
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
21610
23759
  // Copyright Joyent, Inc. and other Node contributors.
21611
23760
  //
@@ -22627,7 +24776,7 @@ function indexOf(xs, x) {
22627
24776
  return -1;
22628
24777
  }
22629
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")
22630
- },{"./_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){
22631
24780
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
22632
24781
  // Copyright Joyent, Inc. and other Node contributors.
22633
24782
  //
@@ -22844,7 +24993,7 @@ function done(stream, er, data) {
22844
24993
  return stream.push(null);
22845
24994
  }
22846
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")
22847
- },{"./_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){
22848
24997
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
22849
24998
  // Copyright Joyent, Inc. and other Node contributors.
22850
24999
  //
@@ -23534,7 +25683,7 @@ Writable.prototype._destroy = function (err, cb) {
23534
25683
  cb(err);
23535
25684
  };
23536
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")
23537
- },{"./_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){
23538
25687
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23539
25688
  'use strict';
23540
25689
 
@@ -23616,7 +25765,7 @@ if (util && util.inspect && util.inspect.custom) {
23616
25765
  };
23617
25766
  }
23618
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")
23619
- },{"_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){
23620
25769
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23621
25770
  'use strict';
23622
25771
 
@@ -23693,12 +25842,12 @@ module.exports = {
23693
25842
  undestroy: undestroy
23694
25843
  };
23695
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")
23696
- },{"_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){
23697
25846
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23698
25847
  module.exports = require('events').EventEmitter;
23699
25848
 
23700
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")
23701
- },{"_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){
23702
25851
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23703
25852
  exports = module.exports = require('./lib/_stream_readable.js');
23704
25853
  exports.Stream = exports;
@@ -23709,7 +25858,7 @@ exports.Transform = require('./lib/_stream_transform.js');
23709
25858
  exports.PassThrough = require('./lib/_stream_passthrough.js');
23710
25859
 
23711
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")
23712
- },{"./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){
23713
25862
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
23714
25863
  // Copyright Joyent, Inc. and other Node contributors.
23715
25864
  //
@@ -24008,7 +26157,7 @@ function simpleEnd(buf) {
24008
26157
  return buf && buf.length ? this.write(buf) : '';
24009
26158
  }
24010
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")
24011
- },{"_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){
24012
26161
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24013
26162
  var nextTick = require('process/browser.js').nextTick;
24014
26163
  var apply = Function.prototype.apply;
@@ -24087,7 +26236,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
24087
26236
  delete immediateIds[id];
24088
26237
  };
24089
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")
24090
- },{"_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){
24091
26240
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24092
26241
  var Buffer = require('buffer').Buffer
24093
26242
 
@@ -24118,7 +26267,7 @@ module.exports = function (buf) {
24118
26267
  }
24119
26268
 
24120
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")
24121
- },{"_process":114,"buffer":104,"timers":135}],137:[function(require,module,exports){
26270
+ },{"_process":119,"buffer":109,"timers":140}],142:[function(require,module,exports){
24122
26271
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24123
26272
  // Copyright Joyent, Inc. and other Node contributors.
24124
26273
  //
@@ -24854,7 +27003,7 @@ Url.prototype.parseHost = function() {
24854
27003
  };
24855
27004
 
24856
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")
24857
- },{"./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){
24858
27007
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24859
27008
  'use strict';
24860
27009
 
@@ -24874,7 +27023,7 @@ module.exports = {
24874
27023
  };
24875
27024
 
24876
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")
24877
- },{"_process":114,"buffer":104,"timers":135}],139:[function(require,module,exports){
27026
+ },{"_process":119,"buffer":109,"timers":140}],144:[function(require,module,exports){
24878
27027
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24879
27028
 
24880
27029
  /**
@@ -24945,7 +27094,7 @@ function config (name) {
24945
27094
  }
24946
27095
 
24947
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")
24948
- },{"_process":114,"buffer":104,"timers":135}],140:[function(require,module,exports){
27097
+ },{"_process":119,"buffer":109,"timers":140}],145:[function(require,module,exports){
24949
27098
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
24950
27099
  /**
24951
27100
  * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
@@ -25569,7 +27718,7 @@ exports.XMLHttpRequest = function() {
25569
27718
  };
25570
27719
 
25571
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")
25572
- },{"_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){
25573
27722
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,setImmediate,clearImmediate,__filename,__dirname){
25574
27723
  module.exports = extend
25575
27724
 
@@ -25592,5 +27741,5 @@ function extend() {
25592
27741
  }
25593
27742
 
25594
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")
25595
- },{"_process":114,"buffer":104,"timers":135}]},{},[15])(15)
27744
+ },{"_process":119,"buffer":109,"timers":140}]},{},[15])(15)
25596
27745
  });