stack-dev 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/.idea/modules.xml +8 -0
  2. package/.idea/prettier.xml +7 -0
  3. package/.idea/stack-dev.iml +12 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/apps/cli/eslint.config.mjs +3 -0
  6. package/apps/cli/node_modules/.bin/acorn +21 -0
  7. package/apps/cli/node_modules/.bin/esbuild +21 -0
  8. package/apps/cli/node_modules/.bin/eslint +21 -0
  9. package/apps/cli/node_modules/.bin/glob +21 -0
  10. package/apps/cli/node_modules/.bin/json5 +21 -0
  11. package/apps/cli/node_modules/.bin/prettier +21 -0
  12. package/apps/cli/node_modules/.bin/stack-prettier +21 -0
  13. package/apps/cli/node_modules/.bin/tsc +21 -0
  14. package/apps/cli/node_modules/.bin/tsserver +21 -0
  15. package/apps/cli/node_modules/.bin/tsup +21 -0
  16. package/apps/cli/node_modules/.bin/tsup-node +21 -0
  17. package/apps/cli/node_modules/.bin/yaml +21 -0
  18. package/apps/cli/package.json +35 -0
  19. package/apps/cli/prettier.config.mjs +3 -0
  20. package/apps/cli/src/file-generator/file-generator-imp.ts +20 -0
  21. package/apps/cli/src/file-generator/file-generator.ts +5 -0
  22. package/apps/cli/src/file-generator/index.ts +3 -0
  23. package/apps/cli/src/file-generator/package-json-generator.ts +23 -0
  24. package/apps/cli/src/index.ts +185 -0
  25. package/apps/cli/src/link-packages.ts +65 -0
  26. package/apps/cli/src/package-json/dependency.ts +28 -0
  27. package/apps/cli/src/package-json/index.ts +3 -0
  28. package/apps/cli/src/package-json/package-json.ts +269 -0
  29. package/apps/cli/src/packages/create-config-package.ts +29 -0
  30. package/apps/cli/src/packages/index.ts +4 -0
  31. package/apps/cli/src/packages/library-package/create-library-package.ts +85 -0
  32. package/apps/cli/src/packages/library-package/files/add-file-generator.ts +8 -0
  33. package/apps/cli/src/packages/library-package/files/add-spec-file-generator.ts +17 -0
  34. package/apps/cli/src/packages/library-package/files/eslint-config-file-generator.ts +11 -0
  35. package/apps/cli/src/packages/library-package/files/index-file-generator.ts +9 -0
  36. package/apps/cli/src/packages/library-package/files/prettier-config-file-generator.ts +11 -0
  37. package/apps/cli/src/packages/library-package/files/tsconfig-file-generator.ts +15 -0
  38. package/apps/cli/src/packages/library-package/files/tsup-config-file-generator.ts +23 -0
  39. package/apps/cli/src/packages/library-package/files/vitest-config-file-generator.ts +19 -0
  40. package/apps/cli/src/packages/library-package/index.ts +1 -0
  41. package/apps/cli/src/packages/react-package/create-react-package.ts +25 -0
  42. package/apps/cli/src/packages/react-package/create-tailwind-react-package.ts +30 -0
  43. package/apps/cli/src/packages/react-package/create-unstyled-react-package.ts +3 -0
  44. package/apps/cli/src/packages/react-package/css-react-package/create-css-react-package.ts +103 -0
  45. package/apps/cli/src/packages/react-package/css-react-package/files/button-css-module-file-generator.ts +16 -0
  46. package/apps/cli/src/packages/react-package/css-react-package/files/button-file-generator.ts +14 -0
  47. package/apps/cli/src/packages/react-package/css-react-package/files/button-spec-file-generator.ts +33 -0
  48. package/apps/cli/src/packages/react-package/css-react-package/files/eslint-config-file-generator.ts +18 -0
  49. package/apps/cli/src/packages/react-package/css-react-package/files/index-file-generator.ts +9 -0
  50. package/apps/cli/src/packages/react-package/css-react-package/files/prettier-config-file-generator.ts +11 -0
  51. package/apps/cli/src/packages/react-package/css-react-package/files/tsconfig-file-generator.ts +15 -0
  52. package/apps/cli/src/packages/react-package/css-react-package/files/tsup-config-file-generator.ts +24 -0
  53. package/apps/cli/src/packages/react-package/css-react-package/files/vitest-config-file-generator.ts +23 -0
  54. package/apps/cli/src/packages/react-package/index.ts +1 -0
  55. package/apps/cli/src/packages/react-package/styled-components-react-package/create-styled-components-react-package.ts +112 -0
  56. package/apps/cli/src/packages/react-package/styled-components-react-package/files/button-file-generator.ts +30 -0
  57. package/apps/cli/src/packages/react-package/styled-components-react-package/files/button-spec-file-generator.ts +33 -0
  58. package/apps/cli/src/packages/react-package/styled-components-react-package/files/eslint-config-file-generator.ts +18 -0
  59. package/apps/cli/src/packages/react-package/styled-components-react-package/files/index-file-generator.ts +9 -0
  60. package/apps/cli/src/packages/react-package/styled-components-react-package/files/prettier-config-file-generator.ts +11 -0
  61. package/apps/cli/src/packages/react-package/styled-components-react-package/files/tsconfig-file-generator.ts +15 -0
  62. package/apps/cli/src/packages/react-package/styled-components-react-package/files/tsup-config-file-generator.ts +21 -0
  63. package/apps/cli/src/packages/react-package/styled-components-react-package/files/vitest-config-file-generator.ts +23 -0
  64. package/apps/cli/src/packages/vite-react-app/create-vite-react-app.ts +79 -0
  65. package/apps/cli/src/packages/vite-react-app/files/app-file-generator.ts +28 -0
  66. package/apps/cli/src/packages/vite-react-app/files/eslint-config-file-generator.ts +11 -0
  67. package/apps/cli/src/packages/vite-react-app/files/index-html-file-generator.ts +20 -0
  68. package/apps/cli/src/packages/vite-react-app/files/main-file-generator.ts +14 -0
  69. package/apps/cli/src/packages/vite-react-app/files/prettier-config-file-generator.ts +11 -0
  70. package/apps/cli/src/packages/vite-react-app/files/tsconfig-file-generator.ts +15 -0
  71. package/apps/cli/src/packages/vite-react-app/files/vite-config-file-generator.ts +17 -0
  72. package/apps/cli/src/packages/vite-react-app/files/vitest-config-file-generator.ts +19 -0
  73. package/apps/cli/src/tsconfig/compiler-options.ts +83 -0
  74. package/apps/cli/src/tsconfig/index.ts +4 -0
  75. package/apps/cli/src/tsconfig/reference.ts +21 -0
  76. package/apps/cli/src/tsconfig/tsconfig.ts +137 -0
  77. package/apps/cli/src/unlink-packages.ts +47 -0
  78. package/apps/cli/src/utils/package-generator.ts +41 -0
  79. package/apps/cli/src/utils/package-type.ts +44 -0
  80. package/apps/cli/src/utils/package.ts +126 -0
  81. package/apps/cli/src/utils/style-type.ts +41 -0
  82. package/apps/cli/src/utils/utils.ts +28 -0
  83. package/apps/cli/src/utils/workspace.ts +78 -0
  84. package/apps/cli/src/workspace/create-workspace.ts +39 -0
  85. package/apps/cli/src/workspace/index.ts +1 -0
  86. package/apps/cli/src/workspace/root-package.ts +195 -0
  87. package/apps/cli/src/workspace/typescript-config.ts +84 -0
  88. package/apps/cli/tsconfig.json +14 -0
  89. package/apps/cli/tsup.config.ts +16 -0
  90. package/apps/demo/eslint.config.mjs +3 -0
  91. package/apps/demo/index.html +12 -0
  92. package/apps/demo/node_modules/.bin/browserslist +21 -0
  93. package/apps/demo/node_modules/.bin/eslint +21 -0
  94. package/apps/demo/node_modules/.bin/prettier +21 -0
  95. package/apps/demo/node_modules/.bin/tsc +21 -0
  96. package/apps/demo/node_modules/.bin/tsserver +21 -0
  97. package/apps/demo/node_modules/.bin/vite +21 -0
  98. package/apps/demo/node_modules/.vite/deps/_metadata.json +52 -0
  99. package/apps/demo/node_modules/.vite/deps/chunk-IGB2AZES.js +1930 -0
  100. package/apps/demo/node_modules/.vite/deps/chunk-IGB2AZES.js.map +7 -0
  101. package/apps/demo/node_modules/.vite/deps/chunk-NEPDRNXC.js +21626 -0
  102. package/apps/demo/node_modules/.vite/deps/chunk-NEPDRNXC.js.map +7 -0
  103. package/apps/demo/node_modules/.vite/deps/package.json +3 -0
  104. package/apps/demo/node_modules/.vite/deps/react-dom.js +6 -0
  105. package/apps/demo/node_modules/.vite/deps/react-dom.js.map +7 -0
  106. package/apps/demo/node_modules/.vite/deps/react-dom_client.js +38 -0
  107. package/apps/demo/node_modules/.vite/deps/react-dom_client.js.map +7 -0
  108. package/apps/demo/node_modules/.vite/deps/react.js +5 -0
  109. package/apps/demo/node_modules/.vite/deps/react.js.map +7 -0
  110. package/apps/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js +911 -0
  111. package/apps/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
  112. package/apps/demo/node_modules/.vite/deps/react_jsx-runtime.js +923 -0
  113. package/apps/demo/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
  114. package/apps/demo/node_modules/.vite/deps/styled-components.js +1366 -0
  115. package/apps/demo/node_modules/.vite/deps/styled-components.js.map +7 -0
  116. package/apps/demo/package.json +32 -0
  117. package/apps/demo/prettier.config.mjs +3 -0
  118. package/apps/demo/src/App.tsx +50 -0
  119. package/apps/demo/src/main.tsx +9 -0
  120. package/apps/demo/tsconfig.json +17 -0
  121. package/apps/demo/vite.config.ts +9 -0
  122. package/apps/demo/vitest.config.ts +11 -0
  123. package/configs/eslint-config/base.mjs +15 -0
  124. package/configs/eslint-config/node_modules/.bin/acorn +21 -0
  125. package/configs/eslint-config/node_modules/.bin/eslint +21 -0
  126. package/configs/eslint-config/node_modules/.bin/tsc +21 -0
  127. package/configs/eslint-config/node_modules/.bin/tsserver +21 -0
  128. package/configs/eslint-config/package.json +12 -0
  129. package/configs/eslint-config/react.mjs +17 -0
  130. package/configs/prettier-config/base.mjs +11 -0
  131. package/configs/prettier-config/node_modules/.bin/prettier +21 -0
  132. package/configs/prettier-config/node_modules/.bin/tsc +21 -0
  133. package/configs/prettier-config/node_modules/.bin/tsserver +21 -0
  134. package/configs/prettier-config/package.json +9 -0
  135. package/configs/typescript-config/global.d.ts +12 -0
  136. package/configs/typescript-config/node_modules/.bin/tsc +21 -0
  137. package/configs/typescript-config/node_modules/.bin/tsserver +21 -0
  138. package/configs/typescript-config/package.json +7 -0
  139. package/configs/typescript-config/tsconfig.base.json +19 -0
  140. package/configs/typescript-config/tsconfig.node.json +6 -0
  141. package/configs/typescript-config/tsconfig.react.json +8 -0
  142. package/package.json +16 -0
  143. package/packages/core/eslint.config.mjs +3 -0
  144. package/packages/core/node_modules/.bin/eslint +21 -0
  145. package/packages/core/node_modules/.bin/prettier +21 -0
  146. package/packages/core/node_modules/.bin/tsc +21 -0
  147. package/packages/core/node_modules/.bin/tsserver +21 -0
  148. package/packages/core/node_modules/.bin/tsup +21 -0
  149. package/packages/core/node_modules/.bin/tsup-node +21 -0
  150. package/packages/core/node_modules/.bin/vite +21 -0
  151. package/packages/core/node_modules/.bin/vitest +21 -0
  152. package/packages/core/node_modules/.bin/yaml +21 -0
  153. package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
  154. package/packages/core/package.json +35 -0
  155. package/packages/core/prettier.config.mjs +3 -0
  156. package/packages/core/src/are-objects-equal.ts +26 -0
  157. package/packages/core/src/have-same-items.ts +84 -0
  158. package/packages/core/src/index.ts +6 -0
  159. package/packages/core/src/snapshot.ts +11 -0
  160. package/packages/core/src/sort-keys.ts +7 -0
  161. package/packages/core/src/spec/are-objects-equal.spec.ts +30 -0
  162. package/packages/core/src/spec/have-same-items.spec.ts +29 -0
  163. package/packages/core/src/spec/sort-keys.spec.ts +57 -0
  164. package/packages/core/tsconfig.json +7 -0
  165. package/packages/core/tsup.config.ts +15 -0
  166. package/packages/core/vitest.config.mts +11 -0
  167. package/packages/react-css/eslint.config.mjs +10 -0
  168. package/packages/react-css/node_modules/.bin/esbuild +21 -0
  169. package/packages/react-css/node_modules/.bin/eslint +21 -0
  170. package/packages/react-css/node_modules/.bin/prettier +21 -0
  171. package/packages/react-css/node_modules/.bin/tsc +21 -0
  172. package/packages/react-css/node_modules/.bin/tsserver +21 -0
  173. package/packages/react-css/node_modules/.bin/tsup +21 -0
  174. package/packages/react-css/node_modules/.bin/tsup-node +21 -0
  175. package/packages/react-css/node_modules/.bin/vitest +21 -0
  176. package/packages/react-css/node_modules/.bin/yaml +21 -0
  177. package/packages/react-css/package.json +50 -0
  178. package/packages/react-css/prettier.config.mjs +3 -0
  179. package/packages/react-css/src/button.module.css +8 -0
  180. package/packages/react-css/src/button.spec.tsx +25 -0
  181. package/packages/react-css/src/button.tsx +11 -0
  182. package/packages/react-css/src/index.ts +1 -0
  183. package/packages/react-css/tsconfig.json +7 -0
  184. package/packages/react-css/tsup.config.ts +17 -0
  185. package/packages/react-css/vitest.config.ts +15 -0
  186. package/packages/react-styled-components/eslint.config.mjs +10 -0
  187. package/packages/react-styled-components/node_modules/.bin/eslint +21 -0
  188. package/packages/react-styled-components/node_modules/.bin/prettier +21 -0
  189. package/packages/react-styled-components/node_modules/.bin/tsc +21 -0
  190. package/packages/react-styled-components/node_modules/.bin/tsserver +21 -0
  191. package/packages/react-styled-components/node_modules/.bin/tsup +21 -0
  192. package/packages/react-styled-components/node_modules/.bin/tsup-node +21 -0
  193. package/packages/react-styled-components/node_modules/.bin/vitest +21 -0
  194. package/packages/react-styled-components/node_modules/.bin/yaml +21 -0
  195. package/packages/react-styled-components/package.json +51 -0
  196. package/packages/react-styled-components/prettier.config.mjs +3 -0
  197. package/packages/react-styled-components/src/button.spec.tsx +27 -0
  198. package/packages/react-styled-components/src/button.tsx +21 -0
  199. package/packages/react-styled-components/src/index.ts +1 -0
  200. package/packages/react-styled-components/tsconfig.json +7 -0
  201. package/packages/react-styled-components/tsup.config.ts +16 -0
  202. package/packages/react-styled-components/vitest.config.ts +15 -0
  203. package/pnpm-workspace.yaml +4 -0
  204. package/turbo.json +13 -0
@@ -0,0 +1,1366 @@
1
+ import {
2
+ __commonJS,
3
+ __toESM,
4
+ require_react
5
+ } from "./chunk-IGB2AZES.js";
6
+
7
+ // ../../node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js
8
+ var require_shallowequal = __commonJS({
9
+ "../../node_modules/.pnpm/shallowequal@1.1.0/node_modules/shallowequal/index.js"(exports, module) {
10
+ module.exports = function shallowEqual(objA, objB, compare, compareContext) {
11
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
12
+ if (ret !== void 0) {
13
+ return !!ret;
14
+ }
15
+ if (objA === objB) {
16
+ return true;
17
+ }
18
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
19
+ return false;
20
+ }
21
+ var keysA = Object.keys(objA);
22
+ var keysB = Object.keys(objB);
23
+ if (keysA.length !== keysB.length) {
24
+ return false;
25
+ }
26
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
27
+ for (var idx = 0; idx < keysA.length; idx++) {
28
+ var key = keysA[idx];
29
+ if (!bHasOwnProperty(key)) {
30
+ return false;
31
+ }
32
+ var valueA = objA[key];
33
+ var valueB = objB[key];
34
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
35
+ if (ret === false || ret === void 0 && valueA !== valueB) {
36
+ return false;
37
+ }
38
+ }
39
+ return true;
40
+ };
41
+ }
42
+ });
43
+
44
+ // ../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
45
+ var __assign = function() {
46
+ __assign = Object.assign || function __assign2(t) {
47
+ for (var s2, i2 = 1, n = arguments.length; i2 < n; i2++) {
48
+ s2 = arguments[i2];
49
+ for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t[p2] = s2[p2];
50
+ }
51
+ return t;
52
+ };
53
+ return __assign.apply(this, arguments);
54
+ };
55
+ function __spreadArray(to, from2, pack) {
56
+ if (pack || arguments.length === 2) for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
57
+ if (ar || !(i2 in from2)) {
58
+ if (!ar) ar = Array.prototype.slice.call(from2, 0, i2);
59
+ ar[i2] = from2[i2];
60
+ }
61
+ }
62
+ return to.concat(ar || Array.prototype.slice.call(from2));
63
+ }
64
+
65
+ // ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
66
+ function memoize(fn) {
67
+ var cache = /* @__PURE__ */ Object.create(null);
68
+ return function(arg) {
69
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
70
+ return cache[arg];
71
+ };
72
+ }
73
+
74
+ // ../../node_modules/.pnpm/@emotion+is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
75
+ 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|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)-.*))$/;
76
+ var isPropValid = memoize(
77
+ function(prop) {
78
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
79
+ }
80
+ /* Z+1 */
81
+ );
82
+
83
+ // ../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js
84
+ var import_react = __toESM(require_react());
85
+ var import_shallowequal = __toESM(require_shallowequal());
86
+
87
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js
88
+ var MS = "-ms-";
89
+ var MOZ = "-moz-";
90
+ var WEBKIT = "-webkit-";
91
+ var COMMENT = "comm";
92
+ var RULESET = "rule";
93
+ var DECLARATION = "decl";
94
+ var IMPORT = "@import";
95
+ var KEYFRAMES = "@keyframes";
96
+ var LAYER = "@layer";
97
+
98
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js
99
+ var abs = Math.abs;
100
+ var from = String.fromCharCode;
101
+ var assign = Object.assign;
102
+ function hash(value, length2) {
103
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
104
+ }
105
+ function trim(value) {
106
+ return value.trim();
107
+ }
108
+ function match(value, pattern) {
109
+ return (value = pattern.exec(value)) ? value[0] : value;
110
+ }
111
+ function replace(value, pattern, replacement) {
112
+ return value.replace(pattern, replacement);
113
+ }
114
+ function indexof(value, search, position2) {
115
+ return value.indexOf(search, position2);
116
+ }
117
+ function charat(value, index) {
118
+ return value.charCodeAt(index) | 0;
119
+ }
120
+ function substr(value, begin, end) {
121
+ return value.slice(begin, end);
122
+ }
123
+ function strlen(value) {
124
+ return value.length;
125
+ }
126
+ function sizeof(value) {
127
+ return value.length;
128
+ }
129
+ function append(value, array) {
130
+ return array.push(value), value;
131
+ }
132
+ function combine(array, callback) {
133
+ return array.map(callback).join("");
134
+ }
135
+ function filter(array, pattern) {
136
+ return array.filter(function(value) {
137
+ return !match(value, pattern);
138
+ });
139
+ }
140
+
141
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js
142
+ var line = 1;
143
+ var column = 1;
144
+ var length = 0;
145
+ var position = 0;
146
+ var character = 0;
147
+ var characters = "";
148
+ function node(value, root, parent, type, props, children, length2, siblings) {
149
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
150
+ }
151
+ function copy(root, props) {
152
+ return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
153
+ }
154
+ function lift(root) {
155
+ while (root.root)
156
+ root = copy(root.root, { children: [root] });
157
+ append(root, root.siblings);
158
+ }
159
+ function char() {
160
+ return character;
161
+ }
162
+ function prev() {
163
+ character = position > 0 ? charat(characters, --position) : 0;
164
+ if (column--, character === 10)
165
+ column = 1, line--;
166
+ return character;
167
+ }
168
+ function next() {
169
+ character = position < length ? charat(characters, position++) : 0;
170
+ if (column++, character === 10)
171
+ column = 1, line++;
172
+ return character;
173
+ }
174
+ function peek() {
175
+ return charat(characters, position);
176
+ }
177
+ function caret() {
178
+ return position;
179
+ }
180
+ function slice(begin, end) {
181
+ return substr(characters, begin, end);
182
+ }
183
+ function token(type) {
184
+ switch (type) {
185
+ case 0:
186
+ case 9:
187
+ case 10:
188
+ case 13:
189
+ case 32:
190
+ return 5;
191
+ case 33:
192
+ case 43:
193
+ case 44:
194
+ case 47:
195
+ case 62:
196
+ case 64:
197
+ case 126:
198
+ case 59:
199
+ case 123:
200
+ case 125:
201
+ return 4;
202
+ case 58:
203
+ return 3;
204
+ case 34:
205
+ case 39:
206
+ case 40:
207
+ case 91:
208
+ return 2;
209
+ case 41:
210
+ case 93:
211
+ return 1;
212
+ }
213
+ return 0;
214
+ }
215
+ function alloc(value) {
216
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
217
+ }
218
+ function dealloc(value) {
219
+ return characters = "", value;
220
+ }
221
+ function delimit(type) {
222
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
223
+ }
224
+ function whitespace(type) {
225
+ while (character = peek())
226
+ if (character < 33)
227
+ next();
228
+ else
229
+ break;
230
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
231
+ }
232
+ function escaping(index, count) {
233
+ while (--count && next())
234
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
235
+ break;
236
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
237
+ }
238
+ function delimiter(type) {
239
+ while (next())
240
+ switch (character) {
241
+ case type:
242
+ return position;
243
+ case 34:
244
+ case 39:
245
+ if (type !== 34 && type !== 39)
246
+ delimiter(character);
247
+ break;
248
+ case 40:
249
+ if (type === 41)
250
+ delimiter(type);
251
+ break;
252
+ case 92:
253
+ next();
254
+ break;
255
+ }
256
+ return position;
257
+ }
258
+ function commenter(type, index) {
259
+ while (next())
260
+ if (type + character === 47 + 10)
261
+ break;
262
+ else if (type + character === 42 + 42 && peek() === 47)
263
+ break;
264
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
265
+ }
266
+ function identifier(index) {
267
+ while (!token(peek()))
268
+ next();
269
+ return slice(index, position);
270
+ }
271
+
272
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js
273
+ function compile(value) {
274
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
275
+ }
276
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
277
+ var index = 0;
278
+ var offset = 0;
279
+ var length2 = pseudo;
280
+ var atrule = 0;
281
+ var property = 0;
282
+ var previous = 0;
283
+ var variable = 1;
284
+ var scanning = 1;
285
+ var ampersand = 1;
286
+ var character2 = 0;
287
+ var type = "";
288
+ var props = rules;
289
+ var children = rulesets;
290
+ var reference = rule;
291
+ var characters2 = type;
292
+ while (scanning)
293
+ switch (previous = character2, character2 = next()) {
294
+ case 40:
295
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
296
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
297
+ ampersand = -1;
298
+ break;
299
+ }
300
+ case 34:
301
+ case 39:
302
+ case 91:
303
+ characters2 += delimit(character2);
304
+ break;
305
+ case 9:
306
+ case 10:
307
+ case 13:
308
+ case 32:
309
+ characters2 += whitespace(previous);
310
+ break;
311
+ case 92:
312
+ characters2 += escaping(caret() - 1, 7);
313
+ continue;
314
+ case 47:
315
+ switch (peek()) {
316
+ case 42:
317
+ case 47:
318
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
319
+ break;
320
+ default:
321
+ characters2 += "/";
322
+ }
323
+ break;
324
+ case 123 * variable:
325
+ points[index++] = strlen(characters2) * ampersand;
326
+ case 125 * variable:
327
+ case 59:
328
+ case 0:
329
+ switch (character2) {
330
+ case 0:
331
+ case 125:
332
+ scanning = 0;
333
+ case 59 + offset:
334
+ if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
335
+ if (property > 0 && strlen(characters2) - length2)
336
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
337
+ break;
338
+ case 59:
339
+ characters2 += ";";
340
+ default:
341
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
342
+ if (character2 === 123)
343
+ if (offset === 0)
344
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
345
+ else
346
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
347
+ case 100:
348
+ case 108:
349
+ case 109:
350
+ case 115:
351
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
352
+ break;
353
+ default:
354
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
355
+ }
356
+ }
357
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
358
+ break;
359
+ case 58:
360
+ length2 = 1 + strlen(characters2), property = previous;
361
+ default:
362
+ if (variable < 1) {
363
+ if (character2 == 123)
364
+ --variable;
365
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
366
+ continue;
367
+ }
368
+ switch (characters2 += from(character2), character2 * variable) {
369
+ case 38:
370
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
371
+ break;
372
+ case 44:
373
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
374
+ break;
375
+ case 64:
376
+ if (peek() === 45)
377
+ characters2 += delimit(next());
378
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
379
+ break;
380
+ case 45:
381
+ if (previous === 45 && strlen(characters2) == 2)
382
+ variable = 0;
383
+ }
384
+ }
385
+ return rulesets;
386
+ }
387
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
388
+ var post = offset - 1;
389
+ var rule = offset === 0 ? rules : [""];
390
+ var size = sizeof(rule);
391
+ for (var i2 = 0, j2 = 0, k2 = 0; i2 < index; ++i2)
392
+ for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i2])), z2 = value; x2 < size; ++x2)
393
+ if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
394
+ props[k2++] = z2;
395
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
396
+ }
397
+ function comment(value, root, parent, siblings) {
398
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
399
+ }
400
+ function declaration(value, root, parent, length2, siblings) {
401
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
402
+ }
403
+
404
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js
405
+ function prefix(value, length2, children) {
406
+ switch (hash(value, length2)) {
407
+ case 5103:
408
+ return WEBKIT + "print-" + value + value;
409
+ case 5737:
410
+ case 4201:
411
+ case 3177:
412
+ case 3433:
413
+ case 1641:
414
+ case 4457:
415
+ case 2921:
416
+ case 5572:
417
+ case 6356:
418
+ case 5844:
419
+ case 3191:
420
+ case 6645:
421
+ case 3005:
422
+ case 6391:
423
+ case 5879:
424
+ case 5623:
425
+ case 6135:
426
+ case 4599:
427
+ case 4855:
428
+ case 4215:
429
+ case 6389:
430
+ case 5109:
431
+ case 5365:
432
+ case 5621:
433
+ case 3829:
434
+ return WEBKIT + value + value;
435
+ case 4789:
436
+ return MOZ + value + value;
437
+ case 5349:
438
+ case 4246:
439
+ case 4810:
440
+ case 6968:
441
+ case 2756:
442
+ return WEBKIT + value + MOZ + value + MS + value + value;
443
+ case 5936:
444
+ switch (charat(value, length2 + 11)) {
445
+ case 114:
446
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
447
+ case 108:
448
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
449
+ case 45:
450
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
451
+ }
452
+ case 6828:
453
+ case 4268:
454
+ case 2903:
455
+ return WEBKIT + value + MS + value + value;
456
+ case 6165:
457
+ return WEBKIT + value + MS + "flex-" + value + value;
458
+ case 5187:
459
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
460
+ case 5443:
461
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
462
+ case 4675:
463
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
464
+ case 5548:
465
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
466
+ case 5292:
467
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
468
+ case 6060:
469
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
470
+ case 4554:
471
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
472
+ case 6187:
473
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
474
+ case 5495:
475
+ case 3959:
476
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
477
+ case 4968:
478
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
479
+ case 4200:
480
+ if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
481
+ break;
482
+ case 2592:
483
+ case 3360:
484
+ return MS + replace(value, "template-", "") + value;
485
+ case 4384:
486
+ case 3616:
487
+ if (children && children.some(function(element, index) {
488
+ return length2 = index, match(element.props, /grid-\w+-end/);
489
+ })) {
490
+ return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
491
+ }
492
+ return MS + replace(value, "-start", "") + value;
493
+ case 4896:
494
+ case 4128:
495
+ return children && children.some(function(element) {
496
+ return match(element.props, /grid-\w+-start/);
497
+ }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
498
+ case 4095:
499
+ case 3583:
500
+ case 4068:
501
+ case 2532:
502
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
503
+ case 8116:
504
+ case 7059:
505
+ case 5753:
506
+ case 5535:
507
+ case 5445:
508
+ case 5701:
509
+ case 4933:
510
+ case 4677:
511
+ case 5533:
512
+ case 5789:
513
+ case 5021:
514
+ case 4765:
515
+ if (strlen(value) - 1 - length2 > 6)
516
+ switch (charat(value, length2 + 1)) {
517
+ case 109:
518
+ if (charat(value, length2 + 4) !== 45)
519
+ break;
520
+ case 102:
521
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
522
+ case 115:
523
+ return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
524
+ }
525
+ break;
526
+ case 5152:
527
+ case 5920:
528
+ return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d, e, f2) {
529
+ return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
530
+ });
531
+ case 4949:
532
+ if (charat(value, length2 + 6) === 121)
533
+ return replace(value, ":", ":" + WEBKIT) + value;
534
+ break;
535
+ case 6444:
536
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
537
+ case 120:
538
+ return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
539
+ case 100:
540
+ return replace(value, ":", ":" + MS) + value;
541
+ }
542
+ break;
543
+ case 5719:
544
+ case 2647:
545
+ case 2135:
546
+ case 3927:
547
+ case 2391:
548
+ return replace(value, "scroll-", "scroll-snap-") + value;
549
+ }
550
+ return value;
551
+ }
552
+
553
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js
554
+ function serialize(children, callback) {
555
+ var output = "";
556
+ for (var i2 = 0; i2 < children.length; i2++)
557
+ output += callback(children[i2], i2, children, callback) || "";
558
+ return output;
559
+ }
560
+ function stringify(element, index, children, callback) {
561
+ switch (element.type) {
562
+ case LAYER:
563
+ if (element.children.length) break;
564
+ case IMPORT:
565
+ case DECLARATION:
566
+ return element.return = element.return || element.value;
567
+ case COMMENT:
568
+ return "";
569
+ case KEYFRAMES:
570
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
571
+ case RULESET:
572
+ if (!strlen(element.value = element.props.join(","))) return "";
573
+ }
574
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
575
+ }
576
+
577
+ // ../../node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js
578
+ function middleware(collection) {
579
+ var length2 = sizeof(collection);
580
+ return function(element, index, children, callback) {
581
+ var output = "";
582
+ for (var i2 = 0; i2 < length2; i2++)
583
+ output += collection[i2](element, index, children, callback) || "";
584
+ return output;
585
+ };
586
+ }
587
+ function rulesheet(callback) {
588
+ return function(element) {
589
+ if (!element.root) {
590
+ if (element = element.return)
591
+ callback(element);
592
+ }
593
+ };
594
+ }
595
+ function prefixer(element, index, children, callback) {
596
+ if (element.length > -1) {
597
+ if (!element.return)
598
+ switch (element.type) {
599
+ case DECLARATION:
600
+ element.return = prefix(element.value, element.length, children);
601
+ return;
602
+ case KEYFRAMES:
603
+ return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
604
+ case RULESET:
605
+ if (element.length)
606
+ return combine(children = element.props, function(value) {
607
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
608
+ case ":read-only":
609
+ case ":read-write":
610
+ lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
611
+ lift(copy(element, { props: [value] }));
612
+ assign(element, { props: filter(children, callback) });
613
+ break;
614
+ case "::placeholder":
615
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
616
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
617
+ lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
618
+ lift(copy(element, { props: [value] }));
619
+ assign(element, { props: filter(children, callback) });
620
+ break;
621
+ }
622
+ return "";
623
+ });
624
+ }
625
+ }
626
+ }
627
+
628
+ // ../../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
629
+ var unitlessKeys = {
630
+ animationIterationCount: 1,
631
+ aspectRatio: 1,
632
+ borderImageOutset: 1,
633
+ borderImageSlice: 1,
634
+ borderImageWidth: 1,
635
+ boxFlex: 1,
636
+ boxFlexGroup: 1,
637
+ boxOrdinalGroup: 1,
638
+ columnCount: 1,
639
+ columns: 1,
640
+ flex: 1,
641
+ flexGrow: 1,
642
+ flexPositive: 1,
643
+ flexShrink: 1,
644
+ flexNegative: 1,
645
+ flexOrder: 1,
646
+ gridRow: 1,
647
+ gridRowEnd: 1,
648
+ gridRowSpan: 1,
649
+ gridRowStart: 1,
650
+ gridColumn: 1,
651
+ gridColumnEnd: 1,
652
+ gridColumnSpan: 1,
653
+ gridColumnStart: 1,
654
+ msGridRow: 1,
655
+ msGridRowSpan: 1,
656
+ msGridColumn: 1,
657
+ msGridColumnSpan: 1,
658
+ fontWeight: 1,
659
+ lineHeight: 1,
660
+ opacity: 1,
661
+ order: 1,
662
+ orphans: 1,
663
+ tabSize: 1,
664
+ widows: 1,
665
+ zIndex: 1,
666
+ zoom: 1,
667
+ WebkitLineClamp: 1,
668
+ // SVG-related properties
669
+ fillOpacity: 1,
670
+ floodOpacity: 1,
671
+ stopOpacity: 1,
672
+ strokeDasharray: 1,
673
+ strokeDashoffset: 1,
674
+ strokeMiterlimit: 1,
675
+ strokeOpacity: 1,
676
+ strokeWidth: 1
677
+ };
678
+
679
+ // ../../node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js
680
+ var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
681
+ var m = "active";
682
+ var y = "data-styled-version";
683
+ var v = "6.1.19";
684
+ var g = "/*!sc*/\n";
685
+ var S = "undefined" != typeof window && "undefined" != typeof document;
686
+ var 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 : true);
687
+ var b = {};
688
+ var E = /invalid hook call/i;
689
+ var N = /* @__PURE__ */ new Set();
690
+ var P = function(t, n) {
691
+ if (true) {
692
+ var o2 = n ? ' with the id of "'.concat(n, '"') : "", s2 = "The component ".concat(t).concat(o2, " 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", i2 = console.error;
693
+ try {
694
+ var a2 = true;
695
+ console.error = function(t2) {
696
+ for (var n2 = [], o3 = 1; o3 < arguments.length; o3++) n2[o3 - 1] = arguments[o3];
697
+ E.test(t2) ? (a2 = false, N.delete(s2)) : i2.apply(void 0, __spreadArray([t2], n2, false));
698
+ }, (0, import_react.useRef)(), a2 && !N.has(s2) && (console.warn(s2), N.add(s2));
699
+ } catch (e) {
700
+ E.test(e.message) && N.delete(s2);
701
+ } finally {
702
+ console.error = i2;
703
+ }
704
+ }
705
+ };
706
+ var _ = Object.freeze([]);
707
+ var C = Object.freeze({});
708
+ function I(e, t, n) {
709
+ return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
710
+ }
711
+ var A = /* @__PURE__ */ 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"]);
712
+ var O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
713
+ var D = /(^-|-$)/g;
714
+ function R(e) {
715
+ return e.replace(O, "-").replace(D, "");
716
+ }
717
+ var T = /(a)(d)/gi;
718
+ var k = 52;
719
+ var j = function(e) {
720
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
721
+ };
722
+ function x(e) {
723
+ var t, n = "";
724
+ for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
725
+ return (j(t % k) + n).replace(T, "$1-$2");
726
+ }
727
+ var V;
728
+ var F = 5381;
729
+ var M = function(e, t) {
730
+ for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
731
+ return e;
732
+ };
733
+ var z = function(e) {
734
+ return M(F, e);
735
+ };
736
+ function $(e) {
737
+ return x(z(e) >>> 0);
738
+ }
739
+ function B(e) {
740
+ return "string" == typeof e && e || e.displayName || e.name || "Component";
741
+ }
742
+ function L(e) {
743
+ return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase();
744
+ }
745
+ var G = "function" == typeof Symbol && Symbol.for;
746
+ var Y = G ? Symbol.for("react.memo") : 60115;
747
+ var W = G ? Symbol.for("react.forward_ref") : 60112;
748
+ var q = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
749
+ var H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
750
+ var U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
751
+ var J = ((V = {})[W] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
752
+ function X(e) {
753
+ return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
754
+ var t;
755
+ }
756
+ var Z = Object.defineProperty;
757
+ var K = Object.getOwnPropertyNames;
758
+ var Q = Object.getOwnPropertySymbols;
759
+ var ee = Object.getOwnPropertyDescriptor;
760
+ var te = Object.getPrototypeOf;
761
+ var ne = Object.prototype;
762
+ function oe(e, t, n) {
763
+ if ("string" != typeof t) {
764
+ if (ne) {
765
+ var o2 = te(t);
766
+ o2 && o2 !== ne && oe(e, o2, n);
767
+ }
768
+ var r2 = K(t);
769
+ Q && (r2 = r2.concat(Q(t)));
770
+ for (var s2 = X(e), i2 = X(t), a2 = 0; a2 < r2.length; ++a2) {
771
+ var c2 = r2[a2];
772
+ if (!(c2 in H || n && n[c2] || i2 && c2 in i2 || s2 && c2 in s2)) {
773
+ var l2 = ee(t, c2);
774
+ try {
775
+ Z(e, c2, l2);
776
+ } catch (e2) {
777
+ }
778
+ }
779
+ }
780
+ }
781
+ return e;
782
+ }
783
+ function re(e) {
784
+ return "function" == typeof e;
785
+ }
786
+ function se(e) {
787
+ return "object" == typeof e && "styledComponentId" in e;
788
+ }
789
+ function ie(e, t) {
790
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
791
+ }
792
+ function ae(e, t) {
793
+ if (0 === e.length) return "";
794
+ for (var n = e[0], o2 = 1; o2 < e.length; o2++) n += t ? t + e[o2] : e[o2];
795
+ return n;
796
+ }
797
+ function ce(e) {
798
+ return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
799
+ }
800
+ function le(e, t, n) {
801
+ if (void 0 === n && (n = false), !n && !ce(e) && !Array.isArray(e)) return t;
802
+ if (Array.isArray(t)) for (var o2 = 0; o2 < t.length; o2++) e[o2] = le(e[o2], t[o2]);
803
+ else if (ce(t)) for (var o2 in t) e[o2] = le(e[o2], t[o2]);
804
+ return e;
805
+ }
806
+ function ue(e, t) {
807
+ Object.defineProperty(e, "toString", { value: t });
808
+ }
809
+ var pe = true ? { 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>`" } : {};
810
+ function de() {
811
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
812
+ for (var n = e[0], o2 = [], r2 = 1, s2 = e.length; r2 < s2; r2 += 1) o2.push(e[r2]);
813
+ return o2.forEach(function(e2) {
814
+ n = n.replace(/%[a-z]/, e2);
815
+ }), n;
816
+ }
817
+ function he(t) {
818
+ for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
819
+ return false ? 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.apply(void 0, __spreadArray([pe[t]], n, false)).trim());
820
+ }
821
+ var fe = function() {
822
+ function e(e2) {
823
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2;
824
+ }
825
+ return e.prototype.indexOfGroup = function(e2) {
826
+ for (var t = 0, n = 0; n < e2; n++) t += this.groupSizes[n];
827
+ return t;
828
+ }, e.prototype.insertRules = function(e2, t) {
829
+ if (e2 >= this.groupSizes.length) {
830
+ for (var n = this.groupSizes, o2 = n.length, r2 = o2; e2 >= r2; ) if ((r2 <<= 1) < 0) throw he(16, "".concat(e2));
831
+ this.groupSizes = new Uint32Array(r2), this.groupSizes.set(n), this.length = r2;
832
+ for (var s2 = o2; s2 < r2; s2++) this.groupSizes[s2] = 0;
833
+ }
834
+ for (var i2 = this.indexOfGroup(e2 + 1), a2 = (s2 = 0, t.length); s2 < a2; s2++) this.tag.insertRule(i2, t[s2]) && (this.groupSizes[e2]++, i2++);
835
+ }, e.prototype.clearGroup = function(e2) {
836
+ if (e2 < this.length) {
837
+ var t = this.groupSizes[e2], n = this.indexOfGroup(e2), o2 = n + t;
838
+ this.groupSizes[e2] = 0;
839
+ for (var r2 = n; r2 < o2; r2++) this.tag.deleteRule(n);
840
+ }
841
+ }, e.prototype.getGroup = function(e2) {
842
+ var t = "";
843
+ if (e2 >= this.length || 0 === this.groupSizes[e2]) return t;
844
+ for (var n = this.groupSizes[e2], o2 = this.indexOfGroup(e2), r2 = o2 + n, s2 = o2; s2 < r2; s2++) t += "".concat(this.tag.getRule(s2)).concat(g);
845
+ return t;
846
+ }, e;
847
+ }();
848
+ var me = 1 << 30;
849
+ var ye = /* @__PURE__ */ new Map();
850
+ var ve = /* @__PURE__ */ new Map();
851
+ var ge = 1;
852
+ var Se = function(e) {
853
+ if (ye.has(e)) return ye.get(e);
854
+ for (; ve.has(ge); ) ge++;
855
+ var t = ge++;
856
+ if ((0 | t) < 0 || t > me) throw he(16, "".concat(t));
857
+ return ye.set(e, t), ve.set(t, e), t;
858
+ };
859
+ var we = function(e, t) {
860
+ ge = t + 1, ye.set(e, t), ve.set(t, e);
861
+ };
862
+ var be = "style[".concat(f, "][").concat(y, '="').concat(v, '"]');
863
+ var Ee = new RegExp("^".concat(f, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
864
+ var Ne = function(e, t, n) {
865
+ for (var o2, r2 = n.split(","), s2 = 0, i2 = r2.length; s2 < i2; s2++) (o2 = r2[s2]) && e.registerName(t, o2);
866
+ };
867
+ var Pe = function(e, t) {
868
+ for (var n, o2 = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r2 = [], s2 = 0, i2 = o2.length; s2 < i2; s2++) {
869
+ var a2 = o2[s2].trim();
870
+ if (a2) {
871
+ var c2 = a2.match(Ee);
872
+ if (c2) {
873
+ var l2 = 0 | parseInt(c2[1], 10), u2 = c2[2];
874
+ 0 !== l2 && (we(u2, l2), Ne(e, u2, c2[3]), e.getTag().insertRules(l2, r2)), r2.length = 0;
875
+ } else r2.push(a2);
876
+ }
877
+ }
878
+ };
879
+ var _e = function(e) {
880
+ for (var t = document.querySelectorAll(be), n = 0, o2 = t.length; n < o2; n++) {
881
+ var r2 = t[n];
882
+ r2 && r2.getAttribute(f) !== m && (Pe(e, r2), r2.parentNode && r2.parentNode.removeChild(r2));
883
+ }
884
+ };
885
+ function Ce() {
886
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
887
+ }
888
+ var Ie = function(e) {
889
+ var t = document.head, n = e || t, o2 = document.createElement("style"), r2 = function(e2) {
890
+ var t2 = Array.from(e2.querySelectorAll("style[".concat(f, "]")));
891
+ return t2[t2.length - 1];
892
+ }(n), s2 = void 0 !== r2 ? r2.nextSibling : null;
893
+ o2.setAttribute(f, m), o2.setAttribute(y, v);
894
+ var i2 = Ce();
895
+ return i2 && o2.setAttribute("nonce", i2), n.insertBefore(o2, s2), o2;
896
+ };
897
+ var Ae = function() {
898
+ function e(e2) {
899
+ this.element = Ie(e2), this.element.appendChild(document.createTextNode("")), this.sheet = function(e3) {
900
+ if (e3.sheet) return e3.sheet;
901
+ for (var t = document.styleSheets, n = 0, o2 = t.length; n < o2; n++) {
902
+ var r2 = t[n];
903
+ if (r2.ownerNode === e3) return r2;
904
+ }
905
+ throw he(17);
906
+ }(this.element), this.length = 0;
907
+ }
908
+ return e.prototype.insertRule = function(e2, t) {
909
+ try {
910
+ return this.sheet.insertRule(t, e2), this.length++, true;
911
+ } catch (e3) {
912
+ return false;
913
+ }
914
+ }, e.prototype.deleteRule = function(e2) {
915
+ this.sheet.deleteRule(e2), this.length--;
916
+ }, e.prototype.getRule = function(e2) {
917
+ var t = this.sheet.cssRules[e2];
918
+ return t && t.cssText ? t.cssText : "";
919
+ }, e;
920
+ }();
921
+ var Oe = function() {
922
+ function e(e2) {
923
+ this.element = Ie(e2), this.nodes = this.element.childNodes, this.length = 0;
924
+ }
925
+ return e.prototype.insertRule = function(e2, t) {
926
+ if (e2 <= this.length && e2 >= 0) {
927
+ var n = document.createTextNode(t);
928
+ return this.element.insertBefore(n, this.nodes[e2] || null), this.length++, true;
929
+ }
930
+ return false;
931
+ }, e.prototype.deleteRule = function(e2) {
932
+ this.element.removeChild(this.nodes[e2]), this.length--;
933
+ }, e.prototype.getRule = function(e2) {
934
+ return e2 < this.length ? this.nodes[e2].textContent : "";
935
+ }, e;
936
+ }();
937
+ var De = function() {
938
+ function e(e2) {
939
+ this.rules = [], this.length = 0;
940
+ }
941
+ return e.prototype.insertRule = function(e2, t) {
942
+ return e2 <= this.length && (this.rules.splice(e2, 0, t), this.length++, true);
943
+ }, e.prototype.deleteRule = function(e2) {
944
+ this.rules.splice(e2, 1), this.length--;
945
+ }, e.prototype.getRule = function(e2) {
946
+ return e2 < this.length ? this.rules[e2] : "";
947
+ }, e;
948
+ }();
949
+ var Re = S;
950
+ var Te = { isServer: !S, useCSSOMInjection: !w };
951
+ var ke = function() {
952
+ function e(e2, n, o2) {
953
+ void 0 === e2 && (e2 = C), void 0 === n && (n = {});
954
+ var r2 = this;
955
+ this.options = __assign(__assign({}, Te), e2), this.gs = n, this.names = new Map(o2), this.server = !!e2.isServer, !this.server && S && Re && (Re = false, _e(this)), ue(this, function() {
956
+ return function(e3) {
957
+ for (var t = e3.getTag(), n2 = t.length, o3 = "", r3 = function(n3) {
958
+ var r4 = function(e4) {
959
+ return ve.get(e4);
960
+ }(n3);
961
+ if (void 0 === r4) return "continue";
962
+ var s3 = e3.names.get(r4), i2 = t.getGroup(n3);
963
+ if (void 0 === s3 || !s3.size || 0 === i2.length) return "continue";
964
+ var a2 = "".concat(f, ".g").concat(n3, '[id="').concat(r4, '"]'), c2 = "";
965
+ void 0 !== s3 && s3.forEach(function(e4) {
966
+ e4.length > 0 && (c2 += "".concat(e4, ","));
967
+ }), o3 += "".concat(i2).concat(a2, '{content:"').concat(c2, '"}').concat(g);
968
+ }, s2 = 0; s2 < n2; s2++) r3(s2);
969
+ return o3;
970
+ }(r2);
971
+ });
972
+ }
973
+ return e.registerId = function(e2) {
974
+ return Se(e2);
975
+ }, e.prototype.rehydrate = function() {
976
+ !this.server && S && _e(this);
977
+ }, e.prototype.reconstructWithOptions = function(n, o2) {
978
+ return void 0 === o2 && (o2 = true), new e(__assign(__assign({}, this.options), n), this.gs, o2 && this.names || void 0);
979
+ }, e.prototype.allocateGSInstance = function(e2) {
980
+ return this.gs[e2] = (this.gs[e2] || 0) + 1;
981
+ }, e.prototype.getTag = function() {
982
+ return this.tag || (this.tag = (e2 = function(e3) {
983
+ var t = e3.useCSSOMInjection, n = e3.target;
984
+ return e3.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
985
+ }(this.options), new fe(e2)));
986
+ var e2;
987
+ }, e.prototype.hasNameForId = function(e2, t) {
988
+ return this.names.has(e2) && this.names.get(e2).has(t);
989
+ }, e.prototype.registerName = function(e2, t) {
990
+ if (Se(e2), this.names.has(e2)) this.names.get(e2).add(t);
991
+ else {
992
+ var n = /* @__PURE__ */ new Set();
993
+ n.add(t), this.names.set(e2, n);
994
+ }
995
+ }, e.prototype.insertRules = function(e2, t, n) {
996
+ this.registerName(e2, t), this.getTag().insertRules(Se(e2), n);
997
+ }, e.prototype.clearNames = function(e2) {
998
+ this.names.has(e2) && this.names.get(e2).clear();
999
+ }, e.prototype.clearRules = function(e2) {
1000
+ this.getTag().clearGroup(Se(e2)), this.clearNames(e2);
1001
+ }, e.prototype.clearTag = function() {
1002
+ this.tag = void 0;
1003
+ }, e;
1004
+ }();
1005
+ var je = /&/g;
1006
+ var xe = /^\s*\/\/.*$/gm;
1007
+ function Ve(e, t) {
1008
+ return e.map(function(e2) {
1009
+ return "rule" === e2.type && (e2.value = "".concat(t, " ").concat(e2.value), e2.value = e2.value.replaceAll(",", ",".concat(t, " ")), e2.props = e2.props.map(function(e3) {
1010
+ return "".concat(t, " ").concat(e3);
1011
+ })), Array.isArray(e2.children) && "@keyframes" !== e2.type && (e2.children = Ve(e2.children, t)), e2;
1012
+ });
1013
+ }
1014
+ function Fe(e) {
1015
+ var t, n, o2, r2 = void 0 === e ? C : e, s2 = r2.options, i2 = void 0 === s2 ? C : s2, a2 = r2.plugins, c2 = void 0 === a2 ? _ : a2, l2 = function(e2, o3, r3) {
1016
+ return r3.startsWith(n) && r3.endsWith(n) && r3.replaceAll(n, "").length > 0 ? ".".concat(t) : e2;
1017
+ }, u2 = c2.slice();
1018
+ u2.push(function(e2) {
1019
+ e2.type === RULESET && e2.value.includes("&") && (e2.props[0] = e2.props[0].replace(je, n).replace(o2, l2));
1020
+ }), i2.prefix && u2.push(prefixer), u2.push(stringify);
1021
+ var p2 = function(e2, r3, s3, a3) {
1022
+ void 0 === r3 && (r3 = ""), void 0 === s3 && (s3 = ""), void 0 === a3 && (a3 = "&"), t = a3, n = r3, o2 = new RegExp("\\".concat(n, "\\b"), "g");
1023
+ var c3 = e2.replace(xe, ""), l3 = compile(s3 || r3 ? "".concat(s3, " ").concat(r3, " { ").concat(c3, " }") : c3);
1024
+ i2.namespace && (l3 = Ve(l3, i2.namespace));
1025
+ var p3 = [];
1026
+ return serialize(l3, middleware(u2.concat(rulesheet(function(e3) {
1027
+ return p3.push(e3);
1028
+ })))), p3;
1029
+ };
1030
+ return p2.hash = c2.length ? c2.reduce(function(e2, t2) {
1031
+ return t2.name || he(15), M(e2, t2.name);
1032
+ }, F).toString() : "", p2;
1033
+ }
1034
+ var Me = new ke();
1035
+ var ze = Fe();
1036
+ var $e = import_react.default.createContext({ shouldForwardProp: void 0, styleSheet: Me, stylis: ze });
1037
+ var Be = $e.Consumer;
1038
+ var Le = import_react.default.createContext(void 0);
1039
+ function Ge() {
1040
+ return (0, import_react.useContext)($e);
1041
+ }
1042
+ function Ye(e) {
1043
+ var t = (0, import_react.useState)(e.stylisPlugins), n = t[0], r2 = t[1], c2 = Ge().styleSheet, l2 = (0, import_react.useMemo)(function() {
1044
+ var t2 = c2;
1045
+ return e.sheet ? t2 = e.sheet : e.target && (t2 = t2.reconstructWithOptions({ target: e.target }, false)), e.disableCSSOMInjection && (t2 = t2.reconstructWithOptions({ useCSSOMInjection: false })), t2;
1046
+ }, [e.disableCSSOMInjection, e.sheet, e.target, c2]), u2 = (0, import_react.useMemo)(function() {
1047
+ return Fe({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1048
+ }, [e.enableVendorPrefixes, e.namespace, n]);
1049
+ (0, import_react.useEffect)(function() {
1050
+ (0, import_shallowequal.default)(n, e.stylisPlugins) || r2(e.stylisPlugins);
1051
+ }, [e.stylisPlugins]);
1052
+ var d = (0, import_react.useMemo)(function() {
1053
+ return { shouldForwardProp: e.shouldForwardProp, styleSheet: l2, stylis: u2 };
1054
+ }, [e.shouldForwardProp, l2, u2]);
1055
+ return import_react.default.createElement($e.Provider, { value: d }, import_react.default.createElement(Le.Provider, { value: u2 }, e.children));
1056
+ }
1057
+ var We = function() {
1058
+ function e(e2, t) {
1059
+ var n = this;
1060
+ this.inject = function(e3, t2) {
1061
+ void 0 === t2 && (t2 = ze);
1062
+ var o2 = n.name + t2.hash;
1063
+ e3.hasNameForId(n.id, o2) || e3.insertRules(n.id, o2, t2(n.rules, o2, "@keyframes"));
1064
+ }, this.name = e2, this.id = "sc-keyframes-".concat(e2), this.rules = t, ue(this, function() {
1065
+ throw he(12, String(n.name));
1066
+ });
1067
+ }
1068
+ return e.prototype.getName = function(e2) {
1069
+ return void 0 === e2 && (e2 = ze), this.name + e2.hash;
1070
+ }, e;
1071
+ }();
1072
+ var qe = function(e) {
1073
+ return e >= "A" && e <= "Z";
1074
+ };
1075
+ function He(e) {
1076
+ for (var t = "", n = 0; n < e.length; n++) {
1077
+ var o2 = e[n];
1078
+ if (1 === n && "-" === o2 && "-" === e[0]) return e;
1079
+ qe(o2) ? t += "-" + o2.toLowerCase() : t += o2;
1080
+ }
1081
+ return t.startsWith("ms-") ? "-" + t : t;
1082
+ }
1083
+ var Ue = function(e) {
1084
+ return null == e || false === e || "" === e;
1085
+ };
1086
+ var Je = function(t) {
1087
+ var n, o2, r2 = [];
1088
+ for (var s2 in t) {
1089
+ var i2 = t[s2];
1090
+ t.hasOwnProperty(s2) && !Ue(i2) && (Array.isArray(i2) && i2.isCss || re(i2) ? r2.push("".concat(He(s2), ":"), i2, ";") : ce(i2) ? r2.push.apply(r2, __spreadArray(__spreadArray(["".concat(s2, " {")], Je(i2), false), ["}"], false)) : r2.push("".concat(He(s2), ": ").concat((n = s2, null == (o2 = i2) || "boolean" == typeof o2 || "" === o2 ? "" : "number" != typeof o2 || 0 === o2 || n in unitlessKeys || n.startsWith("--") ? String(o2).trim() : "".concat(o2, "px")), ";")));
1091
+ }
1092
+ return r2;
1093
+ };
1094
+ function Xe(e, t, n, o2) {
1095
+ if (Ue(e)) return [];
1096
+ if (se(e)) return [".".concat(e.styledComponentId)];
1097
+ if (re(e)) {
1098
+ if (!re(s2 = e) || s2.prototype && s2.prototype.isReactComponent || !t) return [e];
1099
+ var r2 = e(t);
1100
+ return "object" != typeof r2 || Array.isArray(r2) || r2 instanceof We || ce(r2) || null === r2 || console.error("".concat(B(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(r2, t, n, o2);
1101
+ }
1102
+ var s2;
1103
+ return e instanceof We ? n ? (e.inject(n, o2), [e.getName(o2)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e2) {
1104
+ return Xe(e2, t, n, o2);
1105
+ })) : [e.toString()];
1106
+ }
1107
+ function Ze(e) {
1108
+ for (var t = 0; t < e.length; t += 1) {
1109
+ var n = e[t];
1110
+ if (re(n) && !se(n)) return false;
1111
+ }
1112
+ return true;
1113
+ }
1114
+ var Ke = z(v);
1115
+ var Qe = function() {
1116
+ function e(e2, t, n) {
1117
+ this.rules = e2, this.staticRulesId = "", this.isStatic = false, this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
1118
+ }
1119
+ return e.prototype.generateAndInjectStyles = function(e2, t, n) {
1120
+ var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t, n) : "";
1121
+ if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o2 = ie(o2, this.staticRulesId);
1122
+ else {
1123
+ var r2 = ae(Xe(this.rules, e2, t, n)), s2 = x(M(this.baseHash, r2) >>> 0);
1124
+ if (!t.hasNameForId(this.componentId, s2)) {
1125
+ var i2 = n(r2, ".".concat(s2), void 0, this.componentId);
1126
+ t.insertRules(this.componentId, s2, i2);
1127
+ }
1128
+ o2 = ie(o2, s2), this.staticRulesId = s2;
1129
+ }
1130
+ else {
1131
+ for (var a2 = M(this.baseHash, n.hash), c2 = "", l2 = 0; l2 < this.rules.length; l2++) {
1132
+ var u2 = this.rules[l2];
1133
+ if ("string" == typeof u2) c2 += u2, a2 = M(a2, u2);
1134
+ else if (u2) {
1135
+ var p2 = ae(Xe(u2, e2, t, n));
1136
+ a2 = M(a2, p2 + l2), c2 += p2;
1137
+ }
1138
+ }
1139
+ if (c2) {
1140
+ var d = x(a2 >>> 0);
1141
+ t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c2, ".".concat(d), void 0, this.componentId)), o2 = ie(o2, d);
1142
+ }
1143
+ }
1144
+ return o2;
1145
+ }, e;
1146
+ }();
1147
+ var et = import_react.default.createContext(void 0);
1148
+ var tt = et.Consumer;
1149
+ function nt() {
1150
+ var e = (0, import_react.useContext)(et);
1151
+ if (!e) throw he(18);
1152
+ return e;
1153
+ }
1154
+ function ot(e) {
1155
+ var n = import_react.default.useContext(et), r2 = (0, import_react.useMemo)(function() {
1156
+ return function(e2, n2) {
1157
+ if (!e2) throw he(14);
1158
+ if (re(e2)) {
1159
+ var o2 = e2(n2);
1160
+ if (null === o2 || Array.isArray(o2) || "object" != typeof o2) throw he(7);
1161
+ return o2;
1162
+ }
1163
+ if (Array.isArray(e2) || "object" != typeof e2) throw he(8);
1164
+ return n2 ? __assign(__assign({}, n2), e2) : e2;
1165
+ }(e.theme, n);
1166
+ }, [e.theme, n]);
1167
+ return e.children ? import_react.default.createElement(et.Provider, { value: r2 }, e.children) : null;
1168
+ }
1169
+ var rt = {};
1170
+ var st = /* @__PURE__ */ new Set();
1171
+ function it(e, r2, s2) {
1172
+ var i2 = se(e), a2 = e, c2 = !L(e), p2 = r2.attrs, d = void 0 === p2 ? _ : p2, h = r2.componentId, f2 = void 0 === h ? function(e2, t) {
1173
+ var n = "string" != typeof e2 ? "sc" : R(e2);
1174
+ rt[n] = (rt[n] || 0) + 1;
1175
+ var o2 = "".concat(n, "-").concat($(v + n + rt[n]));
1176
+ return t ? "".concat(t, "-").concat(o2) : o2;
1177
+ }(r2.displayName, r2.parentComponentId) : h, m2 = r2.displayName, y2 = void 0 === m2 ? function(e2) {
1178
+ return L(e2) ? "styled.".concat(e2) : "Styled(".concat(B(e2), ")");
1179
+ }(e) : m2, g2 = r2.displayName && r2.componentId ? "".concat(R(r2.displayName), "-").concat(r2.componentId) : r2.componentId || f2, S2 = i2 && a2.attrs ? a2.attrs.concat(d).filter(Boolean) : d, w2 = r2.shouldForwardProp;
1180
+ if (i2 && a2.shouldForwardProp) {
1181
+ var b2 = a2.shouldForwardProp;
1182
+ if (r2.shouldForwardProp) {
1183
+ var E2 = r2.shouldForwardProp;
1184
+ w2 = function(e2, t) {
1185
+ return b2(e2, t) && E2(e2, t);
1186
+ };
1187
+ } else w2 = b2;
1188
+ }
1189
+ var N2 = new Qe(s2, g2, i2 ? a2.componentStyle : void 0);
1190
+ function O2(e2, r3) {
1191
+ return function(e3, r4, s3) {
1192
+ var i3 = e3.attrs, a3 = e3.componentStyle, c3 = e3.defaultProps, p3 = e3.foldedComponentIds, d2 = e3.styledComponentId, h2 = e3.target, f3 = import_react.default.useContext(et), m3 = Ge(), y3 = e3.shouldForwardProp || m3.shouldForwardProp;
1193
+ (0, import_react.useDebugValue)(d2);
1194
+ var v2 = I(r4, f3, c3) || C, g3 = function(e4, n, o2) {
1195
+ for (var r5, s4 = __assign(__assign({}, n), { className: void 0, theme: o2 }), i4 = 0; i4 < e4.length; i4 += 1) {
1196
+ var a4 = re(r5 = e4[i4]) ? r5(s4) : r5;
1197
+ for (var c4 in a4) s4[c4] = "className" === c4 ? ie(s4[c4], a4[c4]) : "style" === c4 ? __assign(__assign({}, s4[c4]), a4[c4]) : a4[c4];
1198
+ }
1199
+ return n.className && (s4.className = ie(s4.className, n.className)), s4;
1200
+ }(i3, r4, v2), S3 = g3.as || h2, w3 = {};
1201
+ for (var b3 in g3) void 0 === g3[b3] || "$" === b3[0] || "as" === b3 || "theme" === b3 && g3.theme === v2 || ("forwardedAs" === b3 ? w3.as = g3.forwardedAs : y3 && !y3(b3, S3) || (w3[b3] = g3[b3], y3 || false || isPropValid(b3) || st.has(b3) || !A.has(S3) || (st.add(b3), console.warn('styled-components: it looks like an unknown prop "'.concat(b3, '" 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.)')))));
1202
+ var E3 = function(e4, t) {
1203
+ var n = Ge(), o2 = e4.generateAndInjectStyles(t, n.styleSheet, n.stylis);
1204
+ return (0, import_react.useDebugValue)(o2), o2;
1205
+ }(a3, g3);
1206
+ e3.warnTooManyClasses && e3.warnTooManyClasses(E3);
1207
+ var N3 = ie(p3, d2);
1208
+ return E3 && (N3 += " " + E3), g3.className && (N3 += " " + g3.className), w3[L(S3) && !A.has(S3) ? "class" : "className"] = N3, s3 && (w3.ref = s3), (0, import_react.createElement)(S3, w3);
1209
+ }(D2, e2, r3);
1210
+ }
1211
+ O2.displayName = y2;
1212
+ var D2 = import_react.default.forwardRef(O2);
1213
+ return D2.attrs = S2, D2.componentStyle = N2, D2.displayName = y2, D2.shouldForwardProp = w2, D2.foldedComponentIds = i2 ? ie(a2.foldedComponentIds, a2.styledComponentId) : "", D2.styledComponentId = g2, D2.target = i2 ? a2.target : e, Object.defineProperty(D2, "defaultProps", { get: function() {
1214
+ return this._foldedDefaultProps;
1215
+ }, set: function(e2) {
1216
+ this._foldedDefaultProps = i2 ? function(e3) {
1217
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1218
+ for (var o2 = 0, r3 = t; o2 < r3.length; o2++) le(e3, r3[o2], true);
1219
+ return e3;
1220
+ }({}, a2.defaultProps, e2) : e2;
1221
+ } }), P(y2, g2), D2.warnTooManyClasses = /* @__PURE__ */ function(e2, t) {
1222
+ var n = {}, o2 = false;
1223
+ return function(r3) {
1224
+ if (!o2 && (n[r3] = true, Object.keys(n).length >= 200)) {
1225
+ var s3 = t ? ' with the id of "'.concat(t, '"') : "";
1226
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(e2).concat(s3, ".\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 />"), o2 = true, n = {};
1227
+ }
1228
+ };
1229
+ }(y2, g2), ue(D2, function() {
1230
+ return ".".concat(D2.styledComponentId);
1231
+ }), c2 && oe(D2, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), D2;
1232
+ }
1233
+ function at(e, t) {
1234
+ for (var n = [e[0]], o2 = 0, r2 = t.length; o2 < r2; o2 += 1) n.push(t[o2], e[o2 + 1]);
1235
+ return n;
1236
+ }
1237
+ var ct = function(e) {
1238
+ return Object.assign(e, { isCss: true });
1239
+ };
1240
+ function lt(t) {
1241
+ for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
1242
+ if (re(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, true))));
1243
+ var r2 = t;
1244
+ return 0 === n.length && 1 === r2.length && "string" == typeof r2[0] ? Xe(r2) : ct(Xe(at(r2, n)));
1245
+ }
1246
+ function ut(n, o2, r2) {
1247
+ if (void 0 === r2 && (r2 = C), !o2) throw he(1, o2);
1248
+ var s2 = function(t) {
1249
+ for (var s3 = [], i2 = 1; i2 < arguments.length; i2++) s3[i2 - 1] = arguments[i2];
1250
+ return n(o2, r2, lt.apply(void 0, __spreadArray([t], s3, false)));
1251
+ };
1252
+ return s2.attrs = function(e) {
1253
+ return ut(n, o2, __assign(__assign({}, r2), { attrs: Array.prototype.concat(r2.attrs, e).filter(Boolean) }));
1254
+ }, s2.withConfig = function(e) {
1255
+ return ut(n, o2, __assign(__assign({}, r2), e));
1256
+ }, s2;
1257
+ }
1258
+ var pt = function(e) {
1259
+ return ut(it, e);
1260
+ };
1261
+ var dt = pt;
1262
+ A.forEach(function(e) {
1263
+ dt[e] = pt(e);
1264
+ });
1265
+ var ht = function() {
1266
+ function e(e2, t) {
1267
+ this.rules = e2, this.componentId = t, this.isStatic = Ze(e2), ke.registerId(this.componentId + 1);
1268
+ }
1269
+ return e.prototype.createStyles = function(e2, t, n, o2) {
1270
+ var r2 = o2(ae(Xe(this.rules, t, n, o2)), ""), s2 = this.componentId + e2;
1271
+ n.insertRules(s2, s2, r2);
1272
+ }, e.prototype.removeStyles = function(e2, t) {
1273
+ t.clearRules(this.componentId + e2);
1274
+ }, e.prototype.renderStyles = function(e2, t, n, o2) {
1275
+ e2 > 2 && ke.registerId(this.componentId + e2), this.removeStyles(e2, n), this.createStyles(e2, t, n, o2);
1276
+ }, e;
1277
+ }();
1278
+ function ft(n) {
1279
+ for (var r2 = [], s2 = 1; s2 < arguments.length; s2++) r2[s2 - 1] = arguments[s2];
1280
+ var i2 = lt.apply(void 0, __spreadArray([n], r2, false)), a2 = "sc-global-".concat($(JSON.stringify(i2))), c2 = new ht(i2, a2);
1281
+ P(a2);
1282
+ var l2 = function(e) {
1283
+ var t = Ge(), n2 = import_react.default.useContext(et), r3 = import_react.default.useRef(t.styleSheet.allocateGSInstance(a2)).current;
1284
+ return import_react.default.Children.count(e.children) && console.warn("The global style component ".concat(a2, " was given child JSX. createGlobalStyle does not render children.")), i2.some(function(e2) {
1285
+ return "string" == typeof e2 && -1 !== e2.indexOf("@import");
1286
+ }) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t.styleSheet.server && u2(r3, e, t.styleSheet, n2, t.stylis), import_react.default.useLayoutEffect(function() {
1287
+ if (!t.styleSheet.server) return u2(r3, e, t.styleSheet, n2, t.stylis), function() {
1288
+ return c2.removeStyles(r3, t.styleSheet);
1289
+ };
1290
+ }, [r3, e, t.styleSheet, n2, t.stylis]), null;
1291
+ };
1292
+ function u2(e, n2, o2, r3, s3) {
1293
+ if (c2.isStatic) c2.renderStyles(e, b, o2, s3);
1294
+ else {
1295
+ var i3 = __assign(__assign({}, n2), { theme: I(n2, r3, l2.defaultProps) });
1296
+ c2.renderStyles(e, i3, o2, s3);
1297
+ }
1298
+ }
1299
+ return import_react.default.memo(l2);
1300
+ }
1301
+ function mt(t) {
1302
+ for (var n = [], o2 = 1; o2 < arguments.length; o2++) n[o2 - 1] = arguments[o2];
1303
+ "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.");
1304
+ var r2 = ae(lt.apply(void 0, __spreadArray([t], n, false))), s2 = $(r2);
1305
+ return new We(s2, r2);
1306
+ }
1307
+ function yt(e) {
1308
+ var n = import_react.default.forwardRef(function(n2, r2) {
1309
+ var s2 = I(n2, import_react.default.useContext(et), e.defaultProps);
1310
+ return void 0 === s2 && console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(B(e), '"')), import_react.default.createElement(e, __assign({}, n2, { theme: s2, ref: r2 }));
1311
+ });
1312
+ return n.displayName = "WithTheme(".concat(B(e), ")"), oe(n, e);
1313
+ }
1314
+ var vt = function() {
1315
+ function e() {
1316
+ var e2 = this;
1317
+ this._emitSheetCSS = function() {
1318
+ var t = e2.instance.toString();
1319
+ if (!t) return "";
1320
+ var n = Ce(), o2 = ae([n && 'nonce="'.concat(n, '"'), "".concat(f, '="true"'), "".concat(y, '="').concat(v, '"')].filter(Boolean), " ");
1321
+ return "<style ".concat(o2, ">").concat(t, "</style>");
1322
+ }, this.getStyleTags = function() {
1323
+ if (e2.sealed) throw he(2);
1324
+ return e2._emitSheetCSS();
1325
+ }, this.getStyleElement = function() {
1326
+ var n;
1327
+ if (e2.sealed) throw he(2);
1328
+ var r2 = e2.instance.toString();
1329
+ if (!r2) return [];
1330
+ var s2 = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: r2 }, n), i2 = Ce();
1331
+ return i2 && (s2.nonce = i2), [import_react.default.createElement("style", __assign({}, s2, { key: "sc-0-0" }))];
1332
+ }, this.seal = function() {
1333
+ e2.sealed = true;
1334
+ }, this.instance = new ke({ isServer: true }), this.sealed = false;
1335
+ }
1336
+ return e.prototype.collectStyles = function(e2) {
1337
+ if (this.sealed) throw he(2);
1338
+ return import_react.default.createElement(Ye, { sheet: this.instance }, e2);
1339
+ }, e.prototype.interleaveWithNodeStream = function(e2) {
1340
+ throw he(3);
1341
+ }, e;
1342
+ }();
1343
+ var gt = { StyleSheet: ke, mainSheet: Me };
1344
+ "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");
1345
+ var St = "__sc-".concat(f, "__");
1346
+ "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);
1347
+ export {
1348
+ vt as ServerStyleSheet,
1349
+ Be as StyleSheetConsumer,
1350
+ $e as StyleSheetContext,
1351
+ Ye as StyleSheetManager,
1352
+ tt as ThemeConsumer,
1353
+ et as ThemeContext,
1354
+ ot as ThemeProvider,
1355
+ gt as __PRIVATE__,
1356
+ ft as createGlobalStyle,
1357
+ lt as css,
1358
+ dt as default,
1359
+ se as isStyledComponent,
1360
+ mt as keyframes,
1361
+ dt as styled,
1362
+ nt as useTheme,
1363
+ v as version,
1364
+ yt as withTheme
1365
+ };
1366
+ //# sourceMappingURL=styled-components.js.map