bibot 1.0.72 → 1.0.74

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.
@@ -4,7 +4,7 @@ declare const useBiBotChatBot: (bibotProps: BiBotProps) => {
4
4
  chatIsOpen: boolean;
5
5
  messages: MESSAGES;
6
6
  isLoading: boolean;
7
- messageEndRef: React.RefObject<HTMLDivElement>;
7
+ messageEndRef: React.RefObject<HTMLDivElement | null>;
8
8
  userInput: string;
9
9
  handleUserInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
10
  handleKeyPress: (e: React.KeyboardEvent<HTMLInputElement>) => Promise<void>;
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ function bind(fn, thisArg) {
26
26
 
27
27
  const {toString} = Object.prototype;
28
28
  const {getPrototypeOf} = Object;
29
+ const {iterator, toStringTag} = Symbol;
29
30
 
30
31
  const kindOf = (cache => thing => {
31
32
  const str = toString.call(thing);
@@ -152,7 +153,28 @@ const isPlainObject = (val) => {
152
153
  }
153
154
 
154
155
  const prototype = getPrototypeOf(val);
155
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
156
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
157
+ };
158
+
159
+ /**
160
+ * Determine if a value is an empty object (safely handles Buffers)
161
+ *
162
+ * @param {*} val The value to test
163
+ *
164
+ * @returns {boolean} True if value is an empty object, otherwise false
165
+ */
166
+ const isEmptyObject = (val) => {
167
+ // Early return for non-objects or Buffers to prevent RangeError
168
+ if (!isObject(val) || isBuffer(val)) {
169
+ return false;
170
+ }
171
+
172
+ try {
173
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
174
+ } catch (e) {
175
+ // Fallback for any other objects that might cause RangeError with Object.keys()
176
+ return false;
177
+ }
156
178
  };
157
179
 
158
180
  /**
@@ -277,6 +299,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
277
299
  fn.call(null, obj[i], i, obj);
278
300
  }
279
301
  } else {
302
+ // Buffer check
303
+ if (isBuffer(obj)) {
304
+ return;
305
+ }
306
+
280
307
  // Iterate over object keys
281
308
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
282
309
  const len = keys.length;
@@ -290,6 +317,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
290
317
  }
291
318
 
292
319
  function findKey(obj, key) {
320
+ if (isBuffer(obj)){
321
+ return null;
322
+ }
323
+
293
324
  key = key.toLowerCase();
294
325
  const keys = Object.keys(obj);
295
326
  let i = keys.length;
@@ -503,13 +534,13 @@ const isTypedArray = (TypedArray => {
503
534
  * @returns {void}
504
535
  */
505
536
  const forEachEntry = (obj, fn) => {
506
- const generator = obj && obj[Symbol.iterator];
537
+ const generator = obj && obj[iterator];
507
538
 
508
- const iterator = generator.call(obj);
539
+ const _iterator = generator.call(obj);
509
540
 
510
541
  let result;
511
542
 
512
- while ((result = iterator.next()) && !result.done) {
543
+ while ((result = _iterator.next()) && !result.done) {
513
544
  const pair = result.value;
514
545
  fn.call(obj, pair[0], pair[1]);
515
546
  }
@@ -622,26 +653,6 @@ const toFiniteNumber = (value, defaultValue) => {
622
653
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
623
654
  };
624
655
 
625
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
626
-
627
- const DIGIT = '0123456789';
628
-
629
- const ALPHABET = {
630
- DIGIT,
631
- ALPHA,
632
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
633
- };
634
-
635
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
636
- let str = '';
637
- const {length} = alphabet;
638
- while (size--) {
639
- str += alphabet[Math.random() * length|0];
640
- }
641
-
642
- return str;
643
- };
644
-
645
656
  /**
646
657
  * If the thing is a FormData object, return true, otherwise return false.
647
658
  *
@@ -650,7 +661,7 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
650
661
  * @returns {boolean}
651
662
  */
652
663
  function isSpecCompliantForm(thing) {
653
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
664
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
654
665
  }
655
666
 
656
667
  const toJSONObject = (obj) => {
@@ -663,6 +674,11 @@ const toJSONObject = (obj) => {
663
674
  return;
664
675
  }
665
676
 
677
+ //Buffer check
678
+ if (isBuffer(source)) {
679
+ return source;
680
+ }
681
+
666
682
  if(!('toJSON' in source)) {
667
683
  stack[i] = source;
668
684
  const target = isArray(source) ? [] : {};
@@ -719,6 +735,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
719
735
 
720
736
  // *********************
721
737
 
738
+
739
+ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
740
+
741
+
722
742
  var utils = {
723
743
  isArray,
724
744
  isArrayBuffer,
@@ -730,6 +750,7 @@ var utils = {
730
750
  isBoolean,
731
751
  isObject,
732
752
  isPlainObject,
753
+ isEmptyObject,
733
754
  isReadableStream,
734
755
  isRequest,
735
756
  isResponse,
@@ -769,14 +790,13 @@ var utils = {
769
790
  findKey,
770
791
  global: _global,
771
792
  isContextDefined,
772
- ALPHABET,
773
- generateString,
774
793
  isSpecCompliantForm,
775
794
  toJSONObject,
776
795
  isAsyncFn,
777
796
  isThenable,
778
797
  setImmediate: _setImmediate,
779
- asap
798
+ asap,
799
+ isIterable
780
800
  };
781
801
 
782
802
  /**
@@ -995,6 +1015,10 @@ function toFormData(obj, formData, options) {
995
1015
  return value.toISOString();
996
1016
  }
997
1017
 
1018
+ if (utils.isBoolean(value)) {
1019
+ return value.toString();
1020
+ }
1021
+
998
1022
  if (!useBlob && utils.isBlob(value)) {
999
1023
  throw new AxiosError('Blob is not supported. Use a Buffer instead.');
1000
1024
  }
@@ -1167,7 +1191,7 @@ function encode$1(val) {
1167
1191
  *
1168
1192
  * @param {string} url The base of the url (e.g., http://www.google.com)
1169
1193
  * @param {object} [params] The params to be appended
1170
- * @param {?object} options
1194
+ * @param {?(object|Function)} options
1171
1195
  *
1172
1196
  * @returns {string} The formatted url
1173
1197
  */
@@ -1179,6 +1203,12 @@ function buildURL(url, params, options) {
1179
1203
 
1180
1204
  const _encode = options && options.encode || encode$1;
1181
1205
 
1206
+ if (utils.isFunction(options)) {
1207
+ options = {
1208
+ serialize: options
1209
+ };
1210
+ }
1211
+
1182
1212
  const serializeFn = options && options.serialize;
1183
1213
 
1184
1214
  let serializedParams;
@@ -1350,7 +1380,7 @@ var platform$1 = {
1350
1380
  };
1351
1381
 
1352
1382
  function toURLEncodedForm(data, options) {
1353
- return toFormData(data, new platform$1.classes.URLSearchParams(), Object.assign({
1383
+ return toFormData(data, new platform$1.classes.URLSearchParams(), {
1354
1384
  visitor: function(value, key, path, helpers) {
1355
1385
  if (platform$1.isNode && utils.isBuffer(value)) {
1356
1386
  this.append(key, value.toString('base64'));
@@ -1358,8 +1388,9 @@ function toURLEncodedForm(data, options) {
1358
1388
  }
1359
1389
 
1360
1390
  return helpers.defaultVisitor.apply(this, arguments);
1361
- }
1362
- }, options));
1391
+ },
1392
+ ...options
1393
+ });
1363
1394
  }
1364
1395
 
1365
1396
  /**
@@ -1751,10 +1782,18 @@ class AxiosHeaders {
1751
1782
  setHeaders(header, valueOrRewrite);
1752
1783
  } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1753
1784
  setHeaders(parseHeaders(header), valueOrRewrite);
1754
- } else if (utils.isHeaders(header)) {
1755
- for (const [key, value] of header.entries()) {
1756
- setHeader(value, key, rewrite);
1785
+ } else if (utils.isObject(header) && utils.isIterable(header)) {
1786
+ let obj = {}, dest, key;
1787
+ for (const entry of header) {
1788
+ if (!utils.isArray(entry)) {
1789
+ throw TypeError('Object iterator must return a key-value pair');
1790
+ }
1791
+
1792
+ obj[key = entry[0]] = (dest = obj[key]) ?
1793
+ (utils.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
1757
1794
  }
1795
+
1796
+ setHeaders(obj, valueOrRewrite);
1758
1797
  } else {
1759
1798
  header != null && setHeader(valueOrRewrite, header, rewrite);
1760
1799
  }
@@ -1896,6 +1935,10 @@ class AxiosHeaders {
1896
1935
  return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
1897
1936
  }
1898
1937
 
1938
+ getSetCookie() {
1939
+ return this.get("set-cookie") || [];
1940
+ }
1941
+
1899
1942
  get [Symbol.toStringTag]() {
1900
1943
  return 'AxiosHeaders';
1901
1944
  }
@@ -2096,7 +2139,7 @@ function throttle(fn, freq) {
2096
2139
  clearTimeout(timer);
2097
2140
  timer = null;
2098
2141
  }
2099
- fn.apply(null, args);
2142
+ fn(...args);
2100
2143
  };
2101
2144
 
2102
2145
  const throttled = (...args) => {
@@ -2161,68 +2204,18 @@ const progressEventDecorator = (total, throttled) => {
2161
2204
 
2162
2205
  const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
2163
2206
 
2164
- var isURLSameOrigin = platform$1.hasStandardBrowserEnv ?
2165
-
2166
- // Standard browser envs have full support of the APIs needed to test
2167
- // whether the request URL is of the same origin as current location.
2168
- (function standardBrowserEnv() {
2169
- const msie = platform$1.navigator && /(msie|trident)/i.test(platform$1.navigator.userAgent);
2170
- const urlParsingNode = document.createElement('a');
2171
- let originURL;
2172
-
2173
- /**
2174
- * Parse a URL to discover its components
2175
- *
2176
- * @param {String} url The URL to be parsed
2177
- * @returns {Object}
2178
- */
2179
- function resolveURL(url) {
2180
- let href = url;
2181
-
2182
- if (msie) {
2183
- // IE needs attribute set twice to normalize properties
2184
- urlParsingNode.setAttribute('href', href);
2185
- href = urlParsingNode.href;
2186
- }
2187
-
2188
- urlParsingNode.setAttribute('href', href);
2189
-
2190
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
2191
- return {
2192
- href: urlParsingNode.href,
2193
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
2194
- host: urlParsingNode.host,
2195
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
2196
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
2197
- hostname: urlParsingNode.hostname,
2198
- port: urlParsingNode.port,
2199
- pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
2200
- urlParsingNode.pathname :
2201
- '/' + urlParsingNode.pathname
2202
- };
2203
- }
2204
-
2205
- originURL = resolveURL(window.location.href);
2206
-
2207
- /**
2208
- * Determine if a URL shares the same origin as the current location
2209
- *
2210
- * @param {String} requestURL The URL to test
2211
- * @returns {boolean} True if URL shares the same origin, otherwise false
2212
- */
2213
- return function isURLSameOrigin(requestURL) {
2214
- const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2215
- return (parsed.protocol === originURL.protocol &&
2216
- parsed.host === originURL.host);
2217
- };
2218
- })() :
2207
+ var isURLSameOrigin = platform$1.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
2208
+ url = new URL(url, platform$1.origin);
2219
2209
 
2220
- // Non standard browser envs (web workers, react-native) lack needed support.
2221
- (function nonStandardBrowserEnv() {
2222
- return function isURLSameOrigin() {
2223
- return true;
2224
- };
2225
- })();
2210
+ return (
2211
+ origin.protocol === url.protocol &&
2212
+ origin.host === url.host &&
2213
+ (isMSIE || origin.port === url.port)
2214
+ );
2215
+ })(
2216
+ new URL(platform$1.origin),
2217
+ platform$1.navigator && /(msie|trident)/i.test(platform$1.navigator.userAgent)
2218
+ ) : () => true;
2226
2219
 
2227
2220
  var cookies = platform$1.hasStandardBrowserEnv ?
2228
2221
 
@@ -2301,8 +2294,9 @@ function combineURLs(baseURL, relativeURL) {
2301
2294
  *
2302
2295
  * @returns {string} The combined full path
2303
2296
  */
2304
- function buildFullPath(baseURL, requestedURL) {
2305
- if (baseURL && !isAbsoluteURL(requestedURL)) {
2297
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2298
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
2299
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
2306
2300
  return combineURLs(baseURL, requestedURL);
2307
2301
  }
2308
2302
  return requestedURL;
@@ -2324,7 +2318,7 @@ function mergeConfig(config1, config2) {
2324
2318
  config2 = config2 || {};
2325
2319
  const config = {};
2326
2320
 
2327
- function getMergedValue(target, source, caseless) {
2321
+ function getMergedValue(target, source, prop, caseless) {
2328
2322
  if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
2329
2323
  return utils.merge.call({caseless}, target, source);
2330
2324
  } else if (utils.isPlainObject(source)) {
@@ -2336,11 +2330,11 @@ function mergeConfig(config1, config2) {
2336
2330
  }
2337
2331
 
2338
2332
  // eslint-disable-next-line consistent-return
2339
- function mergeDeepProperties(a, b, caseless) {
2333
+ function mergeDeepProperties(a, b, prop , caseless) {
2340
2334
  if (!utils.isUndefined(b)) {
2341
- return getMergedValue(a, b, caseless);
2335
+ return getMergedValue(a, b, prop , caseless);
2342
2336
  } else if (!utils.isUndefined(a)) {
2343
- return getMergedValue(undefined, a, caseless);
2337
+ return getMergedValue(undefined, a, prop , caseless);
2344
2338
  }
2345
2339
  }
2346
2340
 
@@ -2398,10 +2392,10 @@ function mergeConfig(config1, config2) {
2398
2392
  socketPath: defaultToConfig2,
2399
2393
  responseEncoding: defaultToConfig2,
2400
2394
  validateStatus: mergeDirectKeys,
2401
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2395
+ headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
2402
2396
  };
2403
2397
 
2404
- utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
2398
+ utils.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
2405
2399
  const merge = mergeMap[prop] || mergeDeepProperties;
2406
2400
  const configValue = merge(config1[prop], config2[prop], prop);
2407
2401
  (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -2417,7 +2411,7 @@ var resolveConfig = (config) => {
2417
2411
 
2418
2412
  newConfig.headers = headers = AxiosHeaders.from(headers);
2419
2413
 
2420
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
2414
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
2421
2415
 
2422
2416
  // HTTP basic authentication
2423
2417
  if (auth) {
@@ -2934,7 +2928,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
2934
2928
  credentials: isCredentialsSupported ? withCredentials : undefined
2935
2929
  });
2936
2930
 
2937
- let response = await fetch(request);
2931
+ let response = await fetch(request, fetchOptions);
2938
2932
 
2939
2933
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2940
2934
 
@@ -2980,7 +2974,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
2980
2974
  } catch (err) {
2981
2975
  unsubscribe && unsubscribe();
2982
2976
 
2983
- if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
2977
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
2984
2978
  throw Object.assign(
2985
2979
  new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
2986
2980
  {
@@ -3140,7 +3134,7 @@ function dispatchRequest(config) {
3140
3134
  });
3141
3135
  }
3142
3136
 
3143
- const VERSION = "1.7.7";
3137
+ const VERSION = "1.11.0";
3144
3138
 
3145
3139
  const validators = {};
3146
3140
 
@@ -3191,6 +3185,14 @@ validators.transitional = function transitional(validator, version, message) {
3191
3185
  };
3192
3186
  };
3193
3187
 
3188
+ validators.spelling = function spelling(correctSpelling) {
3189
+ return (value, opt) => {
3190
+ // eslint-disable-next-line no-console
3191
+ console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
3192
+ return true;
3193
+ }
3194
+ };
3195
+
3194
3196
  /**
3195
3197
  * Assert object's properties type
3196
3198
  *
@@ -3240,7 +3242,7 @@ const validators$1 = validator.validators;
3240
3242
  */
3241
3243
  class Axios {
3242
3244
  constructor(instanceConfig) {
3243
- this.defaults = instanceConfig;
3245
+ this.defaults = instanceConfig || {};
3244
3246
  this.interceptors = {
3245
3247
  request: new InterceptorManager(),
3246
3248
  response: new InterceptorManager()
@@ -3260,9 +3262,9 @@ class Axios {
3260
3262
  return await this._request(configOrUrl, config);
3261
3263
  } catch (err) {
3262
3264
  if (err instanceof Error) {
3263
- let dummy;
3265
+ let dummy = {};
3264
3266
 
3265
- Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
3267
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
3266
3268
 
3267
3269
  // slice off the Error: ... line
3268
3270
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
@@ -3317,6 +3319,18 @@ class Axios {
3317
3319
  }
3318
3320
  }
3319
3321
 
3322
+ // Set config.allowAbsoluteUrls
3323
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
3324
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3325
+ } else {
3326
+ config.allowAbsoluteUrls = true;
3327
+ }
3328
+
3329
+ validator.assertOptions(config, {
3330
+ baseUrl: validators$1.spelling('baseURL'),
3331
+ withXsrfToken: validators$1.spelling('withXSRFToken')
3332
+ }, true);
3333
+
3320
3334
  // Set config.method
3321
3335
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3322
3336
 
@@ -3359,8 +3373,8 @@ class Axios {
3359
3373
 
3360
3374
  if (!synchronousRequestInterceptors) {
3361
3375
  const chain = [dispatchRequest.bind(this), undefined];
3362
- chain.unshift.apply(chain, requestInterceptorChain);
3363
- chain.push.apply(chain, responseInterceptorChain);
3376
+ chain.unshift(...requestInterceptorChain);
3377
+ chain.push(...responseInterceptorChain);
3364
3378
  len = chain.length;
3365
3379
 
3366
3380
  promise = Promise.resolve(config);
@@ -3407,7 +3421,7 @@ class Axios {
3407
3421
 
3408
3422
  getUri(config) {
3409
3423
  config = mergeConfig(this.defaults, config);
3410
- const fullPath = buildFullPath(config.baseURL, config.url);
3424
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3411
3425
  return buildURL(fullPath, config.params, config.paramsSerializer);
3412
3426
  }
3413
3427
  }
@@ -4218,7 +4232,7 @@ var useBiBotChatBot = function useBiBotChatBot(bibotProps) {
4218
4232
  var _useState = React.useState(true),
4219
4233
  showPredefinedQuestions = _useState[0],
4220
4234
  setShowPredefinedQuestions = _useState[1];
4221
- var _useState2 = React.useState(true),
4235
+ var _useState2 = React.useState(false),
4222
4236
  chatIsOpen = _useState2[0],
4223
4237
  setChatIsOpen = _useState2[1];
4224
4238
  var _useState3 = React.useState([]),
@@ -5037,7 +5051,7 @@ var unitlessKeys = {
5037
5051
  strokeWidth: 1
5038
5052
  };
5039
5053
 
5040
- var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m$1="active",y$1="data-styled-version",v="6.1.13",g$1="/*!sc*/\n",S$1="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E$1=/invalid hook call/i,N$1=new Set,P$1=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E$1.test(t)?(a=!1,N$1.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},React.useRef(),a&&!N$1.has(s)&&(console.warn(s),N$1.add(s));}catch(e){E$1.test(e.message)&&N$1.delete(s);}finally{console.error=i;}}},_$1=Object.freeze([]),C$1=Object.freeze({});function I$1(e,t,n){return void 0===n&&(n=C$1),e.theme!==n.theme&&e.theme||t||n.theme}var A$1=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O$1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D$1=/(^-|-$)/g;function R$1(e){return e.replace(O$1,"-").replace(D$1,"")}var T$1=/(a)(d)/gi,k=52,j$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function x$1(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j$1(t%k)+n;return (j$1(t%k)+n).replace(T$1,"$1-$2")}var V$1,F$1=5381,M$1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z$1=function(e){return M$1(F$1,e)};function $$1(e){return x$1(z$1(e)>>>0)}function B$1(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G$1="function"==typeof Symbol&&Symbol.for,Y$1=G$1?Symbol.for("react.memo"):60115,W$1=G$1?Symbol.for("react.forward_ref"):60112,q$1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H$1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J$1=((V$1={})[W$1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V$1[Y$1]=U$1,V$1);function X$1(e){return ("type"in(t=e)&&t.type.$$typeof)===Y$1?U$1:"$$typeof"in e?J$1[e.$$typeof]:q$1;var t;}var Z$1=Object.defineProperty,K$1=Object.getOwnPropertyNames,Q$1=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te$1=Object.getPrototypeOf,ne$1=Object.prototype;function oe$1(e,t,n){if("string"!=typeof t){if(ne$1){var o=te$1(t);o&&o!==ne$1&&oe$1(e,o,n);}var r=K$1(t);Q$1&&(r=r.concat(Q$1(t)));for(var s=X$1(e),i=X$1(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H$1||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z$1(e,c,l);}catch(e){}}}}return e}function re$1(e){return "function"==typeof e}function se$1(e){return "object"==typeof e&&"styledComponentId"in e}function ie$1(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce$1(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le$1(e,t,n){if(void 0===n&&(n=!1),!n&&!ce$1(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le$1(e[o],t[o]);else if(ce$1(t))for(var o in t)e[o]=le$1(e[o],t[o]);return e}function ue$1(e,t){Object.defineProperty(e,"toString",{value:t});}var pe$1="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de$1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de$1.apply(void 0,__spreadArray([pe$1[t]],n,!1)).trim())}var fe$1=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he$1(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g$1);return t},e}(),me=1<<30,ye=new Map,ve$1=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve$1.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he$1(16,"".concat(t));return ye.set(e,t),ve$1.set(t,e),t},we$1=function(e,t){ge=t+1,ye.set(e,t),ve$1.set(t,e);},be$1="style[".concat(f,"][").concat(y$1,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g$1),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we$1(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be$1),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m$1&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m$1),o.setAttribute(y$1,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he$1(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S$1,Te={isServer:!S$1,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C$1),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S$1&&Re&&(Re=!1,_e(this)),ue$1(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve$1.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g$1);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S$1&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe$1(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C$1:e,s=r.options,i=void 0===s?C$1:s,a=r.plugins,c$1=void 0===a?_$1:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de),u.push(he);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe(l,be(u.concat(we(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he$1(15),M$1(e,t.name)},F$1).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze}),Le=React__default.createContext(void 0);function Ge(){return React.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue$1(this,function(){throw he$1(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re$1(i)?r.push("".concat(He(s),":"),i,";"):ce$1(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se$1(e))return [".".concat(e.styledComponentId)];if(re$1(e)){if(!re$1(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce$1(r)||null===r||console.error("".concat(B$1(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce$1(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_$1,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re$1(n)&&!se$1(n))return !1}return !0}var Ke=z$1(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M$1(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie$1(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x$1(M$1(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie$1(o,s),this.staticRulesId=s;}else {for(var a=M$1(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M$1(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M$1(a,p+l),c+=p;}}if(c){var d=x$1(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie$1(o,d);}}return o},e}(),et=React__default.createContext(void 0);var rt={},st=new Set;function it(e,r,s){var i=se$1(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_$1:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R$1(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($$1(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B$1(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R$1(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&React.useDebugValue(d);var v=I$1(r,f,c)||C$1,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re$1(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie$1(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie$1(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A$1.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&React.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie$1(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A$1.has(S)?"class":"className"]=N,w.ref=s,React.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie$1(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le$1(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P$1(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue$1(D,function(){return ".".concat(D.styledComponentId)}),c&&oe$1(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re$1(t)||ce$1(t))return ct(Xe(at(_$1,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C$1),!o)throw he$1(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A$1.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ae(lt.apply(void 0,__spreadArray([t],n,!1))),s=$$1(r);return new We(s,r)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
5054
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m$1="active",y$1="data-styled-version",v="6.1.19",g$1="/*!sc*/\n",S$1="undefined"!=typeof window&&"undefined"!=typeof document,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E$1=/invalid hook call/i,N$1=new Set,P$1=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E$1.test(t)?(a=!1,N$1.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},React.useRef(),a&&!N$1.has(s)&&(console.warn(s),N$1.add(s));}catch(e){E$1.test(e.message)&&N$1.delete(s);}finally{console.error=i;}}},_$1=Object.freeze([]),C$1=Object.freeze({});function I$1(e,t,n){return void 0===n&&(n=C$1),e.theme!==n.theme&&e.theme||t||n.theme}var A$1=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O$1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D$1=/(^-|-$)/g;function R$1(e){return e.replace(O$1,"-").replace(D$1,"")}var T$1=/(a)(d)/gi,k=52,j$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function x$1(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j$1(t%k)+n;return (j$1(t%k)+n).replace(T$1,"$1-$2")}var V$1,F$1=5381,M$1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z$1=function(e){return M$1(F$1,e)};function $$1(e){return x$1(z$1(e)>>>0)}function B$1(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L$1(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G$1="function"==typeof Symbol&&Symbol.for,Y$1=G$1?Symbol.for("react.memo"):60115,W$1=G$1?Symbol.for("react.forward_ref"):60112,q$1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H$1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J$1=((V$1={})[W$1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V$1[Y$1]=U$1,V$1);function X$1(e){return ("type"in(t=e)&&t.type.$$typeof)===Y$1?U$1:"$$typeof"in e?J$1[e.$$typeof]:q$1;var t;}var Z$1=Object.defineProperty,K$1=Object.getOwnPropertyNames,Q$1=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te$1=Object.getPrototypeOf,ne$1=Object.prototype;function oe$1(e,t,n){if("string"!=typeof t){if(ne$1){var o=te$1(t);o&&o!==ne$1&&oe$1(e,o,n);}var r=K$1(t);Q$1&&(r=r.concat(Q$1(t)));for(var s=X$1(e),i=X$1(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H$1||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z$1(e,c,l);}catch(e){}}}}return e}function re$1(e){return "function"==typeof e}function se$1(e){return "object"==typeof e&&"styledComponentId"in e}function ie$1(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce$1(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le$1(e,t,n){if(void 0===n&&(n=!1),!n&&!ce$1(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le$1(e[o],t[o]);else if(ce$1(t))for(var o in t)e[o]=le$1(e[o],t[o]);return e}function ue$1(e,t){Object.defineProperty(e,"toString",{value:t});}var pe$1="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de$1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de$1.apply(void 0,__spreadArray([pe$1[t]],n,!1)).trim())}var fe$1=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he$1(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g$1);return t},e}(),me=1<<30,ye=new Map,ve$1=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve$1.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he$1(16,"".concat(t));return ye.set(e,t),ve$1.set(t,e),t},we$1=function(e,t){ge=t+1,ye.set(e,t),ve$1.set(t,e);},be$1="style[".concat(f,"][").concat(y$1,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g$1),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we$1(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be$1),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m$1&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m$1),o.setAttribute(y$1,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he$1(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S$1,Te={isServer:!S$1,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C$1),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S$1&&Re&&(Re=!1,_e(this)),ue$1(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve$1.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g$1);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S$1&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe$1(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C$1:e,s=r.options,i=void 0===s?C$1:s,a=r.plugins,c$1=void 0===a?_$1:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de),u.push(he);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe(l,be(u.concat(we(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he$1(15),M$1(e,t.name)},F$1).toString():"",p}var Me=new ke,ze=Fe(),$e=React__default.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze}),Le=React__default.createContext(void 0);function Ge(){return React.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue$1(this,function(){throw he$1(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re$1(i)?r.push("".concat(He(s),":"),i,";"):ce$1(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se$1(e))return [".".concat(e.styledComponentId)];if(re$1(e)){if(!re$1(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce$1(r)||null===r||console.error("".concat(B$1(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce$1(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_$1,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re$1(n)&&!se$1(n))return !1}return !0}var Ke=z$1(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M$1(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie$1(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x$1(M$1(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie$1(o,s),this.staticRulesId=s;}else {for(var a=M$1(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M$1(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M$1(a,p+l),c+=p;}}if(c){var d=x$1(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie$1(o,d);}}return o},e}(),et=React__default.createContext(void 0);var rt={},st=new Set;function it(e,r,s){var i=se$1(e),a=e,c=!L$1(e),p=r.attrs,d=void 0===p?_$1:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R$1(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($$1(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L$1(e)?"styled.".concat(e):"Styled(".concat(B$1(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R$1(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&React.useDebugValue(d);var v=I$1(r,f,c)||C$1,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re$1(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie$1(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie$1(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A$1.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&React.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie$1(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L$1(S)&&!A$1.has(S)?"class":"className"]=N,s&&(w.ref=s),React.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie$1(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le$1(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P$1(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue$1(D,function(){return ".".concat(D.styledComponentId)}),c&&oe$1(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re$1(t)||ce$1(t))return ct(Xe(at(_$1,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C$1),!o)throw he$1(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A$1.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ae(lt.apply(void 0,__spreadArray([t],n,!1))),s=$$1(r);return new We(s,r)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
5041
5055
 
5042
5056
  var _templateObject, _templateObject2, _templateObject3;
5043
5057
  var typingAnimation = mt(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n 0%, 20% { opacity: 0.2; }\n 40% { opacity: 1; }\n 60% { opacity: 0.2; }\n 100% { opacity: 0.2; }\n"])));