@orchestrator-ui/orchestrator-ui-components 0.0.1-alpha.4 → 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 +1057 -424
- 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 -8
- 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 +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, tint, EuiBadge, EuiHeader, EuiHeaderSection, EuiHeaderSectionItem, EuiHeaderLogo, EuiBadgeGroup, EuiButtonIcon,
|
|
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) {
|
|
@@ -1694,16 +1696,29 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1694
1696
|
});
|
|
1695
1697
|
}
|
|
1696
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
|
+
|
|
1697
1717
|
const HeaderBadge = _a => {
|
|
1698
1718
|
var {
|
|
1699
|
-
customColor,
|
|
1700
|
-
color,
|
|
1701
1719
|
children
|
|
1702
1720
|
} = _a,
|
|
1703
|
-
restProps = __rest(_a, ["
|
|
1704
|
-
const {
|
|
1705
|
-
theme
|
|
1706
|
-
} = useOrchestratorTheme();
|
|
1721
|
+
restProps = __rest(_a, ["children"]);
|
|
1707
1722
|
const css = restProps.iconType ? {
|
|
1708
1723
|
height: 24,
|
|
1709
1724
|
display: 'flex',
|
|
@@ -1712,8 +1727,7 @@ const HeaderBadge = _a => {
|
|
|
1712
1727
|
height: 24,
|
|
1713
1728
|
display: 'flex'
|
|
1714
1729
|
};
|
|
1715
|
-
return jsx(
|
|
1716
|
-
color: !customColor ? theme.colors[color] : color,
|
|
1730
|
+
return jsx(Badge, Object.assign({}, restProps, {
|
|
1717
1731
|
css: css
|
|
1718
1732
|
}, {
|
|
1719
1733
|
children: children
|
|
@@ -1826,9 +1840,9 @@ const LogoutIcon = ({
|
|
|
1826
1840
|
}))]
|
|
1827
1841
|
}));
|
|
1828
1842
|
|
|
1829
|
-
var classof$
|
|
1843
|
+
var classof$5 = classofRaw$2;
|
|
1830
1844
|
|
|
1831
|
-
var engineIsNode = typeof process != 'undefined' && classof$
|
|
1845
|
+
var engineIsNode = typeof process != 'undefined' && classof$5(process) == 'process';
|
|
1832
1846
|
|
|
1833
1847
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
1834
1848
|
var defineProperty = objectDefineProperty;
|
|
@@ -1841,10 +1855,10 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1841
1855
|
|
|
1842
1856
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
1843
1857
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1844
|
-
var wellKnownSymbol$
|
|
1858
|
+
var wellKnownSymbol$9 = wellKnownSymbol$g;
|
|
1845
1859
|
var DESCRIPTORS = descriptors;
|
|
1846
1860
|
|
|
1847
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
1861
|
+
var SPECIES$2 = wellKnownSymbol$9('species');
|
|
1848
1862
|
|
|
1849
1863
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1850
1864
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
@@ -1857,30 +1871,30 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1857
1871
|
}
|
|
1858
1872
|
};
|
|
1859
1873
|
|
|
1860
|
-
var isPrototypeOf$
|
|
1874
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1861
1875
|
|
|
1862
|
-
var $TypeError$
|
|
1876
|
+
var $TypeError$7 = TypeError;
|
|
1863
1877
|
|
|
1864
1878
|
var anInstance$1 = function (it, Prototype) {
|
|
1865
|
-
if (isPrototypeOf$
|
|
1866
|
-
throw $TypeError$
|
|
1879
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1880
|
+
throw $TypeError$7('Incorrect invocation');
|
|
1867
1881
|
};
|
|
1868
1882
|
|
|
1869
|
-
var wellKnownSymbol$
|
|
1883
|
+
var wellKnownSymbol$8 = wellKnownSymbol$g;
|
|
1870
1884
|
|
|
1871
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1872
|
-
var test = {};
|
|
1885
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1886
|
+
var test$1 = {};
|
|
1873
1887
|
|
|
1874
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
1888
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
|
1875
1889
|
|
|
1876
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1890
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1877
1891
|
|
|
1878
1892
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1879
1893
|
var isCallable$5 = isCallable$k;
|
|
1880
1894
|
var classofRaw$1 = classofRaw$2;
|
|
1881
|
-
var wellKnownSymbol$
|
|
1895
|
+
var wellKnownSymbol$7 = wellKnownSymbol$g;
|
|
1882
1896
|
|
|
1883
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1897
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1884
1898
|
var $Object = Object;
|
|
1885
1899
|
|
|
1886
1900
|
// ES3 wrong here
|
|
@@ -1894,7 +1908,7 @@ var tryGet = function (it, key) {
|
|
|
1894
1908
|
};
|
|
1895
1909
|
|
|
1896
1910
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1897
|
-
var classof$
|
|
1911
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1898
1912
|
var O, tag, result;
|
|
1899
1913
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1900
1914
|
// @@toStringTag case
|
|
@@ -1905,10 +1919,10 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1905
1919
|
: (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1906
1920
|
};
|
|
1907
1921
|
|
|
1908
|
-
var uncurryThis$
|
|
1909
|
-
var fails$
|
|
1922
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1923
|
+
var fails$5 = fails$h;
|
|
1910
1924
|
var isCallable$4 = isCallable$k;
|
|
1911
|
-
var classof$
|
|
1925
|
+
var classof$3 = classof$4;
|
|
1912
1926
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
1913
1927
|
var inspectSource$1 = inspectSource$3;
|
|
1914
1928
|
|
|
@@ -1916,7 +1930,7 @@ var noop = function () { /* empty */ };
|
|
|
1916
1930
|
var empty = [];
|
|
1917
1931
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
1918
1932
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1919
|
-
var exec = uncurryThis$
|
|
1933
|
+
var exec = uncurryThis$5(constructorRegExp.exec);
|
|
1920
1934
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1921
1935
|
|
|
1922
1936
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1931,7 +1945,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1931
1945
|
|
|
1932
1946
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1933
1947
|
if (!isCallable$4(argument)) return false;
|
|
1934
|
-
switch (classof$
|
|
1948
|
+
switch (classof$3(argument)) {
|
|
1935
1949
|
case 'AsyncFunction':
|
|
1936
1950
|
case 'GeneratorFunction':
|
|
1937
1951
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1950,7 +1964,7 @@ isConstructorLegacy.sham = true;
|
|
|
1950
1964
|
|
|
1951
1965
|
// `IsConstructor` abstract operation
|
|
1952
1966
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1953
|
-
var isConstructor$1 = !construct || fails$
|
|
1967
|
+
var isConstructor$1 = !construct || fails$5(function () {
|
|
1954
1968
|
var called;
|
|
1955
1969
|
return isConstructorModern(isConstructorModern.call)
|
|
1956
1970
|
|| !isConstructorModern(Object)
|
|
@@ -1959,90 +1973,90 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
1959
1973
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1960
1974
|
|
|
1961
1975
|
var isConstructor = isConstructor$1;
|
|
1962
|
-
var tryToString$
|
|
1976
|
+
var tryToString$3 = tryToString$5;
|
|
1963
1977
|
|
|
1964
|
-
var $TypeError$
|
|
1978
|
+
var $TypeError$6 = TypeError;
|
|
1965
1979
|
|
|
1966
1980
|
// `Assert: IsConstructor(argument) is true`
|
|
1967
1981
|
var aConstructor$1 = function (argument) {
|
|
1968
1982
|
if (isConstructor(argument)) return argument;
|
|
1969
|
-
throw $TypeError$
|
|
1983
|
+
throw $TypeError$6(tryToString$3(argument) + ' is not a constructor');
|
|
1970
1984
|
};
|
|
1971
1985
|
|
|
1972
|
-
var anObject$
|
|
1986
|
+
var anObject$6 = anObject$c;
|
|
1973
1987
|
var aConstructor = aConstructor$1;
|
|
1974
1988
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
1975
|
-
var wellKnownSymbol$
|
|
1989
|
+
var wellKnownSymbol$6 = wellKnownSymbol$g;
|
|
1976
1990
|
|
|
1977
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
1991
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
1978
1992
|
|
|
1979
1993
|
// `SpeciesConstructor` abstract operation
|
|
1980
1994
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1981
1995
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1982
|
-
var C = anObject$
|
|
1996
|
+
var C = anObject$6(O).constructor;
|
|
1983
1997
|
var S;
|
|
1984
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$
|
|
1998
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
1985
1999
|
};
|
|
1986
2000
|
|
|
1987
2001
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1988
2002
|
|
|
1989
2003
|
var FunctionPrototype = Function.prototype;
|
|
1990
2004
|
var apply$1 = FunctionPrototype.apply;
|
|
1991
|
-
var call$
|
|
2005
|
+
var call$8 = FunctionPrototype.call;
|
|
1992
2006
|
|
|
1993
2007
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1994
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
1995
|
-
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);
|
|
1996
2010
|
});
|
|
1997
2011
|
|
|
1998
2012
|
var classofRaw = classofRaw$2;
|
|
1999
|
-
var uncurryThis$
|
|
2013
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2000
2014
|
|
|
2001
2015
|
var functionUncurryThisClause = function (fn) {
|
|
2002
2016
|
// Nashorn bug:
|
|
2003
2017
|
// https://github.com/zloirock/core-js/issues/1128
|
|
2004
2018
|
// https://github.com/zloirock/core-js/issues/1130
|
|
2005
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
2019
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
2006
2020
|
};
|
|
2007
2021
|
|
|
2008
|
-
var uncurryThis$
|
|
2009
|
-
var aCallable$
|
|
2022
|
+
var uncurryThis$3 = functionUncurryThisClause;
|
|
2023
|
+
var aCallable$6 = aCallable$9;
|
|
2010
2024
|
var NATIVE_BIND = functionBindNative;
|
|
2011
2025
|
|
|
2012
|
-
var bind$4 = uncurryThis$
|
|
2026
|
+
var bind$4 = uncurryThis$3(uncurryThis$3.bind);
|
|
2013
2027
|
|
|
2014
2028
|
// optional / simple context binding
|
|
2015
2029
|
var functionBindContext = function (fn, that) {
|
|
2016
|
-
aCallable$
|
|
2030
|
+
aCallable$6(fn);
|
|
2017
2031
|
return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
|
|
2018
2032
|
return fn.apply(that, arguments);
|
|
2019
2033
|
};
|
|
2020
2034
|
};
|
|
2021
2035
|
|
|
2022
|
-
var uncurryThis = functionUncurryThis;
|
|
2036
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2023
2037
|
|
|
2024
|
-
var arraySlice$
|
|
2038
|
+
var arraySlice$2 = uncurryThis$2([].slice);
|
|
2025
2039
|
|
|
2026
|
-
var $TypeError$
|
|
2040
|
+
var $TypeError$5 = TypeError;
|
|
2027
2041
|
|
|
2028
2042
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
2029
|
-
if (passed < required) throw $TypeError$
|
|
2043
|
+
if (passed < required) throw $TypeError$5('Not enough arguments');
|
|
2030
2044
|
return passed;
|
|
2031
2045
|
};
|
|
2032
2046
|
|
|
2033
|
-
var userAgent$
|
|
2047
|
+
var userAgent$4 = engineUserAgent;
|
|
2034
2048
|
|
|
2035
2049
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2036
|
-
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$
|
|
2050
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
|
|
2037
2051
|
|
|
2038
2052
|
var global$5 = global$g;
|
|
2039
2053
|
var apply = functionApply;
|
|
2040
2054
|
var bind$3 = functionBindContext;
|
|
2041
2055
|
var isCallable$3 = isCallable$k;
|
|
2042
|
-
var hasOwn = hasOwnProperty_1;
|
|
2043
|
-
var fails = fails$
|
|
2056
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2057
|
+
var fails$4 = fails$h;
|
|
2044
2058
|
var html = html$2;
|
|
2045
|
-
var arraySlice = arraySlice$
|
|
2059
|
+
var arraySlice$1 = arraySlice$2;
|
|
2046
2060
|
var createElement = documentCreateElement$2;
|
|
2047
2061
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
2048
2062
|
var IS_IOS$1 = engineIsIos;
|
|
@@ -2060,13 +2074,13 @@ var queue$2 = {};
|
|
|
2060
2074
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2061
2075
|
var $location, defer, channel, port;
|
|
2062
2076
|
|
|
2063
|
-
fails(function () {
|
|
2077
|
+
fails$4(function () {
|
|
2064
2078
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2065
2079
|
$location = global$5.location;
|
|
2066
2080
|
});
|
|
2067
2081
|
|
|
2068
2082
|
var run = function (id) {
|
|
2069
|
-
if (hasOwn(queue$2, id)) {
|
|
2083
|
+
if (hasOwn$1(queue$2, id)) {
|
|
2070
2084
|
var fn = queue$2[id];
|
|
2071
2085
|
delete queue$2[id];
|
|
2072
2086
|
fn();
|
|
@@ -2093,7 +2107,7 @@ if (!set || !clear) {
|
|
|
2093
2107
|
set = function setImmediate(handler) {
|
|
2094
2108
|
validateArgumentsLength(arguments.length, 1);
|
|
2095
2109
|
var fn = isCallable$3(handler) ? handler : Function$1(handler);
|
|
2096
|
-
var args = arraySlice(arguments, 1);
|
|
2110
|
+
var args = arraySlice$1(arguments, 1);
|
|
2097
2111
|
queue$2[++counter] = function () {
|
|
2098
2112
|
apply(fn, undefined, args);
|
|
2099
2113
|
};
|
|
@@ -2127,7 +2141,7 @@ if (!set || !clear) {
|
|
|
2127
2141
|
isCallable$3(global$5.postMessage) &&
|
|
2128
2142
|
!global$5.importScripts &&
|
|
2129
2143
|
$location && $location.protocol !== 'file:' &&
|
|
2130
|
-
!fails(globalPostMessageDefer)
|
|
2144
|
+
!fails$4(globalPostMessageDefer)
|
|
2131
2145
|
) {
|
|
2132
2146
|
defer = globalPostMessageDefer;
|
|
2133
2147
|
global$5.addEventListener('message', eventListener, false);
|
|
@@ -2177,13 +2191,13 @@ Queue$2.prototype = {
|
|
|
2177
2191
|
|
|
2178
2192
|
var queue$1 = Queue$2;
|
|
2179
2193
|
|
|
2180
|
-
var userAgent$
|
|
2194
|
+
var userAgent$3 = engineUserAgent;
|
|
2181
2195
|
|
|
2182
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$
|
|
2196
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
|
|
2183
2197
|
|
|
2184
|
-
var userAgent = engineUserAgent;
|
|
2198
|
+
var userAgent$2 = engineUserAgent;
|
|
2185
2199
|
|
|
2186
|
-
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2200
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
|
|
2187
2201
|
|
|
2188
2202
|
var global$4 = global$g;
|
|
2189
2203
|
var bind$2 = functionBindContext;
|
|
@@ -2301,13 +2315,13 @@ var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
|
2301
2315
|
var isCallable$2 = isCallable$k;
|
|
2302
2316
|
var isForced = isForced_1;
|
|
2303
2317
|
var inspectSource = inspectSource$3;
|
|
2304
|
-
var wellKnownSymbol$
|
|
2318
|
+
var wellKnownSymbol$5 = wellKnownSymbol$g;
|
|
2305
2319
|
var IS_BROWSER = engineIsBrowser;
|
|
2306
2320
|
var IS_DENO = engineIsDeno;
|
|
2307
2321
|
var V8_VERSION = engineV8Version;
|
|
2308
2322
|
|
|
2309
2323
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2310
|
-
var SPECIES = wellKnownSymbol$
|
|
2324
|
+
var SPECIES = wellKnownSymbol$5('species');
|
|
2311
2325
|
var SUBCLASSING = false;
|
|
2312
2326
|
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
|
|
2313
2327
|
|
|
@@ -2343,19 +2357,19 @@ var promiseConstructorDetection = {
|
|
|
2343
2357
|
|
|
2344
2358
|
var newPromiseCapability$2 = {};
|
|
2345
2359
|
|
|
2346
|
-
var aCallable$
|
|
2360
|
+
var aCallable$5 = aCallable$9;
|
|
2347
2361
|
|
|
2348
|
-
var $TypeError$
|
|
2362
|
+
var $TypeError$4 = TypeError;
|
|
2349
2363
|
|
|
2350
2364
|
var PromiseCapability = function (C) {
|
|
2351
2365
|
var resolve, reject;
|
|
2352
2366
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2353
|
-
if (resolve !== undefined || reject !== undefined) throw $TypeError$
|
|
2367
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
|
|
2354
2368
|
resolve = $$resolve;
|
|
2355
2369
|
reject = $$reject;
|
|
2356
2370
|
});
|
|
2357
|
-
this.resolve = aCallable$
|
|
2358
|
-
this.reject = aCallable$
|
|
2371
|
+
this.resolve = aCallable$5(resolve);
|
|
2372
|
+
this.reject = aCallable$5(reject);
|
|
2359
2373
|
};
|
|
2360
2374
|
|
|
2361
2375
|
// `NewPromiseCapability` abstract operation
|
|
@@ -2364,17 +2378,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2364
2378
|
return new PromiseCapability(C);
|
|
2365
2379
|
};
|
|
2366
2380
|
|
|
2367
|
-
var $$
|
|
2381
|
+
var $$8 = _export;
|
|
2368
2382
|
var IS_NODE = engineIsNode;
|
|
2369
2383
|
var global$1 = global$g;
|
|
2370
|
-
var call$
|
|
2371
|
-
var defineBuiltIn$
|
|
2384
|
+
var call$7 = functionCall;
|
|
2385
|
+
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2372
2386
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2373
2387
|
var setToStringTag = setToStringTag$3;
|
|
2374
2388
|
var setSpecies = setSpecies$1;
|
|
2375
|
-
var aCallable$
|
|
2389
|
+
var aCallable$4 = aCallable$9;
|
|
2376
2390
|
var isCallable$1 = isCallable$k;
|
|
2377
|
-
var isObject$
|
|
2391
|
+
var isObject$2 = isObject$9;
|
|
2378
2392
|
var anInstance = anInstance$1;
|
|
2379
2393
|
var speciesConstructor = speciesConstructor$1;
|
|
2380
2394
|
var task = task$1.set;
|
|
@@ -2416,7 +2430,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
2416
2430
|
// helpers
|
|
2417
2431
|
var isThenable = function (it) {
|
|
2418
2432
|
var then;
|
|
2419
|
-
return isObject$
|
|
2433
|
+
return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
|
|
2420
2434
|
};
|
|
2421
2435
|
|
|
2422
2436
|
var callReaction = function (reaction, state) {
|
|
@@ -2445,7 +2459,7 @@ var callReaction = function (reaction, state) {
|
|
|
2445
2459
|
if (result === reaction.promise) {
|
|
2446
2460
|
reject(TypeError$1('Promise-chain cycle'));
|
|
2447
2461
|
} else if (then = isThenable(result)) {
|
|
2448
|
-
call$
|
|
2462
|
+
call$7(then, result, resolve, reject);
|
|
2449
2463
|
} else resolve(result);
|
|
2450
2464
|
} else reject(value);
|
|
2451
2465
|
} catch (error) {
|
|
@@ -2482,7 +2496,7 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2482
2496
|
};
|
|
2483
2497
|
|
|
2484
2498
|
var onUnhandled = function (state) {
|
|
2485
|
-
call$
|
|
2499
|
+
call$7(task, global$1, function () {
|
|
2486
2500
|
var promise = state.facade;
|
|
2487
2501
|
var value = state.value;
|
|
2488
2502
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2505,7 +2519,7 @@ var isUnhandled = function (state) {
|
|
|
2505
2519
|
};
|
|
2506
2520
|
|
|
2507
2521
|
var onHandleUnhandled = function (state) {
|
|
2508
|
-
call$
|
|
2522
|
+
call$7(task, global$1, function () {
|
|
2509
2523
|
var promise = state.facade;
|
|
2510
2524
|
if (IS_NODE) {
|
|
2511
2525
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -2539,7 +2553,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2539
2553
|
microtask(function () {
|
|
2540
2554
|
var wrapper = { done: false };
|
|
2541
2555
|
try {
|
|
2542
|
-
call$
|
|
2556
|
+
call$7(then, value,
|
|
2543
2557
|
bind$1(internalResolve, wrapper, state),
|
|
2544
2558
|
bind$1(internalReject, wrapper, state)
|
|
2545
2559
|
);
|
|
@@ -2562,8 +2576,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2562
2576
|
// 25.4.3.1 Promise(executor)
|
|
2563
2577
|
PromiseConstructor = function Promise(executor) {
|
|
2564
2578
|
anInstance(this, PromisePrototype);
|
|
2565
|
-
aCallable$
|
|
2566
|
-
call$
|
|
2579
|
+
aCallable$4(executor);
|
|
2580
|
+
call$7(Internal, this);
|
|
2567
2581
|
var state = getInternalPromiseState(this);
|
|
2568
2582
|
try {
|
|
2569
2583
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -2590,7 +2604,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2590
2604
|
|
|
2591
2605
|
// `Promise.prototype.then` method
|
|
2592
2606
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2593
|
-
Internal.prototype = defineBuiltIn$
|
|
2607
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2594
2608
|
var state = getInternalPromiseState(this);
|
|
2595
2609
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
2596
2610
|
state.parent = true;
|
|
@@ -2623,10 +2637,10 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2623
2637
|
|
|
2624
2638
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
2625
2639
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2626
|
-
defineBuiltIn$
|
|
2640
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
2627
2641
|
var that = this;
|
|
2628
2642
|
return new PromiseConstructor(function (resolve, reject) {
|
|
2629
|
-
call$
|
|
2643
|
+
call$7(nativeThen, that, resolve, reject);
|
|
2630
2644
|
}).then(onFulfilled, onRejected);
|
|
2631
2645
|
// https://github.com/zloirock/core-js/issues/640
|
|
2632
2646
|
}, { unsafe: true });
|
|
@@ -2644,17 +2658,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2644
2658
|
}
|
|
2645
2659
|
}
|
|
2646
2660
|
|
|
2647
|
-
$$
|
|
2661
|
+
$$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2648
2662
|
Promise: PromiseConstructor
|
|
2649
2663
|
});
|
|
2650
2664
|
|
|
2651
2665
|
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
2652
2666
|
setSpecies(PROMISE);
|
|
2653
2667
|
|
|
2654
|
-
var wellKnownSymbol$
|
|
2668
|
+
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
2655
2669
|
var Iterators$1 = iterators;
|
|
2656
2670
|
|
|
2657
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
2671
|
+
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
2658
2672
|
var ArrayPrototype = Array.prototype;
|
|
2659
2673
|
|
|
2660
2674
|
// check on default Array iterator
|
|
@@ -2662,70 +2676,70 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
2662
2676
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
2663
2677
|
};
|
|
2664
2678
|
|
|
2665
|
-
var classof = classof$
|
|
2679
|
+
var classof$2 = classof$4;
|
|
2666
2680
|
var getMethod$1 = getMethod$3;
|
|
2667
2681
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
2668
2682
|
var Iterators = iterators;
|
|
2669
|
-
var wellKnownSymbol$
|
|
2683
|
+
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
2670
2684
|
|
|
2671
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
2685
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
2672
2686
|
|
|
2673
2687
|
var getIteratorMethod$2 = function (it) {
|
|
2674
2688
|
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
2675
2689
|
|| getMethod$1(it, '@@iterator')
|
|
2676
|
-
|| Iterators[classof(it)];
|
|
2690
|
+
|| Iterators[classof$2(it)];
|
|
2677
2691
|
};
|
|
2678
2692
|
|
|
2679
|
-
var call$
|
|
2680
|
-
var aCallable$
|
|
2681
|
-
var anObject$
|
|
2682
|
-
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;
|
|
2683
2697
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2684
2698
|
|
|
2685
|
-
var $TypeError$
|
|
2699
|
+
var $TypeError$3 = TypeError;
|
|
2686
2700
|
|
|
2687
2701
|
var getIterator$1 = function (argument, usingIterator) {
|
|
2688
2702
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2689
|
-
if (aCallable$
|
|
2690
|
-
throw $TypeError$
|
|
2703
|
+
if (aCallable$3(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
|
|
2704
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not iterable');
|
|
2691
2705
|
};
|
|
2692
2706
|
|
|
2693
|
-
var call$
|
|
2694
|
-
var anObject$
|
|
2707
|
+
var call$5 = functionCall;
|
|
2708
|
+
var anObject$4 = anObject$c;
|
|
2695
2709
|
var getMethod = getMethod$3;
|
|
2696
2710
|
|
|
2697
2711
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
2698
2712
|
var innerResult, innerError;
|
|
2699
|
-
anObject$
|
|
2713
|
+
anObject$4(iterator);
|
|
2700
2714
|
try {
|
|
2701
2715
|
innerResult = getMethod(iterator, 'return');
|
|
2702
2716
|
if (!innerResult) {
|
|
2703
2717
|
if (kind === 'throw') throw value;
|
|
2704
2718
|
return value;
|
|
2705
2719
|
}
|
|
2706
|
-
innerResult = call$
|
|
2720
|
+
innerResult = call$5(innerResult, iterator);
|
|
2707
2721
|
} catch (error) {
|
|
2708
2722
|
innerError = true;
|
|
2709
2723
|
innerResult = error;
|
|
2710
2724
|
}
|
|
2711
2725
|
if (kind === 'throw') throw value;
|
|
2712
2726
|
if (innerError) throw innerResult;
|
|
2713
|
-
anObject$
|
|
2727
|
+
anObject$4(innerResult);
|
|
2714
2728
|
return value;
|
|
2715
2729
|
};
|
|
2716
2730
|
|
|
2717
2731
|
var bind = functionBindContext;
|
|
2718
|
-
var call$
|
|
2719
|
-
var anObject$
|
|
2720
|
-
var tryToString = tryToString$
|
|
2732
|
+
var call$4 = functionCall;
|
|
2733
|
+
var anObject$3 = anObject$c;
|
|
2734
|
+
var tryToString$1 = tryToString$5;
|
|
2721
2735
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2722
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
2723
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
2736
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
2737
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2724
2738
|
var getIterator = getIterator$1;
|
|
2725
2739
|
var getIteratorMethod = getIteratorMethod$2;
|
|
2726
2740
|
var iteratorClose = iteratorClose$1;
|
|
2727
2741
|
|
|
2728
|
-
var $TypeError = TypeError;
|
|
2742
|
+
var $TypeError$2 = TypeError;
|
|
2729
2743
|
|
|
2730
2744
|
var Result = function (stopped, result) {
|
|
2731
2745
|
this.stopped = stopped;
|
|
@@ -2750,7 +2764,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2750
2764
|
|
|
2751
2765
|
var callFn = function (value) {
|
|
2752
2766
|
if (AS_ENTRIES) {
|
|
2753
|
-
anObject$
|
|
2767
|
+
anObject$3(value);
|
|
2754
2768
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2755
2769
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2756
2770
|
};
|
|
@@ -2761,31 +2775,31 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2761
2775
|
iterator = iterable;
|
|
2762
2776
|
} else {
|
|
2763
2777
|
iterFn = getIteratorMethod(iterable);
|
|
2764
|
-
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
2778
|
+
if (!iterFn) throw $TypeError$2(tryToString$1(iterable) + ' is not iterable');
|
|
2765
2779
|
// optimisation for array iterators
|
|
2766
2780
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2767
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
2781
|
+
for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
|
|
2768
2782
|
result = callFn(iterable[index]);
|
|
2769
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2783
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2770
2784
|
} return new Result(false);
|
|
2771
2785
|
}
|
|
2772
2786
|
iterator = getIterator(iterable, iterFn);
|
|
2773
2787
|
}
|
|
2774
2788
|
|
|
2775
2789
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2776
|
-
while (!(step = call$
|
|
2790
|
+
while (!(step = call$4(next, iterator)).done) {
|
|
2777
2791
|
try {
|
|
2778
2792
|
result = callFn(step.value);
|
|
2779
2793
|
} catch (error) {
|
|
2780
2794
|
iteratorClose(iterator, 'throw', error);
|
|
2781
2795
|
}
|
|
2782
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
2796
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2783
2797
|
} return new Result(false);
|
|
2784
2798
|
};
|
|
2785
2799
|
|
|
2786
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
2800
|
+
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
2787
2801
|
|
|
2788
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
2802
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
2789
2803
|
var SAFE_CLOSING = false;
|
|
2790
2804
|
|
|
2791
2805
|
try {
|
|
@@ -2830,9 +2844,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2830
2844
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2831
2845
|
});
|
|
2832
2846
|
|
|
2833
|
-
var $$
|
|
2834
|
-
var call$
|
|
2835
|
-
var aCallable$
|
|
2847
|
+
var $$7 = _export;
|
|
2848
|
+
var call$3 = functionCall;
|
|
2849
|
+
var aCallable$2 = aCallable$9;
|
|
2836
2850
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2837
2851
|
var perform$1 = perform$3;
|
|
2838
2852
|
var iterate$1 = iterate$2;
|
|
@@ -2840,14 +2854,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2840
2854
|
|
|
2841
2855
|
// `Promise.all` method
|
|
2842
2856
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2843
|
-
$$
|
|
2857
|
+
$$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2844
2858
|
all: function all(iterable) {
|
|
2845
2859
|
var C = this;
|
|
2846
2860
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2847
2861
|
var resolve = capability.resolve;
|
|
2848
2862
|
var reject = capability.reject;
|
|
2849
2863
|
var result = perform$1(function () {
|
|
2850
|
-
var $promiseResolve = aCallable$
|
|
2864
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
|
2851
2865
|
var values = [];
|
|
2852
2866
|
var counter = 0;
|
|
2853
2867
|
var remaining = 1;
|
|
@@ -2855,7 +2869,7 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2855
2869
|
var index = counter++;
|
|
2856
2870
|
var alreadyCalled = false;
|
|
2857
2871
|
remaining++;
|
|
2858
|
-
call$
|
|
2872
|
+
call$3($promiseResolve, C, promise).then(function (value) {
|
|
2859
2873
|
if (alreadyCalled) return;
|
|
2860
2874
|
alreadyCalled = true;
|
|
2861
2875
|
values[index] = value;
|
|
@@ -2869,18 +2883,18 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2869
2883
|
}
|
|
2870
2884
|
});
|
|
2871
2885
|
|
|
2872
|
-
var $$
|
|
2886
|
+
var $$6 = _export;
|
|
2873
2887
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2874
2888
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2875
2889
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
2876
2890
|
var isCallable = isCallable$k;
|
|
2877
|
-
var defineBuiltIn = defineBuiltIn$
|
|
2891
|
+
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2878
2892
|
|
|
2879
2893
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2880
2894
|
|
|
2881
2895
|
// `Promise.prototype.catch` method
|
|
2882
2896
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2883
|
-
$$
|
|
2897
|
+
$$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2884
2898
|
'catch': function (onRejected) {
|
|
2885
2899
|
return this.then(undefined, onRejected);
|
|
2886
2900
|
}
|
|
@@ -2890,13 +2904,13 @@ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real
|
|
|
2890
2904
|
if (isCallable(NativePromiseConstructor)) {
|
|
2891
2905
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2892
2906
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2893
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2907
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2894
2908
|
}
|
|
2895
2909
|
}
|
|
2896
2910
|
|
|
2897
|
-
var $$
|
|
2898
|
-
var call$
|
|
2899
|
-
var aCallable = aCallable$
|
|
2911
|
+
var $$5 = _export;
|
|
2912
|
+
var call$2 = functionCall;
|
|
2913
|
+
var aCallable$1 = aCallable$9;
|
|
2900
2914
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2901
2915
|
var perform = perform$3;
|
|
2902
2916
|
var iterate = iterate$2;
|
|
@@ -2904,15 +2918,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2904
2918
|
|
|
2905
2919
|
// `Promise.race` method
|
|
2906
2920
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2907
|
-
$$
|
|
2921
|
+
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2908
2922
|
race: function race(iterable) {
|
|
2909
2923
|
var C = this;
|
|
2910
2924
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2911
2925
|
var reject = capability.reject;
|
|
2912
2926
|
var result = perform(function () {
|
|
2913
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
2927
|
+
var $promiseResolve = aCallable$1(C.resolve);
|
|
2914
2928
|
iterate(iterable, function (promise) {
|
|
2915
|
-
call$
|
|
2929
|
+
call$2($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2916
2930
|
});
|
|
2917
2931
|
});
|
|
2918
2932
|
if (result.error) reject(result.value);
|
|
@@ -2920,35 +2934,35 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2920
2934
|
}
|
|
2921
2935
|
});
|
|
2922
2936
|
|
|
2923
|
-
var $$
|
|
2924
|
-
var call = functionCall;
|
|
2937
|
+
var $$4 = _export;
|
|
2938
|
+
var call$1 = functionCall;
|
|
2925
2939
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2926
2940
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2927
2941
|
|
|
2928
2942
|
// `Promise.reject` method
|
|
2929
2943
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2930
|
-
$$
|
|
2944
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2931
2945
|
reject: function reject(r) {
|
|
2932
2946
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2933
|
-
call(capability.reject, undefined, r);
|
|
2947
|
+
call$1(capability.reject, undefined, r);
|
|
2934
2948
|
return capability.promise;
|
|
2935
2949
|
}
|
|
2936
2950
|
});
|
|
2937
2951
|
|
|
2938
|
-
var anObject = anObject$
|
|
2939
|
-
var isObject = isObject$
|
|
2952
|
+
var anObject$2 = anObject$c;
|
|
2953
|
+
var isObject$1 = isObject$9;
|
|
2940
2954
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2941
2955
|
|
|
2942
2956
|
var promiseResolve$1 = function (C, x) {
|
|
2943
|
-
anObject(C);
|
|
2944
|
-
if (isObject(x) && x.constructor === C) return x;
|
|
2957
|
+
anObject$2(C);
|
|
2958
|
+
if (isObject$1(x) && x.constructor === C) return x;
|
|
2945
2959
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2946
2960
|
var resolve = promiseCapability.resolve;
|
|
2947
2961
|
resolve(x);
|
|
2948
2962
|
return promiseCapability.promise;
|
|
2949
2963
|
};
|
|
2950
2964
|
|
|
2951
|
-
var
|
|
2965
|
+
var $$3 = _export;
|
|
2952
2966
|
var getBuiltIn = getBuiltIn$7;
|
|
2953
2967
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2954
2968
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2957,7 +2971,7 @@ getBuiltIn('Promise');
|
|
|
2957
2971
|
|
|
2958
2972
|
// `Promise.resolve` method
|
|
2959
2973
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2960
|
-
|
|
2974
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2961
2975
|
resolve: function resolve(x) {
|
|
2962
2976
|
return promiseResolve(this, x);
|
|
2963
2977
|
}
|
|
@@ -2978,7 +2992,8 @@ const useOrchestratorConfig = initialOrchestratorConfig => {
|
|
|
2978
2992
|
const OrchestratorConfigContext = /*#__PURE__*/createContext({
|
|
2979
2993
|
engineStatusEndpoint: '',
|
|
2980
2994
|
processStatusCountsEndpoint: '',
|
|
2981
|
-
environmentName: ''
|
|
2995
|
+
environmentName: '',
|
|
2996
|
+
graphqlEndpoint: ''
|
|
2982
2997
|
});
|
|
2983
2998
|
const OrchestratorConfigProvider = ({
|
|
2984
2999
|
initialOrchestratorConfig,
|
|
@@ -3102,29 +3117,17 @@ const EnvironmentBadge = () => {
|
|
|
3102
3117
|
} = useOrchestratorTheme();
|
|
3103
3118
|
if (environmentName !== Environment.PRODUCTION) {
|
|
3104
3119
|
return jsx(HeaderBadge, Object.assign({
|
|
3105
|
-
color: "warning"
|
|
3120
|
+
color: "warning",
|
|
3121
|
+
textColor: theme.colors.shadow
|
|
3106
3122
|
}, {
|
|
3107
|
-
children:
|
|
3108
|
-
size: "xs"
|
|
3109
|
-
}, {
|
|
3110
|
-
children: jsx("b", {
|
|
3111
|
-
children: environmentName
|
|
3112
|
-
})
|
|
3113
|
-
}))
|
|
3123
|
+
children: environmentName
|
|
3114
3124
|
}));
|
|
3115
3125
|
}
|
|
3116
3126
|
return jsx(HeaderBadge, Object.assign({
|
|
3117
|
-
|
|
3118
|
-
|
|
3127
|
+
color: toSecondaryColor(theme.colors.primary),
|
|
3128
|
+
textColor: theme.colors.primary
|
|
3119
3129
|
}, {
|
|
3120
|
-
children:
|
|
3121
|
-
color: theme.colors.primary,
|
|
3122
|
-
size: "xs"
|
|
3123
|
-
}, {
|
|
3124
|
-
children: jsx("b", {
|
|
3125
|
-
children: environmentName
|
|
3126
|
-
})
|
|
3127
|
-
}))
|
|
3130
|
+
children: environmentName
|
|
3128
3131
|
}));
|
|
3129
3132
|
};
|
|
3130
3133
|
const EngineStatusBadge = () => {
|
|
@@ -3136,18 +3139,13 @@ const EngineStatusBadge = () => {
|
|
|
3136
3139
|
} = useEngineStatusQuery();
|
|
3137
3140
|
const engineStatusText = (engineStatus === null || engineStatus === void 0 ? void 0 : engineStatus.global_status) ? `Engine is ${engineStatus.global_status}` : 'Engine status is unavailable';
|
|
3138
3141
|
return jsx(HeaderBadge, Object.assign({
|
|
3139
|
-
color:
|
|
3142
|
+
color: theme.colors.emptyShade,
|
|
3143
|
+
textColor: theme.colors.shadow,
|
|
3140
3144
|
iconType: () => jsx(StatusDotIcon, {
|
|
3141
3145
|
color: theme.colors.success
|
|
3142
3146
|
})
|
|
3143
3147
|
}, {
|
|
3144
|
-
children:
|
|
3145
|
-
size: "xs"
|
|
3146
|
-
}, {
|
|
3147
|
-
children: jsx("b", {
|
|
3148
|
-
children: engineStatusText
|
|
3149
|
-
})
|
|
3150
|
-
}))
|
|
3148
|
+
children: engineStatusText
|
|
3151
3149
|
}));
|
|
3152
3150
|
};
|
|
3153
3151
|
const FailedTasksBadge = () => {
|
|
@@ -3171,18 +3169,13 @@ const FailedTasksBadge = () => {
|
|
|
3171
3169
|
})
|
|
3172
3170
|
}, {
|
|
3173
3171
|
children: jsx(HeaderBadge, Object.assign({
|
|
3174
|
-
color:
|
|
3172
|
+
color: theme.colors.emptyShade,
|
|
3173
|
+
textColor: theme.colors.shadow,
|
|
3175
3174
|
iconType: () => jsx(XCircleFill, {
|
|
3176
3175
|
color: theme.colors.danger
|
|
3177
3176
|
})
|
|
3178
3177
|
}, {
|
|
3179
|
-
children:
|
|
3180
|
-
size: "xs"
|
|
3181
|
-
}, {
|
|
3182
|
-
children: jsx("b", {
|
|
3183
|
-
children: taskCountsSummary.total
|
|
3184
|
-
})
|
|
3185
|
-
}))
|
|
3178
|
+
children: taskCountsSummary.total
|
|
3186
3179
|
}))
|
|
3187
3180
|
}));
|
|
3188
3181
|
};
|
|
@@ -3204,23 +3197,14 @@ const OrchestratorSidebar = ({
|
|
|
3204
3197
|
},
|
|
3205
3198
|
href: '/'
|
|
3206
3199
|
}, {
|
|
3207
|
-
name: 'Subscriptions
|
|
3200
|
+
name: 'Subscriptions',
|
|
3208
3201
|
id: 3,
|
|
3209
3202
|
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3210
3203
|
onClick: e => {
|
|
3211
3204
|
e.preventDefault();
|
|
3212
|
-
routeTo('/subscriptions
|
|
3205
|
+
routeTo('/subscriptions');
|
|
3213
3206
|
},
|
|
3214
|
-
href: '/subscriptions
|
|
3215
|
-
}, {
|
|
3216
|
-
name: 'Subscriptions grid',
|
|
3217
|
-
id: 4,
|
|
3218
|
-
// TODO: NEXT router / EUI seem to cause unneeded re-renders. At least in dev mode,
|
|
3219
|
-
onClick: e => {
|
|
3220
|
-
e.preventDefault();
|
|
3221
|
-
routeTo('/subscriptions-grid');
|
|
3222
|
-
},
|
|
3223
|
-
href: '/subscriptions-grid'
|
|
3207
|
+
href: '/subscriptions'
|
|
3224
3208
|
}]
|
|
3225
3209
|
}]
|
|
3226
3210
|
});
|
|
@@ -3267,6 +3251,566 @@ const OrchestratorPageTemplate = ({
|
|
|
3267
3251
|
});
|
|
3268
3252
|
};
|
|
3269
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
|
+
|
|
3270
3814
|
const defaultOrchestratorTheme = {
|
|
3271
3815
|
colors: {
|
|
3272
3816
|
DARK: {},
|
|
@@ -3309,6 +3853,95 @@ const defaultOrchestratorTheme = {
|
|
|
3309
3853
|
}
|
|
3310
3854
|
};
|
|
3311
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
|
+
|
|
3312
3945
|
const getStatusBadgeColor = status => {
|
|
3313
3946
|
const statusColors = {
|
|
3314
3947
|
terminated: 'danger',
|
|
@@ -3324,4 +3957,4 @@ const getStatusBadgeColor = status => {
|
|
|
3324
3957
|
statusColors[status] : 'primary';
|
|
3325
3958
|
};
|
|
3326
3959
|
|
|
3327
|
-
export { CustomButton, Environment, 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 };
|