@orchestrator-ui/orchestrator-ui-components 0.0.1-alpha.3 → 0.0.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1146 -427
- package/package.json +6 -3
- package/src/index.d.ts +8 -2
- package/src/lib/components/Badge/Badge.d.ts +8 -0
- package/src/lib/components/Badge/SubscriptionStatusBadge.d.ts +5 -0
- package/src/lib/components/OrchestratorPageTemplate/HeaderBadge.d.ts +3 -2
- package/src/lib/components/OrchestratorPageTemplate/OrchestratorPageHeader.d.ts +3 -0
- package/src/lib/components/Table/Table.d.ts +18 -0
- package/src/lib/components/Table/columns.d.ts +22 -0
- package/src/lib/hooks/index.d.ts +5 -0
- package/src/lib/hooks/useOrchestratorConfig.d.ts +6 -0
- package/src/lib/hooks/useOrchestratorTheme.d.ts +1 -0
- package/src/lib/hooks/useQueryWithGraphql.d.ts +3 -0
- package/src/lib/icons/CheckmarkCircleFill.d.ts +3 -0
- package/src/lib/icons/MinusCircleOutline.d.ts +3 -0
- package/src/lib/icons/PlusCircleFill.d.ts +3 -0
- package/src/lib/icons/index.d.ts +7 -0
- package/src/lib/utils/getTypedFieldFromObject.d.ts +1 -0
- /package/src/lib/{utils.d.ts → utils/getStatusBadgeColor.d.ts} +0 -0
package/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { useState, createContext, useContext } from 'react';
|
|
4
|
-
import { useEuiTheme, EuiBadge, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiToolTip, EuiSideNav, EuiPageTemplate } from '@elastic/eui';
|
|
3
|
+
import { useState, createContext, useContext, useRef } from 'react';
|
|
4
|
+
import { useEuiTheme, tint, EuiBadge, EuiText, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon, EuiToolTip, EuiSideNav, EuiPageTemplate, EuiDataGrid } from '@elastic/eui';
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
|
+
import 'regenerator-runtime/runtime';
|
|
7
|
+
import { GraphQLClient } from 'graphql-request';
|
|
6
8
|
|
|
7
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
10
|
|
|
@@ -23,7 +25,7 @@ var global$g =
|
|
|
23
25
|
|
|
24
26
|
var objectGetOwnPropertyDescriptor = {};
|
|
25
27
|
|
|
26
|
-
var fails$
|
|
28
|
+
var fails$h = function (exec) {
|
|
27
29
|
try {
|
|
28
30
|
return !!exec();
|
|
29
31
|
} catch (error) {
|
|
@@ -31,17 +33,17 @@ var fails$d = function (exec) {
|
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
|
|
34
|
-
var fails$
|
|
36
|
+
var fails$g = fails$h;
|
|
35
37
|
|
|
36
38
|
// Detect IE8's incomplete defineProperty implementation
|
|
37
|
-
var descriptors = !fails$
|
|
39
|
+
var descriptors = !fails$g(function () {
|
|
38
40
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
39
41
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
40
42
|
});
|
|
41
43
|
|
|
42
|
-
var fails$
|
|
44
|
+
var fails$f = fails$h;
|
|
43
45
|
|
|
44
|
-
var functionBindNative = !fails$
|
|
46
|
+
var functionBindNative = !fails$f(function () {
|
|
45
47
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
46
48
|
var test = (function () { /* empty */ }).bind();
|
|
47
49
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -50,10 +52,10 @@ var functionBindNative = !fails$b(function () {
|
|
|
50
52
|
|
|
51
53
|
var NATIVE_BIND$3 = functionBindNative;
|
|
52
54
|
|
|
53
|
-
var call$
|
|
55
|
+
var call$f = Function.prototype.call;
|
|
54
56
|
|
|
55
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
56
|
-
return call$
|
|
57
|
+
var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
|
|
58
|
+
return call$f.apply(call$f, arguments);
|
|
57
59
|
};
|
|
58
60
|
|
|
59
61
|
var objectPropertyIsEnumerable = {};
|
|
@@ -72,7 +74,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
72
74
|
return !!descriptor && descriptor.enumerable;
|
|
73
75
|
} : $propertyIsEnumerable;
|
|
74
76
|
|
|
75
|
-
var createPropertyDescriptor$
|
|
77
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
76
78
|
return {
|
|
77
79
|
enumerable: !(bitmap & 1),
|
|
78
80
|
configurable: !(bitmap & 2),
|
|
@@ -84,38 +86,38 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
84
86
|
var NATIVE_BIND$2 = functionBindNative;
|
|
85
87
|
|
|
86
88
|
var FunctionPrototype$2 = Function.prototype;
|
|
87
|
-
var call$
|
|
88
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
89
|
+
var call$e = FunctionPrototype$2.call;
|
|
90
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
89
91
|
|
|
90
92
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
91
93
|
return function () {
|
|
92
|
-
return call$
|
|
94
|
+
return call$e.apply(fn, arguments);
|
|
93
95
|
};
|
|
94
96
|
};
|
|
95
97
|
|
|
96
|
-
var uncurryThis$
|
|
98
|
+
var uncurryThis$g = functionUncurryThis;
|
|
97
99
|
|
|
98
|
-
var toString$
|
|
99
|
-
var stringSlice$1 = uncurryThis$
|
|
100
|
+
var toString$4 = uncurryThis$g({}.toString);
|
|
101
|
+
var stringSlice$1 = uncurryThis$g(''.slice);
|
|
100
102
|
|
|
101
103
|
var classofRaw$2 = function (it) {
|
|
102
|
-
return stringSlice$1(toString$
|
|
104
|
+
return stringSlice$1(toString$4(it), 8, -1);
|
|
103
105
|
};
|
|
104
106
|
|
|
105
|
-
var uncurryThis$
|
|
106
|
-
var fails$
|
|
107
|
-
var classof$
|
|
107
|
+
var uncurryThis$f = functionUncurryThis;
|
|
108
|
+
var fails$e = fails$h;
|
|
109
|
+
var classof$6 = classofRaw$2;
|
|
108
110
|
|
|
109
111
|
var $Object$4 = Object;
|
|
110
|
-
var split = uncurryThis$
|
|
112
|
+
var split = uncurryThis$f(''.split);
|
|
111
113
|
|
|
112
114
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
113
|
-
var indexedObject = fails$
|
|
115
|
+
var indexedObject = fails$e(function () {
|
|
114
116
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
115
117
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
116
118
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
117
119
|
}) ? function (it) {
|
|
118
|
-
return classof$
|
|
120
|
+
return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
119
121
|
} : $Object$4;
|
|
120
122
|
|
|
121
123
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -126,21 +128,21 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
126
128
|
|
|
127
129
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
128
130
|
|
|
129
|
-
var $TypeError$
|
|
131
|
+
var $TypeError$e = TypeError;
|
|
130
132
|
|
|
131
133
|
// `RequireObjectCoercible` abstract operation
|
|
132
134
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
133
|
-
var requireObjectCoercible$
|
|
134
|
-
if (isNullOrUndefined$3(it)) throw $TypeError$
|
|
135
|
+
var requireObjectCoercible$3 = function (it) {
|
|
136
|
+
if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
|
|
135
137
|
return it;
|
|
136
138
|
};
|
|
137
139
|
|
|
138
140
|
// toObject with fallback for non-array-like ES3 strings
|
|
139
141
|
var IndexedObject$1 = indexedObject;
|
|
140
|
-
var requireObjectCoercible$
|
|
142
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
141
143
|
|
|
142
144
|
var toIndexedObject$5 = function (it) {
|
|
143
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
145
|
+
return IndexedObject$1(requireObjectCoercible$2(it));
|
|
144
146
|
};
|
|
145
147
|
|
|
146
148
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -171,7 +173,7 @@ var $documentAll = documentAll_1;
|
|
|
171
173
|
|
|
172
174
|
var documentAll = $documentAll.all;
|
|
173
175
|
|
|
174
|
-
var isObject$
|
|
176
|
+
var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
175
177
|
return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
|
|
176
178
|
} : function (it) {
|
|
177
179
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
@@ -188,14 +190,14 @@ var getBuiltIn$7 = function (namespace, method) {
|
|
|
188
190
|
return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
|
|
189
191
|
};
|
|
190
192
|
|
|
191
|
-
var uncurryThis$
|
|
193
|
+
var uncurryThis$e = functionUncurryThis;
|
|
192
194
|
|
|
193
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
195
|
+
var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
|
|
194
196
|
|
|
195
197
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
196
198
|
|
|
197
199
|
var global$e = global$g;
|
|
198
|
-
var userAgent$
|
|
200
|
+
var userAgent$5 = engineUserAgent;
|
|
199
201
|
|
|
200
202
|
var process$4 = global$e.process;
|
|
201
203
|
var Deno$1 = global$e.Deno;
|
|
@@ -212,10 +214,10 @@ if (v8) {
|
|
|
212
214
|
|
|
213
215
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
214
216
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
215
|
-
if (!version && userAgent$
|
|
216
|
-
match = userAgent$
|
|
217
|
+
if (!version && userAgent$5) {
|
|
218
|
+
match = userAgent$5.match(/Edge\/(\d+)/);
|
|
217
219
|
if (!match || match[1] >= 74) {
|
|
218
|
-
match = userAgent$
|
|
220
|
+
match = userAgent$5.match(/Chrome\/(\d+)/);
|
|
219
221
|
if (match) version = +match[1];
|
|
220
222
|
}
|
|
221
223
|
}
|
|
@@ -225,10 +227,10 @@ var engineV8Version = version;
|
|
|
225
227
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
226
228
|
|
|
227
229
|
var V8_VERSION$1 = engineV8Version;
|
|
228
|
-
var fails$
|
|
230
|
+
var fails$d = fails$h;
|
|
229
231
|
|
|
230
232
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
231
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
233
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
|
|
232
234
|
var symbol = Symbol();
|
|
233
235
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
234
236
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -247,7 +249,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
247
249
|
|
|
248
250
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
249
251
|
var isCallable$h = isCallable$k;
|
|
250
|
-
var isPrototypeOf$
|
|
252
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
251
253
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
252
254
|
|
|
253
255
|
var $Object$3 = Object;
|
|
@@ -256,54 +258,54 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
256
258
|
return typeof it == 'symbol';
|
|
257
259
|
} : function (it) {
|
|
258
260
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
259
|
-
return isCallable$h($Symbol) && isPrototypeOf$
|
|
261
|
+
return isCallable$h($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
260
262
|
};
|
|
261
263
|
|
|
262
|
-
var $String$
|
|
264
|
+
var $String$4 = String;
|
|
263
265
|
|
|
264
|
-
var tryToString$
|
|
266
|
+
var tryToString$5 = function (argument) {
|
|
265
267
|
try {
|
|
266
|
-
return $String$
|
|
268
|
+
return $String$4(argument);
|
|
267
269
|
} catch (error) {
|
|
268
270
|
return 'Object';
|
|
269
271
|
}
|
|
270
272
|
};
|
|
271
273
|
|
|
272
274
|
var isCallable$g = isCallable$k;
|
|
273
|
-
var tryToString$
|
|
275
|
+
var tryToString$4 = tryToString$5;
|
|
274
276
|
|
|
275
|
-
var $TypeError$
|
|
277
|
+
var $TypeError$d = TypeError;
|
|
276
278
|
|
|
277
279
|
// `Assert: IsCallable(argument) is true`
|
|
278
|
-
var aCallable$
|
|
280
|
+
var aCallable$9 = function (argument) {
|
|
279
281
|
if (isCallable$g(argument)) return argument;
|
|
280
|
-
throw $TypeError$
|
|
282
|
+
throw $TypeError$d(tryToString$4(argument) + ' is not a function');
|
|
281
283
|
};
|
|
282
284
|
|
|
283
|
-
var aCallable$
|
|
285
|
+
var aCallable$8 = aCallable$9;
|
|
284
286
|
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
285
287
|
|
|
286
288
|
// `GetMethod` abstract operation
|
|
287
289
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
288
290
|
var getMethod$3 = function (V, P) {
|
|
289
291
|
var func = V[P];
|
|
290
|
-
return isNullOrUndefined$2(func) ? undefined : aCallable$
|
|
292
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
|
|
291
293
|
};
|
|
292
294
|
|
|
293
|
-
var call$
|
|
295
|
+
var call$d = functionCall;
|
|
294
296
|
var isCallable$f = isCallable$k;
|
|
295
|
-
var isObject$
|
|
297
|
+
var isObject$8 = isObject$9;
|
|
296
298
|
|
|
297
|
-
var $TypeError$
|
|
299
|
+
var $TypeError$c = TypeError;
|
|
298
300
|
|
|
299
301
|
// `OrdinaryToPrimitive` abstract operation
|
|
300
302
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
301
303
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
302
304
|
var fn, val;
|
|
303
|
-
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$
|
|
304
|
-
if (isCallable$f(fn = input.valueOf) && !isObject$
|
|
305
|
-
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$
|
|
306
|
-
throw $TypeError$
|
|
305
|
+
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
306
|
+
if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$d(fn, input))) return val;
|
|
307
|
+
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$d(fn, input))) return val;
|
|
308
|
+
throw $TypeError$c("Can't convert object to primitive value");
|
|
307
309
|
};
|
|
308
310
|
|
|
309
311
|
var shared$3 = {exports: {}};
|
|
@@ -341,41 +343,41 @@ var store$2 = sharedStore;
|
|
|
341
343
|
source: 'https://github.com/zloirock/core-js'
|
|
342
344
|
});
|
|
343
345
|
|
|
344
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
346
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
345
347
|
|
|
346
348
|
var $Object$2 = Object;
|
|
347
349
|
|
|
348
350
|
// `ToObject` abstract operation
|
|
349
351
|
// https://tc39.es/ecma262/#sec-toobject
|
|
350
|
-
var toObject$
|
|
351
|
-
return $Object$2(requireObjectCoercible(argument));
|
|
352
|
+
var toObject$4 = function (argument) {
|
|
353
|
+
return $Object$2(requireObjectCoercible$1(argument));
|
|
352
354
|
};
|
|
353
355
|
|
|
354
|
-
var uncurryThis$
|
|
355
|
-
var toObject$
|
|
356
|
+
var uncurryThis$d = functionUncurryThis;
|
|
357
|
+
var toObject$3 = toObject$4;
|
|
356
358
|
|
|
357
|
-
var hasOwnProperty = uncurryThis$
|
|
359
|
+
var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
358
360
|
|
|
359
361
|
// `HasOwnProperty` abstract operation
|
|
360
362
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
361
363
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
362
364
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
363
|
-
return hasOwnProperty(toObject$
|
|
365
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
364
366
|
};
|
|
365
367
|
|
|
366
|
-
var uncurryThis$
|
|
368
|
+
var uncurryThis$c = functionUncurryThis;
|
|
367
369
|
|
|
368
370
|
var id = 0;
|
|
369
371
|
var postfix = Math.random();
|
|
370
|
-
var toString = uncurryThis$
|
|
372
|
+
var toString$3 = uncurryThis$c(1.0.toString);
|
|
371
373
|
|
|
372
374
|
var uid$2 = function (key) {
|
|
373
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
375
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
374
376
|
};
|
|
375
377
|
|
|
376
378
|
var global$b = global$g;
|
|
377
379
|
var shared$2 = shared$3.exports;
|
|
378
|
-
var hasOwn$
|
|
380
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
379
381
|
var uid$1 = uid$2;
|
|
380
382
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
381
383
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
@@ -384,35 +386,35 @@ var Symbol$1 = global$b.Symbol;
|
|
|
384
386
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
385
387
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
386
388
|
|
|
387
|
-
var wellKnownSymbol$
|
|
388
|
-
if (!hasOwn$
|
|
389
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
389
|
+
var wellKnownSymbol$g = function (name) {
|
|
390
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
391
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
390
392
|
? Symbol$1[name]
|
|
391
393
|
: createWellKnownSymbol('Symbol.' + name);
|
|
392
394
|
} return WellKnownSymbolsStore[name];
|
|
393
395
|
};
|
|
394
396
|
|
|
395
|
-
var call$
|
|
396
|
-
var isObject$
|
|
397
|
+
var call$c = functionCall;
|
|
398
|
+
var isObject$7 = isObject$9;
|
|
397
399
|
var isSymbol$1 = isSymbol$2;
|
|
398
400
|
var getMethod$2 = getMethod$3;
|
|
399
401
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
400
|
-
var wellKnownSymbol$
|
|
402
|
+
var wellKnownSymbol$f = wellKnownSymbol$g;
|
|
401
403
|
|
|
402
|
-
var $TypeError$
|
|
403
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
404
|
+
var $TypeError$b = TypeError;
|
|
405
|
+
var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
|
|
404
406
|
|
|
405
407
|
// `ToPrimitive` abstract operation
|
|
406
408
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
407
409
|
var toPrimitive$1 = function (input, pref) {
|
|
408
|
-
if (!isObject$
|
|
410
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
409
411
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
410
412
|
var result;
|
|
411
413
|
if (exoticToPrim) {
|
|
412
414
|
if (pref === undefined) pref = 'default';
|
|
413
|
-
result = call$
|
|
414
|
-
if (!isObject$
|
|
415
|
-
throw $TypeError$
|
|
415
|
+
result = call$c(exoticToPrim, input, pref);
|
|
416
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
417
|
+
throw $TypeError$b("Can't convert object to primitive value");
|
|
416
418
|
}
|
|
417
419
|
if (pref === undefined) pref = 'number';
|
|
418
420
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -423,28 +425,28 @@ var isSymbol = isSymbol$2;
|
|
|
423
425
|
|
|
424
426
|
// `ToPropertyKey` abstract operation
|
|
425
427
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
426
|
-
var toPropertyKey$
|
|
428
|
+
var toPropertyKey$3 = function (argument) {
|
|
427
429
|
var key = toPrimitive(argument, 'string');
|
|
428
430
|
return isSymbol(key) ? key : key + '';
|
|
429
431
|
};
|
|
430
432
|
|
|
431
433
|
var global$a = global$g;
|
|
432
|
-
var isObject$
|
|
434
|
+
var isObject$6 = isObject$9;
|
|
433
435
|
|
|
434
436
|
var document$3 = global$a.document;
|
|
435
437
|
// typeof document.createElement is 'object' in old IE
|
|
436
|
-
var EXISTS$1 = isObject$
|
|
438
|
+
var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
|
|
437
439
|
|
|
438
440
|
var documentCreateElement$2 = function (it) {
|
|
439
441
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
440
442
|
};
|
|
441
443
|
|
|
442
444
|
var DESCRIPTORS$a = descriptors;
|
|
443
|
-
var fails$
|
|
445
|
+
var fails$c = fails$h;
|
|
444
446
|
var createElement$1 = documentCreateElement$2;
|
|
445
447
|
|
|
446
448
|
// Thanks to IE8 for its funny defineProperty
|
|
447
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$
|
|
449
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
448
450
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
449
451
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
450
452
|
get: function () { return 7; }
|
|
@@ -452,12 +454,12 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
|
|
|
452
454
|
});
|
|
453
455
|
|
|
454
456
|
var DESCRIPTORS$9 = descriptors;
|
|
455
|
-
var call$
|
|
457
|
+
var call$b = functionCall;
|
|
456
458
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
457
|
-
var createPropertyDescriptor$
|
|
459
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
458
460
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
459
|
-
var toPropertyKey$
|
|
460
|
-
var hasOwn$
|
|
461
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
462
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
461
463
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
462
464
|
|
|
463
465
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -467,21 +469,21 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
467
469
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
468
470
|
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
469
471
|
O = toIndexedObject$4(O);
|
|
470
|
-
P = toPropertyKey$
|
|
472
|
+
P = toPropertyKey$2(P);
|
|
471
473
|
if (IE8_DOM_DEFINE$1) try {
|
|
472
474
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
473
475
|
} catch (error) { /* empty */ }
|
|
474
|
-
if (hasOwn$
|
|
476
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$3(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
475
477
|
};
|
|
476
478
|
|
|
477
479
|
var objectDefineProperty = {};
|
|
478
480
|
|
|
479
481
|
var DESCRIPTORS$8 = descriptors;
|
|
480
|
-
var fails$
|
|
482
|
+
var fails$b = fails$h;
|
|
481
483
|
|
|
482
484
|
// V8 ~ Chrome 36-
|
|
483
485
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
484
|
-
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$
|
|
486
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
|
|
485
487
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
486
488
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
487
489
|
value: 42,
|
|
@@ -489,24 +491,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
|
489
491
|
}).prototype != 42;
|
|
490
492
|
});
|
|
491
493
|
|
|
492
|
-
var isObject$
|
|
494
|
+
var isObject$5 = isObject$9;
|
|
493
495
|
|
|
494
|
-
var $String$
|
|
495
|
-
var $TypeError$
|
|
496
|
+
var $String$3 = String;
|
|
497
|
+
var $TypeError$a = TypeError;
|
|
496
498
|
|
|
497
499
|
// `Assert: Type(argument) is Object`
|
|
498
|
-
var anObject$
|
|
499
|
-
if (isObject$
|
|
500
|
-
throw $TypeError$
|
|
500
|
+
var anObject$c = function (argument) {
|
|
501
|
+
if (isObject$5(argument)) return argument;
|
|
502
|
+
throw $TypeError$a($String$3(argument) + ' is not an object');
|
|
501
503
|
};
|
|
502
504
|
|
|
503
505
|
var DESCRIPTORS$7 = descriptors;
|
|
504
506
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
505
507
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
506
|
-
var anObject$
|
|
507
|
-
var toPropertyKey = toPropertyKey$
|
|
508
|
+
var anObject$b = anObject$c;
|
|
509
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
508
510
|
|
|
509
|
-
var $TypeError$
|
|
511
|
+
var $TypeError$9 = TypeError;
|
|
510
512
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
511
513
|
var $defineProperty = Object.defineProperty;
|
|
512
514
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -518,9 +520,9 @@ var WRITABLE = 'writable';
|
|
|
518
520
|
// `Object.defineProperty` method
|
|
519
521
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
520
522
|
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
521
|
-
anObject$
|
|
522
|
-
P = toPropertyKey(P);
|
|
523
|
-
anObject$
|
|
523
|
+
anObject$b(O);
|
|
524
|
+
P = toPropertyKey$1(P);
|
|
525
|
+
anObject$b(Attributes);
|
|
524
526
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
525
527
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
526
528
|
if (current && current[WRITABLE]) {
|
|
@@ -533,23 +535,23 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
533
535
|
}
|
|
534
536
|
} return $defineProperty(O, P, Attributes);
|
|
535
537
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
536
|
-
anObject$
|
|
537
|
-
P = toPropertyKey(P);
|
|
538
|
-
anObject$
|
|
538
|
+
anObject$b(O);
|
|
539
|
+
P = toPropertyKey$1(P);
|
|
540
|
+
anObject$b(Attributes);
|
|
539
541
|
if (IE8_DOM_DEFINE) try {
|
|
540
542
|
return $defineProperty(O, P, Attributes);
|
|
541
543
|
} catch (error) { /* empty */ }
|
|
542
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
544
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
|
|
543
545
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
544
546
|
return O;
|
|
545
547
|
};
|
|
546
548
|
|
|
547
549
|
var DESCRIPTORS$6 = descriptors;
|
|
548
|
-
var definePropertyModule$
|
|
549
|
-
var createPropertyDescriptor$
|
|
550
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
551
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
550
552
|
|
|
551
553
|
var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
552
|
-
return definePropertyModule$
|
|
554
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
|
|
553
555
|
} : function (object, key, value) {
|
|
554
556
|
object[key] = value;
|
|
555
557
|
return object;
|
|
@@ -558,13 +560,13 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
558
560
|
var makeBuiltIn$3 = {exports: {}};
|
|
559
561
|
|
|
560
562
|
var DESCRIPTORS$5 = descriptors;
|
|
561
|
-
var hasOwn$
|
|
563
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
562
564
|
|
|
563
565
|
var FunctionPrototype$1 = Function.prototype;
|
|
564
566
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
565
567
|
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
566
568
|
|
|
567
|
-
var EXISTS = hasOwn$
|
|
569
|
+
var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
|
|
568
570
|
// additional protection from minified / mangled / dropped function names
|
|
569
571
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
570
572
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
@@ -575,11 +577,11 @@ var functionName = {
|
|
|
575
577
|
CONFIGURABLE: CONFIGURABLE
|
|
576
578
|
};
|
|
577
579
|
|
|
578
|
-
var uncurryThis$
|
|
580
|
+
var uncurryThis$b = functionUncurryThis;
|
|
579
581
|
var isCallable$e = isCallable$k;
|
|
580
582
|
var store$1 = sharedStore;
|
|
581
583
|
|
|
582
|
-
var functionToString = uncurryThis$
|
|
584
|
+
var functionToString = uncurryThis$b(Function.toString);
|
|
583
585
|
|
|
584
586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
585
587
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -610,9 +612,9 @@ var hiddenKeys$4 = {};
|
|
|
610
612
|
|
|
611
613
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
612
614
|
var global$8 = global$g;
|
|
613
|
-
var isObject$
|
|
615
|
+
var isObject$4 = isObject$9;
|
|
614
616
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
615
|
-
var hasOwn$
|
|
617
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
616
618
|
var shared = sharedStore;
|
|
617
619
|
var sharedKey$2 = sharedKey$3;
|
|
618
620
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -629,7 +631,7 @@ var enforce = function (it) {
|
|
|
629
631
|
var getterFor = function (TYPE) {
|
|
630
632
|
return function (it) {
|
|
631
633
|
var state;
|
|
632
|
-
if (!isObject$
|
|
634
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
633
635
|
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
634
636
|
} return state;
|
|
635
637
|
};
|
|
@@ -658,16 +660,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
658
660
|
var STATE = sharedKey$2('state');
|
|
659
661
|
hiddenKeys$3[STATE] = true;
|
|
660
662
|
set$1 = function (it, metadata) {
|
|
661
|
-
if (hasOwn$
|
|
663
|
+
if (hasOwn$7(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
662
664
|
metadata.facade = it;
|
|
663
665
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
664
666
|
return metadata;
|
|
665
667
|
};
|
|
666
668
|
get = function (it) {
|
|
667
|
-
return hasOwn$
|
|
669
|
+
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
668
670
|
};
|
|
669
671
|
has = function (it) {
|
|
670
|
-
return hasOwn$
|
|
672
|
+
return hasOwn$7(it, STATE);
|
|
671
673
|
};
|
|
672
674
|
}
|
|
673
675
|
|
|
@@ -679,10 +681,10 @@ var internalState = {
|
|
|
679
681
|
getterFor: getterFor
|
|
680
682
|
};
|
|
681
683
|
|
|
682
|
-
var uncurryThis$
|
|
683
|
-
var fails$
|
|
684
|
+
var uncurryThis$a = functionUncurryThis;
|
|
685
|
+
var fails$a = fails$h;
|
|
684
686
|
var isCallable$c = isCallable$k;
|
|
685
|
-
var hasOwn$
|
|
687
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
686
688
|
var DESCRIPTORS$4 = descriptors;
|
|
687
689
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
688
690
|
var inspectSource$2 = inspectSource$3;
|
|
@@ -690,40 +692,40 @@ var InternalStateModule$2 = internalState;
|
|
|
690
692
|
|
|
691
693
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
692
694
|
var getInternalState$1 = InternalStateModule$2.get;
|
|
693
|
-
var $String$
|
|
695
|
+
var $String$2 = String;
|
|
694
696
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
695
697
|
var defineProperty$5 = Object.defineProperty;
|
|
696
|
-
var stringSlice = uncurryThis$
|
|
697
|
-
var replace = uncurryThis$
|
|
698
|
-
var join = uncurryThis$
|
|
698
|
+
var stringSlice = uncurryThis$a(''.slice);
|
|
699
|
+
var replace = uncurryThis$a(''.replace);
|
|
700
|
+
var join = uncurryThis$a([].join);
|
|
699
701
|
|
|
700
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$
|
|
702
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$a(function () {
|
|
701
703
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
702
704
|
});
|
|
703
705
|
|
|
704
706
|
var TEMPLATE = String(String).split('String');
|
|
705
707
|
|
|
706
708
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
707
|
-
if (stringSlice($String$
|
|
708
|
-
name = '[' + replace($String$
|
|
709
|
+
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
710
|
+
name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
709
711
|
}
|
|
710
712
|
if (options && options.getter) name = 'get ' + name;
|
|
711
713
|
if (options && options.setter) name = 'set ' + name;
|
|
712
|
-
if (!hasOwn$
|
|
714
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
713
715
|
if (DESCRIPTORS$4) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
714
716
|
else value.name = name;
|
|
715
717
|
}
|
|
716
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
718
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
717
719
|
defineProperty$5(value, 'length', { value: options.arity });
|
|
718
720
|
}
|
|
719
721
|
try {
|
|
720
|
-
if (options && hasOwn$
|
|
722
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
721
723
|
if (DESCRIPTORS$4) defineProperty$5(value, 'prototype', { writable: false });
|
|
722
724
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
723
725
|
} else if (value.prototype) value.prototype = undefined;
|
|
724
726
|
} catch (error) { /* empty */ }
|
|
725
727
|
var state = enforceInternalState(value);
|
|
726
|
-
if (!hasOwn$
|
|
728
|
+
if (!hasOwn$6(state, 'source')) {
|
|
727
729
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
728
730
|
} return value;
|
|
729
731
|
};
|
|
@@ -735,11 +737,11 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
735
737
|
}, 'toString');
|
|
736
738
|
|
|
737
739
|
var isCallable$b = isCallable$k;
|
|
738
|
-
var definePropertyModule$
|
|
740
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
739
741
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
740
742
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
741
743
|
|
|
742
|
-
var defineBuiltIn$
|
|
744
|
+
var defineBuiltIn$6 = function (O, key, value, options) {
|
|
743
745
|
if (!options) options = {};
|
|
744
746
|
var simple = options.enumerable;
|
|
745
747
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -753,7 +755,7 @@ var defineBuiltIn$5 = function (O, key, value, options) {
|
|
|
753
755
|
else if (O[key]) simple = true;
|
|
754
756
|
} catch (error) { /* empty */ }
|
|
755
757
|
if (simple) O[key] = value;
|
|
756
|
-
else definePropertyModule$
|
|
758
|
+
else definePropertyModule$3.f(O, key, {
|
|
757
759
|
value: value,
|
|
758
760
|
enumerable: false,
|
|
759
761
|
configurable: !options.nonConfigurable,
|
|
@@ -765,14 +767,14 @@ var defineBuiltIn$5 = function (O, key, value, options) {
|
|
|
765
767
|
var objectGetOwnPropertyNames = {};
|
|
766
768
|
|
|
767
769
|
var ceil = Math.ceil;
|
|
768
|
-
var floor = Math.floor;
|
|
770
|
+
var floor$1 = Math.floor;
|
|
769
771
|
|
|
770
772
|
// `Math.trunc` method
|
|
771
773
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
772
774
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
773
775
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
774
776
|
var n = +x;
|
|
775
|
-
return (n > 0 ? floor : ceil)(n);
|
|
777
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
776
778
|
};
|
|
777
779
|
|
|
778
780
|
var trunc = mathTrunc;
|
|
@@ -787,15 +789,15 @@ var toIntegerOrInfinity$2 = function (argument) {
|
|
|
787
789
|
|
|
788
790
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
789
791
|
|
|
790
|
-
var max = Math.max;
|
|
792
|
+
var max$1 = Math.max;
|
|
791
793
|
var min$1 = Math.min;
|
|
792
794
|
|
|
793
795
|
// Helper for a popular repeating case of the spec:
|
|
794
796
|
// Let integer be ? ToInteger(index).
|
|
795
797
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
796
|
-
var toAbsoluteIndex$
|
|
798
|
+
var toAbsoluteIndex$2 = function (index, length) {
|
|
797
799
|
var integer = toIntegerOrInfinity$1(index);
|
|
798
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
800
|
+
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
|
799
801
|
};
|
|
800
802
|
|
|
801
803
|
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
@@ -812,20 +814,20 @@ var toLength = toLength$1;
|
|
|
812
814
|
|
|
813
815
|
// `LengthOfArrayLike` abstract operation
|
|
814
816
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
815
|
-
var lengthOfArrayLike$
|
|
817
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
816
818
|
return toLength(obj.length);
|
|
817
819
|
};
|
|
818
820
|
|
|
819
821
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
820
|
-
var toAbsoluteIndex = toAbsoluteIndex$
|
|
821
|
-
var lengthOfArrayLike$
|
|
822
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
823
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
822
824
|
|
|
823
825
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
824
826
|
var createMethod = function (IS_INCLUDES) {
|
|
825
827
|
return function ($this, el, fromIndex) {
|
|
826
828
|
var O = toIndexedObject$3($this);
|
|
827
|
-
var length = lengthOfArrayLike$
|
|
828
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
829
|
+
var length = lengthOfArrayLike$3(O);
|
|
830
|
+
var index = toAbsoluteIndex$1(fromIndex, length);
|
|
829
831
|
var value;
|
|
830
832
|
// Array#includes uses SameValueZero equality algorithm
|
|
831
833
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -849,23 +851,23 @@ var arrayIncludes = {
|
|
|
849
851
|
indexOf: createMethod(false)
|
|
850
852
|
};
|
|
851
853
|
|
|
852
|
-
var uncurryThis$
|
|
853
|
-
var hasOwn$
|
|
854
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
855
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
854
856
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
855
857
|
var indexOf = arrayIncludes.indexOf;
|
|
856
858
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
857
859
|
|
|
858
|
-
var push = uncurryThis$
|
|
860
|
+
var push$1 = uncurryThis$9([].push);
|
|
859
861
|
|
|
860
862
|
var objectKeysInternal = function (object, names) {
|
|
861
863
|
var O = toIndexedObject$2(object);
|
|
862
864
|
var i = 0;
|
|
863
865
|
var result = [];
|
|
864
866
|
var key;
|
|
865
|
-
for (key in O) !hasOwn$
|
|
867
|
+
for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
|
|
866
868
|
// Don't enum bug & hidden keys
|
|
867
|
-
while (names.length > i) if (hasOwn$
|
|
868
|
-
~indexOf(result, key) || push(result, key);
|
|
869
|
+
while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
|
|
870
|
+
~indexOf(result, key) || push$1(result, key);
|
|
869
871
|
}
|
|
870
872
|
return result;
|
|
871
873
|
};
|
|
@@ -899,38 +901,38 @@ var objectGetOwnPropertySymbols = {};
|
|
|
899
901
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
900
902
|
|
|
901
903
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
902
|
-
var uncurryThis$
|
|
904
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
903
905
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
904
906
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
905
|
-
var anObject$
|
|
907
|
+
var anObject$a = anObject$c;
|
|
906
908
|
|
|
907
|
-
var concat$1 = uncurryThis$
|
|
909
|
+
var concat$1 = uncurryThis$8([].concat);
|
|
908
910
|
|
|
909
911
|
// all object keys, includes non-enumerable and symbols
|
|
910
912
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
911
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
913
|
+
var keys = getOwnPropertyNamesModule.f(anObject$a(it));
|
|
912
914
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
913
915
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
914
916
|
};
|
|
915
917
|
|
|
916
|
-
var hasOwn$
|
|
918
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
917
919
|
var ownKeys = ownKeys$1;
|
|
918
920
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
919
|
-
var definePropertyModule$
|
|
921
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
920
922
|
|
|
921
923
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
922
924
|
var keys = ownKeys(source);
|
|
923
|
-
var defineProperty = definePropertyModule$
|
|
925
|
+
var defineProperty = definePropertyModule$2.f;
|
|
924
926
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
925
927
|
for (var i = 0; i < keys.length; i++) {
|
|
926
928
|
var key = keys[i];
|
|
927
|
-
if (!hasOwn$
|
|
929
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
928
930
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
929
931
|
}
|
|
930
932
|
}
|
|
931
933
|
};
|
|
932
934
|
|
|
933
|
-
var fails$
|
|
935
|
+
var fails$9 = fails$h;
|
|
934
936
|
var isCallable$a = isCallable$k;
|
|
935
937
|
|
|
936
938
|
var replacement = /#|\.prototype\./;
|
|
@@ -939,7 +941,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
939
941
|
var value = data[normalize(feature)];
|
|
940
942
|
return value == POLYFILL ? true
|
|
941
943
|
: value == NATIVE ? false
|
|
942
|
-
: isCallable$a(detection) ? fails$
|
|
944
|
+
: isCallable$a(detection) ? fails$9(detection)
|
|
943
945
|
: !!detection;
|
|
944
946
|
};
|
|
945
947
|
|
|
@@ -956,7 +958,7 @@ var isForced_1 = isForced$2;
|
|
|
956
958
|
var global$7 = global$g;
|
|
957
959
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
958
960
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
959
|
-
var defineBuiltIn$
|
|
961
|
+
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
960
962
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
961
963
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
962
964
|
var isForced$1 = isForced_1;
|
|
@@ -1004,7 +1006,7 @@ var _export = function (options, source) {
|
|
|
1004
1006
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1005
1007
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1006
1008
|
}
|
|
1007
|
-
defineBuiltIn$
|
|
1009
|
+
defineBuiltIn$5(target, key, sourceProperty, options);
|
|
1008
1010
|
}
|
|
1009
1011
|
};
|
|
1010
1012
|
|
|
@@ -1019,24 +1021,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1019
1021
|
};
|
|
1020
1022
|
|
|
1021
1023
|
var DESCRIPTORS$3 = descriptors;
|
|
1022
|
-
var uncurryThis$
|
|
1023
|
-
var call$
|
|
1024
|
-
var fails$
|
|
1024
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1025
|
+
var call$a = functionCall;
|
|
1026
|
+
var fails$8 = fails$h;
|
|
1025
1027
|
var objectKeys$1 = objectKeys$2;
|
|
1026
1028
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1027
1029
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1028
|
-
var toObject$
|
|
1030
|
+
var toObject$2 = toObject$4;
|
|
1029
1031
|
var IndexedObject = indexedObject;
|
|
1030
1032
|
|
|
1031
1033
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1032
1034
|
var $assign = Object.assign;
|
|
1033
1035
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1034
1036
|
var defineProperty$4 = Object.defineProperty;
|
|
1035
|
-
var concat = uncurryThis$
|
|
1037
|
+
var concat = uncurryThis$7([].concat);
|
|
1036
1038
|
|
|
1037
1039
|
// `Object.assign` method
|
|
1038
1040
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1039
|
-
var objectAssign = !$assign || fails$
|
|
1041
|
+
var objectAssign = !$assign || fails$8(function () {
|
|
1040
1042
|
// should have correct order of operations (Edge bug)
|
|
1041
1043
|
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1042
1044
|
enumerable: true,
|
|
@@ -1057,7 +1059,7 @@ var objectAssign = !$assign || fails$4(function () {
|
|
|
1057
1059
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1058
1060
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1059
1061
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1060
|
-
var T = toObject$
|
|
1062
|
+
var T = toObject$2(target);
|
|
1061
1063
|
var argumentsLength = arguments.length;
|
|
1062
1064
|
var index = 1;
|
|
1063
1065
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1070,18 +1072,18 @@ var objectAssign = !$assign || fails$4(function () {
|
|
|
1070
1072
|
var key;
|
|
1071
1073
|
while (length > j) {
|
|
1072
1074
|
key = keys[j++];
|
|
1073
|
-
if (!DESCRIPTORS$3 || call$
|
|
1075
|
+
if (!DESCRIPTORS$3 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1074
1076
|
}
|
|
1075
1077
|
} return T;
|
|
1076
1078
|
} : $assign;
|
|
1077
1079
|
|
|
1078
|
-
var $$
|
|
1080
|
+
var $$a = _export;
|
|
1079
1081
|
var assign = objectAssign;
|
|
1080
1082
|
|
|
1081
1083
|
// `Object.assign` method
|
|
1082
1084
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1083
1085
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1084
|
-
$$
|
|
1086
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1085
1087
|
assign: assign
|
|
1086
1088
|
});
|
|
1087
1089
|
|
|
@@ -1111,8 +1113,8 @@ var objectDefineProperties = {};
|
|
|
1111
1113
|
|
|
1112
1114
|
var DESCRIPTORS$2 = descriptors;
|
|
1113
1115
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1114
|
-
var definePropertyModule = objectDefineProperty;
|
|
1115
|
-
var anObject$
|
|
1116
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1117
|
+
var anObject$9 = anObject$c;
|
|
1116
1118
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1117
1119
|
var objectKeys = objectKeys$2;
|
|
1118
1120
|
|
|
@@ -1120,13 +1122,13 @@ var objectKeys = objectKeys$2;
|
|
|
1120
1122
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1121
1123
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1122
1124
|
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1123
|
-
anObject$
|
|
1125
|
+
anObject$9(O);
|
|
1124
1126
|
var props = toIndexedObject$1(Properties);
|
|
1125
1127
|
var keys = objectKeys(Properties);
|
|
1126
1128
|
var length = keys.length;
|
|
1127
1129
|
var index = 0;
|
|
1128
1130
|
var key;
|
|
1129
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1131
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
1130
1132
|
return O;
|
|
1131
1133
|
};
|
|
1132
1134
|
|
|
@@ -1136,7 +1138,7 @@ var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
|
1136
1138
|
|
|
1137
1139
|
/* global ActiveXObject -- old IE, WSH */
|
|
1138
1140
|
|
|
1139
|
-
var anObject$
|
|
1141
|
+
var anObject$8 = anObject$c;
|
|
1140
1142
|
var definePropertiesModule = objectDefineProperties;
|
|
1141
1143
|
var enumBugKeys = enumBugKeys$3;
|
|
1142
1144
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1210,7 +1212,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1210
1212
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1211
1213
|
var result;
|
|
1212
1214
|
if (O !== null) {
|
|
1213
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1215
|
+
EmptyConstructor[PROTOTYPE] = anObject$8(O);
|
|
1214
1216
|
result = new EmptyConstructor();
|
|
1215
1217
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1216
1218
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1219,11 +1221,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1219
1221
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1220
1222
|
};
|
|
1221
1223
|
|
|
1222
|
-
var wellKnownSymbol$
|
|
1224
|
+
var wellKnownSymbol$e = wellKnownSymbol$g;
|
|
1223
1225
|
var create$1 = objectCreate;
|
|
1224
1226
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1225
1227
|
|
|
1226
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1228
|
+
var UNSCOPABLES = wellKnownSymbol$e('unscopables');
|
|
1227
1229
|
var ArrayPrototype$1 = Array.prototype;
|
|
1228
1230
|
|
|
1229
1231
|
// Array.prototype[@@unscopables]
|
|
@@ -1236,24 +1238,24 @@ if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
|
1236
1238
|
}
|
|
1237
1239
|
|
|
1238
1240
|
// add a key to Array.prototype[@@unscopables]
|
|
1239
|
-
var addToUnscopables$
|
|
1241
|
+
var addToUnscopables$2 = function (key) {
|
|
1240
1242
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1241
1243
|
};
|
|
1242
1244
|
|
|
1243
1245
|
var iterators = {};
|
|
1244
1246
|
|
|
1245
|
-
var fails$
|
|
1247
|
+
var fails$7 = fails$h;
|
|
1246
1248
|
|
|
1247
|
-
var correctPrototypeGetter = !fails$
|
|
1249
|
+
var correctPrototypeGetter = !fails$7(function () {
|
|
1248
1250
|
function F() { /* empty */ }
|
|
1249
1251
|
F.prototype.constructor = null;
|
|
1250
1252
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1251
1253
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1252
1254
|
});
|
|
1253
1255
|
|
|
1254
|
-
var hasOwn$
|
|
1256
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1255
1257
|
var isCallable$9 = isCallable$k;
|
|
1256
|
-
var toObject = toObject$
|
|
1258
|
+
var toObject$1 = toObject$4;
|
|
1257
1259
|
var sharedKey = sharedKey$3;
|
|
1258
1260
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1259
1261
|
|
|
@@ -1265,22 +1267,22 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1265
1267
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1266
1268
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1267
1269
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1268
|
-
var object = toObject(O);
|
|
1269
|
-
if (hasOwn$
|
|
1270
|
+
var object = toObject$1(O);
|
|
1271
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1270
1272
|
var constructor = object.constructor;
|
|
1271
1273
|
if (isCallable$9(constructor) && object instanceof constructor) {
|
|
1272
1274
|
return constructor.prototype;
|
|
1273
1275
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1274
1276
|
};
|
|
1275
1277
|
|
|
1276
|
-
var fails$
|
|
1278
|
+
var fails$6 = fails$h;
|
|
1277
1279
|
var isCallable$8 = isCallable$k;
|
|
1278
|
-
var isObject$
|
|
1280
|
+
var isObject$3 = isObject$9;
|
|
1279
1281
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1280
|
-
var defineBuiltIn$
|
|
1281
|
-
var wellKnownSymbol$
|
|
1282
|
+
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1283
|
+
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
1282
1284
|
|
|
1283
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1285
|
+
var ITERATOR$5 = wellKnownSymbol$d('iterator');
|
|
1284
1286
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1285
1287
|
|
|
1286
1288
|
// `%IteratorPrototype%` object
|
|
@@ -1298,7 +1300,7 @@ if ([].keys) {
|
|
|
1298
1300
|
}
|
|
1299
1301
|
}
|
|
1300
1302
|
|
|
1301
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1303
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$6(function () {
|
|
1302
1304
|
var test = {};
|
|
1303
1305
|
// FF44- legacy iterators case
|
|
1304
1306
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
|
@@ -1309,7 +1311,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1309
1311
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1310
1312
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1311
1313
|
if (!isCallable$8(IteratorPrototype$2[ITERATOR$5])) {
|
|
1312
|
-
defineBuiltIn$
|
|
1314
|
+
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$5, function () {
|
|
1313
1315
|
return this;
|
|
1314
1316
|
});
|
|
1315
1317
|
}
|
|
@@ -1320,21 +1322,21 @@ var iteratorsCore = {
|
|
|
1320
1322
|
};
|
|
1321
1323
|
|
|
1322
1324
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1323
|
-
var hasOwn$
|
|
1324
|
-
var wellKnownSymbol$
|
|
1325
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1326
|
+
var wellKnownSymbol$c = wellKnownSymbol$g;
|
|
1325
1327
|
|
|
1326
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$
|
|
1328
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$c('toStringTag');
|
|
1327
1329
|
|
|
1328
1330
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1329
1331
|
if (target && !STATIC) target = target.prototype;
|
|
1330
|
-
if (target && !hasOwn$
|
|
1332
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
|
|
1331
1333
|
defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1332
1334
|
}
|
|
1333
1335
|
};
|
|
1334
1336
|
|
|
1335
1337
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1336
1338
|
var create = objectCreate;
|
|
1337
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1339
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1338
1340
|
var setToStringTag$2 = setToStringTag$3;
|
|
1339
1341
|
var Iterators$4 = iterators;
|
|
1340
1342
|
|
|
@@ -1342,36 +1344,36 @@ var returnThis$1 = function () { return this; };
|
|
|
1342
1344
|
|
|
1343
1345
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1344
1346
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1345
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1347
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1346
1348
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1347
1349
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1348
1350
|
return IteratorConstructor;
|
|
1349
1351
|
};
|
|
1350
1352
|
|
|
1351
|
-
var uncurryThis$
|
|
1352
|
-
var aCallable$
|
|
1353
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1354
|
+
var aCallable$7 = aCallable$9;
|
|
1353
1355
|
|
|
1354
1356
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1355
1357
|
try {
|
|
1356
1358
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1357
|
-
return uncurryThis$
|
|
1359
|
+
return uncurryThis$6(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1358
1360
|
} catch (error) { /* empty */ }
|
|
1359
1361
|
};
|
|
1360
1362
|
|
|
1361
1363
|
var isCallable$7 = isCallable$k;
|
|
1362
1364
|
|
|
1363
|
-
var $String = String;
|
|
1364
|
-
var $TypeError$
|
|
1365
|
+
var $String$1 = String;
|
|
1366
|
+
var $TypeError$8 = TypeError;
|
|
1365
1367
|
|
|
1366
1368
|
var aPossiblePrototype$1 = function (argument) {
|
|
1367
1369
|
if (typeof argument == 'object' || isCallable$7(argument)) return argument;
|
|
1368
|
-
throw $TypeError$
|
|
1370
|
+
throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1369
1371
|
};
|
|
1370
1372
|
|
|
1371
1373
|
/* eslint-disable no-proto -- safe */
|
|
1372
1374
|
|
|
1373
1375
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1374
|
-
var anObject$
|
|
1376
|
+
var anObject$7 = anObject$c;
|
|
1375
1377
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1376
1378
|
|
|
1377
1379
|
// `Object.setPrototypeOf` method
|
|
@@ -1388,7 +1390,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1388
1390
|
CORRECT_SETTER = test instanceof Array;
|
|
1389
1391
|
} catch (error) { /* empty */ }
|
|
1390
1392
|
return function setPrototypeOf(O, proto) {
|
|
1391
|
-
anObject$
|
|
1393
|
+
anObject$7(O);
|
|
1392
1394
|
aPossiblePrototype(proto);
|
|
1393
1395
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1394
1396
|
else O.__proto__ = proto;
|
|
@@ -1396,8 +1398,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1396
1398
|
};
|
|
1397
1399
|
}() : undefined);
|
|
1398
1400
|
|
|
1399
|
-
var $$
|
|
1400
|
-
var call$
|
|
1401
|
+
var $$9 = _export;
|
|
1402
|
+
var call$9 = functionCall;
|
|
1401
1403
|
var FunctionName = functionName;
|
|
1402
1404
|
var isCallable$6 = isCallable$k;
|
|
1403
1405
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1405,16 +1407,16 @@ var getPrototypeOf = objectGetPrototypeOf;
|
|
|
1405
1407
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1406
1408
|
var setToStringTag$1 = setToStringTag$3;
|
|
1407
1409
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1408
|
-
var defineBuiltIn$
|
|
1409
|
-
var wellKnownSymbol$
|
|
1410
|
+
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
1411
|
+
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1410
1412
|
var Iterators$3 = iterators;
|
|
1411
1413
|
var IteratorsCore = iteratorsCore;
|
|
1412
1414
|
|
|
1413
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1415
|
+
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
1414
1416
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1415
1417
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1416
1418
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1417
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1419
|
+
var ITERATOR$4 = wellKnownSymbol$b('iterator');
|
|
1418
1420
|
var KEYS = 'keys';
|
|
1419
1421
|
var VALUES = 'values';
|
|
1420
1422
|
var ENTRIES = 'entries';
|
|
@@ -1452,7 +1454,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1452
1454
|
if (setPrototypeOf$1) {
|
|
1453
1455
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1454
1456
|
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
|
|
1455
|
-
defineBuiltIn$
|
|
1457
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$4, returnThis);
|
|
1456
1458
|
}
|
|
1457
1459
|
}
|
|
1458
1460
|
// Set @@toStringTag to native iterators
|
|
@@ -1461,12 +1463,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1461
1463
|
}
|
|
1462
1464
|
|
|
1463
1465
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1464
|
-
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1466
|
+
if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1465
1467
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1466
1468
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1467
1469
|
} else {
|
|
1468
1470
|
INCORRECT_VALUES_NAME = true;
|
|
1469
|
-
defaultIterator = function values() { return call$
|
|
1471
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1470
1472
|
}
|
|
1471
1473
|
}
|
|
1472
1474
|
|
|
@@ -1479,14 +1481,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1479
1481
|
};
|
|
1480
1482
|
if (FORCED) for (KEY in methods) {
|
|
1481
1483
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1482
|
-
defineBuiltIn$
|
|
1484
|
+
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1483
1485
|
}
|
|
1484
|
-
} else $$
|
|
1486
|
+
} else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1485
1487
|
}
|
|
1486
1488
|
|
|
1487
1489
|
// define iterator
|
|
1488
1490
|
if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
|
|
1489
|
-
defineBuiltIn$
|
|
1491
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
|
|
1490
1492
|
}
|
|
1491
1493
|
Iterators$3[NAME] = defaultIterator;
|
|
1492
1494
|
|
|
@@ -1500,7 +1502,7 @@ var createIterResultObject$1 = function (value, done) {
|
|
|
1500
1502
|
};
|
|
1501
1503
|
|
|
1502
1504
|
var toIndexedObject = toIndexedObject$5;
|
|
1503
|
-
var addToUnscopables = addToUnscopables$
|
|
1505
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
1504
1506
|
var Iterators$2 = iterators;
|
|
1505
1507
|
var InternalStateModule$1 = internalState;
|
|
1506
1508
|
var defineProperty$1 = objectDefineProperty.f;
|
|
@@ -1551,9 +1553,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1551
1553
|
var values = Iterators$2.Arguments = Iterators$2.Array;
|
|
1552
1554
|
|
|
1553
1555
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1554
|
-
addToUnscopables('keys');
|
|
1555
|
-
addToUnscopables('values');
|
|
1556
|
-
addToUnscopables('entries');
|
|
1556
|
+
addToUnscopables$1('keys');
|
|
1557
|
+
addToUnscopables$1('values');
|
|
1558
|
+
addToUnscopables$1('entries');
|
|
1557
1559
|
|
|
1558
1560
|
// V8 ~ Chrome 45- bug
|
|
1559
1561
|
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
@@ -1609,10 +1611,10 @@ var DOMIterables = domIterables;
|
|
|
1609
1611
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1610
1612
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1611
1613
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1612
|
-
var wellKnownSymbol$
|
|
1614
|
+
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
1613
1615
|
|
|
1614
|
-
var ITERATOR$3 = wellKnownSymbol$
|
|
1615
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1616
|
+
var ITERATOR$3 = wellKnownSymbol$a('iterator');
|
|
1617
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
|
|
1616
1618
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1617
1619
|
|
|
1618
1620
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -1649,17 +1651,75 @@ const useOrchestratorTheme = () => {
|
|
|
1649
1651
|
} = useEuiTheme();
|
|
1650
1652
|
const baseUnit = euiTheme.base;
|
|
1651
1653
|
const multiplyByBaseUnit = multiplier => baseUnit * multiplier;
|
|
1654
|
+
const toSecondaryColor = color => tint(color, 0.8);
|
|
1652
1655
|
return {
|
|
1653
1656
|
theme: euiTheme,
|
|
1654
|
-
multiplyByBaseUnit
|
|
1657
|
+
multiplyByBaseUnit,
|
|
1658
|
+
toSecondaryColor
|
|
1655
1659
|
};
|
|
1656
1660
|
};
|
|
1657
1661
|
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1662
|
+
/******************************************************************************
|
|
1663
|
+
Copyright (c) Microsoft Corporation.
|
|
1664
|
+
|
|
1665
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1666
|
+
purpose with or without fee is hereby granted.
|
|
1667
|
+
|
|
1668
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1669
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1670
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1671
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1672
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1673
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1674
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1675
|
+
***************************************************************************** */
|
|
1676
|
+
|
|
1677
|
+
function __rest(s, e) {
|
|
1678
|
+
var t = {};
|
|
1679
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1680
|
+
t[p] = s[p];
|
|
1681
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1682
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1683
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1684
|
+
t[p[i]] = s[p[i]];
|
|
1685
|
+
}
|
|
1686
|
+
return t;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1690
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1691
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1692
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1693
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1694
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1695
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
const Badge = _a => {
|
|
1700
|
+
var {
|
|
1701
|
+
textColor,
|
|
1702
|
+
children
|
|
1703
|
+
} = _a,
|
|
1704
|
+
restProps = __rest(_a, ["textColor", "children"]);
|
|
1705
|
+
return jsx(EuiBadge, Object.assign({}, restProps, {
|
|
1706
|
+
children: jsx(EuiText, Object.assign({
|
|
1707
|
+
color: textColor,
|
|
1708
|
+
size: "xs"
|
|
1709
|
+
}, {
|
|
1710
|
+
children: jsx("b", {
|
|
1711
|
+
children: children
|
|
1712
|
+
})
|
|
1713
|
+
}))
|
|
1714
|
+
}));
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
const HeaderBadge = _a => {
|
|
1718
|
+
var {
|
|
1719
|
+
children
|
|
1720
|
+
} = _a,
|
|
1721
|
+
restProps = __rest(_a, ["children"]);
|
|
1722
|
+
const css = restProps.iconType ? {
|
|
1663
1723
|
height: 24,
|
|
1664
1724
|
display: 'flex',
|
|
1665
1725
|
paddingLeft: 0
|
|
@@ -1667,11 +1727,10 @@ const HeaderBadge = props => {
|
|
|
1667
1727
|
height: 24,
|
|
1668
1728
|
display: 'flex'
|
|
1669
1729
|
};
|
|
1670
|
-
return jsx(
|
|
1671
|
-
color: theme.colors[props.color],
|
|
1730
|
+
return jsx(Badge, Object.assign({}, restProps, {
|
|
1672
1731
|
css: css
|
|
1673
1732
|
}, {
|
|
1674
|
-
children:
|
|
1733
|
+
children: children
|
|
1675
1734
|
}));
|
|
1676
1735
|
};
|
|
1677
1736
|
|
|
@@ -1781,9 +1840,9 @@ const LogoutIcon = ({
|
|
|
1781
1840
|
}))]
|
|
1782
1841
|
}));
|
|
1783
1842
|
|
|
1784
|
-
var classof$
|
|
1843
|
+
var classof$5 = classofRaw$2;
|
|
1785
1844
|
|
|
1786
|
-
var engineIsNode = typeof process != 'undefined' && classof$
|
|
1845
|
+
var engineIsNode = typeof process != 'undefined' && classof$5(process) == 'process';
|
|
1787
1846
|
|
|
1788
1847
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
1789
1848
|
var defineProperty = objectDefineProperty;
|
|
@@ -1796,10 +1855,10 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1796
1855
|
|
|
1797
1856
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
1798
1857
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1799
|
-
var wellKnownSymbol$
|
|
1858
|
+
var wellKnownSymbol$9 = wellKnownSymbol$g;
|
|
1800
1859
|
var DESCRIPTORS = descriptors;
|
|
1801
1860
|
|
|
1802
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
1861
|
+
var SPECIES$2 = wellKnownSymbol$9('species');
|
|
1803
1862
|
|
|
1804
1863
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1805
1864
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
@@ -1812,30 +1871,30 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1812
1871
|
}
|
|
1813
1872
|
};
|
|
1814
1873
|
|
|
1815
|
-
var isPrototypeOf$
|
|
1874
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1816
1875
|
|
|
1817
|
-
var $TypeError$
|
|
1876
|
+
var $TypeError$7 = TypeError;
|
|
1818
1877
|
|
|
1819
1878
|
var anInstance$1 = function (it, Prototype) {
|
|
1820
|
-
if (isPrototypeOf$
|
|
1821
|
-
throw $TypeError$
|
|
1879
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1880
|
+
throw $TypeError$7('Incorrect invocation');
|
|
1822
1881
|
};
|
|
1823
1882
|
|
|
1824
|
-
var wellKnownSymbol$
|
|
1883
|
+
var wellKnownSymbol$8 = wellKnownSymbol$g;
|
|
1825
1884
|
|
|
1826
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1827
|
-
var test = {};
|
|
1885
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1886
|
+
var test$1 = {};
|
|
1828
1887
|
|
|
1829
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
1888
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
|
1830
1889
|
|
|
1831
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1890
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1832
1891
|
|
|
1833
1892
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1834
1893
|
var isCallable$5 = isCallable$k;
|
|
1835
1894
|
var classofRaw$1 = classofRaw$2;
|
|
1836
|
-
var wellKnownSymbol$
|
|
1895
|
+
var wellKnownSymbol$7 = wellKnownSymbol$g;
|
|
1837
1896
|
|
|
1838
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1897
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1839
1898
|
var $Object = Object;
|
|
1840
1899
|
|
|
1841
1900
|
// ES3 wrong here
|
|
@@ -1849,7 +1908,7 @@ var tryGet = function (it, key) {
|
|
|
1849
1908
|
};
|
|
1850
1909
|
|
|
1851
1910
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1852
|
-
var classof$
|
|
1911
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1853
1912
|
var O, tag, result;
|
|
1854
1913
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1855
1914
|
// @@toStringTag case
|
|
@@ -1860,10 +1919,10 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1860
1919
|
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1861
1920
|
};
|
|
1862
1921
|
|
|
1863
|
-
var uncurryThis$
|
|
1864
|
-
var fails$
|
|
1922
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1923
|
+
var fails$5 = fails$h;
|
|
1865
1924
|
var isCallable$4 = isCallable$k;
|
|
1866
|
-
var classof$
|
|
1925
|
+
var classof$3 = classof$4;
|
|
1867
1926
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
1868
1927
|
var inspectSource$1 = inspectSource$3;
|
|
1869
1928
|
|
|
@@ -1871,7 +1930,7 @@ var noop = function () { /* empty */ };
|
|
|
1871
1930
|
var empty = [];
|
|
1872
1931
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
1873
1932
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1874
|
-
var exec = uncurryThis$
|
|
1933
|
+
var exec = uncurryThis$5(constructorRegExp.exec);
|
|
1875
1934
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1876
1935
|
|
|
1877
1936
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1886,7 +1945,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1886
1945
|
|
|
1887
1946
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1888
1947
|
if (!isCallable$4(argument)) return false;
|
|
1889
|
-
switch (classof$
|
|
1948
|
+
switch (classof$3(argument)) {
|
|
1890
1949
|
case 'AsyncFunction':
|
|
1891
1950
|
case 'GeneratorFunction':
|
|
1892
1951
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1905,7 +1964,7 @@ isConstructorLegacy.sham = true;
|
|
|
1905
1964
|
|
|
1906
1965
|
// `IsConstructor` abstract operation
|
|
1907
1966
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1908
|
-
var isConstructor$1 = !construct || fails$
|
|
1967
|
+
var isConstructor$1 = !construct || fails$5(function () {
|
|
1909
1968
|
var called;
|
|
1910
1969
|
return isConstructorModern(isConstructorModern.call)
|
|
1911
1970
|
|| !isConstructorModern(Object)
|
|
@@ -1914,90 +1973,90 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
1914
1973
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1915
1974
|
|
|
1916
1975
|
var isConstructor = isConstructor$1;
|
|
1917
|
-
var tryToString$
|
|
1976
|
+
var tryToString$3 = tryToString$5;
|
|
1918
1977
|
|
|
1919
|
-
var $TypeError$
|
|
1978
|
+
var $TypeError$6 = TypeError;
|
|
1920
1979
|
|
|
1921
1980
|
// `Assert: IsConstructor(argument) is true`
|
|
1922
1981
|
var aConstructor$1 = function (argument) {
|
|
1923
1982
|
if (isConstructor(argument)) return argument;
|
|
1924
|
-
throw $TypeError$
|
|
1983
|
+
throw $TypeError$6(tryToString$3(argument) + ' is not a constructor');
|
|
1925
1984
|
};
|
|
1926
1985
|
|
|
1927
|
-
var anObject$
|
|
1986
|
+
var anObject$6 = anObject$c;
|
|
1928
1987
|
var aConstructor = aConstructor$1;
|
|
1929
1988
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
1930
|
-
var wellKnownSymbol$
|
|
1989
|
+
var wellKnownSymbol$6 = wellKnownSymbol$g;
|
|
1931
1990
|
|
|
1932
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
1991
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
1933
1992
|
|
|
1934
1993
|
// `SpeciesConstructor` abstract operation
|
|
1935
1994
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1936
1995
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1937
|
-
var C = anObject$
|
|
1996
|
+
var C = anObject$6(O).constructor;
|
|
1938
1997
|
var S;
|
|
1939
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$
|
|
1998
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
1940
1999
|
};
|
|
1941
2000
|
|
|
1942
2001
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1943
2002
|
|
|
1944
2003
|
var FunctionPrototype = Function.prototype;
|
|
1945
2004
|
var apply$1 = FunctionPrototype.apply;
|
|
1946
|
-
var call$
|
|
2005
|
+
var call$8 = FunctionPrototype.call;
|
|
1947
2006
|
|
|
1948
2007
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1949
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1950
|
-
return call$
|
|
2008
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
|
|
2009
|
+
return call$8.apply(apply$1, arguments);
|
|
1951
2010
|
});
|
|
1952
2011
|
|
|
1953
2012
|
var classofRaw = classofRaw$2;
|
|
1954
|
-
var uncurryThis$
|
|
2013
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1955
2014
|
|
|
1956
2015
|
var functionUncurryThisClause = function (fn) {
|
|
1957
2016
|
// Nashorn bug:
|
|
1958
2017
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1959
2018
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1960
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
2019
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
1961
2020
|
};
|
|
1962
2021
|
|
|
1963
|
-
var uncurryThis$
|
|
1964
|
-
var aCallable$
|
|
2022
|
+
var uncurryThis$3 = functionUncurryThisClause;
|
|
2023
|
+
var aCallable$6 = aCallable$9;
|
|
1965
2024
|
var NATIVE_BIND = functionBindNative;
|
|
1966
2025
|
|
|
1967
|
-
var bind$4 = uncurryThis$
|
|
2026
|
+
var bind$4 = uncurryThis$3(uncurryThis$3.bind);
|
|
1968
2027
|
|
|
1969
2028
|
// optional / simple context binding
|
|
1970
2029
|
var functionBindContext = function (fn, that) {
|
|
1971
|
-
aCallable$
|
|
2030
|
+
aCallable$6(fn);
|
|
1972
2031
|
return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
|
|
1973
2032
|
return fn.apply(that, arguments);
|
|
1974
2033
|
};
|
|
1975
2034
|
};
|
|
1976
2035
|
|
|
1977
|
-
var uncurryThis = functionUncurryThis;
|
|
2036
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1978
2037
|
|
|
1979
|
-
var arraySlice$
|
|
2038
|
+
var arraySlice$2 = uncurryThis$2([].slice);
|
|
1980
2039
|
|
|
1981
|
-
var $TypeError$
|
|
2040
|
+
var $TypeError$5 = TypeError;
|
|
1982
2041
|
|
|
1983
2042
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
1984
|
-
if (passed < required) throw $TypeError$
|
|
2043
|
+
if (passed < required) throw $TypeError$5('Not enough arguments');
|
|
1985
2044
|
return passed;
|
|
1986
2045
|
};
|
|
1987
2046
|
|
|
1988
|
-
var userAgent$
|
|
2047
|
+
var userAgent$4 = engineUserAgent;
|
|
1989
2048
|
|
|
1990
2049
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1991
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$
|
|
2050
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
|
|
1992
2051
|
|
|
1993
2052
|
var global$5 = global$g;
|
|
1994
2053
|
var apply = functionApply;
|
|
1995
2054
|
var bind$3 = functionBindContext;
|
|
1996
2055
|
var isCallable$3 = isCallable$k;
|
|
1997
|
-
var hasOwn = hasOwnProperty_1;
|
|
1998
|
-
var fails = fails$
|
|
2056
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2057
|
+
var fails$4 = fails$h;
|
|
1999
2058
|
var html = html$2;
|
|
2000
|
-
var arraySlice = arraySlice$
|
|
2059
|
+
var arraySlice$1 = arraySlice$2;
|
|
2001
2060
|
var createElement = documentCreateElement$2;
|
|
2002
2061
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
2003
2062
|
var IS_IOS$1 = engineIsIos;
|
|
@@ -2015,13 +2074,13 @@ var queue$2 = {};
|
|
|
2015
2074
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2016
2075
|
var $location, defer, channel, port;
|
|
2017
2076
|
|
|
2018
|
-
fails(function () {
|
|
2077
|
+
fails$4(function () {
|
|
2019
2078
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2020
2079
|
$location = global$5.location;
|
|
2021
2080
|
});
|
|
2022
2081
|
|
|
2023
2082
|
var run = function (id) {
|
|
2024
|
-
if (hasOwn(queue$2, id)) {
|
|
2083
|
+
if (hasOwn$1(queue$2, id)) {
|
|
2025
2084
|
var fn = queue$2[id];
|
|
2026
2085
|
delete queue$2[id];
|
|
2027
2086
|
fn();
|
|
@@ -2048,7 +2107,7 @@ if (!set || !clear) {
|
|
|
2048
2107
|
set = function setImmediate(handler) {
|
|
2049
2108
|
validateArgumentsLength(arguments.length, 1);
|
|
2050
2109
|
var fn = isCallable$3(handler) ? handler : Function$1(handler);
|
|
2051
|
-
var args = arraySlice(arguments, 1);
|
|
2110
|
+
var args = arraySlice$1(arguments, 1);
|
|
2052
2111
|
queue$2[++counter] = function () {
|
|
2053
2112
|
apply(fn, undefined, args);
|
|
2054
2113
|
};
|
|
@@ -2082,7 +2141,7 @@ if (!set || !clear) {
|
|
|
2082
2141
|
isCallable$3(global$5.postMessage) &&
|
|
2083
2142
|
!global$5.importScripts &&
|
|
2084
2143
|
$location && $location.protocol !== 'file:' &&
|
|
2085
|
-
!fails(globalPostMessageDefer)
|
|
2144
|
+
!fails$4(globalPostMessageDefer)
|
|
2086
2145
|
) {
|
|
2087
2146
|
defer = globalPostMessageDefer;
|
|
2088
2147
|
global$5.addEventListener('message', eventListener, false);
|
|
@@ -2132,13 +2191,13 @@ Queue$2.prototype = {
|
|
|
2132
2191
|
|
|
2133
2192
|
var queue$1 = Queue$2;
|
|
2134
2193
|
|
|
2135
|
-
var userAgent$
|
|
2194
|
+
var userAgent$3 = engineUserAgent;
|
|
2136
2195
|
|
|
2137
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$
|
|
2196
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
|
|
2138
2197
|
|
|
2139
|
-
var userAgent = engineUserAgent;
|
|
2198
|
+
var userAgent$2 = engineUserAgent;
|
|
2140
2199
|
|
|
2141
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2200
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
|
|
2142
2201
|
|
|
2143
2202
|
var global$4 = global$g;
|
|
2144
2203
|
var bind$2 = functionBindContext;
|
|
@@ -2256,13 +2315,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
|
2256
2315
|
var isCallable$2 = isCallable$k;
|
|
2257
2316
|
var isForced = isForced_1;
|
|
2258
2317
|
var inspectSource = inspectSource$3;
|
|
2259
|
-
var wellKnownSymbol$
|
|
2318
|
+
var wellKnownSymbol$5 = wellKnownSymbol$g;
|
|
2260
2319
|
var IS_BROWSER = engineIsBrowser;
|
|
2261
2320
|
var IS_DENO = engineIsDeno;
|
|
2262
2321
|
var V8_VERSION = engineV8Version;
|
|
2263
2322
|
|
|
2264
2323
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2265
|
-
var SPECIES = wellKnownSymbol$
|
|
2324
|
+
var SPECIES = wellKnownSymbol$5('species');
|
|
2266
2325
|
var SUBCLASSING = false;
|
|
2267
2326
|
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
|
|
2268
2327
|
|
|
@@ -2298,19 +2357,19 @@ var promiseConstructorDetection = {
|
|
|
2298
2357
|
|
|
2299
2358
|
var newPromiseCapability$2 = {};
|
|
2300
2359
|
|
|
2301
|
-
var aCallable$
|
|
2360
|
+
var aCallable$5 = aCallable$9;
|
|
2302
2361
|
|
|
2303
|
-
var $TypeError$
|
|
2362
|
+
var $TypeError$4 = TypeError;
|
|
2304
2363
|
|
|
2305
2364
|
var PromiseCapability = function (C) {
|
|
2306
2365
|
var resolve, reject;
|
|
2307
2366
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2308
|
-
if (resolve !== undefined || reject !== undefined) throw $TypeError$
|
|
2367
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
|
|
2309
2368
|
resolve = $$resolve;
|
|
2310
2369
|
reject = $$reject;
|
|
2311
2370
|
});
|
|
2312
|
-
this.resolve = aCallable$
|
|
2313
|
-
this.reject = aCallable$
|
|
2371
|
+
this.resolve = aCallable$5(resolve);
|
|
2372
|
+
this.reject = aCallable$5(reject);
|
|
2314
2373
|
};
|
|
2315
2374
|
|
|
2316
2375
|
// `NewPromiseCapability` abstract operation
|
|
@@ -2319,17 +2378,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2319
2378
|
return new PromiseCapability(C);
|
|
2320
2379
|
};
|
|
2321
2380
|
|
|
2322
|
-
var $$
|
|
2381
|
+
var $$8 = _export;
|
|
2323
2382
|
var IS_NODE = engineIsNode;
|
|
2324
2383
|
var global$1 = global$g;
|
|
2325
|
-
var call$
|
|
2326
|
-
var defineBuiltIn$
|
|
2384
|
+
var call$7 = functionCall;
|
|
2385
|
+
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2327
2386
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2328
2387
|
var setToStringTag = setToStringTag$3;
|
|
2329
2388
|
var setSpecies = setSpecies$1;
|
|
2330
|
-
var aCallable$
|
|
2389
|
+
var aCallable$4 = aCallable$9;
|
|
2331
2390
|
var isCallable$1 = isCallable$k;
|
|
2332
|
-
var isObject$
|
|
2391
|
+
var isObject$2 = isObject$9;
|
|
2333
2392
|
var anInstance = anInstance$1;
|
|
2334
2393
|
var speciesConstructor = speciesConstructor$1;
|
|
2335
2394
|
var task = task$1.set;
|
|
@@ -2371,7 +2430,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
2371
2430
|
// helpers
|
|
2372
2431
|
var isThenable = function (it) {
|
|
2373
2432
|
var then;
|
|
2374
|
-
return isObject$
|
|
2433
|
+
return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
|
|
2375
2434
|
};
|
|
2376
2435
|
|
|
2377
2436
|
var callReaction = function (reaction, state) {
|
|
@@ -2400,7 +2459,7 @@ var callReaction = function (reaction, state) {
|
|
|
2400
2459
|
if (result === reaction.promise) {
|
|
2401
2460
|
reject(TypeError$1('Promise-chain cycle'));
|
|
2402
2461
|
} else if (then = isThenable(result)) {
|
|
2403
|
-
call$
|
|
2462
|
+
call$7(then, result, resolve, reject);
|
|
2404
2463
|
} else resolve(result);
|
|
2405
2464
|
} else reject(value);
|
|
2406
2465
|
} catch (error) {
|
|
@@ -2437,7 +2496,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2437
2496
|
};
|
|
2438
2497
|
|
|
2439
2498
|
var onUnhandled = function (state) {
|
|
2440
|
-
call$
|
|
2499
|
+
call$7(task, global$1, function () {
|
|
2441
2500
|
var promise = state.facade;
|
|
2442
2501
|
var value = state.value;
|
|
2443
2502
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2460,7 +2519,7 @@ var isUnhandled = function (state) {
|
|
|
2460
2519
|
};
|
|
2461
2520
|
|
|
2462
2521
|
var onHandleUnhandled = function (state) {
|
|
2463
|
-
call$
|
|
2522
|
+
call$7(task, global$1, function () {
|
|
2464
2523
|
var promise = state.facade;
|
|
2465
2524
|
if (IS_NODE) {
|
|
2466
2525
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -2494,7 +2553,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2494
2553
|
microtask(function () {
|
|
2495
2554
|
var wrapper = { done: false };
|
|
2496
2555
|
try {
|
|
2497
|
-
call$
|
|
2556
|
+
call$7(then, value,
|
|
2498
2557
|
bind$1(internalResolve, wrapper, state),
|
|
2499
2558
|
bind$1(internalReject, wrapper, state)
|
|
2500
2559
|
);
|
|
@@ -2517,8 +2576,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2517
2576
|
// 25.4.3.1 Promise(executor)
|
|
2518
2577
|
PromiseConstructor = function Promise(executor) {
|
|
2519
2578
|
anInstance(this, PromisePrototype);
|
|
2520
|
-
aCallable$
|
|
2521
|
-
call$
|
|
2579
|
+
aCallable$4(executor);
|
|
2580
|
+
call$7(Internal, this);
|
|
2522
2581
|
var state = getInternalPromiseState(this);
|
|
2523
2582
|
try {
|
|
2524
2583
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -2545,7 +2604,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2545
2604
|
|
|
2546
2605
|
// `Promise.prototype.then` method
|
|
2547
2606
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2548
|
-
Internal.prototype = defineBuiltIn$
|
|
2607
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2549
2608
|
var state = getInternalPromiseState(this);
|
|
2550
2609
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
2551
2610
|
state.parent = true;
|
|
@@ -2578,10 +2637,10 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2578
2637
|
|
|
2579
2638
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
2580
2639
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2581
|
-
defineBuiltIn$
|
|
2640
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
2582
2641
|
var that = this;
|
|
2583
2642
|
return new PromiseConstructor(function (resolve, reject) {
|
|
2584
|
-
call$
|
|
2643
|
+
call$7(nativeThen, that, resolve, reject);
|
|
2585
2644
|
}).then(onFulfilled, onRejected);
|
|
2586
2645
|
// https://github.com/zloirock/core-js/issues/640
|
|
2587
2646
|
}, { unsafe: true });
|
|
@@ -2599,17 +2658,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2599
2658
|
}
|
|
2600
2659
|
}
|
|
2601
2660
|
|
|
2602
|
-
$$
|
|
2661
|
+
$$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2603
2662
|
Promise: PromiseConstructor
|
|
2604
2663
|
});
|
|
2605
2664
|
|
|
2606
2665
|
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
2607
2666
|
setSpecies(PROMISE);
|
|
2608
2667
|
|
|
2609
|
-
var wellKnownSymbol$
|
|
2668
|
+
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
2610
2669
|
var Iterators$1 = iterators;
|
|
2611
2670
|
|
|
2612
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
2671
|
+
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
2613
2672
|
var ArrayPrototype = Array.prototype;
|
|
2614
2673
|
|
|
2615
2674
|
// check on default Array iterator
|
|
@@ -2617,70 +2676,70 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
2617
2676
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
2618
2677
|
};
|
|
2619
2678
|
|
|
2620
|
-
var classof = classof$
|
|
2679
|
+
var classof$2 = classof$4;
|
|
2621
2680
|
var getMethod$1 = getMethod$3;
|
|
2622
2681
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
2623
2682
|
var Iterators = iterators;
|
|
2624
|
-
var wellKnownSymbol$
|
|
2683
|
+
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
2625
2684
|
|
|
2626
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
2685
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
2627
2686
|
|
|
2628
2687
|
var getIteratorMethod$2 = function (it) {
|
|
2629
2688
|
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
2630
2689
|
|| getMethod$1(it, '@@iterator')
|
|
2631
|
-
|| Iterators[classof(it)];
|
|
2690
|
+
|| Iterators[classof$2(it)];
|
|
2632
2691
|
};
|
|
2633
2692
|
|
|
2634
|
-
var call$
|
|
2635
|
-
var aCallable$
|
|
2636
|
-
var anObject$
|
|
2637
|
-
var tryToString$
|
|
2693
|
+
var call$6 = functionCall;
|
|
2694
|
+
var aCallable$3 = aCallable$9;
|
|
2695
|
+
var anObject$5 = anObject$c;
|
|
2696
|
+
var tryToString$2 = tryToString$5;
|
|
2638
2697
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2639
2698
|
|
|
2640
|
-
var $TypeError$
|
|
2699
|
+
var $TypeError$3 = TypeError;
|
|
2641
2700
|
|
|
2642
2701
|
var getIterator$1 = function (argument, usingIterator) {
|
|
2643
2702
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2644
|
-
if (aCallable$
|
|
2645
|
-
throw $TypeError$
|
|
2703
|
+
if (aCallable$3(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
|
|
2704
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not iterable');
|
|
2646
2705
|
};
|
|
2647
2706
|
|
|
2648
|
-
var call$
|
|
2649
|
-
var anObject$
|
|
2707
|
+
var call$5 = functionCall;
|
|
2708
|
+
var anObject$4 = anObject$c;
|
|
2650
2709
|
var getMethod = getMethod$3;
|
|
2651
2710
|
|
|
2652
2711
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
2653
2712
|
var innerResult, innerError;
|
|
2654
|
-
anObject$
|
|
2713
|
+
anObject$4(iterator);
|
|
2655
2714
|
try {
|
|
2656
2715
|
innerResult = getMethod(iterator, 'return');
|
|
2657
2716
|
if (!innerResult) {
|
|
2658
2717
|
if (kind === 'throw') throw value;
|
|
2659
2718
|
return value;
|
|
2660
2719
|
}
|
|
2661
|
-
innerResult = call$
|
|
2720
|
+
innerResult = call$5(innerResult, iterator);
|
|
2662
2721
|
} catch (error) {
|
|
2663
2722
|
innerError = true;
|
|
2664
2723
|
innerResult = error;
|
|
2665
2724
|
}
|
|
2666
2725
|
if (kind === 'throw') throw value;
|
|
2667
2726
|
if (innerError) throw innerResult;
|
|
2668
|
-
anObject$
|
|
2727
|
+
anObject$4(innerResult);
|
|
2669
2728
|
return value;
|
|
2670
2729
|
};
|
|
2671
2730
|
|
|
2672
2731
|
var bind = functionBindContext;
|
|
2673
|
-
var call$
|
|
2674
|
-
var anObject$
|
|
2675
|
-
var tryToString = tryToString$
|
|
2732
|
+
var call$4 = functionCall;
|
|
2733
|
+
var anObject$3 = anObject$c;
|
|
2734
|
+
var tryToString$1 = tryToString$5;
|
|
2676
2735
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2677
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
2678
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
2736
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
2737
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2679
2738
|
var getIterator = getIterator$1;
|
|
2680
2739
|
var getIteratorMethod = getIteratorMethod$2;
|
|
2681
2740
|
var iteratorClose = iteratorClose$1;
|
|
2682
2741
|
|
|
2683
|
-
var $TypeError = TypeError;
|
|
2742
|
+
var $TypeError$2 = TypeError;
|
|
2684
2743
|
|
|
2685
2744
|
var Result = function (stopped, result) {
|
|
2686
2745
|
this.stopped = stopped;
|
|
@@ -2705,7 +2764,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2705
2764
|
|
|
2706
2765
|
var callFn = function (value) {
|
|
2707
2766
|
if (AS_ENTRIES) {
|
|
2708
|
-
anObject$
|
|
2767
|
+
anObject$3(value);
|
|
2709
2768
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2710
2769
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2711
2770
|
};
|
|
@@ -2716,31 +2775,31 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2716
2775
|
iterator = iterable;
|
|
2717
2776
|
} else {
|
|
2718
2777
|
iterFn = getIteratorMethod(iterable);
|
|
2719
|
-
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
2778
|
+
if (!iterFn) throw $TypeError$2(tryToString$1(iterable) + ' is not iterable');
|
|
2720
2779
|
// optimisation for array iterators
|
|
2721
2780
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2722
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2781
|
+
for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
|
|
2723
2782
|
result = callFn(iterable[index]);
|
|
2724
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2783
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2725
2784
|
} return new Result(false);
|
|
2726
2785
|
}
|
|
2727
2786
|
iterator = getIterator(iterable, iterFn);
|
|
2728
2787
|
}
|
|
2729
2788
|
|
|
2730
2789
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2731
|
-
while (!(step = call$
|
|
2790
|
+
while (!(step = call$4(next, iterator)).done) {
|
|
2732
2791
|
try {
|
|
2733
2792
|
result = callFn(step.value);
|
|
2734
2793
|
} catch (error) {
|
|
2735
2794
|
iteratorClose(iterator, 'throw', error);
|
|
2736
2795
|
}
|
|
2737
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2796
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2738
2797
|
} return new Result(false);
|
|
2739
2798
|
};
|
|
2740
2799
|
|
|
2741
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
2800
|
+
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
2742
2801
|
|
|
2743
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
2802
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
2744
2803
|
var SAFE_CLOSING = false;
|
|
2745
2804
|
|
|
2746
2805
|
try {
|
|
@@ -2785,9 +2844,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2785
2844
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2786
2845
|
});
|
|
2787
2846
|
|
|
2788
|
-
var $$
|
|
2789
|
-
var call$
|
|
2790
|
-
var aCallable$
|
|
2847
|
+
var $$7 = _export;
|
|
2848
|
+
var call$3 = functionCall;
|
|
2849
|
+
var aCallable$2 = aCallable$9;
|
|
2791
2850
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2792
2851
|
var perform$1 = perform$3;
|
|
2793
2852
|
var iterate$1 = iterate$2;
|
|
@@ -2795,14 +2854,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2795
2854
|
|
|
2796
2855
|
// `Promise.all` method
|
|
2797
2856
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2798
|
-
$$
|
|
2857
|
+
$$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2799
2858
|
all: function all(iterable) {
|
|
2800
2859
|
var C = this;
|
|
2801
2860
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2802
2861
|
var resolve = capability.resolve;
|
|
2803
2862
|
var reject = capability.reject;
|
|
2804
2863
|
var result = perform$1(function () {
|
|
2805
|
-
var $promiseResolve = aCallable$
|
|
2864
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
|
2806
2865
|
var values = [];
|
|
2807
2866
|
var counter = 0;
|
|
2808
2867
|
var remaining = 1;
|
|
@@ -2810,7 +2869,7 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2810
2869
|
var index = counter++;
|
|
2811
2870
|
var alreadyCalled = false;
|
|
2812
2871
|
remaining++;
|
|
2813
|
-
call$
|
|
2872
|
+
call$3($promiseResolve, C, promise).then(function (value) {
|
|
2814
2873
|
if (alreadyCalled) return;
|
|
2815
2874
|
alreadyCalled = true;
|
|
2816
2875
|
values[index] = value;
|
|
@@ -2824,18 +2883,18 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2824
2883
|
}
|
|
2825
2884
|
});
|
|
2826
2885
|
|
|
2827
|
-
var $$
|
|
2886
|
+
var $$6 = _export;
|
|
2828
2887
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2829
2888
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2830
2889
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
2831
2890
|
var isCallable = isCallable$k;
|
|
2832
|
-
var defineBuiltIn = defineBuiltIn$
|
|
2891
|
+
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2833
2892
|
|
|
2834
2893
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2835
2894
|
|
|
2836
2895
|
// `Promise.prototype.catch` method
|
|
2837
2896
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2838
|
-
$$
|
|
2897
|
+
$$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2839
2898
|
'catch': function (onRejected) {
|
|
2840
2899
|
return this.then(undefined, onRejected);
|
|
2841
2900
|
}
|
|
@@ -2845,13 +2904,13 @@ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real
|
|
|
2845
2904
|
if (isCallable(NativePromiseConstructor)) {
|
|
2846
2905
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2847
2906
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2848
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2907
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2849
2908
|
}
|
|
2850
2909
|
}
|
|
2851
2910
|
|
|
2852
|
-
var $$
|
|
2853
|
-
var call$
|
|
2854
|
-
var aCallable = aCallable$
|
|
2911
|
+
var $$5 = _export;
|
|
2912
|
+
var call$2 = functionCall;
|
|
2913
|
+
var aCallable$1 = aCallable$9;
|
|
2855
2914
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2856
2915
|
var perform = perform$3;
|
|
2857
2916
|
var iterate = iterate$2;
|
|
@@ -2859,15 +2918,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2859
2918
|
|
|
2860
2919
|
// `Promise.race` method
|
|
2861
2920
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2862
|
-
$$
|
|
2921
|
+
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2863
2922
|
race: function race(iterable) {
|
|
2864
2923
|
var C = this;
|
|
2865
2924
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2866
2925
|
var reject = capability.reject;
|
|
2867
2926
|
var result = perform(function () {
|
|
2868
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
2927
|
+
var $promiseResolve = aCallable$1(C.resolve);
|
|
2869
2928
|
iterate(iterable, function (promise) {
|
|
2870
|
-
call$
|
|
2929
|
+
call$2($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2871
2930
|
});
|
|
2872
2931
|
});
|
|
2873
2932
|
if (result.error) reject(result.value);
|
|
@@ -2875,35 +2934,35 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2875
2934
|
}
|
|
2876
2935
|
});
|
|
2877
2936
|
|
|
2878
|
-
var $$
|
|
2879
|
-
var call = functionCall;
|
|
2937
|
+
var $$4 = _export;
|
|
2938
|
+
var call$1 = functionCall;
|
|
2880
2939
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2881
2940
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2882
2941
|
|
|
2883
2942
|
// `Promise.reject` method
|
|
2884
2943
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2885
|
-
$$
|
|
2944
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2886
2945
|
reject: function reject(r) {
|
|
2887
2946
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2888
|
-
call(capability.reject, undefined, r);
|
|
2947
|
+
call$1(capability.reject, undefined, r);
|
|
2889
2948
|
return capability.promise;
|
|
2890
2949
|
}
|
|
2891
2950
|
});
|
|
2892
2951
|
|
|
2893
|
-
var anObject = anObject$
|
|
2894
|
-
var isObject = isObject$
|
|
2952
|
+
var anObject$2 = anObject$c;
|
|
2953
|
+
var isObject$1 = isObject$9;
|
|
2895
2954
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2896
2955
|
|
|
2897
2956
|
var promiseResolve$1 = function (C, x) {
|
|
2898
|
-
anObject(C);
|
|
2899
|
-
if (isObject(x) && x.constructor === C) return x;
|
|
2957
|
+
anObject$2(C);
|
|
2958
|
+
if (isObject$1(x) && x.constructor === C) return x;
|
|
2900
2959
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2901
2960
|
var resolve = promiseCapability.resolve;
|
|
2902
2961
|
resolve(x);
|
|
2903
2962
|
return promiseCapability.promise;
|
|
2904
2963
|
};
|
|
2905
2964
|
|
|
2906
|
-
var
|
|
2965
|
+
var $$3 = _export;
|
|
2907
2966
|
var getBuiltIn = getBuiltIn$7;
|
|
2908
2967
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2909
2968
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2912,37 +2971,17 @@ getBuiltIn('Promise');
|
|
|
2912
2971
|
|
|
2913
2972
|
// `Promise.resolve` method
|
|
2914
2973
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2915
|
-
|
|
2974
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2916
2975
|
resolve: function resolve(x) {
|
|
2917
2976
|
return promiseResolve(this, x);
|
|
2918
2977
|
}
|
|
2919
2978
|
});
|
|
2920
2979
|
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2928
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2929
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2930
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2931
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2932
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2933
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
2934
|
-
***************************************************************************** */
|
|
2935
|
-
|
|
2936
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2937
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2938
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2939
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2940
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2941
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2942
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2943
|
-
});
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2980
|
+
var Environment;
|
|
2981
|
+
(function (Environment) {
|
|
2982
|
+
Environment["DEVELOPMENT"] = "Development";
|
|
2983
|
+
Environment["PRODUCTION"] = "Production";
|
|
2984
|
+
})(Environment || (Environment = {}));
|
|
2946
2985
|
const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
2947
2986
|
const [orchestratorConfig] = useState(initialOrchestratorConfig);
|
|
2948
2987
|
return {
|
|
@@ -2952,7 +2991,9 @@ const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
|
2952
2991
|
|
|
2953
2992
|
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
2954
2993
|
engineStatusEndpoint: '',
|
|
2955
|
-
processStatusCountsEndpoint: ''
|
|
2994
|
+
processStatusCountsEndpoint: '',
|
|
2995
|
+
environmentName: '',
|
|
2996
|
+
graphqlEndpoint: ''
|
|
2956
2997
|
});
|
|
2957
2998
|
const OrchestratorConfigProvider = ({
|
|
2958
2999
|
initialOrchestratorConfig,
|
|
@@ -3027,13 +3068,6 @@ const OrchestratorPageHeader = ({
|
|
|
3027
3068
|
theme,
|
|
3028
3069
|
multiplyByBaseUnit
|
|
3029
3070
|
} = useOrchestratorTheme();
|
|
3030
|
-
const {
|
|
3031
|
-
data: engineStatus
|
|
3032
|
-
} = useEngineStatusQuery();
|
|
3033
|
-
const {
|
|
3034
|
-
data: processStatusCounts
|
|
3035
|
-
} = useProcessStatusCountsQuery();
|
|
3036
|
-
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
3037
3071
|
return jsxs(EuiHeader, Object.assign({
|
|
3038
3072
|
css: {
|
|
3039
3073
|
backgroundColor: theme.colors.primary,
|
|
@@ -3046,11 +3080,7 @@ const OrchestratorPageHeader = ({
|
|
|
3046
3080
|
iconType: () => getAppLogo(navigationHeight)
|
|
3047
3081
|
})
|
|
3048
3082
|
}), jsx(EuiHeaderSectionItem, {
|
|
3049
|
-
children: jsx(
|
|
3050
|
-
color: "warning"
|
|
3051
|
-
}, {
|
|
3052
|
-
children: "Development"
|
|
3053
|
-
}))
|
|
3083
|
+
children: jsx(EnvironmentBadge, {})
|
|
3054
3084
|
})]
|
|
3055
3085
|
}), jsx(EuiHeaderSection, {
|
|
3056
3086
|
children: jsxs(EuiHeaderSectionItem, {
|
|
@@ -3059,14 +3089,7 @@ const OrchestratorPageHeader = ({
|
|
|
3059
3089
|
marginRight: multiplyByBaseUnit(2)
|
|
3060
3090
|
}
|
|
3061
3091
|
}, {
|
|
3062
|
-
children: [
|
|
3063
|
-
color: "emptyShade",
|
|
3064
|
-
iconType: () => jsx(StatusDotIcon, {
|
|
3065
|
-
color: theme.colors.success
|
|
3066
|
-
})
|
|
3067
|
-
}, {
|
|
3068
|
-
children: ["Engine is ", engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status]
|
|
3069
|
-
})), jsx(FailedTasksBadge, Object.assign({}, taskCountsSummary))]
|
|
3092
|
+
children: [jsx(EngineStatusBadge, {}), jsx(FailedTasksBadge, {})]
|
|
3070
3093
|
})), jsx(EuiButtonIcon, {
|
|
3071
3094
|
"aria-label": "Logout",
|
|
3072
3095
|
display: "empty",
|
|
@@ -3084,10 +3107,55 @@ const OrchestratorPageHeader = ({
|
|
|
3084
3107
|
})]
|
|
3085
3108
|
}));
|
|
3086
3109
|
};
|
|
3087
|
-
const
|
|
3110
|
+
const EnvironmentBadge = () => {
|
|
3111
|
+
const {
|
|
3112
|
+
environmentName
|
|
3113
|
+
} = useContext(OrchestratorConfigContext);
|
|
3114
|
+
const {
|
|
3115
|
+
theme,
|
|
3116
|
+
toSecondaryColor
|
|
3117
|
+
} = useOrchestratorTheme();
|
|
3118
|
+
if (environmentName !== Environment.PRODUCTION) {
|
|
3119
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3120
|
+
color: "warning",
|
|
3121
|
+
textColor: theme.colors.shadow
|
|
3122
|
+
}, {
|
|
3123
|
+
children: environmentName
|
|
3124
|
+
}));
|
|
3125
|
+
}
|
|
3126
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3127
|
+
color: toSecondaryColor(theme.colors.primary),
|
|
3128
|
+
textColor: theme.colors.primary
|
|
3129
|
+
}, {
|
|
3130
|
+
children: environmentName
|
|
3131
|
+
}));
|
|
3132
|
+
};
|
|
3133
|
+
const EngineStatusBadge = () => {
|
|
3134
|
+
const {
|
|
3135
|
+
theme
|
|
3136
|
+
} = useOrchestratorTheme();
|
|
3137
|
+
const {
|
|
3138
|
+
data: engineStatus
|
|
3139
|
+
} = useEngineStatusQuery();
|
|
3140
|
+
const engineStatusText = (engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : 'Engine status is unavailable';
|
|
3141
|
+
return jsx(HeaderBadge, Object.assign({
|
|
3142
|
+
color: theme.colors.emptyShade,
|
|
3143
|
+
textColor: theme.colors.shadow,
|
|
3144
|
+
iconType: () => jsx(StatusDotIcon, {
|
|
3145
|
+
color: theme.colors.success
|
|
3146
|
+
})
|
|
3147
|
+
}, {
|
|
3148
|
+
children: engineStatusText
|
|
3149
|
+
}));
|
|
3150
|
+
};
|
|
3151
|
+
const FailedTasksBadge = () => {
|
|
3088
3152
|
const {
|
|
3089
3153
|
theme
|
|
3090
3154
|
} = useOrchestratorTheme();
|
|
3155
|
+
const {
|
|
3156
|
+
data: processStatusCounts
|
|
3157
|
+
} = useProcessStatusCountsQuery();
|
|
3158
|
+
const taskCountsSummary = getTaskCountsSummary(processStatusCounts);
|
|
3091
3159
|
return jsx(EuiToolTip, Object.assign({
|
|
3092
3160
|
position: "bottom",
|
|
3093
3161
|
content: jsxs(Fragment, {
|
|
@@ -3101,7 +3169,8 @@ const FailedTasksBadge = taskCountsSummary => {
|
|
|
3101
3169
|
})
|
|
3102
3170
|
}, {
|
|
3103
3171
|
children: jsx(HeaderBadge, Object.assign({
|
|
3104
|
-
color:
|
|
3172
|
+
color: theme.colors.emptyShade,
|
|
3173
|
+
textColor: theme.colors.shadow,
|
|
3105
3174
|
iconType: () => jsx(XCircleFill, {
|
|
3106
3175
|
color: theme.colors.danger
|
|
3107
3176
|
})
|
|
@@ -3160,7 +3229,8 @@ const OrchestratorPageTemplate = ({
|
|
|
3160
3229
|
panelled: false,
|
|
3161
3230
|
grow: false,
|
|
3162
3231
|
contentBorder: false,
|
|
3163
|
-
minHeight: `calc(100vh - ${navigationHeight}px)
|
|
3232
|
+
minHeight: `calc(100vh - ${navigationHeight}px)`,
|
|
3233
|
+
restrictWidth: false
|
|
3164
3234
|
}, {
|
|
3165
3235
|
children: [isSideMenuVisible && jsx(EuiPageTemplate.Sidebar, Object.assign({
|
|
3166
3236
|
css: {
|
|
@@ -3181,6 +3251,566 @@ const OrchestratorPageTemplate = ({
|
|
|
3181
3251
|
});
|
|
3182
3252
|
};
|
|
3183
3253
|
|
|
3254
|
+
var classof$1 = classof$4;
|
|
3255
|
+
|
|
3256
|
+
var $String = String;
|
|
3257
|
+
|
|
3258
|
+
var toString$2 = function (argument) {
|
|
3259
|
+
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
3260
|
+
return $String(argument);
|
|
3261
|
+
};
|
|
3262
|
+
|
|
3263
|
+
var anObject$1 = anObject$c;
|
|
3264
|
+
|
|
3265
|
+
// `RegExp.prototype.flags` getter implementation
|
|
3266
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3267
|
+
var regexpFlags = function () {
|
|
3268
|
+
var that = anObject$1(this);
|
|
3269
|
+
var result = '';
|
|
3270
|
+
if (that.hasIndices) result += 'd';
|
|
3271
|
+
if (that.global) result += 'g';
|
|
3272
|
+
if (that.ignoreCase) result += 'i';
|
|
3273
|
+
if (that.multiline) result += 'm';
|
|
3274
|
+
if (that.dotAll) result += 's';
|
|
3275
|
+
if (that.unicode) result += 'u';
|
|
3276
|
+
if (that.unicodeSets) result += 'v';
|
|
3277
|
+
if (that.sticky) result += 'y';
|
|
3278
|
+
return result;
|
|
3279
|
+
};
|
|
3280
|
+
|
|
3281
|
+
var call = functionCall;
|
|
3282
|
+
var hasOwn = hasOwnProperty_1;
|
|
3283
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3284
|
+
var regExpFlags = regexpFlags;
|
|
3285
|
+
|
|
3286
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
3287
|
+
|
|
3288
|
+
var regexpGetFlags = function (R) {
|
|
3289
|
+
var flags = R.flags;
|
|
3290
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3291
|
+
? call(regExpFlags, R) : flags;
|
|
3292
|
+
};
|
|
3293
|
+
|
|
3294
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3295
|
+
var defineBuiltIn = defineBuiltIn$6;
|
|
3296
|
+
var anObject = anObject$c;
|
|
3297
|
+
var $toString = toString$2;
|
|
3298
|
+
var fails$3 = fails$h;
|
|
3299
|
+
var getRegExpFlags = regexpGetFlags;
|
|
3300
|
+
|
|
3301
|
+
var TO_STRING = 'toString';
|
|
3302
|
+
var RegExpPrototype = RegExp.prototype;
|
|
3303
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3304
|
+
|
|
3305
|
+
var NOT_GENERIC = fails$3(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3306
|
+
// FF44- RegExp#toString has a wrong name
|
|
3307
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
|
|
3308
|
+
|
|
3309
|
+
// `RegExp.prototype.toString` method
|
|
3310
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3311
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3312
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
3313
|
+
var R = anObject(this);
|
|
3314
|
+
var pattern = $toString(R.source);
|
|
3315
|
+
var flags = $toString(getRegExpFlags(R));
|
|
3316
|
+
return '/' + pattern + '/' + flags;
|
|
3317
|
+
}, { unsafe: true });
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
var tryToString = tryToString$5;
|
|
3321
|
+
|
|
3322
|
+
var $TypeError$1 = TypeError;
|
|
3323
|
+
|
|
3324
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
3325
|
+
if (!delete O[P]) throw $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
3326
|
+
};
|
|
3327
|
+
|
|
3328
|
+
var toPropertyKey = toPropertyKey$3;
|
|
3329
|
+
var definePropertyModule = objectDefineProperty;
|
|
3330
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3331
|
+
|
|
3332
|
+
var createProperty$1 = function (object, key, value) {
|
|
3333
|
+
var propertyKey = toPropertyKey(key);
|
|
3334
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
3335
|
+
else object[propertyKey] = value;
|
|
3336
|
+
};
|
|
3337
|
+
|
|
3338
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
3339
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
3340
|
+
var createProperty = createProperty$1;
|
|
3341
|
+
|
|
3342
|
+
var $Array = Array;
|
|
3343
|
+
var max = Math.max;
|
|
3344
|
+
|
|
3345
|
+
var arraySliceSimple = function (O, start, end) {
|
|
3346
|
+
var length = lengthOfArrayLike$1(O);
|
|
3347
|
+
var k = toAbsoluteIndex(start, length);
|
|
3348
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
3349
|
+
var result = $Array(max(fin - k, 0));
|
|
3350
|
+
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
3351
|
+
result.length = n;
|
|
3352
|
+
return result;
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
var arraySlice = arraySliceSimple;
|
|
3356
|
+
|
|
3357
|
+
var floor = Math.floor;
|
|
3358
|
+
|
|
3359
|
+
var mergeSort = function (array, comparefn) {
|
|
3360
|
+
var length = array.length;
|
|
3361
|
+
var middle = floor(length / 2);
|
|
3362
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
3363
|
+
array,
|
|
3364
|
+
mergeSort(arraySlice(array, 0, middle), comparefn),
|
|
3365
|
+
mergeSort(arraySlice(array, middle), comparefn),
|
|
3366
|
+
comparefn
|
|
3367
|
+
);
|
|
3368
|
+
};
|
|
3369
|
+
|
|
3370
|
+
var insertionSort = function (array, comparefn) {
|
|
3371
|
+
var length = array.length;
|
|
3372
|
+
var i = 1;
|
|
3373
|
+
var element, j;
|
|
3374
|
+
|
|
3375
|
+
while (i < length) {
|
|
3376
|
+
j = i;
|
|
3377
|
+
element = array[i];
|
|
3378
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
|
3379
|
+
array[j] = array[--j];
|
|
3380
|
+
}
|
|
3381
|
+
if (j !== i++) array[j] = element;
|
|
3382
|
+
} return array;
|
|
3383
|
+
};
|
|
3384
|
+
|
|
3385
|
+
var merge = function (array, left, right, comparefn) {
|
|
3386
|
+
var llength = left.length;
|
|
3387
|
+
var rlength = right.length;
|
|
3388
|
+
var lindex = 0;
|
|
3389
|
+
var rindex = 0;
|
|
3390
|
+
|
|
3391
|
+
while (lindex < llength || rindex < rlength) {
|
|
3392
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
3393
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
3394
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
3395
|
+
} return array;
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
var arraySort = mergeSort;
|
|
3399
|
+
|
|
3400
|
+
var fails$2 = fails$h;
|
|
3401
|
+
|
|
3402
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
3403
|
+
var method = [][METHOD_NAME];
|
|
3404
|
+
return !!method && fails$2(function () {
|
|
3405
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
3406
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
3407
|
+
});
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3410
|
+
var userAgent$1 = engineUserAgent;
|
|
3411
|
+
|
|
3412
|
+
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
|
3413
|
+
|
|
3414
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
3415
|
+
|
|
3416
|
+
var UA = engineUserAgent;
|
|
3417
|
+
|
|
3418
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
3419
|
+
|
|
3420
|
+
var userAgent = engineUserAgent;
|
|
3421
|
+
|
|
3422
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
3423
|
+
|
|
3424
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
3425
|
+
|
|
3426
|
+
var $$2 = _export;
|
|
3427
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
3428
|
+
var aCallable = aCallable$9;
|
|
3429
|
+
var toObject = toObject$4;
|
|
3430
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
3431
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
3432
|
+
var toString$1 = toString$2;
|
|
3433
|
+
var fails$1 = fails$h;
|
|
3434
|
+
var internalSort = arraySort;
|
|
3435
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
3436
|
+
var FF = engineFfVersion;
|
|
3437
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
3438
|
+
var V8 = engineV8Version;
|
|
3439
|
+
var WEBKIT = engineWebkitVersion;
|
|
3440
|
+
|
|
3441
|
+
var test = [];
|
|
3442
|
+
var nativeSort = uncurryThis$1(test.sort);
|
|
3443
|
+
var push = uncurryThis$1(test.push);
|
|
3444
|
+
|
|
3445
|
+
// IE8-
|
|
3446
|
+
var FAILS_ON_UNDEFINED = fails$1(function () {
|
|
3447
|
+
test.sort(undefined);
|
|
3448
|
+
});
|
|
3449
|
+
// V8 bug
|
|
3450
|
+
var FAILS_ON_NULL = fails$1(function () {
|
|
3451
|
+
test.sort(null);
|
|
3452
|
+
});
|
|
3453
|
+
// Old WebKit
|
|
3454
|
+
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
3455
|
+
|
|
3456
|
+
var STABLE_SORT = !fails$1(function () {
|
|
3457
|
+
// feature detection can be too slow, so check engines versions
|
|
3458
|
+
if (V8) return V8 < 70;
|
|
3459
|
+
if (FF && FF > 3) return;
|
|
3460
|
+
if (IE_OR_EDGE) return true;
|
|
3461
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
3462
|
+
|
|
3463
|
+
var result = '';
|
|
3464
|
+
var code, chr, value, index;
|
|
3465
|
+
|
|
3466
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
3467
|
+
for (code = 65; code < 76; code++) {
|
|
3468
|
+
chr = String.fromCharCode(code);
|
|
3469
|
+
|
|
3470
|
+
switch (code) {
|
|
3471
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
|
3472
|
+
case 68: case 71: value = 4; break;
|
|
3473
|
+
default: value = 2;
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
for (index = 0; index < 47; index++) {
|
|
3477
|
+
test.push({ k: chr + index, v: value });
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
3482
|
+
|
|
3483
|
+
for (index = 0; index < test.length; index++) {
|
|
3484
|
+
chr = test[index].k.charAt(0);
|
|
3485
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
return result !== 'DGBEFHACIJK';
|
|
3489
|
+
});
|
|
3490
|
+
|
|
3491
|
+
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
3492
|
+
|
|
3493
|
+
var getSortCompare = function (comparefn) {
|
|
3494
|
+
return function (x, y) {
|
|
3495
|
+
if (y === undefined) return -1;
|
|
3496
|
+
if (x === undefined) return 1;
|
|
3497
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
3498
|
+
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
3499
|
+
};
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
// `Array.prototype.sort` method
|
|
3503
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
3504
|
+
$$2({ target: 'Array', proto: true, forced: FORCED }, {
|
|
3505
|
+
sort: function sort(comparefn) {
|
|
3506
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
|
3507
|
+
|
|
3508
|
+
var array = toObject(this);
|
|
3509
|
+
|
|
3510
|
+
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
3511
|
+
|
|
3512
|
+
var items = [];
|
|
3513
|
+
var arrayLength = lengthOfArrayLike(array);
|
|
3514
|
+
var itemsLength, index;
|
|
3515
|
+
|
|
3516
|
+
for (index = 0; index < arrayLength; index++) {
|
|
3517
|
+
if (index in array) push(items, array[index]);
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
internalSort(items, getSortCompare(comparefn));
|
|
3521
|
+
|
|
3522
|
+
itemsLength = lengthOfArrayLike(items);
|
|
3523
|
+
index = 0;
|
|
3524
|
+
|
|
3525
|
+
while (index < itemsLength) array[index] = items[index++];
|
|
3526
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
3527
|
+
|
|
3528
|
+
return array;
|
|
3529
|
+
}
|
|
3530
|
+
});
|
|
3531
|
+
|
|
3532
|
+
var SortDirection;
|
|
3533
|
+
(function (SortDirection) {
|
|
3534
|
+
SortDirection["Asc"] = "ASC";
|
|
3535
|
+
SortDirection["Desc"] = "DESC";
|
|
3536
|
+
})(SortDirection || (SortDirection = {}));
|
|
3537
|
+
function getInitialColumnOrder(columns, initialColumnOrder) {
|
|
3538
|
+
const euiDataGridColumns = Object.keys(columns).map(colKey => {
|
|
3539
|
+
const column = columns[colKey];
|
|
3540
|
+
return Object.assign({
|
|
3541
|
+
id: colKey,
|
|
3542
|
+
isExpandable: false
|
|
3543
|
+
}, column);
|
|
3544
|
+
});
|
|
3545
|
+
const columnOrderIds = initialColumnOrder.map(columnId => columnId.toString());
|
|
3546
|
+
return euiDataGridColumns.slice().sort((left, right) => columnOrderIds.indexOf(left.id) - columnOrderIds.indexOf(right.id));
|
|
3547
|
+
}
|
|
3548
|
+
function columnSortToEuiDataGridSorting(columnSort, updateColumnSort) {
|
|
3549
|
+
return {
|
|
3550
|
+
columns: columnSort ? [{
|
|
3551
|
+
id: columnSort.columnId.toString(),
|
|
3552
|
+
direction: columnSort.sortDirection === SortDirection.Asc ? 'asc' : 'desc'
|
|
3553
|
+
}] : [],
|
|
3554
|
+
onSort: columns => {
|
|
3555
|
+
const lastSortData = columns.slice(-1)[0];
|
|
3556
|
+
if (updateColumnSort && lastSortData) {
|
|
3557
|
+
updateColumnSort({
|
|
3558
|
+
columnId: lastSortData.id,
|
|
3559
|
+
sortDirection: lastSortData.direction === 'asc' ? SortDirection.Asc : SortDirection.Desc
|
|
3560
|
+
});
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
};
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
// Total height of grid button bar, table header and pagination bar
|
|
3567
|
+
const EUI_DATA_GRID_HEIGHT_OFFSET = 103;
|
|
3568
|
+
const GRID_STYLE = {
|
|
3569
|
+
border: 'horizontal',
|
|
3570
|
+
stripes: false,
|
|
3571
|
+
rowHover: 'highlight',
|
|
3572
|
+
header: 'shade',
|
|
3573
|
+
cellPadding: 'l',
|
|
3574
|
+
fontSize: 'm',
|
|
3575
|
+
footer: 'overline'
|
|
3576
|
+
};
|
|
3577
|
+
const Table = ({
|
|
3578
|
+
data,
|
|
3579
|
+
pagination,
|
|
3580
|
+
columns,
|
|
3581
|
+
leadingControlColumns,
|
|
3582
|
+
trailingControlColumns,
|
|
3583
|
+
initialColumnOrder,
|
|
3584
|
+
dataSorting,
|
|
3585
|
+
handleRowClick,
|
|
3586
|
+
updateDataSorting
|
|
3587
|
+
}) => {
|
|
3588
|
+
const initialColumnOrderRef = useRef(getInitialColumnOrder(columns, initialColumnOrder));
|
|
3589
|
+
const defaultVisibleColumns = initialColumnOrder.filter(columnId => !columns[columnId].isHiddenByDefault).map(columnId => columnId.toString());
|
|
3590
|
+
const [visibleColumns, setVisibleColumns] = useState(defaultVisibleColumns);
|
|
3591
|
+
const renderCellValue = ({
|
|
3592
|
+
rowIndex,
|
|
3593
|
+
columnId,
|
|
3594
|
+
setCellProps
|
|
3595
|
+
}) => {
|
|
3596
|
+
const {
|
|
3597
|
+
pageSize,
|
|
3598
|
+
pageIndex
|
|
3599
|
+
} = pagination;
|
|
3600
|
+
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
3601
|
+
const dataRow = data[rowIndexOnPage];
|
|
3602
|
+
if (!dataRow) {
|
|
3603
|
+
return;
|
|
3604
|
+
}
|
|
3605
|
+
const column = columns[columnId];
|
|
3606
|
+
const cellValue = dataRow[columnId];
|
|
3607
|
+
handleRowClick && setCellProps({
|
|
3608
|
+
css: {
|
|
3609
|
+
cursor: 'pointer'
|
|
3610
|
+
},
|
|
3611
|
+
onClick: () => handleRowClick(dataRow)
|
|
3612
|
+
});
|
|
3613
|
+
return column.renderCell ? column.renderCell(cellValue, dataRow) : `${cellValue}`;
|
|
3614
|
+
};
|
|
3615
|
+
const controlColumnToEuiDataGridControlColumnMapper = ({
|
|
3616
|
+
id,
|
|
3617
|
+
width,
|
|
3618
|
+
rowCellRender
|
|
3619
|
+
}) => ({
|
|
3620
|
+
id,
|
|
3621
|
+
width,
|
|
3622
|
+
headerCellRender: props => null,
|
|
3623
|
+
rowCellRender: ({
|
|
3624
|
+
rowIndex
|
|
3625
|
+
}) => {
|
|
3626
|
+
const {
|
|
3627
|
+
pageSize,
|
|
3628
|
+
pageIndex
|
|
3629
|
+
} = pagination;
|
|
3630
|
+
const rowIndexOnPage = rowIndex - pageIndex * pageSize;
|
|
3631
|
+
const dataRow = data[rowIndexOnPage];
|
|
3632
|
+
return rowCellRender(dataRow);
|
|
3633
|
+
}
|
|
3634
|
+
});
|
|
3635
|
+
const euiDataGridLeadingControlColumns = leadingControlColumns === null || leadingControlColumns === void 0 ? void 0 : leadingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
3636
|
+
const euiDataGridTrailingControlColumns = trailingControlColumns === null || trailingControlColumns === void 0 ? void 0 : trailingControlColumns.map(controlColumnToEuiDataGridControlColumnMapper);
|
|
3637
|
+
const gridHeightValue = pagination.pageSize * 40 + EUI_DATA_GRID_HEIGHT_OFFSET;
|
|
3638
|
+
return jsx(EuiDataGrid, {
|
|
3639
|
+
"aria-label": "Data Grid",
|
|
3640
|
+
columns: initialColumnOrderRef.current,
|
|
3641
|
+
leadingControlColumns: euiDataGridLeadingControlColumns,
|
|
3642
|
+
trailingControlColumns: euiDataGridTrailingControlColumns,
|
|
3643
|
+
height: `${gridHeightValue}px`,
|
|
3644
|
+
gridStyle: GRID_STYLE,
|
|
3645
|
+
columnVisibility: {
|
|
3646
|
+
visibleColumns,
|
|
3647
|
+
setVisibleColumns
|
|
3648
|
+
},
|
|
3649
|
+
pagination: pagination,
|
|
3650
|
+
sorting: columnSortToEuiDataGridSorting(dataSorting, updateDataSorting),
|
|
3651
|
+
rowCount: pagination.totalRecords,
|
|
3652
|
+
renderCellValue: renderCellValue
|
|
3653
|
+
});
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
const useQueryWithGraphql = (query, queryVars) => {
|
|
3657
|
+
const {
|
|
3658
|
+
graphqlEndpoint
|
|
3659
|
+
} = useContext(OrchestratorConfigContext);
|
|
3660
|
+
const graphQLClient = new GraphQLClient(graphqlEndpoint);
|
|
3661
|
+
const fetchFromGraphql = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3662
|
+
// TS-Ignore because queryVars does not seem to be accepted by the client
|
|
3663
|
+
// The props in this useQueryWithGraphql-hook ensures queryVars is indeed related to the query
|
|
3664
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3665
|
+
// @ts-ignore
|
|
3666
|
+
return yield graphQLClient.request(query, queryVars);
|
|
3667
|
+
});
|
|
3668
|
+
return useQuery(['subscriptions', ...Object.values(queryVars)], fetchFromGraphql);
|
|
3669
|
+
};
|
|
3670
|
+
|
|
3671
|
+
const SubscriptionStatusBadge = ({
|
|
3672
|
+
subscriptionStatus
|
|
3673
|
+
}) => {
|
|
3674
|
+
const {
|
|
3675
|
+
theme,
|
|
3676
|
+
toSecondaryColor
|
|
3677
|
+
} = useOrchestratorTheme();
|
|
3678
|
+
const getBadgeColorFromSubscriptionStatus = status => {
|
|
3679
|
+
const {
|
|
3680
|
+
primary,
|
|
3681
|
+
darkestShade,
|
|
3682
|
+
lightShade,
|
|
3683
|
+
primaryText,
|
|
3684
|
+
success,
|
|
3685
|
+
successText
|
|
3686
|
+
} = theme.colors;
|
|
3687
|
+
switch (status) {
|
|
3688
|
+
case 'active':
|
|
3689
|
+
return {
|
|
3690
|
+
badgeColor: toSecondaryColor(success),
|
|
3691
|
+
textColor: successText
|
|
3692
|
+
};
|
|
3693
|
+
case 'terminated':
|
|
3694
|
+
return {
|
|
3695
|
+
badgeColor: lightShade,
|
|
3696
|
+
textColor: darkestShade
|
|
3697
|
+
};
|
|
3698
|
+
default:
|
|
3699
|
+
return {
|
|
3700
|
+
badgeColor: toSecondaryColor(primary),
|
|
3701
|
+
textColor: primaryText
|
|
3702
|
+
};
|
|
3703
|
+
}
|
|
3704
|
+
};
|
|
3705
|
+
const {
|
|
3706
|
+
badgeColor,
|
|
3707
|
+
textColor
|
|
3708
|
+
} = getBadgeColorFromSubscriptionStatus(subscriptionStatus);
|
|
3709
|
+
return jsx(Badge, Object.assign({
|
|
3710
|
+
textColor: textColor,
|
|
3711
|
+
color: badgeColor
|
|
3712
|
+
}, {
|
|
3713
|
+
children: subscriptionStatus
|
|
3714
|
+
}));
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3717
|
+
const CheckmarkCircleFill = ({
|
|
3718
|
+
width: _width = 24,
|
|
3719
|
+
height: _height = 24,
|
|
3720
|
+
color: _color = '#000000'
|
|
3721
|
+
}) => jsxs("svg", Object.assign({
|
|
3722
|
+
width: _width,
|
|
3723
|
+
height: _height,
|
|
3724
|
+
viewBox: "0 0 24 24",
|
|
3725
|
+
version: "1.1",
|
|
3726
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3727
|
+
}, {
|
|
3728
|
+
children: [jsx("title", {
|
|
3729
|
+
children: "icon/checkmark-circle-fill"
|
|
3730
|
+
}), jsx("g", Object.assign({
|
|
3731
|
+
id: "Symbols",
|
|
3732
|
+
stroke: "none",
|
|
3733
|
+
strokeWidth: "1",
|
|
3734
|
+
fill: "none",
|
|
3735
|
+
fillRule: "evenodd"
|
|
3736
|
+
}, {
|
|
3737
|
+
children: jsx("g", Object.assign({
|
|
3738
|
+
id: "icon/checkmark-circle-fill",
|
|
3739
|
+
fill: _color
|
|
3740
|
+
}, {
|
|
3741
|
+
children: jsx("path", {
|
|
3742
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M15.7071,10.70711 C16.0976,10.31658 16.0976,9.68342 15.7071,9.29289 C15.3166,8.90237 14.6834,8.90237 14.2929,9.29289 L11,12.5858 L9.70711,11.29289 C9.31658,10.90237 8.68342,10.90237 8.29289,11.29289 C7.90237,11.68342 7.90237,12.3166 8.29289,12.7071 L10.29289,14.7071 C10.68342,15.0976 11.31658,15.0976 11.70711,14.7071 L15.7071,10.70711 Z",
|
|
3743
|
+
id: "Shape"
|
|
3744
|
+
})
|
|
3745
|
+
}))
|
|
3746
|
+
}))]
|
|
3747
|
+
}));
|
|
3748
|
+
|
|
3749
|
+
const MinusCircleOutline = ({
|
|
3750
|
+
width: _width = 24,
|
|
3751
|
+
height: _height = 24,
|
|
3752
|
+
color: _color = '#000000'
|
|
3753
|
+
}) => jsxs("svg", Object.assign({
|
|
3754
|
+
width: _width,
|
|
3755
|
+
height: _height,
|
|
3756
|
+
viewBox: "0 0 24 24",
|
|
3757
|
+
version: "1.1",
|
|
3758
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3759
|
+
}, {
|
|
3760
|
+
children: [jsx("title", {
|
|
3761
|
+
children: "icon/minus-circle-outline"
|
|
3762
|
+
}), jsx("g", Object.assign({
|
|
3763
|
+
id: "Symbols",
|
|
3764
|
+
stroke: "none",
|
|
3765
|
+
strokeWidth: "1",
|
|
3766
|
+
fill: "none",
|
|
3767
|
+
fillRule: "evenodd"
|
|
3768
|
+
}, {
|
|
3769
|
+
children: jsx("g", Object.assign({
|
|
3770
|
+
id: "icon/minus-circle-outline",
|
|
3771
|
+
fill: _color,
|
|
3772
|
+
fillRule: "nonzero"
|
|
3773
|
+
}, {
|
|
3774
|
+
children: jsx("path", {
|
|
3775
|
+
d: "M12,4 C16.4183,4 20,7.58172 20,12 C20,16.4183 16.4183,20 12,20 C7.58172,20 4,16.4183 4,12 C4,7.58172 7.58172,4 12,4 Z M12,6 C8.6862895,6 6,8.6862895 6,12 C6,15.3137228 8.68628182,18 12,18 C15.3137305,18 18,15.3137305 18,12 C18,8.68628182 15.3137228,6 12,6 Z M15,11 C15.5523,11 16,11.44772 16,12 C16,12.5523 15.5523,13 15,13 L9,13 C8.44772,13 8,12.5523 8,12 C8,11.44772 8.44772,11 9,11 Z",
|
|
3776
|
+
id: "Combined-Shape"
|
|
3777
|
+
})
|
|
3778
|
+
}))
|
|
3779
|
+
}))]
|
|
3780
|
+
}));
|
|
3781
|
+
|
|
3782
|
+
const PlusCircleFill = ({
|
|
3783
|
+
width: _width = 24,
|
|
3784
|
+
height: _height = 24,
|
|
3785
|
+
color: _color = '#000000'
|
|
3786
|
+
}) => jsxs("svg", Object.assign({
|
|
3787
|
+
width: _width,
|
|
3788
|
+
height: _height,
|
|
3789
|
+
viewBox: "0 0 24 24",
|
|
3790
|
+
version: "1.1",
|
|
3791
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3792
|
+
}, {
|
|
3793
|
+
children: [jsx("title", {
|
|
3794
|
+
children: "icon/plus-circle-fill"
|
|
3795
|
+
}), jsx("g", Object.assign({
|
|
3796
|
+
id: "Symbols",
|
|
3797
|
+
stroke: "none",
|
|
3798
|
+
strokeWidth: "1",
|
|
3799
|
+
fill: "none",
|
|
3800
|
+
fillRule: "evenodd"
|
|
3801
|
+
}, {
|
|
3802
|
+
children: jsx("g", Object.assign({
|
|
3803
|
+
id: "icon/plus-circle-fill",
|
|
3804
|
+
fill: _color
|
|
3805
|
+
}, {
|
|
3806
|
+
children: jsx("path", {
|
|
3807
|
+
d: "M12,20 C16.4183,20 20,16.4183 20,12 C20,7.58172 16.4183,4 12,4 C7.58172,4 4,7.58172 4,12 C4,16.4183 7.58172,20 12,20 Z M13,9 C13,8.44772 12.5523,8 12,8 C11.44772,8 11,8.44772 11,9 L11,11 L9,11 C8.44772,11 8,11.44771 8,12 C8,12.5523 8.44772,13 9,13 L11,13 L11,15 C11,15.5523 11.44772,16 12,16 C12.5523,16 13,15.5523 13,15 L13,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.44772 15.5523,11 15,11 L13,11 L13,9 Z",
|
|
3808
|
+
id: "Shape"
|
|
3809
|
+
})
|
|
3810
|
+
}))
|
|
3811
|
+
}))]
|
|
3812
|
+
}));
|
|
3813
|
+
|
|
3184
3814
|
const defaultOrchestratorTheme = {
|
|
3185
3815
|
colors: {
|
|
3186
3816
|
DARK: {},
|
|
@@ -3223,6 +3853,95 @@ const defaultOrchestratorTheme = {
|
|
|
3223
3853
|
}
|
|
3224
3854
|
};
|
|
3225
3855
|
|
|
3856
|
+
var $$1 = _export;
|
|
3857
|
+
var $includes = arrayIncludes.includes;
|
|
3858
|
+
var fails = fails$h;
|
|
3859
|
+
var addToUnscopables = addToUnscopables$2;
|
|
3860
|
+
|
|
3861
|
+
// FF99+ bug
|
|
3862
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
3863
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
3864
|
+
return !Array(1).includes();
|
|
3865
|
+
});
|
|
3866
|
+
|
|
3867
|
+
// `Array.prototype.includes` method
|
|
3868
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
3869
|
+
$$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
3870
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
3871
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
3872
|
+
}
|
|
3873
|
+
});
|
|
3874
|
+
|
|
3875
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3876
|
+
addToUnscopables('includes');
|
|
3877
|
+
|
|
3878
|
+
var isObject = isObject$9;
|
|
3879
|
+
var classof = classofRaw$2;
|
|
3880
|
+
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3881
|
+
|
|
3882
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
3883
|
+
|
|
3884
|
+
// `IsRegExp` abstract operation
|
|
3885
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
3886
|
+
var isRegexp = function (it) {
|
|
3887
|
+
var isRegExp;
|
|
3888
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
3889
|
+
};
|
|
3890
|
+
|
|
3891
|
+
var isRegExp = isRegexp;
|
|
3892
|
+
|
|
3893
|
+
var $TypeError = TypeError;
|
|
3894
|
+
|
|
3895
|
+
var notARegexp = function (it) {
|
|
3896
|
+
if (isRegExp(it)) {
|
|
3897
|
+
throw $TypeError("The method doesn't accept regular expressions");
|
|
3898
|
+
} return it;
|
|
3899
|
+
};
|
|
3900
|
+
|
|
3901
|
+
var wellKnownSymbol = wellKnownSymbol$g;
|
|
3902
|
+
|
|
3903
|
+
var MATCH = wellKnownSymbol('match');
|
|
3904
|
+
|
|
3905
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
3906
|
+
var regexp = /./;
|
|
3907
|
+
try {
|
|
3908
|
+
'/./'[METHOD_NAME](regexp);
|
|
3909
|
+
} catch (error1) {
|
|
3910
|
+
try {
|
|
3911
|
+
regexp[MATCH] = false;
|
|
3912
|
+
return '/./'[METHOD_NAME](regexp);
|
|
3913
|
+
} catch (error2) { /* empty */ }
|
|
3914
|
+
} return false;
|
|
3915
|
+
};
|
|
3916
|
+
|
|
3917
|
+
var $ = _export;
|
|
3918
|
+
var uncurryThis = functionUncurryThis;
|
|
3919
|
+
var notARegExp = notARegexp;
|
|
3920
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
3921
|
+
var toString = toString$2;
|
|
3922
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
3923
|
+
|
|
3924
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3925
|
+
|
|
3926
|
+
// `String.prototype.includes` method
|
|
3927
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
3928
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
3929
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
3930
|
+
return !!~stringIndexOf(
|
|
3931
|
+
toString(requireObjectCoercible(this)),
|
|
3932
|
+
toString(notARegExp(searchString)),
|
|
3933
|
+
arguments.length > 1 ? arguments[1] : undefined
|
|
3934
|
+
);
|
|
3935
|
+
}
|
|
3936
|
+
});
|
|
3937
|
+
|
|
3938
|
+
function getTypedFieldFromObject(field, object) {
|
|
3939
|
+
if (!Object.keys(object).includes(field)) {
|
|
3940
|
+
return undefined;
|
|
3941
|
+
}
|
|
3942
|
+
return field;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3226
3945
|
const getStatusBadgeColor = status => {
|
|
3227
3946
|
const statusColors = {
|
|
3228
3947
|
terminated: 'danger',
|
|
@@ -3238,4 +3957,4 @@ const getStatusBadgeColor = status => {
|
|
|
3238
3957
|
statusColors[status] : 'primary';
|
|
3239
3958
|
};
|
|
3240
3959
|
|
|
3241
|
-
export { CustomButton, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageTemplate, defaultOrchestratorTheme, getStatusBadgeColor, useOrchestratorConfig };
|
|
3960
|
+
export { Badge, CheckmarkCircleFill, CustomButton, Environment, LogoutIcon, MinusCircleOutline, OrchestratorConfigContext, OrchestratorConfigProvider, OrchestratorPageTemplate, PlusCircleFill, ProcessStatus, SortDirection, StatusDotIcon, SubscriptionStatusBadge, Table, XCircleFill, columnSortToEuiDataGridSorting, defaultOrchestratorTheme, getInitialColumnOrder, getStatusBadgeColor, getTypedFieldFromObject, useEngineStatusQuery, useOrchestratorConfig, useOrchestratorTheme, useProcessStatusCountsQuery, useQueryWithGraphql };
|