@me1a/ui 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hook-forms/index.cjs.js +155 -2361
- package/dist/hook-forms/index.cjs.js.map +1 -1
- package/dist/hook-forms/index.es.js +151 -2357
- package/dist/hook-forms/index.es.js.map +1 -1
- package/dist/index.cjs.js +155 -2361
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +151 -2357
- package/dist/index.es.js.map +1 -1
- package/package.json +6 -11
- package/dist/example/mui/index.d.ts +0 -1
- package/dist/hook-forms/mui/index.d.ts +0 -1
- package/dist/mui/example/index.d.ts +0 -1
- package/dist/mui/example/simple.d.ts +0 -4
- package/dist/mui/hook-forms/form-provider.d.ts +0 -8
- package/dist/mui/hook-forms/index.d.ts +0 -11
- package/dist/mui/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/mui/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/mui/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/mui/hook-forms/rhf-select.d.ts +0 -11
- package/dist/mui/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/mui/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/mui/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/mui/index.cjs.js +0 -54943
- package/dist/mui/index.cjs.js.map +0 -1
- package/dist/mui/index.d.ts +0 -2
- package/dist/mui/index.es.js +0 -54463
- package/dist/mui/index.es.js.map +0 -1
- package/dist/mui/mui/index.d.ts +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var emStyled = require('@emotion/styled');
|
|
5
|
+
var react = require('@emotion/react');
|
|
4
6
|
var ReactDOM = require('react-dom');
|
|
5
7
|
|
|
6
8
|
function _interopNamespaceDefault(e) {
|
|
@@ -4049,9 +4051,9 @@ var jsxRuntimeExports = requireJsxRuntime();
|
|
|
4049
4051
|
|
|
4050
4052
|
var propTypes = {exports: {}};
|
|
4051
4053
|
|
|
4052
|
-
var reactIs$
|
|
4054
|
+
var reactIs$1 = {exports: {}};
|
|
4053
4055
|
|
|
4054
|
-
var reactIs_production_min$
|
|
4056
|
+
var reactIs_production_min$1 = {};
|
|
4055
4057
|
|
|
4056
4058
|
/** @license React v16.13.1
|
|
4057
4059
|
* react-is.production.min.js
|
|
@@ -4062,21 +4064,21 @@ var reactIs_production_min$2 = {};
|
|
|
4062
4064
|
* LICENSE file in the root directory of this source tree.
|
|
4063
4065
|
*/
|
|
4064
4066
|
|
|
4065
|
-
var hasRequiredReactIs_production_min$
|
|
4067
|
+
var hasRequiredReactIs_production_min$1;
|
|
4066
4068
|
|
|
4067
|
-
function requireReactIs_production_min$
|
|
4068
|
-
if (hasRequiredReactIs_production_min$
|
|
4069
|
-
hasRequiredReactIs_production_min$
|
|
4069
|
+
function requireReactIs_production_min$1 () {
|
|
4070
|
+
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
4071
|
+
hasRequiredReactIs_production_min$1 = 1;
|
|
4070
4072
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
4071
4073
|
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
4072
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$
|
|
4073
|
-
reactIs_production_min$
|
|
4074
|
-
reactIs_production_min$
|
|
4075
|
-
reactIs_production_min$
|
|
4076
|
-
return reactIs_production_min$
|
|
4074
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
|
|
4075
|
+
reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
|
|
4076
|
+
reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
|
|
4077
|
+
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
|
|
4078
|
+
return reactIs_production_min$1;
|
|
4077
4079
|
}
|
|
4078
4080
|
|
|
4079
|
-
var reactIs_development$
|
|
4081
|
+
var reactIs_development$1 = {};
|
|
4080
4082
|
|
|
4081
4083
|
/** @license React v16.13.1
|
|
4082
4084
|
* react-is.development.js
|
|
@@ -4087,11 +4089,11 @@ var reactIs_development$2 = {};
|
|
|
4087
4089
|
* LICENSE file in the root directory of this source tree.
|
|
4088
4090
|
*/
|
|
4089
4091
|
|
|
4090
|
-
var hasRequiredReactIs_development$
|
|
4092
|
+
var hasRequiredReactIs_development$1;
|
|
4091
4093
|
|
|
4092
|
-
function requireReactIs_development$
|
|
4093
|
-
if (hasRequiredReactIs_development$
|
|
4094
|
-
hasRequiredReactIs_development$
|
|
4094
|
+
function requireReactIs_development$1 () {
|
|
4095
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
4096
|
+
hasRequiredReactIs_development$1 = 1;
|
|
4095
4097
|
|
|
4096
4098
|
|
|
4097
4099
|
|
|
@@ -4232,51 +4234,51 @@ function requireReactIs_development$2 () {
|
|
|
4232
4234
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
4233
4235
|
}
|
|
4234
4236
|
|
|
4235
|
-
reactIs_development$
|
|
4236
|
-
reactIs_development$
|
|
4237
|
-
reactIs_development$
|
|
4238
|
-
reactIs_development$
|
|
4239
|
-
reactIs_development$
|
|
4240
|
-
reactIs_development$
|
|
4241
|
-
reactIs_development$
|
|
4242
|
-
reactIs_development$
|
|
4243
|
-
reactIs_development$
|
|
4244
|
-
reactIs_development$
|
|
4245
|
-
reactIs_development$
|
|
4246
|
-
reactIs_development$
|
|
4247
|
-
reactIs_development$
|
|
4248
|
-
reactIs_development$
|
|
4249
|
-
reactIs_development$
|
|
4250
|
-
reactIs_development$
|
|
4251
|
-
reactIs_development$
|
|
4252
|
-
reactIs_development$
|
|
4253
|
-
reactIs_development$
|
|
4254
|
-
reactIs_development$
|
|
4255
|
-
reactIs_development$
|
|
4256
|
-
reactIs_development$
|
|
4257
|
-
reactIs_development$
|
|
4258
|
-
reactIs_development$
|
|
4259
|
-
reactIs_development$
|
|
4260
|
-
reactIs_development$
|
|
4261
|
-
reactIs_development$
|
|
4262
|
-
reactIs_development$
|
|
4237
|
+
reactIs_development$1.AsyncMode = AsyncMode;
|
|
4238
|
+
reactIs_development$1.ConcurrentMode = ConcurrentMode;
|
|
4239
|
+
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
4240
|
+
reactIs_development$1.ContextProvider = ContextProvider;
|
|
4241
|
+
reactIs_development$1.Element = Element;
|
|
4242
|
+
reactIs_development$1.ForwardRef = ForwardRef;
|
|
4243
|
+
reactIs_development$1.Fragment = Fragment;
|
|
4244
|
+
reactIs_development$1.Lazy = Lazy;
|
|
4245
|
+
reactIs_development$1.Memo = Memo;
|
|
4246
|
+
reactIs_development$1.Portal = Portal;
|
|
4247
|
+
reactIs_development$1.Profiler = Profiler;
|
|
4248
|
+
reactIs_development$1.StrictMode = StrictMode;
|
|
4249
|
+
reactIs_development$1.Suspense = Suspense;
|
|
4250
|
+
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
4251
|
+
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
4252
|
+
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
4253
|
+
reactIs_development$1.isContextProvider = isContextProvider;
|
|
4254
|
+
reactIs_development$1.isElement = isElement;
|
|
4255
|
+
reactIs_development$1.isForwardRef = isForwardRef;
|
|
4256
|
+
reactIs_development$1.isFragment = isFragment;
|
|
4257
|
+
reactIs_development$1.isLazy = isLazy;
|
|
4258
|
+
reactIs_development$1.isMemo = isMemo;
|
|
4259
|
+
reactIs_development$1.isPortal = isPortal;
|
|
4260
|
+
reactIs_development$1.isProfiler = isProfiler;
|
|
4261
|
+
reactIs_development$1.isStrictMode = isStrictMode;
|
|
4262
|
+
reactIs_development$1.isSuspense = isSuspense;
|
|
4263
|
+
reactIs_development$1.isValidElementType = isValidElementType;
|
|
4264
|
+
reactIs_development$1.typeOf = typeOf;
|
|
4263
4265
|
})();
|
|
4264
4266
|
}
|
|
4265
|
-
return reactIs_development$
|
|
4267
|
+
return reactIs_development$1;
|
|
4266
4268
|
}
|
|
4267
4269
|
|
|
4268
|
-
var hasRequiredReactIs$
|
|
4270
|
+
var hasRequiredReactIs$1;
|
|
4269
4271
|
|
|
4270
|
-
function requireReactIs$
|
|
4271
|
-
if (hasRequiredReactIs$
|
|
4272
|
-
hasRequiredReactIs$
|
|
4272
|
+
function requireReactIs$1 () {
|
|
4273
|
+
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
4274
|
+
hasRequiredReactIs$1 = 1;
|
|
4273
4275
|
|
|
4274
4276
|
if (process.env.NODE_ENV === 'production') {
|
|
4275
|
-
reactIs$
|
|
4277
|
+
reactIs$1.exports = requireReactIs_production_min$1();
|
|
4276
4278
|
} else {
|
|
4277
|
-
reactIs$
|
|
4279
|
+
reactIs$1.exports = requireReactIs_development$1();
|
|
4278
4280
|
}
|
|
4279
|
-
return reactIs$
|
|
4281
|
+
return reactIs$1.exports;
|
|
4280
4282
|
}
|
|
4281
4283
|
|
|
4282
4284
|
/*
|
|
@@ -4529,7 +4531,7 @@ function requireFactoryWithTypeCheckers () {
|
|
|
4529
4531
|
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
4530
4532
|
hasRequiredFactoryWithTypeCheckers = 1;
|
|
4531
4533
|
|
|
4532
|
-
var ReactIs = requireReactIs$
|
|
4534
|
+
var ReactIs = requireReactIs$1();
|
|
4533
4535
|
var assign = requireObjectAssign();
|
|
4534
4536
|
|
|
4535
4537
|
var ReactPropTypesSecret = /*@__PURE__*/ requireReactPropTypesSecret();
|
|
@@ -5214,7 +5216,7 @@ function requirePropTypes () {
|
|
|
5214
5216
|
if (hasRequiredPropTypes) return propTypes.exports;
|
|
5215
5217
|
hasRequiredPropTypes = 1;
|
|
5216
5218
|
if (process.env.NODE_ENV !== 'production') {
|
|
5217
|
-
var ReactIs = requireReactIs$
|
|
5219
|
+
var ReactIs = requireReactIs$1();
|
|
5218
5220
|
|
|
5219
5221
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
5220
5222
|
// http://fb.me/prop-types-in-prod
|
|
@@ -6357,1812 +6359,83 @@ function unstable_createStyleFunctionSx() {
|
|
|
6357
6359
|
if (config[styleKey]) {
|
|
6358
6360
|
css = merge(css, getThemeValue(styleKey, value, theme, config));
|
|
6359
6361
|
} else {
|
|
6360
|
-
const breakpointsValues = handleBreakpoints({
|
|
6361
|
-
theme
|
|
6362
|
-
}, value, x => ({
|
|
6363
|
-
[styleKey]: x
|
|
6364
|
-
}));
|
|
6365
|
-
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
6366
|
-
css[styleKey] = styleFunctionSx({
|
|
6367
|
-
sx: value,
|
|
6368
|
-
theme
|
|
6369
|
-
});
|
|
6370
|
-
} else {
|
|
6371
|
-
css = merge(css, breakpointsValues);
|
|
6372
|
-
}
|
|
6373
|
-
}
|
|
6374
|
-
} else {
|
|
6375
|
-
css = merge(css, getThemeValue(styleKey, value, theme, config));
|
|
6376
|
-
}
|
|
6377
|
-
}
|
|
6378
|
-
});
|
|
6379
|
-
return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));
|
|
6380
|
-
}
|
|
6381
|
-
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
6382
|
-
}
|
|
6383
|
-
return styleFunctionSx;
|
|
6384
|
-
}
|
|
6385
|
-
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6386
|
-
styleFunctionSx.filterProps = ['sx'];
|
|
6387
|
-
|
|
6388
|
-
const splitProps = props => {
|
|
6389
|
-
const result = {
|
|
6390
|
-
systemProps: {},
|
|
6391
|
-
otherProps: {}
|
|
6392
|
-
};
|
|
6393
|
-
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
|
|
6394
|
-
Object.keys(props).forEach(prop => {
|
|
6395
|
-
if (config[prop]) {
|
|
6396
|
-
result.systemProps[prop] = props[prop];
|
|
6397
|
-
} else {
|
|
6398
|
-
result.otherProps[prop] = props[prop];
|
|
6399
|
-
}
|
|
6400
|
-
});
|
|
6401
|
-
return result;
|
|
6402
|
-
};
|
|
6403
|
-
function extendSxProp$1(props) {
|
|
6404
|
-
const {
|
|
6405
|
-
sx: inSx,
|
|
6406
|
-
...other
|
|
6407
|
-
} = props;
|
|
6408
|
-
const {
|
|
6409
|
-
systemProps,
|
|
6410
|
-
otherProps
|
|
6411
|
-
} = splitProps(other);
|
|
6412
|
-
let finalSx;
|
|
6413
|
-
if (Array.isArray(inSx)) {
|
|
6414
|
-
finalSx = [systemProps, ...inSx];
|
|
6415
|
-
} else if (typeof inSx === 'function') {
|
|
6416
|
-
finalSx = (...args) => {
|
|
6417
|
-
const result = inSx(...args);
|
|
6418
|
-
if (!isPlainObject(result)) {
|
|
6419
|
-
return systemProps;
|
|
6420
|
-
}
|
|
6421
|
-
return {
|
|
6422
|
-
...systemProps,
|
|
6423
|
-
...result
|
|
6424
|
-
};
|
|
6425
|
-
};
|
|
6426
|
-
} else {
|
|
6427
|
-
finalSx = {
|
|
6428
|
-
...systemProps,
|
|
6429
|
-
...inSx
|
|
6430
|
-
};
|
|
6431
|
-
}
|
|
6432
|
-
return {
|
|
6433
|
-
...otherProps,
|
|
6434
|
-
sx: finalSx
|
|
6435
|
-
};
|
|
6436
|
-
}
|
|
6437
|
-
|
|
6438
|
-
function _extends() {
|
|
6439
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
6440
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
6441
|
-
var t = arguments[e];
|
|
6442
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6443
|
-
}
|
|
6444
|
-
return n;
|
|
6445
|
-
}, _extends.apply(null, arguments);
|
|
6446
|
-
}
|
|
6447
|
-
|
|
6448
|
-
function memoize(fn) {
|
|
6449
|
-
var cache = Object.create(null);
|
|
6450
|
-
return function (arg) {
|
|
6451
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
6452
|
-
return cache[arg];
|
|
6453
|
-
};
|
|
6454
|
-
}
|
|
6455
|
-
|
|
6456
|
-
// eslint-disable-next-line no-undef
|
|
6457
|
-
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
6458
|
-
|
|
6459
|
-
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
6460
|
-
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
6461
|
-
/* o */
|
|
6462
|
-
&& prop.charCodeAt(1) === 110
|
|
6463
|
-
/* n */
|
|
6464
|
-
&& prop.charCodeAt(2) < 91;
|
|
6465
|
-
}
|
|
6466
|
-
/* Z+1 */
|
|
6467
|
-
);
|
|
6468
|
-
|
|
6469
|
-
var isDevelopment$2 = false;
|
|
6470
|
-
|
|
6471
|
-
/*
|
|
6472
|
-
|
|
6473
|
-
Based off glamor's StyleSheet, thanks Sunil ❤️
|
|
6474
|
-
|
|
6475
|
-
high performance StyleSheet for css-in-js systems
|
|
6476
|
-
|
|
6477
|
-
- uses multiple style tags behind the scenes for millions of rules
|
|
6478
|
-
- uses `insertRule` for appending in production for *much* faster performance
|
|
6479
|
-
|
|
6480
|
-
// usage
|
|
6481
|
-
|
|
6482
|
-
import { StyleSheet } from '@emotion/sheet'
|
|
6483
|
-
|
|
6484
|
-
let styleSheet = new StyleSheet({ key: '', container: document.head })
|
|
6485
|
-
|
|
6486
|
-
styleSheet.insert('#box { border: 1px solid red; }')
|
|
6487
|
-
- appends a css rule into the stylesheet
|
|
6488
|
-
|
|
6489
|
-
styleSheet.flush()
|
|
6490
|
-
- empties the stylesheet of all its contents
|
|
6491
|
-
|
|
6492
|
-
*/
|
|
6493
|
-
|
|
6494
|
-
function sheetForTag(tag) {
|
|
6495
|
-
if (tag.sheet) {
|
|
6496
|
-
return tag.sheet;
|
|
6497
|
-
} // this weirdness brought to you by firefox
|
|
6498
|
-
|
|
6499
|
-
/* istanbul ignore next */
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
6503
|
-
if (document.styleSheets[i].ownerNode === tag) {
|
|
6504
|
-
return document.styleSheets[i];
|
|
6505
|
-
}
|
|
6506
|
-
} // this function should always return with a value
|
|
6507
|
-
// TS can't understand it though so we make it stop complaining here
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
return undefined;
|
|
6511
|
-
}
|
|
6512
|
-
|
|
6513
|
-
function createStyleElement(options) {
|
|
6514
|
-
var tag = document.createElement('style');
|
|
6515
|
-
tag.setAttribute('data-emotion', options.key);
|
|
6516
|
-
|
|
6517
|
-
if (options.nonce !== undefined) {
|
|
6518
|
-
tag.setAttribute('nonce', options.nonce);
|
|
6519
|
-
}
|
|
6520
|
-
|
|
6521
|
-
tag.appendChild(document.createTextNode(''));
|
|
6522
|
-
tag.setAttribute('data-s', '');
|
|
6523
|
-
return tag;
|
|
6524
|
-
}
|
|
6525
|
-
|
|
6526
|
-
var StyleSheet = /*#__PURE__*/function () {
|
|
6527
|
-
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
6528
|
-
function StyleSheet(options) {
|
|
6529
|
-
var _this = this;
|
|
6530
|
-
|
|
6531
|
-
this._insertTag = function (tag) {
|
|
6532
|
-
var before;
|
|
6533
|
-
|
|
6534
|
-
if (_this.tags.length === 0) {
|
|
6535
|
-
if (_this.insertionPoint) {
|
|
6536
|
-
before = _this.insertionPoint.nextSibling;
|
|
6537
|
-
} else if (_this.prepend) {
|
|
6538
|
-
before = _this.container.firstChild;
|
|
6539
|
-
} else {
|
|
6540
|
-
before = _this.before;
|
|
6541
|
-
}
|
|
6542
|
-
} else {
|
|
6543
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
6544
|
-
}
|
|
6545
|
-
|
|
6546
|
-
_this.container.insertBefore(tag, before);
|
|
6547
|
-
|
|
6548
|
-
_this.tags.push(tag);
|
|
6549
|
-
};
|
|
6550
|
-
|
|
6551
|
-
this.isSpeedy = options.speedy === undefined ? !isDevelopment$2 : options.speedy;
|
|
6552
|
-
this.tags = [];
|
|
6553
|
-
this.ctr = 0;
|
|
6554
|
-
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
6555
|
-
|
|
6556
|
-
this.key = options.key;
|
|
6557
|
-
this.container = options.container;
|
|
6558
|
-
this.prepend = options.prepend;
|
|
6559
|
-
this.insertionPoint = options.insertionPoint;
|
|
6560
|
-
this.before = null;
|
|
6561
|
-
}
|
|
6562
|
-
|
|
6563
|
-
var _proto = StyleSheet.prototype;
|
|
6564
|
-
|
|
6565
|
-
_proto.hydrate = function hydrate(nodes) {
|
|
6566
|
-
nodes.forEach(this._insertTag);
|
|
6567
|
-
};
|
|
6568
|
-
|
|
6569
|
-
_proto.insert = function insert(rule) {
|
|
6570
|
-
// the max length is how many rules we have per style tag, it's 65000 in speedy mode
|
|
6571
|
-
// it's 1 in dev because we insert source maps that map a single rule to a location
|
|
6572
|
-
// and you can only have one source map per style tag
|
|
6573
|
-
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
|
|
6574
|
-
this._insertTag(createStyleElement(this));
|
|
6575
|
-
}
|
|
6576
|
-
|
|
6577
|
-
var tag = this.tags[this.tags.length - 1];
|
|
6578
|
-
|
|
6579
|
-
if (this.isSpeedy) {
|
|
6580
|
-
var sheet = sheetForTag(tag);
|
|
6581
|
-
|
|
6582
|
-
try {
|
|
6583
|
-
// this is the ultrafast version, works across browsers
|
|
6584
|
-
// the big drawback is that the css won't be editable in devtools
|
|
6585
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
6586
|
-
} catch (e) {
|
|
6587
|
-
}
|
|
6588
|
-
} else {
|
|
6589
|
-
tag.appendChild(document.createTextNode(rule));
|
|
6590
|
-
}
|
|
6591
|
-
|
|
6592
|
-
this.ctr++;
|
|
6593
|
-
};
|
|
6594
|
-
|
|
6595
|
-
_proto.flush = function flush() {
|
|
6596
|
-
this.tags.forEach(function (tag) {
|
|
6597
|
-
var _tag$parentNode;
|
|
6598
|
-
|
|
6599
|
-
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
6600
|
-
});
|
|
6601
|
-
this.tags = [];
|
|
6602
|
-
this.ctr = 0;
|
|
6603
|
-
};
|
|
6604
|
-
|
|
6605
|
-
return StyleSheet;
|
|
6606
|
-
}();
|
|
6607
|
-
|
|
6608
|
-
var MS = '-ms-';
|
|
6609
|
-
var MOZ = '-moz-';
|
|
6610
|
-
var WEBKIT = '-webkit-';
|
|
6611
|
-
|
|
6612
|
-
var COMMENT = 'comm';
|
|
6613
|
-
var RULESET = 'rule';
|
|
6614
|
-
var DECLARATION = 'decl';
|
|
6615
|
-
var IMPORT = '@import';
|
|
6616
|
-
var KEYFRAMES = '@keyframes';
|
|
6617
|
-
var LAYER = '@layer';
|
|
6618
|
-
|
|
6619
|
-
/**
|
|
6620
|
-
* @param {number}
|
|
6621
|
-
* @return {number}
|
|
6622
|
-
*/
|
|
6623
|
-
var abs = Math.abs;
|
|
6624
|
-
|
|
6625
|
-
/**
|
|
6626
|
-
* @param {number}
|
|
6627
|
-
* @return {string}
|
|
6628
|
-
*/
|
|
6629
|
-
var from = String.fromCharCode;
|
|
6630
|
-
|
|
6631
|
-
/**
|
|
6632
|
-
* @param {object}
|
|
6633
|
-
* @return {object}
|
|
6634
|
-
*/
|
|
6635
|
-
var assign = Object.assign;
|
|
6636
|
-
|
|
6637
|
-
/**
|
|
6638
|
-
* @param {string} value
|
|
6639
|
-
* @param {number} length
|
|
6640
|
-
* @return {number}
|
|
6641
|
-
*/
|
|
6642
|
-
function hash (value, length) {
|
|
6643
|
-
return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
|
|
6644
|
-
}
|
|
6645
|
-
|
|
6646
|
-
/**
|
|
6647
|
-
* @param {string} value
|
|
6648
|
-
* @return {string}
|
|
6649
|
-
*/
|
|
6650
|
-
function trim (value) {
|
|
6651
|
-
return value.trim()
|
|
6652
|
-
}
|
|
6653
|
-
|
|
6654
|
-
/**
|
|
6655
|
-
* @param {string} value
|
|
6656
|
-
* @param {RegExp} pattern
|
|
6657
|
-
* @return {string?}
|
|
6658
|
-
*/
|
|
6659
|
-
function match (value, pattern) {
|
|
6660
|
-
return (value = pattern.exec(value)) ? value[0] : value
|
|
6661
|
-
}
|
|
6662
|
-
|
|
6663
|
-
/**
|
|
6664
|
-
* @param {string} value
|
|
6665
|
-
* @param {(string|RegExp)} pattern
|
|
6666
|
-
* @param {string} replacement
|
|
6667
|
-
* @return {string}
|
|
6668
|
-
*/
|
|
6669
|
-
function replace (value, pattern, replacement) {
|
|
6670
|
-
return value.replace(pattern, replacement)
|
|
6671
|
-
}
|
|
6672
|
-
|
|
6673
|
-
/**
|
|
6674
|
-
* @param {string} value
|
|
6675
|
-
* @param {string} search
|
|
6676
|
-
* @return {number}
|
|
6677
|
-
*/
|
|
6678
|
-
function indexof (value, search) {
|
|
6679
|
-
return value.indexOf(search)
|
|
6680
|
-
}
|
|
6681
|
-
|
|
6682
|
-
/**
|
|
6683
|
-
* @param {string} value
|
|
6684
|
-
* @param {number} index
|
|
6685
|
-
* @return {number}
|
|
6686
|
-
*/
|
|
6687
|
-
function charat (value, index) {
|
|
6688
|
-
return value.charCodeAt(index) | 0
|
|
6689
|
-
}
|
|
6690
|
-
|
|
6691
|
-
/**
|
|
6692
|
-
* @param {string} value
|
|
6693
|
-
* @param {number} begin
|
|
6694
|
-
* @param {number} end
|
|
6695
|
-
* @return {string}
|
|
6696
|
-
*/
|
|
6697
|
-
function substr (value, begin, end) {
|
|
6698
|
-
return value.slice(begin, end)
|
|
6699
|
-
}
|
|
6700
|
-
|
|
6701
|
-
/**
|
|
6702
|
-
* @param {string} value
|
|
6703
|
-
* @return {number}
|
|
6704
|
-
*/
|
|
6705
|
-
function strlen (value) {
|
|
6706
|
-
return value.length
|
|
6707
|
-
}
|
|
6708
|
-
|
|
6709
|
-
/**
|
|
6710
|
-
* @param {any[]} value
|
|
6711
|
-
* @return {number}
|
|
6712
|
-
*/
|
|
6713
|
-
function sizeof (value) {
|
|
6714
|
-
return value.length
|
|
6715
|
-
}
|
|
6716
|
-
|
|
6717
|
-
/**
|
|
6718
|
-
* @param {any} value
|
|
6719
|
-
* @param {any[]} array
|
|
6720
|
-
* @return {any}
|
|
6721
|
-
*/
|
|
6722
|
-
function append (value, array) {
|
|
6723
|
-
return array.push(value), value
|
|
6724
|
-
}
|
|
6725
|
-
|
|
6726
|
-
/**
|
|
6727
|
-
* @param {string[]} array
|
|
6728
|
-
* @param {function} callback
|
|
6729
|
-
* @return {string}
|
|
6730
|
-
*/
|
|
6731
|
-
function combine (array, callback) {
|
|
6732
|
-
return array.map(callback).join('')
|
|
6733
|
-
}
|
|
6734
|
-
|
|
6735
|
-
var line = 1;
|
|
6736
|
-
var column = 1;
|
|
6737
|
-
var length = 0;
|
|
6738
|
-
var position = 0;
|
|
6739
|
-
var character = 0;
|
|
6740
|
-
var characters = '';
|
|
6741
|
-
|
|
6742
|
-
/**
|
|
6743
|
-
* @param {string} value
|
|
6744
|
-
* @param {object | null} root
|
|
6745
|
-
* @param {object | null} parent
|
|
6746
|
-
* @param {string} type
|
|
6747
|
-
* @param {string[] | string} props
|
|
6748
|
-
* @param {object[] | string} children
|
|
6749
|
-
* @param {number} length
|
|
6750
|
-
*/
|
|
6751
|
-
function node (value, root, parent, type, props, children, length) {
|
|
6752
|
-
return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}
|
|
6753
|
-
}
|
|
6754
|
-
|
|
6755
|
-
/**
|
|
6756
|
-
* @param {object} root
|
|
6757
|
-
* @param {object} props
|
|
6758
|
-
* @return {object}
|
|
6759
|
-
*/
|
|
6760
|
-
function copy (root, props) {
|
|
6761
|
-
return assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
|
|
6762
|
-
}
|
|
6763
|
-
|
|
6764
|
-
/**
|
|
6765
|
-
* @return {number}
|
|
6766
|
-
*/
|
|
6767
|
-
function char () {
|
|
6768
|
-
return character
|
|
6769
|
-
}
|
|
6770
|
-
|
|
6771
|
-
/**
|
|
6772
|
-
* @return {number}
|
|
6773
|
-
*/
|
|
6774
|
-
function prev () {
|
|
6775
|
-
character = position > 0 ? charat(characters, --position) : 0;
|
|
6776
|
-
|
|
6777
|
-
if (column--, character === 10)
|
|
6778
|
-
column = 1, line--;
|
|
6779
|
-
|
|
6780
|
-
return character
|
|
6781
|
-
}
|
|
6782
|
-
|
|
6783
|
-
/**
|
|
6784
|
-
* @return {number}
|
|
6785
|
-
*/
|
|
6786
|
-
function next () {
|
|
6787
|
-
character = position < length ? charat(characters, position++) : 0;
|
|
6788
|
-
|
|
6789
|
-
if (column++, character === 10)
|
|
6790
|
-
column = 1, line++;
|
|
6791
|
-
|
|
6792
|
-
return character
|
|
6793
|
-
}
|
|
6794
|
-
|
|
6795
|
-
/**
|
|
6796
|
-
* @return {number}
|
|
6797
|
-
*/
|
|
6798
|
-
function peek () {
|
|
6799
|
-
return charat(characters, position)
|
|
6800
|
-
}
|
|
6801
|
-
|
|
6802
|
-
/**
|
|
6803
|
-
* @return {number}
|
|
6804
|
-
*/
|
|
6805
|
-
function caret () {
|
|
6806
|
-
return position
|
|
6807
|
-
}
|
|
6808
|
-
|
|
6809
|
-
/**
|
|
6810
|
-
* @param {number} begin
|
|
6811
|
-
* @param {number} end
|
|
6812
|
-
* @return {string}
|
|
6813
|
-
*/
|
|
6814
|
-
function slice (begin, end) {
|
|
6815
|
-
return substr(characters, begin, end)
|
|
6816
|
-
}
|
|
6817
|
-
|
|
6818
|
-
/**
|
|
6819
|
-
* @param {number} type
|
|
6820
|
-
* @return {number}
|
|
6821
|
-
*/
|
|
6822
|
-
function token (type) {
|
|
6823
|
-
switch (type) {
|
|
6824
|
-
// \0 \t \n \r \s whitespace token
|
|
6825
|
-
case 0: case 9: case 10: case 13: case 32:
|
|
6826
|
-
return 5
|
|
6827
|
-
// ! + , / > @ ~ isolate token
|
|
6828
|
-
case 33: case 43: case 44: case 47: case 62: case 64: case 126:
|
|
6829
|
-
// ; { } breakpoint token
|
|
6830
|
-
case 59: case 123: case 125:
|
|
6831
|
-
return 4
|
|
6832
|
-
// : accompanied token
|
|
6833
|
-
case 58:
|
|
6834
|
-
return 3
|
|
6835
|
-
// " ' ( [ opening delimit token
|
|
6836
|
-
case 34: case 39: case 40: case 91:
|
|
6837
|
-
return 2
|
|
6838
|
-
// ) ] closing delimit token
|
|
6839
|
-
case 41: case 93:
|
|
6840
|
-
return 1
|
|
6841
|
-
}
|
|
6842
|
-
|
|
6843
|
-
return 0
|
|
6844
|
-
}
|
|
6845
|
-
|
|
6846
|
-
/**
|
|
6847
|
-
* @param {string} value
|
|
6848
|
-
* @return {any[]}
|
|
6849
|
-
*/
|
|
6850
|
-
function alloc (value) {
|
|
6851
|
-
return line = column = 1, length = strlen(characters = value), position = 0, []
|
|
6852
|
-
}
|
|
6853
|
-
|
|
6854
|
-
/**
|
|
6855
|
-
* @param {any} value
|
|
6856
|
-
* @return {any}
|
|
6857
|
-
*/
|
|
6858
|
-
function dealloc (value) {
|
|
6859
|
-
return characters = '', value
|
|
6860
|
-
}
|
|
6861
|
-
|
|
6862
|
-
/**
|
|
6863
|
-
* @param {number} type
|
|
6864
|
-
* @return {string}
|
|
6865
|
-
*/
|
|
6866
|
-
function delimit (type) {
|
|
6867
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
6868
|
-
}
|
|
6869
|
-
|
|
6870
|
-
/**
|
|
6871
|
-
* @param {number} type
|
|
6872
|
-
* @return {string}
|
|
6873
|
-
*/
|
|
6874
|
-
function whitespace (type) {
|
|
6875
|
-
while (character = peek())
|
|
6876
|
-
if (character < 33)
|
|
6877
|
-
next();
|
|
6878
|
-
else
|
|
6879
|
-
break
|
|
6880
|
-
|
|
6881
|
-
return token(type) > 2 || token(character) > 3 ? '' : ' '
|
|
6882
|
-
}
|
|
6883
|
-
|
|
6884
|
-
/**
|
|
6885
|
-
* @param {number} index
|
|
6886
|
-
* @param {number} count
|
|
6887
|
-
* @return {string}
|
|
6888
|
-
*/
|
|
6889
|
-
function escaping (index, count) {
|
|
6890
|
-
while (--count && next())
|
|
6891
|
-
// not 0-9 A-F a-f
|
|
6892
|
-
if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
|
|
6893
|
-
break
|
|
6894
|
-
|
|
6895
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
6896
|
-
}
|
|
6897
|
-
|
|
6898
|
-
/**
|
|
6899
|
-
* @param {number} type
|
|
6900
|
-
* @return {number}
|
|
6901
|
-
*/
|
|
6902
|
-
function delimiter (type) {
|
|
6903
|
-
while (next())
|
|
6904
|
-
switch (character) {
|
|
6905
|
-
// ] ) " '
|
|
6906
|
-
case type:
|
|
6907
|
-
return position
|
|
6908
|
-
// " '
|
|
6909
|
-
case 34: case 39:
|
|
6910
|
-
if (type !== 34 && type !== 39)
|
|
6911
|
-
delimiter(character);
|
|
6912
|
-
break
|
|
6913
|
-
// (
|
|
6914
|
-
case 40:
|
|
6915
|
-
if (type === 41)
|
|
6916
|
-
delimiter(type);
|
|
6917
|
-
break
|
|
6918
|
-
// \
|
|
6919
|
-
case 92:
|
|
6920
|
-
next();
|
|
6921
|
-
break
|
|
6922
|
-
}
|
|
6923
|
-
|
|
6924
|
-
return position
|
|
6925
|
-
}
|
|
6926
|
-
|
|
6927
|
-
/**
|
|
6928
|
-
* @param {number} type
|
|
6929
|
-
* @param {number} index
|
|
6930
|
-
* @return {number}
|
|
6931
|
-
*/
|
|
6932
|
-
function commenter (type, index) {
|
|
6933
|
-
while (next())
|
|
6934
|
-
// //
|
|
6935
|
-
if (type + character === 47 + 10)
|
|
6936
|
-
break
|
|
6937
|
-
// /*
|
|
6938
|
-
else if (type + character === 42 + 42 && peek() === 47)
|
|
6939
|
-
break
|
|
6940
|
-
|
|
6941
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
6942
|
-
}
|
|
6943
|
-
|
|
6944
|
-
/**
|
|
6945
|
-
* @param {number} index
|
|
6946
|
-
* @return {string}
|
|
6947
|
-
*/
|
|
6948
|
-
function identifier (index) {
|
|
6949
|
-
while (!token(peek()))
|
|
6950
|
-
next();
|
|
6951
|
-
|
|
6952
|
-
return slice(index, position)
|
|
6953
|
-
}
|
|
6954
|
-
|
|
6955
|
-
/**
|
|
6956
|
-
* @param {string} value
|
|
6957
|
-
* @return {object[]}
|
|
6958
|
-
*/
|
|
6959
|
-
function compile (value) {
|
|
6960
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
6961
|
-
}
|
|
6962
|
-
|
|
6963
|
-
/**
|
|
6964
|
-
* @param {string} value
|
|
6965
|
-
* @param {object} root
|
|
6966
|
-
* @param {object?} parent
|
|
6967
|
-
* @param {string[]} rule
|
|
6968
|
-
* @param {string[]} rules
|
|
6969
|
-
* @param {string[]} rulesets
|
|
6970
|
-
* @param {number[]} pseudo
|
|
6971
|
-
* @param {number[]} points
|
|
6972
|
-
* @param {string[]} declarations
|
|
6973
|
-
* @return {object}
|
|
6974
|
-
*/
|
|
6975
|
-
function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
6976
|
-
var index = 0;
|
|
6977
|
-
var offset = 0;
|
|
6978
|
-
var length = pseudo;
|
|
6979
|
-
var atrule = 0;
|
|
6980
|
-
var property = 0;
|
|
6981
|
-
var previous = 0;
|
|
6982
|
-
var variable = 1;
|
|
6983
|
-
var scanning = 1;
|
|
6984
|
-
var ampersand = 1;
|
|
6985
|
-
var character = 0;
|
|
6986
|
-
var type = '';
|
|
6987
|
-
var props = rules;
|
|
6988
|
-
var children = rulesets;
|
|
6989
|
-
var reference = rule;
|
|
6990
|
-
var characters = type;
|
|
6991
|
-
|
|
6992
|
-
while (scanning)
|
|
6993
|
-
switch (previous = character, character = next()) {
|
|
6994
|
-
// (
|
|
6995
|
-
case 40:
|
|
6996
|
-
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
6997
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
6998
|
-
ampersand = -1;
|
|
6999
|
-
break
|
|
7000
|
-
}
|
|
7001
|
-
// " ' [
|
|
7002
|
-
case 34: case 39: case 91:
|
|
7003
|
-
characters += delimit(character);
|
|
7004
|
-
break
|
|
7005
|
-
// \t \n \r \s
|
|
7006
|
-
case 9: case 10: case 13: case 32:
|
|
7007
|
-
characters += whitespace(previous);
|
|
7008
|
-
break
|
|
7009
|
-
// \
|
|
7010
|
-
case 92:
|
|
7011
|
-
characters += escaping(caret() - 1, 7);
|
|
7012
|
-
continue
|
|
7013
|
-
// /
|
|
7014
|
-
case 47:
|
|
7015
|
-
switch (peek()) {
|
|
7016
|
-
case 42: case 47:
|
|
7017
|
-
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
7018
|
-
break
|
|
7019
|
-
default:
|
|
7020
|
-
characters += '/';
|
|
7021
|
-
}
|
|
7022
|
-
break
|
|
7023
|
-
// {
|
|
7024
|
-
case 123 * variable:
|
|
7025
|
-
points[index++] = strlen(characters) * ampersand;
|
|
7026
|
-
// } ; \0
|
|
7027
|
-
case 125 * variable: case 59: case 0:
|
|
7028
|
-
switch (character) {
|
|
7029
|
-
// \0 }
|
|
7030
|
-
case 0: case 125: scanning = 0;
|
|
7031
|
-
// ;
|
|
7032
|
-
case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
7033
|
-
if (property > 0 && (strlen(characters) - length))
|
|
7034
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
7035
|
-
break
|
|
7036
|
-
// @ ;
|
|
7037
|
-
case 59: characters += ';';
|
|
7038
|
-
// { rule/at-rule
|
|
7039
|
-
default:
|
|
7040
|
-
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
|
|
7041
|
-
|
|
7042
|
-
if (character === 123)
|
|
7043
|
-
if (offset === 0)
|
|
7044
|
-
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
7045
|
-
else
|
|
7046
|
-
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
7047
|
-
// d l m s
|
|
7048
|
-
case 100: case 108: case 109: case 115:
|
|
7049
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
7050
|
-
break
|
|
7051
|
-
default:
|
|
7052
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
7053
|
-
}
|
|
7054
|
-
}
|
|
7055
|
-
|
|
7056
|
-
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
7057
|
-
break
|
|
7058
|
-
// :
|
|
7059
|
-
case 58:
|
|
7060
|
-
length = 1 + strlen(characters), property = previous;
|
|
7061
|
-
default:
|
|
7062
|
-
if (variable < 1)
|
|
7063
|
-
if (character == 123)
|
|
7064
|
-
--variable;
|
|
7065
|
-
else if (character == 125 && variable++ == 0 && prev() == 125)
|
|
7066
|
-
continue
|
|
7067
|
-
|
|
7068
|
-
switch (characters += from(character), character * variable) {
|
|
7069
|
-
// &
|
|
7070
|
-
case 38:
|
|
7071
|
-
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
7072
|
-
break
|
|
7073
|
-
// ,
|
|
7074
|
-
case 44:
|
|
7075
|
-
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
7076
|
-
break
|
|
7077
|
-
// @
|
|
7078
|
-
case 64:
|
|
7079
|
-
// -
|
|
7080
|
-
if (peek() === 45)
|
|
7081
|
-
characters += delimit(next());
|
|
7082
|
-
|
|
7083
|
-
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
7084
|
-
break
|
|
7085
|
-
// -
|
|
7086
|
-
case 45:
|
|
7087
|
-
if (previous === 45 && strlen(characters) == 2)
|
|
7088
|
-
variable = 0;
|
|
7089
|
-
}
|
|
7090
|
-
}
|
|
7091
|
-
|
|
7092
|
-
return rulesets
|
|
7093
|
-
}
|
|
7094
|
-
|
|
7095
|
-
/**
|
|
7096
|
-
* @param {string} value
|
|
7097
|
-
* @param {object} root
|
|
7098
|
-
* @param {object?} parent
|
|
7099
|
-
* @param {number} index
|
|
7100
|
-
* @param {number} offset
|
|
7101
|
-
* @param {string[]} rules
|
|
7102
|
-
* @param {number[]} points
|
|
7103
|
-
* @param {string} type
|
|
7104
|
-
* @param {string[]} props
|
|
7105
|
-
* @param {string[]} children
|
|
7106
|
-
* @param {number} length
|
|
7107
|
-
* @return {object}
|
|
7108
|
-
*/
|
|
7109
|
-
function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {
|
|
7110
|
-
var post = offset - 1;
|
|
7111
|
-
var rule = offset === 0 ? rules : [''];
|
|
7112
|
-
var size = sizeof(rule);
|
|
7113
|
-
|
|
7114
|
-
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
7115
|
-
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
7116
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
|
7117
|
-
props[k++] = z;
|
|
7118
|
-
|
|
7119
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
|
7120
|
-
}
|
|
7121
|
-
|
|
7122
|
-
/**
|
|
7123
|
-
* @param {number} value
|
|
7124
|
-
* @param {object} root
|
|
7125
|
-
* @param {object?} parent
|
|
7126
|
-
* @return {object}
|
|
7127
|
-
*/
|
|
7128
|
-
function comment (value, root, parent) {
|
|
7129
|
-
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)
|
|
7130
|
-
}
|
|
7131
|
-
|
|
7132
|
-
/**
|
|
7133
|
-
* @param {string} value
|
|
7134
|
-
* @param {object} root
|
|
7135
|
-
* @param {object?} parent
|
|
7136
|
-
* @param {number} length
|
|
7137
|
-
* @return {object}
|
|
7138
|
-
*/
|
|
7139
|
-
function declaration (value, root, parent, length) {
|
|
7140
|
-
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
|
-
/**
|
|
7144
|
-
* @param {object[]} children
|
|
7145
|
-
* @param {function} callback
|
|
7146
|
-
* @return {string}
|
|
7147
|
-
*/
|
|
7148
|
-
function serialize (children, callback) {
|
|
7149
|
-
var output = '';
|
|
7150
|
-
var length = sizeof(children);
|
|
7151
|
-
|
|
7152
|
-
for (var i = 0; i < length; i++)
|
|
7153
|
-
output += callback(children[i], i, children, callback) || '';
|
|
7154
|
-
|
|
7155
|
-
return output
|
|
7156
|
-
}
|
|
7157
|
-
|
|
7158
|
-
/**
|
|
7159
|
-
* @param {object} element
|
|
7160
|
-
* @param {number} index
|
|
7161
|
-
* @param {object[]} children
|
|
7162
|
-
* @param {function} callback
|
|
7163
|
-
* @return {string}
|
|
7164
|
-
*/
|
|
7165
|
-
function stringify (element, index, children, callback) {
|
|
7166
|
-
switch (element.type) {
|
|
7167
|
-
case LAYER: if (element.children.length) break
|
|
7168
|
-
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
7169
|
-
case COMMENT: return ''
|
|
7170
|
-
case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
|
|
7171
|
-
case RULESET: element.value = element.props.join(',');
|
|
7172
|
-
}
|
|
7173
|
-
|
|
7174
|
-
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
|
|
7175
|
-
}
|
|
7176
|
-
|
|
7177
|
-
/**
|
|
7178
|
-
* @param {function[]} collection
|
|
7179
|
-
* @return {function}
|
|
7180
|
-
*/
|
|
7181
|
-
function middleware (collection) {
|
|
7182
|
-
var length = sizeof(collection);
|
|
7183
|
-
|
|
7184
|
-
return function (element, index, children, callback) {
|
|
7185
|
-
var output = '';
|
|
7186
|
-
|
|
7187
|
-
for (var i = 0; i < length; i++)
|
|
7188
|
-
output += collection[i](element, index, children, callback) || '';
|
|
7189
|
-
|
|
7190
|
-
return output
|
|
7191
|
-
}
|
|
7192
|
-
}
|
|
7193
|
-
|
|
7194
|
-
/**
|
|
7195
|
-
* @param {function} callback
|
|
7196
|
-
* @return {function}
|
|
7197
|
-
*/
|
|
7198
|
-
function rulesheet (callback) {
|
|
7199
|
-
return function (element) {
|
|
7200
|
-
if (!element.root)
|
|
7201
|
-
if (element = element.return)
|
|
7202
|
-
callback(element);
|
|
7203
|
-
}
|
|
7204
|
-
}
|
|
7205
|
-
|
|
7206
|
-
var weakMemoize = function weakMemoize(func) {
|
|
7207
|
-
var cache = new WeakMap();
|
|
7208
|
-
return function (arg) {
|
|
7209
|
-
if (cache.has(arg)) {
|
|
7210
|
-
// Use non-null assertion because we just checked that the cache `has` it
|
|
7211
|
-
// This allows us to remove `undefined` from the return value
|
|
7212
|
-
return cache.get(arg);
|
|
7213
|
-
}
|
|
7214
|
-
|
|
7215
|
-
var ret = func(arg);
|
|
7216
|
-
cache.set(arg, ret);
|
|
7217
|
-
return ret;
|
|
7218
|
-
};
|
|
7219
|
-
};
|
|
7220
|
-
|
|
7221
|
-
var isBrowser$4 = typeof document !== 'undefined';
|
|
7222
|
-
|
|
7223
|
-
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
7224
|
-
var previous = 0;
|
|
7225
|
-
var character = 0;
|
|
7226
|
-
|
|
7227
|
-
while (true) {
|
|
7228
|
-
previous = character;
|
|
7229
|
-
character = peek(); // &\f
|
|
7230
|
-
|
|
7231
|
-
if (previous === 38 && character === 12) {
|
|
7232
|
-
points[index] = 1;
|
|
7233
|
-
}
|
|
7234
|
-
|
|
7235
|
-
if (token(character)) {
|
|
7236
|
-
break;
|
|
7237
|
-
}
|
|
7238
|
-
|
|
7239
|
-
next();
|
|
7240
|
-
}
|
|
7241
|
-
|
|
7242
|
-
return slice(begin, position);
|
|
7243
|
-
};
|
|
7244
|
-
|
|
7245
|
-
var toRules = function toRules(parsed, points) {
|
|
7246
|
-
// pretend we've started with a comma
|
|
7247
|
-
var index = -1;
|
|
7248
|
-
var character = 44;
|
|
7249
|
-
|
|
7250
|
-
do {
|
|
7251
|
-
switch (token(character)) {
|
|
7252
|
-
case 0:
|
|
7253
|
-
// &\f
|
|
7254
|
-
if (character === 38 && peek() === 12) {
|
|
7255
|
-
// this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
|
|
7256
|
-
// stylis inserts \f after & to know when & where it should replace this sequence with the context selector
|
|
7257
|
-
// and when it should just concatenate the outer and inner selectors
|
|
7258
|
-
// it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
|
|
7259
|
-
points[index] = 1;
|
|
7260
|
-
}
|
|
7261
|
-
|
|
7262
|
-
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
7263
|
-
break;
|
|
7264
|
-
|
|
7265
|
-
case 2:
|
|
7266
|
-
parsed[index] += delimit(character);
|
|
7267
|
-
break;
|
|
7268
|
-
|
|
7269
|
-
case 4:
|
|
7270
|
-
// comma
|
|
7271
|
-
if (character === 44) {
|
|
7272
|
-
// colon
|
|
7273
|
-
parsed[++index] = peek() === 58 ? '&\f' : '';
|
|
7274
|
-
points[index] = parsed[index].length;
|
|
7275
|
-
break;
|
|
7276
|
-
}
|
|
7277
|
-
|
|
7278
|
-
// fallthrough
|
|
7279
|
-
|
|
7280
|
-
default:
|
|
7281
|
-
parsed[index] += from(character);
|
|
7282
|
-
}
|
|
7283
|
-
} while (character = next());
|
|
7284
|
-
|
|
7285
|
-
return parsed;
|
|
7286
|
-
};
|
|
7287
|
-
|
|
7288
|
-
var getRules = function getRules(value, points) {
|
|
7289
|
-
return dealloc(toRules(alloc(value), points));
|
|
7290
|
-
}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
var fixedElements = /* #__PURE__ */new WeakMap();
|
|
7294
|
-
var compat = function compat(element) {
|
|
7295
|
-
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
7296
|
-
// negative .length indicates that this rule has been already prefixed
|
|
7297
|
-
element.length < 1) {
|
|
7298
|
-
return;
|
|
7299
|
-
}
|
|
7300
|
-
|
|
7301
|
-
var value = element.value,
|
|
7302
|
-
parent = element.parent;
|
|
7303
|
-
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
7304
|
-
|
|
7305
|
-
while (parent.type !== 'rule') {
|
|
7306
|
-
parent = parent.parent;
|
|
7307
|
-
if (!parent) return;
|
|
7308
|
-
} // short-circuit for the simplest case
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
if (element.props.length === 1 && value.charCodeAt(0) !== 58
|
|
7312
|
-
/* colon */
|
|
7313
|
-
&& !fixedElements.get(parent)) {
|
|
7314
|
-
return;
|
|
7315
|
-
} // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
|
|
7316
|
-
// then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
if (isImplicitRule) {
|
|
7320
|
-
return;
|
|
7321
|
-
}
|
|
7322
|
-
|
|
7323
|
-
fixedElements.set(element, true);
|
|
7324
|
-
var points = [];
|
|
7325
|
-
var rules = getRules(value, points);
|
|
7326
|
-
var parentRules = parent.props;
|
|
7327
|
-
|
|
7328
|
-
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
7329
|
-
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
7330
|
-
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
7331
|
-
}
|
|
7332
|
-
}
|
|
7333
|
-
};
|
|
7334
|
-
var removeLabel = function removeLabel(element) {
|
|
7335
|
-
if (element.type === 'decl') {
|
|
7336
|
-
var value = element.value;
|
|
7337
|
-
|
|
7338
|
-
if ( // charcode for l
|
|
7339
|
-
value.charCodeAt(0) === 108 && // charcode for b
|
|
7340
|
-
value.charCodeAt(2) === 98) {
|
|
7341
|
-
// this ignores label
|
|
7342
|
-
element["return"] = '';
|
|
7343
|
-
element.value = '';
|
|
7344
|
-
}
|
|
7345
|
-
}
|
|
7346
|
-
};
|
|
7347
|
-
|
|
7348
|
-
/* eslint-disable no-fallthrough */
|
|
7349
|
-
|
|
7350
|
-
function prefix(value, length) {
|
|
7351
|
-
switch (hash(value, length)) {
|
|
7352
|
-
// color-adjust
|
|
7353
|
-
case 5103:
|
|
7354
|
-
return WEBKIT + 'print-' + value + value;
|
|
7355
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
7356
|
-
|
|
7357
|
-
case 5737:
|
|
7358
|
-
case 4201:
|
|
7359
|
-
case 3177:
|
|
7360
|
-
case 3433:
|
|
7361
|
-
case 1641:
|
|
7362
|
-
case 4457:
|
|
7363
|
-
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
7364
|
-
|
|
7365
|
-
case 5572:
|
|
7366
|
-
case 6356:
|
|
7367
|
-
case 5844:
|
|
7368
|
-
case 3191:
|
|
7369
|
-
case 6645:
|
|
7370
|
-
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
7371
|
-
|
|
7372
|
-
case 6391:
|
|
7373
|
-
case 5879:
|
|
7374
|
-
case 5623:
|
|
7375
|
-
case 6135:
|
|
7376
|
-
case 4599:
|
|
7377
|
-
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
7378
|
-
|
|
7379
|
-
case 4215:
|
|
7380
|
-
case 6389:
|
|
7381
|
-
case 5109:
|
|
7382
|
-
case 5365:
|
|
7383
|
-
case 5621:
|
|
7384
|
-
case 3829:
|
|
7385
|
-
return WEBKIT + value + value;
|
|
7386
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
7387
|
-
|
|
7388
|
-
case 5349:
|
|
7389
|
-
case 4246:
|
|
7390
|
-
case 4810:
|
|
7391
|
-
case 6968:
|
|
7392
|
-
case 2756:
|
|
7393
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
7394
|
-
// flex, flex-direction
|
|
7395
|
-
|
|
7396
|
-
case 6828:
|
|
7397
|
-
case 4268:
|
|
7398
|
-
return WEBKIT + value + MS + value + value;
|
|
7399
|
-
// order
|
|
7400
|
-
|
|
7401
|
-
case 6165:
|
|
7402
|
-
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
7403
|
-
// align-items
|
|
7404
|
-
|
|
7405
|
-
case 5187:
|
|
7406
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
7407
|
-
// align-self
|
|
7408
|
-
|
|
7409
|
-
case 5443:
|
|
7410
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
7411
|
-
// align-content
|
|
7412
|
-
|
|
7413
|
-
case 4675:
|
|
7414
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
7415
|
-
// flex-shrink
|
|
7416
|
-
|
|
7417
|
-
case 5548:
|
|
7418
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
7419
|
-
// flex-basis
|
|
7420
|
-
|
|
7421
|
-
case 5292:
|
|
7422
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
7423
|
-
// flex-grow
|
|
7424
|
-
|
|
7425
|
-
case 6060:
|
|
7426
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
7427
|
-
// transition
|
|
7428
|
-
|
|
7429
|
-
case 4554:
|
|
7430
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
7431
|
-
// cursor
|
|
7432
|
-
|
|
7433
|
-
case 6187:
|
|
7434
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
7435
|
-
// background, background-image
|
|
7436
|
-
|
|
7437
|
-
case 5495:
|
|
7438
|
-
case 3959:
|
|
7439
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
7440
|
-
// justify-content
|
|
7441
|
-
|
|
7442
|
-
case 4968:
|
|
7443
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
7444
|
-
// (margin|padding)-inline-(start|end)
|
|
7445
|
-
|
|
7446
|
-
case 4095:
|
|
7447
|
-
case 3583:
|
|
7448
|
-
case 4068:
|
|
7449
|
-
case 2532:
|
|
7450
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
7451
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
7452
|
-
|
|
7453
|
-
case 8116:
|
|
7454
|
-
case 7059:
|
|
7455
|
-
case 5753:
|
|
7456
|
-
case 5535:
|
|
7457
|
-
case 5445:
|
|
7458
|
-
case 5701:
|
|
7459
|
-
case 4933:
|
|
7460
|
-
case 4677:
|
|
7461
|
-
case 5533:
|
|
7462
|
-
case 5789:
|
|
7463
|
-
case 5021:
|
|
7464
|
-
case 4765:
|
|
7465
|
-
// stretch, max-content, min-content, fill-available
|
|
7466
|
-
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
7467
|
-
// (m)ax-content, (m)in-content
|
|
7468
|
-
case 109:
|
|
7469
|
-
// -
|
|
7470
|
-
if (charat(value, length + 4) !== 45) break;
|
|
7471
|
-
// (f)ill-available, (f)it-content
|
|
7472
|
-
|
|
7473
|
-
case 102:
|
|
7474
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
7475
|
-
// (s)tretch
|
|
7476
|
-
|
|
7477
|
-
case 115:
|
|
7478
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
7479
|
-
}
|
|
7480
|
-
break;
|
|
7481
|
-
// position: sticky
|
|
7482
|
-
|
|
7483
|
-
case 4949:
|
|
7484
|
-
// (s)ticky?
|
|
7485
|
-
if (charat(value, length + 1) !== 115) break;
|
|
7486
|
-
// display: (flex|inline-flex)
|
|
7487
|
-
|
|
7488
|
-
case 6444:
|
|
7489
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
7490
|
-
// stic(k)y
|
|
7491
|
-
case 107:
|
|
7492
|
-
return replace(value, ':', ':' + WEBKIT) + value;
|
|
7493
|
-
// (inline-)?fl(e)x
|
|
7494
|
-
|
|
7495
|
-
case 101:
|
|
7496
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
7497
|
-
}
|
|
7498
|
-
|
|
7499
|
-
break;
|
|
7500
|
-
// writing-mode
|
|
7501
|
-
|
|
7502
|
-
case 5936:
|
|
7503
|
-
switch (charat(value, length + 11)) {
|
|
7504
|
-
// vertical-l(r)
|
|
7505
|
-
case 114:
|
|
7506
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
7507
|
-
// vertical-r(l)
|
|
7508
|
-
|
|
7509
|
-
case 108:
|
|
7510
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
7511
|
-
// horizontal(-)tb
|
|
7512
|
-
|
|
7513
|
-
case 45:
|
|
7514
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
7515
|
-
}
|
|
7516
|
-
|
|
7517
|
-
return WEBKIT + value + MS + value + value;
|
|
7518
|
-
}
|
|
7519
|
-
|
|
7520
|
-
return value;
|
|
7521
|
-
}
|
|
7522
|
-
|
|
7523
|
-
var prefixer = function prefixer(element, index, children, callback) {
|
|
7524
|
-
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
7525
|
-
case DECLARATION:
|
|
7526
|
-
element["return"] = prefix(element.value, element.length);
|
|
7527
|
-
break;
|
|
7528
|
-
|
|
7529
|
-
case KEYFRAMES:
|
|
7530
|
-
return serialize([copy(element, {
|
|
7531
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
7532
|
-
})], callback);
|
|
7533
|
-
|
|
7534
|
-
case RULESET:
|
|
7535
|
-
if (element.length) return combine(element.props, function (value) {
|
|
7536
|
-
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
7537
|
-
// :read-(only|write)
|
|
7538
|
-
case ':read-only':
|
|
7539
|
-
case ':read-write':
|
|
7540
|
-
return serialize([copy(element, {
|
|
7541
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
7542
|
-
})], callback);
|
|
7543
|
-
// :placeholder
|
|
7544
|
-
|
|
7545
|
-
case '::placeholder':
|
|
7546
|
-
return serialize([copy(element, {
|
|
7547
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
7548
|
-
}), copy(element, {
|
|
7549
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
7550
|
-
}), copy(element, {
|
|
7551
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
7552
|
-
})], callback);
|
|
7553
|
-
}
|
|
7554
|
-
|
|
7555
|
-
return '';
|
|
7556
|
-
});
|
|
7557
|
-
}
|
|
7558
|
-
};
|
|
7559
|
-
|
|
7560
|
-
/* import type { StylisPlugin } from './types' */
|
|
7561
|
-
|
|
7562
|
-
/*
|
|
7563
|
-
export type Options = {
|
|
7564
|
-
nonce?: string,
|
|
7565
|
-
stylisPlugins?: StylisPlugin[],
|
|
7566
|
-
key: string,
|
|
7567
|
-
container?: HTMLElement,
|
|
7568
|
-
speedy?: boolean,
|
|
7569
|
-
prepend?: boolean,
|
|
7570
|
-
insertionPoint?: HTMLElement
|
|
7571
|
-
}
|
|
7572
|
-
*/
|
|
7573
|
-
|
|
7574
|
-
var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
|
|
7575
|
-
return memoize(function () {
|
|
7576
|
-
var cache = {};
|
|
7577
|
-
return function (name) {
|
|
7578
|
-
return cache[name];
|
|
7579
|
-
};
|
|
7580
|
-
});
|
|
7581
|
-
});
|
|
7582
|
-
var defaultStylisPlugins = [prefixer];
|
|
7583
|
-
|
|
7584
|
-
var createCache = function
|
|
7585
|
-
/*: EmotionCache */
|
|
7586
|
-
createCache(options
|
|
7587
|
-
/*: Options */
|
|
7588
|
-
) {
|
|
7589
|
-
var key = options.key;
|
|
7590
|
-
|
|
7591
|
-
if (isBrowser$4 && key === 'css') {
|
|
7592
|
-
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
7593
|
-
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
7594
|
-
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
7595
|
-
// that creating a cache works inside of render of a React component
|
|
7596
|
-
|
|
7597
|
-
Array.prototype.forEach.call(ssrStyles, function (node
|
|
7598
|
-
/*: HTMLStyleElement */
|
|
7599
|
-
) {
|
|
7600
|
-
// we want to only move elements which have a space in the data-emotion attribute value
|
|
7601
|
-
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
|
7602
|
-
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
|
7603
|
-
// Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
|
|
7604
|
-
// so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
|
|
7605
|
-
// will not result in the Emotion 10 styles being destroyed
|
|
7606
|
-
var dataEmotionAttribute = node.getAttribute('data-emotion');
|
|
7607
|
-
|
|
7608
|
-
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
7609
|
-
return;
|
|
7610
|
-
}
|
|
7611
|
-
|
|
7612
|
-
document.head.appendChild(node);
|
|
7613
|
-
node.setAttribute('data-s', '');
|
|
7614
|
-
});
|
|
7615
|
-
}
|
|
7616
|
-
|
|
7617
|
-
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
7618
|
-
|
|
7619
|
-
var inserted = {};
|
|
7620
|
-
var container;
|
|
7621
|
-
/* : Node */
|
|
7622
|
-
|
|
7623
|
-
var nodesToHydrate = [];
|
|
7624
|
-
|
|
7625
|
-
if (isBrowser$4) {
|
|
7626
|
-
container = options.container || document.head;
|
|
7627
|
-
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
7628
|
-
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
7629
|
-
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
|
7630
|
-
/*: HTMLStyleElement */
|
|
7631
|
-
) {
|
|
7632
|
-
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
7633
|
-
|
|
7634
|
-
for (var i = 1; i < attrib.length; i++) {
|
|
7635
|
-
inserted[attrib[i]] = true;
|
|
7636
|
-
}
|
|
7637
|
-
|
|
7638
|
-
nodesToHydrate.push(node);
|
|
7639
|
-
});
|
|
7640
|
-
}
|
|
7641
|
-
|
|
7642
|
-
var _insert;
|
|
7643
|
-
/*: (
|
|
7644
|
-
selector: string,
|
|
7645
|
-
serialized: SerializedStyles,
|
|
7646
|
-
sheet: StyleSheet,
|
|
7647
|
-
shouldCache: boolean
|
|
7648
|
-
) => string | void */
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
var omnipresentPlugins = [compat, removeLabel];
|
|
7652
|
-
|
|
7653
|
-
if (isBrowser$4) {
|
|
7654
|
-
var currentSheet;
|
|
7655
|
-
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
|
7656
|
-
currentSheet.insert(rule);
|
|
7657
|
-
})];
|
|
7658
|
-
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
7659
|
-
|
|
7660
|
-
var stylis = function stylis(styles) {
|
|
7661
|
-
return serialize(compile(styles), serializer);
|
|
7662
|
-
};
|
|
7663
|
-
|
|
7664
|
-
_insert = function
|
|
7665
|
-
/*: void */
|
|
7666
|
-
insert(selector
|
|
7667
|
-
/*: string */
|
|
7668
|
-
, serialized
|
|
7669
|
-
/*: SerializedStyles */
|
|
7670
|
-
, sheet
|
|
7671
|
-
/*: StyleSheet */
|
|
7672
|
-
, shouldCache
|
|
7673
|
-
/*: boolean */
|
|
7674
|
-
) {
|
|
7675
|
-
currentSheet = sheet;
|
|
7676
|
-
|
|
7677
|
-
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
7678
|
-
|
|
7679
|
-
if (shouldCache) {
|
|
7680
|
-
cache.inserted[serialized.name] = true;
|
|
7681
|
-
}
|
|
7682
|
-
};
|
|
7683
|
-
} else {
|
|
7684
|
-
var _finalizingPlugins = [stringify];
|
|
7685
|
-
|
|
7686
|
-
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
7687
|
-
|
|
7688
|
-
var _stylis = function _stylis(styles) {
|
|
7689
|
-
return serialize(compile(styles), _serializer);
|
|
7690
|
-
};
|
|
7691
|
-
|
|
7692
|
-
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
7693
|
-
|
|
7694
|
-
var getRules = function
|
|
7695
|
-
/*: string */
|
|
7696
|
-
getRules(selector
|
|
7697
|
-
/*: string */
|
|
7698
|
-
, serialized
|
|
7699
|
-
/*: SerializedStyles */
|
|
7700
|
-
) {
|
|
7701
|
-
var name = serialized.name;
|
|
7702
|
-
|
|
7703
|
-
if (serverStylisCache[name] === undefined) {
|
|
7704
|
-
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
7705
|
-
}
|
|
7706
|
-
|
|
7707
|
-
return serverStylisCache[name];
|
|
7708
|
-
};
|
|
7709
|
-
|
|
7710
|
-
_insert = function
|
|
7711
|
-
/*: string | void */
|
|
7712
|
-
_insert(selector
|
|
7713
|
-
/*: string */
|
|
7714
|
-
, serialized
|
|
7715
|
-
/*: SerializedStyles */
|
|
7716
|
-
, sheet
|
|
7717
|
-
/*: StyleSheet */
|
|
7718
|
-
, shouldCache
|
|
7719
|
-
/*: boolean */
|
|
7720
|
-
) {
|
|
7721
|
-
var name = serialized.name;
|
|
7722
|
-
var rules = getRules(selector, serialized);
|
|
7723
|
-
|
|
7724
|
-
if (cache.compat === undefined) {
|
|
7725
|
-
// in regular mode, we don't set the styles on the inserted cache
|
|
7726
|
-
// since we don't need to and that would be wasting memory
|
|
7727
|
-
// we return them so that they are rendered in a style tag
|
|
7728
|
-
if (shouldCache) {
|
|
7729
|
-
cache.inserted[name] = true;
|
|
7730
|
-
}
|
|
7731
|
-
|
|
7732
|
-
return rules;
|
|
7733
|
-
} else {
|
|
7734
|
-
// in compat mode, we put the styles on the inserted cache so
|
|
7735
|
-
// that emotion-server can pull out the styles
|
|
7736
|
-
// except when we don't want to cache it which was in Global but now
|
|
7737
|
-
// is nowhere but we don't want to do a major right now
|
|
7738
|
-
// and just in case we're going to leave the case here
|
|
7739
|
-
// it's also not affecting client side bundle size
|
|
7740
|
-
// so it's really not a big deal
|
|
7741
|
-
if (shouldCache) {
|
|
7742
|
-
cache.inserted[name] = rules;
|
|
7743
|
-
} else {
|
|
7744
|
-
return rules;
|
|
7745
|
-
}
|
|
7746
|
-
}
|
|
7747
|
-
};
|
|
7748
|
-
}
|
|
7749
|
-
|
|
7750
|
-
var cache
|
|
7751
|
-
/*: EmotionCache */
|
|
7752
|
-
= {
|
|
7753
|
-
key: key,
|
|
7754
|
-
sheet: new StyleSheet({
|
|
7755
|
-
key: key,
|
|
7756
|
-
container: container,
|
|
7757
|
-
nonce: options.nonce,
|
|
7758
|
-
speedy: options.speedy,
|
|
7759
|
-
prepend: options.prepend,
|
|
7760
|
-
insertionPoint: options.insertionPoint
|
|
7761
|
-
}),
|
|
7762
|
-
nonce: options.nonce,
|
|
7763
|
-
inserted: inserted,
|
|
7764
|
-
registered: {},
|
|
7765
|
-
insert: _insert
|
|
7766
|
-
};
|
|
7767
|
-
cache.sheet.hydrate(nodesToHydrate);
|
|
7768
|
-
return cache;
|
|
7769
|
-
};
|
|
7770
|
-
|
|
7771
|
-
var reactIs$1 = {exports: {}};
|
|
7772
|
-
|
|
7773
|
-
var reactIs_production_min$1 = {};
|
|
7774
|
-
|
|
7775
|
-
/** @license React v16.13.1
|
|
7776
|
-
* react-is.production.min.js
|
|
7777
|
-
*
|
|
7778
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7779
|
-
*
|
|
7780
|
-
* This source code is licensed under the MIT license found in the
|
|
7781
|
-
* LICENSE file in the root directory of this source tree.
|
|
7782
|
-
*/
|
|
7783
|
-
|
|
7784
|
-
var hasRequiredReactIs_production_min$1;
|
|
7785
|
-
|
|
7786
|
-
function requireReactIs_production_min$1 () {
|
|
7787
|
-
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
7788
|
-
hasRequiredReactIs_production_min$1 = 1;
|
|
7789
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
7790
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
7791
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
|
|
7792
|
-
reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
|
|
7793
|
-
reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
|
|
7794
|
-
reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min$1.typeOf=z;
|
|
7795
|
-
return reactIs_production_min$1;
|
|
7796
|
-
}
|
|
7797
|
-
|
|
7798
|
-
var reactIs_development$1 = {};
|
|
7799
|
-
|
|
7800
|
-
/** @license React v16.13.1
|
|
7801
|
-
* react-is.development.js
|
|
7802
|
-
*
|
|
7803
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7804
|
-
*
|
|
7805
|
-
* This source code is licensed under the MIT license found in the
|
|
7806
|
-
* LICENSE file in the root directory of this source tree.
|
|
7807
|
-
*/
|
|
7808
|
-
|
|
7809
|
-
var hasRequiredReactIs_development$1;
|
|
7810
|
-
|
|
7811
|
-
function requireReactIs_development$1 () {
|
|
7812
|
-
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
7813
|
-
hasRequiredReactIs_development$1 = 1;
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
if (process.env.NODE_ENV !== "production") {
|
|
7818
|
-
(function() {
|
|
7819
|
-
|
|
7820
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
7821
|
-
// nor polyfill, then a plain number is used for performance.
|
|
7822
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
7823
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
7824
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
7825
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
7826
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
7827
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
7828
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
7829
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
7830
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
7831
|
-
|
|
7832
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
7833
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
7834
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
7835
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
7836
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
7837
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
7838
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
7839
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
7840
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
7841
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
7842
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
7843
|
-
|
|
7844
|
-
function isValidElementType(type) {
|
|
7845
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
7846
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
7847
|
-
}
|
|
7848
|
-
|
|
7849
|
-
function typeOf(object) {
|
|
7850
|
-
if (typeof object === 'object' && object !== null) {
|
|
7851
|
-
var $$typeof = object.$$typeof;
|
|
7852
|
-
|
|
7853
|
-
switch ($$typeof) {
|
|
7854
|
-
case REACT_ELEMENT_TYPE:
|
|
7855
|
-
var type = object.type;
|
|
7856
|
-
|
|
7857
|
-
switch (type) {
|
|
7858
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
7859
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
7860
|
-
case REACT_FRAGMENT_TYPE:
|
|
7861
|
-
case REACT_PROFILER_TYPE:
|
|
7862
|
-
case REACT_STRICT_MODE_TYPE:
|
|
7863
|
-
case REACT_SUSPENSE_TYPE:
|
|
7864
|
-
return type;
|
|
7865
|
-
|
|
7866
|
-
default:
|
|
7867
|
-
var $$typeofType = type && type.$$typeof;
|
|
7868
|
-
|
|
7869
|
-
switch ($$typeofType) {
|
|
7870
|
-
case REACT_CONTEXT_TYPE:
|
|
7871
|
-
case REACT_FORWARD_REF_TYPE:
|
|
7872
|
-
case REACT_LAZY_TYPE:
|
|
7873
|
-
case REACT_MEMO_TYPE:
|
|
7874
|
-
case REACT_PROVIDER_TYPE:
|
|
7875
|
-
return $$typeofType;
|
|
7876
|
-
|
|
7877
|
-
default:
|
|
7878
|
-
return $$typeof;
|
|
7879
|
-
}
|
|
7880
|
-
|
|
7881
|
-
}
|
|
7882
|
-
|
|
7883
|
-
case REACT_PORTAL_TYPE:
|
|
7884
|
-
return $$typeof;
|
|
7885
|
-
}
|
|
7886
|
-
}
|
|
7887
|
-
|
|
7888
|
-
return undefined;
|
|
7889
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
7890
|
-
|
|
7891
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
7892
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
7893
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
7894
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
7895
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
7896
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
7897
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
7898
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
7899
|
-
var Memo = REACT_MEMO_TYPE;
|
|
7900
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
7901
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
7902
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
7903
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
7904
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
7905
|
-
|
|
7906
|
-
function isAsyncMode(object) {
|
|
7907
|
-
{
|
|
7908
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
7909
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
7910
|
-
|
|
7911
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
7912
|
-
}
|
|
7913
|
-
}
|
|
7914
|
-
|
|
7915
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
7916
|
-
}
|
|
7917
|
-
function isConcurrentMode(object) {
|
|
7918
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
7919
|
-
}
|
|
7920
|
-
function isContextConsumer(object) {
|
|
7921
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
7922
|
-
}
|
|
7923
|
-
function isContextProvider(object) {
|
|
7924
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
7925
|
-
}
|
|
7926
|
-
function isElement(object) {
|
|
7927
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
7928
|
-
}
|
|
7929
|
-
function isForwardRef(object) {
|
|
7930
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
7931
|
-
}
|
|
7932
|
-
function isFragment(object) {
|
|
7933
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
7934
|
-
}
|
|
7935
|
-
function isLazy(object) {
|
|
7936
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
7937
|
-
}
|
|
7938
|
-
function isMemo(object) {
|
|
7939
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
7940
|
-
}
|
|
7941
|
-
function isPortal(object) {
|
|
7942
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
7943
|
-
}
|
|
7944
|
-
function isProfiler(object) {
|
|
7945
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
7946
|
-
}
|
|
7947
|
-
function isStrictMode(object) {
|
|
7948
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
7949
|
-
}
|
|
7950
|
-
function isSuspense(object) {
|
|
7951
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
7952
|
-
}
|
|
7953
|
-
|
|
7954
|
-
reactIs_development$1.AsyncMode = AsyncMode;
|
|
7955
|
-
reactIs_development$1.ConcurrentMode = ConcurrentMode;
|
|
7956
|
-
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
7957
|
-
reactIs_development$1.ContextProvider = ContextProvider;
|
|
7958
|
-
reactIs_development$1.Element = Element;
|
|
7959
|
-
reactIs_development$1.ForwardRef = ForwardRef;
|
|
7960
|
-
reactIs_development$1.Fragment = Fragment;
|
|
7961
|
-
reactIs_development$1.Lazy = Lazy;
|
|
7962
|
-
reactIs_development$1.Memo = Memo;
|
|
7963
|
-
reactIs_development$1.Portal = Portal;
|
|
7964
|
-
reactIs_development$1.Profiler = Profiler;
|
|
7965
|
-
reactIs_development$1.StrictMode = StrictMode;
|
|
7966
|
-
reactIs_development$1.Suspense = Suspense;
|
|
7967
|
-
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
7968
|
-
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
7969
|
-
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
7970
|
-
reactIs_development$1.isContextProvider = isContextProvider;
|
|
7971
|
-
reactIs_development$1.isElement = isElement;
|
|
7972
|
-
reactIs_development$1.isForwardRef = isForwardRef;
|
|
7973
|
-
reactIs_development$1.isFragment = isFragment;
|
|
7974
|
-
reactIs_development$1.isLazy = isLazy;
|
|
7975
|
-
reactIs_development$1.isMemo = isMemo;
|
|
7976
|
-
reactIs_development$1.isPortal = isPortal;
|
|
7977
|
-
reactIs_development$1.isProfiler = isProfiler;
|
|
7978
|
-
reactIs_development$1.isStrictMode = isStrictMode;
|
|
7979
|
-
reactIs_development$1.isSuspense = isSuspense;
|
|
7980
|
-
reactIs_development$1.isValidElementType = isValidElementType;
|
|
7981
|
-
reactIs_development$1.typeOf = typeOf;
|
|
7982
|
-
})();
|
|
7983
|
-
}
|
|
7984
|
-
return reactIs_development$1;
|
|
7985
|
-
}
|
|
7986
|
-
|
|
7987
|
-
var hasRequiredReactIs$1;
|
|
7988
|
-
|
|
7989
|
-
function requireReactIs$1 () {
|
|
7990
|
-
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
7991
|
-
hasRequiredReactIs$1 = 1;
|
|
7992
|
-
|
|
7993
|
-
if (process.env.NODE_ENV === 'production') {
|
|
7994
|
-
reactIs$1.exports = requireReactIs_production_min$1();
|
|
7995
|
-
} else {
|
|
7996
|
-
reactIs$1.exports = requireReactIs_development$1();
|
|
7997
|
-
}
|
|
7998
|
-
return reactIs$1.exports;
|
|
7999
|
-
}
|
|
8000
|
-
|
|
8001
|
-
var hoistNonReactStatics_cjs;
|
|
8002
|
-
var hasRequiredHoistNonReactStatics_cjs;
|
|
8003
|
-
|
|
8004
|
-
function requireHoistNonReactStatics_cjs () {
|
|
8005
|
-
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
|
8006
|
-
hasRequiredHoistNonReactStatics_cjs = 1;
|
|
8007
|
-
|
|
8008
|
-
var reactIs = requireReactIs$1();
|
|
8009
|
-
|
|
8010
|
-
/**
|
|
8011
|
-
* Copyright 2015, Yahoo! Inc.
|
|
8012
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
8013
|
-
*/
|
|
8014
|
-
var REACT_STATICS = {
|
|
8015
|
-
childContextTypes: true,
|
|
8016
|
-
contextType: true,
|
|
8017
|
-
contextTypes: true,
|
|
8018
|
-
defaultProps: true,
|
|
8019
|
-
displayName: true,
|
|
8020
|
-
getDefaultProps: true,
|
|
8021
|
-
getDerivedStateFromError: true,
|
|
8022
|
-
getDerivedStateFromProps: true,
|
|
8023
|
-
mixins: true,
|
|
8024
|
-
propTypes: true,
|
|
8025
|
-
type: true
|
|
8026
|
-
};
|
|
8027
|
-
var KNOWN_STATICS = {
|
|
8028
|
-
name: true,
|
|
8029
|
-
length: true,
|
|
8030
|
-
prototype: true,
|
|
8031
|
-
caller: true,
|
|
8032
|
-
callee: true,
|
|
8033
|
-
arguments: true,
|
|
8034
|
-
arity: true
|
|
8035
|
-
};
|
|
8036
|
-
var FORWARD_REF_STATICS = {
|
|
8037
|
-
'$$typeof': true,
|
|
8038
|
-
render: true,
|
|
8039
|
-
defaultProps: true,
|
|
8040
|
-
displayName: true,
|
|
8041
|
-
propTypes: true
|
|
8042
|
-
};
|
|
8043
|
-
var MEMO_STATICS = {
|
|
8044
|
-
'$$typeof': true,
|
|
8045
|
-
compare: true,
|
|
8046
|
-
defaultProps: true,
|
|
8047
|
-
displayName: true,
|
|
8048
|
-
propTypes: true,
|
|
8049
|
-
type: true
|
|
8050
|
-
};
|
|
8051
|
-
var TYPE_STATICS = {};
|
|
8052
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
8053
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
8054
|
-
|
|
8055
|
-
function getStatics(component) {
|
|
8056
|
-
// React v16.11 and below
|
|
8057
|
-
if (reactIs.isMemo(component)) {
|
|
8058
|
-
return MEMO_STATICS;
|
|
8059
|
-
} // React v16.12 and above
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
8063
|
-
}
|
|
8064
|
-
|
|
8065
|
-
var defineProperty = Object.defineProperty;
|
|
8066
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
8067
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
8068
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
8069
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
8070
|
-
var objectPrototype = Object.prototype;
|
|
8071
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
8072
|
-
if (typeof sourceComponent !== 'string') {
|
|
8073
|
-
// don't hoist over string (html) components
|
|
8074
|
-
if (objectPrototype) {
|
|
8075
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
8076
|
-
|
|
8077
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
8078
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
8079
|
-
}
|
|
8080
|
-
}
|
|
8081
|
-
|
|
8082
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
8083
|
-
|
|
8084
|
-
if (getOwnPropertySymbols) {
|
|
8085
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
8086
|
-
}
|
|
8087
|
-
|
|
8088
|
-
var targetStatics = getStatics(targetComponent);
|
|
8089
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
8090
|
-
|
|
8091
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
8092
|
-
var key = keys[i];
|
|
8093
|
-
|
|
8094
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
8095
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
8096
|
-
|
|
8097
|
-
try {
|
|
8098
|
-
// Avoid failures from read-only properties
|
|
8099
|
-
defineProperty(targetComponent, key, descriptor);
|
|
8100
|
-
} catch (e) {}
|
|
8101
|
-
}
|
|
8102
|
-
}
|
|
8103
|
-
}
|
|
8104
|
-
|
|
8105
|
-
return targetComponent;
|
|
8106
|
-
}
|
|
8107
|
-
|
|
8108
|
-
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
8109
|
-
return hoistNonReactStatics_cjs;
|
|
6362
|
+
const breakpointsValues = handleBreakpoints({
|
|
6363
|
+
theme
|
|
6364
|
+
}, value, x => ({
|
|
6365
|
+
[styleKey]: x
|
|
6366
|
+
}));
|
|
6367
|
+
if (objectsHaveSameKeys(breakpointsValues, value)) {
|
|
6368
|
+
css[styleKey] = styleFunctionSx({
|
|
6369
|
+
sx: value,
|
|
6370
|
+
theme
|
|
6371
|
+
});
|
|
6372
|
+
} else {
|
|
6373
|
+
css = merge(css, breakpointsValues);
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
} else {
|
|
6377
|
+
css = merge(css, getThemeValue(styleKey, value, theme, config));
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
6380
|
+
});
|
|
6381
|
+
return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));
|
|
6382
|
+
}
|
|
6383
|
+
return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);
|
|
6384
|
+
}
|
|
6385
|
+
return styleFunctionSx;
|
|
8110
6386
|
}
|
|
6387
|
+
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6388
|
+
styleFunctionSx.filterProps = ['sx'];
|
|
8111
6389
|
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
if (
|
|
8120
|
-
|
|
8121
|
-
} else
|
|
8122
|
-
|
|
6390
|
+
const splitProps = props => {
|
|
6391
|
+
const result = {
|
|
6392
|
+
systemProps: {},
|
|
6393
|
+
otherProps: {}
|
|
6394
|
+
};
|
|
6395
|
+
const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;
|
|
6396
|
+
Object.keys(props).forEach(prop => {
|
|
6397
|
+
if (config[prop]) {
|
|
6398
|
+
result.systemProps[prop] = props[prop];
|
|
6399
|
+
} else {
|
|
6400
|
+
result.otherProps[prop] = props[prop];
|
|
8123
6401
|
}
|
|
8124
6402
|
});
|
|
8125
|
-
return
|
|
8126
|
-
}
|
|
8127
|
-
var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
8128
|
-
var className = cache.key + "-" + serialized.name;
|
|
8129
|
-
|
|
8130
|
-
if ( // we only need to add the styles to the registered cache if the
|
|
8131
|
-
// class name could be used further down
|
|
8132
|
-
// the tree but if it's a string tag, we know it won't
|
|
8133
|
-
// so we don't have to add it to registered cache.
|
|
8134
|
-
// this improves memory usage since we can avoid storing the whole style string
|
|
8135
|
-
(isStringTag === false || // we need to always store it if we're in compat mode and
|
|
8136
|
-
// in node since emotion-server relies on whether a style is in
|
|
8137
|
-
// the registered cache to know whether a style is global or not
|
|
8138
|
-
// also, note that this check will be dead code eliminated in the browser
|
|
8139
|
-
isBrowser$3 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
8140
|
-
cache.registered[className] = serialized.styles;
|
|
8141
|
-
}
|
|
6403
|
+
return result;
|
|
8142
6404
|
};
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
6405
|
+
function extendSxProp$1(props) {
|
|
6406
|
+
const {
|
|
6407
|
+
sx: inSx,
|
|
6408
|
+
...other
|
|
6409
|
+
} = props;
|
|
6410
|
+
const {
|
|
6411
|
+
systemProps,
|
|
6412
|
+
otherProps
|
|
6413
|
+
} = splitProps(other);
|
|
6414
|
+
let finalSx;
|
|
6415
|
+
if (Array.isArray(inSx)) {
|
|
6416
|
+
finalSx = [systemProps, ...inSx];
|
|
6417
|
+
} else if (typeof inSx === 'function') {
|
|
6418
|
+
finalSx = (...args) => {
|
|
6419
|
+
const result = inSx(...args);
|
|
6420
|
+
if (!isPlainObject(result)) {
|
|
6421
|
+
return systemProps;
|
|
8156
6422
|
}
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
6423
|
+
return {
|
|
6424
|
+
...systemProps,
|
|
6425
|
+
...result
|
|
6426
|
+
};
|
|
6427
|
+
};
|
|
6428
|
+
} else {
|
|
6429
|
+
finalSx = {
|
|
6430
|
+
...systemProps,
|
|
6431
|
+
...inSx
|
|
6432
|
+
};
|
|
8164
6433
|
}
|
|
8165
|
-
|
|
6434
|
+
return {
|
|
6435
|
+
...otherProps,
|
|
6436
|
+
sx: finalSx
|
|
6437
|
+
};
|
|
6438
|
+
}
|
|
8166
6439
|
|
|
8167
6440
|
/* eslint-disable */
|
|
8168
6441
|
// Inspired by https://github.com/garycourt/murmurhash-js
|
|
@@ -8269,7 +6542,15 @@ var unitlessKeys = {
|
|
|
8269
6542
|
strokeWidth: 1
|
|
8270
6543
|
};
|
|
8271
6544
|
|
|
8272
|
-
|
|
6545
|
+
function memoize(fn) {
|
|
6546
|
+
var cache = Object.create(null);
|
|
6547
|
+
return function (arg) {
|
|
6548
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
6549
|
+
return cache[arg];
|
|
6550
|
+
};
|
|
6551
|
+
}
|
|
6552
|
+
|
|
6553
|
+
var isDevelopment = false;
|
|
8273
6554
|
|
|
8274
6555
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
8275
6556
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
@@ -8369,29 +6650,14 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
8369
6650
|
|
|
8370
6651
|
return createStringFromObject(mergedProps, registered, interpolation);
|
|
8371
6652
|
}
|
|
8372
|
-
|
|
8373
|
-
case 'function':
|
|
8374
|
-
{
|
|
8375
|
-
if (mergedProps !== undefined) {
|
|
8376
|
-
var previousCursor = cursor;
|
|
8377
|
-
var result = interpolation(mergedProps);
|
|
8378
|
-
cursor = previousCursor;
|
|
8379
|
-
return handleInterpolation(mergedProps, registered, result);
|
|
8380
|
-
}
|
|
8381
|
-
|
|
8382
|
-
break;
|
|
8383
|
-
}
|
|
8384
6653
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
8385
6654
|
|
|
8386
6655
|
|
|
8387
6656
|
var asString = interpolation;
|
|
8388
6657
|
|
|
8389
|
-
|
|
6658
|
+
{
|
|
8390
6659
|
return asString;
|
|
8391
6660
|
}
|
|
8392
|
-
|
|
8393
|
-
var cached = registered[asString];
|
|
8394
|
-
return cached !== undefined ? cached : asString;
|
|
8395
6661
|
}
|
|
8396
6662
|
|
|
8397
6663
|
function createStringFromObject(mergedProps, registered, obj) {
|
|
@@ -8408,17 +6674,15 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
8408
6674
|
if (typeof value !== 'object') {
|
|
8409
6675
|
var asString = value;
|
|
8410
6676
|
|
|
8411
|
-
if (
|
|
8412
|
-
string += key + "{" + registered[asString] + "}";
|
|
8413
|
-
} else if (isProcessableValue(asString)) {
|
|
6677
|
+
if (isProcessableValue(asString)) {
|
|
8414
6678
|
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
8415
6679
|
}
|
|
8416
6680
|
} else {
|
|
8417
|
-
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment
|
|
6681
|
+
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {
|
|
8418
6682
|
throw new Error(noComponentSelectorMessage);
|
|
8419
6683
|
}
|
|
8420
6684
|
|
|
8421
|
-
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null
|
|
6685
|
+
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null)) {
|
|
8422
6686
|
for (var _i = 0; _i < value.length; _i++) {
|
|
8423
6687
|
if (isProcessableValue(value[_i])) {
|
|
8424
6688
|
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
@@ -8502,486 +6766,6 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
8502
6766
|
};
|
|
8503
6767
|
}
|
|
8504
6768
|
|
|
8505
|
-
var isBrowser$2 = typeof document !== 'undefined';
|
|
8506
|
-
|
|
8507
|
-
var syncFallback = function syncFallback(create) {
|
|
8508
|
-
return create();
|
|
8509
|
-
};
|
|
8510
|
-
|
|
8511
|
-
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
8512
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$2 ? syncFallback : useInsertionEffect || syncFallback;
|
|
8513
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
|
|
8514
|
-
|
|
8515
|
-
var isBrowser$1 = typeof document !== 'undefined';
|
|
8516
|
-
|
|
8517
|
-
/* import { type EmotionCache } from '@emotion/utils' */
|
|
8518
|
-
var EmotionCacheContext
|
|
8519
|
-
/*: React.Context<EmotionCache | null> */
|
|
8520
|
-
= /* #__PURE__ */React__namespace.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
8521
|
-
// because this module is primarily intended for the browser and node
|
|
8522
|
-
// but it's also required in react native and similar environments sometimes
|
|
8523
|
-
// and we could have a special build just for that
|
|
8524
|
-
// but this is much easier and the native packages
|
|
8525
|
-
// might use a different theme context in the future anyway
|
|
8526
|
-
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
8527
|
-
key: 'css'
|
|
8528
|
-
}) : null);
|
|
8529
|
-
|
|
8530
|
-
EmotionCacheContext.Provider;
|
|
8531
|
-
|
|
8532
|
-
var withEmotionCache = function withEmotionCache
|
|
8533
|
-
/* <Props, Ref: React.Ref<*>> */
|
|
8534
|
-
(func
|
|
8535
|
-
/*: (props: Props, cache: EmotionCache, ref: Ref) => React.Node */
|
|
8536
|
-
)
|
|
8537
|
-
/*: React.AbstractComponent<Props> */
|
|
8538
|
-
{
|
|
8539
|
-
return /*#__PURE__*/React.forwardRef(function (props
|
|
8540
|
-
/*: Props */
|
|
8541
|
-
, ref
|
|
8542
|
-
/*: Ref */
|
|
8543
|
-
) {
|
|
8544
|
-
// the cache will never be null in the browser
|
|
8545
|
-
var cache = React.useContext(EmotionCacheContext);
|
|
8546
|
-
return func(props, cache, ref);
|
|
8547
|
-
});
|
|
8548
|
-
};
|
|
8549
|
-
|
|
8550
|
-
if (!isBrowser$1) {
|
|
8551
|
-
withEmotionCache = function withEmotionCache
|
|
8552
|
-
/* <Props> */
|
|
8553
|
-
(func
|
|
8554
|
-
/*: (props: Props, cache: EmotionCache) => React.Node */
|
|
8555
|
-
)
|
|
8556
|
-
/*: React.StatelessFunctionalComponent<Props> */
|
|
8557
|
-
{
|
|
8558
|
-
return function (props
|
|
8559
|
-
/*: Props */
|
|
8560
|
-
) {
|
|
8561
|
-
var cache = React.useContext(EmotionCacheContext);
|
|
8562
|
-
|
|
8563
|
-
if (cache === null) {
|
|
8564
|
-
// yes, we're potentially creating this on every render
|
|
8565
|
-
// it doesn't actually matter though since it's only on the server
|
|
8566
|
-
// so there will only every be a single render
|
|
8567
|
-
// that could change in the future because of suspense and etc. but for now,
|
|
8568
|
-
// this works and i don't want to optimise for a future thing that we aren't sure about
|
|
8569
|
-
cache = createCache({
|
|
8570
|
-
key: 'css'
|
|
8571
|
-
});
|
|
8572
|
-
return /*#__PURE__*/React__namespace.createElement(EmotionCacheContext.Provider, {
|
|
8573
|
-
value: cache
|
|
8574
|
-
}, func(props, cache));
|
|
8575
|
-
} else {
|
|
8576
|
-
return func(props, cache);
|
|
8577
|
-
}
|
|
8578
|
-
};
|
|
8579
|
-
};
|
|
8580
|
-
}
|
|
8581
|
-
|
|
8582
|
-
var ThemeContext = /* #__PURE__ */React__namespace.createContext({});
|
|
8583
|
-
|
|
8584
|
-
// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
|
|
8585
|
-
// initial client-side render from SSR, use place of hydrating tag
|
|
8586
|
-
|
|
8587
|
-
var Global
|
|
8588
|
-
/*: React.AbstractComponent<
|
|
8589
|
-
GlobalProps
|
|
8590
|
-
> */
|
|
8591
|
-
= /* #__PURE__ */withEmotionCache(function (props
|
|
8592
|
-
/*: GlobalProps */
|
|
8593
|
-
, cache) {
|
|
8594
|
-
|
|
8595
|
-
var styles = props.styles;
|
|
8596
|
-
var serialized = serializeStyles([styles], undefined, React__namespace.useContext(ThemeContext));
|
|
8597
|
-
|
|
8598
|
-
if (!isBrowser$1) {
|
|
8599
|
-
var _ref;
|
|
8600
|
-
|
|
8601
|
-
var serializedNames = serialized.name;
|
|
8602
|
-
var serializedStyles = serialized.styles;
|
|
8603
|
-
var next = serialized.next;
|
|
8604
|
-
|
|
8605
|
-
while (next !== undefined) {
|
|
8606
|
-
serializedNames += ' ' + next.name;
|
|
8607
|
-
serializedStyles += next.styles;
|
|
8608
|
-
next = next.next;
|
|
8609
|
-
}
|
|
8610
|
-
|
|
8611
|
-
var shouldCache = cache.compat === true;
|
|
8612
|
-
var rules = cache.insert("", {
|
|
8613
|
-
name: serializedNames,
|
|
8614
|
-
styles: serializedStyles
|
|
8615
|
-
}, cache.sheet, shouldCache);
|
|
8616
|
-
|
|
8617
|
-
if (shouldCache) {
|
|
8618
|
-
return null;
|
|
8619
|
-
}
|
|
8620
|
-
|
|
8621
|
-
return /*#__PURE__*/React__namespace.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = {
|
|
8622
|
-
__html: rules
|
|
8623
|
-
}, _ref.nonce = cache.sheet.nonce, _ref));
|
|
8624
|
-
} // yes, i know these hooks are used conditionally
|
|
8625
|
-
// but it is based on a constant that will never change at runtime
|
|
8626
|
-
// it's effectively like having two implementations and switching them out
|
|
8627
|
-
// so it's not actually breaking anything
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
var sheetRef = React__namespace.useRef();
|
|
8631
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
8632
|
-
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
8633
|
-
|
|
8634
|
-
var sheet = new cache.sheet.constructor({
|
|
8635
|
-
key: key,
|
|
8636
|
-
nonce: cache.sheet.nonce,
|
|
8637
|
-
container: cache.sheet.container,
|
|
8638
|
-
speedy: cache.sheet.isSpeedy
|
|
8639
|
-
});
|
|
8640
|
-
var rehydrating = false;
|
|
8641
|
-
var node
|
|
8642
|
-
/*: HTMLStyleElement | null*/
|
|
8643
|
-
= document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
8644
|
-
|
|
8645
|
-
if (cache.sheet.tags.length) {
|
|
8646
|
-
sheet.before = cache.sheet.tags[0];
|
|
8647
|
-
}
|
|
8648
|
-
|
|
8649
|
-
if (node !== null) {
|
|
8650
|
-
rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
|
|
8651
|
-
|
|
8652
|
-
node.setAttribute('data-emotion', key);
|
|
8653
|
-
sheet.hydrate([node]);
|
|
8654
|
-
}
|
|
8655
|
-
|
|
8656
|
-
sheetRef.current = [sheet, rehydrating];
|
|
8657
|
-
return function () {
|
|
8658
|
-
sheet.flush();
|
|
8659
|
-
};
|
|
8660
|
-
}, [cache]);
|
|
8661
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
8662
|
-
var sheetRefCurrent = sheetRef.current;
|
|
8663
|
-
var sheet = sheetRefCurrent[0],
|
|
8664
|
-
rehydrating = sheetRefCurrent[1];
|
|
8665
|
-
|
|
8666
|
-
if (rehydrating) {
|
|
8667
|
-
sheetRefCurrent[1] = false;
|
|
8668
|
-
return;
|
|
8669
|
-
}
|
|
8670
|
-
|
|
8671
|
-
if (serialized.next !== undefined) {
|
|
8672
|
-
// insert keyframes
|
|
8673
|
-
insertStyles(cache, serialized.next, true);
|
|
8674
|
-
}
|
|
8675
|
-
|
|
8676
|
-
if (sheet.tags.length) {
|
|
8677
|
-
// if this doesn't exist then it will be null so the style element will be appended
|
|
8678
|
-
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
8679
|
-
sheet.before = element;
|
|
8680
|
-
sheet.flush();
|
|
8681
|
-
}
|
|
8682
|
-
|
|
8683
|
-
cache.insert("", serialized, sheet, false);
|
|
8684
|
-
}, [cache, serialized.name]);
|
|
8685
|
-
return null;
|
|
8686
|
-
});
|
|
8687
|
-
|
|
8688
|
-
/* import type { Interpolation, SerializedStyles } from '@emotion/utils' */
|
|
8689
|
-
|
|
8690
|
-
function css()
|
|
8691
|
-
/*: SerializedStyles */
|
|
8692
|
-
{
|
|
8693
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8694
|
-
args[_key] = arguments[_key];
|
|
8695
|
-
}
|
|
8696
|
-
|
|
8697
|
-
return serializeStyles(args);
|
|
8698
|
-
}
|
|
8699
|
-
|
|
8700
|
-
/*
|
|
8701
|
-
type Keyframes = {|
|
|
8702
|
-
name: string,
|
|
8703
|
-
styles: string,
|
|
8704
|
-
anim: 1,
|
|
8705
|
-
toString: () => string
|
|
8706
|
-
|} & string
|
|
8707
|
-
*/
|
|
8708
|
-
|
|
8709
|
-
var keyframes = function
|
|
8710
|
-
/*: Keyframes */
|
|
8711
|
-
keyframes() {
|
|
8712
|
-
var insertable = css.apply(void 0, arguments);
|
|
8713
|
-
var name = "animation-" + insertable.name;
|
|
8714
|
-
return {
|
|
8715
|
-
name: name,
|
|
8716
|
-
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
8717
|
-
anim: 1,
|
|
8718
|
-
toString: function toString() {
|
|
8719
|
-
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
8720
|
-
}
|
|
8721
|
-
};
|
|
8722
|
-
};
|
|
8723
|
-
|
|
8724
|
-
/* import type {
|
|
8725
|
-
ElementType,
|
|
8726
|
-
StatelessFunctionalComponent,
|
|
8727
|
-
AbstractComponent
|
|
8728
|
-
} from 'react' */
|
|
8729
|
-
/*
|
|
8730
|
-
export type Interpolations = Array<any>
|
|
8731
|
-
|
|
8732
|
-
export type StyledElementType<Props> =
|
|
8733
|
-
| string
|
|
8734
|
-
| AbstractComponent<{ ...Props, className: string }, mixed>
|
|
8735
|
-
|
|
8736
|
-
export type StyledOptions = {
|
|
8737
|
-
label?: string,
|
|
8738
|
-
shouldForwardProp?: string => boolean,
|
|
8739
|
-
target?: string
|
|
8740
|
-
}
|
|
8741
|
-
|
|
8742
|
-
export type StyledComponent<Props> = StatelessFunctionalComponent<Props> & {
|
|
8743
|
-
defaultProps: any,
|
|
8744
|
-
toString: () => string,
|
|
8745
|
-
withComponent: (
|
|
8746
|
-
nextTag: StyledElementType<Props>,
|
|
8747
|
-
nextOptions?: StyledOptions
|
|
8748
|
-
) => StyledComponent<Props>
|
|
8749
|
-
}
|
|
8750
|
-
|
|
8751
|
-
export type PrivateStyledComponent<Props> = StyledComponent<Props> & {
|
|
8752
|
-
__emotion_real: StyledComponent<Props>,
|
|
8753
|
-
__emotion_base: any,
|
|
8754
|
-
__emotion_styles: any,
|
|
8755
|
-
__emotion_forwardProp: any
|
|
8756
|
-
}
|
|
8757
|
-
*/
|
|
8758
|
-
|
|
8759
|
-
var testOmitPropsOnStringTag = isPropValid;
|
|
8760
|
-
|
|
8761
|
-
var testOmitPropsOnComponent = function testOmitPropsOnComponent(key
|
|
8762
|
-
/*: string */
|
|
8763
|
-
) {
|
|
8764
|
-
return key !== 'theme';
|
|
8765
|
-
};
|
|
8766
|
-
|
|
8767
|
-
var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag
|
|
8768
|
-
/*: ElementType */
|
|
8769
|
-
) {
|
|
8770
|
-
return typeof tag === 'string' && // 96 is one less than the char code
|
|
8771
|
-
// for "a" so this is checking that
|
|
8772
|
-
// it's a lowercase character
|
|
8773
|
-
tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
|
|
8774
|
-
};
|
|
8775
|
-
var composeShouldForwardProps = function composeShouldForwardProps(tag
|
|
8776
|
-
/*: PrivateStyledComponent<any> */
|
|
8777
|
-
, options
|
|
8778
|
-
/*: StyledOptions | void */
|
|
8779
|
-
, isReal
|
|
8780
|
-
/*: boolean */
|
|
8781
|
-
) {
|
|
8782
|
-
var shouldForwardProp;
|
|
8783
|
-
|
|
8784
|
-
if (options) {
|
|
8785
|
-
var optionsShouldForwardProp = options.shouldForwardProp;
|
|
8786
|
-
shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName
|
|
8787
|
-
/*: string */
|
|
8788
|
-
) {
|
|
8789
|
-
return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
|
|
8790
|
-
} : optionsShouldForwardProp;
|
|
8791
|
-
}
|
|
8792
|
-
|
|
8793
|
-
if (typeof shouldForwardProp !== 'function' && isReal) {
|
|
8794
|
-
shouldForwardProp = tag.__emotion_forwardProp;
|
|
8795
|
-
}
|
|
8796
|
-
|
|
8797
|
-
return shouldForwardProp;
|
|
8798
|
-
};
|
|
8799
|
-
/*
|
|
8800
|
-
export type CreateStyledComponent = <Props>(
|
|
8801
|
-
...args: Interpolations
|
|
8802
|
-
) => StyledComponent<Props>
|
|
8803
|
-
|
|
8804
|
-
export type CreateStyled = {
|
|
8805
|
-
<Props>(
|
|
8806
|
-
tag: StyledElementType<Props>,
|
|
8807
|
-
options?: StyledOptions
|
|
8808
|
-
): (...args: Interpolations) => StyledComponent<Props>,
|
|
8809
|
-
[key: string]: CreateStyledComponent,
|
|
8810
|
-
bind: () => CreateStyled
|
|
8811
|
-
}
|
|
8812
|
-
*/
|
|
8813
|
-
|
|
8814
|
-
var isDevelopment = false;
|
|
8815
|
-
|
|
8816
|
-
var isBrowser = typeof document !== 'undefined';
|
|
8817
|
-
|
|
8818
|
-
var Insertion = function Insertion(_ref) {
|
|
8819
|
-
var cache = _ref.cache,
|
|
8820
|
-
serialized = _ref.serialized,
|
|
8821
|
-
isStringTag = _ref.isStringTag;
|
|
8822
|
-
registerStyles(cache, serialized, isStringTag);
|
|
8823
|
-
var rules = useInsertionEffectAlwaysWithSyncFallback(function () {
|
|
8824
|
-
return insertStyles(cache, serialized, isStringTag);
|
|
8825
|
-
});
|
|
8826
|
-
|
|
8827
|
-
if (!isBrowser && rules !== undefined) {
|
|
8828
|
-
var _ref2;
|
|
8829
|
-
|
|
8830
|
-
var serializedNames = serialized.name;
|
|
8831
|
-
var next = serialized.next;
|
|
8832
|
-
|
|
8833
|
-
while (next !== undefined) {
|
|
8834
|
-
serializedNames += ' ' + next.name;
|
|
8835
|
-
next = next.next;
|
|
8836
|
-
}
|
|
8837
|
-
|
|
8838
|
-
return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
8839
|
-
__html: rules
|
|
8840
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
8841
|
-
}
|
|
8842
|
-
|
|
8843
|
-
return null;
|
|
8844
|
-
};
|
|
8845
|
-
|
|
8846
|
-
var createStyled$1
|
|
8847
|
-
/*: CreateStyled */
|
|
8848
|
-
= function createStyled
|
|
8849
|
-
/*: CreateStyled */
|
|
8850
|
-
(tag
|
|
8851
|
-
/*: any */
|
|
8852
|
-
, options
|
|
8853
|
-
/* ?: StyledOptions */
|
|
8854
|
-
) {
|
|
8855
|
-
|
|
8856
|
-
var isReal = tag.__emotion_real === tag;
|
|
8857
|
-
var baseTag = isReal && tag.__emotion_base || tag;
|
|
8858
|
-
var identifierName;
|
|
8859
|
-
var targetClassName;
|
|
8860
|
-
|
|
8861
|
-
if (options !== undefined) {
|
|
8862
|
-
identifierName = options.label;
|
|
8863
|
-
targetClassName = options.target;
|
|
8864
|
-
}
|
|
8865
|
-
|
|
8866
|
-
var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
|
|
8867
|
-
var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
|
|
8868
|
-
var shouldUseAs = !defaultShouldForwardProp('as');
|
|
8869
|
-
/* return function<Props>(): PrivateStyledComponent<Props> { */
|
|
8870
|
-
|
|
8871
|
-
return function () {
|
|
8872
|
-
var args = arguments;
|
|
8873
|
-
var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
|
|
8874
|
-
|
|
8875
|
-
if (identifierName !== undefined) {
|
|
8876
|
-
styles.push("label:" + identifierName + ";");
|
|
8877
|
-
}
|
|
8878
|
-
|
|
8879
|
-
if (args[0] == null || args[0].raw === undefined) {
|
|
8880
|
-
styles.push.apply(styles, args);
|
|
8881
|
-
} else {
|
|
8882
|
-
|
|
8883
|
-
styles.push(args[0][0]);
|
|
8884
|
-
var len = args.length;
|
|
8885
|
-
var i = 1;
|
|
8886
|
-
|
|
8887
|
-
for (; i < len; i++) {
|
|
8888
|
-
|
|
8889
|
-
styles.push(args[i], args[0][i]);
|
|
8890
|
-
}
|
|
8891
|
-
}
|
|
8892
|
-
|
|
8893
|
-
var Styled
|
|
8894
|
-
/*: PrivateStyledComponent<Props> */
|
|
8895
|
-
= withEmotionCache(function (props, cache, ref) {
|
|
8896
|
-
var FinalTag = shouldUseAs && props.as || baseTag;
|
|
8897
|
-
var className = '';
|
|
8898
|
-
var classInterpolations = [];
|
|
8899
|
-
var mergedProps = props;
|
|
8900
|
-
|
|
8901
|
-
if (props.theme == null) {
|
|
8902
|
-
mergedProps = {};
|
|
8903
|
-
|
|
8904
|
-
for (var key in props) {
|
|
8905
|
-
mergedProps[key] = props[key];
|
|
8906
|
-
}
|
|
8907
|
-
|
|
8908
|
-
mergedProps.theme = React__namespace.useContext(ThemeContext);
|
|
8909
|
-
}
|
|
8910
|
-
|
|
8911
|
-
if (typeof props.className === 'string') {
|
|
8912
|
-
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
|
8913
|
-
} else if (props.className != null) {
|
|
8914
|
-
className = props.className + " ";
|
|
8915
|
-
}
|
|
8916
|
-
|
|
8917
|
-
var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
|
|
8918
|
-
className += cache.key + "-" + serialized.name;
|
|
8919
|
-
|
|
8920
|
-
if (targetClassName !== undefined) {
|
|
8921
|
-
className += " " + targetClassName;
|
|
8922
|
-
}
|
|
8923
|
-
|
|
8924
|
-
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
|
|
8925
|
-
var newProps = {};
|
|
8926
|
-
|
|
8927
|
-
for (var _key in props) {
|
|
8928
|
-
if (shouldUseAs && _key === 'as') continue;
|
|
8929
|
-
|
|
8930
|
-
if (finalShouldForwardProp(_key)) {
|
|
8931
|
-
newProps[_key] = props[_key];
|
|
8932
|
-
}
|
|
8933
|
-
}
|
|
8934
|
-
|
|
8935
|
-
newProps.className = className;
|
|
8936
|
-
|
|
8937
|
-
if (ref) {
|
|
8938
|
-
newProps.ref = ref;
|
|
8939
|
-
}
|
|
8940
|
-
|
|
8941
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
|
|
8942
|
-
cache: cache,
|
|
8943
|
-
serialized: serialized,
|
|
8944
|
-
isStringTag: typeof FinalTag === 'string'
|
|
8945
|
-
}), /*#__PURE__*/React__namespace.createElement(FinalTag, newProps));
|
|
8946
|
-
});
|
|
8947
|
-
Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
|
|
8948
|
-
Styled.defaultProps = tag.defaultProps;
|
|
8949
|
-
Styled.__emotion_real = Styled;
|
|
8950
|
-
Styled.__emotion_base = baseTag;
|
|
8951
|
-
Styled.__emotion_styles = styles;
|
|
8952
|
-
Styled.__emotion_forwardProp = shouldForwardProp;
|
|
8953
|
-
Object.defineProperty(Styled, 'toString', {
|
|
8954
|
-
value: function value() {
|
|
8955
|
-
if (targetClassName === undefined && isDevelopment) {
|
|
8956
|
-
return 'NO_COMPONENT_SELECTOR';
|
|
8957
|
-
}
|
|
8958
|
-
|
|
8959
|
-
return "." + targetClassName;
|
|
8960
|
-
}
|
|
8961
|
-
});
|
|
8962
|
-
|
|
8963
|
-
Styled.withComponent = function (nextTag
|
|
8964
|
-
/*: StyledElementType<Props> */
|
|
8965
|
-
, nextOptions
|
|
8966
|
-
/* ?: StyledOptions */
|
|
8967
|
-
) {
|
|
8968
|
-
return createStyled(nextTag, _extends({}, options, nextOptions, {
|
|
8969
|
-
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
8970
|
-
})).apply(void 0, styles);
|
|
8971
|
-
};
|
|
8972
|
-
|
|
8973
|
-
return Styled;
|
|
8974
|
-
};
|
|
8975
|
-
};
|
|
8976
|
-
|
|
8977
|
-
var tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG
|
|
8978
|
-
'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
|
|
8979
|
-
|
|
8980
|
-
var newStyled = createStyled$1.bind();
|
|
8981
|
-
tags.forEach(function (tagName) {
|
|
8982
|
-
newStyled[tagName] = newStyled(tagName);
|
|
8983
|
-
});
|
|
8984
|
-
|
|
8985
6769
|
function isEmpty$2(obj) {
|
|
8986
6770
|
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
8987
6771
|
}
|
|
@@ -8991,7 +6775,7 @@ function GlobalStyles$2(props) {
|
|
|
8991
6775
|
defaultTheme = {}
|
|
8992
6776
|
} = props;
|
|
8993
6777
|
const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$2(themeInput) ? defaultTheme : themeInput) : styles;
|
|
8994
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(Global, {
|
|
6778
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(react.Global, {
|
|
8995
6779
|
styles: globalStyles
|
|
8996
6780
|
});
|
|
8997
6781
|
}
|
|
@@ -9009,7 +6793,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
|
|
|
9009
6793
|
*/
|
|
9010
6794
|
/* eslint-disable no-underscore-dangle */
|
|
9011
6795
|
function styled$1(tag, options) {
|
|
9012
|
-
const stylesFactory =
|
|
6796
|
+
const stylesFactory = emStyled(tag, options);
|
|
9013
6797
|
if (process.env.NODE_ENV !== 'production') {
|
|
9014
6798
|
return (...styles) => {
|
|
9015
6799
|
if (styles.length === 0) ; else if (styles.some(style => style === undefined)) ;
|
|
@@ -9278,7 +7062,7 @@ function isObjectEmpty$1(obj) {
|
|
|
9278
7062
|
return Object.keys(obj).length === 0;
|
|
9279
7063
|
}
|
|
9280
7064
|
function useTheme$2(defaultTheme = null) {
|
|
9281
|
-
const contextTheme = React__namespace.useContext(ThemeContext);
|
|
7065
|
+
const contextTheme = React__namespace.useContext(react.ThemeContext);
|
|
9282
7066
|
return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme : contextTheme;
|
|
9283
7067
|
}
|
|
9284
7068
|
|
|
@@ -16792,6 +14576,16 @@ process.env.NODE_ENV !== "production" ? MenuList.propTypes /* remove-proptypes *
|
|
|
16792
14576
|
variant: PropTypes.oneOf(['menu', 'selectedMenu'])
|
|
16793
14577
|
} : void 0;
|
|
16794
14578
|
|
|
14579
|
+
function _extends() {
|
|
14580
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14581
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14582
|
+
var t = arguments[e];
|
|
14583
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14584
|
+
}
|
|
14585
|
+
return n;
|
|
14586
|
+
}, _extends.apply(null, arguments);
|
|
14587
|
+
}
|
|
14588
|
+
|
|
16795
14589
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
16796
14590
|
if (null == r) return {};
|
|
16797
14591
|
var t = {};
|
|
@@ -22490,7 +20284,7 @@ const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ri
|
|
|
22490
20284
|
|
|
22491
20285
|
const DURATION = 550;
|
|
22492
20286
|
const DELAY_RIPPLE = 80;
|
|
22493
|
-
const enterKeyframe = keyframes`
|
|
20287
|
+
const enterKeyframe = react.keyframes`
|
|
22494
20288
|
0% {
|
|
22495
20289
|
transform: scale(0);
|
|
22496
20290
|
opacity: 0.1;
|
|
@@ -22501,7 +20295,7 @@ const enterKeyframe = keyframes`
|
|
|
22501
20295
|
opacity: 0.3;
|
|
22502
20296
|
}
|
|
22503
20297
|
`;
|
|
22504
|
-
const exitKeyframe = keyframes`
|
|
20298
|
+
const exitKeyframe = react.keyframes`
|
|
22505
20299
|
0% {
|
|
22506
20300
|
opacity: 1;
|
|
22507
20301
|
}
|
|
@@ -22510,7 +20304,7 @@ const exitKeyframe = keyframes`
|
|
|
22510
20304
|
opacity: 0;
|
|
22511
20305
|
}
|
|
22512
20306
|
`;
|
|
22513
|
-
const pulsateKeyframe = keyframes`
|
|
20307
|
+
const pulsateKeyframe = react.keyframes`
|
|
22514
20308
|
0% {
|
|
22515
20309
|
transform: scale(1);
|
|
22516
20310
|
}
|