glitch-javascript-sdk 0.6.6 → 0.6.8

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/esm/index.js CHANGED
@@ -26,75 +26,75 @@ var LabelManager = /** @class */ (function () {
26
26
  return LabelManager;
27
27
  }());
28
28
 
29
- /******************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
- /* global Reflect, Promise, SuppressedError, Symbol */
44
-
45
-
46
- var __assign = function() {
47
- __assign = Object.assign || function __assign(t) {
48
- for (var s, i = 1, n = arguments.length; i < n; i++) {
49
- s = arguments[i];
50
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
51
- }
52
- return t;
53
- };
54
- return __assign.apply(this, arguments);
55
- };
56
-
57
- function __awaiter(thisArg, _arguments, P, generator) {
58
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
59
- return new (P || (P = Promise))(function (resolve, reject) {
60
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
61
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
62
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
63
- step((generator = generator.apply(thisArg, _arguments || [])).next());
64
- });
65
- }
66
-
67
- function __generator(thisArg, body) {
68
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
69
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
70
- function verb(n) { return function (v) { return step([n, v]); }; }
71
- function step(op) {
72
- if (f) throw new TypeError("Generator is already executing.");
73
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
74
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
75
- if (y = 0, t) op = [op[0] & 2, t.value];
76
- switch (op[0]) {
77
- case 0: case 1: t = op; break;
78
- case 4: _.label++; return { value: op[1], done: false };
79
- case 5: _.label++; y = op[1]; op = [0]; continue;
80
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
81
- default:
82
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
83
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
84
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
85
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
86
- if (t[2]) _.ops.pop();
87
- _.trys.pop(); continue;
88
- }
89
- op = body.call(thisArg, _);
90
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
91
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92
- }
93
- }
94
-
95
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
96
- var e = new Error(message);
97
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
29
+ /******************************************************************************
30
+ Copyright (c) Microsoft Corporation.
31
+
32
+ Permission to use, copy, modify, and/or distribute this software for any
33
+ purpose with or without fee is hereby granted.
34
+
35
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
+ PERFORMANCE OF THIS SOFTWARE.
42
+ ***************************************************************************** */
43
+ /* global Reflect, Promise, SuppressedError, Symbol */
44
+
45
+
46
+ var __assign = function() {
47
+ __assign = Object.assign || function __assign(t) {
48
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
49
+ s = arguments[i];
50
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
51
+ }
52
+ return t;
53
+ };
54
+ return __assign.apply(this, arguments);
55
+ };
56
+
57
+ function __awaiter(thisArg, _arguments, P, generator) {
58
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
59
+ return new (P || (P = Promise))(function (resolve, reject) {
60
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
61
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
62
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
63
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
64
+ });
65
+ }
66
+
67
+ function __generator(thisArg, body) {
68
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
69
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
70
+ function verb(n) { return function (v) { return step([n, v]); }; }
71
+ function step(op) {
72
+ if (f) throw new TypeError("Generator is already executing.");
73
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
74
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
75
+ if (y = 0, t) op = [op[0] & 2, t.value];
76
+ switch (op[0]) {
77
+ case 0: case 1: t = op; break;
78
+ case 4: _.label++; return { value: op[1], done: false };
79
+ case 5: _.label++; y = op[1]; op = [0]; continue;
80
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
81
+ default:
82
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
83
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
84
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
85
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
86
+ if (t[2]) _.ops.pop();
87
+ _.trys.pop(); continue;
88
+ }
89
+ op = body.call(thisArg, _);
90
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
91
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
92
+ }
93
+ }
94
+
95
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
96
+ var e = new Error(message);
97
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
98
98
  };
99
99
 
100
100
  var global$1 = (typeof global !== "undefined" ? global :
@@ -3127,33 +3127,17 @@ function getDefaultExportFromCjs (x) {
3127
3127
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3128
3128
  }
3129
3129
 
3130
- function getAugmentedNamespace(n) {
3131
- if (n.__esModule) return n;
3132
- var f = n.default;
3133
- if (typeof f == "function") {
3134
- var a = function a () {
3135
- if (this instanceof a) {
3136
- return Reflect.construct(f, arguments, this.constructor);
3137
- }
3138
- return f.apply(this, arguments);
3139
- };
3140
- a.prototype = f.prototype;
3141
- } else a = {};
3142
- Object.defineProperty(a, '__esModule', {value: true});
3143
- Object.keys(n).forEach(function (k) {
3144
- var d = Object.getOwnPropertyDescriptor(n, k);
3145
- Object.defineProperty(a, k, d.get ? d : {
3146
- enumerable: true,
3147
- get: function () {
3148
- return n[k];
3149
- }
3150
- });
3151
- });
3152
- return a;
3130
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
3131
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
3153
3132
  }
3154
3133
 
3155
3134
  var text_min = {};
3156
3135
 
3136
+ text_min.inherits = inherits;
3137
+ text_min.debuglog = function(empty) {
3138
+
3139
+ }
3140
+
3157
3141
  (function(scope) {function B(r,e){var f;return r instanceof Buffer?f=r:f=Buffer.from(r.buffer,r.byteOffset,r.byteLength),f.toString(e)}var w=function(r){return Buffer.from(r)};function h(r){for(var e=0,f=Math.min(256*256,r.length+1),n=new Uint16Array(f),i=[],o=0;;){var t=e<r.length;if(!t||o>=f-1){var s=n.subarray(0,o),m=s;if(i.push(String.fromCharCode.apply(null,m)),!t)return i.join("");r=r.subarray(e),e=0,o=0;}var a=r[e++];if((a&128)===0)n[o++]=a;else if((a&224)===192){var d=r[e++]&63;n[o++]=(a&31)<<6|d;}else if((a&240)===224){var d=r[e++]&63,l=r[e++]&63;n[o++]=(a&31)<<12|d<<6|l;}else if((a&248)===240){var d=r[e++]&63,l=r[e++]&63,R=r[e++]&63,c=(a&7)<<18|d<<12|l<<6|R;c>65535&&(c-=65536,n[o++]=c>>>10&1023|55296,c=56320|c&1023),n[o++]=c;}}}function F(r){for(var e=0,f=r.length,n=0,i=Math.max(32,f+(f>>>1)+7),o=new Uint8Array(i>>>3<<3);e<f;){var t=r.charCodeAt(e++);if(t>=55296&&t<=56319){if(e<f){var s=r.charCodeAt(e);(s&64512)===56320&&(++e,t=((t&1023)<<10)+(s&1023)+65536);}if(t>=55296&&t<=56319)continue}if(n+4>o.length){i+=8,i*=1+e/r.length*2,i=i>>>3<<3;var m=new Uint8Array(i);m.set(o),o=m;}if((t&4294967168)===0){o[n++]=t;continue}else if((t&4294965248)===0)o[n++]=t>>>6&31|192;else if((t&4294901760)===0)o[n++]=t>>>12&15|224,o[n++]=t>>>6&63|128;else if((t&4292870144)===0)o[n++]=t>>>18&7|240,o[n++]=t>>>12&63|128,o[n++]=t>>>6&63|128;else continue;o[n++]=t&63|128;}return o.slice?o.slice(0,n):o.subarray(0,n)}var u="Failed to ",p=function(r,e,f){if(r)throw new Error("".concat(u).concat(e,": the '").concat(f,"' option is unsupported."))};var x=typeof Buffer=="function"&&Buffer.from;var A=x?w:F;function v(){this.encoding="utf-8";}v.prototype.encode=function(r,e){return p(e&&e.stream,"encode","stream"),A(r)};function U(r){var e;try{var f=new Blob([r],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(f);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e);}}var O=!x&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],T=h;x?T=B:O&&(T=function(r){try{return U(r)}catch(e){return h(r)}});var y="construct 'TextDecoder'",E="".concat(u," ").concat(y,": the ");function g(r,e){p(e&&e.fatal,y,"fatal"),r=r||"utf-8";var f;if(x?f=Buffer.isEncoding(r):f=S.indexOf(r.toLowerCase())!==-1,!f)throw new RangeError("".concat(E," encoding label provided ('").concat(r,"') is invalid."));this.encoding=r,this.fatal=!1,this.ignoreBOM=!1;}g.prototype.decode=function(r,e){p(e&&e.stream,"decode","stream");var f;return r instanceof Uint8Array?f=r:r.buffer instanceof ArrayBuffer?f=new Uint8Array(r.buffer):f=new Uint8Array(r),T(f,this.encoding)};scope.TextEncoder=scope.TextEncoder||v;scope.TextDecoder=scope.TextDecoder||g;
3158
3142
  }(typeof window !== 'undefined' ? window : (typeof commonjsGlobal !== 'undefined' ? commonjsGlobal : commonjsGlobal)));
3159
3143
 
@@ -5596,7 +5580,7 @@ var _polyfillNode_stream = /*#__PURE__*/Object.freeze({
5596
5580
  default: Stream$3
5597
5581
  });
5598
5582
 
5599
- var require$$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_stream);
5583
+ var require$$3 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_stream);
5600
5584
 
5601
5585
  var Stream$2 = require$$3.Stream;
5602
5586
  var util$2 = text_min;
@@ -6163,7 +6147,7 @@ var _polyfillNode_path$1 = /*#__PURE__*/Object.freeze({
6163
6147
  sep: sep
6164
6148
  });
6165
6149
 
6166
- var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_path$1);
6150
+ var require$$2$1 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_path$1);
6167
6151
 
6168
6152
  var hasFetch = isFunction$1(global$1.fetch) && isFunction$1(global$1.ReadableStream);
6169
6153
 
@@ -8033,7 +8017,7 @@ var _polyfillNode_http = /*#__PURE__*/Object.freeze({
8033
8017
  request: request$1
8034
8018
  });
8035
8019
 
8036
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_http);
8020
+ var require$$1 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_http);
8037
8021
 
8038
8022
  function request(opts, cb) {
8039
8023
  if (typeof opts === 'string')
@@ -8181,9 +8165,9 @@ var _polyfillNode_https = /*#__PURE__*/Object.freeze({
8181
8165
  request: request
8182
8166
  });
8183
8167
 
8184
- var require$$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_https);
8168
+ var require$$2 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_https);
8185
8169
 
8186
- var require$$0$3 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_url);
8170
+ var require$$0$3 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_url);
8187
8171
 
8188
8172
  var _polyfillNode_fs = {};
8189
8173
 
@@ -8192,7 +8176,7 @@ var _polyfillNode_fs$1 = /*#__PURE__*/Object.freeze({
8192
8176
  default: _polyfillNode_fs
8193
8177
  });
8194
8178
 
8195
- var require$$6 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_fs$1);
8179
+ var require$$6 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_fs$1);
8196
8180
 
8197
8181
  var mimeTypes = {};
8198
8182
 
@@ -21764,7 +21748,7 @@ var _polyfillNode_assert = /*#__PURE__*/Object.freeze({
21764
21748
  throws: throws
21765
21749
  });
21766
21750
 
21767
- var require$$4 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_assert);
21751
+ var require$$4 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_assert);
21768
21752
 
21769
21753
  var src = {exports: {}};
21770
21754
 
@@ -21799,7 +21783,7 @@ var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
21799
21783
  isatty: isatty
21800
21784
  });
21801
21785
 
21802
- var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
21786
+ var require$$0$1 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_tty$1);
21803
21787
 
21804
21788
  /*
21805
21789
  The MIT License (MIT)
@@ -21950,7 +21934,7 @@ var _polyfillNode_os$1 = /*#__PURE__*/Object.freeze({
21950
21934
  uptime: uptime
21951
21935
  });
21952
21936
 
21953
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_os$1);
21937
+ var require$$0 = /*@__PURE__*/getDefaultExportFromNamespaceIfNotNamed(_polyfillNode_os$1);
21954
21938
 
21955
21939
  var hasFlag;
21956
21940
  var hasRequiredHasFlag;
@@ -21959,7 +21943,7 @@ function requireHasFlag () {
21959
21943
  if (hasRequiredHasFlag) return hasFlag;
21960
21944
  hasRequiredHasFlag = 1;
21961
21945
  hasFlag = (flag, argv) => {
21962
- argv = argv || process.argv;
21946
+ argv = argv || browser$1$1.argv;
21963
21947
  const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
21964
21948
  const pos = argv.indexOf(prefix + flag);
21965
21949
  const terminatorPos = argv.indexOf('--');
@@ -21977,7 +21961,7 @@ function requireSupportsColor () {
21977
21961
  const os = require$$0;
21978
21962
  const hasFlag = requireHasFlag();
21979
21963
 
21980
- const env = process.env;
21964
+ const env = browser$1$1.env;
21981
21965
 
21982
21966
  let forceColor;
21983
21967
  if (hasFlag('no-color') ||
@@ -22028,7 +22012,7 @@ function requireSupportsColor () {
22028
22012
 
22029
22013
  const min = forceColor ? 1 : 0;
22030
22014
 
22031
- if (process.platform === 'win32') {
22015
+ if (browser$1$1.platform === 'win32') {
22032
22016
  // Node.js 7.5.0 is the first version of Node.js to include a patch to
22033
22017
  // libuv that enables 256 color output on Windows. Anything earlier and it
22034
22018
  // won't work. However, here we target Node.js 8 at minimum as it is an LTS
@@ -22037,7 +22021,7 @@ function requireSupportsColor () {
22037
22021
  // that supports 16m/TrueColor.
22038
22022
  const osRelease = os.release().split('.');
22039
22023
  if (
22040
- Number(process.versions.node.split('.')[0]) >= 8 &&
22024
+ Number(browser$1$1.versions.node.split('.')[0]) >= 8 &&
22041
22025
  Number(osRelease[0]) >= 10 &&
22042
22026
  Number(osRelease[2]) >= 10586
22043
22027
  ) {
@@ -22101,8 +22085,8 @@ function requireSupportsColor () {
22101
22085
 
22102
22086
  supportsColor_1 = {
22103
22087
  supportsColor: getSupportLevel,
22104
- stdout: getSupportLevel(process.stdout),
22105
- stderr: getSupportLevel(process.stderr)
22088
+ stdout: getSupportLevel(browser$1$1.stdout),
22089
+ stderr: getSupportLevel(browser$1$1.stderr)
22106
22090
  };
22107
22091
  return supportsColor_1;
22108
22092
  }
@@ -22560,10 +22544,6 @@ function requireCommon () {
22560
22544
  return common;
22561
22545
  }
22562
22546
 
22563
- /**
22564
- * Module dependencies.
22565
- */
22566
-
22567
22547
  var hasRequiredNode;
22568
22548
 
22569
22549
  function requireNode () {
@@ -22689,7 +22669,7 @@ function requireNode () {
22689
22669
  * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
22690
22670
  */
22691
22671
 
22692
- exports.inspectOpts = Object.keys(process.env).filter(key => {
22672
+ exports.inspectOpts = Object.keys(browser$1$1.env).filter(key => {
22693
22673
  return /^debug_/i.test(key);
22694
22674
  }).reduce((obj, key) => {
22695
22675
  // Camel-case
@@ -22701,7 +22681,7 @@ function requireNode () {
22701
22681
  });
22702
22682
 
22703
22683
  // Coerce string value into JS value
22704
- let val = process.env[key];
22684
+ let val = browser$1$1.env[key];
22705
22685
  if (/^(yes|on|true|enabled)$/i.test(val)) {
22706
22686
  val = true;
22707
22687
  } else if (/^(no|off|false|disabled)$/i.test(val)) {
@@ -22723,7 +22703,7 @@ function requireNode () {
22723
22703
  function useColors() {
22724
22704
  return 'colors' in exports.inspectOpts ?
22725
22705
  Boolean(exports.inspectOpts.colors) :
22726
- tty.isatty(process.stderr.fd);
22706
+ tty.isatty(browser$1$1.stderr.fd);
22727
22707
  }
22728
22708
 
22729
22709
  /**
@@ -22759,7 +22739,7 @@ function requireNode () {
22759
22739
  */
22760
22740
 
22761
22741
  function log(...args) {
22762
- return process.stderr.write(util.format(...args) + '\n');
22742
+ return browser$1$1.stderr.write(util.format(...args) + '\n');
22763
22743
  }
22764
22744
 
22765
22745
  /**
@@ -22770,11 +22750,11 @@ function requireNode () {
22770
22750
  */
22771
22751
  function save(namespaces) {
22772
22752
  if (namespaces) {
22773
- process.env.DEBUG = namespaces;
22753
+ browser$1$1.env.DEBUG = namespaces;
22774
22754
  } else {
22775
22755
  // If you set a process.env field to null or undefined, it gets cast to the
22776
22756
  // string 'null' or 'undefined'. Just delete instead.
22777
- delete process.env.DEBUG;
22757
+ delete browser$1$1.env.DEBUG;
22778
22758
  }
22779
22759
  }
22780
22760
 
@@ -22786,7 +22766,7 @@ function requireNode () {
22786
22766
  */
22787
22767
 
22788
22768
  function load() {
22789
- return process.env.DEBUG;
22769
+ return browser$1$1.env.DEBUG;
22790
22770
  }
22791
22771
 
22792
22772
  /**
@@ -22835,8 +22815,6 @@ function requireNode () {
22835
22815
 
22836
22816
  var browser = {exports: {}};
22837
22817
 
22838
- /* eslint-env browser */
22839
-
22840
22818
  var hasRequiredBrowser;
22841
22819
 
22842
22820
  function requireBrowser () {
@@ -23066,8 +23044,8 @@ function requireBrowser () {
23066
23044
  }
23067
23045
 
23068
23046
  // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
23069
- if (!r && typeof process !== 'undefined' && 'env' in process) {
23070
- r = process.env.DEBUG;
23047
+ if (!r && typeof browser$1$1 !== 'undefined' && 'env' in browser$1$1) {
23048
+ r = browser$1$1.env.DEBUG;
23071
23049
  }
23072
23050
 
23073
23051
  return r;
@@ -23114,17 +23092,12 @@ function requireBrowser () {
23114
23092
  return browser.exports;
23115
23093
  }
23116
23094
 
23117
- /**
23118
- * Detect Electron renderer / nwjs process, which is node, but we should
23119
- * treat as a browser.
23120
- */
23121
-
23122
23095
  var hasRequiredSrc;
23123
23096
 
23124
23097
  function requireSrc () {
23125
23098
  if (hasRequiredSrc) return src.exports;
23126
23099
  hasRequiredSrc = 1;
23127
- if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
23100
+ if (typeof browser$1$1 === 'undefined' || browser$1$1.type === 'renderer' || browser$1$1.browser === true || browser$1$1.__nwjs) {
23128
23101
  src.exports = requireBrowser();
23129
23102
  } else {
23130
23103
  src.exports = requireNode();