@sinco/react 1.0.7-rc.11 → 1.0.7-rc.13
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +53 -0
- package/index.js +345 -1846
- package/package.json +1 -1
- package/src/index.d.ts +0 -1
- package/src/lib/Theme/index.d.ts +13 -0
- package/assets/sinco-icons.svg +0 -146
- package/src/lib/Components/EmptyState.d.ts +0 -15
- package/src/lib/Components/index.d.ts +0 -1
package/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { forwardRef, useContext } from 'react';
|
3
|
-
import {
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
4
4
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
6
6
|
|
@@ -9,7 +9,7 @@ var check = function (it) {
|
|
9
9
|
};
|
10
10
|
|
11
11
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
12
|
-
var global$
|
12
|
+
var global$b =
|
13
13
|
// eslint-disable-next-line es/no-global-this -- safe
|
14
14
|
check(typeof globalThis == 'object' && globalThis) ||
|
15
15
|
check(typeof window == 'object' && window) ||
|
@@ -21,7 +21,7 @@ var global$e =
|
|
21
21
|
|
22
22
|
var objectGetOwnPropertyDescriptor = {};
|
23
23
|
|
24
|
-
var fails$
|
24
|
+
var fails$9 = function (exec) {
|
25
25
|
try {
|
26
26
|
return !!exec();
|
27
27
|
} catch (error) {
|
@@ -29,17 +29,17 @@ var fails$d = function (exec) {
|
|
29
29
|
}
|
30
30
|
};
|
31
31
|
|
32
|
-
var fails$
|
32
|
+
var fails$8 = fails$9;
|
33
33
|
|
34
34
|
// Detect IE8's incomplete defineProperty implementation
|
35
|
-
var descriptors = !fails$
|
35
|
+
var descriptors = !fails$8(function () {
|
36
36
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
37
37
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
38
38
|
});
|
39
39
|
|
40
|
-
var fails$
|
40
|
+
var fails$7 = fails$9;
|
41
41
|
|
42
|
-
var functionBindNative = !fails$
|
42
|
+
var functionBindNative = !fails$7(function () {
|
43
43
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
44
44
|
var test = (function () { /* empty */ }).bind();
|
45
45
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
@@ -48,10 +48,10 @@ var functionBindNative = !fails$b(function () {
|
|
48
48
|
|
49
49
|
var NATIVE_BIND$1 = functionBindNative;
|
50
50
|
|
51
|
-
var call$
|
51
|
+
var call$5 = Function.prototype.call;
|
52
52
|
|
53
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
54
|
-
return call$
|
53
|
+
var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
|
54
|
+
return call$5.apply(call$5, arguments);
|
55
55
|
};
|
56
56
|
|
57
57
|
var objectPropertyIsEnumerable = {};
|
@@ -82,63 +82,63 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
82
82
|
var NATIVE_BIND = functionBindNative;
|
83
83
|
|
84
84
|
var FunctionPrototype$1 = Function.prototype;
|
85
|
-
var call$
|
86
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$
|
85
|
+
var call$4 = FunctionPrototype$1.call;
|
86
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
|
87
87
|
|
88
88
|
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
89
89
|
return function () {
|
90
|
-
return call$
|
90
|
+
return call$4.apply(fn, arguments);
|
91
91
|
};
|
92
92
|
};
|
93
93
|
|
94
|
-
var uncurryThis$
|
94
|
+
var uncurryThis$9 = functionUncurryThis;
|
95
95
|
|
96
|
-
var toString$
|
97
|
-
var stringSlice$
|
96
|
+
var toString$1 = uncurryThis$9({}.toString);
|
97
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
98
98
|
|
99
|
-
var classofRaw
|
100
|
-
return stringSlice$
|
99
|
+
var classofRaw = function (it) {
|
100
|
+
return stringSlice$1(toString$1(it), 8, -1);
|
101
101
|
};
|
102
102
|
|
103
|
-
var uncurryThis$
|
104
|
-
var fails$
|
105
|
-
var classof
|
103
|
+
var uncurryThis$8 = functionUncurryThis;
|
104
|
+
var fails$6 = fails$9;
|
105
|
+
var classof = classofRaw;
|
106
106
|
|
107
|
-
var $Object$
|
108
|
-
var split = uncurryThis$
|
107
|
+
var $Object$2 = Object;
|
108
|
+
var split = uncurryThis$8(''.split);
|
109
109
|
|
110
110
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
111
|
-
var indexedObject = fails$
|
111
|
+
var indexedObject = fails$6(function () {
|
112
112
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
113
113
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
114
|
-
return !$Object$
|
114
|
+
return !$Object$2('z').propertyIsEnumerable(0);
|
115
115
|
}) ? function (it) {
|
116
|
-
return classof
|
117
|
-
} : $Object$
|
116
|
+
return classof(it) == 'String' ? split(it, '') : $Object$2(it);
|
117
|
+
} : $Object$2;
|
118
118
|
|
119
119
|
// we can't use just `it == null` since of `document.all` special case
|
120
120
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
121
|
-
var isNullOrUndefined$
|
121
|
+
var isNullOrUndefined$2 = function (it) {
|
122
122
|
return it === null || it === undefined;
|
123
123
|
};
|
124
124
|
|
125
|
-
var isNullOrUndefined$
|
125
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
126
126
|
|
127
|
-
var $TypeError$
|
127
|
+
var $TypeError$5 = TypeError;
|
128
128
|
|
129
129
|
// `RequireObjectCoercible` abstract operation
|
130
130
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
131
|
-
var requireObjectCoercible$
|
132
|
-
if (isNullOrUndefined$
|
131
|
+
var requireObjectCoercible$2 = function (it) {
|
132
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
|
133
133
|
return it;
|
134
134
|
};
|
135
135
|
|
136
136
|
// toObject with fallback for non-array-like ES3 strings
|
137
137
|
var IndexedObject$1 = indexedObject;
|
138
|
-
var requireObjectCoercible$
|
138
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
139
139
|
|
140
|
-
var toIndexedObject$
|
141
|
-
return IndexedObject$1(requireObjectCoercible$
|
140
|
+
var toIndexedObject$3 = function (it) {
|
141
|
+
return IndexedObject$1(requireObjectCoercible$1(it));
|
142
142
|
};
|
143
143
|
|
144
144
|
var documentAll$2 = typeof document == 'object' && document.all;
|
@@ -158,45 +158,45 @@ var documentAll$1 = $documentAll$1.all;
|
|
158
158
|
|
159
159
|
// `IsCallable` abstract operation
|
160
160
|
// https://tc39.es/ecma262/#sec-iscallable
|
161
|
-
var isCallable$
|
161
|
+
var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
162
162
|
return typeof argument == 'function' || argument === documentAll$1;
|
163
163
|
} : function (argument) {
|
164
164
|
return typeof argument == 'function';
|
165
165
|
};
|
166
166
|
|
167
|
-
var isCallable$
|
167
|
+
var isCallable$9 = isCallable$a;
|
168
168
|
var $documentAll = documentAll_1;
|
169
169
|
|
170
170
|
var documentAll = $documentAll.all;
|
171
171
|
|
172
172
|
var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
|
173
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
173
|
+
return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
|
174
174
|
} : function (it) {
|
175
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
175
|
+
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
176
176
|
};
|
177
177
|
|
178
|
-
var global$
|
179
|
-
var isCallable$
|
178
|
+
var global$a = global$b;
|
179
|
+
var isCallable$8 = isCallable$a;
|
180
180
|
|
181
181
|
var aFunction = function (argument) {
|
182
|
-
return isCallable$
|
182
|
+
return isCallable$8(argument) ? argument : undefined;
|
183
183
|
};
|
184
184
|
|
185
|
-
var getBuiltIn$
|
186
|
-
return arguments.length < 2 ? aFunction(global$
|
185
|
+
var getBuiltIn$2 = function (namespace, method) {
|
186
|
+
return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
|
187
187
|
};
|
188
188
|
|
189
|
-
var uncurryThis$
|
189
|
+
var uncurryThis$7 = functionUncurryThis;
|
190
190
|
|
191
|
-
var objectIsPrototypeOf = uncurryThis$
|
191
|
+
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
192
192
|
|
193
193
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
194
194
|
|
195
|
-
var global$
|
195
|
+
var global$9 = global$b;
|
196
196
|
var userAgent = engineUserAgent;
|
197
197
|
|
198
|
-
var process$1 = global$
|
199
|
-
var Deno = global$
|
198
|
+
var process$1 = global$9.process;
|
199
|
+
var Deno = global$9.Deno;
|
200
200
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
201
201
|
var v8 = versions && versions.v8;
|
202
202
|
var match$1, version;
|
@@ -223,19 +223,19 @@ var engineV8Version = version;
|
|
223
223
|
/* eslint-disable es/no-symbol -- required for testing */
|
224
224
|
|
225
225
|
var V8_VERSION = engineV8Version;
|
226
|
-
var fails$
|
227
|
-
var global$
|
226
|
+
var fails$5 = fails$9;
|
227
|
+
var global$8 = global$b;
|
228
228
|
|
229
|
-
var $String$
|
229
|
+
var $String$3 = global$8.String;
|
230
230
|
|
231
231
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
232
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
232
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
233
233
|
var symbol = Symbol();
|
234
234
|
// Chrome 38 Symbol has incorrect toString conversion
|
235
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
236
236
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
237
237
|
// of course, fail.
|
238
|
-
return !$String$
|
238
|
+
return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
|
239
239
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
240
240
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
241
241
|
});
|
@@ -248,93 +248,93 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
248
248
|
&& !Symbol.sham
|
249
249
|
&& typeof Symbol.iterator == 'symbol';
|
250
250
|
|
251
|
-
var getBuiltIn$
|
252
|
-
var isCallable$
|
251
|
+
var getBuiltIn$1 = getBuiltIn$2;
|
252
|
+
var isCallable$7 = isCallable$a;
|
253
253
|
var isPrototypeOf = objectIsPrototypeOf;
|
254
254
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
255
255
|
|
256
|
-
var $Object$
|
256
|
+
var $Object$1 = Object;
|
257
257
|
|
258
258
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
259
259
|
return typeof it == 'symbol';
|
260
260
|
} : function (it) {
|
261
|
-
var $Symbol = getBuiltIn$
|
262
|
-
return isCallable$
|
261
|
+
var $Symbol = getBuiltIn$1('Symbol');
|
262
|
+
return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
|
263
263
|
};
|
264
264
|
|
265
|
-
var $String$
|
265
|
+
var $String$2 = String;
|
266
266
|
|
267
267
|
var tryToString$1 = function (argument) {
|
268
268
|
try {
|
269
|
-
return $String$
|
269
|
+
return $String$2(argument);
|
270
270
|
} catch (error) {
|
271
271
|
return 'Object';
|
272
272
|
}
|
273
273
|
};
|
274
274
|
|
275
|
-
var isCallable$
|
275
|
+
var isCallable$6 = isCallable$a;
|
276
276
|
var tryToString = tryToString$1;
|
277
277
|
|
278
|
-
var $TypeError$
|
278
|
+
var $TypeError$4 = TypeError;
|
279
279
|
|
280
280
|
// `Assert: IsCallable(argument) is true`
|
281
281
|
var aCallable$1 = function (argument) {
|
282
|
-
if (isCallable$
|
283
|
-
throw $TypeError$
|
282
|
+
if (isCallable$6(argument)) return argument;
|
283
|
+
throw $TypeError$4(tryToString(argument) + ' is not a function');
|
284
284
|
};
|
285
285
|
|
286
286
|
var aCallable = aCallable$1;
|
287
|
-
var isNullOrUndefined
|
287
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
288
288
|
|
289
289
|
// `GetMethod` abstract operation
|
290
290
|
// https://tc39.es/ecma262/#sec-getmethod
|
291
|
-
var getMethod$
|
291
|
+
var getMethod$1 = function (V, P) {
|
292
292
|
var func = V[P];
|
293
|
-
return isNullOrUndefined
|
293
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
294
294
|
};
|
295
295
|
|
296
|
-
var call$
|
297
|
-
var isCallable$
|
296
|
+
var call$3 = functionCall;
|
297
|
+
var isCallable$5 = isCallable$a;
|
298
298
|
var isObject$4 = isObject$5;
|
299
299
|
|
300
|
-
var $TypeError$
|
300
|
+
var $TypeError$3 = TypeError;
|
301
301
|
|
302
302
|
// `OrdinaryToPrimitive` abstract operation
|
303
303
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
304
304
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
305
305
|
var fn, val;
|
306
|
-
if (pref === 'string' && isCallable$
|
307
|
-
if (isCallable$
|
308
|
-
if (pref !== 'string' && isCallable$
|
309
|
-
throw $TypeError$
|
306
|
+
if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
|
307
|
+
if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
|
308
|
+
if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
|
309
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
310
310
|
};
|
311
311
|
|
312
|
-
var shared$
|
312
|
+
var shared$3 = {exports: {}};
|
313
313
|
|
314
|
-
var global$
|
314
|
+
var global$7 = global$b;
|
315
315
|
|
316
316
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
317
317
|
var defineProperty$2 = Object.defineProperty;
|
318
318
|
|
319
319
|
var defineGlobalProperty$3 = function (key, value) {
|
320
320
|
try {
|
321
|
-
defineProperty$2(global$
|
321
|
+
defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
|
322
322
|
} catch (error) {
|
323
|
-
global$
|
323
|
+
global$7[key] = value;
|
324
324
|
} return value;
|
325
325
|
};
|
326
326
|
|
327
|
-
var global$
|
327
|
+
var global$6 = global$b;
|
328
328
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
329
329
|
|
330
330
|
var SHARED = '__core-js_shared__';
|
331
|
-
var store$3 = global$
|
331
|
+
var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
|
332
332
|
|
333
333
|
var sharedStore = store$3;
|
334
334
|
|
335
335
|
var store$2 = sharedStore;
|
336
336
|
|
337
|
-
(shared$
|
337
|
+
(shared$3.exports = function (key, value) {
|
338
338
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
339
339
|
})('versions', []).push({
|
340
340
|
version: '3.30.2',
|
@@ -344,20 +344,20 @@ var store$2 = sharedStore;
|
|
344
344
|
source: 'https://github.com/zloirock/core-js'
|
345
345
|
});
|
346
346
|
|
347
|
-
var requireObjectCoercible
|
347
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
348
348
|
|
349
|
-
var $Object
|
349
|
+
var $Object = Object;
|
350
350
|
|
351
351
|
// `ToObject` abstract operation
|
352
352
|
// https://tc39.es/ecma262/#sec-toobject
|
353
353
|
var toObject$3 = function (argument) {
|
354
|
-
return $Object
|
354
|
+
return $Object(requireObjectCoercible(argument));
|
355
355
|
};
|
356
356
|
|
357
|
-
var uncurryThis$
|
357
|
+
var uncurryThis$6 = functionUncurryThis;
|
358
358
|
var toObject$2 = toObject$3;
|
359
359
|
|
360
|
-
var hasOwnProperty$2 = uncurryThis$
|
360
|
+
var hasOwnProperty$2 = uncurryThis$6({}.hasOwnProperty);
|
361
361
|
|
362
362
|
// `HasOwnProperty` abstract operation
|
363
363
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
@@ -366,28 +366,28 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
366
366
|
return hasOwnProperty$2(toObject$2(it), key);
|
367
367
|
};
|
368
368
|
|
369
|
-
var uncurryThis$
|
369
|
+
var uncurryThis$5 = functionUncurryThis;
|
370
370
|
|
371
371
|
var id = 0;
|
372
372
|
var postfix = Math.random();
|
373
|
-
var toString
|
373
|
+
var toString = uncurryThis$5(1.0.toString);
|
374
374
|
|
375
375
|
var uid$2 = function (key) {
|
376
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString
|
376
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
377
377
|
};
|
378
378
|
|
379
|
-
var global$
|
380
|
-
var shared$
|
379
|
+
var global$5 = global$b;
|
380
|
+
var shared$2 = shared$3.exports;
|
381
381
|
var hasOwn$6 = hasOwnProperty_1;
|
382
382
|
var uid$1 = uid$2;
|
383
383
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
384
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
385
385
|
|
386
|
-
var Symbol$1 = global$
|
387
|
-
var WellKnownSymbolsStore = shared$
|
386
|
+
var Symbol$1 = global$5.Symbol;
|
387
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
388
388
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
389
389
|
|
390
|
-
var wellKnownSymbol$
|
390
|
+
var wellKnownSymbol$1 = function (name) {
|
391
391
|
if (!hasOwn$6(WellKnownSymbolsStore, name)) {
|
392
392
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
|
393
393
|
? Symbol$1[name]
|
@@ -395,27 +395,27 @@ var wellKnownSymbol$4 = function (name) {
|
|
395
395
|
} return WellKnownSymbolsStore[name];
|
396
396
|
};
|
397
397
|
|
398
|
-
var call$
|
398
|
+
var call$2 = functionCall;
|
399
399
|
var isObject$3 = isObject$5;
|
400
400
|
var isSymbol$1 = isSymbol$2;
|
401
|
-
var getMethod
|
401
|
+
var getMethod = getMethod$1;
|
402
402
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
403
|
-
var wellKnownSymbol
|
403
|
+
var wellKnownSymbol = wellKnownSymbol$1;
|
404
404
|
|
405
|
-
var $TypeError$
|
406
|
-
var TO_PRIMITIVE = wellKnownSymbol
|
405
|
+
var $TypeError$2 = TypeError;
|
406
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
407
407
|
|
408
408
|
// `ToPrimitive` abstract operation
|
409
409
|
// https://tc39.es/ecma262/#sec-toprimitive
|
410
410
|
var toPrimitive$1 = function (input, pref) {
|
411
411
|
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
412
|
-
var exoticToPrim = getMethod
|
412
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
413
413
|
var result;
|
414
414
|
if (exoticToPrim) {
|
415
415
|
if (pref === undefined) pref = 'default';
|
416
|
-
result = call$
|
416
|
+
result = call$2(exoticToPrim, input, pref);
|
417
417
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
418
|
-
throw $TypeError$
|
418
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
419
419
|
}
|
420
420
|
if (pref === undefined) pref = 'number';
|
421
421
|
return ordinaryToPrimitive(input, pref);
|
@@ -431,34 +431,34 @@ var toPropertyKey$2 = function (argument) {
|
|
431
431
|
return isSymbol(key) ? key : key + '';
|
432
432
|
};
|
433
433
|
|
434
|
-
var global$
|
434
|
+
var global$4 = global$b;
|
435
435
|
var isObject$2 = isObject$5;
|
436
436
|
|
437
|
-
var document$1 = global$
|
437
|
+
var document$1 = global$4.document;
|
438
438
|
// typeof document.createElement is 'object' in old IE
|
439
439
|
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
440
440
|
|
441
|
-
var documentCreateElement
|
441
|
+
var documentCreateElement = function (it) {
|
442
442
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
443
443
|
};
|
444
444
|
|
445
|
-
var DESCRIPTORS$
|
446
|
-
var fails$
|
447
|
-
var createElement = documentCreateElement
|
445
|
+
var DESCRIPTORS$7 = descriptors;
|
446
|
+
var fails$4 = fails$9;
|
447
|
+
var createElement = documentCreateElement;
|
448
448
|
|
449
449
|
// Thanks to IE8 for its funny defineProperty
|
450
|
-
var ie8DomDefine = !DESCRIPTORS$
|
450
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
|
451
451
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
452
452
|
return Object.defineProperty(createElement('div'), 'a', {
|
453
453
|
get: function () { return 7; }
|
454
454
|
}).a != 7;
|
455
455
|
});
|
456
456
|
|
457
|
-
var DESCRIPTORS$
|
458
|
-
var call$
|
457
|
+
var DESCRIPTORS$6 = descriptors;
|
458
|
+
var call$1 = functionCall;
|
459
459
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
460
460
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
461
|
-
var toIndexedObject$
|
461
|
+
var toIndexedObject$2 = toIndexedObject$3;
|
462
462
|
var toPropertyKey$1 = toPropertyKey$2;
|
463
463
|
var hasOwn$5 = hasOwnProperty_1;
|
464
464
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
@@ -468,23 +468,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
468
468
|
|
469
469
|
// `Object.getOwnPropertyDescriptor` method
|
470
470
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
471
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
472
|
-
O = toIndexedObject$
|
471
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
472
|
+
O = toIndexedObject$2(O);
|
473
473
|
P = toPropertyKey$1(P);
|
474
474
|
if (IE8_DOM_DEFINE$1) try {
|
475
475
|
return $getOwnPropertyDescriptor$1(O, P);
|
476
476
|
} catch (error) { /* empty */ }
|
477
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$
|
477
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
478
478
|
};
|
479
479
|
|
480
480
|
var objectDefineProperty = {};
|
481
481
|
|
482
|
-
var DESCRIPTORS$
|
483
|
-
var fails$
|
482
|
+
var DESCRIPTORS$5 = descriptors;
|
483
|
+
var fails$3 = fails$9;
|
484
484
|
|
485
485
|
// V8 ~ Chrome 36-
|
486
486
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
487
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
487
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
488
488
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
489
489
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
490
490
|
value: 42,
|
@@ -494,22 +494,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$7(function () {
|
|
494
494
|
|
495
495
|
var isObject$1 = isObject$5;
|
496
496
|
|
497
|
-
var $String$
|
498
|
-
var $TypeError$
|
497
|
+
var $String$1 = String;
|
498
|
+
var $TypeError$1 = TypeError;
|
499
499
|
|
500
500
|
// `Assert: Type(argument) is Object`
|
501
|
-
var anObject$
|
501
|
+
var anObject$2 = function (argument) {
|
502
502
|
if (isObject$1(argument)) return argument;
|
503
|
-
throw $TypeError$
|
503
|
+
throw $TypeError$1($String$1(argument) + ' is not an object');
|
504
504
|
};
|
505
505
|
|
506
|
-
var DESCRIPTORS$
|
506
|
+
var DESCRIPTORS$4 = descriptors;
|
507
507
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
508
|
-
var V8_PROTOTYPE_DEFINE_BUG
|
509
|
-
var anObject$
|
508
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
509
|
+
var anObject$1 = anObject$2;
|
510
510
|
var toPropertyKey = toPropertyKey$2;
|
511
511
|
|
512
|
-
var $TypeError
|
512
|
+
var $TypeError = TypeError;
|
513
513
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
514
514
|
var $defineProperty = Object.defineProperty;
|
515
515
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
@@ -520,10 +520,10 @@ var WRITABLE = 'writable';
|
|
520
520
|
|
521
521
|
// `Object.defineProperty` method
|
522
522
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
523
|
-
objectDefineProperty.f = DESCRIPTORS$
|
524
|
-
anObject$
|
523
|
+
objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
524
|
+
anObject$1(O);
|
525
525
|
P = toPropertyKey(P);
|
526
|
-
anObject$
|
526
|
+
anObject$1(Attributes);
|
527
527
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
528
528
|
var current = $getOwnPropertyDescriptor(O, P);
|
529
529
|
if (current && current[WRITABLE]) {
|
@@ -536,23 +536,23 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
536
536
|
}
|
537
537
|
} return $defineProperty(O, P, Attributes);
|
538
538
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
539
|
-
anObject$
|
539
|
+
anObject$1(O);
|
540
540
|
P = toPropertyKey(P);
|
541
|
-
anObject$
|
541
|
+
anObject$1(Attributes);
|
542
542
|
if (IE8_DOM_DEFINE) try {
|
543
543
|
return $defineProperty(O, P, Attributes);
|
544
544
|
} catch (error) { /* empty */ }
|
545
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError
|
545
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
546
546
|
if ('value' in Attributes) O[P] = Attributes.value;
|
547
547
|
return O;
|
548
548
|
};
|
549
549
|
|
550
|
-
var DESCRIPTORS$
|
551
|
-
var definePropertyModule$
|
550
|
+
var DESCRIPTORS$3 = descriptors;
|
551
|
+
var definePropertyModule$2 = objectDefineProperty;
|
552
552
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
553
553
|
|
554
|
-
var createNonEnumerableProperty$
|
555
|
-
return definePropertyModule$
|
554
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
|
555
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
|
556
556
|
} : function (object, key, value) {
|
557
557
|
object[key] = value;
|
558
558
|
return object;
|
@@ -560,17 +560,17 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value
|
|
560
560
|
|
561
561
|
var makeBuiltIn$2 = {exports: {}};
|
562
562
|
|
563
|
-
var DESCRIPTORS$
|
563
|
+
var DESCRIPTORS$2 = descriptors;
|
564
564
|
var hasOwn$4 = hasOwnProperty_1;
|
565
565
|
|
566
566
|
var FunctionPrototype = Function.prototype;
|
567
567
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
568
|
-
var getDescriptor = DESCRIPTORS$
|
568
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
569
569
|
|
570
570
|
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
571
571
|
// additional protection from minified / mangled / dropped function names
|
572
572
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
573
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
573
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
|
574
574
|
|
575
575
|
var functionName = {
|
576
576
|
EXISTS: EXISTS,
|
@@ -578,14 +578,14 @@ var functionName = {
|
|
578
578
|
CONFIGURABLE: CONFIGURABLE
|
579
579
|
};
|
580
580
|
|
581
|
-
var uncurryThis$
|
582
|
-
var isCallable$
|
581
|
+
var uncurryThis$4 = functionUncurryThis;
|
582
|
+
var isCallable$4 = isCallable$a;
|
583
583
|
var store$1 = sharedStore;
|
584
584
|
|
585
|
-
var functionToString = uncurryThis$
|
585
|
+
var functionToString = uncurryThis$4(Function.toString);
|
586
586
|
|
587
587
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
588
|
-
if (!isCallable$
|
588
|
+
if (!isCallable$4(store$1.inspectSource)) {
|
589
589
|
store$1.inspectSource = function (it) {
|
590
590
|
return functionToString(it);
|
591
591
|
};
|
@@ -593,36 +593,36 @@ if (!isCallable$6(store$1.inspectSource)) {
|
|
593
593
|
|
594
594
|
var inspectSource$1 = store$1.inspectSource;
|
595
595
|
|
596
|
-
var global$
|
597
|
-
var isCallable$
|
596
|
+
var global$3 = global$b;
|
597
|
+
var isCallable$3 = isCallable$a;
|
598
598
|
|
599
|
-
var WeakMap$2 = global$
|
599
|
+
var WeakMap$2 = global$3.WeakMap;
|
600
600
|
|
601
|
-
var weakMapBasicDetection = isCallable$
|
601
|
+
var weakMapBasicDetection = isCallable$3(WeakMap$2) && /native code/.test(String(WeakMap$2));
|
602
602
|
|
603
|
-
var shared$
|
603
|
+
var shared$1 = shared$3.exports;
|
604
604
|
var uid = uid$2;
|
605
605
|
|
606
|
-
var keys = shared$
|
606
|
+
var keys = shared$1('keys');
|
607
607
|
|
608
|
-
var sharedKey$
|
608
|
+
var sharedKey$1 = function (key) {
|
609
609
|
return keys[key] || (keys[key] = uid(key));
|
610
610
|
};
|
611
611
|
|
612
|
-
var hiddenKeys$
|
612
|
+
var hiddenKeys$3 = {};
|
613
613
|
|
614
614
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
615
|
-
var global$
|
615
|
+
var global$2 = global$b;
|
616
616
|
var isObject = isObject$5;
|
617
|
-
var createNonEnumerableProperty$
|
617
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
618
618
|
var hasOwn$3 = hasOwnProperty_1;
|
619
|
-
var shared
|
620
|
-
var sharedKey
|
621
|
-
var hiddenKeys$
|
619
|
+
var shared = sharedStore;
|
620
|
+
var sharedKey = sharedKey$1;
|
621
|
+
var hiddenKeys$2 = hiddenKeys$3;
|
622
622
|
|
623
623
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
624
|
-
var TypeError$1 = global$
|
625
|
-
var WeakMap$1 = global$
|
624
|
+
var TypeError$1 = global$2.TypeError;
|
625
|
+
var WeakMap$1 = global$2.WeakMap;
|
626
626
|
var set, get, has$3;
|
627
627
|
|
628
628
|
var enforce = function (it) {
|
@@ -638,8 +638,8 @@ var getterFor = function (TYPE) {
|
|
638
638
|
};
|
639
639
|
};
|
640
640
|
|
641
|
-
if (NATIVE_WEAK_MAP || shared
|
642
|
-
var store = shared
|
641
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
642
|
+
var store = shared.state || (shared.state = new WeakMap$1());
|
643
643
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
644
644
|
store.get = store.get;
|
645
645
|
store.has = store.has;
|
@@ -658,12 +658,12 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
658
658
|
return store.has(it);
|
659
659
|
};
|
660
660
|
} else {
|
661
|
-
var STATE = sharedKey
|
662
|
-
hiddenKeys$
|
661
|
+
var STATE = sharedKey('state');
|
662
|
+
hiddenKeys$2[STATE] = true;
|
663
663
|
set = function (it, metadata) {
|
664
664
|
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
665
665
|
metadata.facade = it;
|
666
|
-
createNonEnumerableProperty$
|
666
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
667
667
|
return metadata;
|
668
668
|
};
|
669
669
|
get = function (it) {
|
@@ -682,38 +682,38 @@ var internalState = {
|
|
682
682
|
getterFor: getterFor
|
683
683
|
};
|
684
684
|
|
685
|
-
var uncurryThis$
|
686
|
-
var fails$
|
687
|
-
var isCallable$
|
685
|
+
var uncurryThis$3 = functionUncurryThis;
|
686
|
+
var fails$2 = fails$9;
|
687
|
+
var isCallable$2 = isCallable$a;
|
688
688
|
var hasOwn$2 = hasOwnProperty_1;
|
689
|
-
var DESCRIPTORS$
|
689
|
+
var DESCRIPTORS$1 = descriptors;
|
690
690
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
691
691
|
var inspectSource = inspectSource$1;
|
692
692
|
var InternalStateModule = internalState;
|
693
693
|
|
694
694
|
var enforceInternalState = InternalStateModule.enforce;
|
695
|
-
var getInternalState
|
696
|
-
var $String
|
695
|
+
var getInternalState = InternalStateModule.get;
|
696
|
+
var $String = String;
|
697
697
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
698
698
|
var defineProperty$1 = Object.defineProperty;
|
699
|
-
var stringSlice
|
700
|
-
var replace$
|
701
|
-
var join = uncurryThis$
|
699
|
+
var stringSlice = uncurryThis$3(''.slice);
|
700
|
+
var replace$1 = uncurryThis$3(''.replace);
|
701
|
+
var join = uncurryThis$3([].join);
|
702
702
|
|
703
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
703
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
|
704
704
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
705
705
|
});
|
706
706
|
|
707
707
|
var TEMPLATE = String(String).split('String');
|
708
708
|
|
709
709
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
710
|
-
if (stringSlice
|
711
|
-
name = '[' + replace$
|
710
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
711
|
+
name = '[' + replace$1($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
712
712
|
}
|
713
713
|
if (options && options.getter) name = 'get ' + name;
|
714
714
|
if (options && options.setter) name = 'set ' + name;
|
715
715
|
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
716
|
-
if (DESCRIPTORS$
|
716
|
+
if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
|
717
717
|
else value.name = name;
|
718
718
|
}
|
719
719
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
@@ -721,7 +721,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
721
721
|
}
|
722
722
|
try {
|
723
723
|
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
724
|
-
if (DESCRIPTORS$
|
724
|
+
if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
|
725
725
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
726
726
|
} else if (value.prototype) value.prototype = undefined;
|
727
727
|
} catch (error) { /* empty */ }
|
@@ -734,19 +734,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
734
734
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
735
735
|
// eslint-disable-next-line no-extend-native -- required
|
736
736
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
737
|
-
return isCallable$
|
737
|
+
return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
|
738
738
|
}, 'toString');
|
739
739
|
|
740
|
-
var isCallable$
|
741
|
-
var definePropertyModule$
|
740
|
+
var isCallable$1 = isCallable$a;
|
741
|
+
var definePropertyModule$1 = objectDefineProperty;
|
742
742
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
743
743
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
744
744
|
|
745
|
-
var defineBuiltIn$
|
745
|
+
var defineBuiltIn$1 = function (O, key, value, options) {
|
746
746
|
if (!options) options = {};
|
747
747
|
var simple = options.enumerable;
|
748
748
|
var name = options.name !== undefined ? options.name : key;
|
749
|
-
if (isCallable$
|
749
|
+
if (isCallable$1(value)) makeBuiltIn(value, name, options);
|
750
750
|
if (options.global) {
|
751
751
|
if (simple) O[key] = value;
|
752
752
|
else defineGlobalProperty$1(key, value);
|
@@ -756,7 +756,7 @@ var defineBuiltIn$2 = function (O, key, value, options) {
|
|
756
756
|
else if (O[key]) simple = true;
|
757
757
|
} catch (error) { /* empty */ }
|
758
758
|
if (simple) O[key] = value;
|
759
|
-
else definePropertyModule$
|
759
|
+
else definePropertyModule$1.f(O, key, {
|
760
760
|
value: value,
|
761
761
|
enumerable: false,
|
762
762
|
configurable: !options.nonConfigurable,
|
@@ -819,14 +819,14 @@ var lengthOfArrayLike$1 = function (obj) {
|
|
819
819
|
return toLength(obj.length);
|
820
820
|
};
|
821
821
|
|
822
|
-
var toIndexedObject$
|
822
|
+
var toIndexedObject$1 = toIndexedObject$3;
|
823
823
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
824
824
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
825
825
|
|
826
826
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
827
827
|
var createMethod = function (IS_INCLUDES) {
|
828
828
|
return function ($this, el, fromIndex) {
|
829
|
-
var O = toIndexedObject$
|
829
|
+
var O = toIndexedObject$1($this);
|
830
830
|
var length = lengthOfArrayLike(O);
|
831
831
|
var index = toAbsoluteIndex(fromIndex, length);
|
832
832
|
var value;
|
@@ -852,29 +852,29 @@ var arrayIncludes = {
|
|
852
852
|
indexOf: createMethod(false)
|
853
853
|
};
|
854
854
|
|
855
|
-
var uncurryThis$
|
855
|
+
var uncurryThis$2 = functionUncurryThis;
|
856
856
|
var hasOwn$1 = hasOwnProperty_1;
|
857
|
-
var toIndexedObject
|
858
|
-
var indexOf
|
859
|
-
var hiddenKeys$
|
857
|
+
var toIndexedObject = toIndexedObject$3;
|
858
|
+
var indexOf = arrayIncludes.indexOf;
|
859
|
+
var hiddenKeys$1 = hiddenKeys$3;
|
860
860
|
|
861
|
-
var push = uncurryThis$
|
861
|
+
var push = uncurryThis$2([].push);
|
862
862
|
|
863
863
|
var objectKeysInternal = function (object, names) {
|
864
|
-
var O = toIndexedObject
|
864
|
+
var O = toIndexedObject(object);
|
865
865
|
var i = 0;
|
866
866
|
var result = [];
|
867
867
|
var key;
|
868
|
-
for (key in O) !hasOwn$1(hiddenKeys$
|
868
|
+
for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
|
869
869
|
// Don't enum bug & hidden keys
|
870
870
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
871
|
-
~indexOf
|
871
|
+
~indexOf(result, key) || push(result, key);
|
872
872
|
}
|
873
873
|
return result;
|
874
874
|
};
|
875
875
|
|
876
876
|
// IE8- don't enum bug keys
|
877
|
-
var enumBugKeys$
|
877
|
+
var enumBugKeys$2 = [
|
878
878
|
'constructor',
|
879
879
|
'hasOwnProperty',
|
880
880
|
'isPrototypeOf',
|
@@ -885,15 +885,15 @@ var enumBugKeys$3 = [
|
|
885
885
|
];
|
886
886
|
|
887
887
|
var internalObjectKeys$1 = objectKeysInternal;
|
888
|
-
var enumBugKeys$
|
888
|
+
var enumBugKeys$1 = enumBugKeys$2;
|
889
889
|
|
890
|
-
var hiddenKeys
|
890
|
+
var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
|
891
891
|
|
892
892
|
// `Object.getOwnPropertyNames` method
|
893
893
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
894
894
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
895
895
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
896
|
-
return internalObjectKeys$1(O, hiddenKeys
|
896
|
+
return internalObjectKeys$1(O, hiddenKeys);
|
897
897
|
};
|
898
898
|
|
899
899
|
var objectGetOwnPropertySymbols = {};
|
@@ -901,17 +901,17 @@ var objectGetOwnPropertySymbols = {};
|
|
901
901
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
902
902
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
903
903
|
|
904
|
-
var getBuiltIn
|
905
|
-
var uncurryThis$
|
904
|
+
var getBuiltIn = getBuiltIn$2;
|
905
|
+
var uncurryThis$1 = functionUncurryThis;
|
906
906
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
907
907
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
908
|
-
var anObject
|
908
|
+
var anObject = anObject$2;
|
909
909
|
|
910
|
-
var concat$1 = uncurryThis$
|
910
|
+
var concat$1 = uncurryThis$1([].concat);
|
911
911
|
|
912
912
|
// all object keys, includes non-enumerable and symbols
|
913
|
-
var ownKeys$1 = getBuiltIn
|
914
|
-
var keys = getOwnPropertyNamesModule.f(anObject
|
913
|
+
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
914
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
915
915
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
916
916
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
917
917
|
};
|
@@ -919,11 +919,11 @@ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
919
919
|
var hasOwn = hasOwnProperty_1;
|
920
920
|
var ownKeys = ownKeys$1;
|
921
921
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
922
|
-
var definePropertyModule
|
922
|
+
var definePropertyModule = objectDefineProperty;
|
923
923
|
|
924
924
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
925
925
|
var keys = ownKeys(source);
|
926
|
-
var defineProperty = definePropertyModule
|
926
|
+
var defineProperty = definePropertyModule.f;
|
927
927
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
928
928
|
for (var i = 0; i < keys.length; i++) {
|
929
929
|
var key = keys[i];
|
@@ -933,8 +933,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
933
933
|
}
|
934
934
|
};
|
935
935
|
|
936
|
-
var fails$
|
937
|
-
var isCallable
|
936
|
+
var fails$1 = fails$9;
|
937
|
+
var isCallable = isCallable$a;
|
938
938
|
|
939
939
|
var replacement = /#|\.prototype\./;
|
940
940
|
|
@@ -942,7 +942,7 @@ var isForced$1 = function (feature, detection) {
|
|
942
942
|
var value = data[normalize(feature)];
|
943
943
|
return value == POLYFILL ? true
|
944
944
|
: value == NATIVE ? false
|
945
|
-
: isCallable
|
945
|
+
: isCallable(detection) ? fails$1(detection)
|
946
946
|
: !!detection;
|
947
947
|
};
|
948
948
|
|
@@ -956,10 +956,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
956
956
|
|
957
957
|
var isForced_1 = isForced$1;
|
958
958
|
|
959
|
-
var global$
|
959
|
+
var global$1 = global$b;
|
960
960
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
961
|
-
var createNonEnumerableProperty
|
962
|
-
var defineBuiltIn
|
961
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
962
|
+
var defineBuiltIn = defineBuiltIn$1;
|
963
963
|
var defineGlobalProperty = defineGlobalProperty$3;
|
964
964
|
var copyConstructorProperties = copyConstructorProperties$1;
|
965
965
|
var isForced = isForced_1;
|
@@ -985,11 +985,11 @@ var _export = function (options, source) {
|
|
985
985
|
var STATIC = options.stat;
|
986
986
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
987
987
|
if (GLOBAL) {
|
988
|
-
target = global$
|
988
|
+
target = global$1;
|
989
989
|
} else if (STATIC) {
|
990
|
-
target = global$
|
990
|
+
target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
|
991
991
|
} else {
|
992
|
-
target = (global$
|
992
|
+
target = (global$1[TARGET] || {}).prototype;
|
993
993
|
}
|
994
994
|
if (target) for (key in source) {
|
995
995
|
sourceProperty = source[key];
|
@@ -1005,27 +1005,27 @@ var _export = function (options, source) {
|
|
1005
1005
|
}
|
1006
1006
|
// add a flag to not completely full polyfills
|
1007
1007
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
1008
|
-
createNonEnumerableProperty
|
1008
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1009
1009
|
}
|
1010
|
-
defineBuiltIn
|
1010
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
1011
1011
|
}
|
1012
1012
|
};
|
1013
1013
|
|
1014
1014
|
var internalObjectKeys = objectKeysInternal;
|
1015
|
-
var enumBugKeys
|
1015
|
+
var enumBugKeys = enumBugKeys$2;
|
1016
1016
|
|
1017
1017
|
// `Object.keys` method
|
1018
1018
|
// https://tc39.es/ecma262/#sec-object.keys
|
1019
1019
|
// eslint-disable-next-line es/no-object-keys -- safe
|
1020
|
-
var objectKeys$
|
1021
|
-
return internalObjectKeys(O, enumBugKeys
|
1020
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
1021
|
+
return internalObjectKeys(O, enumBugKeys);
|
1022
1022
|
};
|
1023
1023
|
|
1024
|
-
var DESCRIPTORS
|
1025
|
-
var uncurryThis
|
1026
|
-
var call
|
1027
|
-
var fails
|
1028
|
-
var objectKeys
|
1024
|
+
var DESCRIPTORS = descriptors;
|
1025
|
+
var uncurryThis = functionUncurryThis;
|
1026
|
+
var call = functionCall;
|
1027
|
+
var fails = fails$9;
|
1028
|
+
var objectKeys = objectKeys$1;
|
1029
1029
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
1030
1030
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
1031
1031
|
var toObject$1 = toObject$3;
|
@@ -1035,13 +1035,13 @@ var IndexedObject = indexedObject;
|
|
1035
1035
|
var $assign = Object.assign;
|
1036
1036
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1037
1037
|
var defineProperty = Object.defineProperty;
|
1038
|
-
var concat = uncurryThis
|
1038
|
+
var concat = uncurryThis([].concat);
|
1039
1039
|
|
1040
1040
|
// `Object.assign` method
|
1041
1041
|
// https://tc39.es/ecma262/#sec-object.assign
|
1042
|
-
var objectAssign$1 = !$assign || fails
|
1042
|
+
var objectAssign$1 = !$assign || fails(function () {
|
1043
1043
|
// should have correct order of operations (Edge bug)
|
1044
|
-
if (DESCRIPTORS
|
1044
|
+
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
1045
1045
|
enumerable: true,
|
1046
1046
|
get: function () {
|
1047
1047
|
defineProperty(this, 'b', {
|
@@ -1058,7 +1058,7 @@ var objectAssign$1 = !$assign || fails$4(function () {
|
|
1058
1058
|
var alphabet = 'abcdefghijklmnopqrst';
|
1059
1059
|
A[symbol] = 7;
|
1060
1060
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1061
|
-
return $assign({}, A)[symbol] != 7 || objectKeys
|
1061
|
+
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
1062
1062
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
1063
1063
|
var T = toObject$1(target);
|
1064
1064
|
var argumentsLength = arguments.length;
|
@@ -1067,36 +1067,27 @@ var objectAssign$1 = !$assign || fails$4(function () {
|
|
1067
1067
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
1068
1068
|
while (argumentsLength > index) {
|
1069
1069
|
var S = IndexedObject(arguments[index++]);
|
1070
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys
|
1070
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
1071
1071
|
var length = keys.length;
|
1072
1072
|
var j = 0;
|
1073
1073
|
var key;
|
1074
1074
|
while (length > j) {
|
1075
1075
|
key = keys[j++];
|
1076
|
-
if (!DESCRIPTORS
|
1076
|
+
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1077
1077
|
}
|
1078
1078
|
} return T;
|
1079
1079
|
} : $assign;
|
1080
1080
|
|
1081
|
-
var
|
1081
|
+
var $ = _export;
|
1082
1082
|
var assign$2 = objectAssign$1;
|
1083
1083
|
|
1084
1084
|
// `Object.assign` method
|
1085
1085
|
// https://tc39.es/ecma262/#sec-object.assign
|
1086
1086
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1087
|
-
|
1087
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
|
1088
1088
|
assign: assign$2
|
1089
1089
|
});
|
1090
1090
|
|
1091
|
-
function chainPropTypes(propType1, propType2) {
|
1092
|
-
if (process.env.NODE_ENV === 'production') {
|
1093
|
-
return () => null;
|
1094
|
-
}
|
1095
|
-
return function validate(...args) {
|
1096
|
-
return propType1(...args) || propType2(...args);
|
1097
|
-
};
|
1098
|
-
}
|
1099
|
-
|
1100
1091
|
function isPlainObject(item) {
|
1101
1092
|
return item !== null && typeof item === 'object' && item.constructor === Object;
|
1102
1093
|
}
|
@@ -2563,58 +2554,6 @@ function capitalize(string) {
|
|
2563
2554
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
2564
2555
|
}
|
2565
2556
|
|
2566
|
-
function getTypeByValue(value) {
|
2567
|
-
const valueType = typeof value;
|
2568
|
-
switch (valueType) {
|
2569
|
-
case 'number':
|
2570
|
-
if (Number.isNaN(value)) {
|
2571
|
-
return 'NaN';
|
2572
|
-
}
|
2573
|
-
if (!Number.isFinite(value)) {
|
2574
|
-
return 'Infinity';
|
2575
|
-
}
|
2576
|
-
if (value !== Math.floor(value)) {
|
2577
|
-
return 'float';
|
2578
|
-
}
|
2579
|
-
return 'number';
|
2580
|
-
case 'object':
|
2581
|
-
if (value === null) {
|
2582
|
-
return 'null';
|
2583
|
-
}
|
2584
|
-
return value.constructor.name;
|
2585
|
-
default:
|
2586
|
-
return valueType;
|
2587
|
-
}
|
2588
|
-
}
|
2589
|
-
|
2590
|
-
// IE 11 support
|
2591
|
-
function ponyfillIsInteger(x) {
|
2592
|
-
// eslint-disable-next-line no-restricted-globals
|
2593
|
-
return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;
|
2594
|
-
}
|
2595
|
-
const isInteger = Number.isInteger || ponyfillIsInteger;
|
2596
|
-
function requiredInteger(props, propName, componentName, location) {
|
2597
|
-
const propValue = props[propName];
|
2598
|
-
if (propValue == null || !isInteger(propValue)) {
|
2599
|
-
const propType = getTypeByValue(propValue);
|
2600
|
-
return new RangeError(`Invalid ${location} \`${propName}\` of type \`${propType}\` supplied to \`${componentName}\`, expected \`integer\`.`);
|
2601
|
-
}
|
2602
|
-
return null;
|
2603
|
-
}
|
2604
|
-
function validator(props, propName, ...other) {
|
2605
|
-
const propValue = props[propName];
|
2606
|
-
if (propValue === undefined) {
|
2607
|
-
return null;
|
2608
|
-
}
|
2609
|
-
return requiredInteger(props, propName, ...other);
|
2610
|
-
}
|
2611
|
-
function validatorNoop() {
|
2612
|
-
return null;
|
2613
|
-
}
|
2614
|
-
validator.isRequired = requiredInteger;
|
2615
|
-
validatorNoop.isRequired = validatorNoop;
|
2616
|
-
var integerPropType = process.env.NODE_ENV === 'production' ? validatorNoop : validator;
|
2617
|
-
|
2618
2557
|
/**
|
2619
2558
|
* Add keys, values of `defaultProps` that does not exist in `props`
|
2620
2559
|
* @param {object} defaultProps
|
@@ -2986,7 +2925,7 @@ function match (value, pattern) {
|
|
2986
2925
|
* @param {string} replacement
|
2987
2926
|
* @return {string}
|
2988
2927
|
*/
|
2989
|
-
function replace
|
2928
|
+
function replace (value, pattern, replacement) {
|
2990
2929
|
return value.replace(pattern, replacement)
|
2991
2930
|
}
|
2992
2931
|
|
@@ -3314,7 +3253,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3314
3253
|
// (
|
3315
3254
|
case 40:
|
3316
3255
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
3317
|
-
if (indexof(characters += replace
|
3256
|
+
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
3318
3257
|
ampersand = -1;
|
3319
3258
|
break
|
3320
3259
|
}
|
@@ -3349,9 +3288,9 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
3349
3288
|
// \0 }
|
3350
3289
|
case 0: case 125: scanning = 0;
|
3351
3290
|
// ;
|
3352
|
-
case 59 + offset: if (ampersand == -1) characters = replace
|
3291
|
+
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
3353
3292
|
if (property > 0 && (strlen(characters) - length))
|
3354
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace
|
3293
|
+
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
3355
3294
|
break
|
3356
3295
|
// @ ;
|
3357
3296
|
case 59: characters += ';';
|
@@ -3433,7 +3372,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
|
|
3433
3372
|
|
3434
3373
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
3435
3374
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
3436
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace
|
3375
|
+
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
3437
3376
|
props[k++] = z;
|
3438
3377
|
|
3439
3378
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
@@ -3829,51 +3768,51 @@ function prefix(value, length) {
|
|
3829
3768
|
// align-items
|
3830
3769
|
|
3831
3770
|
case 5187:
|
3832
|
-
return WEBKIT + value + replace
|
3771
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
3833
3772
|
// align-self
|
3834
3773
|
|
3835
3774
|
case 5443:
|
3836
|
-
return WEBKIT + value + MS + 'flex-item-' + replace
|
3775
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
3837
3776
|
// align-content
|
3838
3777
|
|
3839
3778
|
case 4675:
|
3840
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace
|
3779
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
3841
3780
|
// flex-shrink
|
3842
3781
|
|
3843
3782
|
case 5548:
|
3844
|
-
return WEBKIT + value + MS + replace
|
3783
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
3845
3784
|
// flex-basis
|
3846
3785
|
|
3847
3786
|
case 5292:
|
3848
|
-
return WEBKIT + value + MS + replace
|
3787
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
3849
3788
|
// flex-grow
|
3850
3789
|
|
3851
3790
|
case 6060:
|
3852
|
-
return WEBKIT + 'box-' + replace
|
3791
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
3853
3792
|
// transition
|
3854
3793
|
|
3855
3794
|
case 4554:
|
3856
|
-
return WEBKIT + replace
|
3795
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
3857
3796
|
// cursor
|
3858
3797
|
|
3859
3798
|
case 6187:
|
3860
|
-
return replace
|
3799
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
3861
3800
|
// background, background-image
|
3862
3801
|
|
3863
3802
|
case 5495:
|
3864
3803
|
case 3959:
|
3865
|
-
return replace
|
3804
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
3866
3805
|
// justify-content
|
3867
3806
|
|
3868
3807
|
case 4968:
|
3869
|
-
return replace
|
3808
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
3870
3809
|
// (margin|padding)-inline-(start|end)
|
3871
3810
|
|
3872
3811
|
case 4095:
|
3873
3812
|
case 3583:
|
3874
3813
|
case 4068:
|
3875
3814
|
case 2532:
|
3876
|
-
return replace
|
3815
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
3877
3816
|
// (min|max)?(width|height|inline-size|block-size)
|
3878
3817
|
|
3879
3818
|
case 8116:
|
@@ -3897,11 +3836,11 @@ function prefix(value, length) {
|
|
3897
3836
|
// (f)ill-available, (f)it-content
|
3898
3837
|
|
3899
3838
|
case 102:
|
3900
|
-
return replace
|
3839
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
3901
3840
|
// (s)tretch
|
3902
3841
|
|
3903
3842
|
case 115:
|
3904
|
-
return ~indexof(value, 'stretch') ? prefix(replace
|
3843
|
+
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
3905
3844
|
}
|
3906
3845
|
break;
|
3907
3846
|
// position: sticky
|
@@ -3915,11 +3854,11 @@ function prefix(value, length) {
|
|
3915
3854
|
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
3916
3855
|
// stic(k)y
|
3917
3856
|
case 107:
|
3918
|
-
return replace
|
3857
|
+
return replace(value, ':', ':' + WEBKIT) + value;
|
3919
3858
|
// (inline-)?fl(e)x
|
3920
3859
|
|
3921
3860
|
case 101:
|
3922
|
-
return replace
|
3861
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
3923
3862
|
}
|
3924
3863
|
|
3925
3864
|
break;
|
@@ -3929,15 +3868,15 @@ function prefix(value, length) {
|
|
3929
3868
|
switch (charat(value, length + 11)) {
|
3930
3869
|
// vertical-l(r)
|
3931
3870
|
case 114:
|
3932
|
-
return WEBKIT + value + MS + replace
|
3871
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
3933
3872
|
// vertical-r(l)
|
3934
3873
|
|
3935
3874
|
case 108:
|
3936
|
-
return WEBKIT + value + MS + replace
|
3875
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
3937
3876
|
// horizontal(-)tb
|
3938
3877
|
|
3939
3878
|
case 45:
|
3940
|
-
return WEBKIT + value + MS + replace
|
3879
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
3941
3880
|
}
|
3942
3881
|
|
3943
3882
|
return WEBKIT + value + MS + value + value;
|
@@ -3954,7 +3893,7 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
3954
3893
|
|
3955
3894
|
case KEYFRAMES:
|
3956
3895
|
return serialize([copy(element, {
|
3957
|
-
value: replace
|
3896
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
3958
3897
|
})], callback);
|
3959
3898
|
|
3960
3899
|
case RULESET:
|
@@ -3964,17 +3903,17 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
3964
3903
|
case ':read-only':
|
3965
3904
|
case ':read-write':
|
3966
3905
|
return serialize([copy(element, {
|
3967
|
-
props: [replace
|
3906
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
3968
3907
|
})], callback);
|
3969
3908
|
// :placeholder
|
3970
3909
|
|
3971
3910
|
case '::placeholder':
|
3972
3911
|
return serialize([copy(element, {
|
3973
|
-
props: [replace
|
3912
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
3974
3913
|
}), copy(element, {
|
3975
|
-
props: [replace
|
3914
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
3976
3915
|
}), copy(element, {
|
3977
|
-
props: [replace
|
3916
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
3978
3917
|
})], callback);
|
3979
3918
|
}
|
3980
3919
|
|
@@ -4997,7 +4936,7 @@ tags.forEach(function (tagName) {
|
|
4997
4936
|
* This source code is licensed under the MIT license found in the
|
4998
4937
|
* LICENSE file in the root directory of this source tree.
|
4999
4938
|
*/
|
5000
|
-
function styled$
|
4939
|
+
function styled$2(tag, options) {
|
5001
4940
|
const stylesFactory = newStyled(tag, options);
|
5002
4941
|
if (process.env.NODE_ENV !== 'production') {
|
5003
4942
|
return (...styles) => {
|
@@ -5022,7 +4961,7 @@ const internal_processStyles = (tag, processor) => {
|
|
5022
4961
|
}
|
5023
4962
|
};
|
5024
4963
|
|
5025
|
-
const _excluded$
|
4964
|
+
const _excluded$8 = ["values", "unit", "step"];
|
5026
4965
|
const sortBreakpointsValues = values => {
|
5027
4966
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
5028
4967
|
key,
|
@@ -5057,7 +4996,7 @@ function createBreakpoints(breakpoints) {
|
|
5057
4996
|
unit = 'px',
|
5058
4997
|
step = 5
|
5059
4998
|
} = breakpoints,
|
5060
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
4999
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$8);
|
5061
5000
|
const sortedValues = sortBreakpointsValues(values);
|
5062
5001
|
const keys = Object.keys(sortedValues);
|
5063
5002
|
function up(key) {
|
@@ -5183,61 +5122,6 @@ function removeUnusedBreakpoints(breakpointKeys, style) {
|
|
5183
5122
|
return acc;
|
5184
5123
|
}, style);
|
5185
5124
|
}
|
5186
|
-
function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
|
5187
|
-
const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
|
5188
|
-
const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});
|
5189
|
-
return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
|
5190
|
-
}
|
5191
|
-
|
5192
|
-
// compute base for responsive values; e.g.,
|
5193
|
-
// [1,2,3] => {xs: true, sm: true, md: true}
|
5194
|
-
// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
|
5195
|
-
function computeBreakpointsBase(breakpointValues, themeBreakpoints) {
|
5196
|
-
// fixed value
|
5197
|
-
if (typeof breakpointValues !== 'object') {
|
5198
|
-
return {};
|
5199
|
-
}
|
5200
|
-
const base = {};
|
5201
|
-
const breakpointsKeys = Object.keys(themeBreakpoints);
|
5202
|
-
if (Array.isArray(breakpointValues)) {
|
5203
|
-
breakpointsKeys.forEach((breakpoint, i) => {
|
5204
|
-
if (i < breakpointValues.length) {
|
5205
|
-
base[breakpoint] = true;
|
5206
|
-
}
|
5207
|
-
});
|
5208
|
-
} else {
|
5209
|
-
breakpointsKeys.forEach(breakpoint => {
|
5210
|
-
if (breakpointValues[breakpoint] != null) {
|
5211
|
-
base[breakpoint] = true;
|
5212
|
-
}
|
5213
|
-
});
|
5214
|
-
}
|
5215
|
-
return base;
|
5216
|
-
}
|
5217
|
-
function resolveBreakpointValues({
|
5218
|
-
values: breakpointValues,
|
5219
|
-
breakpoints: themeBreakpoints,
|
5220
|
-
base: customBase
|
5221
|
-
}) {
|
5222
|
-
const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);
|
5223
|
-
const keys = Object.keys(base);
|
5224
|
-
if (keys.length === 0) {
|
5225
|
-
return breakpointValues;
|
5226
|
-
}
|
5227
|
-
let previous;
|
5228
|
-
return keys.reduce((acc, breakpoint, i) => {
|
5229
|
-
if (Array.isArray(breakpointValues)) {
|
5230
|
-
acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];
|
5231
|
-
previous = i;
|
5232
|
-
} else if (typeof breakpointValues === 'object') {
|
5233
|
-
acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];
|
5234
|
-
previous = breakpoint;
|
5235
|
-
} else {
|
5236
|
-
acc[breakpoint] = breakpointValues;
|
5237
|
-
}
|
5238
|
-
return acc;
|
5239
|
-
}, {});
|
5240
|
-
}
|
5241
5125
|
|
5242
5126
|
function getPath(obj, path, checkVars = true) {
|
5243
5127
|
if (!path || typeof path !== 'string') {
|
@@ -5272,7 +5156,7 @@ function getStyleValue(themeMapping, transform, propValueFinal, userValue = prop
|
|
5272
5156
|
}
|
5273
5157
|
return value;
|
5274
5158
|
}
|
5275
|
-
function style$
|
5159
|
+
function style$1(options) {
|
5276
5160
|
const {
|
5277
5161
|
prop,
|
5278
5162
|
cssProperty = options.prop,
|
@@ -5433,12 +5317,12 @@ function resolveCssProperty(props, keys, prop, transformer) {
|
|
5433
5317
|
const propValue = props[prop];
|
5434
5318
|
return handleBreakpoints(props, propValue, styleFromPropValue);
|
5435
5319
|
}
|
5436
|
-
function style
|
5320
|
+
function style(props, keys) {
|
5437
5321
|
const transformer = createUnarySpacing(props.theme);
|
5438
5322
|
return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
|
5439
5323
|
}
|
5440
5324
|
function margin(props) {
|
5441
|
-
return style
|
5325
|
+
return style(props, marginKeys);
|
5442
5326
|
}
|
5443
5327
|
margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
|
5444
5328
|
obj[key] = responsivePropType$1;
|
@@ -5446,7 +5330,7 @@ margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((ob
|
|
5446
5330
|
}, {}) : {};
|
5447
5331
|
margin.filterProps = marginKeys;
|
5448
5332
|
function padding(props) {
|
5449
|
-
return style
|
5333
|
+
return style(props, paddingKeys);
|
5450
5334
|
}
|
5451
5335
|
padding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
|
5452
5336
|
obj[key] = responsivePropType$1;
|
@@ -5520,48 +5404,48 @@ function borderTransform(value) {
|
|
5520
5404
|
}
|
5521
5405
|
return `${value}px solid`;
|
5522
5406
|
}
|
5523
|
-
const border = style$
|
5407
|
+
const border = style$1({
|
5524
5408
|
prop: 'border',
|
5525
5409
|
themeKey: 'borders',
|
5526
5410
|
transform: borderTransform
|
5527
5411
|
});
|
5528
|
-
const borderTop = style$
|
5412
|
+
const borderTop = style$1({
|
5529
5413
|
prop: 'borderTop',
|
5530
5414
|
themeKey: 'borders',
|
5531
5415
|
transform: borderTransform
|
5532
5416
|
});
|
5533
|
-
const borderRight = style$
|
5417
|
+
const borderRight = style$1({
|
5534
5418
|
prop: 'borderRight',
|
5535
5419
|
themeKey: 'borders',
|
5536
5420
|
transform: borderTransform
|
5537
5421
|
});
|
5538
|
-
const borderBottom = style$
|
5422
|
+
const borderBottom = style$1({
|
5539
5423
|
prop: 'borderBottom',
|
5540
5424
|
themeKey: 'borders',
|
5541
5425
|
transform: borderTransform
|
5542
5426
|
});
|
5543
|
-
const borderLeft = style$
|
5427
|
+
const borderLeft = style$1({
|
5544
5428
|
prop: 'borderLeft',
|
5545
5429
|
themeKey: 'borders',
|
5546
5430
|
transform: borderTransform
|
5547
5431
|
});
|
5548
|
-
const borderColor = style$
|
5432
|
+
const borderColor = style$1({
|
5549
5433
|
prop: 'borderColor',
|
5550
5434
|
themeKey: 'palette'
|
5551
5435
|
});
|
5552
|
-
const borderTopColor = style$
|
5436
|
+
const borderTopColor = style$1({
|
5553
5437
|
prop: 'borderTopColor',
|
5554
5438
|
themeKey: 'palette'
|
5555
5439
|
});
|
5556
|
-
const borderRightColor = style$
|
5440
|
+
const borderRightColor = style$1({
|
5557
5441
|
prop: 'borderRightColor',
|
5558
5442
|
themeKey: 'palette'
|
5559
5443
|
});
|
5560
|
-
const borderBottomColor = style$
|
5444
|
+
const borderBottomColor = style$1({
|
5561
5445
|
prop: 'borderBottomColor',
|
5562
5446
|
themeKey: 'palette'
|
5563
5447
|
});
|
5564
|
-
const borderLeftColor = style$
|
5448
|
+
const borderLeftColor = style$1({
|
5565
5449
|
prop: 'borderLeftColor',
|
5566
5450
|
themeKey: 'palette'
|
5567
5451
|
});
|
@@ -5634,31 +5518,31 @@ rowGap.propTypes = process.env.NODE_ENV !== 'production' ? {
|
|
5634
5518
|
rowGap: responsivePropType$1
|
5635
5519
|
} : {};
|
5636
5520
|
rowGap.filterProps = ['rowGap'];
|
5637
|
-
const gridColumn = style$
|
5521
|
+
const gridColumn = style$1({
|
5638
5522
|
prop: 'gridColumn'
|
5639
5523
|
});
|
5640
|
-
const gridRow = style$
|
5524
|
+
const gridRow = style$1({
|
5641
5525
|
prop: 'gridRow'
|
5642
5526
|
});
|
5643
|
-
const gridAutoFlow = style$
|
5527
|
+
const gridAutoFlow = style$1({
|
5644
5528
|
prop: 'gridAutoFlow'
|
5645
5529
|
});
|
5646
|
-
const gridAutoColumns = style$
|
5530
|
+
const gridAutoColumns = style$1({
|
5647
5531
|
prop: 'gridAutoColumns'
|
5648
5532
|
});
|
5649
|
-
const gridAutoRows = style$
|
5533
|
+
const gridAutoRows = style$1({
|
5650
5534
|
prop: 'gridAutoRows'
|
5651
5535
|
});
|
5652
|
-
const gridTemplateColumns = style$
|
5536
|
+
const gridTemplateColumns = style$1({
|
5653
5537
|
prop: 'gridTemplateColumns'
|
5654
5538
|
});
|
5655
|
-
const gridTemplateRows = style$
|
5539
|
+
const gridTemplateRows = style$1({
|
5656
5540
|
prop: 'gridTemplateRows'
|
5657
5541
|
});
|
5658
|
-
const gridTemplateAreas = style$
|
5542
|
+
const gridTemplateAreas = style$1({
|
5659
5543
|
prop: 'gridTemplateAreas'
|
5660
5544
|
});
|
5661
|
-
const gridArea = style$
|
5545
|
+
const gridArea = style$1({
|
5662
5546
|
prop: 'gridArea'
|
5663
5547
|
});
|
5664
5548
|
compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
|
@@ -5669,18 +5553,18 @@ function paletteTransform(value, userValue) {
|
|
5669
5553
|
}
|
5670
5554
|
return value;
|
5671
5555
|
}
|
5672
|
-
const color = style$
|
5556
|
+
const color = style$1({
|
5673
5557
|
prop: 'color',
|
5674
5558
|
themeKey: 'palette',
|
5675
5559
|
transform: paletteTransform
|
5676
5560
|
});
|
5677
|
-
const bgcolor = style$
|
5561
|
+
const bgcolor = style$1({
|
5678
5562
|
prop: 'bgcolor',
|
5679
5563
|
cssProperty: 'backgroundColor',
|
5680
5564
|
themeKey: 'palette',
|
5681
5565
|
transform: paletteTransform
|
5682
5566
|
});
|
5683
|
-
const backgroundColor = style$
|
5567
|
+
const backgroundColor = style$1({
|
5684
5568
|
prop: 'backgroundColor',
|
5685
5569
|
themeKey: 'palette',
|
5686
5570
|
transform: paletteTransform
|
@@ -5690,7 +5574,7 @@ compose(color, bgcolor, backgroundColor);
|
|
5690
5574
|
function sizingTransform(value) {
|
5691
5575
|
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
5692
5576
|
}
|
5693
|
-
const width = style$
|
5577
|
+
const width = style$1({
|
5694
5578
|
prop: 'width',
|
5695
5579
|
transform: sizingTransform
|
5696
5580
|
});
|
@@ -5708,33 +5592,33 @@ const maxWidth = props => {
|
|
5708
5592
|
return null;
|
5709
5593
|
};
|
5710
5594
|
maxWidth.filterProps = ['maxWidth'];
|
5711
|
-
const minWidth = style$
|
5595
|
+
const minWidth = style$1({
|
5712
5596
|
prop: 'minWidth',
|
5713
5597
|
transform: sizingTransform
|
5714
5598
|
});
|
5715
|
-
const height = style$
|
5599
|
+
const height = style$1({
|
5716
5600
|
prop: 'height',
|
5717
5601
|
transform: sizingTransform
|
5718
5602
|
});
|
5719
|
-
const maxHeight = style$
|
5603
|
+
const maxHeight = style$1({
|
5720
5604
|
prop: 'maxHeight',
|
5721
5605
|
transform: sizingTransform
|
5722
5606
|
});
|
5723
|
-
const minHeight = style$
|
5607
|
+
const minHeight = style$1({
|
5724
5608
|
prop: 'minHeight',
|
5725
5609
|
transform: sizingTransform
|
5726
5610
|
});
|
5727
|
-
style$
|
5611
|
+
style$1({
|
5728
5612
|
prop: 'size',
|
5729
5613
|
cssProperty: 'width',
|
5730
5614
|
transform: sizingTransform
|
5731
5615
|
});
|
5732
|
-
style$
|
5616
|
+
style$1({
|
5733
5617
|
prop: 'size',
|
5734
5618
|
cssProperty: 'height',
|
5735
5619
|
transform: sizingTransform
|
5736
5620
|
});
|
5737
|
-
const boxSizing = style$
|
5621
|
+
const boxSizing = style$1({
|
5738
5622
|
prop: 'boxSizing'
|
5739
5623
|
});
|
5740
5624
|
compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
|
@@ -6141,7 +6025,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6141
6025
|
styleFunctionSx.filterProps = ['sx'];
|
6142
6026
|
var styleFunctionSx$1 = styleFunctionSx;
|
6143
6027
|
|
6144
|
-
const _excluded$
|
6028
|
+
const _excluded$7 = ["breakpoints", "palette", "spacing", "shape"];
|
6145
6029
|
function createTheme$1(options = {}, ...args) {
|
6146
6030
|
const {
|
6147
6031
|
breakpoints: breakpointsInput = {},
|
@@ -6149,7 +6033,7 @@ function createTheme$1(options = {}, ...args) {
|
|
6149
6033
|
spacing: spacingInput,
|
6150
6034
|
shape: shapeInput = {}
|
6151
6035
|
} = options,
|
6152
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
6036
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$7);
|
6153
6037
|
const breakpoints = createBreakpoints(breakpointsInput);
|
6154
6038
|
const spacing = createSpacing(spacingInput);
|
6155
6039
|
let muiTheme = deepmerge({
|
@@ -6177,93 +6061,19 @@ function createTheme$1(options = {}, ...args) {
|
|
6177
6061
|
function isObjectEmpty(obj) {
|
6178
6062
|
return Object.keys(obj).length === 0;
|
6179
6063
|
}
|
6180
|
-
function useTheme$
|
6064
|
+
function useTheme$1(defaultTheme = null) {
|
6181
6065
|
const contextTheme = React.useContext(ThemeContext);
|
6182
6066
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
6183
6067
|
}
|
6184
6068
|
|
6185
6069
|
const systemDefaultTheme$1 = createTheme$1();
|
6186
|
-
function useTheme
|
6187
|
-
return useTheme$
|
6188
|
-
}
|
6189
|
-
|
6190
|
-
const _excluded$d = ["sx"];
|
6191
|
-
const splitProps = props => {
|
6192
|
-
var _props$theme$unstable, _props$theme;
|
6193
|
-
const result = {
|
6194
|
-
systemProps: {},
|
6195
|
-
otherProps: {}
|
6196
|
-
};
|
6197
|
-
const config = (_props$theme$unstable = props == null ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
|
6198
|
-
Object.keys(props).forEach(prop => {
|
6199
|
-
if (config[prop]) {
|
6200
|
-
result.systemProps[prop] = props[prop];
|
6201
|
-
} else {
|
6202
|
-
result.otherProps[prop] = props[prop];
|
6203
|
-
}
|
6204
|
-
});
|
6205
|
-
return result;
|
6206
|
-
};
|
6207
|
-
function extendSxProp(props) {
|
6208
|
-
const {
|
6209
|
-
sx: inSx
|
6210
|
-
} = props,
|
6211
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
6212
|
-
const {
|
6213
|
-
systemProps,
|
6214
|
-
otherProps
|
6215
|
-
} = splitProps(other);
|
6216
|
-
let finalSx;
|
6217
|
-
if (Array.isArray(inSx)) {
|
6218
|
-
finalSx = [systemProps, ...inSx];
|
6219
|
-
} else if (typeof inSx === 'function') {
|
6220
|
-
finalSx = (...args) => {
|
6221
|
-
const result = inSx(...args);
|
6222
|
-
if (!isPlainObject(result)) {
|
6223
|
-
return systemProps;
|
6224
|
-
}
|
6225
|
-
return _extends({}, systemProps, result);
|
6226
|
-
};
|
6227
|
-
} else {
|
6228
|
-
finalSx = _extends({}, systemProps, inSx);
|
6229
|
-
}
|
6230
|
-
return _extends({}, otherProps, {
|
6231
|
-
sx: finalSx
|
6232
|
-
});
|
6070
|
+
function useTheme(defaultTheme = systemDefaultTheme$1) {
|
6071
|
+
return useTheme$1(defaultTheme);
|
6233
6072
|
}
|
6234
6073
|
|
6235
6074
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
6236
6075
|
|
6237
|
-
const _excluded$
|
6238
|
-
function createBox(options = {}) {
|
6239
|
-
const {
|
6240
|
-
themeId,
|
6241
|
-
defaultTheme,
|
6242
|
-
defaultClassName = 'MuiBox-root',
|
6243
|
-
generateClassName
|
6244
|
-
} = options;
|
6245
|
-
const BoxRoot = styled$3('div', {
|
6246
|
-
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
6247
|
-
})(styleFunctionSx$1);
|
6248
|
-
const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
|
6249
|
-
const theme = useTheme$1(defaultTheme);
|
6250
|
-
const _extendSxProp = extendSxProp(inProps),
|
6251
|
-
{
|
6252
|
-
className,
|
6253
|
-
component = 'div'
|
6254
|
-
} = _extendSxProp,
|
6255
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$c);
|
6256
|
-
return /*#__PURE__*/jsx(BoxRoot, _extends({
|
6257
|
-
as: component,
|
6258
|
-
ref: ref,
|
6259
|
-
className: clsx(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
6260
|
-
theme: themeId ? theme[themeId] || theme : theme
|
6261
|
-
}, other));
|
6262
|
-
});
|
6263
|
-
return Box;
|
6264
|
-
}
|
6265
|
-
|
6266
|
-
const _excluded$b = ["variant"];
|
6076
|
+
const _excluded$6 = ["variant"];
|
6267
6077
|
function isEmpty$1(string) {
|
6268
6078
|
return string.length === 0;
|
6269
6079
|
}
|
@@ -6277,7 +6087,7 @@ function propsToClassKey(props) {
|
|
6277
6087
|
const {
|
6278
6088
|
variant
|
6279
6089
|
} = props,
|
6280
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
6090
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
6281
6091
|
let classKey = variant || '';
|
6282
6092
|
Object.keys(other).sort().forEach(key => {
|
6283
6093
|
if (key === 'color') {
|
@@ -6289,7 +6099,7 @@ function propsToClassKey(props) {
|
|
6289
6099
|
return classKey;
|
6290
6100
|
}
|
6291
6101
|
|
6292
|
-
const _excluded$
|
6102
|
+
const _excluded$5 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
6293
6103
|
function isEmpty(obj) {
|
6294
6104
|
return Object.keys(obj).length === 0;
|
6295
6105
|
}
|
@@ -6384,7 +6194,7 @@ function createStyled(input = {}) {
|
|
6384
6194
|
skipSx: inputSkipSx,
|
6385
6195
|
overridesResolver
|
6386
6196
|
} = inputOptions,
|
6387
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
6197
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$5);
|
6388
6198
|
|
6389
6199
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
6390
6200
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
@@ -6405,7 +6215,7 @@ function createStyled(input = {}) {
|
|
6405
6215
|
// for string (html) tag, preserve the behavior in emotion & styled-components.
|
6406
6216
|
shouldForwardPropOption = undefined;
|
6407
6217
|
}
|
6408
|
-
const defaultStyledResolver = styled$
|
6218
|
+
const defaultStyledResolver = styled$2(tag, _extends({
|
6409
6219
|
shouldForwardProp: shouldForwardPropOption,
|
6410
6220
|
label
|
6411
6221
|
}, options));
|
@@ -6497,9 +6307,6 @@ function createStyled(input = {}) {
|
|
6497
6307
|
};
|
6498
6308
|
}
|
6499
6309
|
|
6500
|
-
const styled$2 = createStyled();
|
6501
|
-
var systemStyled = styled$2;
|
6502
|
-
|
6503
6310
|
function getThemeProps(params) {
|
6504
6311
|
const {
|
6505
6312
|
theme,
|
@@ -6518,7 +6325,7 @@ function useThemeProps$1({
|
|
6518
6325
|
defaultTheme,
|
6519
6326
|
themeId
|
6520
6327
|
}) {
|
6521
|
-
let theme = useTheme
|
6328
|
+
let theme = useTheme(defaultTheme);
|
6522
6329
|
if (themeId) {
|
6523
6330
|
theme = theme[themeId] || theme;
|
6524
6331
|
}
|
@@ -6701,27 +6508,6 @@ function getContrastRatio(foreground, background) {
|
|
6701
6508
|
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
6702
6509
|
}
|
6703
6510
|
|
6704
|
-
/**
|
6705
|
-
* Sets the absolute transparency of a color.
|
6706
|
-
* Any existing alpha values are overwritten.
|
6707
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
6708
|
-
* @param {number} value - value to set the alpha channel to in the range 0 - 1
|
6709
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
6710
|
-
*/
|
6711
|
-
function alpha(color, value) {
|
6712
|
-
color = decomposeColor(color);
|
6713
|
-
value = clamp(value);
|
6714
|
-
if (color.type === 'rgb' || color.type === 'hsl') {
|
6715
|
-
color.type += 'a';
|
6716
|
-
}
|
6717
|
-
if (color.type === 'color') {
|
6718
|
-
color.values[3] = `/${value}`;
|
6719
|
-
} else {
|
6720
|
-
color.values[3] = value;
|
6721
|
-
}
|
6722
|
-
return recomposeColor(color);
|
6723
|
-
}
|
6724
|
-
|
6725
6511
|
/**
|
6726
6512
|
* Darkens a color.
|
6727
6513
|
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
@@ -6764,161 +6550,6 @@ function lighten(color, coefficient) {
|
|
6764
6550
|
return recomposeColor(color);
|
6765
6551
|
}
|
6766
6552
|
|
6767
|
-
const _excluded$9 = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
6768
|
-
const defaultTheme$3 = createTheme$1();
|
6769
|
-
// widening Theme to any so that the consumer can own the theme structure.
|
6770
|
-
const defaultCreateStyledComponent = systemStyled('div', {
|
6771
|
-
name: 'MuiStack',
|
6772
|
-
slot: 'Root',
|
6773
|
-
overridesResolver: (props, styles) => styles.root
|
6774
|
-
});
|
6775
|
-
function useThemePropsDefault(props) {
|
6776
|
-
return useThemeProps$1({
|
6777
|
-
props,
|
6778
|
-
name: 'MuiStack',
|
6779
|
-
defaultTheme: defaultTheme$3
|
6780
|
-
});
|
6781
|
-
}
|
6782
|
-
|
6783
|
-
/**
|
6784
|
-
* Return an array with the separator React element interspersed between
|
6785
|
-
* each React node of the input children.
|
6786
|
-
*
|
6787
|
-
* > joinChildren([1,2,3], 0)
|
6788
|
-
* [1,0,2,0,3]
|
6789
|
-
*/
|
6790
|
-
function joinChildren(children, separator) {
|
6791
|
-
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
6792
|
-
return childrenArray.reduce((output, child, index) => {
|
6793
|
-
output.push(child);
|
6794
|
-
if (index < childrenArray.length - 1) {
|
6795
|
-
output.push( /*#__PURE__*/React.cloneElement(separator, {
|
6796
|
-
key: `separator-${index}`
|
6797
|
-
}));
|
6798
|
-
}
|
6799
|
-
return output;
|
6800
|
-
}, []);
|
6801
|
-
}
|
6802
|
-
const getSideFromDirection = direction => {
|
6803
|
-
return {
|
6804
|
-
row: 'Left',
|
6805
|
-
'row-reverse': 'Right',
|
6806
|
-
column: 'Top',
|
6807
|
-
'column-reverse': 'Bottom'
|
6808
|
-
}[direction];
|
6809
|
-
};
|
6810
|
-
const style = ({
|
6811
|
-
ownerState,
|
6812
|
-
theme
|
6813
|
-
}) => {
|
6814
|
-
let styles = _extends({
|
6815
|
-
display: 'flex',
|
6816
|
-
flexDirection: 'column'
|
6817
|
-
}, handleBreakpoints({
|
6818
|
-
theme
|
6819
|
-
}, resolveBreakpointValues({
|
6820
|
-
values: ownerState.direction,
|
6821
|
-
breakpoints: theme.breakpoints.values
|
6822
|
-
}), propValue => ({
|
6823
|
-
flexDirection: propValue
|
6824
|
-
})));
|
6825
|
-
if (ownerState.spacing) {
|
6826
|
-
const transformer = createUnarySpacing(theme);
|
6827
|
-
const base = Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
6828
|
-
if (typeof ownerState.spacing === 'object' && ownerState.spacing[breakpoint] != null || typeof ownerState.direction === 'object' && ownerState.direction[breakpoint] != null) {
|
6829
|
-
acc[breakpoint] = true;
|
6830
|
-
}
|
6831
|
-
return acc;
|
6832
|
-
}, {});
|
6833
|
-
const directionValues = resolveBreakpointValues({
|
6834
|
-
values: ownerState.direction,
|
6835
|
-
base
|
6836
|
-
});
|
6837
|
-
const spacingValues = resolveBreakpointValues({
|
6838
|
-
values: ownerState.spacing,
|
6839
|
-
base
|
6840
|
-
});
|
6841
|
-
if (typeof directionValues === 'object') {
|
6842
|
-
Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
|
6843
|
-
const directionValue = directionValues[breakpoint];
|
6844
|
-
if (!directionValue) {
|
6845
|
-
const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';
|
6846
|
-
directionValues[breakpoint] = previousDirectionValue;
|
6847
|
-
}
|
6848
|
-
});
|
6849
|
-
}
|
6850
|
-
const styleFromPropValue = (propValue, breakpoint) => {
|
6851
|
-
if (ownerState.useFlexGap) {
|
6852
|
-
return {
|
6853
|
-
gap: getValue(transformer, propValue)
|
6854
|
-
};
|
6855
|
-
}
|
6856
|
-
return {
|
6857
|
-
'& > :not(style) + :not(style)': {
|
6858
|
-
margin: 0,
|
6859
|
-
[`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)
|
6860
|
-
}
|
6861
|
-
};
|
6862
|
-
};
|
6863
|
-
styles = deepmerge(styles, handleBreakpoints({
|
6864
|
-
theme
|
6865
|
-
}, spacingValues, styleFromPropValue));
|
6866
|
-
}
|
6867
|
-
styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
|
6868
|
-
return styles;
|
6869
|
-
};
|
6870
|
-
function createStack(options = {}) {
|
6871
|
-
const {
|
6872
|
-
// This will allow adding custom styled fn (for example for custom sx style function)
|
6873
|
-
createStyledComponent = defaultCreateStyledComponent,
|
6874
|
-
useThemeProps = useThemePropsDefault,
|
6875
|
-
componentName = 'MuiStack'
|
6876
|
-
} = options;
|
6877
|
-
const useUtilityClasses = () => {
|
6878
|
-
const slots = {
|
6879
|
-
root: ['root']
|
6880
|
-
};
|
6881
|
-
return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});
|
6882
|
-
};
|
6883
|
-
const StackRoot = createStyledComponent(style);
|
6884
|
-
const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
6885
|
-
const themeProps = useThemeProps(inProps);
|
6886
|
-
const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
|
6887
|
-
const {
|
6888
|
-
component = 'div',
|
6889
|
-
direction = 'column',
|
6890
|
-
spacing = 0,
|
6891
|
-
divider,
|
6892
|
-
children,
|
6893
|
-
className,
|
6894
|
-
useFlexGap = false
|
6895
|
-
} = props,
|
6896
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
6897
|
-
const ownerState = {
|
6898
|
-
direction,
|
6899
|
-
spacing,
|
6900
|
-
useFlexGap
|
6901
|
-
};
|
6902
|
-
const classes = useUtilityClasses();
|
6903
|
-
return /*#__PURE__*/jsx(StackRoot, _extends({
|
6904
|
-
as: component,
|
6905
|
-
ownerState: ownerState,
|
6906
|
-
ref: ref,
|
6907
|
-
className: clsx(classes.root, className)
|
6908
|
-
}, other, {
|
6909
|
-
children: divider ? joinChildren(children, divider) : children
|
6910
|
-
}));
|
6911
|
-
});
|
6912
|
-
process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ = {
|
6913
|
-
children: PropTypes.node,
|
6914
|
-
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
6915
|
-
divider: PropTypes.node,
|
6916
|
-
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
6917
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
6918
|
-
} : void 0;
|
6919
|
-
return Stack;
|
6920
|
-
}
|
6921
|
-
|
6922
6553
|
function createMixins(breakpoints, mixins) {
|
6923
6554
|
return _extends({
|
6924
6555
|
toolbar: {
|
@@ -7067,7 +6698,7 @@ const green = {
|
|
7067
6698
|
};
|
7068
6699
|
var green$1 = green;
|
7069
6700
|
|
7070
|
-
const _excluded$
|
6701
|
+
const _excluded$4 = ["mode", "contrastThreshold", "tonalOffset"];
|
7071
6702
|
const light = {
|
7072
6703
|
// The colors used to style the text.
|
7073
6704
|
text: {
|
@@ -7236,7 +6867,7 @@ function createPalette(palette) {
|
|
7236
6867
|
contrastThreshold = 3,
|
7237
6868
|
tonalOffset = 0.2
|
7238
6869
|
} = palette,
|
7239
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
6870
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$4);
|
7240
6871
|
const primary = palette.primary || getDefaultPrimary(mode);
|
7241
6872
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
7242
6873
|
const error = palette.error || getDefaultError(mode);
|
@@ -7360,7 +6991,7 @@ const theme2 = createTheme({ palette: {
|
|
7360
6991
|
return paletteOutput;
|
7361
6992
|
}
|
7362
6993
|
|
7363
|
-
const _excluded$
|
6994
|
+
const _excluded$3 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
7364
6995
|
function round(value) {
|
7365
6996
|
return Math.round(value * 1e5) / 1e5;
|
7366
6997
|
}
|
@@ -7391,7 +7022,7 @@ function createTypography(palette, typography) {
|
|
7391
7022
|
allVariants,
|
7392
7023
|
pxToRem: pxToRem2
|
7393
7024
|
} = _ref,
|
7394
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
7025
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
7395
7026
|
if (process.env.NODE_ENV !== 'production') {
|
7396
7027
|
if (typeof fontSize !== 'number') {
|
7397
7028
|
console.error('MUI: `fontSize` is required to be a number.');
|
@@ -7458,7 +7089,7 @@ function createShadow(...px) {
|
|
7458
7089
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
7459
7090
|
var shadows$1 = shadows;
|
7460
7091
|
|
7461
|
-
const _excluded$
|
7092
|
+
const _excluded$2 = ["duration", "easing", "delay"];
|
7462
7093
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
7463
7094
|
// to learn the context in which each easing should be used.
|
7464
7095
|
const easing = {
|
@@ -7509,7 +7140,7 @@ function createTransitions(inputTransitions) {
|
|
7509
7140
|
easing: easingOption = mergedEasing.easeInOut,
|
7510
7141
|
delay = 0
|
7511
7142
|
} = options,
|
7512
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
7143
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2);
|
7513
7144
|
if (process.env.NODE_ENV !== 'production') {
|
7514
7145
|
const isString = value => typeof value === 'string';
|
7515
7146
|
// IE11 support, replace with Number.isNaN
|
@@ -7556,7 +7187,7 @@ const zIndex = {
|
|
7556
7187
|
};
|
7557
7188
|
var zIndex$1 = zIndex;
|
7558
7189
|
|
7559
|
-
const _excluded$
|
7190
|
+
const _excluded$1 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
7560
7191
|
function createTheme(options = {}, ...args) {
|
7561
7192
|
const {
|
7562
7193
|
mixins: mixinsInput = {},
|
@@ -7564,7 +7195,7 @@ function createTheme(options = {}, ...args) {
|
|
7564
7195
|
transitions: transitionsInput = {},
|
7565
7196
|
typography: typographyInput = {}
|
7566
7197
|
} = options,
|
7567
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
7198
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$1);
|
7568
7199
|
if (options.vars) {
|
7569
7200
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
7570
7201
|
Please use another name.` : formatMuiErrorMessage(18));
|
@@ -7622,17 +7253,8 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
7622
7253
|
return muiTheme;
|
7623
7254
|
}
|
7624
7255
|
|
7625
|
-
const defaultTheme
|
7626
|
-
var defaultTheme$
|
7627
|
-
|
7628
|
-
function useTheme() {
|
7629
|
-
const theme = useTheme$1(defaultTheme$2);
|
7630
|
-
if (process.env.NODE_ENV !== 'production') {
|
7631
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
7632
|
-
React.useDebugValue(theme);
|
7633
|
-
}
|
7634
|
-
return theme[THEME_ID] || theme;
|
7635
|
-
}
|
7256
|
+
const defaultTheme = createTheme();
|
7257
|
+
var defaultTheme$1 = defaultTheme;
|
7636
7258
|
|
7637
7259
|
function useThemeProps({
|
7638
7260
|
props,
|
@@ -7641,7 +7263,7 @@ function useThemeProps({
|
|
7641
7263
|
return useThemeProps$1({
|
7642
7264
|
props,
|
7643
7265
|
name,
|
7644
|
-
defaultTheme: defaultTheme$
|
7266
|
+
defaultTheme: defaultTheme$1,
|
7645
7267
|
themeId: THEME_ID
|
7646
7268
|
});
|
7647
7269
|
}
|
@@ -7649,30 +7271,18 @@ function useThemeProps({
|
|
7649
7271
|
const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
|
7650
7272
|
const styled = createStyled({
|
7651
7273
|
themeId: THEME_ID,
|
7652
|
-
defaultTheme: defaultTheme$
|
7274
|
+
defaultTheme: defaultTheme$1,
|
7653
7275
|
rootShouldForwardProp
|
7654
7276
|
});
|
7655
7277
|
var styled$1 = styled;
|
7656
7278
|
|
7657
|
-
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
7658
|
-
const getOverlayAlpha = elevation => {
|
7659
|
-
let alphaValue;
|
7660
|
-
if (elevation < 1) {
|
7661
|
-
alphaValue = 5.11916 * elevation ** 2;
|
7662
|
-
} else {
|
7663
|
-
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
7664
|
-
}
|
7665
|
-
return (alphaValue / 100).toFixed(2);
|
7666
|
-
};
|
7667
|
-
var getOverlayAlpha$1 = getOverlayAlpha;
|
7668
|
-
|
7669
7279
|
function getSvgIconUtilityClass(slot) {
|
7670
7280
|
return generateUtilityClass('MuiSvgIcon', slot);
|
7671
7281
|
}
|
7672
7282
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
7673
7283
|
|
7674
|
-
const _excluded
|
7675
|
-
const useUtilityClasses
|
7284
|
+
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
7285
|
+
const useUtilityClasses = ownerState => {
|
7676
7286
|
const {
|
7677
7287
|
color,
|
7678
7288
|
fontSize,
|
@@ -7737,7 +7347,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
7737
7347
|
titleAccess,
|
7738
7348
|
viewBox = '0 0 24 24'
|
7739
7349
|
} = props,
|
7740
|
-
other = _objectWithoutPropertiesLoose(props, _excluded
|
7350
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
7741
7351
|
const ownerState = _extends({}, props, {
|
7742
7352
|
color,
|
7743
7353
|
component,
|
@@ -7750,7 +7360,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
7750
7360
|
if (!inheritViewBox) {
|
7751
7361
|
more.viewBox = viewBox;
|
7752
7362
|
}
|
7753
|
-
const classes = useUtilityClasses
|
7363
|
+
const classes = useUtilityClasses(ownerState);
|
7754
7364
|
return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
|
7755
7365
|
as: component,
|
7756
7366
|
className: clsx(classes.root, className),
|
@@ -8532,6 +8142,25 @@ const themeOptions = {
|
|
8532
8142
|
};
|
8533
8143
|
|
8534
8144
|
const SincoTheme = createTheme(Object.assign({}, themeOptions, {
|
8145
|
+
components: {
|
8146
|
+
MuiChip: {
|
8147
|
+
variants: [{
|
8148
|
+
props: {
|
8149
|
+
size: "xsmall"
|
8150
|
+
},
|
8151
|
+
style: {
|
8152
|
+
height: 16,
|
8153
|
+
borderRadius: "4px",
|
8154
|
+
fontFamily: "Roboto",
|
8155
|
+
fontSize: 10,
|
8156
|
+
fontStyle: "normal",
|
8157
|
+
fontWeight: 400,
|
8158
|
+
lineHeight: 10,
|
8159
|
+
letterSpacing: "0.15px"
|
8160
|
+
}
|
8161
|
+
}]
|
8162
|
+
}
|
8163
|
+
},
|
8535
8164
|
typography: {
|
8536
8165
|
body3: {
|
8537
8166
|
fontFamily: "Roboto",
|
@@ -8546,1134 +8175,4 @@ const SincoTheme = createTheme(Object.assign({}, themeOptions, {
|
|
8546
8175
|
}
|
8547
8176
|
}));
|
8548
8177
|
|
8549
|
-
|
8550
|
-
|
8551
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
8552
|
-
var test = {};
|
8553
|
-
|
8554
|
-
test[TO_STRING_TAG$1] = 'z';
|
8555
|
-
|
8556
|
-
var toStringTagSupport = String(test) === '[object z]';
|
8557
|
-
|
8558
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
8559
|
-
var isCallable$1 = isCallable$c;
|
8560
|
-
var classofRaw$1 = classofRaw$2;
|
8561
|
-
var wellKnownSymbol$1 = wellKnownSymbol$4;
|
8562
|
-
|
8563
|
-
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
8564
|
-
var $Object = Object;
|
8565
|
-
|
8566
|
-
// ES3 wrong here
|
8567
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
8568
|
-
|
8569
|
-
// fallback for IE11 Script Access Denied error
|
8570
|
-
var tryGet = function (it, key) {
|
8571
|
-
try {
|
8572
|
-
return it[key];
|
8573
|
-
} catch (error) { /* empty */ }
|
8574
|
-
};
|
8575
|
-
|
8576
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
8577
|
-
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
8578
|
-
var O, tag, result;
|
8579
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
8580
|
-
// @@toStringTag case
|
8581
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
8582
|
-
// builtinTag case
|
8583
|
-
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
8584
|
-
// ES3 arguments fallback
|
8585
|
-
: (result = classofRaw$1(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
|
8586
|
-
};
|
8587
|
-
|
8588
|
-
var classof$1 = classof$2;
|
8589
|
-
|
8590
|
-
var $String = String;
|
8591
|
-
|
8592
|
-
var toString$2 = function (argument) {
|
8593
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
8594
|
-
return $String(argument);
|
8595
|
-
};
|
8596
|
-
|
8597
|
-
var anObject$4 = anObject$7;
|
8598
|
-
|
8599
|
-
// `RegExp.prototype.flags` getter implementation
|
8600
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
8601
|
-
var regexpFlags$1 = function () {
|
8602
|
-
var that = anObject$4(this);
|
8603
|
-
var result = '';
|
8604
|
-
if (that.hasIndices) result += 'd';
|
8605
|
-
if (that.global) result += 'g';
|
8606
|
-
if (that.ignoreCase) result += 'i';
|
8607
|
-
if (that.multiline) result += 'm';
|
8608
|
-
if (that.dotAll) result += 's';
|
8609
|
-
if (that.unicode) result += 'u';
|
8610
|
-
if (that.unicodeSets) result += 'v';
|
8611
|
-
if (that.sticky) result += 'y';
|
8612
|
-
return result;
|
8613
|
-
};
|
8614
|
-
|
8615
|
-
var fails$3 = fails$d;
|
8616
|
-
var global$3 = global$e;
|
8617
|
-
|
8618
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
8619
|
-
var $RegExp$2 = global$3.RegExp;
|
8620
|
-
|
8621
|
-
var UNSUPPORTED_Y$1 = fails$3(function () {
|
8622
|
-
var re = $RegExp$2('a', 'y');
|
8623
|
-
re.lastIndex = 2;
|
8624
|
-
return re.exec('abcd') != null;
|
8625
|
-
});
|
8626
|
-
|
8627
|
-
// UC Browser bug
|
8628
|
-
// https://github.com/zloirock/core-js/issues/1008
|
8629
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$3(function () {
|
8630
|
-
return !$RegExp$2('a', 'y').sticky;
|
8631
|
-
});
|
8632
|
-
|
8633
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$3(function () {
|
8634
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
8635
|
-
var re = $RegExp$2('^r', 'gy');
|
8636
|
-
re.lastIndex = 2;
|
8637
|
-
return re.exec('str') != null;
|
8638
|
-
});
|
8639
|
-
|
8640
|
-
var regexpStickyHelpers = {
|
8641
|
-
BROKEN_CARET: BROKEN_CARET,
|
8642
|
-
MISSED_STICKY: MISSED_STICKY,
|
8643
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
8644
|
-
};
|
8645
|
-
|
8646
|
-
var objectDefineProperties = {};
|
8647
|
-
|
8648
|
-
var DESCRIPTORS = descriptors;
|
8649
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
8650
|
-
var definePropertyModule = objectDefineProperty;
|
8651
|
-
var anObject$3 = anObject$7;
|
8652
|
-
var toIndexedObject = toIndexedObject$4;
|
8653
|
-
var objectKeys = objectKeys$2;
|
8654
|
-
|
8655
|
-
// `Object.defineProperties` method
|
8656
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
8657
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
8658
|
-
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
8659
|
-
anObject$3(O);
|
8660
|
-
var props = toIndexedObject(Properties);
|
8661
|
-
var keys = objectKeys(Properties);
|
8662
|
-
var length = keys.length;
|
8663
|
-
var index = 0;
|
8664
|
-
var key;
|
8665
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
8666
|
-
return O;
|
8667
|
-
};
|
8668
|
-
|
8669
|
-
var getBuiltIn = getBuiltIn$3;
|
8670
|
-
|
8671
|
-
var html$1 = getBuiltIn('document', 'documentElement');
|
8672
|
-
|
8673
|
-
/* global ActiveXObject -- old IE, WSH */
|
8674
|
-
|
8675
|
-
var anObject$2 = anObject$7;
|
8676
|
-
var definePropertiesModule = objectDefineProperties;
|
8677
|
-
var enumBugKeys = enumBugKeys$3;
|
8678
|
-
var hiddenKeys = hiddenKeys$4;
|
8679
|
-
var html = html$1;
|
8680
|
-
var documentCreateElement = documentCreateElement$1;
|
8681
|
-
var sharedKey = sharedKey$2;
|
8682
|
-
|
8683
|
-
var GT = '>';
|
8684
|
-
var LT = '<';
|
8685
|
-
var PROTOTYPE = 'prototype';
|
8686
|
-
var SCRIPT = 'script';
|
8687
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
8688
|
-
|
8689
|
-
var EmptyConstructor = function () { /* empty */ };
|
8690
|
-
|
8691
|
-
var scriptTag = function (content) {
|
8692
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
8693
|
-
};
|
8694
|
-
|
8695
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
8696
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
8697
|
-
activeXDocument.write(scriptTag(''));
|
8698
|
-
activeXDocument.close();
|
8699
|
-
var temp = activeXDocument.parentWindow.Object;
|
8700
|
-
activeXDocument = null; // avoid memory leak
|
8701
|
-
return temp;
|
8702
|
-
};
|
8703
|
-
|
8704
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
8705
|
-
var NullProtoObjectViaIFrame = function () {
|
8706
|
-
// Thrash, waste and sodomy: IE GC bug
|
8707
|
-
var iframe = documentCreateElement('iframe');
|
8708
|
-
var JS = 'java' + SCRIPT + ':';
|
8709
|
-
var iframeDocument;
|
8710
|
-
iframe.style.display = 'none';
|
8711
|
-
html.appendChild(iframe);
|
8712
|
-
// https://github.com/zloirock/core-js/issues/475
|
8713
|
-
iframe.src = String(JS);
|
8714
|
-
iframeDocument = iframe.contentWindow.document;
|
8715
|
-
iframeDocument.open();
|
8716
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
8717
|
-
iframeDocument.close();
|
8718
|
-
return iframeDocument.F;
|
8719
|
-
};
|
8720
|
-
|
8721
|
-
// Check for document.domain and active x support
|
8722
|
-
// No need to use active x approach when document.domain is not set
|
8723
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
8724
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
8725
|
-
// avoid IE GC bug
|
8726
|
-
var activeXDocument;
|
8727
|
-
var NullProtoObject = function () {
|
8728
|
-
try {
|
8729
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
8730
|
-
} catch (error) { /* ignore */ }
|
8731
|
-
NullProtoObject = typeof document != 'undefined'
|
8732
|
-
? document.domain && activeXDocument
|
8733
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
8734
|
-
: NullProtoObjectViaIFrame()
|
8735
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
8736
|
-
var length = enumBugKeys.length;
|
8737
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
8738
|
-
return NullProtoObject();
|
8739
|
-
};
|
8740
|
-
|
8741
|
-
hiddenKeys[IE_PROTO] = true;
|
8742
|
-
|
8743
|
-
// `Object.create` method
|
8744
|
-
// https://tc39.es/ecma262/#sec-object.create
|
8745
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
8746
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
8747
|
-
var result;
|
8748
|
-
if (O !== null) {
|
8749
|
-
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
8750
|
-
result = new EmptyConstructor();
|
8751
|
-
EmptyConstructor[PROTOTYPE] = null;
|
8752
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
8753
|
-
result[IE_PROTO] = O;
|
8754
|
-
} else result = NullProtoObject();
|
8755
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
8756
|
-
};
|
8757
|
-
|
8758
|
-
var fails$2 = fails$d;
|
8759
|
-
var global$2 = global$e;
|
8760
|
-
|
8761
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
8762
|
-
var $RegExp$1 = global$2.RegExp;
|
8763
|
-
|
8764
|
-
var regexpUnsupportedDotAll = fails$2(function () {
|
8765
|
-
var re = $RegExp$1('.', 's');
|
8766
|
-
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
8767
|
-
});
|
8768
|
-
|
8769
|
-
var fails$1 = fails$d;
|
8770
|
-
var global$1 = global$e;
|
8771
|
-
|
8772
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
8773
|
-
var $RegExp = global$1.RegExp;
|
8774
|
-
|
8775
|
-
var regexpUnsupportedNcg = fails$1(function () {
|
8776
|
-
var re = $RegExp('(?<a>b)', 'g');
|
8777
|
-
return re.exec('b').groups.a !== 'b' ||
|
8778
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
8779
|
-
});
|
8780
|
-
|
8781
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
8782
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
8783
|
-
var call$2 = functionCall;
|
8784
|
-
var uncurryThis$2 = functionUncurryThis;
|
8785
|
-
var toString$1 = toString$2;
|
8786
|
-
var regexpFlags = regexpFlags$1;
|
8787
|
-
var stickyHelpers = regexpStickyHelpers;
|
8788
|
-
var shared = shared$4.exports;
|
8789
|
-
var create = objectCreate;
|
8790
|
-
var getInternalState = internalState.get;
|
8791
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
8792
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
8793
|
-
|
8794
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
8795
|
-
var nativeExec = RegExp.prototype.exec;
|
8796
|
-
var patchedExec = nativeExec;
|
8797
|
-
var charAt = uncurryThis$2(''.charAt);
|
8798
|
-
var indexOf = uncurryThis$2(''.indexOf);
|
8799
|
-
var replace = uncurryThis$2(''.replace);
|
8800
|
-
var stringSlice = uncurryThis$2(''.slice);
|
8801
|
-
|
8802
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
8803
|
-
var re1 = /a/;
|
8804
|
-
var re2 = /b*/g;
|
8805
|
-
call$2(nativeExec, re1, 'a');
|
8806
|
-
call$2(nativeExec, re2, 'a');
|
8807
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
8808
|
-
})();
|
8809
|
-
|
8810
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
8811
|
-
|
8812
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
8813
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
8814
|
-
|
8815
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
8816
|
-
|
8817
|
-
if (PATCH) {
|
8818
|
-
patchedExec = function exec(string) {
|
8819
|
-
var re = this;
|
8820
|
-
var state = getInternalState(re);
|
8821
|
-
var str = toString$1(string);
|
8822
|
-
var raw = state.raw;
|
8823
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
8824
|
-
|
8825
|
-
if (raw) {
|
8826
|
-
raw.lastIndex = re.lastIndex;
|
8827
|
-
result = call$2(patchedExec, raw, str);
|
8828
|
-
re.lastIndex = raw.lastIndex;
|
8829
|
-
return result;
|
8830
|
-
}
|
8831
|
-
|
8832
|
-
var groups = state.groups;
|
8833
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
8834
|
-
var flags = call$2(regexpFlags, re);
|
8835
|
-
var source = re.source;
|
8836
|
-
var charsAdded = 0;
|
8837
|
-
var strCopy = str;
|
8838
|
-
|
8839
|
-
if (sticky) {
|
8840
|
-
flags = replace(flags, 'y', '');
|
8841
|
-
if (indexOf(flags, 'g') === -1) {
|
8842
|
-
flags += 'g';
|
8843
|
-
}
|
8844
|
-
|
8845
|
-
strCopy = stringSlice(str, re.lastIndex);
|
8846
|
-
// Support anchored sticky behavior.
|
8847
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
8848
|
-
source = '(?: ' + source + ')';
|
8849
|
-
strCopy = ' ' + strCopy;
|
8850
|
-
charsAdded++;
|
8851
|
-
}
|
8852
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
8853
|
-
// simulate the 'y' flag.
|
8854
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
8855
|
-
}
|
8856
|
-
|
8857
|
-
if (NPCG_INCLUDED) {
|
8858
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
8859
|
-
}
|
8860
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
8861
|
-
|
8862
|
-
match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
|
8863
|
-
|
8864
|
-
if (sticky) {
|
8865
|
-
if (match) {
|
8866
|
-
match.input = stringSlice(match.input, charsAdded);
|
8867
|
-
match[0] = stringSlice(match[0], charsAdded);
|
8868
|
-
match.index = re.lastIndex;
|
8869
|
-
re.lastIndex += match[0].length;
|
8870
|
-
} else re.lastIndex = 0;
|
8871
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
8872
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
8873
|
-
}
|
8874
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
8875
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
8876
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
8877
|
-
call$2(nativeReplace, match[0], reCopy, function () {
|
8878
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
8879
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
8880
|
-
}
|
8881
|
-
});
|
8882
|
-
}
|
8883
|
-
|
8884
|
-
if (match && groups) {
|
8885
|
-
match.groups = object = create(null);
|
8886
|
-
for (i = 0; i < groups.length; i++) {
|
8887
|
-
group = groups[i];
|
8888
|
-
object[group[0]] = match[group[1]];
|
8889
|
-
}
|
8890
|
-
}
|
8891
|
-
|
8892
|
-
return match;
|
8893
|
-
};
|
8894
|
-
}
|
8895
|
-
|
8896
|
-
var regexpExec$2 = patchedExec;
|
8897
|
-
|
8898
|
-
var $ = _export;
|
8899
|
-
var exec = regexpExec$2;
|
8900
|
-
|
8901
|
-
// `RegExp.prototype.exec` method
|
8902
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
8903
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
8904
|
-
exec: exec
|
8905
|
-
});
|
8906
|
-
|
8907
|
-
var classofRaw = classofRaw$2;
|
8908
|
-
var uncurryThis$1 = functionUncurryThis;
|
8909
|
-
|
8910
|
-
var functionUncurryThisClause = function (fn) {
|
8911
|
-
// Nashorn bug:
|
8912
|
-
// https://github.com/zloirock/core-js/issues/1128
|
8913
|
-
// https://github.com/zloirock/core-js/issues/1130
|
8914
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$1(fn);
|
8915
|
-
};
|
8916
|
-
|
8917
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
8918
|
-
|
8919
|
-
var uncurryThis = functionUncurryThisClause;
|
8920
|
-
var defineBuiltIn = defineBuiltIn$2;
|
8921
|
-
var regexpExec$1 = regexpExec$2;
|
8922
|
-
var fails = fails$d;
|
8923
|
-
var wellKnownSymbol = wellKnownSymbol$4;
|
8924
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
8925
|
-
|
8926
|
-
var SPECIES = wellKnownSymbol('species');
|
8927
|
-
var RegExpPrototype = RegExp.prototype;
|
8928
|
-
|
8929
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
8930
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
8931
|
-
|
8932
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
8933
|
-
// String methods call symbol-named RegEp methods
|
8934
|
-
var O = {};
|
8935
|
-
O[SYMBOL] = function () { return 7; };
|
8936
|
-
return ''[KEY](O) != 7;
|
8937
|
-
});
|
8938
|
-
|
8939
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
8940
|
-
// Symbol-named RegExp methods call .exec
|
8941
|
-
var execCalled = false;
|
8942
|
-
var re = /a/;
|
8943
|
-
|
8944
|
-
if (KEY === 'split') {
|
8945
|
-
// We can't use real regex here since it causes deoptimization
|
8946
|
-
// and serious performance degradation in V8
|
8947
|
-
// https://github.com/zloirock/core-js/issues/306
|
8948
|
-
re = {};
|
8949
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
8950
|
-
// a new one. We need to return the patched regex when creating the new one.
|
8951
|
-
re.constructor = {};
|
8952
|
-
re.constructor[SPECIES] = function () { return re; };
|
8953
|
-
re.flags = '';
|
8954
|
-
re[SYMBOL] = /./[SYMBOL];
|
8955
|
-
}
|
8956
|
-
|
8957
|
-
re.exec = function () { execCalled = true; return null; };
|
8958
|
-
|
8959
|
-
re[SYMBOL]('');
|
8960
|
-
return !execCalled;
|
8961
|
-
});
|
8962
|
-
|
8963
|
-
if (
|
8964
|
-
!DELEGATES_TO_SYMBOL ||
|
8965
|
-
!DELEGATES_TO_EXEC ||
|
8966
|
-
FORCED
|
8967
|
-
) {
|
8968
|
-
var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
|
8969
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
8970
|
-
var uncurriedNativeMethod = uncurryThis(nativeMethod);
|
8971
|
-
var $exec = regexp.exec;
|
8972
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
8973
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
8974
|
-
// The native String method already delegates to @@method (this
|
8975
|
-
// polyfilled function), leasing to infinite recursion.
|
8976
|
-
// We avoid it by directly calling the native @@method method.
|
8977
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
8978
|
-
}
|
8979
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
8980
|
-
}
|
8981
|
-
return { done: false };
|
8982
|
-
});
|
8983
|
-
|
8984
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
8985
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
8986
|
-
}
|
8987
|
-
|
8988
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
8989
|
-
};
|
8990
|
-
|
8991
|
-
// `SameValue` abstract operation
|
8992
|
-
// https://tc39.es/ecma262/#sec-samevalue
|
8993
|
-
// eslint-disable-next-line es/no-object-is -- safe
|
8994
|
-
var sameValue$1 = Object.is || function is(x, y) {
|
8995
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
8996
|
-
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
8997
|
-
};
|
8998
|
-
|
8999
|
-
var call$1 = functionCall;
|
9000
|
-
var anObject$1 = anObject$7;
|
9001
|
-
var isCallable = isCallable$c;
|
9002
|
-
var classof = classofRaw$2;
|
9003
|
-
var regexpExec = regexpExec$2;
|
9004
|
-
|
9005
|
-
var $TypeError = TypeError;
|
9006
|
-
|
9007
|
-
// `RegExpExec` abstract operation
|
9008
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
9009
|
-
var regexpExecAbstract = function (R, S) {
|
9010
|
-
var exec = R.exec;
|
9011
|
-
if (isCallable(exec)) {
|
9012
|
-
var result = call$1(exec, R, S);
|
9013
|
-
if (result !== null) anObject$1(result);
|
9014
|
-
return result;
|
9015
|
-
}
|
9016
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
9017
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
9018
|
-
};
|
9019
|
-
|
9020
|
-
var call = functionCall;
|
9021
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
9022
|
-
var anObject = anObject$7;
|
9023
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
9024
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
9025
|
-
var sameValue = sameValue$1;
|
9026
|
-
var toString = toString$2;
|
9027
|
-
var getMethod = getMethod$2;
|
9028
|
-
var regExpExec = regexpExecAbstract;
|
9029
|
-
|
9030
|
-
// @@search logic
|
9031
|
-
fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
9032
|
-
return [
|
9033
|
-
// `String.prototype.search` method
|
9034
|
-
// https://tc39.es/ecma262/#sec-string.prototype.search
|
9035
|
-
function search(regexp) {
|
9036
|
-
var O = requireObjectCoercible(this);
|
9037
|
-
var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
|
9038
|
-
return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
|
9039
|
-
},
|
9040
|
-
// `RegExp.prototype[@@search]` method
|
9041
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
9042
|
-
function (string) {
|
9043
|
-
var rx = anObject(this);
|
9044
|
-
var S = toString(string);
|
9045
|
-
var res = maybeCallNative(nativeSearch, rx, S);
|
9046
|
-
|
9047
|
-
if (res.done) return res.value;
|
9048
|
-
|
9049
|
-
var previousLastIndex = rx.lastIndex;
|
9050
|
-
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
9051
|
-
var result = regExpExec(rx, S);
|
9052
|
-
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
|
9053
|
-
return result === null ? -1 : result.index;
|
9054
|
-
}
|
9055
|
-
];
|
9056
|
-
});
|
9057
|
-
|
9058
|
-
function getPaperUtilityClass(slot) {
|
9059
|
-
return generateUtilityClass('MuiPaper', slot);
|
9060
|
-
}
|
9061
|
-
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
9062
|
-
|
9063
|
-
const _excluded$3 = ["className", "component", "elevation", "square", "variant"];
|
9064
|
-
const useUtilityClasses$3 = ownerState => {
|
9065
|
-
const {
|
9066
|
-
square,
|
9067
|
-
elevation,
|
9068
|
-
variant,
|
9069
|
-
classes
|
9070
|
-
} = ownerState;
|
9071
|
-
const slots = {
|
9072
|
-
root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
|
9073
|
-
};
|
9074
|
-
return composeClasses(slots, getPaperUtilityClass, classes);
|
9075
|
-
};
|
9076
|
-
const PaperRoot = styled$1('div', {
|
9077
|
-
name: 'MuiPaper',
|
9078
|
-
slot: 'Root',
|
9079
|
-
overridesResolver: (props, styles) => {
|
9080
|
-
const {
|
9081
|
-
ownerState
|
9082
|
-
} = props;
|
9083
|
-
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
9084
|
-
}
|
9085
|
-
})(({
|
9086
|
-
theme,
|
9087
|
-
ownerState
|
9088
|
-
}) => {
|
9089
|
-
var _theme$vars$overlays;
|
9090
|
-
return _extends({
|
9091
|
-
backgroundColor: (theme.vars || theme).palette.background.paper,
|
9092
|
-
color: (theme.vars || theme).palette.text.primary,
|
9093
|
-
transition: theme.transitions.create('box-shadow')
|
9094
|
-
}, !ownerState.square && {
|
9095
|
-
borderRadius: theme.shape.borderRadius
|
9096
|
-
}, ownerState.variant === 'outlined' && {
|
9097
|
-
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
9098
|
-
}, ownerState.variant === 'elevation' && _extends({
|
9099
|
-
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
9100
|
-
}, !theme.vars && theme.palette.mode === 'dark' && {
|
9101
|
-
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha$1(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha$1(ownerState.elevation))})`
|
9102
|
-
}, theme.vars && {
|
9103
|
-
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
9104
|
-
}));
|
9105
|
-
});
|
9106
|
-
const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
9107
|
-
const props = useThemeProps({
|
9108
|
-
props: inProps,
|
9109
|
-
name: 'MuiPaper'
|
9110
|
-
});
|
9111
|
-
const {
|
9112
|
-
className,
|
9113
|
-
component = 'div',
|
9114
|
-
elevation = 1,
|
9115
|
-
square = false,
|
9116
|
-
variant = 'elevation'
|
9117
|
-
} = props,
|
9118
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
9119
|
-
const ownerState = _extends({}, props, {
|
9120
|
-
component,
|
9121
|
-
elevation,
|
9122
|
-
square,
|
9123
|
-
variant
|
9124
|
-
});
|
9125
|
-
const classes = useUtilityClasses$3(ownerState);
|
9126
|
-
if (process.env.NODE_ENV !== 'production') {
|
9127
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
9128
|
-
const theme = useTheme();
|
9129
|
-
if (theme.shadows[elevation] === undefined) {
|
9130
|
-
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
9131
|
-
}
|
9132
|
-
}
|
9133
|
-
return /*#__PURE__*/jsx(PaperRoot, _extends({
|
9134
|
-
as: component,
|
9135
|
-
ownerState: ownerState,
|
9136
|
-
className: clsx(classes.root, className),
|
9137
|
-
ref: ref
|
9138
|
-
}, other));
|
9139
|
-
});
|
9140
|
-
process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ = {
|
9141
|
-
// ----------------------------- Warning --------------------------------
|
9142
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9143
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9144
|
-
// ----------------------------------------------------------------------
|
9145
|
-
/**
|
9146
|
-
* The content of the component.
|
9147
|
-
*/
|
9148
|
-
children: PropTypes.node,
|
9149
|
-
/**
|
9150
|
-
* Override or extend the styles applied to the component.
|
9151
|
-
*/
|
9152
|
-
classes: PropTypes.object,
|
9153
|
-
/**
|
9154
|
-
* @ignore
|
9155
|
-
*/
|
9156
|
-
className: PropTypes.string,
|
9157
|
-
/**
|
9158
|
-
* The component used for the root node.
|
9159
|
-
* Either a string to use a HTML element or a component.
|
9160
|
-
*/
|
9161
|
-
component: PropTypes.elementType,
|
9162
|
-
/**
|
9163
|
-
* Shadow depth, corresponds to `dp` in the spec.
|
9164
|
-
* It accepts values between 0 and 24 inclusive.
|
9165
|
-
* @default 1
|
9166
|
-
*/
|
9167
|
-
elevation: chainPropTypes(integerPropType, props => {
|
9168
|
-
const {
|
9169
|
-
elevation,
|
9170
|
-
variant
|
9171
|
-
} = props;
|
9172
|
-
if (elevation > 0 && variant === 'outlined') {
|
9173
|
-
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
9174
|
-
}
|
9175
|
-
return null;
|
9176
|
-
}),
|
9177
|
-
/**
|
9178
|
-
* If `true`, rounded corners are disabled.
|
9179
|
-
* @default false
|
9180
|
-
*/
|
9181
|
-
square: PropTypes.bool,
|
9182
|
-
/**
|
9183
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
9184
|
-
*/
|
9185
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
9186
|
-
/**
|
9187
|
-
* The variant to use.
|
9188
|
-
* @default 'elevation'
|
9189
|
-
*/
|
9190
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
|
9191
|
-
} : void 0;
|
9192
|
-
var Paper$1 = Paper;
|
9193
|
-
|
9194
|
-
function getTypographyUtilityClass(slot) {
|
9195
|
-
return generateUtilityClass('MuiTypography', slot);
|
9196
|
-
}
|
9197
|
-
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
9198
|
-
|
9199
|
-
const _excluded$2 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
9200
|
-
const useUtilityClasses$2 = ownerState => {
|
9201
|
-
const {
|
9202
|
-
align,
|
9203
|
-
gutterBottom,
|
9204
|
-
noWrap,
|
9205
|
-
paragraph,
|
9206
|
-
variant,
|
9207
|
-
classes
|
9208
|
-
} = ownerState;
|
9209
|
-
const slots = {
|
9210
|
-
root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap', paragraph && 'paragraph']
|
9211
|
-
};
|
9212
|
-
return composeClasses(slots, getTypographyUtilityClass, classes);
|
9213
|
-
};
|
9214
|
-
const TypographyRoot = styled$1('span', {
|
9215
|
-
name: 'MuiTypography',
|
9216
|
-
slot: 'Root',
|
9217
|
-
overridesResolver: (props, styles) => {
|
9218
|
-
const {
|
9219
|
-
ownerState
|
9220
|
-
} = props;
|
9221
|
-
return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
|
9222
|
-
}
|
9223
|
-
})(({
|
9224
|
-
theme,
|
9225
|
-
ownerState
|
9226
|
-
}) => _extends({
|
9227
|
-
margin: 0
|
9228
|
-
}, ownerState.variant && theme.typography[ownerState.variant], ownerState.align !== 'inherit' && {
|
9229
|
-
textAlign: ownerState.align
|
9230
|
-
}, ownerState.noWrap && {
|
9231
|
-
overflow: 'hidden',
|
9232
|
-
textOverflow: 'ellipsis',
|
9233
|
-
whiteSpace: 'nowrap'
|
9234
|
-
}, ownerState.gutterBottom && {
|
9235
|
-
marginBottom: '0.35em'
|
9236
|
-
}, ownerState.paragraph && {
|
9237
|
-
marginBottom: 16
|
9238
|
-
}));
|
9239
|
-
const defaultVariantMapping = {
|
9240
|
-
h1: 'h1',
|
9241
|
-
h2: 'h2',
|
9242
|
-
h3: 'h3',
|
9243
|
-
h4: 'h4',
|
9244
|
-
h5: 'h5',
|
9245
|
-
h6: 'h6',
|
9246
|
-
subtitle1: 'h6',
|
9247
|
-
subtitle2: 'h6',
|
9248
|
-
body1: 'p',
|
9249
|
-
body2: 'p',
|
9250
|
-
inherit: 'p'
|
9251
|
-
};
|
9252
|
-
|
9253
|
-
// TODO v6: deprecate these color values in v5.x and remove the transformation in v6
|
9254
|
-
const colorTransformations = {
|
9255
|
-
primary: 'primary.main',
|
9256
|
-
textPrimary: 'text.primary',
|
9257
|
-
secondary: 'secondary.main',
|
9258
|
-
textSecondary: 'text.secondary',
|
9259
|
-
error: 'error.main'
|
9260
|
-
};
|
9261
|
-
const transformDeprecatedColors = color => {
|
9262
|
-
return colorTransformations[color] || color;
|
9263
|
-
};
|
9264
|
-
const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
|
9265
|
-
const themeProps = useThemeProps({
|
9266
|
-
props: inProps,
|
9267
|
-
name: 'MuiTypography'
|
9268
|
-
});
|
9269
|
-
const color = transformDeprecatedColors(themeProps.color);
|
9270
|
-
const props = extendSxProp(_extends({}, themeProps, {
|
9271
|
-
color
|
9272
|
-
}));
|
9273
|
-
const {
|
9274
|
-
align = 'inherit',
|
9275
|
-
className,
|
9276
|
-
component,
|
9277
|
-
gutterBottom = false,
|
9278
|
-
noWrap = false,
|
9279
|
-
paragraph = false,
|
9280
|
-
variant = 'body1',
|
9281
|
-
variantMapping = defaultVariantMapping
|
9282
|
-
} = props,
|
9283
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
9284
|
-
const ownerState = _extends({}, props, {
|
9285
|
-
align,
|
9286
|
-
color,
|
9287
|
-
className,
|
9288
|
-
component,
|
9289
|
-
gutterBottom,
|
9290
|
-
noWrap,
|
9291
|
-
paragraph,
|
9292
|
-
variant,
|
9293
|
-
variantMapping
|
9294
|
-
});
|
9295
|
-
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
9296
|
-
const classes = useUtilityClasses$2(ownerState);
|
9297
|
-
return /*#__PURE__*/jsx(TypographyRoot, _extends({
|
9298
|
-
as: Component,
|
9299
|
-
ref: ref,
|
9300
|
-
ownerState: ownerState,
|
9301
|
-
className: clsx(classes.root, className)
|
9302
|
-
}, other));
|
9303
|
-
});
|
9304
|
-
process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes */ = {
|
9305
|
-
// ----------------------------- Warning --------------------------------
|
9306
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9307
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9308
|
-
// ----------------------------------------------------------------------
|
9309
|
-
/**
|
9310
|
-
* Set the text-align on the component.
|
9311
|
-
* @default 'inherit'
|
9312
|
-
*/
|
9313
|
-
align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),
|
9314
|
-
/**
|
9315
|
-
* The content of the component.
|
9316
|
-
*/
|
9317
|
-
children: PropTypes.node,
|
9318
|
-
/**
|
9319
|
-
* Override or extend the styles applied to the component.
|
9320
|
-
*/
|
9321
|
-
classes: PropTypes.object,
|
9322
|
-
/**
|
9323
|
-
* @ignore
|
9324
|
-
*/
|
9325
|
-
className: PropTypes.string,
|
9326
|
-
/**
|
9327
|
-
* The component used for the root node.
|
9328
|
-
* Either a string to use a HTML element or a component.
|
9329
|
-
*/
|
9330
|
-
component: PropTypes.elementType,
|
9331
|
-
/**
|
9332
|
-
* If `true`, the text will have a bottom margin.
|
9333
|
-
* @default false
|
9334
|
-
*/
|
9335
|
-
gutterBottom: PropTypes.bool,
|
9336
|
-
/**
|
9337
|
-
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
9338
|
-
*
|
9339
|
-
* Note that text overflow can only happen with block or inline-block level elements
|
9340
|
-
* (the element needs to have a width in order to overflow).
|
9341
|
-
* @default false
|
9342
|
-
*/
|
9343
|
-
noWrap: PropTypes.bool,
|
9344
|
-
/**
|
9345
|
-
* If `true`, the element will be a paragraph element.
|
9346
|
-
* @default false
|
9347
|
-
*/
|
9348
|
-
paragraph: PropTypes.bool,
|
9349
|
-
/**
|
9350
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
9351
|
-
*/
|
9352
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
9353
|
-
/**
|
9354
|
-
* Applies the theme typography styles.
|
9355
|
-
* @default 'body1'
|
9356
|
-
*/
|
9357
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string]),
|
9358
|
-
/**
|
9359
|
-
* The component maps the variant prop to a range of different HTML element types.
|
9360
|
-
* For instance, subtitle1 to `<h6>`.
|
9361
|
-
* If you wish to change that mapping, you can provide your own.
|
9362
|
-
* Alternatively, you can use the `component` prop.
|
9363
|
-
* @default {
|
9364
|
-
* h1: 'h1',
|
9365
|
-
* h2: 'h2',
|
9366
|
-
* h3: 'h3',
|
9367
|
-
* h4: 'h4',
|
9368
|
-
* h5: 'h5',
|
9369
|
-
* h6: 'h6',
|
9370
|
-
* subtitle1: 'h6',
|
9371
|
-
* subtitle2: 'h6',
|
9372
|
-
* body1: 'p',
|
9373
|
-
* body2: 'p',
|
9374
|
-
* inherit: 'p',
|
9375
|
-
* }
|
9376
|
-
*/
|
9377
|
-
variantMapping: PropTypes /* @typescript-to-proptypes-ignore */.object
|
9378
|
-
} : void 0;
|
9379
|
-
var Typography$1 = Typography;
|
9380
|
-
|
9381
|
-
const defaultTheme = createTheme();
|
9382
|
-
const Box = createBox({
|
9383
|
-
themeId: THEME_ID,
|
9384
|
-
defaultTheme,
|
9385
|
-
defaultClassName: 'MuiBox-root',
|
9386
|
-
generateClassName: ClassNameGenerator$1.generate
|
9387
|
-
});
|
9388
|
-
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
9389
|
-
// ----------------------------- Warning --------------------------------
|
9390
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9391
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9392
|
-
// ----------------------------------------------------------------------
|
9393
|
-
/**
|
9394
|
-
* @ignore
|
9395
|
-
*/
|
9396
|
-
children: PropTypes.node,
|
9397
|
-
/**
|
9398
|
-
* The component used for the root node.
|
9399
|
-
* Either a string to use a HTML element or a component.
|
9400
|
-
*/
|
9401
|
-
component: PropTypes.elementType,
|
9402
|
-
/**
|
9403
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
9404
|
-
*/
|
9405
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
9406
|
-
} : void 0;
|
9407
|
-
var Box$1 = Box;
|
9408
|
-
|
9409
|
-
function getCardUtilityClass(slot) {
|
9410
|
-
return generateUtilityClass('MuiCard', slot);
|
9411
|
-
}
|
9412
|
-
generateUtilityClasses('MuiCard', ['root']);
|
9413
|
-
|
9414
|
-
const _excluded$1 = ["className", "raised"];
|
9415
|
-
const useUtilityClasses$1 = ownerState => {
|
9416
|
-
const {
|
9417
|
-
classes
|
9418
|
-
} = ownerState;
|
9419
|
-
const slots = {
|
9420
|
-
root: ['root']
|
9421
|
-
};
|
9422
|
-
return composeClasses(slots, getCardUtilityClass, classes);
|
9423
|
-
};
|
9424
|
-
const CardRoot = styled$1(Paper$1, {
|
9425
|
-
name: 'MuiCard',
|
9426
|
-
slot: 'Root',
|
9427
|
-
overridesResolver: (props, styles) => styles.root
|
9428
|
-
})(() => {
|
9429
|
-
return {
|
9430
|
-
overflow: 'hidden'
|
9431
|
-
};
|
9432
|
-
});
|
9433
|
-
const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
9434
|
-
const props = useThemeProps({
|
9435
|
-
props: inProps,
|
9436
|
-
name: 'MuiCard'
|
9437
|
-
});
|
9438
|
-
const {
|
9439
|
-
className,
|
9440
|
-
raised = false
|
9441
|
-
} = props,
|
9442
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
9443
|
-
const ownerState = _extends({}, props, {
|
9444
|
-
raised
|
9445
|
-
});
|
9446
|
-
const classes = useUtilityClasses$1(ownerState);
|
9447
|
-
return /*#__PURE__*/jsx(CardRoot, _extends({
|
9448
|
-
className: clsx(classes.root, className),
|
9449
|
-
elevation: raised ? 8 : undefined,
|
9450
|
-
ref: ref,
|
9451
|
-
ownerState: ownerState
|
9452
|
-
}, other));
|
9453
|
-
});
|
9454
|
-
process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
|
9455
|
-
// ----------------------------- Warning --------------------------------
|
9456
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9457
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9458
|
-
// ----------------------------------------------------------------------
|
9459
|
-
/**
|
9460
|
-
* The content of the component.
|
9461
|
-
*/
|
9462
|
-
children: PropTypes.node,
|
9463
|
-
/**
|
9464
|
-
* Override or extend the styles applied to the component.
|
9465
|
-
*/
|
9466
|
-
classes: PropTypes.object,
|
9467
|
-
/**
|
9468
|
-
* @ignore
|
9469
|
-
*/
|
9470
|
-
className: PropTypes.string,
|
9471
|
-
/**
|
9472
|
-
* If `true`, the card will use raised styling.
|
9473
|
-
* @default false
|
9474
|
-
*/
|
9475
|
-
raised: chainPropTypes(PropTypes.bool, props => {
|
9476
|
-
if (props.raised && props.variant === 'outlined') {
|
9477
|
-
return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
|
9478
|
-
}
|
9479
|
-
return null;
|
9480
|
-
}),
|
9481
|
-
/**
|
9482
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
9483
|
-
*/
|
9484
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
9485
|
-
} : void 0;
|
9486
|
-
var Card$1 = Card;
|
9487
|
-
|
9488
|
-
function getCardContentUtilityClass(slot) {
|
9489
|
-
return generateUtilityClass('MuiCardContent', slot);
|
9490
|
-
}
|
9491
|
-
generateUtilityClasses('MuiCardContent', ['root']);
|
9492
|
-
|
9493
|
-
const _excluded = ["className", "component"];
|
9494
|
-
const useUtilityClasses = ownerState => {
|
9495
|
-
const {
|
9496
|
-
classes
|
9497
|
-
} = ownerState;
|
9498
|
-
const slots = {
|
9499
|
-
root: ['root']
|
9500
|
-
};
|
9501
|
-
return composeClasses(slots, getCardContentUtilityClass, classes);
|
9502
|
-
};
|
9503
|
-
const CardContentRoot = styled$1('div', {
|
9504
|
-
name: 'MuiCardContent',
|
9505
|
-
slot: 'Root',
|
9506
|
-
overridesResolver: (props, styles) => styles.root
|
9507
|
-
})(() => {
|
9508
|
-
return {
|
9509
|
-
padding: 16,
|
9510
|
-
'&:last-child': {
|
9511
|
-
paddingBottom: 24
|
9512
|
-
}
|
9513
|
-
};
|
9514
|
-
});
|
9515
|
-
const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {
|
9516
|
-
const props = useThemeProps({
|
9517
|
-
props: inProps,
|
9518
|
-
name: 'MuiCardContent'
|
9519
|
-
});
|
9520
|
-
const {
|
9521
|
-
className,
|
9522
|
-
component = 'div'
|
9523
|
-
} = props,
|
9524
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
9525
|
-
const ownerState = _extends({}, props, {
|
9526
|
-
component
|
9527
|
-
});
|
9528
|
-
const classes = useUtilityClasses(ownerState);
|
9529
|
-
return /*#__PURE__*/jsx(CardContentRoot, _extends({
|
9530
|
-
as: component,
|
9531
|
-
className: clsx(classes.root, className),
|
9532
|
-
ownerState: ownerState,
|
9533
|
-
ref: ref
|
9534
|
-
}, other));
|
9535
|
-
});
|
9536
|
-
process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptypes */ = {
|
9537
|
-
// ----------------------------- Warning --------------------------------
|
9538
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9539
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9540
|
-
// ----------------------------------------------------------------------
|
9541
|
-
/**
|
9542
|
-
* The content of the component.
|
9543
|
-
*/
|
9544
|
-
children: PropTypes.node,
|
9545
|
-
/**
|
9546
|
-
* Override or extend the styles applied to the component.
|
9547
|
-
*/
|
9548
|
-
classes: PropTypes.object,
|
9549
|
-
/**
|
9550
|
-
* @ignore
|
9551
|
-
*/
|
9552
|
-
className: PropTypes.string,
|
9553
|
-
/**
|
9554
|
-
* The component used for the root node.
|
9555
|
-
* Either a string to use a HTML element or a component.
|
9556
|
-
*/
|
9557
|
-
component: PropTypes.elementType,
|
9558
|
-
/**
|
9559
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
9560
|
-
*/
|
9561
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
9562
|
-
} : void 0;
|
9563
|
-
var CardContent$1 = CardContent;
|
9564
|
-
|
9565
|
-
const Stack = createStack({
|
9566
|
-
createStyledComponent: styled$1('div', {
|
9567
|
-
name: 'MuiStack',
|
9568
|
-
slot: 'Root',
|
9569
|
-
overridesResolver: (props, styles) => styles.root
|
9570
|
-
}),
|
9571
|
-
useThemeProps: inProps => useThemeProps({
|
9572
|
-
props: inProps,
|
9573
|
-
name: 'MuiStack'
|
9574
|
-
})
|
9575
|
-
});
|
9576
|
-
process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ = {
|
9577
|
-
// ----------------------------- Warning --------------------------------
|
9578
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
9579
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
9580
|
-
// ----------------------------------------------------------------------
|
9581
|
-
/**
|
9582
|
-
* The content of the component.
|
9583
|
-
*/
|
9584
|
-
children: PropTypes.node,
|
9585
|
-
/**
|
9586
|
-
* The component used for the root node.
|
9587
|
-
* Either a string to use a HTML element or a component.
|
9588
|
-
*/
|
9589
|
-
component: PropTypes.elementType,
|
9590
|
-
/**
|
9591
|
-
* Defines the `flex-direction` style property.
|
9592
|
-
* It is applied for all screen sizes.
|
9593
|
-
* @default 'column'
|
9594
|
-
*/
|
9595
|
-
direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
|
9596
|
-
/**
|
9597
|
-
* Add an element between each child.
|
9598
|
-
*/
|
9599
|
-
divider: PropTypes.node,
|
9600
|
-
/**
|
9601
|
-
* Defines the space between immediate children.
|
9602
|
-
* @default 0
|
9603
|
-
*/
|
9604
|
-
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
9605
|
-
/**
|
9606
|
-
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
9607
|
-
*/
|
9608
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
9609
|
-
/**
|
9610
|
-
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
9611
|
-
*
|
9612
|
-
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
9613
|
-
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
9614
|
-
*
|
9615
|
-
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
9616
|
-
* @default false
|
9617
|
-
*/
|
9618
|
-
useFlexGap: PropTypes.bool
|
9619
|
-
} : void 0;
|
9620
|
-
var Stack$1 = Stack;
|
9621
|
-
|
9622
|
-
var UrlImage;
|
9623
|
-
(function (UrlImage) {
|
9624
|
-
UrlImage["error"] = "packages\reactsrclibassetssinco-icons.svg#error";
|
9625
|
-
UrlImage["search"] = "packages\reactsrclibassetssinco-icons.svg#search";
|
9626
|
-
UrlImage["noresult"] = "packages\reactsrclibassetssinco-icons.svg#noresult";
|
9627
|
-
UrlImage["create"] = "packages\reactsrclibassetssinco-icons.svg#create";
|
9628
|
-
})(UrlImage || (UrlImage = {}));
|
9629
|
-
const EmptyState = ({
|
9630
|
-
state: _state = 'create',
|
9631
|
-
title,
|
9632
|
-
content,
|
9633
|
-
actions
|
9634
|
-
}) => {
|
9635
|
-
const retornarImagen = () => {
|
9636
|
-
return UrlImage[_state];
|
9637
|
-
};
|
9638
|
-
return jsx(Card$1, {
|
9639
|
-
elevation: 1,
|
9640
|
-
children: jsxs(CardContent$1, {
|
9641
|
-
sx: {
|
9642
|
-
display: 'flex',
|
9643
|
-
alignItems: 'center',
|
9644
|
-
justifyContent: 'center',
|
9645
|
-
flexDirection: 'column',
|
9646
|
-
gap: 4
|
9647
|
-
},
|
9648
|
-
children: [jsx(Box$1, {
|
9649
|
-
width: 206,
|
9650
|
-
height: 187,
|
9651
|
-
children: jsx("svg", {
|
9652
|
-
children: jsx("use", {
|
9653
|
-
xlinkHref: retornarImagen()
|
9654
|
-
})
|
9655
|
-
})
|
9656
|
-
}), jsxs(Stack$1, {
|
9657
|
-
direction: "column",
|
9658
|
-
spacing: 2,
|
9659
|
-
children: [title && jsx(Typography$1, {
|
9660
|
-
variant: "h6",
|
9661
|
-
textAlign: "center",
|
9662
|
-
children: title
|
9663
|
-
}), content && jsx(Typography$1, {
|
9664
|
-
variant: "body1",
|
9665
|
-
textAlign: "center",
|
9666
|
-
color: "text.secondary",
|
9667
|
-
children: content
|
9668
|
-
}), _state === 'create' && actions && jsx(Stack$1, {
|
9669
|
-
direction: "row",
|
9670
|
-
spacing: 2,
|
9671
|
-
justifyContent: "center",
|
9672
|
-
children: actions
|
9673
|
-
})]
|
9674
|
-
})]
|
9675
|
-
})
|
9676
|
-
});
|
9677
|
-
};
|
9678
|
-
|
9679
|
-
export { EmptyState, SincoTheme, UrlImage };
|
8178
|
+
export { SincoTheme };
|