@bolttech/atoms-segmented-control 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1009 -294
- package/package.json +5 -5
- package/src/lib/atoms-segmented-control.styles.d.ts +558 -12
package/index.cjs
CHANGED
|
@@ -15,11 +15,11 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
15
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
16
|
|
|
17
17
|
var check = function (it) {
|
|
18
|
-
return it && it.Math
|
|
18
|
+
return it && it.Math === Math && it;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22
|
-
var global$
|
|
22
|
+
var global$e =
|
|
23
23
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
24
24
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
25
25
|
check(typeof window == 'object' && window) ||
|
|
@@ -31,7 +31,7 @@ var global$b =
|
|
|
31
31
|
|
|
32
32
|
var objectGetOwnPropertyDescriptor = {};
|
|
33
33
|
|
|
34
|
-
var fails$
|
|
34
|
+
var fails$e = function (exec) {
|
|
35
35
|
try {
|
|
36
36
|
return !!exec();
|
|
37
37
|
} catch (error) {
|
|
@@ -39,29 +39,29 @@ var fails$9 = function (exec) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var fails$
|
|
42
|
+
var fails$d = fails$e;
|
|
43
43
|
|
|
44
44
|
// Detect IE8's incomplete defineProperty implementation
|
|
45
|
-
var descriptors = !fails$
|
|
45
|
+
var descriptors = !fails$d(function () {
|
|
46
46
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
47
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
47
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
var fails$
|
|
50
|
+
var fails$c = fails$e;
|
|
51
51
|
|
|
52
|
-
var functionBindNative = !fails$
|
|
52
|
+
var functionBindNative = !fails$c(function () {
|
|
53
53
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
54
54
|
var test = (function () { /* empty */ }).bind();
|
|
55
55
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
56
56
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
var NATIVE_BIND$
|
|
59
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
60
60
|
|
|
61
|
-
var call$
|
|
61
|
+
var call$9 = Function.prototype.call;
|
|
62
62
|
|
|
63
|
-
var functionCall = NATIVE_BIND$
|
|
64
|
-
return call$
|
|
63
|
+
var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
|
|
64
|
+
return call$9.apply(call$9, arguments);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
var objectPropertyIsEnumerable = {};
|
|
@@ -89,66 +89,66 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
var NATIVE_BIND = functionBindNative;
|
|
92
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
93
93
|
|
|
94
|
-
var FunctionPrototype$
|
|
95
|
-
var call$
|
|
96
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$
|
|
94
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
95
|
+
var call$8 = FunctionPrototype$2.call;
|
|
96
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$8, call$8);
|
|
97
97
|
|
|
98
|
-
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
98
|
+
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
99
99
|
return function () {
|
|
100
|
-
return call$
|
|
100
|
+
return call$8.apply(fn, arguments);
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
var uncurryThis$
|
|
104
|
+
var uncurryThis$f = functionUncurryThis;
|
|
105
105
|
|
|
106
|
-
var toString$
|
|
107
|
-
var stringSlice$
|
|
106
|
+
var toString$5 = uncurryThis$f({}.toString);
|
|
107
|
+
var stringSlice$5 = uncurryThis$f(''.slice);
|
|
108
108
|
|
|
109
|
-
var classofRaw = function (it) {
|
|
110
|
-
return stringSlice$
|
|
109
|
+
var classofRaw$2 = function (it) {
|
|
110
|
+
return stringSlice$5(toString$5(it), 8, -1);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
var uncurryThis$
|
|
114
|
-
var fails$
|
|
115
|
-
var classof = classofRaw;
|
|
113
|
+
var uncurryThis$e = functionUncurryThis;
|
|
114
|
+
var fails$b = fails$e;
|
|
115
|
+
var classof$3 = classofRaw$2;
|
|
116
116
|
|
|
117
|
-
var $Object$
|
|
118
|
-
var split = uncurryThis$
|
|
117
|
+
var $Object$3 = Object;
|
|
118
|
+
var split = uncurryThis$e(''.split);
|
|
119
119
|
|
|
120
120
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
121
|
-
var indexedObject = fails$
|
|
121
|
+
var indexedObject = fails$b(function () {
|
|
122
122
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
123
123
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
124
|
-
return !$Object$
|
|
124
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
125
125
|
}) ? function (it) {
|
|
126
|
-
return classof(it)
|
|
127
|
-
} : $Object$
|
|
126
|
+
return classof$3(it) === 'String' ? split(it, '') : $Object$3(it);
|
|
127
|
+
} : $Object$3;
|
|
128
128
|
|
|
129
129
|
// we can't use just `it == null` since of `document.all` special case
|
|
130
130
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
131
|
-
var isNullOrUndefined$
|
|
131
|
+
var isNullOrUndefined$3 = function (it) {
|
|
132
132
|
return it === null || it === undefined;
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var isNullOrUndefined$
|
|
135
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
136
136
|
|
|
137
|
-
var $TypeError$
|
|
137
|
+
var $TypeError$6 = TypeError;
|
|
138
138
|
|
|
139
139
|
// `RequireObjectCoercible` abstract operation
|
|
140
140
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
141
|
-
var requireObjectCoercible$
|
|
142
|
-
if (isNullOrUndefined$
|
|
141
|
+
var requireObjectCoercible$4 = function (it) {
|
|
142
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$6("Can't call method on " + it);
|
|
143
143
|
return it;
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
// toObject with fallback for non-array-like ES3 strings
|
|
147
147
|
var IndexedObject$1 = indexedObject;
|
|
148
|
-
var requireObjectCoercible$
|
|
148
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
149
149
|
|
|
150
|
-
var toIndexedObject$
|
|
151
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
150
|
+
var toIndexedObject$4 = function (it) {
|
|
151
|
+
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -168,45 +168,45 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
168
168
|
|
|
169
169
|
// `IsCallable` abstract operation
|
|
170
170
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
171
|
-
var isCallable$
|
|
171
|
+
var isCallable$d = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
172
172
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
173
173
|
} : function (argument) {
|
|
174
174
|
return typeof argument == 'function';
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
var isCallable$
|
|
177
|
+
var isCallable$c = isCallable$d;
|
|
178
178
|
var $documentAll = documentAll_1;
|
|
179
179
|
|
|
180
180
|
var documentAll = $documentAll.all;
|
|
181
181
|
|
|
182
182
|
var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
183
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
183
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
|
|
184
184
|
} : function (it) {
|
|
185
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
185
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
var global$
|
|
189
|
-
var isCallable$
|
|
188
|
+
var global$d = global$e;
|
|
189
|
+
var isCallable$b = isCallable$d;
|
|
190
190
|
|
|
191
191
|
var aFunction = function (argument) {
|
|
192
|
-
return isCallable$
|
|
192
|
+
return isCallable$b(argument) ? argument : undefined;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
var getBuiltIn$
|
|
196
|
-
return arguments.length < 2 ? aFunction(global$
|
|
195
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
196
|
+
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
var uncurryThis$
|
|
199
|
+
var uncurryThis$d = functionUncurryThis;
|
|
200
200
|
|
|
201
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
201
|
+
var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
|
|
202
202
|
|
|
203
203
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
204
204
|
|
|
205
|
-
var global$
|
|
205
|
+
var global$c = global$e;
|
|
206
206
|
var userAgent = engineUserAgent;
|
|
207
207
|
|
|
208
|
-
var process = global$
|
|
209
|
-
var Deno = global$
|
|
208
|
+
var process = global$c.process;
|
|
209
|
+
var Deno = global$c.Deno;
|
|
210
210
|
var versions = process && process.versions || Deno && Deno.version;
|
|
211
211
|
var v8 = versions && versions.v8;
|
|
212
212
|
var match, version;
|
|
@@ -231,173 +231,171 @@ if (!version && userAgent) {
|
|
|
231
231
|
var engineV8Version = version;
|
|
232
232
|
|
|
233
233
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
234
|
-
|
|
235
234
|
var V8_VERSION = engineV8Version;
|
|
236
|
-
var fails$
|
|
237
|
-
var global$
|
|
235
|
+
var fails$a = fails$e;
|
|
236
|
+
var global$b = global$e;
|
|
238
237
|
|
|
239
|
-
var $String$
|
|
238
|
+
var $String$4 = global$b.String;
|
|
240
239
|
|
|
241
240
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
242
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
243
|
-
var symbol = Symbol();
|
|
241
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
|
|
242
|
+
var symbol = Symbol('symbol detection');
|
|
244
243
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
245
244
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
246
245
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
247
246
|
// of course, fail.
|
|
248
|
-
return !$String$
|
|
247
|
+
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
249
248
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
250
249
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
251
250
|
});
|
|
252
251
|
|
|
253
252
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
254
|
-
|
|
255
253
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
256
254
|
|
|
257
255
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
258
256
|
&& !Symbol.sham
|
|
259
257
|
&& typeof Symbol.iterator == 'symbol';
|
|
260
258
|
|
|
261
|
-
var getBuiltIn$
|
|
262
|
-
var isCallable$
|
|
259
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
260
|
+
var isCallable$a = isCallable$d;
|
|
263
261
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
264
262
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
265
263
|
|
|
266
|
-
var $Object$
|
|
264
|
+
var $Object$2 = Object;
|
|
267
265
|
|
|
268
266
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
269
267
|
return typeof it == 'symbol';
|
|
270
268
|
} : function (it) {
|
|
271
|
-
var $Symbol = getBuiltIn$
|
|
272
|
-
return isCallable$
|
|
269
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
270
|
+
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
273
271
|
};
|
|
274
272
|
|
|
275
|
-
var $String$
|
|
273
|
+
var $String$3 = String;
|
|
276
274
|
|
|
277
275
|
var tryToString$1 = function (argument) {
|
|
278
276
|
try {
|
|
279
|
-
return $String$
|
|
277
|
+
return $String$3(argument);
|
|
280
278
|
} catch (error) {
|
|
281
279
|
return 'Object';
|
|
282
280
|
}
|
|
283
281
|
};
|
|
284
282
|
|
|
285
|
-
var isCallable$
|
|
283
|
+
var isCallable$9 = isCallable$d;
|
|
286
284
|
var tryToString = tryToString$1;
|
|
287
285
|
|
|
288
|
-
var $TypeError$
|
|
286
|
+
var $TypeError$5 = TypeError;
|
|
289
287
|
|
|
290
288
|
// `Assert: IsCallable(argument) is true`
|
|
291
289
|
var aCallable$1 = function (argument) {
|
|
292
|
-
if (isCallable$
|
|
293
|
-
throw $TypeError$
|
|
290
|
+
if (isCallable$9(argument)) return argument;
|
|
291
|
+
throw new $TypeError$5(tryToString(argument) + ' is not a function');
|
|
294
292
|
};
|
|
295
293
|
|
|
296
294
|
var aCallable = aCallable$1;
|
|
297
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
295
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
298
296
|
|
|
299
297
|
// `GetMethod` abstract operation
|
|
300
298
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
301
|
-
var getMethod$
|
|
299
|
+
var getMethod$2 = function (V, P) {
|
|
302
300
|
var func = V[P];
|
|
303
|
-
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
301
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable(func);
|
|
304
302
|
};
|
|
305
303
|
|
|
306
|
-
var call$
|
|
307
|
-
var isCallable$
|
|
304
|
+
var call$7 = functionCall;
|
|
305
|
+
var isCallable$8 = isCallable$d;
|
|
308
306
|
var isObject$4 = isObject$5;
|
|
309
307
|
|
|
310
|
-
var $TypeError$
|
|
308
|
+
var $TypeError$4 = TypeError;
|
|
311
309
|
|
|
312
310
|
// `OrdinaryToPrimitive` abstract operation
|
|
313
311
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
314
312
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
315
313
|
var fn, val;
|
|
316
|
-
if (pref === 'string' && isCallable$
|
|
317
|
-
if (isCallable$
|
|
318
|
-
if (pref !== 'string' && isCallable$
|
|
319
|
-
throw $TypeError$
|
|
314
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
|
|
315
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$7(fn, input))) return val;
|
|
316
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
|
|
317
|
+
throw new $TypeError$4("Can't convert object to primitive value");
|
|
320
318
|
};
|
|
321
319
|
|
|
322
|
-
var shared$
|
|
320
|
+
var shared$4 = {exports: {}};
|
|
323
321
|
|
|
324
|
-
var global$
|
|
322
|
+
var global$a = global$e;
|
|
325
323
|
|
|
326
324
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
327
325
|
var defineProperty$2 = Object.defineProperty;
|
|
328
326
|
|
|
329
327
|
var defineGlobalProperty$3 = function (key, value) {
|
|
330
328
|
try {
|
|
331
|
-
defineProperty$2(global$
|
|
329
|
+
defineProperty$2(global$a, key, { value: value, configurable: true, writable: true });
|
|
332
330
|
} catch (error) {
|
|
333
|
-
global$
|
|
331
|
+
global$a[key] = value;
|
|
334
332
|
} return value;
|
|
335
333
|
};
|
|
336
334
|
|
|
337
|
-
var global$
|
|
335
|
+
var global$9 = global$e;
|
|
338
336
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
339
337
|
|
|
340
338
|
var SHARED = '__core-js_shared__';
|
|
341
|
-
var store$3 = global$
|
|
339
|
+
var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
342
340
|
|
|
343
341
|
var sharedStore = store$3;
|
|
344
342
|
|
|
345
343
|
var store$2 = sharedStore;
|
|
346
344
|
|
|
347
|
-
(shared$
|
|
345
|
+
(shared$4.exports = function (key, value) {
|
|
348
346
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
349
347
|
})('versions', []).push({
|
|
350
|
-
version: '3.
|
|
348
|
+
version: '3.33.2',
|
|
351
349
|
mode: 'global',
|
|
352
350
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
353
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
351
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
|
|
354
352
|
source: 'https://github.com/zloirock/core-js'
|
|
355
353
|
});
|
|
356
354
|
|
|
357
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
355
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
358
356
|
|
|
359
|
-
var $Object = Object;
|
|
357
|
+
var $Object$1 = Object;
|
|
360
358
|
|
|
361
359
|
// `ToObject` abstract operation
|
|
362
360
|
// https://tc39.es/ecma262/#sec-toobject
|
|
363
|
-
var toObject$
|
|
364
|
-
return $Object(requireObjectCoercible(argument));
|
|
361
|
+
var toObject$3 = function (argument) {
|
|
362
|
+
return $Object$1(requireObjectCoercible$2(argument));
|
|
365
363
|
};
|
|
366
364
|
|
|
367
|
-
var uncurryThis$
|
|
368
|
-
var toObject$
|
|
365
|
+
var uncurryThis$c = functionUncurryThis;
|
|
366
|
+
var toObject$2 = toObject$3;
|
|
369
367
|
|
|
370
|
-
var hasOwnProperty = uncurryThis$
|
|
368
|
+
var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
|
|
371
369
|
|
|
372
370
|
// `HasOwnProperty` abstract operation
|
|
373
371
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
374
372
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
375
373
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
376
|
-
return hasOwnProperty(toObject$
|
|
374
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
377
375
|
};
|
|
378
376
|
|
|
379
|
-
var uncurryThis$
|
|
377
|
+
var uncurryThis$b = functionUncurryThis;
|
|
380
378
|
|
|
381
379
|
var id = 0;
|
|
382
380
|
var postfix = Math.random();
|
|
383
|
-
var toString = uncurryThis$
|
|
381
|
+
var toString$4 = uncurryThis$b(1.0.toString);
|
|
384
382
|
|
|
385
383
|
var uid$2 = function (key) {
|
|
386
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
384
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
387
385
|
};
|
|
388
386
|
|
|
389
|
-
var global$
|
|
390
|
-
var shared$
|
|
387
|
+
var global$8 = global$e;
|
|
388
|
+
var shared$3 = shared$4.exports;
|
|
391
389
|
var hasOwn$6 = hasOwnProperty_1;
|
|
392
390
|
var uid$1 = uid$2;
|
|
393
391
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
394
392
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
395
393
|
|
|
396
|
-
var Symbol$1 = global$
|
|
397
|
-
var WellKnownSymbolsStore = shared$
|
|
394
|
+
var Symbol$1 = global$8.Symbol;
|
|
395
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
398
396
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
399
397
|
|
|
400
|
-
var wellKnownSymbol$
|
|
398
|
+
var wellKnownSymbol$5 = function (name) {
|
|
401
399
|
if (!hasOwn$6(WellKnownSymbolsStore, name)) {
|
|
402
400
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
|
|
403
401
|
? Symbol$1[name]
|
|
@@ -405,27 +403,27 @@ var wellKnownSymbol$1 = function (name) {
|
|
|
405
403
|
} return WellKnownSymbolsStore[name];
|
|
406
404
|
};
|
|
407
405
|
|
|
408
|
-
var call$
|
|
406
|
+
var call$6 = functionCall;
|
|
409
407
|
var isObject$3 = isObject$5;
|
|
410
408
|
var isSymbol$1 = isSymbol$2;
|
|
411
|
-
var getMethod = getMethod$
|
|
409
|
+
var getMethod$1 = getMethod$2;
|
|
412
410
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
413
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
411
|
+
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
414
412
|
|
|
415
|
-
var $TypeError$
|
|
416
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
413
|
+
var $TypeError$3 = TypeError;
|
|
414
|
+
var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
|
|
417
415
|
|
|
418
416
|
// `ToPrimitive` abstract operation
|
|
419
417
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
420
418
|
var toPrimitive$1 = function (input, pref) {
|
|
421
419
|
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
|
422
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
420
|
+
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
423
421
|
var result;
|
|
424
422
|
if (exoticToPrim) {
|
|
425
423
|
if (pref === undefined) pref = 'default';
|
|
426
|
-
result = call$
|
|
424
|
+
result = call$6(exoticToPrim, input, pref);
|
|
427
425
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
428
|
-
throw $TypeError$
|
|
426
|
+
throw new $TypeError$3("Can't convert object to primitive value");
|
|
429
427
|
}
|
|
430
428
|
if (pref === undefined) pref = 'number';
|
|
431
429
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -441,34 +439,34 @@ var toPropertyKey$2 = function (argument) {
|
|
|
441
439
|
return isSymbol(key) ? key : key + '';
|
|
442
440
|
};
|
|
443
441
|
|
|
444
|
-
var global$
|
|
442
|
+
var global$7 = global$e;
|
|
445
443
|
var isObject$2 = isObject$5;
|
|
446
444
|
|
|
447
|
-
var document$1 = global$
|
|
445
|
+
var document$1 = global$7.document;
|
|
448
446
|
// typeof document.createElement is 'object' in old IE
|
|
449
447
|
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
|
450
448
|
|
|
451
|
-
var documentCreateElement = function (it) {
|
|
449
|
+
var documentCreateElement$1 = function (it) {
|
|
452
450
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
453
451
|
};
|
|
454
452
|
|
|
455
|
-
var DESCRIPTORS$
|
|
456
|
-
var fails$
|
|
457
|
-
var createElement = documentCreateElement;
|
|
453
|
+
var DESCRIPTORS$8 = descriptors;
|
|
454
|
+
var fails$9 = fails$e;
|
|
455
|
+
var createElement = documentCreateElement$1;
|
|
458
456
|
|
|
459
457
|
// Thanks to IE8 for its funny defineProperty
|
|
460
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
458
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
|
|
461
459
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
462
460
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
463
461
|
get: function () { return 7; }
|
|
464
|
-
}).a
|
|
462
|
+
}).a !== 7;
|
|
465
463
|
});
|
|
466
464
|
|
|
467
|
-
var DESCRIPTORS$
|
|
468
|
-
var call$
|
|
465
|
+
var DESCRIPTORS$7 = descriptors;
|
|
466
|
+
var call$5 = functionCall;
|
|
469
467
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
470
468
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
471
|
-
var toIndexedObject$
|
|
469
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
472
470
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
473
471
|
var hasOwn$5 = hasOwnProperty_1;
|
|
474
472
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -478,48 +476,48 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
478
476
|
|
|
479
477
|
// `Object.getOwnPropertyDescriptor` method
|
|
480
478
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
481
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
482
|
-
O = toIndexedObject$
|
|
479
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
480
|
+
O = toIndexedObject$3(O);
|
|
483
481
|
P = toPropertyKey$1(P);
|
|
484
482
|
if (IE8_DOM_DEFINE$1) try {
|
|
485
483
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
486
484
|
} catch (error) { /* empty */ }
|
|
487
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$
|
|
485
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
488
486
|
};
|
|
489
487
|
|
|
490
488
|
var objectDefineProperty = {};
|
|
491
489
|
|
|
492
|
-
var DESCRIPTORS$
|
|
493
|
-
var fails$
|
|
490
|
+
var DESCRIPTORS$6 = descriptors;
|
|
491
|
+
var fails$8 = fails$e;
|
|
494
492
|
|
|
495
493
|
// V8 ~ Chrome 36-
|
|
496
494
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
497
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
495
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$8(function () {
|
|
498
496
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
499
497
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
500
498
|
value: 42,
|
|
501
499
|
writable: false
|
|
502
|
-
}).prototype
|
|
500
|
+
}).prototype !== 42;
|
|
503
501
|
});
|
|
504
502
|
|
|
505
503
|
var isObject$1 = isObject$5;
|
|
506
504
|
|
|
507
|
-
var $String$
|
|
508
|
-
var $TypeError$
|
|
505
|
+
var $String$2 = String;
|
|
506
|
+
var $TypeError$2 = TypeError;
|
|
509
507
|
|
|
510
508
|
// `Assert: Type(argument) is Object`
|
|
511
|
-
var anObject$
|
|
509
|
+
var anObject$7 = function (argument) {
|
|
512
510
|
if (isObject$1(argument)) return argument;
|
|
513
|
-
throw $TypeError$
|
|
511
|
+
throw new $TypeError$2($String$2(argument) + ' is not an object');
|
|
514
512
|
};
|
|
515
513
|
|
|
516
|
-
var DESCRIPTORS$
|
|
514
|
+
var DESCRIPTORS$5 = descriptors;
|
|
517
515
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
518
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
519
|
-
var anObject$
|
|
516
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
517
|
+
var anObject$6 = anObject$7;
|
|
520
518
|
var toPropertyKey = toPropertyKey$2;
|
|
521
519
|
|
|
522
|
-
var $TypeError = TypeError;
|
|
520
|
+
var $TypeError$1 = TypeError;
|
|
523
521
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
524
522
|
var $defineProperty = Object.defineProperty;
|
|
525
523
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -530,10 +528,10 @@ var WRITABLE = 'writable';
|
|
|
530
528
|
|
|
531
529
|
// `Object.defineProperty` method
|
|
532
530
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
533
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
534
|
-
anObject$
|
|
531
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
532
|
+
anObject$6(O);
|
|
535
533
|
P = toPropertyKey(P);
|
|
536
|
-
anObject$
|
|
534
|
+
anObject$6(Attributes);
|
|
537
535
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
538
536
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
539
537
|
if (current && current[WRITABLE]) {
|
|
@@ -546,23 +544,23 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
546
544
|
}
|
|
547
545
|
} return $defineProperty(O, P, Attributes);
|
|
548
546
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
549
|
-
anObject$
|
|
547
|
+
anObject$6(O);
|
|
550
548
|
P = toPropertyKey(P);
|
|
551
|
-
anObject$
|
|
549
|
+
anObject$6(Attributes);
|
|
552
550
|
if (IE8_DOM_DEFINE) try {
|
|
553
551
|
return $defineProperty(O, P, Attributes);
|
|
554
552
|
} catch (error) { /* empty */ }
|
|
555
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
|
553
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
|
|
556
554
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
557
555
|
return O;
|
|
558
556
|
};
|
|
559
557
|
|
|
560
|
-
var DESCRIPTORS$
|
|
561
|
-
var definePropertyModule$
|
|
558
|
+
var DESCRIPTORS$4 = descriptors;
|
|
559
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
562
560
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
563
561
|
|
|
564
|
-
var createNonEnumerableProperty$
|
|
565
|
-
return definePropertyModule$
|
|
562
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
563
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
566
564
|
} : function (object, key, value) {
|
|
567
565
|
object[key] = value;
|
|
568
566
|
return object;
|
|
@@ -570,17 +568,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
|
|
|
570
568
|
|
|
571
569
|
var makeBuiltIn$2 = {exports: {}};
|
|
572
570
|
|
|
573
|
-
var DESCRIPTORS$
|
|
571
|
+
var DESCRIPTORS$3 = descriptors;
|
|
574
572
|
var hasOwn$4 = hasOwnProperty_1;
|
|
575
573
|
|
|
576
|
-
var FunctionPrototype = Function.prototype;
|
|
574
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
577
575
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
578
|
-
var getDescriptor = DESCRIPTORS$
|
|
576
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
579
577
|
|
|
580
|
-
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
578
|
+
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
581
579
|
// additional protection from minified / mangled / dropped function names
|
|
582
580
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
583
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
581
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
584
582
|
|
|
585
583
|
var functionName = {
|
|
586
584
|
EXISTS: EXISTS,
|
|
@@ -588,14 +586,14 @@ var functionName = {
|
|
|
588
586
|
CONFIGURABLE: CONFIGURABLE
|
|
589
587
|
};
|
|
590
588
|
|
|
591
|
-
var uncurryThis$
|
|
592
|
-
var isCallable$
|
|
589
|
+
var uncurryThis$a = functionUncurryThis;
|
|
590
|
+
var isCallable$7 = isCallable$d;
|
|
593
591
|
var store$1 = sharedStore;
|
|
594
592
|
|
|
595
|
-
var functionToString = uncurryThis$
|
|
593
|
+
var functionToString = uncurryThis$a(Function.toString);
|
|
596
594
|
|
|
597
595
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
598
|
-
if (!isCallable$
|
|
596
|
+
if (!isCallable$7(store$1.inspectSource)) {
|
|
599
597
|
store$1.inspectSource = function (it) {
|
|
600
598
|
return functionToString(it);
|
|
601
599
|
};
|
|
@@ -603,36 +601,36 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
603
601
|
|
|
604
602
|
var inspectSource$1 = store$1.inspectSource;
|
|
605
603
|
|
|
606
|
-
var global$
|
|
607
|
-
var isCallable$
|
|
604
|
+
var global$6 = global$e;
|
|
605
|
+
var isCallable$6 = isCallable$d;
|
|
608
606
|
|
|
609
|
-
var WeakMap$1 = global$
|
|
607
|
+
var WeakMap$1 = global$6.WeakMap;
|
|
610
608
|
|
|
611
|
-
var weakMapBasicDetection = isCallable$
|
|
609
|
+
var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
612
610
|
|
|
613
|
-
var shared$
|
|
611
|
+
var shared$2 = shared$4.exports;
|
|
614
612
|
var uid = uid$2;
|
|
615
613
|
|
|
616
|
-
var keys = shared$
|
|
614
|
+
var keys = shared$2('keys');
|
|
617
615
|
|
|
618
|
-
var sharedKey$
|
|
616
|
+
var sharedKey$2 = function (key) {
|
|
619
617
|
return keys[key] || (keys[key] = uid(key));
|
|
620
618
|
};
|
|
621
619
|
|
|
622
|
-
var hiddenKeys$
|
|
620
|
+
var hiddenKeys$4 = {};
|
|
623
621
|
|
|
624
622
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
625
|
-
var global$
|
|
623
|
+
var global$5 = global$e;
|
|
626
624
|
var isObject = isObject$5;
|
|
627
|
-
var createNonEnumerableProperty$
|
|
625
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
628
626
|
var hasOwn$3 = hasOwnProperty_1;
|
|
629
|
-
var shared = sharedStore;
|
|
630
|
-
var sharedKey = sharedKey$
|
|
631
|
-
var hiddenKeys$
|
|
627
|
+
var shared$1 = sharedStore;
|
|
628
|
+
var sharedKey$1 = sharedKey$2;
|
|
629
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
632
630
|
|
|
633
631
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
634
|
-
var TypeError$1 = global$
|
|
635
|
-
var WeakMap = global$
|
|
632
|
+
var TypeError$1 = global$5.TypeError;
|
|
633
|
+
var WeakMap = global$5.WeakMap;
|
|
636
634
|
var set, get, has;
|
|
637
635
|
|
|
638
636
|
var enforce = function (it) {
|
|
@@ -643,20 +641,20 @@ var getterFor = function (TYPE) {
|
|
|
643
641
|
return function (it) {
|
|
644
642
|
var state;
|
|
645
643
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
646
|
-
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
644
|
+
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
647
645
|
} return state;
|
|
648
646
|
};
|
|
649
647
|
};
|
|
650
648
|
|
|
651
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
652
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
649
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
650
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
653
651
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
654
652
|
store.get = store.get;
|
|
655
653
|
store.has = store.has;
|
|
656
654
|
store.set = store.set;
|
|
657
655
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
658
656
|
set = function (it, metadata) {
|
|
659
|
-
if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
657
|
+
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
660
658
|
metadata.facade = it;
|
|
661
659
|
store.set(it, metadata);
|
|
662
660
|
return metadata;
|
|
@@ -668,12 +666,12 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
668
666
|
return store.has(it);
|
|
669
667
|
};
|
|
670
668
|
} else {
|
|
671
|
-
var STATE = sharedKey('state');
|
|
672
|
-
hiddenKeys$
|
|
669
|
+
var STATE = sharedKey$1('state');
|
|
670
|
+
hiddenKeys$3[STATE] = true;
|
|
673
671
|
set = function (it, metadata) {
|
|
674
|
-
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
672
|
+
if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
675
673
|
metadata.facade = it;
|
|
676
|
-
createNonEnumerableProperty$
|
|
674
|
+
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
677
675
|
return metadata;
|
|
678
676
|
};
|
|
679
677
|
get = function (it) {
|
|
@@ -692,38 +690,38 @@ var internalState = {
|
|
|
692
690
|
getterFor: getterFor
|
|
693
691
|
};
|
|
694
692
|
|
|
695
|
-
var uncurryThis$
|
|
696
|
-
var fails$
|
|
697
|
-
var isCallable$
|
|
693
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
694
|
+
var fails$7 = fails$e;
|
|
695
|
+
var isCallable$5 = isCallable$d;
|
|
698
696
|
var hasOwn$2 = hasOwnProperty_1;
|
|
699
|
-
var DESCRIPTORS$
|
|
697
|
+
var DESCRIPTORS$2 = descriptors;
|
|
700
698
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
701
699
|
var inspectSource = inspectSource$1;
|
|
702
700
|
var InternalStateModule = internalState;
|
|
703
701
|
|
|
704
702
|
var enforceInternalState = InternalStateModule.enforce;
|
|
705
|
-
var getInternalState = InternalStateModule.get;
|
|
706
|
-
var $String = String;
|
|
703
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
704
|
+
var $String$1 = String;
|
|
707
705
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
708
706
|
var defineProperty$1 = Object.defineProperty;
|
|
709
|
-
var stringSlice = uncurryThis$
|
|
710
|
-
var replace = uncurryThis$
|
|
711
|
-
var join = uncurryThis$
|
|
707
|
+
var stringSlice$4 = uncurryThis$9(''.slice);
|
|
708
|
+
var replace$2 = uncurryThis$9(''.replace);
|
|
709
|
+
var join = uncurryThis$9([].join);
|
|
712
710
|
|
|
713
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
711
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
|
|
714
712
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
715
713
|
});
|
|
716
714
|
|
|
717
715
|
var TEMPLATE = String(String).split('String');
|
|
718
716
|
|
|
719
717
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
720
|
-
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
721
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
718
|
+
if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
|
|
719
|
+
name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
722
720
|
}
|
|
723
721
|
if (options && options.getter) name = 'get ' + name;
|
|
724
722
|
if (options && options.setter) name = 'set ' + name;
|
|
725
723
|
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
726
|
-
if (DESCRIPTORS$
|
|
724
|
+
if (DESCRIPTORS$2) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
727
725
|
else value.name = name;
|
|
728
726
|
}
|
|
729
727
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
@@ -731,7 +729,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
731
729
|
}
|
|
732
730
|
try {
|
|
733
731
|
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
734
|
-
if (DESCRIPTORS$
|
|
732
|
+
if (DESCRIPTORS$2) defineProperty$1(value, 'prototype', { writable: false });
|
|
735
733
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
736
734
|
} else if (value.prototype) value.prototype = undefined;
|
|
737
735
|
} catch (error) { /* empty */ }
|
|
@@ -744,19 +742,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
744
742
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
745
743
|
// eslint-disable-next-line no-extend-native -- required
|
|
746
744
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
747
|
-
return isCallable$
|
|
745
|
+
return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
|
|
748
746
|
}, 'toString');
|
|
749
747
|
|
|
750
|
-
var isCallable$
|
|
751
|
-
var definePropertyModule$
|
|
748
|
+
var isCallable$4 = isCallable$d;
|
|
749
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
752
750
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
753
751
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
754
752
|
|
|
755
|
-
var defineBuiltIn$
|
|
753
|
+
var defineBuiltIn$2 = function (O, key, value, options) {
|
|
756
754
|
if (!options) options = {};
|
|
757
755
|
var simple = options.enumerable;
|
|
758
756
|
var name = options.name !== undefined ? options.name : key;
|
|
759
|
-
if (isCallable$
|
|
757
|
+
if (isCallable$4(value)) makeBuiltIn(value, name, options);
|
|
760
758
|
if (options.global) {
|
|
761
759
|
if (simple) O[key] = value;
|
|
762
760
|
else defineGlobalProperty$1(key, value);
|
|
@@ -766,7 +764,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
766
764
|
else if (O[key]) simple = true;
|
|
767
765
|
} catch (error) { /* empty */ }
|
|
768
766
|
if (simple) O[key] = value;
|
|
769
|
-
else definePropertyModule$
|
|
767
|
+
else definePropertyModule$2.f(O, key, {
|
|
770
768
|
value: value,
|
|
771
769
|
enumerable: false,
|
|
772
770
|
configurable: !options.nonConfigurable,
|
|
@@ -778,74 +776,74 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
778
776
|
var objectGetOwnPropertyNames = {};
|
|
779
777
|
|
|
780
778
|
var ceil = Math.ceil;
|
|
781
|
-
var floor = Math.floor;
|
|
779
|
+
var floor$1 = Math.floor;
|
|
782
780
|
|
|
783
781
|
// `Math.trunc` method
|
|
784
782
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
785
783
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
786
784
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
787
785
|
var n = +x;
|
|
788
|
-
return (n > 0 ? floor : ceil)(n);
|
|
786
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
789
787
|
};
|
|
790
788
|
|
|
791
789
|
var trunc = mathTrunc;
|
|
792
790
|
|
|
793
791
|
// `ToIntegerOrInfinity` abstract operation
|
|
794
792
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
795
|
-
var toIntegerOrInfinity$
|
|
793
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
796
794
|
var number = +argument;
|
|
797
795
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
798
796
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
799
797
|
};
|
|
800
798
|
|
|
801
|
-
var toIntegerOrInfinity$
|
|
799
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
802
800
|
|
|
803
|
-
var max = Math.max;
|
|
804
|
-
var min$
|
|
801
|
+
var max$1 = Math.max;
|
|
802
|
+
var min$2 = Math.min;
|
|
805
803
|
|
|
806
804
|
// Helper for a popular repeating case of the spec:
|
|
807
805
|
// Let integer be ? ToInteger(index).
|
|
808
806
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
809
807
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
810
|
-
var integer = toIntegerOrInfinity$
|
|
811
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
808
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
809
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
812
810
|
};
|
|
813
811
|
|
|
814
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
812
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
815
813
|
|
|
816
|
-
var min = Math.min;
|
|
814
|
+
var min$1 = Math.min;
|
|
817
815
|
|
|
818
816
|
// `ToLength` abstract operation
|
|
819
817
|
// https://tc39.es/ecma262/#sec-tolength
|
|
820
|
-
var toLength$
|
|
821
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
818
|
+
var toLength$2 = function (argument) {
|
|
819
|
+
return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
822
820
|
};
|
|
823
821
|
|
|
824
|
-
var toLength = toLength$
|
|
822
|
+
var toLength$1 = toLength$2;
|
|
825
823
|
|
|
826
824
|
// `LengthOfArrayLike` abstract operation
|
|
827
825
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
828
826
|
var lengthOfArrayLike$1 = function (obj) {
|
|
829
|
-
return toLength(obj.length);
|
|
827
|
+
return toLength$1(obj.length);
|
|
830
828
|
};
|
|
831
829
|
|
|
832
|
-
var toIndexedObject$
|
|
830
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
833
831
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
834
832
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
835
833
|
|
|
836
834
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
837
|
-
var createMethod = function (IS_INCLUDES) {
|
|
835
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
838
836
|
return function ($this, el, fromIndex) {
|
|
839
|
-
var O = toIndexedObject$
|
|
837
|
+
var O = toIndexedObject$2($this);
|
|
840
838
|
var length = lengthOfArrayLike(O);
|
|
841
839
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
842
840
|
var value;
|
|
843
841
|
// Array#includes uses SameValueZero equality algorithm
|
|
844
842
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
845
|
-
if (IS_INCLUDES && el
|
|
843
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
846
844
|
value = O[index++];
|
|
847
845
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
848
|
-
if (value
|
|
846
|
+
if (value !== value) return true;
|
|
849
847
|
// Array#indexOf ignores holes, Array#includes - not
|
|
850
848
|
} else for (;length > index; index++) {
|
|
851
849
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -856,35 +854,35 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
856
854
|
var arrayIncludes = {
|
|
857
855
|
// `Array.prototype.includes` method
|
|
858
856
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
859
|
-
includes: createMethod(true),
|
|
857
|
+
includes: createMethod$1(true),
|
|
860
858
|
// `Array.prototype.indexOf` method
|
|
861
859
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
862
|
-
indexOf: createMethod(false)
|
|
860
|
+
indexOf: createMethod$1(false)
|
|
863
861
|
};
|
|
864
862
|
|
|
865
|
-
var uncurryThis$
|
|
863
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
866
864
|
var hasOwn$1 = hasOwnProperty_1;
|
|
867
|
-
var toIndexedObject = toIndexedObject$
|
|
868
|
-
var indexOf = arrayIncludes.indexOf;
|
|
869
|
-
var hiddenKeys$
|
|
865
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
866
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
867
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
870
868
|
|
|
871
|
-
var push = uncurryThis$
|
|
869
|
+
var push$1 = uncurryThis$8([].push);
|
|
872
870
|
|
|
873
871
|
var objectKeysInternal = function (object, names) {
|
|
874
|
-
var O = toIndexedObject(object);
|
|
872
|
+
var O = toIndexedObject$1(object);
|
|
875
873
|
var i = 0;
|
|
876
874
|
var result = [];
|
|
877
875
|
var key;
|
|
878
|
-
for (key in O) !hasOwn$1(hiddenKeys$
|
|
876
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
|
|
879
877
|
// Don't enum bug & hidden keys
|
|
880
878
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
881
|
-
~indexOf(result, key) || push(result, key);
|
|
879
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
882
880
|
}
|
|
883
881
|
return result;
|
|
884
882
|
};
|
|
885
883
|
|
|
886
884
|
// IE8- don't enum bug keys
|
|
887
|
-
var enumBugKeys$
|
|
885
|
+
var enumBugKeys$3 = [
|
|
888
886
|
'constructor',
|
|
889
887
|
'hasOwnProperty',
|
|
890
888
|
'isPrototypeOf',
|
|
@@ -895,15 +893,15 @@ var enumBugKeys$2 = [
|
|
|
895
893
|
];
|
|
896
894
|
|
|
897
895
|
var internalObjectKeys$1 = objectKeysInternal;
|
|
898
|
-
var enumBugKeys$
|
|
896
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
899
897
|
|
|
900
|
-
var hiddenKeys = enumBugKeys$
|
|
898
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
901
899
|
|
|
902
900
|
// `Object.getOwnPropertyNames` method
|
|
903
901
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
904
902
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
905
903
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
906
|
-
return internalObjectKeys$1(O, hiddenKeys);
|
|
904
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
907
905
|
};
|
|
908
906
|
|
|
909
907
|
var objectGetOwnPropertySymbols = {};
|
|
@@ -911,29 +909,29 @@ var objectGetOwnPropertySymbols = {};
|
|
|
911
909
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
912
910
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
913
911
|
|
|
914
|
-
var getBuiltIn = getBuiltIn$
|
|
915
|
-
var uncurryThis$
|
|
912
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
913
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
916
914
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
917
915
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
918
|
-
var anObject = anObject$
|
|
916
|
+
var anObject$5 = anObject$7;
|
|
919
917
|
|
|
920
|
-
var concat$
|
|
918
|
+
var concat$2 = uncurryThis$7([].concat);
|
|
921
919
|
|
|
922
920
|
// all object keys, includes non-enumerable and symbols
|
|
923
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
924
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
921
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
922
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
925
923
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
926
|
-
return getOwnPropertySymbols ? concat$
|
|
924
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
927
925
|
};
|
|
928
926
|
|
|
929
927
|
var hasOwn = hasOwnProperty_1;
|
|
930
928
|
var ownKeys = ownKeys$1;
|
|
931
929
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
932
|
-
var definePropertyModule = objectDefineProperty;
|
|
930
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
933
931
|
|
|
934
932
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
935
933
|
var keys = ownKeys(source);
|
|
936
|
-
var defineProperty = definePropertyModule.f;
|
|
934
|
+
var defineProperty = definePropertyModule$1.f;
|
|
937
935
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
938
936
|
for (var i = 0; i < keys.length; i++) {
|
|
939
937
|
var key = keys[i];
|
|
@@ -943,16 +941,16 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
943
941
|
}
|
|
944
942
|
};
|
|
945
943
|
|
|
946
|
-
var fails$
|
|
947
|
-
var isCallable = isCallable$
|
|
944
|
+
var fails$6 = fails$e;
|
|
945
|
+
var isCallable$3 = isCallable$d;
|
|
948
946
|
|
|
949
947
|
var replacement = /#|\.prototype\./;
|
|
950
948
|
|
|
951
949
|
var isForced$1 = function (feature, detection) {
|
|
952
950
|
var value = data[normalize(feature)];
|
|
953
|
-
return value
|
|
954
|
-
: value
|
|
955
|
-
: isCallable(detection) ? fails$
|
|
951
|
+
return value === POLYFILL ? true
|
|
952
|
+
: value === NATIVE ? false
|
|
953
|
+
: isCallable$3(detection) ? fails$6(detection)
|
|
956
954
|
: !!detection;
|
|
957
955
|
};
|
|
958
956
|
|
|
@@ -966,10 +964,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
966
964
|
|
|
967
965
|
var isForced_1 = isForced$1;
|
|
968
966
|
|
|
969
|
-
var global$
|
|
967
|
+
var global$4 = global$e;
|
|
970
968
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
971
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
972
|
-
var defineBuiltIn = defineBuiltIn$
|
|
969
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
970
|
+
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
973
971
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
974
972
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
975
973
|
var isForced = isForced_1;
|
|
@@ -995,11 +993,11 @@ var _export = function (options, source) {
|
|
|
995
993
|
var STATIC = options.stat;
|
|
996
994
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
997
995
|
if (GLOBAL) {
|
|
998
|
-
target = global$
|
|
996
|
+
target = global$4;
|
|
999
997
|
} else if (STATIC) {
|
|
1000
|
-
target = global$
|
|
998
|
+
target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1001
999
|
} else {
|
|
1002
|
-
target = (global$
|
|
1000
|
+
target = (global$4[TARGET] || {}).prototype;
|
|
1003
1001
|
}
|
|
1004
1002
|
if (target) for (key in source) {
|
|
1005
1003
|
sourceProperty = source[key];
|
|
@@ -1015,43 +1013,43 @@ var _export = function (options, source) {
|
|
|
1015
1013
|
}
|
|
1016
1014
|
// add a flag to not completely full polyfills
|
|
1017
1015
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1018
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1016
|
+
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
1019
1017
|
}
|
|
1020
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1018
|
+
defineBuiltIn$1(target, key, sourceProperty, options);
|
|
1021
1019
|
}
|
|
1022
1020
|
};
|
|
1023
1021
|
|
|
1024
1022
|
var internalObjectKeys = objectKeysInternal;
|
|
1025
|
-
var enumBugKeys = enumBugKeys$
|
|
1023
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1026
1024
|
|
|
1027
1025
|
// `Object.keys` method
|
|
1028
1026
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1029
1027
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1030
|
-
var objectKeys$
|
|
1031
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
1028
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1029
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1032
1030
|
};
|
|
1033
1031
|
|
|
1034
|
-
var DESCRIPTORS = descriptors;
|
|
1035
|
-
var uncurryThis = functionUncurryThis;
|
|
1036
|
-
var call = functionCall;
|
|
1037
|
-
var fails = fails$
|
|
1038
|
-
var objectKeys = objectKeys$
|
|
1032
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1033
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1034
|
+
var call$4 = functionCall;
|
|
1035
|
+
var fails$5 = fails$e;
|
|
1036
|
+
var objectKeys$1 = objectKeys$2;
|
|
1039
1037
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1040
1038
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1041
|
-
var toObject = toObject$
|
|
1039
|
+
var toObject$1 = toObject$3;
|
|
1042
1040
|
var IndexedObject = indexedObject;
|
|
1043
1041
|
|
|
1044
1042
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1045
1043
|
var $assign = Object.assign;
|
|
1046
1044
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1047
1045
|
var defineProperty = Object.defineProperty;
|
|
1048
|
-
var concat = uncurryThis([].concat);
|
|
1046
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
1049
1047
|
|
|
1050
1048
|
// `Object.assign` method
|
|
1051
1049
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1052
|
-
var objectAssign = !$assign || fails(function () {
|
|
1050
|
+
var objectAssign = !$assign || fails$5(function () {
|
|
1053
1051
|
// should have correct order of operations (Edge bug)
|
|
1054
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1052
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1055
1053
|
enumerable: true,
|
|
1056
1054
|
get: function () {
|
|
1057
1055
|
defineProperty(this, 'b', {
|
|
@@ -1064,37 +1062,37 @@ var objectAssign = !$assign || fails(function () {
|
|
|
1064
1062
|
var A = {};
|
|
1065
1063
|
var B = {};
|
|
1066
1064
|
// eslint-disable-next-line es/no-symbol -- safe
|
|
1067
|
-
var symbol = Symbol();
|
|
1065
|
+
var symbol = Symbol('assign detection');
|
|
1068
1066
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1069
1067
|
A[symbol] = 7;
|
|
1070
1068
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1071
|
-
return $assign({}, A)[symbol]
|
|
1069
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1072
1070
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1073
|
-
var T = toObject(target);
|
|
1071
|
+
var T = toObject$1(target);
|
|
1074
1072
|
var argumentsLength = arguments.length;
|
|
1075
1073
|
var index = 1;
|
|
1076
1074
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1077
1075
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1078
1076
|
while (argumentsLength > index) {
|
|
1079
1077
|
var S = IndexedObject(arguments[index++]);
|
|
1080
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1078
|
+
var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1081
1079
|
var length = keys.length;
|
|
1082
1080
|
var j = 0;
|
|
1083
1081
|
var key;
|
|
1084
1082
|
while (length > j) {
|
|
1085
1083
|
key = keys[j++];
|
|
1086
|
-
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1084
|
+
if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1087
1085
|
}
|
|
1088
1086
|
} return T;
|
|
1089
1087
|
} : $assign;
|
|
1090
1088
|
|
|
1091
|
-
var
|
|
1089
|
+
var $$1 = _export;
|
|
1092
1090
|
var assign = objectAssign;
|
|
1093
1091
|
|
|
1094
1092
|
// `Object.assign` method
|
|
1095
1093
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1096
1094
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1097
|
-
|
|
1095
|
+
$$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1098
1096
|
assign: assign
|
|
1099
1097
|
});
|
|
1100
1098
|
|
|
@@ -1123,30 +1121,747 @@ function __rest(s, e) {
|
|
|
1123
1121
|
t[p[i]] = s[p[i]];
|
|
1124
1122
|
}
|
|
1125
1123
|
return t;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1127
|
+
var e = new Error(message);
|
|
1128
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
1132
|
+
|
|
1133
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
1134
|
+
var test = {};
|
|
1135
|
+
|
|
1136
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1137
|
+
|
|
1138
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1139
|
+
|
|
1140
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1141
|
+
var isCallable$2 = isCallable$d;
|
|
1142
|
+
var classofRaw$1 = classofRaw$2;
|
|
1143
|
+
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
1144
|
+
|
|
1145
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1146
|
+
var $Object = Object;
|
|
1147
|
+
|
|
1148
|
+
// ES3 wrong here
|
|
1149
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1150
|
+
|
|
1151
|
+
// fallback for IE11 Script Access Denied error
|
|
1152
|
+
var tryGet = function (it, key) {
|
|
1153
|
+
try {
|
|
1154
|
+
return it[key];
|
|
1155
|
+
} catch (error) { /* empty */ }
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1159
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1160
|
+
var O, tag, result;
|
|
1161
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1162
|
+
// @@toStringTag case
|
|
1163
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1164
|
+
// builtinTag case
|
|
1165
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1166
|
+
// ES3 arguments fallback
|
|
1167
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
var classof$1 = classof$2;
|
|
1171
|
+
|
|
1172
|
+
var $String = String;
|
|
1173
|
+
|
|
1174
|
+
var toString$3 = function (argument) {
|
|
1175
|
+
if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1176
|
+
return $String(argument);
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
var anObject$4 = anObject$7;
|
|
1180
|
+
|
|
1181
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1182
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1183
|
+
var regexpFlags$1 = function () {
|
|
1184
|
+
var that = anObject$4(this);
|
|
1185
|
+
var result = '';
|
|
1186
|
+
if (that.hasIndices) result += 'd';
|
|
1187
|
+
if (that.global) result += 'g';
|
|
1188
|
+
if (that.ignoreCase) result += 'i';
|
|
1189
|
+
if (that.multiline) result += 'm';
|
|
1190
|
+
if (that.dotAll) result += 's';
|
|
1191
|
+
if (that.unicode) result += 'u';
|
|
1192
|
+
if (that.unicodeSets) result += 'v';
|
|
1193
|
+
if (that.sticky) result += 'y';
|
|
1194
|
+
return result;
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
var fails$4 = fails$e;
|
|
1198
|
+
var global$3 = global$e;
|
|
1199
|
+
|
|
1200
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1201
|
+
var $RegExp$2 = global$3.RegExp;
|
|
1202
|
+
|
|
1203
|
+
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
1204
|
+
var re = $RegExp$2('a', 'y');
|
|
1205
|
+
re.lastIndex = 2;
|
|
1206
|
+
return re.exec('abcd') !== null;
|
|
1207
|
+
});
|
|
1208
|
+
|
|
1209
|
+
// UC Browser bug
|
|
1210
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1211
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1212
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1213
|
+
});
|
|
1214
|
+
|
|
1215
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1216
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1217
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1218
|
+
re.lastIndex = 2;
|
|
1219
|
+
return re.exec('str') !== null;
|
|
1220
|
+
});
|
|
1221
|
+
|
|
1222
|
+
var regexpStickyHelpers = {
|
|
1223
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1224
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1225
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
var objectDefineProperties = {};
|
|
1229
|
+
|
|
1230
|
+
var DESCRIPTORS = descriptors;
|
|
1231
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1232
|
+
var definePropertyModule = objectDefineProperty;
|
|
1233
|
+
var anObject$3 = anObject$7;
|
|
1234
|
+
var toIndexedObject = toIndexedObject$4;
|
|
1235
|
+
var objectKeys = objectKeys$2;
|
|
1236
|
+
|
|
1237
|
+
// `Object.defineProperties` method
|
|
1238
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1239
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1240
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1241
|
+
anObject$3(O);
|
|
1242
|
+
var props = toIndexedObject(Properties);
|
|
1243
|
+
var keys = objectKeys(Properties);
|
|
1244
|
+
var length = keys.length;
|
|
1245
|
+
var index = 0;
|
|
1246
|
+
var key;
|
|
1247
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1248
|
+
return O;
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1252
|
+
|
|
1253
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1254
|
+
|
|
1255
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1256
|
+
var anObject$2 = anObject$7;
|
|
1257
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1258
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1259
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1260
|
+
var html = html$1;
|
|
1261
|
+
var documentCreateElement = documentCreateElement$1;
|
|
1262
|
+
var sharedKey = sharedKey$2;
|
|
1263
|
+
|
|
1264
|
+
var GT = '>';
|
|
1265
|
+
var LT = '<';
|
|
1266
|
+
var PROTOTYPE = 'prototype';
|
|
1267
|
+
var SCRIPT = 'script';
|
|
1268
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1269
|
+
|
|
1270
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1271
|
+
|
|
1272
|
+
var scriptTag = function (content) {
|
|
1273
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1277
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1278
|
+
activeXDocument.write(scriptTag(''));
|
|
1279
|
+
activeXDocument.close();
|
|
1280
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1281
|
+
activeXDocument = null; // avoid memory leak
|
|
1282
|
+
return temp;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1286
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1287
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1288
|
+
var iframe = documentCreateElement('iframe');
|
|
1289
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1290
|
+
var iframeDocument;
|
|
1291
|
+
iframe.style.display = 'none';
|
|
1292
|
+
html.appendChild(iframe);
|
|
1293
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1294
|
+
iframe.src = String(JS);
|
|
1295
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1296
|
+
iframeDocument.open();
|
|
1297
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1298
|
+
iframeDocument.close();
|
|
1299
|
+
return iframeDocument.F;
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
// Check for document.domain and active x support
|
|
1303
|
+
// No need to use active x approach when document.domain is not set
|
|
1304
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1305
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1306
|
+
// avoid IE GC bug
|
|
1307
|
+
var activeXDocument;
|
|
1308
|
+
var NullProtoObject = function () {
|
|
1309
|
+
try {
|
|
1310
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1311
|
+
} catch (error) { /* ignore */ }
|
|
1312
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1313
|
+
? document.domain && activeXDocument
|
|
1314
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1315
|
+
: NullProtoObjectViaIFrame()
|
|
1316
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1317
|
+
var length = enumBugKeys.length;
|
|
1318
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1319
|
+
return NullProtoObject();
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1323
|
+
|
|
1324
|
+
// `Object.create` method
|
|
1325
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1326
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1327
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1328
|
+
var result;
|
|
1329
|
+
if (O !== null) {
|
|
1330
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
1331
|
+
result = new EmptyConstructor();
|
|
1332
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1333
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1334
|
+
result[IE_PROTO] = O;
|
|
1335
|
+
} else result = NullProtoObject();
|
|
1336
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
var fails$3 = fails$e;
|
|
1340
|
+
var global$2 = global$e;
|
|
1341
|
+
|
|
1342
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1343
|
+
var $RegExp$1 = global$2.RegExp;
|
|
1344
|
+
|
|
1345
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
1346
|
+
var re = $RegExp$1('.', 's');
|
|
1347
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1348
|
+
});
|
|
1349
|
+
|
|
1350
|
+
var fails$2 = fails$e;
|
|
1351
|
+
var global$1 = global$e;
|
|
1352
|
+
|
|
1353
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1354
|
+
var $RegExp = global$1.RegExp;
|
|
1355
|
+
|
|
1356
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
1357
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
1358
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
1359
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1363
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1364
|
+
var call$3 = functionCall;
|
|
1365
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1366
|
+
var toString$2 = toString$3;
|
|
1367
|
+
var regexpFlags = regexpFlags$1;
|
|
1368
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1369
|
+
var shared = shared$4.exports;
|
|
1370
|
+
var create = objectCreate;
|
|
1371
|
+
var getInternalState = internalState.get;
|
|
1372
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1373
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1374
|
+
|
|
1375
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1376
|
+
var nativeExec = RegExp.prototype.exec;
|
|
1377
|
+
var patchedExec = nativeExec;
|
|
1378
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
1379
|
+
var indexOf = uncurryThis$5(''.indexOf);
|
|
1380
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
1381
|
+
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
1382
|
+
|
|
1383
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1384
|
+
var re1 = /a/;
|
|
1385
|
+
var re2 = /b*/g;
|
|
1386
|
+
call$3(nativeExec, re1, 'a');
|
|
1387
|
+
call$3(nativeExec, re2, 'a');
|
|
1388
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1389
|
+
})();
|
|
1390
|
+
|
|
1391
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
1392
|
+
|
|
1393
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1394
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1395
|
+
|
|
1396
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1397
|
+
|
|
1398
|
+
if (PATCH) {
|
|
1399
|
+
patchedExec = function exec(string) {
|
|
1400
|
+
var re = this;
|
|
1401
|
+
var state = getInternalState(re);
|
|
1402
|
+
var str = toString$2(string);
|
|
1403
|
+
var raw = state.raw;
|
|
1404
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
1405
|
+
|
|
1406
|
+
if (raw) {
|
|
1407
|
+
raw.lastIndex = re.lastIndex;
|
|
1408
|
+
result = call$3(patchedExec, raw, str);
|
|
1409
|
+
re.lastIndex = raw.lastIndex;
|
|
1410
|
+
return result;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
var groups = state.groups;
|
|
1414
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1415
|
+
var flags = call$3(regexpFlags, re);
|
|
1416
|
+
var source = re.source;
|
|
1417
|
+
var charsAdded = 0;
|
|
1418
|
+
var strCopy = str;
|
|
1419
|
+
|
|
1420
|
+
if (sticky) {
|
|
1421
|
+
flags = replace$1(flags, 'y', '');
|
|
1422
|
+
if (indexOf(flags, 'g') === -1) {
|
|
1423
|
+
flags += 'g';
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
|
1427
|
+
// Support anchored sticky behavior.
|
|
1428
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
1429
|
+
source = '(?: ' + source + ')';
|
|
1430
|
+
strCopy = ' ' + strCopy;
|
|
1431
|
+
charsAdded++;
|
|
1432
|
+
}
|
|
1433
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
1434
|
+
// simulate the 'y' flag.
|
|
1435
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
if (NPCG_INCLUDED) {
|
|
1439
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
1440
|
+
}
|
|
1441
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1442
|
+
|
|
1443
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1444
|
+
|
|
1445
|
+
if (sticky) {
|
|
1446
|
+
if (match) {
|
|
1447
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
|
1448
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
|
1449
|
+
match.index = re.lastIndex;
|
|
1450
|
+
re.lastIndex += match[0].length;
|
|
1451
|
+
} else re.lastIndex = 0;
|
|
1452
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
1453
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
1454
|
+
}
|
|
1455
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1456
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1457
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1458
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
1459
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
1460
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
if (match && groups) {
|
|
1466
|
+
match.groups = object = create(null);
|
|
1467
|
+
for (i = 0; i < groups.length; i++) {
|
|
1468
|
+
group = groups[i];
|
|
1469
|
+
object[group[0]] = match[group[1]];
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
return match;
|
|
1474
|
+
};
|
|
1126
1475
|
}
|
|
1127
1476
|
|
|
1477
|
+
var regexpExec$2 = patchedExec;
|
|
1478
|
+
|
|
1479
|
+
var $ = _export;
|
|
1480
|
+
var exec = regexpExec$2;
|
|
1481
|
+
|
|
1482
|
+
// `RegExp.prototype.exec` method
|
|
1483
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1484
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
1485
|
+
exec: exec
|
|
1486
|
+
});
|
|
1487
|
+
|
|
1488
|
+
var NATIVE_BIND = functionBindNative;
|
|
1489
|
+
|
|
1490
|
+
var FunctionPrototype = Function.prototype;
|
|
1491
|
+
var apply$1 = FunctionPrototype.apply;
|
|
1492
|
+
var call$2 = FunctionPrototype.call;
|
|
1493
|
+
|
|
1494
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
1495
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
1496
|
+
return call$2.apply(apply$1, arguments);
|
|
1497
|
+
});
|
|
1498
|
+
|
|
1499
|
+
var classofRaw = classofRaw$2;
|
|
1500
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1501
|
+
|
|
1502
|
+
var functionUncurryThisClause = function (fn) {
|
|
1503
|
+
// Nashorn bug:
|
|
1504
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
1505
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
1506
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1510
|
+
|
|
1511
|
+
var uncurryThis$3 = functionUncurryThisClause;
|
|
1512
|
+
var defineBuiltIn = defineBuiltIn$2;
|
|
1513
|
+
var regexpExec$1 = regexpExec$2;
|
|
1514
|
+
var fails$1 = fails$e;
|
|
1515
|
+
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
1516
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1517
|
+
|
|
1518
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
1519
|
+
var RegExpPrototype = RegExp.prototype;
|
|
1520
|
+
|
|
1521
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1522
|
+
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
1523
|
+
|
|
1524
|
+
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
1525
|
+
// String methods call symbol-named RegEp methods
|
|
1526
|
+
var O = {};
|
|
1527
|
+
O[SYMBOL] = function () { return 7; };
|
|
1528
|
+
return ''[KEY](O) !== 7;
|
|
1529
|
+
});
|
|
1530
|
+
|
|
1531
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
1532
|
+
// Symbol-named RegExp methods call .exec
|
|
1533
|
+
var execCalled = false;
|
|
1534
|
+
var re = /a/;
|
|
1535
|
+
|
|
1536
|
+
if (KEY === 'split') {
|
|
1537
|
+
// We can't use real regex here since it causes deoptimization
|
|
1538
|
+
// and serious performance degradation in V8
|
|
1539
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
1540
|
+
re = {};
|
|
1541
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
1542
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
1543
|
+
re.constructor = {};
|
|
1544
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
1545
|
+
re.flags = '';
|
|
1546
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
re.exec = function () {
|
|
1550
|
+
execCalled = true;
|
|
1551
|
+
return null;
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
re[SYMBOL]('');
|
|
1555
|
+
return !execCalled;
|
|
1556
|
+
});
|
|
1557
|
+
|
|
1558
|
+
if (
|
|
1559
|
+
!DELEGATES_TO_SYMBOL ||
|
|
1560
|
+
!DELEGATES_TO_EXEC ||
|
|
1561
|
+
FORCED
|
|
1562
|
+
) {
|
|
1563
|
+
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
1564
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1565
|
+
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
1566
|
+
var $exec = regexp.exec;
|
|
1567
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
1568
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1569
|
+
// The native String method already delegates to @@method (this
|
|
1570
|
+
// polyfilled function), leasing to infinite recursion.
|
|
1571
|
+
// We avoid it by directly calling the native @@method method.
|
|
1572
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
1573
|
+
}
|
|
1574
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
1575
|
+
}
|
|
1576
|
+
return { done: false };
|
|
1577
|
+
});
|
|
1578
|
+
|
|
1579
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1580
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1587
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
1588
|
+
var toString$1 = toString$3;
|
|
1589
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
1590
|
+
|
|
1591
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
1592
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
1593
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
1594
|
+
|
|
1595
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
1596
|
+
return function ($this, pos) {
|
|
1597
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
1598
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
1599
|
+
var size = S.length;
|
|
1600
|
+
var first, second;
|
|
1601
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
1602
|
+
first = charCodeAt(S, position);
|
|
1603
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
1604
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
1605
|
+
? CONVERT_TO_STRING
|
|
1606
|
+
? charAt$2(S, position)
|
|
1607
|
+
: first
|
|
1608
|
+
: CONVERT_TO_STRING
|
|
1609
|
+
? stringSlice$2(S, position, position + 2)
|
|
1610
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
var stringMultibyte = {
|
|
1615
|
+
// `String.prototype.codePointAt` method
|
|
1616
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
1617
|
+
codeAt: createMethod(false),
|
|
1618
|
+
// `String.prototype.at` method
|
|
1619
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
1620
|
+
charAt: createMethod(true)
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
1624
|
+
|
|
1625
|
+
// `AdvanceStringIndex` abstract operation
|
|
1626
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1627
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
1628
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1632
|
+
var toObject = toObject$3;
|
|
1633
|
+
|
|
1634
|
+
var floor = Math.floor;
|
|
1635
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
1636
|
+
var replace = uncurryThis$1(''.replace);
|
|
1637
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
1638
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1639
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
1640
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
1641
|
+
|
|
1642
|
+
// `GetSubstitution` abstract operation
|
|
1643
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
1644
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
1645
|
+
var tailPos = position + matched.length;
|
|
1646
|
+
var m = captures.length;
|
|
1647
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
1648
|
+
if (namedCaptures !== undefined) {
|
|
1649
|
+
namedCaptures = toObject(namedCaptures);
|
|
1650
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
1651
|
+
}
|
|
1652
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
1653
|
+
var capture;
|
|
1654
|
+
switch (charAt(ch, 0)) {
|
|
1655
|
+
case '$': return '$';
|
|
1656
|
+
case '&': return matched;
|
|
1657
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
1658
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
1659
|
+
case '<':
|
|
1660
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
1661
|
+
break;
|
|
1662
|
+
default: // \d\d?
|
|
1663
|
+
var n = +ch;
|
|
1664
|
+
if (n === 0) return match;
|
|
1665
|
+
if (n > m) {
|
|
1666
|
+
var f = floor(n / 10);
|
|
1667
|
+
if (f === 0) return match;
|
|
1668
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
1669
|
+
return match;
|
|
1670
|
+
}
|
|
1671
|
+
capture = captures[n - 1];
|
|
1672
|
+
}
|
|
1673
|
+
return capture === undefined ? '' : capture;
|
|
1674
|
+
});
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
var call$1 = functionCall;
|
|
1678
|
+
var anObject$1 = anObject$7;
|
|
1679
|
+
var isCallable$1 = isCallable$d;
|
|
1680
|
+
var classof = classofRaw$2;
|
|
1681
|
+
var regexpExec = regexpExec$2;
|
|
1682
|
+
|
|
1683
|
+
var $TypeError = TypeError;
|
|
1684
|
+
|
|
1685
|
+
// `RegExpExec` abstract operation
|
|
1686
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1687
|
+
var regexpExecAbstract = function (R, S) {
|
|
1688
|
+
var exec = R.exec;
|
|
1689
|
+
if (isCallable$1(exec)) {
|
|
1690
|
+
var result = call$1(exec, R, S);
|
|
1691
|
+
if (result !== null) anObject$1(result);
|
|
1692
|
+
return result;
|
|
1693
|
+
}
|
|
1694
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
1695
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
var apply = functionApply;
|
|
1699
|
+
var call = functionCall;
|
|
1700
|
+
var uncurryThis = functionUncurryThis;
|
|
1701
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
1702
|
+
var fails = fails$e;
|
|
1703
|
+
var anObject = anObject$7;
|
|
1704
|
+
var isCallable = isCallable$d;
|
|
1705
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1706
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
1707
|
+
var toLength = toLength$2;
|
|
1708
|
+
var toString = toString$3;
|
|
1709
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
1710
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
1711
|
+
var getMethod = getMethod$2;
|
|
1712
|
+
var getSubstitution = getSubstitution$1;
|
|
1713
|
+
var regExpExec = regexpExecAbstract;
|
|
1714
|
+
var wellKnownSymbol = wellKnownSymbol$5;
|
|
1715
|
+
|
|
1716
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
1717
|
+
var max = Math.max;
|
|
1718
|
+
var min = Math.min;
|
|
1719
|
+
var concat = uncurryThis([].concat);
|
|
1720
|
+
var push = uncurryThis([].push);
|
|
1721
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
1722
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1723
|
+
|
|
1724
|
+
var maybeToString = function (it) {
|
|
1725
|
+
return it === undefined ? it : String(it);
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
1729
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
1730
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
1731
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
1732
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
1733
|
+
})();
|
|
1734
|
+
|
|
1735
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
1736
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
1737
|
+
if (/./[REPLACE]) {
|
|
1738
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
1739
|
+
}
|
|
1740
|
+
return false;
|
|
1741
|
+
})();
|
|
1742
|
+
|
|
1743
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
1744
|
+
var re = /./;
|
|
1745
|
+
re.exec = function () {
|
|
1746
|
+
var result = [];
|
|
1747
|
+
result.groups = { a: '7' };
|
|
1748
|
+
return result;
|
|
1749
|
+
};
|
|
1750
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
1751
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// @@replace logic
|
|
1755
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
1756
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
1757
|
+
|
|
1758
|
+
return [
|
|
1759
|
+
// `String.prototype.replace` method
|
|
1760
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1761
|
+
function replace(searchValue, replaceValue) {
|
|
1762
|
+
var O = requireObjectCoercible(this);
|
|
1763
|
+
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
1764
|
+
return replacer
|
|
1765
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
1766
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
1767
|
+
},
|
|
1768
|
+
// `RegExp.prototype[@@replace]` method
|
|
1769
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1770
|
+
function (string, replaceValue) {
|
|
1771
|
+
var rx = anObject(this);
|
|
1772
|
+
var S = toString(string);
|
|
1773
|
+
|
|
1774
|
+
if (
|
|
1775
|
+
typeof replaceValue == 'string' &&
|
|
1776
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
1777
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
1778
|
+
) {
|
|
1779
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
1780
|
+
if (res.done) return res.value;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
var functionalReplace = isCallable(replaceValue);
|
|
1784
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
1785
|
+
|
|
1786
|
+
var global = rx.global;
|
|
1787
|
+
var fullUnicode;
|
|
1788
|
+
if (global) {
|
|
1789
|
+
fullUnicode = rx.unicode;
|
|
1790
|
+
rx.lastIndex = 0;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
var results = [];
|
|
1794
|
+
var result;
|
|
1795
|
+
while (true) {
|
|
1796
|
+
result = regExpExec(rx, S);
|
|
1797
|
+
if (result === null) break;
|
|
1798
|
+
|
|
1799
|
+
push(results, result);
|
|
1800
|
+
if (!global) break;
|
|
1801
|
+
|
|
1802
|
+
var matchStr = toString(result[0]);
|
|
1803
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
var accumulatedResult = '';
|
|
1807
|
+
var nextSourcePosition = 0;
|
|
1808
|
+
for (var i = 0; i < results.length; i++) {
|
|
1809
|
+
result = results[i];
|
|
1810
|
+
|
|
1811
|
+
var matched = toString(result[0]);
|
|
1812
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
1813
|
+
var captures = [];
|
|
1814
|
+
var replacement;
|
|
1815
|
+
// NOTE: This is equivalent to
|
|
1816
|
+
// captures = result.slice(1).map(maybeToString)
|
|
1817
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
1818
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
1819
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
1820
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
1821
|
+
var namedCaptures = result.groups;
|
|
1822
|
+
if (functionalReplace) {
|
|
1823
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
1824
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
1825
|
+
replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
1826
|
+
} else {
|
|
1827
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
1828
|
+
}
|
|
1829
|
+
if (position >= nextSourcePosition) {
|
|
1830
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
1831
|
+
nextSourcePosition = position + matched.length;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
1836
|
+
}
|
|
1837
|
+
];
|
|
1838
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
1839
|
+
|
|
1840
|
+
const tokenToInteger = token => Number(token.replace('px', ''));
|
|
1128
1841
|
const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
|
|
1129
1842
|
displayName: "atoms-segmented-controlstyles__Option",
|
|
1130
1843
|
componentId: "sc-1lpqq2u-0"
|
|
1131
|
-
})(["background-color:", ";border:1px solid ", ";padding:", ";cursor:pointer
|
|
1844
|
+
})(["background-color:", ";border:1px solid ", ";padding:", ";cursor:pointer;", " *{cursor:pointer;}"], ({
|
|
1132
1845
|
theme,
|
|
1133
|
-
pressed,
|
|
1134
|
-
hasError
|
|
1135
|
-
}) => pressed ? hasError ? theme.tokens.red['200'] : theme.components.segmentControl.container.color.pressed : theme.components.segmentControl.container.color.default, ({
|
|
1846
|
+
$pressed,
|
|
1847
|
+
$hasError
|
|
1848
|
+
}) => $pressed ? $hasError ? theme.tokens.red['200'] : theme.components.segmentControl.container.color.pressed : theme.components.segmentControl.container.color.default, ({
|
|
1136
1849
|
theme,
|
|
1137
|
-
pressed,
|
|
1138
|
-
hasError
|
|
1139
|
-
}) => hasError ? theme.tokens.red['600'] : pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
|
|
1850
|
+
$pressed,
|
|
1851
|
+
$hasError
|
|
1852
|
+
}) => $hasError ? theme.tokens.red['600'] : $pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
|
|
1853
|
+
theme
|
|
1854
|
+
}) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}`, ({
|
|
1140
1855
|
theme
|
|
1141
|
-
}) =>
|
|
1856
|
+
}) => tokenToInteger(theme.components.segmentControl.gap) === 0 && styled.css(["&:first-of-type{border-right:0;}&:last-of-type{border-left:0;}&:not(:first-of-type) + &:not(:last-of-type){border-right:0;border-left:0;}"]));
|
|
1142
1857
|
const SegmentedControlContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1143
1858
|
displayName: "atoms-segmented-controlstyles__SegmentedControlContainer",
|
|
1144
1859
|
componentId: "sc-1lpqq2u-1"
|
|
1145
1860
|
})(["display:flex;flex-direction:column;gap:", ";", ";"], ({
|
|
1146
1861
|
theme
|
|
1147
1862
|
}) => theme.tokens.padding.XS, ({
|
|
1148
|
-
fullWidth
|
|
1149
|
-
}) => fullWidth && styled.css(["button{flex:1;}"]));
|
|
1863
|
+
$fullWidth
|
|
1864
|
+
}) => $fullWidth && styled.css(["button{flex:1;}"]));
|
|
1150
1865
|
const SegmentedControlWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1151
1866
|
displayName: "atoms-segmented-controlstyles__SegmentedControlWrapper",
|
|
1152
1867
|
componentId: "sc-1lpqq2u-2"
|
|
@@ -1166,8 +1881,8 @@ const OptionLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
|
|
|
1166
1881
|
componentId: "sc-1lpqq2u-3"
|
|
1167
1882
|
})(["color:", ";font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";"], ({
|
|
1168
1883
|
theme,
|
|
1169
|
-
pressed
|
|
1170
|
-
}) => pressed ? theme.components.segmentControl.text.color.pressed : theme.components.segmentControl.text.color.default, ({
|
|
1884
|
+
$pressed
|
|
1885
|
+
}) => $pressed ? theme.components.segmentControl.text.color.pressed : theme.components.segmentControl.text.color.default, ({
|
|
1171
1886
|
theme
|
|
1172
1887
|
}) => theme.components.segmentControl.fieldLabel.fontSize, ({
|
|
1173
1888
|
theme
|
|
@@ -1224,12 +1939,12 @@ const SegmentedControl = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
1224
1939
|
return options.map(option => jsxRuntime.jsx(Option, Object.assign({
|
|
1225
1940
|
"data-testid": `segmentedcontrol-option-${option.value}`,
|
|
1226
1941
|
onClick: () => onClick(option.value),
|
|
1227
|
-
pressed: option.value === value,
|
|
1942
|
+
"$pressed": option.value === value,
|
|
1228
1943
|
type: "button",
|
|
1229
|
-
hasError: !!errorMessage
|
|
1944
|
+
"$hasError": !!errorMessage
|
|
1230
1945
|
}, uiUtils.applyDataAttributes(props, `option-${option.value}`), {
|
|
1231
1946
|
children: jsxRuntime.jsx(OptionLabel, Object.assign({
|
|
1232
|
-
pressed: option.value === value
|
|
1947
|
+
"$pressed": option.value === value
|
|
1233
1948
|
}, uiUtils.applyDataAttributes(props, `option-label-${option.label}`), {
|
|
1234
1949
|
children: option.label
|
|
1235
1950
|
}))
|
|
@@ -1238,7 +1953,7 @@ const SegmentedControl = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
1238
1953
|
return jsxRuntime.jsxs(SegmentedControlContainer, Object.assign({
|
|
1239
1954
|
id: id,
|
|
1240
1955
|
"data-testid": dataTestId,
|
|
1241
|
-
fullWidth: fullWidth,
|
|
1956
|
+
"$fullWidth": fullWidth,
|
|
1242
1957
|
ref: ref
|
|
1243
1958
|
}, uiUtils.applyDataAttributes(props), {
|
|
1244
1959
|
children: [jsxRuntime.jsx(SegmentedControlWrapper, {
|