@mongodb-js/compass-shell 2.16.0 → 2.19.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.
Files changed (4) hide show
  1. package/lib/1.js +394 -395
  2. package/lib/2.js +2357 -2324
  3. package/lib/index.js +68593 -25039
  4. package/package.json +21 -19
package/lib/2.js CHANGED
@@ -1,2637 +1,2670 @@
1
1
  (window["webpackJsonpCompassShellPlugin"] = window["webpackJsonpCompassShellPlugin"] || []).push([[2],{
2
2
 
3
- /***/ 156:
3
+ /***/ 429:
4
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
5
 
6
6
  "use strict";
7
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
7
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(401);
8
8
  /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
9
9
  // Imports
10
10
 
11
11
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(false);
12
12
  // Module
13
- ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_shell-header-module-compass-shell-header__15C8_ {\n width: 100%;\n height: 32px;\n display: flex;\n color: #b8c4c2;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-left___3yX6 {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-right-actions__1IsOP {\n display: flex;\n padding-top: 2px;\n padding-right: 4px;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0px 8px;\n height: 100%;\n display: flex;\n vertical-align: middle;\n flex-direction: row;\n align-items: center;\n margin: auto 0;\n font-weight: bold;\n font-size: 12px;\n line-height: 32px;\n transition: all 200ms;\n user-select: none;\n text-transform: uppercase;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY:hover {\n color: #f9fbfa;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-operation-in-progress__1MuCv {\n color: #c3e7ca;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-loader-icon__BraQe {\n margin: 8px 8px 8px 16px;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-btn__1ucbe:not(:last-child) {\n margin-right: 4px;\n}\n", ""]);
13
+ ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_compass-shell-module-compass-shell__3HHIT {\n width: 100%;\n background-color: #21313c;\n display: flex;\n flex-basis: auto;\n position: relative;\n flex-direction: column;\n max-height: 95%;\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx {\n flex-grow: 1;\n display: none;\n overflow: auto;\n border-top: 1px solid #3d4f58;\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx *::-webkit-scrollbar-thumb {\n background: rgba(180, 180, 180, 0.5);\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container-visible__1Y2Dy {\n display: flex;\n}\n", ""]);
14
14
  // Exports
15
15
  ___CSS_LOADER_EXPORT___.locals = {
16
- "compass-shell-header": "CompassShellPlugin_shell-header-module-compass-shell-header__15C8_",
17
- "compass-shell-header-left": "CompassShellPlugin_shell-header-module-compass-shell-header-left___3yX6",
18
- "compass-shell-header-right-actions": "CompassShellPlugin_shell-header-module-compass-shell-header-right-actions__1IsOP",
19
- "compass-shell-header-toggle": "CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY",
20
- "compass-shell-header-operation-in-progress": "CompassShellPlugin_shell-header-module-compass-shell-header-operation-in-progress__1MuCv",
21
- "compass-shell-header-loader-icon": "CompassShellPlugin_shell-header-module-compass-shell-header-loader-icon__BraQe",
22
- "compass-shell-header-btn": "CompassShellPlugin_shell-header-module-compass-shell-header-btn__1ucbe"
16
+ "compass-shell": "CompassShellPlugin_compass-shell-module-compass-shell__3HHIT",
17
+ "compass-shell-shell-container": "CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx",
18
+ "compass-shell-shell-container-visible": "CompassShellPlugin_compass-shell-module-compass-shell-shell-container-visible__1Y2Dy"
23
19
  };
24
20
  /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
25
21
 
26
22
 
27
23
  /***/ }),
28
24
 
29
- /***/ 159:
30
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
31
-
32
- "use strict";
33
- // ESM COMPAT FLAG
34
- __webpack_require__.r(__webpack_exports__);
35
-
36
- // EXPORTS
37
- __webpack_require__.d(__webpack_exports__, "CompassShell", function() { return /* reexport */ compass_shell_CompassShell; });
38
-
39
- // EXTERNAL MODULE: external "react"
40
- var external_react_ = __webpack_require__(0);
41
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
42
-
43
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/classnames/index.js
44
- var classnames = __webpack_require__(44);
45
- var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
46
-
47
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
48
- var injectStylesIntoStyleTag = __webpack_require__(57);
49
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
50
-
51
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/postcss-loader/lib??ref--5-2!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/compass-shell/compass-shell.module.less
52
- var compass_shell_module = __webpack_require__(86);
53
-
54
- // CONCATENATED MODULE: ./src/components/compass-shell/compass-shell.module.less
55
-
56
-
57
-
58
- var options = {};
59
-
60
- options.insert = "head";
61
- options.singleton = false;
62
-
63
- var update = injectStylesIntoStyleTag_default()(compass_shell_module["a" /* default */], options);
25
+ /***/ 430:
26
+ /***/ (function(module, exports, __webpack_require__) {
64
27
 
28
+ !function (t, n) {
29
+ true ? module.exports = n(__webpack_require__(170), __webpack_require__(2)) : undefined;
30
+ }(window, function (t, n) {
31
+ return function (t) {
32
+ var n = {};
65
33
 
34
+ function e(r) {
35
+ if (n[r]) return n[r].exports;
36
+ var o = n[r] = {
37
+ i: r,
38
+ l: !1,
39
+ exports: {}
40
+ };
41
+ return t[r].call(o.exports, o, o.exports, e), o.l = !0, o.exports;
42
+ }
66
43
 
67
- /* harmony default export */ var compass_shell_compass_shell_module = (compass_shell_module["a" /* default */].locals || {});
68
- // EXTERNAL MODULE: external "prop-types"
69
- var external_prop_types_ = __webpack_require__(14);
70
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
44
+ return e.m = t, e.c = n, e.d = function (t, n, r) {
45
+ e.o(t, n) || Object.defineProperty(t, n, {
46
+ enumerable: !0,
47
+ get: r
48
+ });
49
+ }, e.r = function (t) {
50
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
51
+ value: "Module"
52
+ }), Object.defineProperty(t, "__esModule", {
53
+ value: !0
54
+ });
55
+ }, e.t = function (t, n) {
56
+ if (1 & n && (t = e(t)), 8 & n) return t;
57
+ if (4 & n && "object" == typeof t && t && t.__esModule) return t;
58
+ var r = Object.create(null);
59
+ if (e.r(r), Object.defineProperty(r, "default", {
60
+ enumerable: !0,
61
+ value: t
62
+ }), 2 & n && "string" != typeof t) for (var o in t) e.d(r, o, function (n) {
63
+ return t[n];
64
+ }.bind(null, o));
65
+ return r;
66
+ }, e.n = function (t) {
67
+ var n = t && t.__esModule ? function () {
68
+ return t.default;
69
+ } : function () {
70
+ return t;
71
+ };
72
+ return e.d(n, "a", n), n;
73
+ }, e.o = function (t, n) {
74
+ return Object.prototype.hasOwnProperty.call(t, n);
75
+ }, e.p = "./", e(e.s = 98);
76
+ }([function (n, e) {
77
+ n.exports = t;
78
+ }, function (t, e) {
79
+ t.exports = n;
80
+ }, function (t, n) {
81
+ var e = function (t) {
82
+ return t && t.Math == Math && t;
83
+ };
71
84
 
72
- // EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 25 modules
73
- var es = __webpack_require__(12);
85
+ t.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof global && global) || function () {
86
+ return this;
87
+ }() || Function("return this")();
88
+ }, function (t, n) {
89
+ t.exports = function (t) {
90
+ return "object" == typeof t ? null !== t : "function" == typeof t;
91
+ };
92
+ }, function (t, n, e) {
93
+ var r = e(2),
94
+ o = e(40),
95
+ i = e(5),
96
+ u = e(43),
97
+ c = e(39),
98
+ a = e(56),
99
+ f = o("wks"),
100
+ s = r.Symbol,
101
+ p = a ? s : s && s.withoutSetter || u;
74
102
 
75
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
76
- var mongosh_browser_repl = __webpack_require__(66);
103
+ t.exports = function (t) {
104
+ return i(f, t) && (c || "string" == typeof f[t]) || (c && i(s, t) ? f[t] = s[t] : f[t] = p("Symbol." + t)), f[t];
105
+ };
106
+ }, function (t, n, e) {
107
+ var r = e(15),
108
+ o = {}.hasOwnProperty;
77
109
 
78
- // EXTERNAL MODULE: external "@mongodb-js/compass-components"
79
- var compass_components_ = __webpack_require__(40);
110
+ t.exports = Object.hasOwn || function (t, n) {
111
+ return o.call(r(t), n);
112
+ };
113
+ }, function (t, n) {
114
+ t.exports = function (t) {
115
+ try {
116
+ return !!t();
117
+ } catch (t) {
118
+ return !0;
119
+ }
120
+ };
121
+ }, function (t, n, e) {
122
+ var r = e(2),
123
+ o = e(35).f,
124
+ i = e(10),
125
+ u = e(20),
126
+ c = e(42),
127
+ a = e(59),
128
+ f = e(81);
80
129
 
81
- // EXTERNAL MODULE: ../hadron-react-buttons/lib/index.js
82
- var lib = __webpack_require__(87);
130
+ t.exports = function (t, n) {
131
+ var e,
132
+ s,
133
+ p,
134
+ l,
135
+ y,
136
+ v = t.target,
137
+ d = t.global,
138
+ b = t.stat;
139
+ if (e = d ? r : b ? r[v] || c(v, {}) : (r[v] || {}).prototype) for (s in n) {
140
+ if (l = n[s], p = t.noTargetGet ? (y = o(e, s)) && y.value : e[s], !f(d ? s : v + (b ? "." : "#") + s, t.forced) && void 0 !== p) {
141
+ if (typeof l == typeof p) continue;
142
+ a(l, p);
143
+ }
83
144
 
84
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/react-bootstrap/es/Modal.js + 16 modules
85
- var Modal = __webpack_require__(158);
145
+ (t.sham || p && p.sham) && i(l, "sham", !0), u(e, s, l, t);
146
+ }
147
+ };
148
+ }, function (t, n, e) {
149
+ var r = e(6);
150
+ t.exports = !r(function () {
151
+ return 7 != Object.defineProperty({}, 1, {
152
+ get: function () {
153
+ return 7;
154
+ }
155
+ })[1];
156
+ });
157
+ }, function (t, n, e) {
158
+ var r = e(8),
159
+ o = e(57),
160
+ i = e(11),
161
+ u = e(38),
162
+ c = Object.defineProperty;
163
+ n.f = r ? c : function (t, n, e) {
164
+ if (i(t), n = u(n), i(e), o) try {
165
+ return c(t, n, e);
166
+ } catch (t) {}
167
+ if ("get" in e || "set" in e) throw TypeError("Accessors not supported");
168
+ return "value" in e && (t[n] = e.value), t;
169
+ };
170
+ }, function (t, n, e) {
171
+ var r = e(8),
172
+ o = e(9),
173
+ i = e(17);
174
+ t.exports = r ? function (t, n, e) {
175
+ return o.f(t, n, i(1, e));
176
+ } : function (t, n, e) {
177
+ return t[n] = e, t;
178
+ };
179
+ }, function (t, n, e) {
180
+ var r = e(3);
86
181
 
87
- // EXTERNAL MODULE: ../compass-logging/dist/index.js
88
- var dist = __webpack_require__(11);
182
+ t.exports = function (t) {
183
+ if (!r(t)) throw TypeError(String(t) + " is not an object");
184
+ return t;
185
+ };
186
+ }, function (t, n, e) {
187
+ var r = e(55),
188
+ o = e(37);
89
189
 
90
- // EXTERNAL MODULE: ./package.json
91
- var package_0 = __webpack_require__(4);
190
+ t.exports = function (t) {
191
+ return r(o(t));
192
+ };
193
+ }, function (t, n, e) {
194
+ var r = e(2),
195
+ o = function (t) {
196
+ return "function" == typeof t ? t : void 0;
197
+ };
92
198
 
93
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/postcss-loader/lib??ref--5-2!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/info-modal/info-modal.module.less
94
- var info_modal_module = __webpack_require__(88);
199
+ t.exports = function (t, n) {
200
+ return arguments.length < 2 ? o(r[t]) : r[t] && r[t][n];
201
+ };
202
+ }, function (t, n, e) {
203
+ var r,
204
+ o = e(11),
205
+ i = e(83),
206
+ u = e(47),
207
+ c = e(23),
208
+ a = e(84),
209
+ f = e(44),
210
+ s = e(22),
211
+ p = s("IE_PROTO"),
212
+ l = function () {},
213
+ y = function (t) {
214
+ return "<script>" + t + "<\/script>";
215
+ },
216
+ v = function (t) {
217
+ t.write(y("")), t.close();
218
+ var n = t.parentWindow.Object;
219
+ return t = null, n;
220
+ },
221
+ d = function () {
222
+ try {
223
+ r = new ActiveXObject("htmlfile");
224
+ } catch (t) {}
95
225
 
96
- // CONCATENATED MODULE: ./src/components/info-modal/info-modal.module.less
226
+ var t, n;
227
+ d = "undefined" != typeof document ? document.domain && r ? v(r) : ((n = f("iframe")).style.display = "none", a.appendChild(n), n.src = String("javascript:"), (t = n.contentWindow.document).open(), t.write(y("document.F=Object")), t.close(), t.F) : v(r);
97
228
 
98
-
229
+ for (var e = u.length; e--;) delete d.prototype[u[e]];
99
230
 
100
- var info_modal_module_options = {};
231
+ return d();
232
+ };
101
233
 
102
- info_modal_module_options.insert = "head";
103
- info_modal_module_options.singleton = false;
104
-
105
- var info_modal_module_update = injectStylesIntoStyleTag_default()(info_modal_module["a" /* default */], info_modal_module_options);
234
+ c[p] = !0, t.exports = Object.create || function (t, n) {
235
+ var e;
236
+ return null !== t ? (l.prototype = o(t), e = new l(), l.prototype = null, e[p] = t) : e = d(), void 0 === n ? e : i(e, n);
237
+ };
238
+ }, function (t, n, e) {
239
+ var r = e(37);
106
240
 
241
+ t.exports = function (t) {
242
+ return Object(r(t));
243
+ };
244
+ }, function (t, n, e) {
245
+ "use strict";
107
246
 
247
+ var r = e(12),
248
+ o = e(93),
249
+ i = e(53),
250
+ u = e(21),
251
+ c = e(70),
252
+ a = u.set,
253
+ f = u.getterFor("Array Iterator");
254
+ t.exports = c(Array, "Array", function (t, n) {
255
+ a(this, {
256
+ type: "Array Iterator",
257
+ target: r(t),
258
+ index: 0,
259
+ kind: n
260
+ });
261
+ }, function () {
262
+ var t = f(this),
263
+ n = t.target,
264
+ e = t.kind,
265
+ r = t.index++;
266
+ return !n || r >= n.length ? (t.target = void 0, {
267
+ value: void 0,
268
+ done: !0
269
+ }) : "keys" == e ? {
270
+ value: r,
271
+ done: !1
272
+ } : "values" == e ? {
273
+ value: n[r],
274
+ done: !1
275
+ } : {
276
+ value: [r, n[r]],
277
+ done: !1
278
+ };
279
+ }, "values"), i.Arguments = i.Array, o("keys"), o("values"), o("entries");
280
+ }, function (t, n) {
281
+ t.exports = function (t, n) {
282
+ return {
283
+ enumerable: !(1 & t),
284
+ configurable: !(2 & t),
285
+ writable: !(4 & t),
286
+ value: n
287
+ };
288
+ };
289
+ }, function (t, n, e) {
290
+ var r = e(13),
291
+ o = e(56);
292
+ t.exports = o ? function (t) {
293
+ return "symbol" == typeof t;
294
+ } : function (t) {
295
+ var n = r("Symbol");
296
+ return "function" == typeof n && Object(t) instanceof n;
297
+ };
298
+ }, function (t, n) {
299
+ t.exports = !1;
300
+ }, function (t, n, e) {
301
+ var r = e(2),
302
+ o = e(10),
303
+ i = e(5),
304
+ u = e(42),
305
+ c = e(58),
306
+ a = e(21),
307
+ f = a.get,
308
+ s = a.enforce,
309
+ p = String(String).split("String");
310
+ (t.exports = function (t, n, e, c) {
311
+ var a,
312
+ f = !!c && !!c.unsafe,
313
+ l = !!c && !!c.enumerable,
314
+ y = !!c && !!c.noTargetGet;
315
+ "function" == typeof e && ("string" != typeof n || i(e, "name") || o(e, "name", n), (a = s(e)).source || (a.source = p.join("string" == typeof n ? n : ""))), t !== r ? (f ? !y && t[n] && (l = !0) : delete t[n], l ? t[n] = e : o(t, n, e)) : l ? t[n] = e : u(n, e);
316
+ })(Function.prototype, "toString", function () {
317
+ return "function" == typeof this && f(this).source || c(this);
318
+ });
319
+ }, function (t, n, e) {
320
+ var r,
321
+ o,
322
+ i,
323
+ u = e(77),
324
+ c = e(2),
325
+ a = e(3),
326
+ f = e(10),
327
+ s = e(5),
328
+ p = e(41),
329
+ l = e(22),
330
+ y = e(23),
331
+ v = c.WeakMap;
108
332
 
109
- /* harmony default export */ var info_modal_info_modal_module = (info_modal_module["a" /* default */].locals || {});
110
- // CONCATENATED MODULE: ./src/components/info-modal/info-modal.jsx
111
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
333
+ if (u || p.state) {
334
+ var d = p.state || (p.state = new v()),
335
+ b = d.get,
336
+ h = d.has,
337
+ m = d.set;
338
+ r = function (t, n) {
339
+ if (h.call(d, t)) throw new TypeError("Object already initialized");
340
+ return n.facade = t, m.call(d, t, n), n;
341
+ }, o = function (t) {
342
+ return b.call(d, t) || {};
343
+ }, i = function (t) {
344
+ return h.call(d, t);
345
+ };
346
+ } else {
347
+ var g = l("state");
348
+ y[g] = !0, r = function (t, n) {
349
+ if (s(t, g)) throw new TypeError("Object already initialized");
350
+ return n.facade = t, f(t, g, n), n;
351
+ }, o = function (t) {
352
+ return s(t, g) ? t[g] : {};
353
+ }, i = function (t) {
354
+ return s(t, g);
355
+ };
356
+ }
112
357
 
358
+ t.exports = {
359
+ set: r,
360
+ get: o,
361
+ has: i,
362
+ enforce: function (t) {
363
+ return i(t) ? o(t) : r(t, {});
364
+ },
365
+ getterFor: function (t) {
366
+ return function (n) {
367
+ var e;
368
+ if (!a(n) || (e = o(n)).type !== t) throw TypeError("Incompatible receiver, " + t + " required");
369
+ return e;
370
+ };
371
+ }
372
+ };
373
+ }, function (t, n, e) {
374
+ var r = e(40),
375
+ o = e(43),
376
+ i = r("keys");
113
377
 
378
+ t.exports = function (t) {
379
+ return i[t] || (i[t] = o(t));
380
+ };
381
+ }, function (t, n) {
382
+ t.exports = {};
383
+ }, function (t, n, e) {
384
+ e(7)({
385
+ target: "Object",
386
+ stat: !0
387
+ }, {
388
+ setPrototypeOf: e(64)
389
+ });
390
+ }, function (t, n, e) {
391
+ var r = e(7),
392
+ o = e(6),
393
+ i = e(15),
394
+ u = e(49),
395
+ c = e(65);
396
+ r({
397
+ target: "Object",
398
+ stat: !0,
399
+ forced: o(function () {
400
+ u(1);
401
+ }),
402
+ sham: !c
403
+ }, {
404
+ getPrototypeOf: function (t) {
405
+ return u(i(t));
406
+ }
407
+ });
408
+ }, function (t, n, e) {
409
+ var r = e(7),
410
+ o = e(13),
411
+ i = e(48),
412
+ u = e(11),
413
+ c = e(3),
414
+ a = e(14),
415
+ f = e(63),
416
+ s = e(6),
417
+ p = o("Reflect", "construct"),
418
+ l = s(function () {
419
+ function t() {}
114
420
 
421
+ return !(p(function () {}, [], t) instanceof t);
422
+ }),
423
+ y = !s(function () {
424
+ p(function () {});
425
+ }),
426
+ v = l || y;
427
+ r({
428
+ target: "Reflect",
429
+ stat: !0,
430
+ forced: v,
431
+ sham: v
432
+ }, {
433
+ construct: function (t, n) {
434
+ i(t), u(n);
435
+ var e = arguments.length < 3 ? t : i(arguments[2]);
436
+ if (y && !l) return p(t, n, e);
115
437
 
438
+ if (t == e) {
439
+ switch (n.length) {
440
+ case 0:
441
+ return new t();
116
442
 
443
+ case 1:
444
+ return new t(n[0]);
117
445
 
118
- const {
119
- track
120
- } = Object(dist["createLoggerAndTelemetry"])('COMPASS-IMPORT-EXPORT-UI');
446
+ case 2:
447
+ return new t(n[0], n[1]);
121
448
 
122
- const mongoshVersion = `v${package_0.dependencies['@mongosh/browser-repl'].replace('^', '')}`;
449
+ case 3:
450
+ return new t(n[0], n[1], n[2]);
123
451
 
124
- const hotkeys = [{
125
- key: 'Ctrl+A',
126
- description: 'Moves the cursor to the beginning of the line.'
127
- }, {
128
- key: 'Ctrl+B',
129
- description: 'Moves the cursor Backward one character.'
130
- }, {
131
- key: 'Ctrl+C',
132
- description: 'Stop currently running command.'
133
- }, {
134
- key: 'Ctrl+D',
135
- description: 'Deletes the next character.'
136
- }, {
137
- key: 'Ctrl+E',
138
- description: 'Moves the cursor to the end of the line.'
139
- }, {
140
- key: 'Ctrl+F',
141
- description: 'Moves the cursor Forward one character.'
142
- }, {
143
- key: 'Ctrl+H',
144
- description: 'Erases one character, similar to hitting backspace.'
145
- }, {
146
- key: 'Ctrl/Cmd+L',
147
- description: 'Clears the screen, similar to the clear command.'
148
- }, {
149
- key: 'Ctrl+T',
150
- description: 'Swap the last two characters before the cursor.'
151
- }, {
152
- key: 'Ctrl+U',
153
- description: 'Changes the line to Uppercase.'
154
- }];
155
- /**
156
- * Show information on how to use the shell in compass.
157
- */
452
+ case 4:
453
+ return new t(n[0], n[1], n[2], n[3]);
454
+ }
158
455
 
159
- class info_modal_InfoModal extends external_react_["PureComponent"] {
160
- constructor(...args) {
161
- super(...args);
456
+ var r = [null];
457
+ return r.push.apply(r, n), new (f.apply(t, r))();
458
+ }
162
459
 
163
- _defineProperty(this, "showHandler", () => {
164
- track('Screen', {
165
- name: 'shell_info_modal'
166
- });
460
+ var o = e.prototype,
461
+ s = a(c(o) ? o : Object.prototype),
462
+ v = Function.apply.call(t, s, n);
463
+ return c(v) ? v : s;
464
+ }
167
465
  });
168
- }
169
-
170
- /**
171
- * Render the component.
172
- *
173
- * @returns {React.Component} The component.
174
- */
175
- render() {
176
- const {
177
- hideInfoModal,
178
- show
179
- } = this.props;
180
- return /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */], {
181
- show: show,
182
- onShow: this.showHandler
183
- }, /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Header, {
184
- closeButton: true,
185
- onHide: hideInfoModal
186
- }, /*#__PURE__*/external_react_default.a.createElement("h4", null, "mongosh ", mongoshVersion)), /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Body, null, /*#__PURE__*/external_react_default.a.createElement("div", {
187
- className: info_modal_info_modal_module['info-modal-banner']
188
- }, "More information on this release of the\xA0", /*#__PURE__*/external_react_default.a.createElement("a", {
189
- className: info_modal_info_modal_module['info-modal-banner-link'],
190
- id: "mongosh-info-link",
191
- rel: "noreopener",
192
- href: "https://docs.mongodb.com/compass/beta/embedded-shell/",
193
- target: "_blank"
194
- }, "MongoDB Shell")), /*#__PURE__*/external_react_default.a.createElement("div", {
195
- className: info_modal_info_modal_module['info-modal-shortcuts-title']
196
- }, "Keyboard Shortcuts"), /*#__PURE__*/external_react_default.a.createElement("div", {
197
- className: info_modal_info_modal_module['info-modal-shortcuts']
198
- }, hotkeys.map(shortcut => /*#__PURE__*/external_react_default.a.createElement("div", {
199
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey'],
200
- key: `short-cut-${shortcut.key}`
201
- }, /*#__PURE__*/external_react_default.a.createElement("span", {
202
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
203
- }, shortcut.key), shortcut.description)), /*#__PURE__*/external_react_default.a.createElement("div", {
204
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey']
205
- }, /*#__PURE__*/external_react_default.a.createElement("span", {
206
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
207
- }, "\u2191"), "Cycle backwards through command history."), /*#__PURE__*/external_react_default.a.createElement("div", {
208
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey']
209
- }, /*#__PURE__*/external_react_default.a.createElement("span", {
210
- className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
211
- }, "\u2193"), "Cycle forwards through command history."))), /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Footer, null, /*#__PURE__*/external_react_default.a.createElement(lib["TextButton"], {
212
- id: "close-info-modal",
213
- className: "btn btn-default btn-sm",
214
- text: "Close",
215
- clickHandler: hideInfoModal
216
- })));
217
- }
218
-
219
- }
220
-
221
- _defineProperty(info_modal_InfoModal, "propTypes", {
222
- hideInfoModal: external_prop_types_default.a.func.isRequired,
223
- show: external_prop_types_default.a.bool.isRequired
224
- });
225
-
226
- /* harmony default export */ var info_modal = (info_modal_InfoModal);
227
- // CONCATENATED MODULE: ./src/components/info-modal/index.js
228
-
229
- /* harmony default export */ var components_info_modal = (info_modal);
230
- // EXTERNAL MODULE: /Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/postcss-loader/lib??ref--5-2!/Users/sergey.petushkov/Projects/MongoDB/compass3/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/shell-header/shell-header.module.less
231
- var shell_header_module = __webpack_require__(156);
232
-
233
- // CONCATENATED MODULE: ./src/components/shell-header/shell-header.module.less
234
-
235
-
236
-
237
- var shell_header_module_options = {};
238
-
239
- shell_header_module_options.insert = "head";
240
- shell_header_module_options.singleton = false;
241
-
242
- var shell_header_module_update = injectStylesIntoStyleTag_default()(shell_header_module["a" /* default */], shell_header_module_options);
243
-
244
-
245
-
246
- /* harmony default export */ var shell_header_shell_header_module = (shell_header_module["a" /* default */].locals || {});
247
- // CONCATENATED MODULE: ./src/components/shell-header/shell-header.jsx
248
- function shell_header_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- class shell_header_ShellHeader extends external_react_["Component"] {
257
- /**
258
- * Render ShellHeader component.
259
- *
260
- * @returns {React.Component} The rendered component.
261
- */
262
- render() {
263
- const {
264
- isExpanded,
265
- isOperationInProgress,
266
- onShellToggleClicked,
267
- showInfoModal
268
- } = this.props;
269
- return /*#__PURE__*/external_react_default.a.createElement("div", {
270
- className: shell_header_shell_header_module['compass-shell-header']
271
- }, /*#__PURE__*/external_react_default.a.createElement("div", {
272
- className: shell_header_shell_header_module['compass-shell-header-left']
273
- }, /*#__PURE__*/external_react_default.a.createElement("button", {
274
- "data-test-id": "shell-expand-button",
275
- className: shell_header_shell_header_module['compass-shell-header-toggle'],
276
- "aria-label": isExpanded ? 'Close Shell' : 'Open Shell',
277
- onClick: onShellToggleClicked,
278
- "aria-pressed": isExpanded
279
- }, ">_MONGOSH", !isExpanded && isOperationInProgress && /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(mongosh_browser_repl["ShellLoader"], {
280
- className: shell_header_shell_header_module['compass-shell-header-loader-icon'],
281
- size: "12px"
282
- }), /*#__PURE__*/external_react_default.a.createElement("span", {
283
- className: shell_header_shell_header_module['compass-shell-header-operation-in-progress']
284
- }, "Command in progress...")))), /*#__PURE__*/external_react_default.a.createElement("div", {
285
- className: shell_header_shell_header_module['compass-shell-header-right-actions']
286
- }, isExpanded && /*#__PURE__*/external_react_default.a.createElement(compass_components_["IconButton"], {
287
- className: shell_header_shell_header_module['compass-shell-header-btn'],
288
- variant: "dark",
289
- "aria-label": "Shell Info",
290
- "aria-haspopup": "dialog",
291
- onClick: showInfoModal
292
- }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Icon"], {
293
- glyph: "InfoWithCircle",
294
- size: "small"
295
- })), /*#__PURE__*/external_react_default.a.createElement(compass_components_["IconButton"], {
296
- className: shell_header_shell_header_module['compass-shell-header-btn'],
297
- variant: "dark",
298
- "aria-label": isExpanded ? 'Close Shell' : 'Open Shell',
299
- onClick: onShellToggleClicked,
300
- "aria-pressed": isExpanded
301
- }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Icon"], {
302
- glyph: isExpanded ? 'ChevronDown' : 'ChevronUp',
303
- size: "small"
304
- }))));
305
- }
306
-
307
- }
308
-
309
- shell_header_defineProperty(shell_header_ShellHeader, "propTypes", {
310
- isExpanded: external_prop_types_default.a.bool.isRequired,
311
- isOperationInProgress: external_prop_types_default.a.bool.isRequired,
312
- onShellToggleClicked: external_prop_types_default.a.func.isRequired,
313
- showInfoModal: external_prop_types_default.a.func.isRequired
314
- });
315
-
316
- /* harmony default export */ var shell_header = (shell_header_ShellHeader);
317
- // CONCATENATED MODULE: ./src/components/shell-header/index.js
318
-
319
- /* harmony default export */ var components_shell_header = (shell_header);
320
-
321
- // CONCATENATED MODULE: ./src/components/compass-shell/compass-shell.jsx
322
- function compass_shell_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
- const defaultShellHeightOpened = 240;
334
- const shellHeightClosed = 32;
335
- const shellMinHeightOpened = 100;
336
-
337
- function getMaxShellHeight() {
338
- return Math.max(defaultShellHeightOpened, window.innerHeight - 100);
339
- } // Apply bounds to the shell height when resizing to ensure it's always
340
- // visible and usable to the user.
341
-
342
-
343
- function boundShellHeight(attemptedHeight) {
344
- const maxHeight = getMaxShellHeight();
345
- return Math.min(maxHeight, Math.max(shellMinHeightOpened, attemptedHeight));
346
- }
347
-
348
- class compass_shell_CompassShell extends external_react_["Component"] {
349
- constructor(props) {
350
- super(props);
351
-
352
- compass_shell_defineProperty(this, "onShellOutputChanged", output => {
353
- this.shellOutput = output;
354
- });
355
-
356
- compass_shell_defineProperty(this, "onOperationStarted", () => {
357
- this.setState({
358
- isOperationInProgress: true
359
- });
360
- });
361
-
362
- compass_shell_defineProperty(this, "onOperationEnd", () => {
363
- this.setState({
364
- isOperationInProgress: false
365
- });
366
- });
367
-
368
- compass_shell_defineProperty(this, "terminateRuntime", () => {
369
- if (this.props.runtime) {
370
- this.props.runtime.terminate();
371
- }
466
+ }, function (t, n, e) {
467
+ e(7)({
468
+ target: "Object",
469
+ stat: !0,
470
+ sham: !e(8)
471
+ }, {
472
+ create: e(14)
372
473
  });
373
-
374
- compass_shell_defineProperty(this, "saveHistory", async history => {
375
- if (!this.props.historyStorage) {
376
- return;
377
- }
378
-
379
- try {
380
- await this.props.historyStorage.save(history);
381
- } catch (error) {
382
- // eslint-disable-next-line no-console
383
- console.error(error);
384
- }
474
+ }, function (t, n, e) {
475
+ var r = e(7),
476
+ o = e(8);
477
+ r({
478
+ target: "Object",
479
+ stat: !0,
480
+ forced: !o,
481
+ sham: !o
482
+ }, {
483
+ defineProperty: e(9).f
385
484
  });
485
+ }, function (t, n, e) {
486
+ "use strict";
386
487
 
387
- compass_shell_defineProperty(this, "loadHistory", async () => {
388
- if (!this.props.historyStorage) {
389
- return;
390
- }
488
+ var r = e(7),
489
+ o = e(2),
490
+ i = e(13),
491
+ u = e(19),
492
+ c = e(8),
493
+ a = e(39),
494
+ f = e(6),
495
+ s = e(5),
496
+ p = e(67),
497
+ l = e(3),
498
+ y = e(18),
499
+ v = e(11),
500
+ d = e(15),
501
+ b = e(12),
502
+ h = e(38),
503
+ m = e(50),
504
+ g = e(17),
505
+ O = e(14),
506
+ S = e(66),
507
+ x = e(45),
508
+ w = e(85),
509
+ j = e(62),
510
+ T = e(35),
511
+ P = e(9),
512
+ _ = e(54),
513
+ E = e(10),
514
+ k = e(20),
515
+ R = e(40),
516
+ C = e(22),
517
+ A = e(23),
518
+ I = e(43),
519
+ N = e(4),
520
+ L = e(68),
521
+ M = e(69),
522
+ B = e(51),
523
+ F = e(21),
524
+ D = e(87).forEach,
525
+ q = C("hidden"),
526
+ G = N("toPrimitive"),
527
+ H = F.set,
528
+ V = F.getterFor("Symbol"),
529
+ z = Object.prototype,
530
+ U = o.Symbol,
531
+ W = i("JSON", "stringify"),
532
+ Y = T.f,
533
+ J = P.f,
534
+ $ = w.f,
535
+ K = _.f,
536
+ Q = R("symbols"),
537
+ X = R("op-symbols"),
538
+ Z = R("string-to-symbol-registry"),
539
+ tt = R("symbol-to-string-registry"),
540
+ nt = R("wks"),
541
+ et = o.QObject,
542
+ rt = !et || !et.prototype || !et.prototype.findChild,
543
+ ot = c && f(function () {
544
+ return 7 != O(J({}, "a", {
545
+ get: function () {
546
+ return J(this, "a", {
547
+ value: 7
548
+ }).a;
549
+ }
550
+ })).a;
551
+ }) ? function (t, n, e) {
552
+ var r = Y(z, n);
553
+ r && delete z[n], J(t, n, e), r && t !== z && J(z, n, r);
554
+ } : J,
555
+ it = function (t, n) {
556
+ var e = Q[t] = O(U.prototype);
557
+ return H(e, {
558
+ type: "Symbol",
559
+ tag: t,
560
+ description: n
561
+ }), c || (e.description = n), e;
562
+ },
563
+ ut = function (t, n, e) {
564
+ t === z && ut(X, n, e), v(t);
565
+ var r = h(n);
566
+ return v(e), s(Q, r) ? (e.enumerable ? (s(t, q) && t[q][r] && (t[q][r] = !1), e = O(e, {
567
+ enumerable: g(0, !1)
568
+ })) : (s(t, q) || J(t, q, g(1, {})), t[q][r] = !0), ot(t, r, e)) : J(t, r, e);
569
+ },
570
+ ct = function (t, n) {
571
+ v(t);
572
+ var e = b(n),
573
+ r = S(e).concat(pt(e));
574
+ return D(r, function (n) {
575
+ c && !at.call(e, n) || ut(t, n, e[n]);
576
+ }), t;
577
+ },
578
+ at = function (t) {
579
+ var n = h(t),
580
+ e = K.call(this, n);
581
+ return !(this === z && s(Q, n) && !s(X, n)) && (!(e || !s(this, n) || !s(Q, n) || s(this, q) && this[q][n]) || e);
582
+ },
583
+ ft = function (t, n) {
584
+ var e = b(t),
585
+ r = h(n);
391
586
 
392
- try {
393
- const history = await this.props.historyStorage.load();
394
- this.setState({
395
- initialHistory: history
396
- });
397
- } catch (error) {
398
- // eslint-disable-next-line no-console
399
- console.error(error);
400
- this.setState({
401
- initialHistory: []
402
- });
587
+ if (e !== z || !s(Q, r) || s(X, r)) {
588
+ var o = Y(e, r);
589
+ return !o || !s(Q, r) || s(e, q) && e[q][r] || (o.enumerable = !0), o;
403
590
  }
404
- });
405
-
406
- this.shellOutput = this.props.shellOutput || [];
407
- this.state = {
408
- height: shellHeightClosed,
409
- prevHeight: defaultShellHeightOpened,
410
- initialHistory: this.props.historyStorage ? null : [],
411
- isOperationInProgress: false,
412
- showInfoModal: false
591
+ },
592
+ st = function (t) {
593
+ var n = $(b(t)),
594
+ e = [];
595
+ return D(n, function (t) {
596
+ s(Q, t) || s(A, t) || e.push(t);
597
+ }), e;
598
+ },
599
+ pt = function (t) {
600
+ var n = t === z,
601
+ e = $(n ? X : b(t)),
602
+ r = [];
603
+ return D(e, function (t) {
604
+ !s(Q, t) || n && !s(z, t) || r.push(Q[t]);
605
+ }), r;
413
606
  };
414
- }
415
-
416
- componentDidMount() {
417
- this.loadHistory();
418
- window.addEventListener('beforeunload', this.terminateRuntime);
419
- }
420
-
421
- componentDidUpdate(prevProps, prevState) {
422
- const {
423
- height
424
- } = this.state;
425
-
426
- if (prevState.height < shellMinHeightOpened && height > shellMinHeightOpened) {
427
- this.props.emitShellPluginOpened();
428
- }
429
- }
430
-
431
- componentWillUnmount() {
432
- window.removeEventListener('beforeunload', this.terminateRuntime);
433
- }
434
-
435
- updateHeight(height) {
436
- this.setState(height > shellMinHeightOpened ? {
437
- height,
438
- // Store the previous height to use when toggling open/close
439
- // when we resize while the shell is expanded.
440
- prevHeight: height
441
- } : {
442
- height
443
- });
444
- }
445
- /**
446
- * Render CompassShell component.
447
- *
448
- * @returns {React.Component} The rendered component.
449
- */
450
-
451
607
 
452
- render() {
453
- const {
454
- height,
455
- prevHeight,
456
- isOperationInProgress,
457
- showInfoModal
458
- } = this.state;
608
+ (a || (k((U = function () {
609
+ if (this instanceof U) throw TypeError("Symbol is not a constructor");
459
610
 
460
- if (!this.props.runtime || !this.state.initialHistory) {
461
- return /*#__PURE__*/external_react_default.a.createElement("div", null);
462
- }
611
+ var t = arguments.length && void 0 !== arguments[0] ? m(arguments[0]) : void 0,
612
+ n = I(t),
613
+ e = function (t) {
614
+ this === z && e.call(X, t), s(this, q) && s(this[q], n) && (this[q][n] = !1), ot(this, n, g(1, t));
615
+ };
463
616
 
464
- const isExpanded = height > shellMinHeightOpened;
465
- const renderedHeight = isExpanded ? boundShellHeight(height) : shellHeightClosed;
466
- return /*#__PURE__*/external_react_default.a.createElement(external_react_["Fragment"], null, /*#__PURE__*/external_react_default.a.createElement(components_info_modal, {
467
- show: showInfoModal,
468
- hideInfoModal: () => this.setState({
469
- showInfoModal: false
470
- })
471
- }), /*#__PURE__*/external_react_default.a.createElement("div", {
472
- "data-test-id": "shell-section",
473
- className: compass_shell_compass_shell_module['compass-shell'],
474
- style: {
475
- height: renderedHeight
617
+ return c && rt && ot(z, n, {
618
+ configurable: !0,
619
+ set: e
620
+ }), it(n, t);
621
+ }).prototype, "toString", function () {
622
+ return V(this).tag;
623
+ }), k(U, "withoutSetter", function (t) {
624
+ return it(I(t), t);
625
+ }), _.f = at, P.f = ut, T.f = ft, x.f = w.f = st, j.f = pt, L.f = function (t) {
626
+ return it(N(t), t);
627
+ }, c && (J(U.prototype, "description", {
628
+ configurable: !0,
629
+ get: function () {
630
+ return V(this).description;
631
+ }
632
+ }), u || k(z, "propertyIsEnumerable", at, {
633
+ unsafe: !0
634
+ }))), r({
635
+ global: !0,
636
+ wrap: !0,
637
+ forced: !a,
638
+ sham: !a
639
+ }, {
640
+ Symbol: U
641
+ }), D(S(nt), function (t) {
642
+ M(t);
643
+ }), r({
644
+ target: "Symbol",
645
+ stat: !0,
646
+ forced: !a
647
+ }, {
648
+ for: function (t) {
649
+ var n = m(t);
650
+ if (s(Z, n)) return Z[n];
651
+ var e = U(n);
652
+ return Z[n] = e, tt[e] = n, e;
476
653
  },
477
- id: "content"
478
- }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["ResizeHandle"], {
479
- direction: compass_components_["ResizeDirection"].TOP,
480
- onChange: newHeight => this.updateHeight(newHeight),
481
- value: height,
482
- minValue: shellHeightClosed,
483
- maxValue: getMaxShellHeight(),
484
- title: "MongoDB Shell"
485
- }), /*#__PURE__*/external_react_default.a.createElement(components_shell_header, {
486
- isExpanded: isExpanded,
487
- onShellToggleClicked: () => isExpanded ? this.updateHeight(shellHeightClosed) : this.updateHeight(prevHeight),
488
- isOperationInProgress: isOperationInProgress,
489
- showInfoModal: () => this.setState({
490
- showInfoModal: true
654
+ keyFor: function (t) {
655
+ if (!y(t)) throw TypeError(t + " is not a symbol");
656
+ if (s(tt, t)) return tt[t];
657
+ },
658
+ useSetter: function () {
659
+ rt = !0;
660
+ },
661
+ useSimple: function () {
662
+ rt = !1;
663
+ }
664
+ }), r({
665
+ target: "Object",
666
+ stat: !0,
667
+ forced: !a,
668
+ sham: !c
669
+ }, {
670
+ create: function (t, n) {
671
+ return void 0 === n ? O(t) : ct(O(t), n);
672
+ },
673
+ defineProperty: ut,
674
+ defineProperties: ct,
675
+ getOwnPropertyDescriptor: ft
676
+ }), r({
677
+ target: "Object",
678
+ stat: !0,
679
+ forced: !a
680
+ }, {
681
+ getOwnPropertyNames: st,
682
+ getOwnPropertySymbols: pt
683
+ }), r({
684
+ target: "Object",
685
+ stat: !0,
686
+ forced: f(function () {
687
+ j.f(1);
491
688
  })
492
- }), /*#__PURE__*/external_react_default.a.createElement("div", {
493
- "data-test-id": "shell-content",
494
- className: classnames_default()(compass_shell_compass_shell_module['compass-shell-shell-container'], {
495
- [compass_shell_compass_shell_module['compass-shell-shell-container-visible']]: isExpanded
689
+ }, {
690
+ getOwnPropertySymbols: function (t) {
691
+ return j.f(d(t));
692
+ }
693
+ }), W) && r({
694
+ target: "JSON",
695
+ stat: !0,
696
+ forced: !a || f(function () {
697
+ var t = U();
698
+ return "[null]" != W([t]) || "{}" != W({
699
+ a: t
700
+ }) || "{}" != W(Object(t));
496
701
  })
497
- }, /*#__PURE__*/external_react_default.a.createElement(mongosh_browser_repl["Shell"], {
498
- runtime: this.props.runtime,
499
- initialHistory: this.state.initialHistory,
500
- initialOutput: this.shellOutput,
501
- onHistoryChanged: this.saveHistory,
502
- onOutputChanged: this.onShellOutputChanged,
503
- onOperationStarted: this.onOperationStarted,
504
- onOperationEnd: this.onOperationEnd
505
- }))));
506
- }
702
+ }, {
703
+ stringify: function (t, n, e) {
704
+ for (var r, o = [t], i = 1; arguments.length > i;) o.push(arguments[i++]);
507
705
 
508
- }
706
+ if (r = n, (l(n) || void 0 !== t) && !y(t)) return p(n) || (n = function (t, n) {
707
+ if ("function" == typeof r && (n = r.call(this, t, n)), !y(n)) return n;
708
+ }), o[1] = n, W.apply(null, o);
709
+ }
710
+ });
711
+ U.prototype[G] || E(U.prototype, G, U.prototype.valueOf), B(U, "Symbol"), A[q] = !0;
712
+ }, function (t, n, e) {
713
+ "use strict";
509
714
 
510
- compass_shell_defineProperty(compass_shell_CompassShell, "propTypes", {
511
- emitShellPluginOpened: external_prop_types_default.a.func,
512
- runtime: external_prop_types_default.a.object,
513
- shellOutput: external_prop_types_default.a.array,
514
- historyStorage: external_prop_types_default.a.object
515
- });
715
+ var r = e(7),
716
+ o = e(8),
717
+ i = e(2),
718
+ u = e(5),
719
+ c = e(3),
720
+ a = e(9).f,
721
+ f = e(59),
722
+ s = i.Symbol;
516
723
 
517
- compass_shell_defineProperty(compass_shell_CompassShell, "defaultProps", {
518
- emitShellPluginOpened: () => {},
519
- runtime: null
520
- });
724
+ if (o && "function" == typeof s && (!("description" in s.prototype) || void 0 !== s().description)) {
725
+ var p = {},
726
+ l = function () {
727
+ var t = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]),
728
+ n = this instanceof l ? new s(t) : void 0 === t ? s() : s(t);
729
+ return "" === t && (p[n] = !0), n;
730
+ };
521
731
 
522
- /* harmony default export */ var compass_shell = (Object(es["b" /* connect */])(state => ({
523
- emitShellPluginOpened: () => {
524
- if (state.appRegistry && state.appRegistry.globalAppRegistry) {
525
- state.appRegistry.globalAppRegistry.emit('compass:compass-shell:opened');
732
+ f(l, s);
733
+ var y = l.prototype = s.prototype;
734
+ y.constructor = l;
735
+ var v = y.toString,
736
+ d = "Symbol(test)" == String(s("test")),
737
+ b = /^Symbol\((.*)\)[^)]+$/;
738
+ a(y, "description", {
739
+ configurable: !0,
740
+ get: function () {
741
+ var t = c(this) ? this.valueOf() : this,
742
+ n = v.call(t);
743
+ if (u(p, t)) return "";
744
+ var e = d ? n.slice(7, -1) : n.replace(b, "$1");
745
+ return "" === e ? void 0 : e;
746
+ }
747
+ }), r({
748
+ global: !0,
749
+ forced: !0
750
+ }, {
751
+ Symbol: l
752
+ });
526
753
  }
527
- },
528
- runtime: state.runtime ? state.runtime.runtime : null
529
- }))(compass_shell_CompassShell));
530
- // CONCATENATED MODULE: ./src/components/compass-shell/index.js
531
-
532
- /* harmony default export */ var components_compass_shell = __webpack_exports__["default"] = (compass_shell);
533
-
754
+ }, function (t, n, e) {
755
+ var r = e(52),
756
+ o = e(20),
757
+ i = e(91);
758
+ r || o(Object.prototype, "toString", i, {
759
+ unsafe: !0
760
+ });
761
+ }, function (t, n, e) {
762
+ e(69)("iterator");
763
+ }, function (t, n, e) {
764
+ "use strict";
534
765
 
535
- /***/ }),
766
+ var r = e(95).charAt,
767
+ o = e(50),
768
+ i = e(21),
769
+ u = e(70),
770
+ c = i.set,
771
+ a = i.getterFor("String Iterator");
772
+ u(String, "String", function (t) {
773
+ c(this, {
774
+ type: "String Iterator",
775
+ string: o(t),
776
+ index: 0
777
+ });
778
+ }, function () {
779
+ var t,
780
+ n = a(this),
781
+ e = n.string,
782
+ o = n.index;
783
+ return o >= e.length ? {
784
+ value: void 0,
785
+ done: !0
786
+ } : (t = r(e, o), n.index += t.length, {
787
+ value: t,
788
+ done: !1
789
+ });
790
+ });
791
+ }, function (t, n, e) {
792
+ var r = e(2),
793
+ o = e(96),
794
+ i = e(97),
795
+ u = e(16),
796
+ c = e(10),
797
+ a = e(4),
798
+ f = a("iterator"),
799
+ s = a("toStringTag"),
800
+ p = u.values,
801
+ l = function (t, n) {
802
+ if (t) {
803
+ if (t[f] !== p) try {
804
+ c(t, f, p);
805
+ } catch (n) {
806
+ t[f] = p;
807
+ }
808
+ if (t[s] || c(t, s, n), o[n]) for (var e in u) if (t[e] !== u[e]) try {
809
+ c(t, e, u[e]);
810
+ } catch (n) {
811
+ t[e] = u[e];
812
+ }
813
+ }
814
+ };
536
815
 
537
- /***/ 86:
538
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
816
+ for (var y in o) l(r[y] && r[y].prototype, y);
539
817
 
540
- "use strict";
541
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
542
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
543
- // Imports
818
+ l(i, "DOMTokenList");
819
+ }, function (t, n, e) {
820
+ var r = e(8),
821
+ o = e(54),
822
+ i = e(17),
823
+ u = e(12),
824
+ c = e(38),
825
+ a = e(5),
826
+ f = e(57),
827
+ s = Object.getOwnPropertyDescriptor;
828
+ n.f = r ? s : function (t, n) {
829
+ if (t = u(t), n = c(n), f) try {
830
+ return s(t, n);
831
+ } catch (t) {}
832
+ if (a(t, n)) return i(!o.f.call(t, n), t[n]);
833
+ };
834
+ }, function (t, n) {
835
+ var e = {}.toString;
544
836
 
545
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(false);
546
- // Module
547
- ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_compass-shell-module-compass-shell__3HHIT {\n width: 100%;\n background-color: #21313c;\n display: flex;\n flex-basis: auto;\n position: relative;\n flex-direction: column;\n max-height: 95%;\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx {\n flex-grow: 1;\n display: none;\n overflow: auto;\n border-top: 1px solid #3d4f58;\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx *::-webkit-scrollbar-thumb {\n background: rgba(180, 180, 180, 0.5);\n}\n.CompassShellPlugin_compass-shell-module-compass-shell-shell-container-visible__1Y2Dy {\n display: flex;\n}\n", ""]);
548
- // Exports
549
- ___CSS_LOADER_EXPORT___.locals = {
550
- "compass-shell": "CompassShellPlugin_compass-shell-module-compass-shell__3HHIT",
551
- "compass-shell-shell-container": "CompassShellPlugin_compass-shell-module-compass-shell-shell-container__21lyx",
552
- "compass-shell-shell-container-visible": "CompassShellPlugin_compass-shell-module-compass-shell-shell-container-visible__1Y2Dy"
553
- };
554
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
837
+ t.exports = function (t) {
838
+ return e.call(t).slice(8, -1);
839
+ };
840
+ }, function (t, n) {
841
+ t.exports = function (t) {
842
+ if (null == t) throw TypeError("Can't call method on " + t);
843
+ return t;
844
+ };
845
+ }, function (t, n, e) {
846
+ var r = e(73),
847
+ o = e(18);
555
848
 
849
+ t.exports = function (t) {
850
+ var n = r(t, "string");
851
+ return o(n) ? n : String(n);
852
+ };
853
+ }, function (t, n, e) {
854
+ var r = e(74),
855
+ o = e(6);
856
+ t.exports = !!Object.getOwnPropertySymbols && !o(function () {
857
+ var t = Symbol();
858
+ return !String(t) || !(Object(t) instanceof Symbol) || !Symbol.sham && r && r < 41;
859
+ });
860
+ }, function (t, n, e) {
861
+ var r = e(19),
862
+ o = e(41);
863
+ (t.exports = function (t, n) {
864
+ return o[t] || (o[t] = void 0 !== n ? n : {});
865
+ })("versions", []).push({
866
+ version: "3.17.3",
867
+ mode: r ? "pure" : "global",
868
+ copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
869
+ });
870
+ }, function (t, n, e) {
871
+ var r = e(2),
872
+ o = e(42),
873
+ i = r["__core-js_shared__"] || o("__core-js_shared__", {});
874
+ t.exports = i;
875
+ }, function (t, n, e) {
876
+ var r = e(2);
556
877
 
557
- /***/ }),
878
+ t.exports = function (t, n) {
879
+ try {
880
+ Object.defineProperty(r, t, {
881
+ value: n,
882
+ configurable: !0,
883
+ writable: !0
884
+ });
885
+ } catch (e) {
886
+ r[t] = n;
887
+ }
558
888
 
559
- /***/ 87:
560
- /***/ (function(module, exports, __webpack_require__) {
889
+ return n;
890
+ };
891
+ }, function (t, n) {
892
+ var e = 0,
893
+ r = Math.random();
561
894
 
562
- !function (t, n) {
563
- true ? module.exports = n(__webpack_require__(14), __webpack_require__(0)) : undefined;
564
- }(window, function (t, n) {
565
- return function (t) {
566
- var n = {};
895
+ t.exports = function (t) {
896
+ return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++e + r).toString(36);
897
+ };
898
+ }, function (t, n, e) {
899
+ var r = e(2),
900
+ o = e(3),
901
+ i = r.document,
902
+ u = o(i) && o(i.createElement);
567
903
 
568
- function e(r) {
569
- if (n[r]) return n[r].exports;
570
- var o = n[r] = {
571
- i: r,
572
- l: !1,
573
- exports: {}
574
- };
575
- return t[r].call(o.exports, o, o.exports, e), o.l = !0, o.exports;
576
- }
904
+ t.exports = function (t) {
905
+ return u ? i.createElement(t) : {};
906
+ };
907
+ }, function (t, n, e) {
908
+ var r = e(60),
909
+ o = e(47).concat("length", "prototype");
577
910
 
578
- return e.m = t, e.c = n, e.d = function (t, n, r) {
579
- e.o(t, n) || Object.defineProperty(t, n, {
580
- enumerable: !0,
581
- get: r
582
- });
583
- }, e.r = function (t) {
584
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
585
- value: "Module"
586
- }), Object.defineProperty(t, "__esModule", {
587
- value: !0
588
- });
589
- }, e.t = function (t, n) {
590
- if (1 & n && (t = e(t)), 8 & n) return t;
591
- if (4 & n && "object" == typeof t && t && t.__esModule) return t;
592
- var r = Object.create(null);
593
- if (e.r(r), Object.defineProperty(r, "default", {
594
- enumerable: !0,
595
- value: t
596
- }), 2 & n && "string" != typeof t) for (var o in t) e.d(r, o, function (n) {
597
- return t[n];
598
- }.bind(null, o));
599
- return r;
600
- }, e.n = function (t) {
601
- var n = t && t.__esModule ? function () {
602
- return t.default;
603
- } : function () {
604
- return t;
605
- };
606
- return e.d(n, "a", n), n;
607
- }, e.o = function (t, n) {
608
- return Object.prototype.hasOwnProperty.call(t, n);
609
- }, e.p = "./", e(e.s = 98);
610
- }([function (n, e) {
611
- n.exports = t;
612
- }, function (t, e) {
613
- t.exports = n;
614
- }, function (t, n) {
615
- var e = function (t) {
616
- return t && t.Math == Math && t;
911
+ n.f = Object.getOwnPropertyNames || function (t) {
912
+ return r(t, o);
617
913
  };
914
+ }, function (t, n) {
915
+ var e = Math.ceil,
916
+ r = Math.floor;
618
917
 
619
- t.exports = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof global && global) || function () {
620
- return this;
621
- }() || Function("return this")();
918
+ t.exports = function (t) {
919
+ return isNaN(t = +t) ? 0 : (t > 0 ? r : e)(t);
920
+ };
921
+ }, function (t, n) {
922
+ t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
622
923
  }, function (t, n) {
623
924
  t.exports = function (t) {
624
- return "object" == typeof t ? null !== t : "function" == typeof t;
925
+ if ("function" != typeof t) throw TypeError(String(t) + " is not a function");
926
+ return t;
625
927
  };
626
928
  }, function (t, n, e) {
627
- var r = e(2),
628
- o = e(40),
629
- i = e(5),
630
- u = e(43),
631
- c = e(39),
632
- a = e(56),
633
- f = o("wks"),
634
- s = r.Symbol,
635
- p = a ? s : s && s.withoutSetter || u;
929
+ var r = e(5),
930
+ o = e(15),
931
+ i = e(22),
932
+ u = e(65),
933
+ c = i("IE_PROTO"),
934
+ a = Object.prototype;
935
+ t.exports = u ? Object.getPrototypeOf : function (t) {
936
+ return t = o(t), r(t, c) ? t[c] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? a : null;
937
+ };
938
+ }, function (t, n, e) {
939
+ var r = e(18);
636
940
 
637
941
  t.exports = function (t) {
638
- return i(f, t) && (c || "string" == typeof f[t]) || (c && i(s, t) ? f[t] = s[t] : f[t] = p("Symbol." + t)), f[t];
942
+ if (r(t)) throw TypeError("Cannot convert a Symbol value to a string");
943
+ return String(t);
639
944
  };
640
945
  }, function (t, n, e) {
641
- var r = e(15),
642
- o = {}.hasOwnProperty;
946
+ var r = e(9).f,
947
+ o = e(5),
948
+ i = e(4)("toStringTag");
643
949
 
644
- t.exports = Object.hasOwn || function (t, n) {
645
- return o.call(r(t), n);
950
+ t.exports = function (t, n, e) {
951
+ t && !o(t = e ? t : t.prototype, i) && r(t, i, {
952
+ configurable: !0,
953
+ value: n
954
+ });
646
955
  };
956
+ }, function (t, n, e) {
957
+ var r = {};
958
+ r[e(4)("toStringTag")] = "z", t.exports = "[object z]" === String(r);
647
959
  }, function (t, n) {
648
- t.exports = function (t) {
649
- try {
650
- return !!t();
651
- } catch (t) {
652
- return !0;
960
+ t.exports = {};
961
+ }, function (t, n, e) {
962
+ "use strict";
963
+
964
+ var r = {}.propertyIsEnumerable,
965
+ o = Object.getOwnPropertyDescriptor,
966
+ i = o && !r.call({
967
+ 1: 2
968
+ }, 1);
969
+ n.f = i ? function (t) {
970
+ var n = o(this, t);
971
+ return !!n && n.enumerable;
972
+ } : r;
973
+ }, function (t, n, e) {
974
+ var r = e(6),
975
+ o = e(36),
976
+ i = "".split;
977
+ t.exports = r(function () {
978
+ return !Object("z").propertyIsEnumerable(0);
979
+ }) ? function (t) {
980
+ return "String" == o(t) ? i.call(t, "") : Object(t);
981
+ } : Object;
982
+ }, function (t, n, e) {
983
+ var r = e(39);
984
+ t.exports = r && !Symbol.sham && "symbol" == typeof Symbol.iterator;
985
+ }, function (t, n, e) {
986
+ var r = e(8),
987
+ o = e(6),
988
+ i = e(44);
989
+ t.exports = !r && !o(function () {
990
+ return 7 != Object.defineProperty(i("div"), "a", {
991
+ get: function () {
992
+ return 7;
993
+ }
994
+ }).a;
995
+ });
996
+ }, function (t, n, e) {
997
+ var r = e(41),
998
+ o = Function.toString;
999
+ "function" != typeof r.inspectSource && (r.inspectSource = function (t) {
1000
+ return o.call(t);
1001
+ }), t.exports = r.inspectSource;
1002
+ }, function (t, n, e) {
1003
+ var r = e(5),
1004
+ o = e(78),
1005
+ i = e(35),
1006
+ u = e(9);
1007
+
1008
+ t.exports = function (t, n) {
1009
+ for (var e = o(n), c = u.f, a = i.f, f = 0; f < e.length; f++) {
1010
+ var s = e[f];
1011
+ r(t, s) || c(t, s, a(n, s));
653
1012
  }
654
1013
  };
655
1014
  }, function (t, n, e) {
656
- var r = e(2),
657
- o = e(35).f,
658
- i = e(10),
659
- u = e(20),
660
- c = e(42),
661
- a = e(59),
662
- f = e(81);
1015
+ var r = e(5),
1016
+ o = e(12),
1017
+ i = e(79).indexOf,
1018
+ u = e(23);
663
1019
 
664
1020
  t.exports = function (t, n) {
665
1021
  var e,
666
- s,
667
- p,
668
- l,
669
- y,
670
- v = t.target,
671
- d = t.global,
672
- b = t.stat;
673
- if (e = d ? r : b ? r[v] || c(v, {}) : (r[v] || {}).prototype) for (s in n) {
674
- if (l = n[s], p = t.noTargetGet ? (y = o(e, s)) && y.value : e[s], !f(d ? s : v + (b ? "." : "#") + s, t.forced) && void 0 !== p) {
675
- if (typeof l == typeof p) continue;
676
- a(l, p);
677
- }
1022
+ c = o(t),
1023
+ a = 0,
1024
+ f = [];
1025
+
1026
+ for (e in c) !r(u, e) && r(c, e) && f.push(e);
1027
+
1028
+ for (; n.length > a;) r(c, e = n[a++]) && (~i(f, e) || f.push(e));
1029
+
1030
+ return f;
1031
+ };
1032
+ }, function (t, n, e) {
1033
+ var r = e(46),
1034
+ o = Math.min;
1035
+
1036
+ t.exports = function (t) {
1037
+ return t > 0 ? o(r(t), 9007199254740991) : 0;
1038
+ };
1039
+ }, function (t, n) {
1040
+ n.f = Object.getOwnPropertySymbols;
1041
+ }, function (t, n, e) {
1042
+ "use strict";
1043
+
1044
+ var r = e(48),
1045
+ o = e(3),
1046
+ i = [].slice,
1047
+ u = {},
1048
+ c = function (t, n, e) {
1049
+ if (!(n in u)) {
1050
+ for (var r = [], o = 0; o < n; o++) r[o] = "a[" + o + "]";
1051
+
1052
+ u[n] = Function("C,a", "return new C(" + r.join(",") + ")");
1053
+ }
1054
+
1055
+ return u[n](t, e);
1056
+ };
1057
+
1058
+ t.exports = Function.bind || function (t) {
1059
+ var n = r(this),
1060
+ e = i.call(arguments, 1),
1061
+ u = function () {
1062
+ var r = e.concat(i.call(arguments));
1063
+ return this instanceof u ? c(n, r.length, r) : n.apply(t, r);
1064
+ };
1065
+
1066
+ return o(n.prototype) && (u.prototype = n.prototype), u;
1067
+ };
1068
+ }, function (t, n, e) {
1069
+ var r = e(11),
1070
+ o = e(82);
1071
+ t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function () {
1072
+ var t,
1073
+ n = !1,
1074
+ e = {};
678
1075
 
679
- (t.sham || p && p.sham) && i(l, "sham", !0), u(e, s, l, t);
680
- }
681
- };
1076
+ try {
1077
+ (t = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(e, []), n = e instanceof Array;
1078
+ } catch (t) {}
1079
+
1080
+ return function (e, i) {
1081
+ return r(e), o(i), n ? t.call(e, i) : e.__proto__ = i, e;
1082
+ };
1083
+ }() : void 0);
682
1084
  }, function (t, n, e) {
683
1085
  var r = e(6);
684
1086
  t.exports = !r(function () {
685
- return 7 != Object.defineProperty({}, 1, {
686
- get: function () {
687
- return 7;
688
- }
689
- })[1];
1087
+ function t() {}
1088
+
1089
+ return t.prototype.constructor = null, Object.getPrototypeOf(new t()) !== t.prototype;
690
1090
  });
691
1091
  }, function (t, n, e) {
692
- var r = e(8),
693
- o = e(57),
694
- i = e(11),
695
- u = e(38),
696
- c = Object.defineProperty;
697
- n.f = r ? c : function (t, n, e) {
698
- if (i(t), n = u(n), i(e), o) try {
699
- return c(t, n, e);
700
- } catch (t) {}
701
- if ("get" in e || "set" in e) throw TypeError("Accessors not supported");
702
- return "value" in e && (t[n] = e.value), t;
703
- };
704
- }, function (t, n, e) {
705
- var r = e(8),
706
- o = e(9),
707
- i = e(17);
708
- t.exports = r ? function (t, n, e) {
709
- return o.f(t, n, i(1, e));
710
- } : function (t, n, e) {
711
- return t[n] = e, t;
1092
+ var r = e(60),
1093
+ o = e(47);
1094
+
1095
+ t.exports = Object.keys || function (t) {
1096
+ return r(t, o);
712
1097
  };
713
1098
  }, function (t, n, e) {
714
- var r = e(3);
1099
+ var r = e(36);
715
1100
 
716
- t.exports = function (t) {
717
- if (!r(t)) throw TypeError(String(t) + " is not an object");
718
- return t;
1101
+ t.exports = Array.isArray || function (t) {
1102
+ return "Array" == r(t);
719
1103
  };
720
1104
  }, function (t, n, e) {
721
- var r = e(55),
722
- o = e(37);
1105
+ var r = e(4);
1106
+ n.f = r;
1107
+ }, function (t, n, e) {
1108
+ var r = e(86),
1109
+ o = e(5),
1110
+ i = e(68),
1111
+ u = e(9).f;
723
1112
 
724
1113
  t.exports = function (t) {
725
- return r(o(t));
1114
+ var n = r.Symbol || (r.Symbol = {});
1115
+ o(n, t) || u(n, t, {
1116
+ value: i.f(t)
1117
+ });
726
1118
  };
727
1119
  }, function (t, n, e) {
728
- var r = e(2),
729
- o = function (t) {
730
- return "function" == typeof t ? t : void 0;
731
- };
1120
+ "use strict";
732
1121
 
733
- t.exports = function (t, n) {
734
- return arguments.length < 2 ? o(r[t]) : r[t] && r[t][n];
1122
+ var r = e(7),
1123
+ o = e(94),
1124
+ i = e(49),
1125
+ u = e(64),
1126
+ c = e(51),
1127
+ a = e(10),
1128
+ f = e(20),
1129
+ s = e(4),
1130
+ p = e(19),
1131
+ l = e(53),
1132
+ y = e(71),
1133
+ v = y.IteratorPrototype,
1134
+ d = y.BUGGY_SAFARI_ITERATORS,
1135
+ b = s("iterator"),
1136
+ h = function () {
1137
+ return this;
735
1138
  };
736
- }, function (t, n, e) {
737
- var r,
738
- o = e(11),
739
- i = e(83),
740
- u = e(47),
741
- c = e(23),
742
- a = e(84),
743
- f = e(44),
744
- s = e(22),
745
- p = s("IE_PROTO"),
746
- l = function () {},
747
- y = function (t) {
748
- return "<script>" + t + "<\/script>";
749
- },
750
- v = function (t) {
751
- t.write(y("")), t.close();
752
- var n = t.parentWindow.Object;
753
- return t = null, n;
754
- },
755
- d = function () {
756
- try {
757
- r = new ActiveXObject("htmlfile");
758
- } catch (t) {}
759
1139
 
760
- var t, n;
761
- d = "undefined" != typeof document ? document.domain && r ? v(r) : ((n = f("iframe")).style.display = "none", a.appendChild(n), n.src = String("javascript:"), (t = n.contentWindow.document).open(), t.write(y("document.F=Object")), t.close(), t.F) : v(r);
1140
+ t.exports = function (t, n, e, s, y, m, g) {
1141
+ o(e, n, s);
762
1142
 
763
- for (var e = u.length; e--;) delete d.prototype[u[e]];
1143
+ var O,
1144
+ S,
1145
+ x,
1146
+ w = function (t) {
1147
+ if (t === y && E) return E;
1148
+ if (!d && t in P) return P[t];
764
1149
 
765
- return d();
1150
+ switch (t) {
1151
+ case "keys":
1152
+ case "values":
1153
+ case "entries":
1154
+ return function () {
1155
+ return new e(this, t);
1156
+ };
1157
+ }
1158
+
1159
+ return function () {
1160
+ return new e(this);
1161
+ };
1162
+ },
1163
+ j = n + " Iterator",
1164
+ T = !1,
1165
+ P = t.prototype,
1166
+ _ = P[b] || P["@@iterator"] || y && P[y],
1167
+ E = !d && _ || w(y),
1168
+ k = "Array" == n && P.entries || _;
1169
+
1170
+ if (k && (O = i(k.call(new t()))) !== Object.prototype && O.next && (p || i(O) === v || (u ? u(O, v) : "function" != typeof O[b] && a(O, b, h)), c(O, j, !0, !0), p && (l[j] = h)), "values" == y && _ && "values" !== _.name && (T = !0, E = function () {
1171
+ return _.call(this);
1172
+ }), p && !g || P[b] === E || a(P, b, E), l[n] = E, y) if (S = {
1173
+ values: w("values"),
1174
+ keys: m ? E : w("keys"),
1175
+ entries: w("entries")
1176
+ }, g) for (x in S) (d || T || !(x in P)) && f(P, x, S[x]);else r({
1177
+ target: n,
1178
+ proto: !0,
1179
+ forced: d || T
1180
+ }, S);
1181
+ return S;
766
1182
  };
1183
+ }, function (t, n, e) {
1184
+ "use strict";
767
1185
 
768
- c[p] = !0, t.exports = Object.create || function (t, n) {
769
- var e;
770
- return null !== t ? (l.prototype = o(t), e = new l(), l.prototype = null, e[p] = t) : e = d(), void 0 === n ? e : i(e, n);
1186
+ var r,
1187
+ o,
1188
+ i,
1189
+ u = e(6),
1190
+ c = e(14),
1191
+ a = e(49),
1192
+ f = e(10),
1193
+ s = e(4),
1194
+ p = e(19),
1195
+ l = s("iterator"),
1196
+ y = !1;
1197
+ [].keys && ("next" in (i = [].keys()) ? (o = a(a(i))) !== Object.prototype && (r = o) : y = !0), null == r || u(function () {
1198
+ var t = {};
1199
+ return r[l].call(t) !== t;
1200
+ }) ? r = {} : p && (r = c(r)), "function" != typeof r[l] && f(r, l, function () {
1201
+ return this;
1202
+ }), t.exports = {
1203
+ IteratorPrototype: r,
1204
+ BUGGY_SAFARI_ITERATORS: y
771
1205
  };
772
1206
  }, function (t, n, e) {
773
- var r = e(37);
1207
+ e(7)({
1208
+ target: "Function",
1209
+ proto: !0
1210
+ }, {
1211
+ bind: e(63)
1212
+ });
1213
+ }, function (t, n, e) {
1214
+ var r = e(3),
1215
+ o = e(18),
1216
+ i = e(76),
1217
+ u = e(4)("toPrimitive");
774
1218
 
775
- t.exports = function (t) {
776
- return Object(r(t));
1219
+ t.exports = function (t, n) {
1220
+ if (!r(t) || o(t)) return t;
1221
+ var e,
1222
+ c = t[u];
1223
+
1224
+ if (void 0 !== c) {
1225
+ if (void 0 === n && (n = "default"), e = c.call(t, n), !r(e) || o(e)) return e;
1226
+ throw TypeError("Can't convert object to primitive value");
1227
+ }
1228
+
1229
+ return void 0 === n && (n = "number"), i(t, n);
777
1230
  };
778
1231
  }, function (t, n, e) {
779
- "use strict";
1232
+ var r,
1233
+ o,
1234
+ i = e(2),
1235
+ u = e(75),
1236
+ c = i.process,
1237
+ a = i.Deno,
1238
+ f = c && c.versions || a && a.version,
1239
+ s = f && f.v8;
1240
+ s ? o = (r = s.split("."))[0] < 4 ? 1 : r[0] + r[1] : u && (!(r = u.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = u.match(/Chrome\/(\d+)/)) && (o = r[1]), t.exports = o && +o;
1241
+ }, function (t, n, e) {
1242
+ var r = e(13);
1243
+ t.exports = r("navigator", "userAgent") || "";
1244
+ }, function (t, n, e) {
1245
+ var r = e(3);
780
1246
 
781
- var r = e(12),
782
- o = e(93),
783
- i = e(53),
784
- u = e(21),
785
- c = e(70),
786
- a = u.set,
787
- f = u.getterFor("Array Iterator");
788
- t.exports = c(Array, "Array", function (t, n) {
789
- a(this, {
790
- type: "Array Iterator",
791
- target: r(t),
792
- index: 0,
793
- kind: n
794
- });
795
- }, function () {
796
- var t = f(this),
797
- n = t.target,
798
- e = t.kind,
799
- r = t.index++;
800
- return !n || r >= n.length ? (t.target = void 0, {
801
- value: void 0,
802
- done: !0
803
- }) : "keys" == e ? {
804
- value: r,
805
- done: !1
806
- } : "values" == e ? {
807
- value: n[r],
808
- done: !1
809
- } : {
810
- value: [r, n[r]],
811
- done: !1
812
- };
813
- }, "values"), i.Arguments = i.Array, o("keys"), o("values"), o("entries");
814
- }, function (t, n) {
815
1247
  t.exports = function (t, n) {
816
- return {
817
- enumerable: !(1 & t),
818
- configurable: !(2 & t),
819
- writable: !(4 & t),
820
- value: n
821
- };
1248
+ var e, o;
1249
+ if ("string" === n && "function" == typeof (e = t.toString) && !r(o = e.call(t))) return o;
1250
+ if ("function" == typeof (e = t.valueOf) && !r(o = e.call(t))) return o;
1251
+ if ("string" !== n && "function" == typeof (e = t.toString) && !r(o = e.call(t))) return o;
1252
+ throw TypeError("Can't convert object to primitive value");
822
1253
  };
1254
+ }, function (t, n, e) {
1255
+ var r = e(2),
1256
+ o = e(58),
1257
+ i = r.WeakMap;
1258
+ t.exports = "function" == typeof i && /native code/.test(o(i));
823
1259
  }, function (t, n, e) {
824
1260
  var r = e(13),
825
- o = e(56);
826
- t.exports = o ? function (t) {
827
- return "symbol" == typeof t;
828
- } : function (t) {
829
- var n = r("Symbol");
830
- return "function" == typeof n && Object(t) instanceof n;
1261
+ o = e(45),
1262
+ i = e(62),
1263
+ u = e(11);
1264
+
1265
+ t.exports = r("Reflect", "ownKeys") || function (t) {
1266
+ var n = o.f(u(t)),
1267
+ e = i.f;
1268
+ return e ? n.concat(e(t)) : n;
831
1269
  };
832
- }, function (t, n) {
833
- t.exports = !1;
834
1270
  }, function (t, n, e) {
835
- var r = e(2),
836
- o = e(10),
837
- i = e(5),
838
- u = e(42),
839
- c = e(58),
840
- a = e(21),
841
- f = a.get,
842
- s = a.enforce,
843
- p = String(String).split("String");
844
- (t.exports = function (t, n, e, c) {
845
- var a,
846
- f = !!c && !!c.unsafe,
847
- l = !!c && !!c.enumerable,
848
- y = !!c && !!c.noTargetGet;
849
- "function" == typeof e && ("string" != typeof n || i(e, "name") || o(e, "name", n), (a = s(e)).source || (a.source = p.join("string" == typeof n ? n : ""))), t !== r ? (f ? !y && t[n] && (l = !0) : delete t[n], l ? t[n] = e : o(t, n, e)) : l ? t[n] = e : u(n, e);
850
- })(Function.prototype, "toString", function () {
851
- return "function" == typeof this && f(this).source || c(this);
852
- });
853
- }, function (t, n, e) {
854
- var r,
855
- o,
856
- i,
857
- u = e(77),
858
- c = e(2),
859
- a = e(3),
860
- f = e(10),
861
- s = e(5),
862
- p = e(41),
863
- l = e(22),
864
- y = e(23),
865
- v = c.WeakMap;
1271
+ var r = e(12),
1272
+ o = e(61),
1273
+ i = e(80),
1274
+ u = function (t) {
1275
+ return function (n, e, u) {
1276
+ var c,
1277
+ a = r(n),
1278
+ f = o(a.length),
1279
+ s = i(u, f);
866
1280
 
867
- if (u || p.state) {
868
- var d = p.state || (p.state = new v()),
869
- b = d.get,
870
- h = d.has,
871
- m = d.set;
872
- r = function (t, n) {
873
- if (h.call(d, t)) throw new TypeError("Object already initialized");
874
- return n.facade = t, m.call(d, t, n), n;
875
- }, o = function (t) {
876
- return b.call(d, t) || {};
877
- }, i = function (t) {
878
- return h.call(d, t);
879
- };
880
- } else {
881
- var g = l("state");
882
- y[g] = !0, r = function (t, n) {
883
- if (s(t, g)) throw new TypeError("Object already initialized");
884
- return n.facade = t, f(t, g, n), n;
885
- }, o = function (t) {
886
- return s(t, g) ? t[g] : {};
887
- }, i = function (t) {
888
- return s(t, g);
1281
+ if (t && e != e) {
1282
+ for (; f > s;) if ((c = a[s++]) != c) return !0;
1283
+ } else for (; f > s; s++) if ((t || s in a) && a[s] === e) return t || s || 0;
1284
+
1285
+ return !t && -1;
889
1286
  };
890
- }
1287
+ };
891
1288
 
892
1289
  t.exports = {
893
- set: r,
894
- get: o,
895
- has: i,
896
- enforce: function (t) {
897
- return i(t) ? o(t) : r(t, {});
898
- },
899
- getterFor: function (t) {
900
- return function (n) {
901
- var e;
902
- if (!a(n) || (e = o(n)).type !== t) throw TypeError("Incompatible receiver, " + t + " required");
903
- return e;
904
- };
905
- }
1290
+ includes: u(!0),
1291
+ indexOf: u(!1)
906
1292
  };
907
1293
  }, function (t, n, e) {
908
- var r = e(40),
909
- o = e(43),
910
- i = r("keys");
1294
+ var r = e(46),
1295
+ o = Math.max,
1296
+ i = Math.min;
1297
+
1298
+ t.exports = function (t, n) {
1299
+ var e = r(t);
1300
+ return e < 0 ? o(e + n, 0) : i(e, n);
1301
+ };
1302
+ }, function (t, n, e) {
1303
+ var r = e(6),
1304
+ o = /#|\.prototype\./,
1305
+ i = function (t, n) {
1306
+ var e = c[u(t)];
1307
+ return e == f || e != a && ("function" == typeof n ? r(n) : !!n);
1308
+ },
1309
+ u = i.normalize = function (t) {
1310
+ return String(t).replace(o, ".").toLowerCase();
1311
+ },
1312
+ c = i.data = {},
1313
+ a = i.NATIVE = "N",
1314
+ f = i.POLYFILL = "P";
1315
+
1316
+ t.exports = i;
1317
+ }, function (t, n, e) {
1318
+ var r = e(3);
911
1319
 
912
1320
  t.exports = function (t) {
913
- return i[t] || (i[t] = o(t));
1321
+ if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype");
1322
+ return t;
914
1323
  };
915
- }, function (t, n) {
916
- t.exports = {};
917
1324
  }, function (t, n, e) {
918
- e(7)({
919
- target: "Object",
920
- stat: !0
921
- }, {
922
- setPrototypeOf: e(64)
923
- });
1325
+ var r = e(8),
1326
+ o = e(9),
1327
+ i = e(11),
1328
+ u = e(66);
1329
+ t.exports = r ? Object.defineProperties : function (t, n) {
1330
+ i(t);
1331
+
1332
+ for (var e, r = u(n), c = r.length, a = 0; c > a;) o.f(t, e = r[a++], n[e]);
1333
+
1334
+ return t;
1335
+ };
924
1336
  }, function (t, n, e) {
925
- var r = e(7),
926
- o = e(6),
927
- i = e(15),
928
- u = e(49),
929
- c = e(65);
930
- r({
931
- target: "Object",
932
- stat: !0,
933
- forced: o(function () {
934
- u(1);
935
- }),
936
- sham: !c
937
- }, {
938
- getPrototypeOf: function (t) {
939
- return u(i(t));
940
- }
941
- });
1337
+ var r = e(13);
1338
+ t.exports = r("document", "documentElement");
942
1339
  }, function (t, n, e) {
943
- var r = e(7),
944
- o = e(13),
945
- i = e(48),
946
- u = e(11),
947
- c = e(3),
948
- a = e(14),
949
- f = e(63),
950
- s = e(6),
951
- p = o("Reflect", "construct"),
952
- l = s(function () {
953
- function t() {}
1340
+ var r = e(12),
1341
+ o = e(45).f,
1342
+ i = {}.toString,
1343
+ u = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
954
1344
 
955
- return !(p(function () {}, [], t) instanceof t);
956
- }),
957
- y = !s(function () {
958
- p(function () {});
959
- }),
960
- v = l || y;
961
- r({
962
- target: "Reflect",
963
- stat: !0,
964
- forced: v,
965
- sham: v
966
- }, {
967
- construct: function (t, n) {
968
- i(t), u(n);
969
- var e = arguments.length < 3 ? t : i(arguments[2]);
970
- if (y && !l) return p(t, n, e);
1345
+ t.exports.f = function (t) {
1346
+ return u && "[object Window]" == i.call(t) ? function (t) {
1347
+ try {
1348
+ return o(t);
1349
+ } catch (t) {
1350
+ return u.slice();
1351
+ }
1352
+ }(t) : o(r(t));
1353
+ };
1354
+ }, function (t, n, e) {
1355
+ var r = e(2);
1356
+ t.exports = r;
1357
+ }, function (t, n, e) {
1358
+ var r = e(88),
1359
+ o = e(55),
1360
+ i = e(15),
1361
+ u = e(61),
1362
+ c = e(89),
1363
+ a = [].push,
1364
+ f = function (t) {
1365
+ var n = 1 == t,
1366
+ e = 2 == t,
1367
+ f = 3 == t,
1368
+ s = 4 == t,
1369
+ p = 6 == t,
1370
+ l = 7 == t,
1371
+ y = 5 == t || p;
1372
+ return function (v, d, b, h) {
1373
+ for (var m, g, O = i(v), S = o(O), x = r(d, b, 3), w = u(S.length), j = 0, T = h || c, P = n ? T(v, w) : e || l ? T(v, 0) : void 0; w > j; j++) if ((y || j in S) && (g = x(m = S[j], j, O), t)) if (n) P[j] = g;else if (g) switch (t) {
1374
+ case 3:
1375
+ return !0;
1376
+
1377
+ case 5:
1378
+ return m;
1379
+
1380
+ case 6:
1381
+ return j;
1382
+
1383
+ case 2:
1384
+ a.call(P, m);
1385
+ } else switch (t) {
1386
+ case 4:
1387
+ return !1;
971
1388
 
972
- if (t == e) {
973
- switch (n.length) {
974
- case 0:
975
- return new t();
1389
+ case 7:
1390
+ a.call(P, m);
1391
+ }
976
1392
 
977
- case 1:
978
- return new t(n[0]);
1393
+ return p ? -1 : f || s ? s : P;
1394
+ };
1395
+ };
979
1396
 
980
- case 2:
981
- return new t(n[0], n[1]);
1397
+ t.exports = {
1398
+ forEach: f(0),
1399
+ map: f(1),
1400
+ filter: f(2),
1401
+ some: f(3),
1402
+ every: f(4),
1403
+ find: f(5),
1404
+ findIndex: f(6),
1405
+ filterReject: f(7)
1406
+ };
1407
+ }, function (t, n, e) {
1408
+ var r = e(48);
982
1409
 
983
- case 3:
984
- return new t(n[0], n[1], n[2]);
1410
+ t.exports = function (t, n, e) {
1411
+ if (r(t), void 0 === n) return t;
985
1412
 
986
- case 4:
987
- return new t(n[0], n[1], n[2], n[3]);
988
- }
1413
+ switch (e) {
1414
+ case 0:
1415
+ return function () {
1416
+ return t.call(n);
1417
+ };
989
1418
 
990
- var r = [null];
991
- return r.push.apply(r, n), new (f.apply(t, r))();
992
- }
1419
+ case 1:
1420
+ return function (e) {
1421
+ return t.call(n, e);
1422
+ };
993
1423
 
994
- var o = e.prototype,
995
- s = a(c(o) ? o : Object.prototype),
996
- v = Function.apply.call(t, s, n);
997
- return c(v) ? v : s;
1424
+ case 2:
1425
+ return function (e, r) {
1426
+ return t.call(n, e, r);
1427
+ };
1428
+
1429
+ case 3:
1430
+ return function (e, r, o) {
1431
+ return t.call(n, e, r, o);
1432
+ };
998
1433
  }
999
- });
1434
+
1435
+ return function () {
1436
+ return t.apply(n, arguments);
1437
+ };
1438
+ };
1000
1439
  }, function (t, n, e) {
1001
- e(7)({
1002
- target: "Object",
1003
- stat: !0,
1004
- sham: !e(8)
1005
- }, {
1006
- create: e(14)
1007
- });
1440
+ var r = e(90);
1441
+
1442
+ t.exports = function (t, n) {
1443
+ return new (r(t))(0 === n ? 0 : n);
1444
+ };
1008
1445
  }, function (t, n, e) {
1009
- var r = e(7),
1010
- o = e(8);
1011
- r({
1012
- target: "Object",
1013
- stat: !0,
1014
- forced: !o,
1015
- sham: !o
1016
- }, {
1017
- defineProperty: e(9).f
1018
- });
1446
+ var r = e(3),
1447
+ o = e(67),
1448
+ i = e(4)("species");
1449
+
1450
+ t.exports = function (t) {
1451
+ var n;
1452
+ return o(t) && ("function" != typeof (n = t.constructor) || n !== Array && !o(n.prototype) ? r(n) && null === (n = n[i]) && (n = void 0) : n = void 0), void 0 === n ? Array : n;
1453
+ };
1019
1454
  }, function (t, n, e) {
1020
1455
  "use strict";
1021
1456
 
1022
- var r = e(7),
1023
- o = e(2),
1024
- i = e(13),
1025
- u = e(19),
1026
- c = e(8),
1027
- a = e(39),
1028
- f = e(6),
1029
- s = e(5),
1030
- p = e(67),
1031
- l = e(3),
1032
- y = e(18),
1033
- v = e(11),
1034
- d = e(15),
1035
- b = e(12),
1036
- h = e(38),
1037
- m = e(50),
1038
- g = e(17),
1039
- O = e(14),
1040
- S = e(66),
1041
- x = e(45),
1042
- w = e(85),
1043
- j = e(62),
1044
- T = e(35),
1045
- P = e(9),
1046
- _ = e(54),
1047
- E = e(10),
1048
- k = e(20),
1049
- R = e(40),
1050
- C = e(22),
1051
- A = e(23),
1052
- I = e(43),
1053
- N = e(4),
1054
- L = e(68),
1055
- M = e(69),
1056
- B = e(51),
1057
- F = e(21),
1058
- D = e(87).forEach,
1059
- q = C("hidden"),
1060
- G = N("toPrimitive"),
1061
- H = F.set,
1062
- V = F.getterFor("Symbol"),
1063
- z = Object.prototype,
1064
- U = o.Symbol,
1065
- W = i("JSON", "stringify"),
1066
- Y = T.f,
1067
- J = P.f,
1068
- $ = w.f,
1069
- K = _.f,
1070
- Q = R("symbols"),
1071
- X = R("op-symbols"),
1072
- Z = R("string-to-symbol-registry"),
1073
- tt = R("symbol-to-string-registry"),
1074
- nt = R("wks"),
1075
- et = o.QObject,
1076
- rt = !et || !et.prototype || !et.prototype.findChild,
1077
- ot = c && f(function () {
1078
- return 7 != O(J({}, "a", {
1079
- get: function () {
1080
- return J(this, "a", {
1081
- value: 7
1082
- }).a;
1083
- }
1084
- })).a;
1085
- }) ? function (t, n, e) {
1086
- var r = Y(z, n);
1087
- r && delete z[n], J(t, n, e), r && t !== z && J(z, n, r);
1088
- } : J,
1089
- it = function (t, n) {
1090
- var e = Q[t] = O(U.prototype);
1091
- return H(e, {
1092
- type: "Symbol",
1093
- tag: t,
1094
- description: n
1095
- }), c || (e.description = n), e;
1096
- },
1097
- ut = function (t, n, e) {
1098
- t === z && ut(X, n, e), v(t);
1099
- var r = h(n);
1100
- return v(e), s(Q, r) ? (e.enumerable ? (s(t, q) && t[q][r] && (t[q][r] = !1), e = O(e, {
1101
- enumerable: g(0, !1)
1102
- })) : (s(t, q) || J(t, q, g(1, {})), t[q][r] = !0), ot(t, r, e)) : J(t, r, e);
1103
- },
1104
- ct = function (t, n) {
1105
- v(t);
1106
- var e = b(n),
1107
- r = S(e).concat(pt(e));
1108
- return D(r, function (n) {
1109
- c && !at.call(e, n) || ut(t, n, e[n]);
1110
- }), t;
1111
- },
1112
- at = function (t) {
1113
- var n = h(t),
1114
- e = K.call(this, n);
1115
- return !(this === z && s(Q, n) && !s(X, n)) && (!(e || !s(this, n) || !s(Q, n) || s(this, q) && this[q][n]) || e);
1116
- },
1117
- ft = function (t, n) {
1118
- var e = b(t),
1119
- r = h(n);
1457
+ var r = e(52),
1458
+ o = e(92);
1459
+ t.exports = r ? {}.toString : function () {
1460
+ return "[object " + o(this) + "]";
1461
+ };
1462
+ }, function (t, n, e) {
1463
+ var r = e(52),
1464
+ o = e(36),
1465
+ i = e(4)("toStringTag"),
1466
+ u = "Arguments" == o(function () {
1467
+ return arguments;
1468
+ }());
1469
+ t.exports = r ? o : function (t) {
1470
+ var n, e, r;
1471
+ return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (e = function (t, n) {
1472
+ try {
1473
+ return t[n];
1474
+ } catch (t) {}
1475
+ }(n = Object(t), i)) ? e : u ? o(n) : "Object" == (r = o(n)) && "function" == typeof n.callee ? "Arguments" : r;
1476
+ };
1477
+ }, function (t, n, e) {
1478
+ var r = e(4),
1479
+ o = e(14),
1480
+ i = e(9),
1481
+ u = r("unscopables"),
1482
+ c = Array.prototype;
1483
+ null == c[u] && i.f(c, u, {
1484
+ configurable: !0,
1485
+ value: o(null)
1486
+ }), t.exports = function (t) {
1487
+ c[u][t] = !0;
1488
+ };
1489
+ }, function (t, n, e) {
1490
+ "use strict";
1491
+
1492
+ var r = e(71).IteratorPrototype,
1493
+ o = e(14),
1494
+ i = e(17),
1495
+ u = e(51),
1496
+ c = e(53),
1497
+ a = function () {
1498
+ return this;
1499
+ };
1500
+
1501
+ t.exports = function (t, n, e) {
1502
+ var f = n + " Iterator";
1503
+ return t.prototype = o(r, {
1504
+ next: i(1, e)
1505
+ }), u(t, f, !1, !0), c[f] = a, t;
1506
+ };
1507
+ }, function (t, n, e) {
1508
+ var r = e(46),
1509
+ o = e(50),
1510
+ i = e(37),
1511
+ u = function (t) {
1512
+ return function (n, e) {
1513
+ var u,
1514
+ c,
1515
+ a = o(i(n)),
1516
+ f = r(e),
1517
+ s = a.length;
1518
+ return f < 0 || f >= s ? t ? "" : void 0 : (u = a.charCodeAt(f)) < 55296 || u > 56319 || f + 1 === s || (c = a.charCodeAt(f + 1)) < 56320 || c > 57343 ? t ? a.charAt(f) : u : t ? a.slice(f, f + 2) : c - 56320 + (u - 55296 << 10) + 65536;
1519
+ };
1520
+ };
1120
1521
 
1121
- if (e !== z || !s(Q, r) || s(X, r)) {
1122
- var o = Y(e, r);
1123
- return !o || !s(Q, r) || s(e, q) && e[q][r] || (o.enumerable = !0), o;
1124
- }
1125
- },
1126
- st = function (t) {
1127
- var n = $(b(t)),
1128
- e = [];
1129
- return D(n, function (t) {
1130
- s(Q, t) || s(A, t) || e.push(t);
1131
- }), e;
1132
- },
1133
- pt = function (t) {
1134
- var n = t === z,
1135
- e = $(n ? X : b(t)),
1136
- r = [];
1137
- return D(e, function (t) {
1138
- !s(Q, t) || n && !s(z, t) || r.push(Q[t]);
1139
- }), r;
1522
+ t.exports = {
1523
+ codeAt: u(!1),
1524
+ charAt: u(!0)
1525
+ };
1526
+ }, function (t, n) {
1527
+ t.exports = {
1528
+ CSSRuleList: 0,
1529
+ CSSStyleDeclaration: 0,
1530
+ CSSValueList: 0,
1531
+ ClientRectList: 0,
1532
+ DOMRectList: 0,
1533
+ DOMStringList: 0,
1534
+ DOMTokenList: 1,
1535
+ DataTransferItemList: 0,
1536
+ FileList: 0,
1537
+ HTMLAllCollection: 0,
1538
+ HTMLCollection: 0,
1539
+ HTMLFormElement: 0,
1540
+ HTMLSelectElement: 0,
1541
+ MediaList: 0,
1542
+ MimeTypeArray: 0,
1543
+ NamedNodeMap: 0,
1544
+ NodeList: 1,
1545
+ PaintRequestList: 0,
1546
+ Plugin: 0,
1547
+ PluginArray: 0,
1548
+ SVGLengthList: 0,
1549
+ SVGNumberList: 0,
1550
+ SVGPathSegList: 0,
1551
+ SVGPointList: 0,
1552
+ SVGStringList: 0,
1553
+ SVGTransformList: 0,
1554
+ SourceBufferList: 0,
1555
+ StyleSheetList: 0,
1556
+ TextTrackCueList: 0,
1557
+ TextTrackList: 0,
1558
+ TouchList: 0
1140
1559
  };
1560
+ }, function (t, n, e) {
1561
+ var r = e(44)("span").classList,
1562
+ o = r && r.constructor && r.constructor.prototype;
1563
+ t.exports = o === Object.prototype ? void 0 : o;
1564
+ }, function (t, n, e) {
1565
+ "use strict";
1141
1566
 
1142
- (a || (k((U = function () {
1143
- if (this instanceof U) throw TypeError("Symbol is not a constructor");
1567
+ e.r(n), e.d(n, "AnimatedIconTextButton", function () {
1568
+ return v;
1569
+ }), e.d(n, "IconButton", function () {
1570
+ return w;
1571
+ }), e.d(n, "IconTextButton", function () {
1572
+ return A;
1573
+ }), e.d(n, "TextButton", function () {
1574
+ return G;
1575
+ });
1576
+ e(72), e(24), e(25), e(26), e(27), e(28), e(29), e(30), e(31), e(32), e(16), e(33), e(34);
1577
+ var r = e(1),
1578
+ o = e.n(r),
1579
+ i = e(0),
1580
+ u = e.n(i);
1144
1581
 
1145
- var t = arguments.length && void 0 !== arguments[0] ? m(arguments[0]) : void 0,
1146
- n = I(t),
1147
- e = function (t) {
1148
- this === z && e.call(X, t), s(this, q) && s(this[q], n) && (this[q][n] = !1), ot(this, n, g(1, t));
1149
- };
1582
+ function c(t) {
1583
+ return (c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1584
+ return typeof t;
1585
+ } : function (t) {
1586
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1587
+ })(t);
1588
+ }
1150
1589
 
1151
- return c && rt && ot(z, n, {
1152
- configurable: !0,
1153
- set: e
1154
- }), it(n, t);
1155
- }).prototype, "toString", function () {
1156
- return V(this).tag;
1157
- }), k(U, "withoutSetter", function (t) {
1158
- return it(I(t), t);
1159
- }), _.f = at, P.f = ut, T.f = ft, x.f = w.f = st, j.f = pt, L.f = function (t) {
1160
- return it(N(t), t);
1161
- }, c && (J(U.prototype, "description", {
1162
- configurable: !0,
1163
- get: function () {
1164
- return V(this).description;
1165
- }
1166
- }), u || k(z, "propertyIsEnumerable", at, {
1167
- unsafe: !0
1168
- }))), r({
1169
- global: !0,
1170
- wrap: !0,
1171
- forced: !a,
1172
- sham: !a
1173
- }, {
1174
- Symbol: U
1175
- }), D(S(nt), function (t) {
1176
- M(t);
1177
- }), r({
1178
- target: "Symbol",
1179
- stat: !0,
1180
- forced: !a
1181
- }, {
1182
- for: function (t) {
1183
- var n = m(t);
1184
- if (s(Z, n)) return Z[n];
1185
- var e = U(n);
1186
- return Z[n] = e, tt[e] = n, e;
1187
- },
1188
- keyFor: function (t) {
1189
- if (!y(t)) throw TypeError(t + " is not a symbol");
1190
- if (s(tt, t)) return tt[t];
1191
- },
1192
- useSetter: function () {
1193
- rt = !0;
1194
- },
1195
- useSimple: function () {
1196
- rt = !1;
1197
- }
1198
- }), r({
1199
- target: "Object",
1200
- stat: !0,
1201
- forced: !a,
1202
- sham: !c
1203
- }, {
1204
- create: function (t, n) {
1205
- return void 0 === n ? O(t) : ct(O(t), n);
1206
- },
1207
- defineProperty: ut,
1208
- defineProperties: ct,
1209
- getOwnPropertyDescriptor: ft
1210
- }), r({
1211
- target: "Object",
1212
- stat: !0,
1213
- forced: !a
1214
- }, {
1215
- getOwnPropertyNames: st,
1216
- getOwnPropertySymbols: pt
1217
- }), r({
1218
- target: "Object",
1219
- stat: !0,
1220
- forced: f(function () {
1221
- j.f(1);
1222
- })
1223
- }, {
1224
- getOwnPropertySymbols: function (t) {
1225
- return j.f(d(t));
1590
+ function a(t, n) {
1591
+ for (var e = 0; e < n.length; e++) {
1592
+ var r = n[e];
1593
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1594
+ }
1595
+ }
1596
+
1597
+ function f(t, n) {
1598
+ return (f = Object.setPrototypeOf || function (t, n) {
1599
+ return t.__proto__ = n, t;
1600
+ })(t, n);
1601
+ }
1602
+
1603
+ function s(t) {
1604
+ var n = function () {
1605
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1606
+ if (Reflect.construct.sham) return !1;
1607
+ if ("function" == typeof Proxy) return !0;
1608
+
1609
+ try {
1610
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
1611
+ } catch (t) {
1612
+ return !1;
1613
+ }
1614
+ }();
1615
+
1616
+ return function () {
1617
+ var e,
1618
+ r = l(t);
1619
+
1620
+ if (n) {
1621
+ var o = l(this).constructor;
1622
+ e = Reflect.construct(r, arguments, o);
1623
+ } else e = r.apply(this, arguments);
1624
+
1625
+ return p(this, e);
1626
+ };
1627
+ }
1628
+
1629
+ function p(t, n) {
1630
+ if (n && ("object" === c(n) || "function" == typeof n)) return n;
1631
+ if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
1632
+ return function (t) {
1633
+ if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1634
+ return t;
1635
+ }(t);
1636
+ }
1637
+
1638
+ function l(t) {
1639
+ return (l = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
1640
+ return t.__proto__ || Object.getPrototypeOf(t);
1641
+ })(t);
1642
+ }
1643
+
1644
+ var y = function (t) {
1645
+ !function (t, n) {
1646
+ if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
1647
+ t.prototype = Object.create(n && n.prototype, {
1648
+ constructor: {
1649
+ value: t,
1650
+ writable: !0,
1651
+ configurable: !0
1652
+ }
1653
+ }), n && f(t, n);
1654
+ }(u, t);
1655
+ var n,
1656
+ e,
1657
+ r,
1658
+ i = s(u);
1659
+
1660
+ function u(t) {
1661
+ var n;
1662
+ return function (t, n) {
1663
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
1664
+ }(this, u), (n = i.call(this, t)).state = {
1665
+ animating: !1
1666
+ }, n;
1226
1667
  }
1227
- }), W) && r({
1228
- target: "JSON",
1229
- stat: !0,
1230
- forced: !a || f(function () {
1231
- var t = U();
1232
- return "[null]" != W([t]) || "{}" != W({
1233
- a: t
1234
- }) || "{}" != W(Object(t));
1235
- })
1236
- }, {
1237
- stringify: function (t, n, e) {
1238
- for (var r, o = [t], i = 1; arguments.length > i;) o.push(arguments[i++]);
1239
1668
 
1240
- if (r = n, (l(n) || void 0 !== t) && !y(t)) return p(n) || (n = function (t, n) {
1241
- if ("function" == typeof r && (n = r.call(this, t, n)), !y(n)) return n;
1242
- }), o[1] = n, W.apply(null, o);
1669
+ return n = u, (e = [{
1670
+ key: "componentDidMount",
1671
+ value: function () {
1672
+ this.unsubscribeStopAnimation = this.props.stopAnimationListenable.listen(this.handleStopAnimation.bind(this));
1673
+ }
1674
+ }, {
1675
+ key: "componentWillUnmount",
1676
+ value: function () {
1677
+ this.unsubscribeStopAnimation();
1678
+ }
1679
+ }, {
1680
+ key: "handleClick",
1681
+ value: function () {
1682
+ this.setState({
1683
+ animating: !0
1684
+ }), this.props.clickHandler();
1685
+ }
1686
+ }, {
1687
+ key: "handleStopAnimation",
1688
+ value: function () {
1689
+ this.setState({
1690
+ animating: !1
1691
+ });
1692
+ }
1693
+ }, {
1694
+ key: "renderIcon",
1695
+ value: function () {
1696
+ var t = this.state.animating ? this.props.animatingIconClassName : this.props.iconClassName;
1697
+ return o.a.createElement("i", {
1698
+ className: t,
1699
+ "aria-hidden": !0
1700
+ });
1701
+ }
1702
+ }, {
1703
+ key: "render",
1704
+ value: function () {
1705
+ return o.a.createElement("button", {
1706
+ type: "button",
1707
+ "data-test-id": this.props.dataTestId,
1708
+ className: this.props.className,
1709
+ onClick: this.handleClick.bind(this),
1710
+ disabled: this.props.disabled
1711
+ }, this.renderIcon(), this.props.text);
1712
+ }
1713
+ }]) && a(n.prototype, e), r && a(n, r), u;
1714
+ }(o.a.Component);
1715
+
1716
+ y.displayName = "AnimatedIconTextButton", y.propTypes = {
1717
+ text: u.a.string,
1718
+ clickHandler: u.a.func.isRequired,
1719
+ className: u.a.string,
1720
+ iconClassName: u.a.string.isRequired,
1721
+ animatingIconClassName: u.a.string.isRequired,
1722
+ dataTestId: u.a.string,
1723
+ stopAnimationListenable: u.a.any.isRequired,
1724
+ disabled: u.a.bool
1725
+ };
1726
+ var v = y;
1727
+
1728
+ function d(t) {
1729
+ return (d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1730
+ return typeof t;
1731
+ } : function (t) {
1732
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1733
+ })(t);
1734
+ }
1735
+
1736
+ function b(t, n) {
1737
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
1738
+ }
1739
+
1740
+ function h(t, n) {
1741
+ for (var e = 0; e < n.length; e++) {
1742
+ var r = n[e];
1743
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1243
1744
  }
1244
- });
1245
- U.prototype[G] || E(U.prototype, G, U.prototype.valueOf), B(U, "Symbol"), A[q] = !0;
1246
- }, function (t, n, e) {
1247
- "use strict";
1745
+ }
1248
1746
 
1249
- var r = e(7),
1250
- o = e(8),
1251
- i = e(2),
1252
- u = e(5),
1253
- c = e(3),
1254
- a = e(9).f,
1255
- f = e(59),
1256
- s = i.Symbol;
1747
+ function m(t, n) {
1748
+ return (m = Object.setPrototypeOf || function (t, n) {
1749
+ return t.__proto__ = n, t;
1750
+ })(t, n);
1751
+ }
1257
1752
 
1258
- if (o && "function" == typeof s && (!("description" in s.prototype) || void 0 !== s().description)) {
1259
- var p = {},
1260
- l = function () {
1261
- var t = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]),
1262
- n = this instanceof l ? new s(t) : void 0 === t ? s() : s(t);
1263
- return "" === t && (p[n] = !0), n;
1264
- };
1753
+ function g(t) {
1754
+ var n = function () {
1755
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1756
+ if (Reflect.construct.sham) return !1;
1757
+ if ("function" == typeof Proxy) return !0;
1265
1758
 
1266
- f(l, s);
1267
- var y = l.prototype = s.prototype;
1268
- y.constructor = l;
1269
- var v = y.toString,
1270
- d = "Symbol(test)" == String(s("test")),
1271
- b = /^Symbol\((.*)\)[^)]+$/;
1272
- a(y, "description", {
1273
- configurable: !0,
1274
- get: function () {
1275
- var t = c(this) ? this.valueOf() : this,
1276
- n = v.call(t);
1277
- if (u(p, t)) return "";
1278
- var e = d ? n.slice(7, -1) : n.replace(b, "$1");
1279
- return "" === e ? void 0 : e;
1759
+ try {
1760
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
1761
+ } catch (t) {
1762
+ return !1;
1280
1763
  }
1281
- }), r({
1282
- global: !0,
1283
- forced: !0
1284
- }, {
1285
- Symbol: l
1286
- });
1764
+ }();
1765
+
1766
+ return function () {
1767
+ var e,
1768
+ r = S(t);
1769
+
1770
+ if (n) {
1771
+ var o = S(this).constructor;
1772
+ e = Reflect.construct(r, arguments, o);
1773
+ } else e = r.apply(this, arguments);
1774
+
1775
+ return O(this, e);
1776
+ };
1287
1777
  }
1288
- }, function (t, n, e) {
1289
- var r = e(52),
1290
- o = e(20),
1291
- i = e(91);
1292
- r || o(Object.prototype, "toString", i, {
1293
- unsafe: !0
1294
- });
1295
- }, function (t, n, e) {
1296
- e(69)("iterator");
1297
- }, function (t, n, e) {
1298
- "use strict";
1299
1778
 
1300
- var r = e(95).charAt,
1301
- o = e(50),
1302
- i = e(21),
1303
- u = e(70),
1304
- c = i.set,
1305
- a = i.getterFor("String Iterator");
1306
- u(String, "String", function (t) {
1307
- c(this, {
1308
- type: "String Iterator",
1309
- string: o(t),
1310
- index: 0
1311
- });
1312
- }, function () {
1313
- var t,
1314
- n = a(this),
1315
- e = n.string,
1316
- o = n.index;
1317
- return o >= e.length ? {
1318
- value: void 0,
1319
- done: !0
1320
- } : (t = r(e, o), n.index += t.length, {
1321
- value: t,
1322
- done: !1
1323
- });
1324
- });
1325
- }, function (t, n, e) {
1326
- var r = e(2),
1327
- o = e(96),
1328
- i = e(97),
1329
- u = e(16),
1330
- c = e(10),
1331
- a = e(4),
1332
- f = a("iterator"),
1333
- s = a("toStringTag"),
1334
- p = u.values,
1335
- l = function (t, n) {
1336
- if (t) {
1337
- if (t[f] !== p) try {
1338
- c(t, f, p);
1339
- } catch (n) {
1340
- t[f] = p;
1341
- }
1342
- if (t[s] || c(t, s, n), o[n]) for (var e in u) if (t[e] !== u[e]) try {
1343
- c(t, e, u[e]);
1344
- } catch (n) {
1345
- t[e] = u[e];
1346
- }
1779
+ function O(t, n) {
1780
+ if (n && ("object" === d(n) || "function" == typeof n)) return n;
1781
+ if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
1782
+ return function (t) {
1783
+ if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1784
+ return t;
1785
+ }(t);
1786
+ }
1787
+
1788
+ function S(t) {
1789
+ return (S = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
1790
+ return t.__proto__ || Object.getPrototypeOf(t);
1791
+ })(t);
1792
+ }
1793
+
1794
+ var x = function (t) {
1795
+ !function (t, n) {
1796
+ if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
1797
+ t.prototype = Object.create(n && n.prototype, {
1798
+ constructor: {
1799
+ value: t,
1800
+ writable: !0,
1801
+ configurable: !0
1802
+ }
1803
+ }), n && m(t, n);
1804
+ }(u, t);
1805
+ var n,
1806
+ e,
1807
+ r,
1808
+ i = g(u);
1809
+
1810
+ function u() {
1811
+ return b(this, u), i.apply(this, arguments);
1347
1812
  }
1348
- };
1349
1813
 
1350
- for (var y in o) l(r[y] && r[y].prototype, y);
1814
+ return n = u, (e = [{
1815
+ key: "shouldComponentUpdate",
1816
+ value: function () {
1817
+ return !1;
1818
+ }
1819
+ }, {
1820
+ key: "render",
1821
+ value: function () {
1822
+ return o.a.createElement("button", {
1823
+ type: "button",
1824
+ title: this.props.title,
1825
+ "data-test-id": this.props.dataTestId,
1826
+ className: this.props.className,
1827
+ onClick: this.props.clickHandler
1828
+ }, o.a.createElement("i", {
1829
+ className: this.props.iconClassName,
1830
+ "aria-hidden": !0
1831
+ }));
1832
+ }
1833
+ }]) && h(n.prototype, e), r && h(n, r), u;
1834
+ }(o.a.Component);
1351
1835
 
1352
- l(i, "DOMTokenList");
1353
- }, function (t, n, e) {
1354
- var r = e(8),
1355
- o = e(54),
1356
- i = e(17),
1357
- u = e(12),
1358
- c = e(38),
1359
- a = e(5),
1360
- f = e(57),
1361
- s = Object.getOwnPropertyDescriptor;
1362
- n.f = r ? s : function (t, n) {
1363
- if (t = u(t), n = c(n), f) try {
1364
- return s(t, n);
1365
- } catch (t) {}
1366
- if (a(t, n)) return i(!o.f.call(t, n), t[n]);
1836
+ x.displayName = "IconButton", x.propTypes = {
1837
+ title: u.a.string,
1838
+ clickHandler: u.a.func.isRequired,
1839
+ className: u.a.string,
1840
+ iconClassName: u.a.string.isRequired,
1841
+ dataTestId: u.a.string
1367
1842
  };
1368
- }, function (t, n) {
1369
- var e = {}.toString;
1843
+ var w = x;
1370
1844
 
1371
- t.exports = function (t) {
1372
- return e.call(t).slice(8, -1);
1373
- };
1374
- }, function (t, n) {
1375
- t.exports = function (t) {
1376
- if (null == t) throw TypeError("Can't call method on " + t);
1377
- return t;
1378
- };
1379
- }, function (t, n, e) {
1380
- var r = e(73),
1381
- o = e(18);
1845
+ function j(t) {
1846
+ return (j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1847
+ return typeof t;
1848
+ } : function (t) {
1849
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1850
+ })(t);
1851
+ }
1382
1852
 
1383
- t.exports = function (t) {
1384
- var n = r(t, "string");
1385
- return o(n) ? n : String(n);
1386
- };
1387
- }, function (t, n, e) {
1388
- var r = e(74),
1389
- o = e(6);
1390
- t.exports = !!Object.getOwnPropertySymbols && !o(function () {
1391
- var t = Symbol();
1392
- return !String(t) || !(Object(t) instanceof Symbol) || !Symbol.sham && r && r < 41;
1393
- });
1394
- }, function (t, n, e) {
1395
- var r = e(19),
1396
- o = e(41);
1397
- (t.exports = function (t, n) {
1398
- return o[t] || (o[t] = void 0 !== n ? n : {});
1399
- })("versions", []).push({
1400
- version: "3.17.3",
1401
- mode: r ? "pure" : "global",
1402
- copyright: "© 2021 Denis Pushkarev (zloirock.ru)"
1403
- });
1404
- }, function (t, n, e) {
1405
- var r = e(2),
1406
- o = e(42),
1407
- i = r["__core-js_shared__"] || o("__core-js_shared__", {});
1408
- t.exports = i;
1409
- }, function (t, n, e) {
1410
- var r = e(2);
1853
+ function T(t, n) {
1854
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
1855
+ }
1411
1856
 
1412
- t.exports = function (t, n) {
1413
- try {
1414
- Object.defineProperty(r, t, {
1415
- value: n,
1416
- configurable: !0,
1417
- writable: !0
1418
- });
1419
- } catch (e) {
1420
- r[t] = n;
1857
+ function P(t, n) {
1858
+ for (var e = 0; e < n.length; e++) {
1859
+ var r = n[e];
1860
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1421
1861
  }
1862
+ }
1422
1863
 
1423
- return n;
1424
- };
1425
- }, function (t, n) {
1426
- var e = 0,
1427
- r = Math.random();
1864
+ function _(t, n) {
1865
+ return (_ = Object.setPrototypeOf || function (t, n) {
1866
+ return t.__proto__ = n, t;
1867
+ })(t, n);
1868
+ }
1428
1869
 
1429
- t.exports = function (t) {
1430
- return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++e + r).toString(36);
1431
- };
1432
- }, function (t, n, e) {
1433
- var r = e(2),
1434
- o = e(3),
1435
- i = r.document,
1436
- u = o(i) && o(i.createElement);
1870
+ function E(t) {
1871
+ var n = function () {
1872
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1873
+ if (Reflect.construct.sham) return !1;
1874
+ if ("function" == typeof Proxy) return !0;
1437
1875
 
1438
- t.exports = function (t) {
1439
- return u ? i.createElement(t) : {};
1440
- };
1441
- }, function (t, n, e) {
1442
- var r = e(60),
1443
- o = e(47).concat("length", "prototype");
1876
+ try {
1877
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
1878
+ } catch (t) {
1879
+ return !1;
1880
+ }
1881
+ }();
1444
1882
 
1445
- n.f = Object.getOwnPropertyNames || function (t) {
1446
- return r(t, o);
1447
- };
1448
- }, function (t, n) {
1449
- var e = Math.ceil,
1450
- r = Math.floor;
1883
+ return function () {
1884
+ var e,
1885
+ r = R(t);
1451
1886
 
1452
- t.exports = function (t) {
1453
- return isNaN(t = +t) ? 0 : (t > 0 ? r : e)(t);
1454
- };
1455
- }, function (t, n) {
1456
- t.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
1457
- }, function (t, n) {
1458
- t.exports = function (t) {
1459
- if ("function" != typeof t) throw TypeError(String(t) + " is not a function");
1460
- return t;
1461
- };
1462
- }, function (t, n, e) {
1463
- var r = e(5),
1464
- o = e(15),
1465
- i = e(22),
1466
- u = e(65),
1467
- c = i("IE_PROTO"),
1468
- a = Object.prototype;
1469
- t.exports = u ? Object.getPrototypeOf : function (t) {
1470
- return t = o(t), r(t, c) ? t[c] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? a : null;
1471
- };
1472
- }, function (t, n, e) {
1473
- var r = e(18);
1887
+ if (n) {
1888
+ var o = R(this).constructor;
1889
+ e = Reflect.construct(r, arguments, o);
1890
+ } else e = r.apply(this, arguments);
1474
1891
 
1475
- t.exports = function (t) {
1476
- if (r(t)) throw TypeError("Cannot convert a Symbol value to a string");
1477
- return String(t);
1478
- };
1479
- }, function (t, n, e) {
1480
- var r = e(9).f,
1481
- o = e(5),
1482
- i = e(4)("toStringTag");
1892
+ return k(this, e);
1893
+ };
1894
+ }
1483
1895
 
1484
- t.exports = function (t, n, e) {
1485
- t && !o(t = e ? t : t.prototype, i) && r(t, i, {
1486
- configurable: !0,
1487
- value: n
1488
- });
1489
- };
1490
- }, function (t, n, e) {
1491
- var r = {};
1492
- r[e(4)("toStringTag")] = "z", t.exports = "[object z]" === String(r);
1493
- }, function (t, n) {
1494
- t.exports = {};
1495
- }, function (t, n, e) {
1496
- "use strict";
1896
+ function k(t, n) {
1897
+ if (n && ("object" === j(n) || "function" == typeof n)) return n;
1898
+ if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
1899
+ return function (t) {
1900
+ if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1901
+ return t;
1902
+ }(t);
1903
+ }
1497
1904
 
1498
- var r = {}.propertyIsEnumerable,
1499
- o = Object.getOwnPropertyDescriptor,
1500
- i = o && !r.call({
1501
- 1: 2
1502
- }, 1);
1503
- n.f = i ? function (t) {
1504
- var n = o(this, t);
1505
- return !!n && n.enumerable;
1506
- } : r;
1507
- }, function (t, n, e) {
1508
- var r = e(6),
1509
- o = e(36),
1510
- i = "".split;
1511
- t.exports = r(function () {
1512
- return !Object("z").propertyIsEnumerable(0);
1513
- }) ? function (t) {
1514
- return "String" == o(t) ? i.call(t, "") : Object(t);
1515
- } : Object;
1516
- }, function (t, n, e) {
1517
- var r = e(39);
1518
- t.exports = r && !Symbol.sham && "symbol" == typeof Symbol.iterator;
1519
- }, function (t, n, e) {
1520
- var r = e(8),
1521
- o = e(6),
1522
- i = e(44);
1523
- t.exports = !r && !o(function () {
1524
- return 7 != Object.defineProperty(i("div"), "a", {
1525
- get: function () {
1526
- return 7;
1527
- }
1528
- }).a;
1529
- });
1530
- }, function (t, n, e) {
1531
- var r = e(41),
1532
- o = Function.toString;
1533
- "function" != typeof r.inspectSource && (r.inspectSource = function (t) {
1534
- return o.call(t);
1535
- }), t.exports = r.inspectSource;
1536
- }, function (t, n, e) {
1537
- var r = e(5),
1538
- o = e(78),
1539
- i = e(35),
1540
- u = e(9);
1905
+ function R(t) {
1906
+ return (R = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
1907
+ return t.__proto__ || Object.getPrototypeOf(t);
1908
+ })(t);
1909
+ }
1910
+
1911
+ var C = function (t) {
1912
+ !function (t, n) {
1913
+ if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
1914
+ t.prototype = Object.create(n && n.prototype, {
1915
+ constructor: {
1916
+ value: t,
1917
+ writable: !0,
1918
+ configurable: !0
1919
+ }
1920
+ }), n && _(t, n);
1921
+ }(u, t);
1922
+ var n,
1923
+ e,
1924
+ r,
1925
+ i = E(u);
1541
1926
 
1542
- t.exports = function (t, n) {
1543
- for (var e = o(n), c = u.f, a = i.f, f = 0; f < e.length; f++) {
1544
- var s = e[f];
1545
- r(t, s) || c(t, s, a(n, s));
1927
+ function u() {
1928
+ return T(this, u), i.apply(this, arguments);
1546
1929
  }
1547
- };
1548
- }, function (t, n, e) {
1549
- var r = e(5),
1550
- o = e(12),
1551
- i = e(79).indexOf,
1552
- u = e(23);
1553
-
1554
- t.exports = function (t, n) {
1555
- var e,
1556
- c = o(t),
1557
- a = 0,
1558
- f = [];
1559
-
1560
- for (e in c) !r(u, e) && r(c, e) && f.push(e);
1561
1930
 
1562
- for (; n.length > a;) r(c, e = n[a++]) && (~i(f, e) || f.push(e));
1931
+ return n = u, (e = [{
1932
+ key: "shouldComponentUpdate",
1933
+ value: function () {
1934
+ return !1;
1935
+ }
1936
+ }, {
1937
+ key: "render",
1938
+ value: function () {
1939
+ return o.a.createElement("button", {
1940
+ type: "button",
1941
+ "data-test-id": this.props.dataTestId,
1942
+ className: this.props.className,
1943
+ onClick: this.props.clickHandler
1944
+ }, o.a.createElement("i", {
1945
+ className: this.props.iconClassName,
1946
+ "aria-hidden": !0
1947
+ }), this.props.text);
1948
+ }
1949
+ }]) && P(n.prototype, e), r && P(n, r), u;
1950
+ }(o.a.Component);
1563
1951
 
1564
- return f;
1952
+ C.displayName = "IconTextButton", C.propTypes = {
1953
+ text: u.a.string,
1954
+ clickHandler: u.a.func.isRequired,
1955
+ className: u.a.string,
1956
+ iconClassName: u.a.string.isRequired,
1957
+ dataTestId: u.a.string
1565
1958
  };
1566
- }, function (t, n, e) {
1567
- var r = e(46),
1568
- o = Math.min;
1959
+ var A = C;
1569
1960
 
1570
- t.exports = function (t) {
1571
- return t > 0 ? o(r(t), 9007199254740991) : 0;
1572
- };
1573
- }, function (t, n) {
1574
- n.f = Object.getOwnPropertySymbols;
1575
- }, function (t, n, e) {
1576
- "use strict";
1961
+ function I(t) {
1962
+ return (I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1963
+ return typeof t;
1964
+ } : function (t) {
1965
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1966
+ })(t);
1967
+ }
1577
1968
 
1578
- var r = e(48),
1579
- o = e(3),
1580
- i = [].slice,
1581
- u = {},
1582
- c = function (t, n, e) {
1583
- if (!(n in u)) {
1584
- for (var r = [], o = 0; o < n; o++) r[o] = "a[" + o + "]";
1969
+ function N(t, n) {
1970
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
1971
+ }
1585
1972
 
1586
- u[n] = Function("C,a", "return new C(" + r.join(",") + ")");
1973
+ function L(t, n) {
1974
+ for (var e = 0; e < n.length; e++) {
1975
+ var r = n[e];
1976
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1587
1977
  }
1978
+ }
1588
1979
 
1589
- return u[n](t, e);
1590
- };
1980
+ function M(t, n) {
1981
+ return (M = Object.setPrototypeOf || function (t, n) {
1982
+ return t.__proto__ = n, t;
1983
+ })(t, n);
1984
+ }
1591
1985
 
1592
- t.exports = Function.bind || function (t) {
1593
- var n = r(this),
1594
- e = i.call(arguments, 1),
1595
- u = function () {
1596
- var r = e.concat(i.call(arguments));
1597
- return this instanceof u ? c(n, r.length, r) : n.apply(t, r);
1598
- };
1986
+ function B(t) {
1987
+ var n = function () {
1988
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
1989
+ if (Reflect.construct.sham) return !1;
1990
+ if ("function" == typeof Proxy) return !0;
1599
1991
 
1600
- return o(n.prototype) && (u.prototype = n.prototype), u;
1601
- };
1602
- }, function (t, n, e) {
1603
- var r = e(11),
1604
- o = e(82);
1605
- t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function () {
1606
- var t,
1607
- n = !1,
1608
- e = {};
1992
+ try {
1993
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
1994
+ } catch (t) {
1995
+ return !1;
1996
+ }
1997
+ }();
1609
1998
 
1610
- try {
1611
- (t = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(e, []), n = e instanceof Array;
1612
- } catch (t) {}
1999
+ return function () {
2000
+ var e,
2001
+ r = D(t);
1613
2002
 
1614
- return function (e, i) {
1615
- return r(e), o(i), n ? t.call(e, i) : e.__proto__ = i, e;
2003
+ if (n) {
2004
+ var o = D(this).constructor;
2005
+ e = Reflect.construct(r, arguments, o);
2006
+ } else e = r.apply(this, arguments);
2007
+
2008
+ return F(this, e);
1616
2009
  };
1617
- }() : void 0);
1618
- }, function (t, n, e) {
1619
- var r = e(6);
1620
- t.exports = !r(function () {
1621
- function t() {}
2010
+ }
1622
2011
 
1623
- return t.prototype.constructor = null, Object.getPrototypeOf(new t()) !== t.prototype;
1624
- });
1625
- }, function (t, n, e) {
1626
- var r = e(60),
1627
- o = e(47);
2012
+ function F(t, n) {
2013
+ if (n && ("object" === I(n) || "function" == typeof n)) return n;
2014
+ if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
2015
+ return function (t) {
2016
+ if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2017
+ return t;
2018
+ }(t);
2019
+ }
1628
2020
 
1629
- t.exports = Object.keys || function (t) {
1630
- return r(t, o);
1631
- };
1632
- }, function (t, n, e) {
1633
- var r = e(36);
2021
+ function D(t) {
2022
+ return (D = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
2023
+ return t.__proto__ || Object.getPrototypeOf(t);
2024
+ })(t);
2025
+ }
1634
2026
 
1635
- t.exports = Array.isArray || function (t) {
1636
- return "Array" == r(t);
1637
- };
1638
- }, function (t, n, e) {
1639
- var r = e(4);
1640
- n.f = r;
1641
- }, function (t, n, e) {
1642
- var r = e(86),
1643
- o = e(5),
1644
- i = e(68),
1645
- u = e(9).f;
2027
+ var q = function (t) {
2028
+ !function (t, n) {
2029
+ if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
2030
+ t.prototype = Object.create(n && n.prototype, {
2031
+ constructor: {
2032
+ value: t,
2033
+ writable: !0,
2034
+ configurable: !0
2035
+ }
2036
+ }), n && M(t, n);
2037
+ }(u, t);
2038
+ var n,
2039
+ e,
2040
+ r,
2041
+ i = B(u);
1646
2042
 
1647
- t.exports = function (t) {
1648
- var n = r.Symbol || (r.Symbol = {});
1649
- o(n, t) || u(n, t, {
1650
- value: i.f(t)
1651
- });
1652
- };
1653
- }, function (t, n, e) {
1654
- "use strict";
2043
+ function u() {
2044
+ return N(this, u), i.apply(this, arguments);
2045
+ }
1655
2046
 
1656
- var r = e(7),
1657
- o = e(94),
1658
- i = e(49),
1659
- u = e(64),
1660
- c = e(51),
1661
- a = e(10),
1662
- f = e(20),
1663
- s = e(4),
1664
- p = e(19),
1665
- l = e(53),
1666
- y = e(71),
1667
- v = y.IteratorPrototype,
1668
- d = y.BUGGY_SAFARI_ITERATORS,
1669
- b = s("iterator"),
1670
- h = function () {
1671
- return this;
2047
+ return n = u, (e = [{
2048
+ key: "render",
2049
+ value: function () {
2050
+ return o.a.createElement("button", {
2051
+ id: this.props.id,
2052
+ className: this.props.className,
2053
+ "data-test-id": this.props.dataTestId,
2054
+ title: this.props.title,
2055
+ type: "button",
2056
+ disabled: this.props.disabled,
2057
+ style: this.props.style,
2058
+ onClick: this.props.clickHandler
2059
+ }, this.props.text);
2060
+ }
2061
+ }]) && L(n.prototype, e), r && L(n, r), u;
2062
+ }(o.a.Component);
2063
+
2064
+ q.displayName = "TextButton", q.propTypes = {
2065
+ text: u.a.string.isRequired,
2066
+ title: u.a.string,
2067
+ clickHandler: u.a.func.isRequired,
2068
+ className: u.a.string,
2069
+ dataTestId: u.a.string,
2070
+ disabled: u.a.bool,
2071
+ id: u.a.string,
2072
+ style: u.a.object
1672
2073
  };
2074
+ var G = q;
2075
+ }]);
2076
+ });
1673
2077
 
1674
- t.exports = function (t, n, e, s, y, m, g) {
1675
- o(e, n, s);
2078
+ /***/ }),
1676
2079
 
1677
- var O,
1678
- S,
1679
- x,
1680
- w = function (t) {
1681
- if (t === y && E) return E;
1682
- if (!d && t in P) return P[t];
2080
+ /***/ 431:
2081
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2082
+
2083
+ "use strict";
2084
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(401);
2085
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
2086
+ // Imports
1683
2087
 
1684
- switch (t) {
1685
- case "keys":
1686
- case "values":
1687
- case "entries":
1688
- return function () {
1689
- return new e(this, t);
1690
- };
1691
- }
2088
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(false);
2089
+ // Module
2090
+ ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_info-modal-module-info-modal-banner__15KrH {\n color: #1a567e;\n border-color: #c5e4f2;\n background-color: #e1f2f6;\n padding: 9px 12px 9px 20px;\n border-width: 1px;\n border-style: solid;\n border-radius: 6px;\n font-size: 14px;\n}\n.CompassShellPlugin_info-modal-module-info-modal-banner-link___NgHS {\n font-weight: bold;\n text-decoration: underline;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts-title__3daCa {\n font-weight: bold;\n padding: 14px 0;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI {\n padding: 3px 0;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI:nth-child(odd) {\n background-color: #e7eeec;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey-key__p8XDj {\n font-weight: bold;\n padding-left: 14px;\n padding-right: 10px;\n}\n", ""]);
2091
+ // Exports
2092
+ ___CSS_LOADER_EXPORT___.locals = {
2093
+ "info-modal-banner": "CompassShellPlugin_info-modal-module-info-modal-banner__15KrH",
2094
+ "info-modal-banner-link": "CompassShellPlugin_info-modal-module-info-modal-banner-link___NgHS",
2095
+ "info-modal-shortcuts-title": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-title__3daCa",
2096
+ "info-modal-shortcuts": "CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb",
2097
+ "info-modal-shortcuts-hotkey": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI",
2098
+ "info-modal-shortcuts-hotkey-key": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey-key__p8XDj"
2099
+ };
2100
+ /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
1692
2101
 
1693
- return function () {
1694
- return new e(this);
1695
- };
1696
- },
1697
- j = n + " Iterator",
1698
- T = !1,
1699
- P = t.prototype,
1700
- _ = P[b] || P["@@iterator"] || y && P[y],
1701
- E = !d && _ || w(y),
1702
- k = "Array" == n && P.entries || _;
1703
2102
 
1704
- if (k && (O = i(k.call(new t()))) !== Object.prototype && O.next && (p || i(O) === v || (u ? u(O, v) : "function" != typeof O[b] && a(O, b, h)), c(O, j, !0, !0), p && (l[j] = h)), "values" == y && _ && "values" !== _.name && (T = !0, E = function () {
1705
- return _.call(this);
1706
- }), p && !g || P[b] === E || a(P, b, E), l[n] = E, y) if (S = {
1707
- values: w("values"),
1708
- keys: m ? E : w("keys"),
1709
- entries: w("entries")
1710
- }, g) for (x in S) (d || T || !(x in P)) && f(P, x, S[x]);else r({
1711
- target: n,
1712
- proto: !0,
1713
- forced: d || T
1714
- }, S);
1715
- return S;
1716
- };
1717
- }, function (t, n, e) {
1718
- "use strict";
2103
+ /***/ }),
1719
2104
 
1720
- var r,
1721
- o,
1722
- i,
1723
- u = e(6),
1724
- c = e(14),
1725
- a = e(49),
1726
- f = e(10),
1727
- s = e(4),
1728
- p = e(19),
1729
- l = s("iterator"),
1730
- y = !1;
1731
- [].keys && ("next" in (i = [].keys()) ? (o = a(a(i))) !== Object.prototype && (r = o) : y = !0), null == r || u(function () {
1732
- var t = {};
1733
- return r[l].call(t) !== t;
1734
- }) ? r = {} : p && (r = c(r)), "function" != typeof r[l] && f(r, l, function () {
1735
- return this;
1736
- }), t.exports = {
1737
- IteratorPrototype: r,
1738
- BUGGY_SAFARI_ITERATORS: y
1739
- };
1740
- }, function (t, n, e) {
1741
- e(7)({
1742
- target: "Function",
1743
- proto: !0
1744
- }, {
1745
- bind: e(63)
1746
- });
1747
- }, function (t, n, e) {
1748
- var r = e(3),
1749
- o = e(18),
1750
- i = e(76),
1751
- u = e(4)("toPrimitive");
2105
+ /***/ 499:
2106
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1752
2107
 
1753
- t.exports = function (t, n) {
1754
- if (!r(t) || o(t)) return t;
1755
- var e,
1756
- c = t[u];
2108
+ "use strict";
2109
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(401);
2110
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
2111
+ // Imports
1757
2112
 
1758
- if (void 0 !== c) {
1759
- if (void 0 === n && (n = "default"), e = c.call(t, n), !r(e) || o(e)) return e;
1760
- throw TypeError("Can't convert object to primitive value");
1761
- }
2113
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(false);
2114
+ // Module
2115
+ ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_shell-header-module-compass-shell-header__15C8_ {\n width: 100%;\n height: 32px;\n display: flex;\n color: #b8c4c2;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-left___3yX6 {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-right-actions__1IsOP {\n display: flex;\n padding-top: 2px;\n padding-right: 4px;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0px 8px;\n height: 100%;\n display: flex;\n vertical-align: middle;\n flex-direction: row;\n align-items: center;\n margin: auto 0;\n font-weight: bold;\n font-size: 12px;\n line-height: 32px;\n transition: all 200ms;\n user-select: none;\n text-transform: uppercase;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY:hover {\n color: #f9fbfa;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-operation-in-progress__1MuCv {\n color: #c3e7ca;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-loader-icon__BraQe {\n margin: 8px 8px 8px 16px;\n}\n.CompassShellPlugin_shell-header-module-compass-shell-header-btn__1ucbe:not(:last-child) {\n margin-right: 4px;\n}\n", ""]);
2116
+ // Exports
2117
+ ___CSS_LOADER_EXPORT___.locals = {
2118
+ "compass-shell-header": "CompassShellPlugin_shell-header-module-compass-shell-header__15C8_",
2119
+ "compass-shell-header-left": "CompassShellPlugin_shell-header-module-compass-shell-header-left___3yX6",
2120
+ "compass-shell-header-right-actions": "CompassShellPlugin_shell-header-module-compass-shell-header-right-actions__1IsOP",
2121
+ "compass-shell-header-toggle": "CompassShellPlugin_shell-header-module-compass-shell-header-toggle__1nsjY",
2122
+ "compass-shell-header-operation-in-progress": "CompassShellPlugin_shell-header-module-compass-shell-header-operation-in-progress__1MuCv",
2123
+ "compass-shell-header-loader-icon": "CompassShellPlugin_shell-header-module-compass-shell-header-loader-icon__BraQe",
2124
+ "compass-shell-header-btn": "CompassShellPlugin_shell-header-module-compass-shell-header-btn__1ucbe"
2125
+ };
2126
+ /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
1762
2127
 
1763
- return void 0 === n && (n = "number"), i(t, n);
1764
- };
1765
- }, function (t, n, e) {
1766
- var r,
1767
- o,
1768
- i = e(2),
1769
- u = e(75),
1770
- c = i.process,
1771
- a = i.Deno,
1772
- f = c && c.versions || a && a.version,
1773
- s = f && f.v8;
1774
- s ? o = (r = s.split("."))[0] < 4 ? 1 : r[0] + r[1] : u && (!(r = u.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = u.match(/Chrome\/(\d+)/)) && (o = r[1]), t.exports = o && +o;
1775
- }, function (t, n, e) {
1776
- var r = e(13);
1777
- t.exports = r("navigator", "userAgent") || "";
1778
- }, function (t, n, e) {
1779
- var r = e(3);
1780
2128
 
1781
- t.exports = function (t, n) {
1782
- var e, o;
1783
- if ("string" === n && "function" == typeof (e = t.toString) && !r(o = e.call(t))) return o;
1784
- if ("function" == typeof (e = t.valueOf) && !r(o = e.call(t))) return o;
1785
- if ("string" !== n && "function" == typeof (e = t.toString) && !r(o = e.call(t))) return o;
1786
- throw TypeError("Can't convert object to primitive value");
1787
- };
1788
- }, function (t, n, e) {
1789
- var r = e(2),
1790
- o = e(58),
1791
- i = r.WeakMap;
1792
- t.exports = "function" == typeof i && /native code/.test(o(i));
1793
- }, function (t, n, e) {
1794
- var r = e(13),
1795
- o = e(45),
1796
- i = e(62),
1797
- u = e(11);
2129
+ /***/ }),
1798
2130
 
1799
- t.exports = r("Reflect", "ownKeys") || function (t) {
1800
- var n = o.f(u(t)),
1801
- e = i.f;
1802
- return e ? n.concat(e(t)) : n;
1803
- };
1804
- }, function (t, n, e) {
1805
- var r = e(12),
1806
- o = e(61),
1807
- i = e(80),
1808
- u = function (t) {
1809
- return function (n, e, u) {
1810
- var c,
1811
- a = r(n),
1812
- f = o(a.length),
1813
- s = i(u, f);
2131
+ /***/ 502:
2132
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1814
2133
 
1815
- if (t && e != e) {
1816
- for (; f > s;) if ((c = a[s++]) != c) return !0;
1817
- } else for (; f > s; s++) if ((t || s in a) && a[s] === e) return t || s || 0;
2134
+ "use strict";
2135
+ // ESM COMPAT FLAG
2136
+ __webpack_require__.r(__webpack_exports__);
1818
2137
 
1819
- return !t && -1;
1820
- };
1821
- };
2138
+ // EXPORTS
2139
+ __webpack_require__.d(__webpack_exports__, "CompassShell", function() { return /* reexport */ compass_shell_CompassShell; });
1822
2140
 
1823
- t.exports = {
1824
- includes: u(!0),
1825
- indexOf: u(!1)
1826
- };
1827
- }, function (t, n, e) {
1828
- var r = e(46),
1829
- o = Math.max,
1830
- i = Math.min;
2141
+ // EXTERNAL MODULE: external "react"
2142
+ var external_react_ = __webpack_require__(2);
2143
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
1831
2144
 
1832
- t.exports = function (t, n) {
1833
- var e = r(t);
1834
- return e < 0 ? o(e + n, 0) : i(e, n);
1835
- };
1836
- }, function (t, n, e) {
1837
- var r = e(6),
1838
- o = /#|\.prototype\./,
1839
- i = function (t, n) {
1840
- var e = c[u(t)];
1841
- return e == f || e != a && ("function" == typeof n ? r(n) : !!n);
1842
- },
1843
- u = i.normalize = function (t) {
1844
- return String(t).replace(o, ".").toLowerCase();
1845
- },
1846
- c = i.data = {},
1847
- a = i.NATIVE = "N",
1848
- f = i.POLYFILL = "P";
2145
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/classnames/index.js
2146
+ var classnames = __webpack_require__(387);
2147
+ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
1849
2148
 
1850
- t.exports = i;
1851
- }, function (t, n, e) {
1852
- var r = e(3);
2149
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
2150
+ var injectStylesIntoStyleTag = __webpack_require__(400);
2151
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
1853
2152
 
1854
- t.exports = function (t) {
1855
- if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + " as a prototype");
1856
- return t;
1857
- };
1858
- }, function (t, n, e) {
1859
- var r = e(8),
1860
- o = e(9),
1861
- i = e(11),
1862
- u = e(66);
1863
- t.exports = r ? Object.defineProperties : function (t, n) {
1864
- i(t);
2153
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/alena.khineika/www/compass/node_modules/postcss-loader/lib??ref--5-2!/Users/alena.khineika/www/compass/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/compass-shell/compass-shell.module.less
2154
+ var compass_shell_module = __webpack_require__(429);
1865
2155
 
1866
- for (var e, r = u(n), c = r.length, a = 0; c > a;) o.f(t, e = r[a++], n[e]);
2156
+ // CONCATENATED MODULE: ./src/components/compass-shell/compass-shell.module.less
1867
2157
 
1868
- return t;
1869
- };
1870
- }, function (t, n, e) {
1871
- var r = e(13);
1872
- t.exports = r("document", "documentElement");
1873
- }, function (t, n, e) {
1874
- var r = e(12),
1875
- o = e(45).f,
1876
- i = {}.toString,
1877
- u = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
2158
+
1878
2159
 
1879
- t.exports.f = function (t) {
1880
- return u && "[object Window]" == i.call(t) ? function (t) {
1881
- try {
1882
- return o(t);
1883
- } catch (t) {
1884
- return u.slice();
1885
- }
1886
- }(t) : o(r(t));
1887
- };
1888
- }, function (t, n, e) {
1889
- var r = e(2);
1890
- t.exports = r;
1891
- }, function (t, n, e) {
1892
- var r = e(88),
1893
- o = e(55),
1894
- i = e(15),
1895
- u = e(61),
1896
- c = e(89),
1897
- a = [].push,
1898
- f = function (t) {
1899
- var n = 1 == t,
1900
- e = 2 == t,
1901
- f = 3 == t,
1902
- s = 4 == t,
1903
- p = 6 == t,
1904
- l = 7 == t,
1905
- y = 5 == t || p;
1906
- return function (v, d, b, h) {
1907
- for (var m, g, O = i(v), S = o(O), x = r(d, b, 3), w = u(S.length), j = 0, T = h || c, P = n ? T(v, w) : e || l ? T(v, 0) : void 0; w > j; j++) if ((y || j in S) && (g = x(m = S[j], j, O), t)) if (n) P[j] = g;else if (g) switch (t) {
1908
- case 3:
1909
- return !0;
2160
+ var options = {};
2161
+
2162
+ options.insert = "head";
2163
+ options.singleton = false;
1910
2164
 
1911
- case 5:
1912
- return m;
2165
+ var update = injectStylesIntoStyleTag_default()(compass_shell_module["a" /* default */], options);
1913
2166
 
1914
- case 6:
1915
- return j;
1916
2167
 
1917
- case 2:
1918
- a.call(P, m);
1919
- } else switch (t) {
1920
- case 4:
1921
- return !1;
1922
2168
 
1923
- case 7:
1924
- a.call(P, m);
1925
- }
2169
+ /* harmony default export */ var compass_shell_compass_shell_module = (compass_shell_module["a" /* default */].locals || {});
2170
+ // EXTERNAL MODULE: external "prop-types"
2171
+ var external_prop_types_ = __webpack_require__(170);
2172
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
1926
2173
 
1927
- return p ? -1 : f || s ? s : P;
1928
- };
1929
- };
2174
+ // EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 25 modules
2175
+ var es = __webpack_require__(167);
1930
2176
 
1931
- t.exports = {
1932
- forEach: f(0),
1933
- map: f(1),
1934
- filter: f(2),
1935
- some: f(3),
1936
- every: f(4),
1937
- find: f(5),
1938
- findIndex: f(6),
1939
- filterReject: f(7)
1940
- };
1941
- }, function (t, n, e) {
1942
- var r = e(48);
2177
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/@mongosh/browser-repl/lib/mongosh-browser-repl.js
2178
+ var mongosh_browser_repl = __webpack_require__(409);
1943
2179
 
1944
- t.exports = function (t, n, e) {
1945
- if (r(t), void 0 === n) return t;
2180
+ // EXTERNAL MODULE: external "@mongodb-js/compass-components"
2181
+ var compass_components_ = __webpack_require__(383);
1946
2182
 
1947
- switch (e) {
1948
- case 0:
1949
- return function () {
1950
- return t.call(n);
1951
- };
2183
+ // EXTERNAL MODULE: ../hadron-react-buttons/lib/index.js
2184
+ var lib = __webpack_require__(430);
1952
2185
 
1953
- case 1:
1954
- return function (e) {
1955
- return t.call(n, e);
1956
- };
2186
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/react-bootstrap/es/Modal.js + 16 modules
2187
+ var Modal = __webpack_require__(501);
1957
2188
 
1958
- case 2:
1959
- return function (e, r) {
1960
- return t.call(n, e, r);
1961
- };
2189
+ // EXTERNAL MODULE: ../compass-logging/dist/index.js
2190
+ var dist = __webpack_require__(166);
1962
2191
 
1963
- case 3:
1964
- return function (e, r, o) {
1965
- return t.call(n, e, r, o);
1966
- };
1967
- }
2192
+ // EXTERNAL MODULE: ./package.json
2193
+ var package_0 = __webpack_require__(58);
1968
2194
 
1969
- return function () {
1970
- return t.apply(n, arguments);
1971
- };
1972
- };
1973
- }, function (t, n, e) {
1974
- var r = e(90);
2195
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/alena.khineika/www/compass/node_modules/postcss-loader/lib??ref--5-2!/Users/alena.khineika/www/compass/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/info-modal/info-modal.module.less
2196
+ var info_modal_module = __webpack_require__(431);
1975
2197
 
1976
- t.exports = function (t, n) {
1977
- return new (r(t))(0 === n ? 0 : n);
1978
- };
1979
- }, function (t, n, e) {
1980
- var r = e(3),
1981
- o = e(67),
1982
- i = e(4)("species");
2198
+ // CONCATENATED MODULE: ./src/components/info-modal/info-modal.module.less
1983
2199
 
1984
- t.exports = function (t) {
1985
- var n;
1986
- return o(t) && ("function" != typeof (n = t.constructor) || n !== Array && !o(n.prototype) ? r(n) && null === (n = n[i]) && (n = void 0) : n = void 0), void 0 === n ? Array : n;
1987
- };
1988
- }, function (t, n, e) {
1989
- "use strict";
2200
+
1990
2201
 
1991
- var r = e(52),
1992
- o = e(92);
1993
- t.exports = r ? {}.toString : function () {
1994
- return "[object " + o(this) + "]";
1995
- };
1996
- }, function (t, n, e) {
1997
- var r = e(52),
1998
- o = e(36),
1999
- i = e(4)("toStringTag"),
2000
- u = "Arguments" == o(function () {
2001
- return arguments;
2002
- }());
2003
- t.exports = r ? o : function (t) {
2004
- var n, e, r;
2005
- return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (e = function (t, n) {
2006
- try {
2007
- return t[n];
2008
- } catch (t) {}
2009
- }(n = Object(t), i)) ? e : u ? o(n) : "Object" == (r = o(n)) && "function" == typeof n.callee ? "Arguments" : r;
2010
- };
2011
- }, function (t, n, e) {
2012
- var r = e(4),
2013
- o = e(14),
2014
- i = e(9),
2015
- u = r("unscopables"),
2016
- c = Array.prototype;
2017
- null == c[u] && i.f(c, u, {
2018
- configurable: !0,
2019
- value: o(null)
2020
- }), t.exports = function (t) {
2021
- c[u][t] = !0;
2022
- };
2023
- }, function (t, n, e) {
2024
- "use strict";
2202
+ var info_modal_module_options = {};
2025
2203
 
2026
- var r = e(71).IteratorPrototype,
2027
- o = e(14),
2028
- i = e(17),
2029
- u = e(51),
2030
- c = e(53),
2031
- a = function () {
2032
- return this;
2033
- };
2204
+ info_modal_module_options.insert = "head";
2205
+ info_modal_module_options.singleton = false;
2034
2206
 
2035
- t.exports = function (t, n, e) {
2036
- var f = n + " Iterator";
2037
- return t.prototype = o(r, {
2038
- next: i(1, e)
2039
- }), u(t, f, !1, !0), c[f] = a, t;
2040
- };
2041
- }, function (t, n, e) {
2042
- var r = e(46),
2043
- o = e(50),
2044
- i = e(37),
2045
- u = function (t) {
2046
- return function (n, e) {
2047
- var u,
2048
- c,
2049
- a = o(i(n)),
2050
- f = r(e),
2051
- s = a.length;
2052
- return f < 0 || f >= s ? t ? "" : void 0 : (u = a.charCodeAt(f)) < 55296 || u > 56319 || f + 1 === s || (c = a.charCodeAt(f + 1)) < 56320 || c > 57343 ? t ? a.charAt(f) : u : t ? a.slice(f, f + 2) : c - 56320 + (u - 55296 << 10) + 65536;
2053
- };
2054
- };
2207
+ var info_modal_module_update = injectStylesIntoStyleTag_default()(info_modal_module["a" /* default */], info_modal_module_options);
2055
2208
 
2056
- t.exports = {
2057
- codeAt: u(!1),
2058
- charAt: u(!0)
2059
- };
2060
- }, function (t, n) {
2061
- t.exports = {
2062
- CSSRuleList: 0,
2063
- CSSStyleDeclaration: 0,
2064
- CSSValueList: 0,
2065
- ClientRectList: 0,
2066
- DOMRectList: 0,
2067
- DOMStringList: 0,
2068
- DOMTokenList: 1,
2069
- DataTransferItemList: 0,
2070
- FileList: 0,
2071
- HTMLAllCollection: 0,
2072
- HTMLCollection: 0,
2073
- HTMLFormElement: 0,
2074
- HTMLSelectElement: 0,
2075
- MediaList: 0,
2076
- MimeTypeArray: 0,
2077
- NamedNodeMap: 0,
2078
- NodeList: 1,
2079
- PaintRequestList: 0,
2080
- Plugin: 0,
2081
- PluginArray: 0,
2082
- SVGLengthList: 0,
2083
- SVGNumberList: 0,
2084
- SVGPathSegList: 0,
2085
- SVGPointList: 0,
2086
- SVGStringList: 0,
2087
- SVGTransformList: 0,
2088
- SourceBufferList: 0,
2089
- StyleSheetList: 0,
2090
- TextTrackCueList: 0,
2091
- TextTrackList: 0,
2092
- TouchList: 0
2093
- };
2094
- }, function (t, n, e) {
2095
- var r = e(44)("span").classList,
2096
- o = r && r.constructor && r.constructor.prototype;
2097
- t.exports = o === Object.prototype ? void 0 : o;
2098
- }, function (t, n, e) {
2099
- "use strict";
2100
2209
 
2101
- e.r(n), e.d(n, "AnimatedIconTextButton", function () {
2102
- return v;
2103
- }), e.d(n, "IconButton", function () {
2104
- return w;
2105
- }), e.d(n, "IconTextButton", function () {
2106
- return A;
2107
- }), e.d(n, "TextButton", function () {
2108
- return G;
2210
+
2211
+ /* harmony default export */ var info_modal_info_modal_module = (info_modal_module["a" /* default */].locals || {});
2212
+ // CONCATENATED MODULE: ./src/components/info-modal/info-modal.jsx
2213
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2214
+
2215
+
2216
+
2217
+
2218
+
2219
+
2220
+ const {
2221
+ track
2222
+ } = Object(dist["createLoggerAndTelemetry"])('COMPASS-IMPORT-EXPORT-UI');
2223
+
2224
+ const mongoshVersion = `v${package_0.dependencies['@mongosh/browser-repl'].replace('^', '')}`;
2225
+
2226
+ const hotkeys = [{
2227
+ key: 'Ctrl+`',
2228
+ description: 'Toggle shell.'
2229
+ }, {
2230
+ key: 'Ctrl+A',
2231
+ description: 'Moves the cursor to the beginning of the line.'
2232
+ }, {
2233
+ key: 'Ctrl+B',
2234
+ description: 'Moves the cursor Backward one character.'
2235
+ }, {
2236
+ key: 'Ctrl+C',
2237
+ description: 'Stop currently running command.'
2238
+ }, {
2239
+ key: 'Ctrl+D',
2240
+ description: 'Deletes the next character.'
2241
+ }, {
2242
+ key: 'Ctrl+E',
2243
+ description: 'Moves the cursor to the end of the line.'
2244
+ }, {
2245
+ key: 'Ctrl+F',
2246
+ description: 'Moves the cursor Forward one character.'
2247
+ }, {
2248
+ key: 'Ctrl+H',
2249
+ description: 'Erases one character, similar to hitting backspace.'
2250
+ }, {
2251
+ key: 'Ctrl/Cmd+L',
2252
+ description: 'Clears the screen, similar to the clear command.'
2253
+ }, {
2254
+ key: 'Ctrl+T',
2255
+ description: 'Swap the last two characters before the cursor.'
2256
+ }, {
2257
+ key: 'Ctrl+U',
2258
+ description: 'Changes the line to Uppercase.'
2259
+ }];
2260
+ /**
2261
+ * Show information on how to use the shell in compass.
2262
+ */
2263
+
2264
+ class info_modal_InfoModal extends external_react_["PureComponent"] {
2265
+ constructor(...args) {
2266
+ super(...args);
2267
+
2268
+ _defineProperty(this, "showHandler", () => {
2269
+ track('Screen', {
2270
+ name: 'shell_info_modal'
2271
+ });
2109
2272
  });
2110
- e(72), e(24), e(25), e(26), e(27), e(28), e(29), e(30), e(31), e(32), e(16), e(33), e(34);
2111
- var r = e(1),
2112
- o = e.n(r),
2113
- i = e(0),
2114
- u = e.n(i);
2273
+ }
2115
2274
 
2116
- function c(t) {
2117
- return (c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2118
- return typeof t;
2119
- } : function (t) {
2120
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2121
- })(t);
2122
- }
2275
+ /**
2276
+ * Render the component.
2277
+ *
2278
+ * @returns {React.Component} The component.
2279
+ */
2280
+ render() {
2281
+ const {
2282
+ hideInfoModal,
2283
+ show
2284
+ } = this.props;
2285
+ return /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */], {
2286
+ restoreFocus: false,
2287
+ onEscapeKeyDown: hideInfoModal,
2288
+ show: show,
2289
+ onShow: this.showHandler
2290
+ }, /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Header, {
2291
+ closeButton: true,
2292
+ onHide: hideInfoModal
2293
+ }, /*#__PURE__*/external_react_default.a.createElement("h4", null, "mongosh ", mongoshVersion)), /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Body, null, /*#__PURE__*/external_react_default.a.createElement("div", {
2294
+ className: info_modal_info_modal_module['info-modal-banner']
2295
+ }, "More information on this release of the\xA0", /*#__PURE__*/external_react_default.a.createElement("a", {
2296
+ className: info_modal_info_modal_module['info-modal-banner-link'],
2297
+ id: "mongosh-info-link",
2298
+ rel: "noreopener",
2299
+ href: "https://docs.mongodb.com/compass/beta/embedded-shell/",
2300
+ target: "_blank"
2301
+ }, "MongoDB Shell")), /*#__PURE__*/external_react_default.a.createElement("div", {
2302
+ className: info_modal_info_modal_module['info-modal-shortcuts-title']
2303
+ }, "Keyboard Shortcuts"), /*#__PURE__*/external_react_default.a.createElement("div", {
2304
+ className: info_modal_info_modal_module['info-modal-shortcuts']
2305
+ }, hotkeys.map(shortcut => /*#__PURE__*/external_react_default.a.createElement("div", {
2306
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey'],
2307
+ key: `short-cut-${shortcut.key}`
2308
+ }, /*#__PURE__*/external_react_default.a.createElement("span", {
2309
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
2310
+ }, shortcut.key), shortcut.description)), /*#__PURE__*/external_react_default.a.createElement("div", {
2311
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey']
2312
+ }, /*#__PURE__*/external_react_default.a.createElement("span", {
2313
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
2314
+ }, "\u2191"), "Cycle backwards through command history."), /*#__PURE__*/external_react_default.a.createElement("div", {
2315
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey']
2316
+ }, /*#__PURE__*/external_react_default.a.createElement("span", {
2317
+ className: info_modal_info_modal_module['info-modal-shortcuts-hotkey-key']
2318
+ }, "\u2193"), "Cycle forwards through command history."))), /*#__PURE__*/external_react_default.a.createElement(Modal["a" /* default */].Footer, null, /*#__PURE__*/external_react_default.a.createElement(lib["TextButton"], {
2319
+ id: "close-info-modal",
2320
+ className: "btn btn-default btn-sm",
2321
+ text: "Close",
2322
+ clickHandler: hideInfoModal
2323
+ })));
2324
+ }
2123
2325
 
2124
- function a(t, n) {
2125
- for (var e = 0; e < n.length; e++) {
2126
- var r = n[e];
2127
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2128
- }
2129
- }
2326
+ }
2130
2327
 
2131
- function f(t, n) {
2132
- return (f = Object.setPrototypeOf || function (t, n) {
2133
- return t.__proto__ = n, t;
2134
- })(t, n);
2135
- }
2328
+ _defineProperty(info_modal_InfoModal, "propTypes", {
2329
+ hideInfoModal: external_prop_types_default.a.func.isRequired,
2330
+ show: external_prop_types_default.a.bool.isRequired
2331
+ });
2136
2332
 
2137
- function s(t) {
2138
- var n = function () {
2139
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2140
- if (Reflect.construct.sham) return !1;
2141
- if ("function" == typeof Proxy) return !0;
2333
+ /* harmony default export */ var info_modal = (info_modal_InfoModal);
2334
+ // CONCATENATED MODULE: ./src/components/info-modal/index.js
2142
2335
 
2143
- try {
2144
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
2145
- } catch (t) {
2146
- return !1;
2147
- }
2148
- }();
2336
+ /* harmony default export */ var components_info_modal = (info_modal);
2337
+ // EXTERNAL MODULE: /Users/alena.khineika/www/compass/node_modules/css-loader/dist/cjs.js??ref--5-1!/Users/alena.khineika/www/compass/node_modules/postcss-loader/lib??ref--5-2!/Users/alena.khineika/www/compass/node_modules/less-loader/dist/cjs.js??ref--5-3!./src/components/shell-header/shell-header.module.less
2338
+ var shell_header_module = __webpack_require__(499);
2149
2339
 
2150
- return function () {
2151
- var e,
2152
- r = l(t);
2340
+ // CONCATENATED MODULE: ./src/components/shell-header/shell-header.module.less
2153
2341
 
2154
- if (n) {
2155
- var o = l(this).constructor;
2156
- e = Reflect.construct(r, arguments, o);
2157
- } else e = r.apply(this, arguments);
2342
+
2158
2343
 
2159
- return p(this, e);
2160
- };
2161
- }
2344
+ var shell_header_module_options = {};
2162
2345
 
2163
- function p(t, n) {
2164
- if (n && ("object" === c(n) || "function" == typeof n)) return n;
2165
- if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
2166
- return function (t) {
2167
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2168
- return t;
2169
- }(t);
2170
- }
2346
+ shell_header_module_options.insert = "head";
2347
+ shell_header_module_options.singleton = false;
2171
2348
 
2172
- function l(t) {
2173
- return (l = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
2174
- return t.__proto__ || Object.getPrototypeOf(t);
2175
- })(t);
2176
- }
2349
+ var shell_header_module_update = injectStylesIntoStyleTag_default()(shell_header_module["a" /* default */], shell_header_module_options);
2177
2350
 
2178
- var y = function (t) {
2179
- !function (t, n) {
2180
- if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
2181
- t.prototype = Object.create(n && n.prototype, {
2182
- constructor: {
2183
- value: t,
2184
- writable: !0,
2185
- configurable: !0
2186
- }
2187
- }), n && f(t, n);
2188
- }(u, t);
2189
- var n,
2190
- e,
2191
- r,
2192
- i = s(u);
2193
2351
 
2194
- function u(t) {
2195
- var n;
2196
- return function (t, n) {
2197
- if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
2198
- }(this, u), (n = i.call(this, t)).state = {
2199
- animating: !1
2200
- }, n;
2201
- }
2202
2352
 
2203
- return n = u, (e = [{
2204
- key: "componentDidMount",
2205
- value: function () {
2206
- this.unsubscribeStopAnimation = this.props.stopAnimationListenable.listen(this.handleStopAnimation.bind(this));
2207
- }
2208
- }, {
2209
- key: "componentWillUnmount",
2210
- value: function () {
2211
- this.unsubscribeStopAnimation();
2212
- }
2213
- }, {
2214
- key: "handleClick",
2215
- value: function () {
2216
- this.setState({
2217
- animating: !0
2218
- }), this.props.clickHandler();
2219
- }
2220
- }, {
2221
- key: "handleStopAnimation",
2222
- value: function () {
2223
- this.setState({
2224
- animating: !1
2225
- });
2226
- }
2227
- }, {
2228
- key: "renderIcon",
2229
- value: function () {
2230
- var t = this.state.animating ? this.props.animatingIconClassName : this.props.iconClassName;
2231
- return o.a.createElement("i", {
2232
- className: t,
2233
- "aria-hidden": !0
2234
- });
2235
- }
2236
- }, {
2237
- key: "render",
2238
- value: function () {
2239
- return o.a.createElement("button", {
2240
- type: "button",
2241
- "data-test-id": this.props.dataTestId,
2242
- className: this.props.className,
2243
- onClick: this.handleClick.bind(this),
2244
- disabled: this.props.disabled
2245
- }, this.renderIcon(), this.props.text);
2246
- }
2247
- }]) && a(n.prototype, e), r && a(n, r), u;
2248
- }(o.a.Component);
2353
+ /* harmony default export */ var shell_header_shell_header_module = (shell_header_module["a" /* default */].locals || {});
2354
+ // CONCATENATED MODULE: ./src/components/shell-header/shell-header.jsx
2355
+ function shell_header_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2249
2356
 
2250
- y.displayName = "AnimatedIconTextButton", y.propTypes = {
2251
- text: u.a.string,
2252
- clickHandler: u.a.func.isRequired,
2253
- className: u.a.string,
2254
- iconClassName: u.a.string.isRequired,
2255
- animatingIconClassName: u.a.string.isRequired,
2256
- dataTestId: u.a.string,
2257
- stopAnimationListenable: u.a.any.isRequired,
2258
- disabled: u.a.bool
2259
- };
2260
- var v = y;
2261
2357
 
2262
- function d(t) {
2263
- return (d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2264
- return typeof t;
2265
- } : function (t) {
2266
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2267
- })(t);
2268
- }
2269
2358
 
2270
- function b(t, n) {
2271
- if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
2272
- }
2273
2359
 
2274
- function h(t, n) {
2275
- for (var e = 0; e < n.length; e++) {
2276
- var r = n[e];
2277
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2278
- }
2279
- }
2280
2360
 
2281
- function m(t, n) {
2282
- return (m = Object.setPrototypeOf || function (t, n) {
2283
- return t.__proto__ = n, t;
2284
- })(t, n);
2285
- }
2286
2361
 
2287
- function g(t) {
2288
- var n = function () {
2289
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2290
- if (Reflect.construct.sham) return !1;
2291
- if ("function" == typeof Proxy) return !0;
2292
2362
 
2293
- try {
2294
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
2295
- } catch (t) {
2296
- return !1;
2297
- }
2298
- }();
2363
+ class shell_header_ShellHeader extends external_react_["Component"] {
2364
+ componentDidMount() {
2365
+ document.addEventListener('keydown', this.handleKeyboardToggle.bind(this));
2366
+ }
2299
2367
 
2300
- return function () {
2301
- var e,
2302
- r = S(t);
2368
+ componentWillUnmount() {
2369
+ document.removeEventListener('keydown', this.handleKeyboardToggle.bind(this));
2370
+ }
2371
+
2372
+ handleKeyboardToggle({
2373
+ ctrlKey,
2374
+ key
2375
+ }) {
2376
+ if (ctrlKey && key === '`') {
2377
+ this.props.onShellToggleClicked();
2378
+ }
2379
+ }
2380
+ /**
2381
+ * Render ShellHeader component.
2382
+ *
2383
+ * @returns {React.Component} The rendered component.
2384
+ */
2303
2385
 
2304
- if (n) {
2305
- var o = S(this).constructor;
2306
- e = Reflect.construct(r, arguments, o);
2307
- } else e = r.apply(this, arguments);
2308
2386
 
2309
- return O(this, e);
2310
- };
2311
- }
2387
+ render() {
2388
+ const {
2389
+ isExpanded,
2390
+ isOperationInProgress,
2391
+ onShellToggleClicked,
2392
+ showInfoModal
2393
+ } = this.props;
2394
+ return /*#__PURE__*/external_react_default.a.createElement("div", {
2395
+ className: shell_header_shell_header_module['compass-shell-header']
2396
+ }, /*#__PURE__*/external_react_default.a.createElement("div", {
2397
+ className: shell_header_shell_header_module['compass-shell-header-left']
2398
+ }, /*#__PURE__*/external_react_default.a.createElement("button", {
2399
+ "data-test-id": "shell-expand-button",
2400
+ className: shell_header_shell_header_module['compass-shell-header-toggle'],
2401
+ "aria-label": isExpanded ? 'Close Shell' : 'Open Shell',
2402
+ onClick: onShellToggleClicked,
2403
+ "aria-pressed": isExpanded
2404
+ }, ">_MONGOSH", !isExpanded && isOperationInProgress && /*#__PURE__*/external_react_default.a.createElement(external_react_default.a.Fragment, null, /*#__PURE__*/external_react_default.a.createElement(mongosh_browser_repl["ShellLoader"], {
2405
+ className: shell_header_shell_header_module['compass-shell-header-loader-icon'],
2406
+ size: "12px"
2407
+ }), /*#__PURE__*/external_react_default.a.createElement("span", {
2408
+ className: shell_header_shell_header_module['compass-shell-header-operation-in-progress']
2409
+ }, "Command in progress...")))), /*#__PURE__*/external_react_default.a.createElement("div", {
2410
+ className: shell_header_shell_header_module['compass-shell-header-right-actions']
2411
+ }, isExpanded && /*#__PURE__*/external_react_default.a.createElement(compass_components_["IconButton"], {
2412
+ className: shell_header_shell_header_module['compass-shell-header-btn'],
2413
+ variant: "dark",
2414
+ "aria-label": "Shell Info",
2415
+ "aria-haspopup": "dialog",
2416
+ onClick: showInfoModal
2417
+ }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Icon"], {
2418
+ glyph: "InfoWithCircle",
2419
+ size: "small"
2420
+ })), /*#__PURE__*/external_react_default.a.createElement(compass_components_["IconButton"], {
2421
+ className: shell_header_shell_header_module['compass-shell-header-btn'],
2422
+ variant: "dark",
2423
+ "aria-label": isExpanded ? 'Close Shell' : 'Open Shell',
2424
+ onClick: onShellToggleClicked,
2425
+ "aria-pressed": isExpanded
2426
+ }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["Icon"], {
2427
+ glyph: isExpanded ? 'ChevronDown' : 'ChevronUp',
2428
+ size: "small"
2429
+ }))));
2430
+ }
2312
2431
 
2313
- function O(t, n) {
2314
- if (n && ("object" === d(n) || "function" == typeof n)) return n;
2315
- if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
2316
- return function (t) {
2317
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2318
- return t;
2319
- }(t);
2320
- }
2432
+ }
2321
2433
 
2322
- function S(t) {
2323
- return (S = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
2324
- return t.__proto__ || Object.getPrototypeOf(t);
2325
- })(t);
2326
- }
2434
+ shell_header_defineProperty(shell_header_ShellHeader, "propTypes", {
2435
+ isExpanded: external_prop_types_default.a.bool.isRequired,
2436
+ isOperationInProgress: external_prop_types_default.a.bool.isRequired,
2437
+ onShellToggleClicked: external_prop_types_default.a.func.isRequired,
2438
+ showInfoModal: external_prop_types_default.a.func.isRequired
2439
+ });
2327
2440
 
2328
- var x = function (t) {
2329
- !function (t, n) {
2330
- if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
2331
- t.prototype = Object.create(n && n.prototype, {
2332
- constructor: {
2333
- value: t,
2334
- writable: !0,
2335
- configurable: !0
2336
- }
2337
- }), n && m(t, n);
2338
- }(u, t);
2339
- var n,
2340
- e,
2341
- r,
2342
- i = g(u);
2441
+ /* harmony default export */ var shell_header = (shell_header_ShellHeader);
2442
+ // CONCATENATED MODULE: ./src/components/shell-header/index.js
2343
2443
 
2344
- function u() {
2345
- return b(this, u), i.apply(this, arguments);
2346
- }
2444
+ /* harmony default export */ var components_shell_header = (shell_header);
2347
2445
 
2348
- return n = u, (e = [{
2349
- key: "shouldComponentUpdate",
2350
- value: function () {
2351
- return !1;
2352
- }
2353
- }, {
2354
- key: "render",
2355
- value: function () {
2356
- return o.a.createElement("button", {
2357
- type: "button",
2358
- title: this.props.title,
2359
- "data-test-id": this.props.dataTestId,
2360
- className: this.props.className,
2361
- onClick: this.props.clickHandler
2362
- }, o.a.createElement("i", {
2363
- className: this.props.iconClassName,
2364
- "aria-hidden": !0
2365
- }));
2366
- }
2367
- }]) && h(n.prototype, e), r && h(n, r), u;
2368
- }(o.a.Component);
2446
+ // CONCATENATED MODULE: ./src/components/compass-shell/compass-shell.jsx
2447
+ function compass_shell_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2369
2448
 
2370
- x.displayName = "IconButton", x.propTypes = {
2371
- title: u.a.string,
2372
- clickHandler: u.a.func.isRequired,
2373
- className: u.a.string,
2374
- iconClassName: u.a.string.isRequired,
2375
- dataTestId: u.a.string
2376
- };
2377
- var w = x;
2378
2449
 
2379
- function j(t) {
2380
- return (j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2381
- return typeof t;
2382
- } : function (t) {
2383
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2384
- })(t);
2385
- }
2386
2450
 
2387
- function T(t, n) {
2388
- if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
2389
- }
2390
2451
 
2391
- function P(t, n) {
2392
- for (var e = 0; e < n.length; e++) {
2393
- var r = n[e];
2394
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2395
- }
2396
- }
2397
2452
 
2398
- function _(t, n) {
2399
- return (_ = Object.setPrototypeOf || function (t, n) {
2400
- return t.__proto__ = n, t;
2401
- })(t, n);
2402
- }
2403
2453
 
2404
- function E(t) {
2405
- var n = function () {
2406
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2407
- if (Reflect.construct.sham) return !1;
2408
- if ("function" == typeof Proxy) return !0;
2409
2454
 
2410
- try {
2411
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
2412
- } catch (t) {
2413
- return !1;
2414
- }
2415
- }();
2416
2455
 
2417
- return function () {
2418
- var e,
2419
- r = R(t);
2420
2456
 
2421
- if (n) {
2422
- var o = R(this).constructor;
2423
- e = Reflect.construct(r, arguments, o);
2424
- } else e = r.apply(this, arguments);
2425
2457
 
2426
- return k(this, e);
2427
- };
2428
- }
2458
+ const defaultShellHeightOpened = 240;
2459
+ const shellHeightClosed = 32;
2460
+ const shellMinHeightOpened = 100;
2429
2461
 
2430
- function k(t, n) {
2431
- if (n && ("object" === j(n) || "function" == typeof n)) return n;
2432
- if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
2433
- return function (t) {
2434
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2435
- return t;
2436
- }(t);
2437
- }
2462
+ function getMaxShellHeight() {
2463
+ return Math.max(defaultShellHeightOpened, window.innerHeight - 100);
2464
+ } // Apply bounds to the shell height when resizing to ensure it's always
2465
+ // visible and usable to the user.
2438
2466
 
2439
- function R(t) {
2440
- return (R = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
2441
- return t.__proto__ || Object.getPrototypeOf(t);
2442
- })(t);
2443
- }
2444
2467
 
2445
- var C = function (t) {
2446
- !function (t, n) {
2447
- if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
2448
- t.prototype = Object.create(n && n.prototype, {
2449
- constructor: {
2450
- value: t,
2451
- writable: !0,
2452
- configurable: !0
2453
- }
2454
- }), n && _(t, n);
2455
- }(u, t);
2456
- var n,
2457
- e,
2458
- r,
2459
- i = E(u);
2468
+ function boundShellHeight(attemptedHeight) {
2469
+ const maxHeight = getMaxShellHeight();
2470
+ return Math.min(maxHeight, Math.max(shellMinHeightOpened, attemptedHeight));
2471
+ }
2460
2472
 
2461
- function u() {
2462
- return T(this, u), i.apply(this, arguments);
2463
- }
2473
+ class compass_shell_CompassShell extends external_react_["Component"] {
2474
+ constructor(props) {
2475
+ super(props);
2464
2476
 
2465
- return n = u, (e = [{
2466
- key: "shouldComponentUpdate",
2467
- value: function () {
2468
- return !1;
2469
- }
2470
- }, {
2471
- key: "render",
2472
- value: function () {
2473
- return o.a.createElement("button", {
2474
- type: "button",
2475
- "data-test-id": this.props.dataTestId,
2476
- className: this.props.className,
2477
- onClick: this.props.clickHandler
2478
- }, o.a.createElement("i", {
2479
- className: this.props.iconClassName,
2480
- "aria-hidden": !0
2481
- }), this.props.text);
2482
- }
2483
- }]) && P(n.prototype, e), r && P(n, r), u;
2484
- }(o.a.Component);
2477
+ compass_shell_defineProperty(this, "onShellOutputChanged", output => {
2478
+ this.shellOutput = output;
2479
+ });
2485
2480
 
2486
- C.displayName = "IconTextButton", C.propTypes = {
2487
- text: u.a.string,
2488
- clickHandler: u.a.func.isRequired,
2489
- className: u.a.string,
2490
- iconClassName: u.a.string.isRequired,
2491
- dataTestId: u.a.string
2492
- };
2493
- var A = C;
2481
+ compass_shell_defineProperty(this, "onOperationStarted", () => {
2482
+ this.setState({
2483
+ isOperationInProgress: true
2484
+ });
2485
+ });
2494
2486
 
2495
- function I(t) {
2496
- return (I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2497
- return typeof t;
2498
- } : function (t) {
2499
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2500
- })(t);
2501
- }
2487
+ compass_shell_defineProperty(this, "onOperationEnd", () => {
2488
+ this.setState({
2489
+ isOperationInProgress: false
2490
+ });
2491
+ });
2492
+
2493
+ compass_shell_defineProperty(this, "terminateRuntime", () => {
2494
+ if (this.props.runtime) {
2495
+ this.props.runtime.terminate();
2496
+ }
2497
+ });
2502
2498
 
2503
- function N(t, n) {
2504
- if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
2505
- }
2499
+ compass_shell_defineProperty(this, "saveHistory", async history => {
2500
+ if (!this.props.historyStorage) {
2501
+ return;
2502
+ }
2506
2503
 
2507
- function L(t, n) {
2508
- for (var e = 0; e < n.length; e++) {
2509
- var r = n[e];
2510
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2504
+ try {
2505
+ await this.props.historyStorage.save(history);
2506
+ } catch (error) {
2507
+ // eslint-disable-next-line no-console
2508
+ console.error(error);
2511
2509
  }
2512
- }
2510
+ });
2513
2511
 
2514
- function M(t, n) {
2515
- return (M = Object.setPrototypeOf || function (t, n) {
2516
- return t.__proto__ = n, t;
2517
- })(t, n);
2518
- }
2512
+ compass_shell_defineProperty(this, "loadHistory", async () => {
2513
+ if (!this.props.historyStorage) {
2514
+ return;
2515
+ }
2519
2516
 
2520
- function B(t) {
2521
- var n = function () {
2522
- if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
2523
- if (Reflect.construct.sham) return !1;
2524
- if ("function" == typeof Proxy) return !0;
2517
+ try {
2518
+ const history = await this.props.historyStorage.load();
2519
+ this.setState({
2520
+ initialHistory: history
2521
+ });
2522
+ } catch (error) {
2523
+ // eslint-disable-next-line no-console
2524
+ console.error(error);
2525
+ this.setState({
2526
+ initialHistory: []
2527
+ });
2528
+ }
2529
+ });
2525
2530
 
2526
- try {
2527
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;
2528
- } catch (t) {
2529
- return !1;
2530
- }
2531
- }();
2531
+ this.shellRef = /*#__PURE__*/external_react_default.a.createRef();
2532
+ this.shellOutput = this.props.shellOutput || [];
2533
+ this.state = {
2534
+ height: shellHeightClosed,
2535
+ prevHeight: defaultShellHeightOpened,
2536
+ initialHistory: this.props.historyStorage ? null : [],
2537
+ isOperationInProgress: false,
2538
+ showInfoModal: false
2539
+ };
2540
+ }
2532
2541
 
2533
- return function () {
2534
- var e,
2535
- r = D(t);
2542
+ componentDidMount() {
2543
+ this.loadHistory();
2544
+ window.addEventListener('beforeunload', this.terminateRuntime);
2545
+ }
2536
2546
 
2537
- if (n) {
2538
- var o = D(this).constructor;
2539
- e = Reflect.construct(r, arguments, o);
2540
- } else e = r.apply(this, arguments);
2547
+ componentDidUpdate(prevProps, prevState) {
2548
+ const {
2549
+ height
2550
+ } = this.state;
2541
2551
 
2542
- return F(this, e);
2543
- };
2552
+ if (prevState.height < shellMinHeightOpened && height > shellMinHeightOpened) {
2553
+ this.props.emitShellPluginOpened();
2544
2554
  }
2555
+ }
2545
2556
 
2546
- function F(t, n) {
2547
- if (n && ("object" === I(n) || "function" == typeof n)) return n;
2548
- if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
2549
- return function (t) {
2550
- if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2551
- return t;
2552
- }(t);
2553
- }
2557
+ componentWillUnmount() {
2558
+ window.removeEventListener('beforeunload', this.terminateRuntime);
2559
+ }
2554
2560
 
2555
- function D(t) {
2556
- return (D = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) {
2557
- return t.__proto__ || Object.getPrototypeOf(t);
2558
- })(t);
2561
+ updateHeight(height) {
2562
+ this.setState(height > shellMinHeightOpened ? {
2563
+ height,
2564
+ // Store the previous height to use when toggling open/close
2565
+ // when we resize while the shell is expanded.
2566
+ prevHeight: height
2567
+ } : {
2568
+ height
2569
+ });
2570
+ }
2571
+
2572
+ hideInfoModal() {
2573
+ this.setState({
2574
+ showInfoModal: false
2575
+ });
2576
+
2577
+ if (this.shellRef.current) {
2578
+ this.shellRef.current.focusEditor();
2559
2579
  }
2580
+ }
2581
+ /**
2582
+ * Render CompassShell component.
2583
+ *
2584
+ * @returns {React.Component} The rendered component.
2585
+ */
2560
2586
 
2561
- var q = function (t) {
2562
- !function (t, n) {
2563
- if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
2564
- t.prototype = Object.create(n && n.prototype, {
2565
- constructor: {
2566
- value: t,
2567
- writable: !0,
2568
- configurable: !0
2569
- }
2570
- }), n && M(t, n);
2571
- }(u, t);
2572
- var n,
2573
- e,
2574
- r,
2575
- i = B(u);
2576
2587
 
2577
- function u() {
2578
- return N(this, u), i.apply(this, arguments);
2579
- }
2588
+ render() {
2589
+ const {
2590
+ height,
2591
+ prevHeight,
2592
+ isOperationInProgress,
2593
+ showInfoModal
2594
+ } = this.state;
2580
2595
 
2581
- return n = u, (e = [{
2582
- key: "render",
2583
- value: function () {
2584
- return o.a.createElement("button", {
2585
- id: this.props.id,
2586
- className: this.props.className,
2587
- "data-test-id": this.props.dataTestId,
2588
- title: this.props.title,
2589
- type: "button",
2590
- disabled: this.props.disabled,
2591
- style: this.props.style,
2592
- onClick: this.props.clickHandler
2593
- }, this.props.text);
2594
- }
2595
- }]) && L(n.prototype, e), r && L(n, r), u;
2596
- }(o.a.Component);
2596
+ if (!this.props.runtime || !this.state.initialHistory) {
2597
+ return /*#__PURE__*/external_react_default.a.createElement("div", null);
2598
+ }
2597
2599
 
2598
- q.displayName = "TextButton", q.propTypes = {
2599
- text: u.a.string.isRequired,
2600
- title: u.a.string,
2601
- clickHandler: u.a.func.isRequired,
2602
- className: u.a.string,
2603
- dataTestId: u.a.string,
2604
- disabled: u.a.bool,
2605
- id: u.a.string,
2606
- style: u.a.object
2607
- };
2608
- var G = q;
2609
- }]);
2610
- });
2600
+ const isExpanded = height > shellMinHeightOpened;
2601
+ const renderedHeight = isExpanded ? boundShellHeight(height) : shellHeightClosed;
2602
+ return /*#__PURE__*/external_react_default.a.createElement(external_react_["Fragment"], null, /*#__PURE__*/external_react_default.a.createElement(components_info_modal, {
2603
+ show: showInfoModal,
2604
+ hideInfoModal: this.hideInfoModal.bind(this)
2605
+ }), /*#__PURE__*/external_react_default.a.createElement("div", {
2606
+ "data-test-id": "shell-section",
2607
+ className: compass_shell_compass_shell_module['compass-shell'],
2608
+ style: {
2609
+ height: renderedHeight
2610
+ },
2611
+ id: "content"
2612
+ }, /*#__PURE__*/external_react_default.a.createElement(compass_components_["ResizeHandle"], {
2613
+ direction: compass_components_["ResizeDirection"].TOP,
2614
+ onChange: newHeight => this.updateHeight(newHeight),
2615
+ value: height,
2616
+ minValue: shellHeightClosed,
2617
+ maxValue: getMaxShellHeight(),
2618
+ title: "MongoDB Shell"
2619
+ }), /*#__PURE__*/external_react_default.a.createElement(components_shell_header, {
2620
+ isExpanded: isExpanded,
2621
+ onShellToggleClicked: () => isExpanded ? this.updateHeight(shellHeightClosed) : this.updateHeight(prevHeight),
2622
+ isOperationInProgress: isOperationInProgress,
2623
+ showInfoModal: () => this.setState({
2624
+ showInfoModal: true
2625
+ })
2626
+ }), /*#__PURE__*/external_react_default.a.createElement("div", {
2627
+ "data-test-id": "shell-content",
2628
+ className: classnames_default()(compass_shell_compass_shell_module['compass-shell-shell-container'], {
2629
+ [compass_shell_compass_shell_module['compass-shell-shell-container-visible']]: isExpanded
2630
+ })
2631
+ }, /*#__PURE__*/external_react_default.a.createElement(mongosh_browser_repl["Shell"], {
2632
+ ref: this.shellRef,
2633
+ runtime: this.props.runtime,
2634
+ initialHistory: this.state.initialHistory,
2635
+ initialOutput: this.shellOutput,
2636
+ onHistoryChanged: this.saveHistory,
2637
+ onOutputChanged: this.onShellOutputChanged,
2638
+ onOperationStarted: this.onOperationStarted,
2639
+ onOperationEnd: this.onOperationEnd
2640
+ }))));
2641
+ }
2611
2642
 
2612
- /***/ }),
2643
+ }
2613
2644
 
2614
- /***/ 88:
2615
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2645
+ compass_shell_defineProperty(compass_shell_CompassShell, "propTypes", {
2646
+ emitShellPluginOpened: external_prop_types_default.a.func,
2647
+ runtime: external_prop_types_default.a.object,
2648
+ shellOutput: external_prop_types_default.a.array,
2649
+ historyStorage: external_prop_types_default.a.object
2650
+ });
2616
2651
 
2617
- "use strict";
2618
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58);
2619
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
2620
- // Imports
2652
+ compass_shell_defineProperty(compass_shell_CompassShell, "defaultProps", {
2653
+ emitShellPluginOpened: () => {},
2654
+ runtime: null
2655
+ });
2621
2656
 
2622
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(false);
2623
- // Module
2624
- ___CSS_LOADER_EXPORT___.push([module.i, ".CompassShellPlugin_info-modal-module-info-modal-banner__15KrH {\n color: #1a567e;\n border-color: #c5e4f2;\n background-color: #e1f2f6;\n padding: 9px 12px 9px 20px;\n border-width: 1px;\n border-style: solid;\n border-radius: 6px;\n font-size: 14px;\n}\n.CompassShellPlugin_info-modal-module-info-modal-banner-link___NgHS {\n font-weight: bold;\n text-decoration: underline;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts-title__3daCa {\n font-weight: bold;\n padding: 14px 0;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI {\n padding: 3px 0;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI:nth-child(odd) {\n background-color: #e7eeec;\n}\n.CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb .CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey-key__p8XDj {\n font-weight: bold;\n padding-left: 14px;\n padding-right: 10px;\n}\n", ""]);
2625
- // Exports
2626
- ___CSS_LOADER_EXPORT___.locals = {
2627
- "info-modal-banner": "CompassShellPlugin_info-modal-module-info-modal-banner__15KrH",
2628
- "info-modal-banner-link": "CompassShellPlugin_info-modal-module-info-modal-banner-link___NgHS",
2629
- "info-modal-shortcuts-title": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-title__3daCa",
2630
- "info-modal-shortcuts": "CompassShellPlugin_info-modal-module-info-modal-shortcuts__2jJgb",
2631
- "info-modal-shortcuts-hotkey": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey__3MLCI",
2632
- "info-modal-shortcuts-hotkey-key": "CompassShellPlugin_info-modal-module-info-modal-shortcuts-hotkey-key__p8XDj"
2633
- };
2634
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
2657
+ /* harmony default export */ var compass_shell = (Object(es["b" /* connect */])(state => ({
2658
+ emitShellPluginOpened: () => {
2659
+ if (state.appRegistry && state.appRegistry.globalAppRegistry) {
2660
+ state.appRegistry.globalAppRegistry.emit('compass:compass-shell:opened');
2661
+ }
2662
+ },
2663
+ runtime: state.runtime ? state.runtime.runtime : null
2664
+ }))(compass_shell_CompassShell));
2665
+ // CONCATENATED MODULE: ./src/components/compass-shell/index.js
2666
+
2667
+ /* harmony default export */ var components_compass_shell = __webpack_exports__["default"] = (compass_shell);
2635
2668
 
2636
2669
 
2637
2670
  /***/ })