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