@brndts/brndts-ads 1.14.18 → 1.14.20

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.
package/dist/index.js CHANGED
@@ -55202,18 +55202,18 @@ var BrowserClient = /*#__PURE__*/ function(BaseClient) {
55202
55202
  function BrowserClient(options) {
55203
55203
  _class_call_check(this, BrowserClient);
55204
55204
  var _this;
55205
- var opts2 = _object_spread({
55205
+ var opts = _object_spread({
55206
55206
  // We default this to true, as it is the safer scenario
55207
55207
  parentSpanIsAlwaysRootSpan: true
55208
55208
  }, options);
55209
55209
  var sdkSource = WINDOW4.SENTRY_SDK_SOURCE || getSDKSource();
55210
- applySdkMetadata(opts2, "browser", [
55210
+ applySdkMetadata(opts, "browser", [
55211
55211
  "browser"
55212
55212
  ], sdkSource);
55213
55213
  _this = _call_super(this, BrowserClient, [
55214
- opts2
55214
+ opts
55215
55215
  ]);
55216
- if (opts2.sendClientReports && WINDOW4.document) {
55216
+ if (opts.sendClientReports && WINDOW4.document) {
55217
55217
  WINDOW4.document.addEventListener("visibilitychange", function() {
55218
55218
  if (WINDOW4.document.visibilityState === "hidden") {
55219
55219
  _this._flushOutcomes();
@@ -55347,7 +55347,7 @@ var initMetric = function(name, value2) {
55347
55347
  };
55348
55348
  };
55349
55349
  // node_modules/@sentry-internal/browser-utils/build/esm/metrics/web-vitals/lib/observe.js
55350
- var observe = function(type, callback, opts2) {
55350
+ var observe = function(type, callback, opts) {
55351
55351
  try {
55352
55352
  if (PerformanceObserver.supportedEntryTypes.includes(type)) {
55353
55353
  var po2 = new PerformanceObserver(function(list) {
@@ -55358,7 +55358,7 @@ var observe = function(type, callback, opts2) {
55358
55358
  po2.observe(Object.assign({
55359
55359
  type: type,
55360
55360
  buffered: true
55361
- }, opts2 || {}));
55361
+ }, opts || {}));
55362
55362
  return po2;
55363
55363
  }
55364
55364
  } catch (e2) {}
@@ -55432,7 +55432,7 @@ var FCPThresholds = [
55432
55432
  3e3
55433
55433
  ];
55434
55434
  var onFCP = function(onReport) {
55435
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55435
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55436
55436
  whenActivated(function() {
55437
55437
  var visibilityWatcher = getVisibilityWatcher();
55438
55438
  var metric = initMetric("FCP");
@@ -55451,7 +55451,7 @@ var onFCP = function(onReport) {
55451
55451
  };
55452
55452
  var po2 = observe("paint", handleEntries);
55453
55453
  if (po2) {
55454
- report = bindReporter(onReport, metric, FCPThresholds, opts2.reportAllChanges);
55454
+ report = bindReporter(onReport, metric, FCPThresholds, opts.reportAllChanges);
55455
55455
  }
55456
55456
  });
55457
55457
  };
@@ -55461,7 +55461,7 @@ var CLSThresholds = [
55461
55461
  0.25
55462
55462
  ];
55463
55463
  var onCLS = function(onReport) {
55464
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55464
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55465
55465
  onFCP(runOnce(function() {
55466
55466
  var metric = initMetric("CLS", 0);
55467
55467
  var report;
@@ -55491,7 +55491,7 @@ var onCLS = function(onReport) {
55491
55491
  };
55492
55492
  var po2 = observe("layout-shift", handleEntries);
55493
55493
  if (po2) {
55494
- report = bindReporter(onReport, metric, CLSThresholds, opts2.reportAllChanges);
55494
+ report = bindReporter(onReport, metric, CLSThresholds, opts.reportAllChanges);
55495
55495
  onHidden(function() {
55496
55496
  handleEntries(po2.takeRecords());
55497
55497
  report(true);
@@ -55506,7 +55506,7 @@ var FIDThresholds = [
55506
55506
  300
55507
55507
  ];
55508
55508
  var onFID = function(onReport) {
55509
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55509
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55510
55510
  whenActivated(function() {
55511
55511
  var visibilityWatcher = getVisibilityWatcher();
55512
55512
  var metric = initMetric("FID");
@@ -55522,7 +55522,7 @@ var onFID = function(onReport) {
55522
55522
  entries.forEach(handleEntry);
55523
55523
  };
55524
55524
  var po2 = observe("first-input", handleEntries);
55525
- report = bindReporter(onReport, metric, FIDThresholds, opts2.reportAllChanges);
55525
+ report = bindReporter(onReport, metric, FIDThresholds, opts.reportAllChanges);
55526
55526
  if (po2) {
55527
55527
  onHidden(runOnce(function() {
55528
55528
  handleEntries(po2.takeRecords());
@@ -55627,7 +55627,7 @@ var INPThresholds = [
55627
55627
  500
55628
55628
  ];
55629
55629
  var onINP = function(onReport) {
55630
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55630
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55631
55631
  if (!("PerformanceEventTiming" in WINDOW5 && "interactionId" in PerformanceEventTiming.prototype)) {
55632
55632
  return;
55633
55633
  }
@@ -55653,9 +55653,9 @@ var onINP = function(onReport) {
55653
55653
  // and performance. Running this callback for any interaction that spans
55654
55654
  // just one or two frames is likely not worth the insight that could be
55655
55655
  // gained.
55656
- durationThreshold: opts2.durationThreshold != null ? opts2.durationThreshold : DEFAULT_DURATION_THRESHOLD
55656
+ durationThreshold: opts.durationThreshold != null ? opts.durationThreshold : DEFAULT_DURATION_THRESHOLD
55657
55657
  });
55658
- report = bindReporter(onReport, metric, INPThresholds, opts2.reportAllChanges);
55658
+ report = bindReporter(onReport, metric, INPThresholds, opts.reportAllChanges);
55659
55659
  if (po2) {
55660
55660
  po2.observe({
55661
55661
  type: "first-input",
@@ -55675,13 +55675,13 @@ var LCPThresholds = [
55675
55675
  ];
55676
55676
  var reportedMetricIDs = {};
55677
55677
  var onLCP = function(onReport) {
55678
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55678
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55679
55679
  whenActivated(function() {
55680
55680
  var visibilityWatcher = getVisibilityWatcher();
55681
55681
  var metric = initMetric("LCP");
55682
55682
  var report;
55683
55683
  var handleEntries = function(entries) {
55684
- if (!opts2.reportAllChanges) {
55684
+ if (!opts.reportAllChanges) {
55685
55685
  entries = entries.slice(-1);
55686
55686
  }
55687
55687
  entries.forEach(function(entry) {
@@ -55696,7 +55696,7 @@ var onLCP = function(onReport) {
55696
55696
  };
55697
55697
  var po2 = observe("largest-contentful-paint", handleEntries);
55698
55698
  if (po2) {
55699
- report = bindReporter(onReport, metric, LCPThresholds, opts2.reportAllChanges);
55699
+ report = bindReporter(onReport, metric, LCPThresholds, opts.reportAllChanges);
55700
55700
  var stopListening = runOnce(function() {
55701
55701
  if (!reportedMetricIDs[metric.id]) {
55702
55702
  handleEntries(po2.takeRecords());
@@ -55741,9 +55741,9 @@ var whenReady = function(callback) {
55741
55741
  }
55742
55742
  };
55743
55743
  var onTTFB = function(onReport) {
55744
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55744
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
55745
55745
  var metric = initMetric("TTFB");
55746
- var report = bindReporter(onReport, metric, TTFBThresholds, opts2.reportAllChanges);
55746
+ var report = bindReporter(onReport, metric, TTFBThresholds, opts.reportAllChanges);
55747
55747
  whenReady(function() {
55748
55748
  var navigationEntry = getNavigationEntry();
55749
55749
  if (navigationEntry) {
@@ -62842,9 +62842,9 @@ function makeReplayLogger() {
62842
62842
  infoTick: function() {
62843
62843
  return void 0;
62844
62844
  },
62845
- setConfig: function(opts2) {
62846
- _capture = opts2.captureExceptions;
62847
- _trace = opts2.traceInternals;
62845
+ setConfig: function(opts) {
62846
+ _capture = opts.captureExceptions;
62847
+ _trace = opts.traceInternals;
62848
62848
  }
62849
62849
  };
62850
62850
  if (DEBUG_BUILD5) {
@@ -69360,9 +69360,9 @@ var RegionMaskPlugin = /*#__PURE__*/ function() {
69360
69360
  }();
69361
69361
  // src/Ads/Regions/Plugins/Border/RegionBorderPlugin.ts
69362
69362
  var RegionBorderPlugin = /*#__PURE__*/ function() {
69363
- function RegionBorderPlugin(opts2) {
69363
+ function RegionBorderPlugin(opts) {
69364
69364
  _class_call_check(this, RegionBorderPlugin);
69365
- this.options = opts2;
69365
+ this.options = opts;
69366
69366
  }
69367
69367
  _create_class(RegionBorderPlugin, [
69368
69368
  {
@@ -69843,10 +69843,6 @@ var RULES = {
69843
69843
  [
69844
69844
  728,
69845
69845
  90
69846
- ],
69847
- [
69848
- 468,
69849
- 60
69850
69846
  ]
69851
69847
  ],
69852
69848
  "desktop": [
@@ -69933,6 +69929,10 @@ var RULES = {
69933
69929
  [
69934
69930
  200,
69935
69931
  200
69932
+ ],
69933
+ [
69934
+ 180,
69935
+ 150
69936
69936
  ]
69937
69937
  ],
69938
69938
  "desktop": [
@@ -69947,6 +69947,10 @@ var RULES = {
69947
69947
  [
69948
69948
  200,
69949
69949
  200
69950
+ ],
69951
+ [
69952
+ 180,
69953
+ 150
69950
69954
  ]
69951
69955
  ],
69952
69956
  "tablet": [
@@ -72520,7 +72524,7 @@ var GPT = /*#__PURE__*/ function() {
72520
72524
  },
72521
72525
  {
72522
72526
  key: "defineSlot",
72523
- value: function defineSlot(slotId, size, containerId, opts2) {
72527
+ value: function defineSlot(slotId, size, containerId, opts) {
72524
72528
  window.googletag.cmd.push(function() {
72525
72529
  if (window.googletag.pubads().getSlots().some(function(slot) {
72526
72530
  return slot.getSlotElementId() === containerId;
@@ -72529,9 +72533,9 @@ var GPT = /*#__PURE__*/ function() {
72529
72533
  }
72530
72534
  var mrec1 = window.googletag.defineSlot(slotId, size, "".concat(containerId)).addService(window.googletag.pubads());
72531
72535
  var mrecmapping;
72532
- if (opts2 === null || opts2 === void 0 ? void 0 : opts2.mapping) {
72536
+ if (opts === null || opts === void 0 ? void 0 : opts.mapping) {
72533
72537
  mrecmapping = window.googletag.sizeMapping();
72534
- var sortedBreakpoints = Object.keys(opts2.mapping).sort(function(a, b) {
72538
+ var sortedBreakpoints = Object.keys(opts.mapping).sort(function(a, b) {
72535
72539
  return parseInt(RegionDefinitions.BREAKPOINTS[b], 10) - parseInt(RegionDefinitions.BREAKPOINTS[a], 10);
72536
72540
  });
72537
72541
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
@@ -72541,7 +72545,7 @@ var GPT = /*#__PURE__*/ function() {
72541
72545
  mrecmapping = mrecmapping.addSize([
72542
72546
  RegionDefinitions.BREAKPOINTS[bp],
72543
72547
  0
72544
- ], opts2.mapping[bp]);
72548
+ ], opts.mapping[bp]);
72545
72549
  }
72546
72550
  } catch (err) {
72547
72551
  _didIteratorError = true;
@@ -72559,7 +72563,7 @@ var GPT = /*#__PURE__*/ function() {
72559
72563
  }
72560
72564
  mrecmapping = mrecmapping.build();
72561
72565
  } else {
72562
- window.googletag.sizeMapping().addSize([
72566
+ mrecmapping = window.googletag.sizeMapping().addSize([
72563
72567
  1024,
72564
72568
  0
72565
72569
  ], size).addSize([
@@ -72574,9 +72578,9 @@ var GPT = /*#__PURE__*/ function() {
72574
72578
  ], []).build();
72575
72579
  }
72576
72580
  mrec1 === null || mrec1 === void 0 ? void 0 : mrec1.defineSizeMapping(mrecmapping);
72577
- if (opts2 === null || opts2 === void 0 ? void 0 : opts2.targeting) {
72581
+ if (opts === null || opts === void 0 ? void 0 : opts.targeting) {
72578
72582
  mrec1.setConfig({
72579
- targeting: opts2 === null || opts2 === void 0 ? void 0 : opts2.targeting
72583
+ targeting: opts === null || opts === void 0 ? void 0 : opts.targeting
72580
72584
  });
72581
72585
  }
72582
72586
  });
@@ -72751,7 +72755,7 @@ var PrebidGAM = /*#__PURE__*/ function() {
72751
72755
  RegionDefinitions.BREAKPOINTS[bp],
72752
72756
  0
72753
72757
  ],
72754
- sizes: opts.mapping[bp]
72758
+ sizes: mapping[bp]
72755
72759
  });
72756
72760
  }
72757
72761
  } catch (err) {
@@ -80598,7 +80602,7 @@ var CooldownPresentation = /*#__PURE__*/ function(AbstractPresentation) {
80598
80602
  },
80599
80603
  {
80600
80604
  key: "startedPresentation",
80601
- value: function startedPresentation(opts2) {
80605
+ value: function startedPresentation(opts) {
80602
80606
  this.stopRetry();
80603
80607
  this.emit("pace");
80604
80608
  this.presentationTimer.resume();
@@ -80832,11 +80836,11 @@ var DynamicDurationPresentation = /*#__PURE__*/ function(AbstractPresentation) {
80832
80836
  },
80833
80837
  {
80834
80838
  key: "startedPresentation",
80835
- value: function startedPresentation(opts2) {
80839
+ value: function startedPresentation(opts) {
80836
80840
  this.stopRetry();
80837
80841
  this.startPacing();
80838
- if (opts2.expectedDuration && !this.presentationTimer.isPaused) {
80839
- this.presentationTimer.setDuration(opts2.expectedDuration * 1e3);
80842
+ if (opts.expectedDuration && !this.presentationTimer.isPaused) {
80843
+ this.presentationTimer.setDuration(opts.expectedDuration * 1e3);
80840
80844
  }
80841
80845
  this.presentationTimer.resume();
80842
80846
  }
@@ -86626,8 +86630,8 @@ function pick(obj) {
86626
86630
  }
86627
86631
  var NATIVE_SET_TIMEOUT = globalThisShim.setTimeout;
86628
86632
  var NATIVE_CLEAR_TIMEOUT = globalThisShim.clearTimeout;
86629
- function installTimerFunctions(obj, opts2) {
86630
- if (opts2.useNativeTimers) {
86633
+ function installTimerFunctions(obj, opts) {
86634
+ if (opts.useNativeTimers) {
86631
86635
  obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThisShim);
86632
86636
  obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThisShim);
86633
86637
  } else {
@@ -86700,16 +86704,16 @@ var TransportError = /*#__PURE__*/ function(Error1) {
86700
86704
  }(_wrap_native_super(Error));
86701
86705
  var Transport = /*#__PURE__*/ function(Emitter) {
86702
86706
  _inherits(Transport, Emitter);
86703
- function Transport(opts2) {
86707
+ function Transport(opts) {
86704
86708
  _class_call_check(this, Transport);
86705
86709
  var _this;
86706
86710
  _this = _call_super(this, Transport);
86707
86711
  _this.writable = false;
86708
- installTimerFunctions(_this, opts2);
86709
- _this.opts = opts2;
86710
- _this.query = opts2.query;
86711
- _this.socket = opts2.socket;
86712
- _this.supportsBinary = !opts2.forceBase64;
86712
+ installTimerFunctions(_this, opts);
86713
+ _this.opts = opts;
86714
+ _this.query = opts.query;
86715
+ _this.socket = opts.socket;
86716
+ _this.supportsBinary = !opts.forceBase64;
86713
86717
  return _this;
86714
86718
  }
86715
86719
  _create_class(Transport, [
@@ -87023,11 +87027,11 @@ var hasCORS = value;
87023
87027
  function empty() {}
87024
87028
  var BaseXHR = /*#__PURE__*/ function(Polling) {
87025
87029
  _inherits(BaseXHR, Polling);
87026
- function BaseXHR(opts2) {
87030
+ function BaseXHR(opts) {
87027
87031
  _class_call_check(this, BaseXHR);
87028
87032
  var _this;
87029
87033
  _this = _call_super(this, BaseXHR, [
87030
- opts2
87034
+ opts
87031
87035
  ]);
87032
87036
  if (typeof location !== "undefined") {
87033
87037
  var isSSL = "https:" === location.protocol;
@@ -87035,7 +87039,7 @@ var BaseXHR = /*#__PURE__*/ function(Polling) {
87035
87039
  if (!port) {
87036
87040
  port = isSSL ? "443" : "80";
87037
87041
  }
87038
- _this.xd = typeof location !== "undefined" && opts2.hostname !== location.hostname || port !== opts2.port;
87042
+ _this.xd = typeof location !== "undefined" && opts.hostname !== location.hostname || port !== opts.port;
87039
87043
  }
87040
87044
  return _this;
87041
87045
  }
@@ -87081,16 +87085,16 @@ var BaseXHR = /*#__PURE__*/ function(Polling) {
87081
87085
  }(Polling);
87082
87086
  var Request2 = /*#__PURE__*/ function(Emitter) {
87083
87087
  _inherits(_Request, Emitter);
87084
- function _Request(createRequest, uri, opts2) {
87088
+ function _Request(createRequest, uri, opts) {
87085
87089
  _class_call_check(this, _Request);
87086
87090
  var _this;
87087
87091
  _this = _call_super(this, _Request);
87088
87092
  _this.createRequest = createRequest;
87089
- installTimerFunctions(_this, opts2);
87090
- _this._opts = opts2;
87091
- _this._method = opts2.method || "GET";
87093
+ installTimerFunctions(_this, opts);
87094
+ _this._opts = opts;
87095
+ _this._method = opts.method || "GET";
87092
87096
  _this._uri = uri;
87093
- _this._data = void 0 !== opts2.data ? opts2.data : null;
87097
+ _this._data = void 0 !== opts.data ? opts.data : null;
87094
87098
  _this._create();
87095
87099
  return _this;
87096
87100
  }
@@ -87104,9 +87108,9 @@ var Request2 = /*#__PURE__*/ function(Emitter) {
87104
87108
  value: function _create() {
87105
87109
  var _this = this;
87106
87110
  var _a;
87107
- var opts2 = pick(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
87108
- opts2.xdomain = !!this._opts.xd;
87109
- var xhr = this._xhr = this.createRequest(opts2);
87111
+ var opts = pick(this._opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
87112
+ opts.xdomain = !!this._opts.xd;
87113
+ var xhr = this._xhr = this.createRequest(opts);
87110
87114
  try {
87111
87115
  xhr.open(this._method, this._uri, true);
87112
87116
  try {
@@ -87248,13 +87252,13 @@ var hasXHR2 = function() {
87248
87252
  }();
87249
87253
  var XHR = /*#__PURE__*/ function(BaseXHR) {
87250
87254
  _inherits(XHR, BaseXHR);
87251
- function XHR(opts2) {
87255
+ function XHR(opts) {
87252
87256
  _class_call_check(this, XHR);
87253
87257
  var _this;
87254
87258
  _this = _call_super(this, XHR, [
87255
- opts2
87259
+ opts
87256
87260
  ]);
87257
- var forceBase64 = opts2 && opts2.forceBase64;
87261
+ var forceBase64 = opts && opts.forceBase64;
87258
87262
  _this.supportsBinary = hasXHR2 && !forceBase64;
87259
87263
  return _this;
87260
87264
  }
@@ -87262,18 +87266,18 @@ var XHR = /*#__PURE__*/ function(BaseXHR) {
87262
87266
  {
87263
87267
  key: "request",
87264
87268
  value: function request() {
87265
- var opts2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
87266
- Object.assign(opts2, {
87269
+ var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
87270
+ Object.assign(opts, {
87267
87271
  xd: this.xd
87268
87272
  }, this.opts);
87269
- return new Request2(newRequest, this.uri(), opts2);
87273
+ return new Request2(newRequest, this.uri(), opts);
87270
87274
  }
87271
87275
  }
87272
87276
  ]);
87273
87277
  return XHR;
87274
87278
  }(BaseXHR);
87275
- function newRequest(opts2) {
87276
- var xdomain = opts2.xdomain;
87279
+ function newRequest(opts) {
87280
+ var xdomain = opts.xdomain;
87277
87281
  try {
87278
87282
  if ("undefined" !== typeof XMLHttpRequest && (!xdomain || hasCORS)) {
87279
87283
  return new XMLHttpRequest();
@@ -87307,12 +87311,12 @@ var BaseWS = /*#__PURE__*/ function(Transport) {
87307
87311
  value: function doOpen() {
87308
87312
  var uri = this.uri();
87309
87313
  var protocols = this.opts.protocols;
87310
- var opts2 = isReactNative ? {} : pick(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
87314
+ var opts = isReactNative ? {} : pick(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
87311
87315
  if (this.opts.extraHeaders) {
87312
- opts2.headers = this.opts.extraHeaders;
87316
+ opts.headers = this.opts.extraHeaders;
87313
87317
  }
87314
87318
  try {
87315
- this.ws = this.createSocket(uri, protocols, opts2);
87319
+ this.ws = this.createSocket(uri, protocols, opts);
87316
87320
  } catch (err) {
87317
87321
  return this.emitReserved("error", err);
87318
87322
  }
@@ -87412,8 +87416,8 @@ var WS = /*#__PURE__*/ function(BaseWS) {
87412
87416
  _create_class(WS, [
87413
87417
  {
87414
87418
  key: "createSocket",
87415
- value: function createSocket(uri, protocols, opts2) {
87416
- return !isReactNative ? protocols ? new WebSocketCtor(uri, protocols) : new WebSocketCtor(uri) : new WebSocketCtor(uri, protocols, opts2);
87419
+ value: function createSocket(uri, protocols, opts) {
87420
+ return !isReactNative ? protocols ? new WebSocketCtor(uri, protocols) : new WebSocketCtor(uri) : new WebSocketCtor(uri, protocols, opts);
87417
87421
  }
87418
87422
  },
87419
87423
  {
@@ -87591,7 +87595,7 @@ if (withEventListeners) {
87591
87595
  }
87592
87596
  var SocketWithoutUpgrade = /*#__PURE__*/ function(Emitter) {
87593
87597
  _inherits(_SocketWithoutUpgrade, Emitter);
87594
- function _SocketWithoutUpgrade(uri, opts2) {
87598
+ function _SocketWithoutUpgrade(uri, opts) {
87595
87599
  _class_call_check(this, _SocketWithoutUpgrade);
87596
87600
  var _this;
87597
87601
  _this = _call_super(this, _SocketWithoutUpgrade);
@@ -87603,28 +87607,28 @@ var SocketWithoutUpgrade = /*#__PURE__*/ function(Emitter) {
87603
87607
  _this._maxPayload = -1;
87604
87608
  _this._pingTimeoutTime = Infinity;
87605
87609
  if (uri && "object" === (typeof uri === "undefined" ? "undefined" : _type_of(uri))) {
87606
- opts2 = uri;
87610
+ opts = uri;
87607
87611
  uri = null;
87608
87612
  }
87609
87613
  if (uri) {
87610
87614
  var parsedUri = parse2(uri);
87611
- opts2.hostname = parsedUri.host;
87612
- opts2.secure = parsedUri.protocol === "https" || parsedUri.protocol === "wss";
87613
- opts2.port = parsedUri.port;
87614
- if (parsedUri.query) opts2.query = parsedUri.query;
87615
- } else if (opts2.host) {
87616
- opts2.hostname = parse2(opts2.host).host;
87617
- }
87618
- installTimerFunctions(_this, opts2);
87619
- _this.secure = null != opts2.secure ? opts2.secure : typeof location !== "undefined" && "https:" === location.protocol;
87620
- if (opts2.hostname && !opts2.port) {
87621
- opts2.port = _this.secure ? "443" : "80";
87622
- }
87623
- _this.hostname = opts2.hostname || (typeof location !== "undefined" ? location.hostname : "localhost");
87624
- _this.port = opts2.port || (typeof location !== "undefined" && location.port ? location.port : _this.secure ? "443" : "80");
87615
+ opts.hostname = parsedUri.host;
87616
+ opts.secure = parsedUri.protocol === "https" || parsedUri.protocol === "wss";
87617
+ opts.port = parsedUri.port;
87618
+ if (parsedUri.query) opts.query = parsedUri.query;
87619
+ } else if (opts.host) {
87620
+ opts.hostname = parse2(opts.host).host;
87621
+ }
87622
+ installTimerFunctions(_this, opts);
87623
+ _this.secure = null != opts.secure ? opts.secure : typeof location !== "undefined" && "https:" === location.protocol;
87624
+ if (opts.hostname && !opts.port) {
87625
+ opts.port = _this.secure ? "443" : "80";
87626
+ }
87627
+ _this.hostname = opts.hostname || (typeof location !== "undefined" ? location.hostname : "localhost");
87628
+ _this.port = opts.port || (typeof location !== "undefined" && location.port ? location.port : _this.secure ? "443" : "80");
87625
87629
  _this.transports = [];
87626
87630
  _this._transportsByName = {};
87627
- opts2.transports.forEach(function(t2) {
87631
+ opts.transports.forEach(function(t2) {
87628
87632
  var transportName = t2.prototype.name;
87629
87633
  _this.transports.push(transportName);
87630
87634
  _this._transportsByName[transportName] = t2;
@@ -87643,7 +87647,7 @@ var SocketWithoutUpgrade = /*#__PURE__*/ function(Emitter) {
87643
87647
  },
87644
87648
  transportOptions: {},
87645
87649
  closeOnBeforeunload: false
87646
- }, opts2);
87650
+ }, opts);
87647
87651
  _this.opts.path = _this.opts.path.replace(/\/$/, "") + (_this.opts.addTrailingSlash ? "/" : "");
87648
87652
  if (typeof _this.opts.query === "string") {
87649
87653
  _this.opts.query = decode2(_this.opts.query);
@@ -87687,14 +87691,14 @@ var SocketWithoutUpgrade = /*#__PURE__*/ function(Emitter) {
87687
87691
  query.EIO = protocol;
87688
87692
  query.transport = name;
87689
87693
  if (this.id) query.sid = this.id;
87690
- var opts2 = Object.assign({}, this.opts, {
87694
+ var opts = Object.assign({}, this.opts, {
87691
87695
  query: query,
87692
87696
  socket: this,
87693
87697
  hostname: this.hostname,
87694
87698
  secure: this.secure,
87695
87699
  port: this.port
87696
87700
  }, this.opts.transportOptions[name]);
87697
- return new this._transportsByName[name](opts2);
87701
+ return new this._transportsByName[name](opts);
87698
87702
  }
87699
87703
  },
87700
87704
  {
@@ -88196,9 +88200,9 @@ var SocketWithUpgrade = /*#__PURE__*/ function(SocketWithoutUpgrade1) {
88196
88200
  var Socket = /*#__PURE__*/ function(SocketWithUpgrade) {
88197
88201
  _inherits(Socket, SocketWithUpgrade);
88198
88202
  function Socket(uri) {
88199
- var opts2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
88203
+ var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
88200
88204
  _class_call_check(this, Socket);
88201
- var o2 = (typeof uri === "undefined" ? "undefined" : _type_of(uri)) === "object" ? uri : opts2;
88205
+ var o2 = (typeof uri === "undefined" ? "undefined" : _type_of(uri)) === "object" ? uri : opts;
88202
88206
  if (!o2.transports || o2.transports && typeof o2.transports[0] === "string") {
88203
88207
  o2.transports = (o2.transports || [
88204
88208
  "polling",
@@ -88672,7 +88676,7 @@ var RESERVED_EVENTS2 = Object.freeze({
88672
88676
  });
88673
88677
  var Socket2 = /*#__PURE__*/ function(Emitter) {
88674
88678
  _inherits(Socket2, Emitter);
88675
- function Socket2(io, nsp, opts2) {
88679
+ function Socket2(io, nsp, opts) {
88676
88680
  _class_call_check(this, Socket2);
88677
88681
  var _this;
88678
88682
  _this = _call_super(this, Socket2);
@@ -88687,10 +88691,10 @@ var Socket2 = /*#__PURE__*/ function(Emitter) {
88687
88691
  _this.flags = {};
88688
88692
  _this.io = io;
88689
88693
  _this.nsp = nsp;
88690
- if (opts2 && opts2.auth) {
88691
- _this.auth = opts2.auth;
88694
+ if (opts && opts.auth) {
88695
+ _this.auth = opts.auth;
88692
88696
  }
88693
- _this._opts = Object.assign({}, opts2);
88697
+ _this._opts = Object.assign({}, opts);
88694
88698
  if (_this.io._autoConnect) _this.open();
88695
88699
  return _this;
88696
88700
  }
@@ -89588,12 +89592,12 @@ var Socket2 = /*#__PURE__*/ function(Emitter) {
89588
89592
  return Socket2;
89589
89593
  }(Emitter);
89590
89594
  // node_modules/socket.io-client/build/esm/contrib/backo2.js
89591
- function Backoff(opts2) {
89592
- opts2 = opts2 || {};
89593
- this.ms = opts2.min || 100;
89594
- this.max = opts2.max || 1e4;
89595
- this.factor = opts2.factor || 2;
89596
- this.jitter = opts2.jitter > 0 && opts2.jitter <= 1 ? opts2.jitter : 0;
89595
+ function Backoff(opts) {
89596
+ opts = opts || {};
89597
+ this.ms = opts.min || 100;
89598
+ this.max = opts.max || 1e4;
89599
+ this.factor = opts.factor || 2;
89600
+ this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;
89597
89601
  this.attempts = 0;
89598
89602
  }
89599
89603
  Backoff.prototype.duration = function() {
@@ -89620,7 +89624,7 @@ Backoff.prototype.setJitter = function(jitter) {
89620
89624
  // node_modules/socket.io-client/build/esm/manager.js
89621
89625
  var Manager = /*#__PURE__*/ function(Emitter) {
89622
89626
  _inherits(Manager, Emitter);
89623
- function Manager(uri, opts2) {
89627
+ function Manager(uri, opts) {
89624
89628
  _class_call_check(this, Manager);
89625
89629
  var _this;
89626
89630
  var _a;
@@ -89628,30 +89632,30 @@ var Manager = /*#__PURE__*/ function(Emitter) {
89628
89632
  _this.nsps = {};
89629
89633
  _this.subs = [];
89630
89634
  if (uri && "object" === (typeof uri === "undefined" ? "undefined" : _type_of(uri))) {
89631
- opts2 = uri;
89635
+ opts = uri;
89632
89636
  uri = void 0;
89633
89637
  }
89634
- opts2 = opts2 || {};
89635
- opts2.path = opts2.path || "/socket.io";
89636
- _this.opts = opts2;
89637
- installTimerFunctions(_this, opts2);
89638
- _this.reconnection(opts2.reconnection !== false);
89639
- _this.reconnectionAttempts(opts2.reconnectionAttempts || Infinity);
89640
- _this.reconnectionDelay(opts2.reconnectionDelay || 1e3);
89641
- _this.reconnectionDelayMax(opts2.reconnectionDelayMax || 5e3);
89642
- _this.randomizationFactor((_a = opts2.randomizationFactor) !== null && _a !== void 0 ? _a : 0.5);
89638
+ opts = opts || {};
89639
+ opts.path = opts.path || "/socket.io";
89640
+ _this.opts = opts;
89641
+ installTimerFunctions(_this, opts);
89642
+ _this.reconnection(opts.reconnection !== false);
89643
+ _this.reconnectionAttempts(opts.reconnectionAttempts || Infinity);
89644
+ _this.reconnectionDelay(opts.reconnectionDelay || 1e3);
89645
+ _this.reconnectionDelayMax(opts.reconnectionDelayMax || 5e3);
89646
+ _this.randomizationFactor((_a = opts.randomizationFactor) !== null && _a !== void 0 ? _a : 0.5);
89643
89647
  _this.backoff = new Backoff({
89644
89648
  min: _this.reconnectionDelay(),
89645
89649
  max: _this.reconnectionDelayMax(),
89646
89650
  jitter: _this.randomizationFactor()
89647
89651
  });
89648
- _this.timeout(null == opts2.timeout ? 2e4 : opts2.timeout);
89652
+ _this.timeout(null == opts.timeout ? 2e4 : opts.timeout);
89649
89653
  _this._readyState = "closed";
89650
89654
  _this.uri = uri;
89651
- var _parser = opts2.parser || esm_exports2;
89655
+ var _parser = opts.parser || esm_exports2;
89652
89656
  _this.encoder = new _parser.Encoder();
89653
89657
  _this.decoder = new _parser.Decoder();
89654
- _this._autoConnect = opts2.autoConnect !== false;
89658
+ _this._autoConnect = opts.autoConnect !== false;
89655
89659
  if (_this._autoConnect) _this.open();
89656
89660
  return _this;
89657
89661
  }
@@ -89856,10 +89860,10 @@ var Manager = /*#__PURE__*/ function(Emitter) {
89856
89860
  * @return {Socket}
89857
89861
  * @public
89858
89862
  */ key: "socket",
89859
- value: function socket(nsp, opts2) {
89863
+ value: function socket(nsp, opts) {
89860
89864
  var socket = this.nsps[nsp];
89861
89865
  if (!socket) {
89862
- socket = new Socket2(this, nsp, opts2);
89866
+ socket = new Socket2(this, nsp, opts);
89863
89867
  this.nsps[nsp] = socket;
89864
89868
  } else if (this._autoConnect && !socket.active) {
89865
89869
  socket.connect();
@@ -90032,31 +90036,31 @@ var Manager = /*#__PURE__*/ function(Emitter) {
90032
90036
  }(Emitter);
90033
90037
  // node_modules/socket.io-client/build/esm/index.js
90034
90038
  var cache = {};
90035
- function lookup2(uri, opts2) {
90039
+ function lookup2(uri, opts) {
90036
90040
  if ((typeof uri === "undefined" ? "undefined" : _type_of(uri)) === "object") {
90037
- opts2 = uri;
90041
+ opts = uri;
90038
90042
  uri = void 0;
90039
90043
  }
90040
- opts2 = opts2 || {};
90041
- var parsed = url(uri, opts2.path || "/socket.io");
90044
+ opts = opts || {};
90045
+ var parsed = url(uri, opts.path || "/socket.io");
90042
90046
  var source = parsed.source;
90043
90047
  var id = parsed.id;
90044
90048
  var path = parsed.path;
90045
90049
  var sameNamespace = cache[id] && path in cache[id]["nsps"];
90046
- var newConnection = opts2.forceNew || opts2["force new connection"] || false === opts2.multiplex || sameNamespace;
90050
+ var newConnection = opts.forceNew || opts["force new connection"] || false === opts.multiplex || sameNamespace;
90047
90051
  var io;
90048
90052
  if (newConnection) {
90049
- io = new Manager(source, opts2);
90053
+ io = new Manager(source, opts);
90050
90054
  } else {
90051
90055
  if (!cache[id]) {
90052
- cache[id] = new Manager(source, opts2);
90056
+ cache[id] = new Manager(source, opts);
90053
90057
  }
90054
90058
  io = cache[id];
90055
90059
  }
90056
- if (parsed.query && !opts2.query) {
90057
- opts2.query = parsed.queryKey;
90060
+ if (parsed.query && !opts.query) {
90061
+ opts.query = parsed.queryKey;
90058
90062
  }
90059
- return io.socket(parsed.path, opts2);
90063
+ return io.socket(parsed.path, opts);
90060
90064
  }
90061
90065
  Object.assign(lookup2, {
90062
90066
  Manager: Manager,