@mailstep/design-system 0.0.0 → 0.0.2

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 (149) hide show
  1. package/package.json +18 -4
  2. package/src/ui/index.ts +2 -0
  3. package/storybook-static/assets/BadgeIcon.stories-ff71b920.js +16 -0
  4. package/storybook-static/assets/BadgeIcon.stories-ff71b920.js.map +1 -0
  5. package/storybook-static/assets/Button.stories-f88970f8.js +318 -0
  6. package/storybook-static/assets/Button.stories-f88970f8.js.map +1 -0
  7. package/storybook-static/assets/Color-6VNJS4EI-a71f6b3f.js +2 -0
  8. package/storybook-static/assets/Color-6VNJS4EI-a71f6b3f.js.map +1 -0
  9. package/storybook-static/assets/DocsRenderer-NNNQARDV-8865c748.js +365 -0
  10. package/storybook-static/assets/DocsRenderer-NNNQARDV-8865c748.js.map +1 -0
  11. package/storybook-static/assets/Icon-2b18265b.js +768 -0
  12. package/storybook-static/assets/Icon-2b18265b.js.map +1 -0
  13. package/storybook-static/assets/Icon.stories-7a5d1d5a.js +36 -0
  14. package/storybook-static/assets/Icon.stories-7a5d1d5a.js.map +1 -0
  15. package/storybook-static/assets/Spinner-8c28ae00.js +30 -0
  16. package/storybook-static/assets/Spinner-8c28ae00.js.map +1 -0
  17. package/storybook-static/assets/Spinner.stories-9892e479.js +40 -0
  18. package/storybook-static/assets/Spinner.stories-9892e479.js.map +1 -0
  19. package/storybook-static/assets/WithTooltip-4HIR6TLV-ae7ae3c0.js +2 -0
  20. package/storybook-static/assets/WithTooltip-4HIR6TLV-ae7ae3c0.js.map +1 -0
  21. package/storybook-static/assets/_commonjsHelpers-de833af9.js +2 -0
  22. package/storybook-static/assets/_commonjsHelpers-de833af9.js.map +1 -0
  23. package/storybook-static/assets/_getPrototype-c468d7b4.js +27 -0
  24. package/storybook-static/assets/_getPrototype-c468d7b4.js.map +1 -0
  25. package/storybook-static/assets/config-1152c68d.js +55 -0
  26. package/storybook-static/assets/config-1152c68d.js.map +1 -0
  27. package/storybook-static/assets/formatter-SWP5E3XI-fc1f2b16.js +157 -0
  28. package/storybook-static/assets/formatter-SWP5E3XI-fc1f2b16.js.map +1 -0
  29. package/storybook-static/assets/iframe-5c6ac1e4.js +2 -0
  30. package/storybook-static/assets/iframe-5c6ac1e4.js.map +1 -0
  31. package/storybook-static/assets/index-356e4a49.js +7 -0
  32. package/storybook-static/assets/index-356e4a49.js.map +1 -0
  33. package/storybook-static/assets/index-3fd0d1ea.js +2 -0
  34. package/storybook-static/assets/index-3fd0d1ea.js.map +1 -0
  35. package/storybook-static/assets/index-76fb7be0.js +10 -0
  36. package/storybook-static/assets/index-76fb7be0.js.map +1 -0
  37. package/storybook-static/assets/index-8d47fad6.js +2 -0
  38. package/storybook-static/assets/index-8d47fad6.js.map +1 -0
  39. package/storybook-static/assets/index-d37d4223.js +2 -0
  40. package/storybook-static/assets/index-d37d4223.js.map +1 -0
  41. package/storybook-static/assets/index-e3f94786.js +119 -0
  42. package/storybook-static/assets/index-e3f94786.js.map +1 -0
  43. package/storybook-static/assets/preview-108c1c3c.js +21 -0
  44. package/storybook-static/assets/preview-108c1c3c.js.map +1 -0
  45. package/storybook-static/assets/preview-2059b184.js +2 -0
  46. package/storybook-static/assets/preview-2059b184.js.map +1 -0
  47. package/storybook-static/assets/preview-3c29a369.js +2 -0
  48. package/storybook-static/assets/preview-3c29a369.js.map +1 -0
  49. package/storybook-static/assets/preview-6751e51d.js +2 -0
  50. package/storybook-static/assets/preview-6751e51d.js.map +1 -0
  51. package/storybook-static/assets/preview-87eac49b.js +2 -0
  52. package/storybook-static/assets/preview-87eac49b.js.map +1 -0
  53. package/storybook-static/assets/preview-b3c37142.js +8 -0
  54. package/storybook-static/assets/preview-b3c37142.js.map +1 -0
  55. package/storybook-static/assets/preview-b8d6c68d.js +397 -0
  56. package/storybook-static/assets/preview-b8d6c68d.js.map +1 -0
  57. package/storybook-static/assets/preview-bed967c6.js +2 -0
  58. package/storybook-static/assets/preview-bed967c6.js.map +1 -0
  59. package/storybook-static/assets/preview-f247b047.js +26 -0
  60. package/storybook-static/assets/preview-f247b047.js.map +1 -0
  61. package/storybook-static/assets/styled-components.browser.esm-fbe642cd.js +20 -0
  62. package/storybook-static/assets/styled-components.browser.esm-fbe642cd.js.map +1 -0
  63. package/storybook-static/assets/syntaxhighlighter-NMPM6SWI-190fec00.js +2 -0
  64. package/storybook-static/assets/syntaxhighlighter-NMPM6SWI-190fec00.js.map +1 -0
  65. package/storybook-static/favicon.svg +7 -0
  66. package/storybook-static/iframe.html +458 -0
  67. package/storybook-static/index.html +126 -0
  68. package/storybook-static/index.json +1 -0
  69. package/storybook-static/project.json +1 -0
  70. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  71. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  72. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  73. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  74. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +114 -0
  75. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  76. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  77. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  78. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  79. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  80. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  81. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  82. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  83. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  84. package/storybook-static/sb-addons/interactions-8/manager-bundle.js +27 -0
  85. package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  86. package/storybook-static/sb-addons/links-0/manager-bundle.js +3 -0
  87. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  88. package/storybook-static/sb-common-assets/fonts.css +31 -0
  89. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  90. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  91. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  92. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  93. package/storybook-static/sb-manager/WithTooltip-4HIR6TLV-L6ICANXH.js +1 -0
  94. package/storybook-static/sb-manager/chunk-5AW67ZFX.js +348 -0
  95. package/storybook-static/sb-manager/chunk-AOJK37XK.js +406 -0
  96. package/storybook-static/sb-manager/chunk-OQCANWBN.js +7 -0
  97. package/storybook-static/sb-manager/chunk-TCCQ5FBZ.js +9 -0
  98. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +1 -0
  99. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  100. package/storybook-static/sb-manager/globals.js +1 -0
  101. package/storybook-static/sb-manager/index.js +1 -0
  102. package/storybook-static/sb-manager/runtime.js +1 -0
  103. package/storybook-static/sb-manager/syntaxhighlighter-NMPM6SWI-WFK223KV.js +1 -0
  104. package/storybook-static/sb-preview/globals.js +1 -0
  105. package/storybook-static/sb-preview/runtime.js +112 -0
  106. package/storybook-static/stories.json +1 -0
  107. package/storybook-static/vite.svg +1 -0
  108. package/tsconfig.json +1 -0
  109. package/vite.config.ts +30 -4
  110. package/src/stories/themes/default.ts +0 -144
  111. package/src/stories/themes/index.ts +0 -11
  112. package/src/stories/themes/light.ts +0 -10
  113. package/src/stories/themes/mailwise.ts +0 -215
  114. /package/src/{packages/ui → ui}/Elements/Button/Button.d.ts +0 -0
  115. /package/src/{packages/ui → ui}/Elements/Button/Button.tsx +0 -0
  116. /package/src/{packages/ui → ui}/Elements/Button/index.d.ts +0 -0
  117. /package/src/{packages/ui → ui}/Elements/Button/index.ts +0 -0
  118. /package/src/{packages/ui → ui}/Elements/Button/stories/Button.stories.ts +0 -0
  119. /package/src/{packages/ui → ui}/Elements/Button/styles.ts +0 -0
  120. /package/src/{packages/ui → ui}/Elements/Button/types.ts +0 -0
  121. /package/src/{packages/ui → ui}/Elements/Icon/BadgeIcon.tsx +0 -0
  122. /package/src/{packages/ui → ui}/Elements/Icon/Icon.tsx +0 -0
  123. /package/src/{packages/ui → ui}/Elements/Icon/icons/FlagCZ.tsx +0 -0
  124. /package/src/{packages/ui → ui}/Elements/Icon/icons/FlagUSA.tsx +0 -0
  125. /package/src/{packages/ui → ui}/Elements/Icon/icons/index.ts +0 -0
  126. /package/src/{packages/ui → ui}/Elements/Icon/index.d.ts +0 -0
  127. /package/src/{packages/ui → ui}/Elements/Icon/index.ts +0 -0
  128. /package/src/{packages/ui → ui}/Elements/Icon/stories/BadgeIcon.stories.tsx +0 -0
  129. /package/src/{packages/ui → ui}/Elements/Icon/stories/Icon.stories.tsx +0 -0
  130. /package/src/{packages/ui → ui}/Elements/Icon/types.ts +0 -0
  131. /package/src/{packages/ui → ui}/Elements/Spinner/README.md +0 -0
  132. /package/src/{packages/ui → ui}/Elements/Spinner/Spinner.tsx +0 -0
  133. /package/src/{packages/ui → ui}/Elements/Spinner/index.d.ts +0 -0
  134. /package/src/{packages/ui → ui}/Elements/Spinner/index.ts +0 -0
  135. /package/src/{packages/ui → ui}/Elements/Spinner/stories/Spinner.stories.ts +0 -0
  136. /package/src/{packages/ui → ui}/Elements/Spinner/styles.ts +0 -0
  137. /package/src/{packages/ui → ui}/Elements/Spinner/types.ts +0 -0
  138. /package/src/{packages/ui → ui}/Elements/Spinner/yarn.lock +0 -0
  139. /package/src/{packages/ui → ui}/ThemeProvider/README.md +0 -0
  140. /package/src/{packages/ui → ui}/ThemeProvider/ThemeProvider.d.ts +0 -0
  141. /package/src/{packages/ui → ui}/ThemeProvider/ThemeProvider.tsx +0 -0
  142. /package/src/{packages/ui → ui}/ThemeProvider/index.d.ts +0 -0
  143. /package/src/{packages/ui → ui}/ThemeProvider/index.ts +0 -0
  144. /package/src/{packages/ui → ui}/ThemeProvider/themes/default.ts +0 -0
  145. /package/src/{packages/ui → ui}/ThemeProvider/themes/index.ts +0 -0
  146. /package/src/{packages/ui → ui}/ThemeProvider/themes/light.ts +0 -0
  147. /package/src/{packages/ui → ui}/ThemeProvider/themes/mailwise.ts +0 -0
  148. /package/src/{packages/ui → ui}/ThemeProvider/types.ts +0 -0
  149. /package/src/{packages/ui → ui}/ThemeProvider/yarn.lock +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-e3f94786.js","sources":["../../node_modules/@xstyled/util/dist/index.mjs","../../node_modules/@xstyled/system/dist/index.mjs","../../node_modules/@xstyled/core/dist/index.mjs","../../node_modules/@xstyled/styled-components/dist/index.mjs"],"sourcesContent":["const DEV = process.env.NODE_ENV !== \"production\";\nconst specialProperties = [\"__proto__\", \"constructor\", \"prototype\"];\nconst identity = (x) => x;\nconst is = (n) => n !== void 0 && n !== null;\nconst num = (n) => typeof n === \"number\" && !Number.isNaN(n);\nconst string = (n) => typeof n === \"string\" && n !== \"\";\nconst obj = (n) => typeof n === \"object\" && n !== null;\nconst func = (n) => typeof n === \"function\";\nconst negative = (n) => num(n) && n < 0;\nconst get = (from, path) => {\n const paths = String(path).split(\".\");\n const pathsLength = paths.length;\n let result = from;\n for (let i = 0; i < pathsLength; i += 1) {\n if (!is(result))\n return result;\n const path2 = paths[i];\n result = is(result[path2]) ? result[path2] : void 0;\n }\n return result;\n};\nconst assign = (target, source) => {\n if (!is(source))\n return target;\n for (const key in source) {\n if (specialProperties.indexOf(key) !== -1) {\n continue;\n }\n target[key] = source[key];\n }\n return target;\n};\nconst merge = (target, source) => {\n if (!is(source))\n return target;\n for (const key in source) {\n if (specialProperties.indexOf(key) !== -1) {\n continue;\n }\n if (obj(target[key])) {\n target[key] = merge(assign({}, target[key]), source[key]);\n } else {\n target[key] = source[key];\n }\n }\n return target;\n};\nconst warn = (condition, message) => {\n if (DEV) {\n if (!condition && console.error) {\n console.error(message);\n }\n }\n};\nfunction cascade(value, arg) {\n if (typeof value === \"function\") {\n return cascade(value(arg), arg);\n }\n return value;\n}\nconst getThemeValue = (props, path, initial = props.theme) => cascade(get(initial, path), props);\nfunction omit(object, values) {\n const result = {};\n for (const key in object) {\n if (values.indexOf(key) === -1) {\n result[key] = object[key];\n }\n }\n return result;\n}\nfunction flattenStrings(array) {\n return array.reduce((flattenedArray, value) => {\n const lastIndex = flattenedArray.length - 1;\n const last = flattenedArray[lastIndex];\n if (typeof last === \"string\" && typeof value === \"string\") {\n flattenedArray[lastIndex] = last + value;\n } else {\n flattenedArray.push(value);\n }\n return flattenedArray;\n }, []);\n}\nfunction flattenDown(array, result) {\n for (let i = 0; i < array.length; i++) {\n const value = array[i];\n if (Array.isArray(value)) {\n flattenDown(value, result);\n } else {\n result.push(value);\n }\n }\n return result;\n}\nfunction flatten(array) {\n return flattenDown(array, []);\n}\n\nexport { assign, cascade, flatten, flattenStrings, func, get, getThemeValue, identity, is, merge, negative, num, obj, omit, string, warn };\n//# sourceMappingURL=index.mjs.map\n","import { string, num, getThemeValue, negative, warn, merge, assign, func, is, obj, cascade } from '@xstyled/util';\n\nvar __pow = Math.pow;\nconst round = (value) => Math.round(value * __pow(10, 4)) / __pow(10, 4);\nconst unit = (unit2) => (value) => num(value) && value !== 0 ? `${value}${unit2}` : value;\nconst ms = unit(\"ms\");\nconst px$1 = unit(\"px\");\nconst deg = unit(\"deg\");\nconst pxToRem = (value, { rootFontSize = 16 } = {}) => round(value / rootFontSize);\nconst remPx = (value, options) => {\n const num2 = Number(value);\n if (Number.isNaN(num2) || num2 === 0)\n return value;\n return `${pxToRem(num2, options)}rem`;\n};\nconst rpx = (value, options) => {\n if (!string(value) || value.length < 4)\n return value;\n const unit2 = value.slice(-3);\n if (unit2 !== \"rpx\")\n return value;\n const n = Number(value.slice(0, value.length - 3));\n if (n === 0)\n return 0;\n return `${pxToRem(n, options)}rem`;\n};\nconst percent = (n) => num(n) && n !== 0 && n >= -1 && n <= 1 ? `${round(n * 100)}%` : n;\nconst transformNegative = (_, { rawValue, variants, props }) => {\n if (string(rawValue)) {\n const neg = rawValue.startsWith(\"-\");\n const abs = neg ? rawValue.substr(1) : rawValue;\n const varVal = getThemeValue(props, abs, variants);\n const value = string(varVal) || num(varVal) ? varVal : abs;\n return neg ? `-${value}` : value;\n }\n if (num(rawValue)) {\n const neg = negative(rawValue);\n const abs = Math.abs(rawValue);\n const varVal = variants ? variants[abs] : void 0;\n if (string(varVal))\n return neg ? `-${varVal}` : varVal;\n const value = num(varVal) ? varVal : abs;\n return neg ? value * -1 : value;\n }\n return void 0;\n};\n\nconst mediaMinWidth = (value) => value ? `@media (min-width: ${value})` : null;\nconst mediaMaxWidth = (value) => value ? `@media (max-width: ${value})` : null;\nconst mediaBetweenWidth = (min, max) => min && max ? `@media (min-width: ${min}) and (max-width: ${max})` : null;\nconst getBreakpointMin = (screens, key) => {\n const value = screens[key];\n return value === 0 ? null : px$1(value);\n};\nconst getBreakpointMax = (screens, key) => {\n const value = screens[key];\n return value === 0 ? null : px$1(value - 0.02);\n};\n\nvar __defProp$6 = Object.defineProperty;\nvar __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$6 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$6 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues$6 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$6.call(b, prop))\n __defNormalProp$6(a, prop, b[prop]);\n if (__getOwnPropSymbols$6)\n for (var prop of __getOwnPropSymbols$6(b)) {\n if (__propIsEnum$6.call(b, prop))\n __defNormalProp$6(a, prop, b[prop]);\n }\n return a;\n};\nconst getScreens = (props) => {\n return props.theme && props.theme.screens ? props.theme.screens : {};\n};\nconst getStates = (props) => {\n return props.theme && props.theme.states ? props.theme.states : {};\n};\nconst getVariants = (props) => {\n const screens = getScreens(props);\n const states = getStates(props);\n const medias = {};\n for (const value in screens) {\n medias[value] = mediaMinWidth(getBreakpointMin(screens, value));\n }\n const variants = __spreadValues$6(__spreadValues$6({}, medias), states);\n for (const [value, selector] of Object.entries(variants)) {\n if (selector && selector.startsWith(\"@\")) {\n delete variants[value];\n variants[value] = selector;\n }\n }\n return variants;\n};\nconst getCachedVariants = (props, cache) => {\n if (cache.has(\"_variants\"))\n return cache.get(\"_variants\");\n const states = getVariants(props);\n cache.set(\"_variants\", states);\n return states;\n};\n\nconst cacheSupported = typeof Map !== \"undefined\" && typeof WeakMap !== \"undefined\";\nconst caches = cacheSupported ? /* @__PURE__ */ new WeakMap() : null;\nconst isCacheDisabled = (theme) => {\n var _a;\n return ((_a = theme == null ? void 0 : theme.xstyled) == null ? void 0 : _a.cache) === false;\n};\nconst getThemeCache = (theme) => {\n const cacheDisabled = isCacheDisabled(theme);\n if (cacheDisabled)\n return null;\n if (caches === null)\n return null;\n if (caches.has(theme))\n return caches.get(theme) || null;\n const cache = {};\n caches.set(theme, cache);\n return cache;\n};\nconst noopCache = {\n has: () => false,\n set: () => void 0,\n get: () => void 0\n};\nconst getCache = (theme, namespace) => {\n if (!theme)\n return noopCache;\n const cache = getThemeCache(theme);\n if (!cache || !theme)\n return noopCache;\n cache[namespace] = cache[namespace] || /* @__PURE__ */ new Map();\n return cache[namespace];\n};\n\nvar __defProp$5 = Object.defineProperty;\nvar __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$5 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$5 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$5 = (obj2, key, value) => key in obj2 ? __defProp$5(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;\nvar __spreadValues$5 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$5.call(b, prop))\n __defNormalProp$5(a, prop, b[prop]);\n if (__getOwnPropSymbols$5)\n for (var prop of __getOwnPropSymbols$5(b)) {\n if (__propIsEnum$5.call(b, prop))\n __defNormalProp$5(a, prop, b[prop]);\n }\n return a;\n};\nlet themeGetterId = 0;\nconst SPLITTERS = {\n shorthand: [/\\s+/, \" \"],\n multiple: [/\\s*,\\s*/, \",\"]\n};\nconst splitValue = (splitter, transform) => (value) => value.split(splitter[0]).map(transform).join(splitter[1]);\nconst themeGetter = ({\n name,\n transform: defaultTransform,\n key,\n compose: compose2,\n shorthand,\n multiple\n}) => {\n const id = themeGetterId++;\n const getter = (value, defaultValue) => (props) => {\n let res = value;\n if (!string(value) && !num(value) && value !== true) {\n return res;\n }\n const cacheKey = `${typeof value}-${value}-${defaultValue}`;\n const cache = getCache(props.theme, `__themeGetter${id}`);\n if (cache.has(cacheKey))\n return cache.get(cacheKey);\n const getValue = (value2) => {\n const localDefaultValue = is(defaultValue) ? defaultValue : value2;\n let res2 = value2;\n const variants = is(key) ? getThemeValue(props, key) : null;\n if (is(variants)) {\n const path = value2 === true ? \"default\" : string(value2) || num(value2) ? value2 : null;\n if (is(path)) {\n const fromTheme = getThemeValue(props, path, variants);\n res2 = Array.isArray(fromTheme) ? fromTheme.join(\",\") : fromTheme;\n }\n }\n let rawValue = value2;\n if (!is(res2)) {\n rawValue = localDefaultValue;\n res2 = localDefaultValue;\n }\n const transform = (name && props.theme && props.theme.transformers ? props.theme.transformers[name] : null) || defaultTransform;\n if (transform) {\n res2 = transform(res2, {\n rawValue,\n variants,\n props\n });\n }\n return compose2 ? compose2(res2)(props) : res2;\n };\n if ((shorthand || multiple) && string(value)) {\n let transform = getValue;\n if (shorthand)\n transform = splitValue(SPLITTERS.shorthand, transform);\n if (multiple)\n transform = splitValue(SPLITTERS.multiple, transform);\n res = transform(value);\n } else {\n res = getValue(value);\n }\n cache.set(cacheKey, res);\n return res;\n };\n getter.meta = { name, transform: defaultTransform };\n return getter;\n};\nconst createStyleGenerator = ({\n getStyle,\n props,\n cssGetters = {},\n generators\n}) => {\n const generator = getStyle;\n generator.meta = {\n props,\n cssGetters,\n getStyle: generator,\n generators\n };\n generator.apply = (values) => ({ theme }) => generator(__spreadValues$5({ theme }, values));\n return generator;\n};\nconst reduceVariants = (props, values, getStyle) => {\n const cache = getCache(props.theme, \"__variants\");\n const variants = getCachedVariants(props, cache);\n let styles = {};\n for (const value in values) {\n const style2 = getStyle(values[value]);\n if (style2 === null)\n continue;\n const state = value in variants ? variants[value] : value;\n if (state === void 0)\n continue;\n if (state === null) {\n styles = merge(styles, style2);\n } else {\n styles[state] = styles[state] ? assign(styles[state], style2) : style2;\n }\n }\n return styles;\n};\nconst getStyleFactory = (prop, mixin, themeGet) => {\n return (props) => {\n const fromValue = (value2) => {\n if (!is(value2))\n return null;\n if (obj(value2))\n return reduceVariants(props, value2, fromValue);\n return cascade(mixin(themeGet ? themeGet(value2)(props) : value2), props);\n };\n const value = props[prop];\n if (!is(value))\n return null;\n const cache = getCache(props.theme, prop);\n const key = obj(value) ? JSON.stringify(value) : value;\n if (cache.has(key))\n return cache.get(key);\n const style2 = fromValue(value);\n cache.set(key, style2);\n return style2;\n };\n};\nconst indexGeneratorsByProp = (generators) => {\n const index = {};\n for (let i = 0; i < generators.length; i++) {\n const style2 = generators[i];\n if (style2 && style2.meta) {\n for (let j = 0; j < style2.meta.props.length; j++) {\n const prop = style2.meta.props[j];\n index[prop] = style2;\n }\n }\n }\n return index;\n};\nconst sortStyles = (styles, variants) => {\n for (const key in variants) {\n const variant = variants[key];\n const style2 = styles[variant];\n if (!style2)\n continue;\n delete styles[variant];\n styles[variant] = style2;\n }\n return styles;\n};\nfunction compose(...generators) {\n let flatGenerators = [];\n generators.forEach((gen) => {\n warn(Boolean(gen), `Undefined generator in \"compose\" method`);\n if (!gen)\n return;\n if (gen.meta.generators) {\n flatGenerators = [...flatGenerators, ...gen.meta.generators];\n } else {\n flatGenerators.push(gen);\n }\n });\n const generatorsByProp = indexGeneratorsByProp(flatGenerators);\n const getStyle = (props2, sort = true) => {\n const styles = {};\n let merged;\n for (const key in props2) {\n const generator = generatorsByProp[key];\n if (generator) {\n const style2 = generator.meta.getStyle(props2, false);\n merge(styles, style2);\n merged = true;\n }\n }\n if (!merged || !sort)\n return styles;\n const medias = getCachedVariants(props2, getCache(props2.theme, \"__states\"));\n return sortStyles(styles, medias);\n };\n const props = [];\n const cssGetters = {};\n for (let i = 0; i < flatGenerators.length; i++) {\n const generator = flatGenerators[i];\n props.push(...generator.meta.props);\n Object.assign(cssGetters, generator.meta.cssGetters);\n }\n return createStyleGenerator({ getStyle, props, cssGetters, generators });\n}\nconst getMixinFromCSSProperties = (properties) => (value) => {\n if (string(properties))\n return { [properties]: value };\n const style2 = {};\n for (const key in properties) {\n style2[properties[key]] = value;\n }\n return style2;\n};\nconst getMixinFromCSSOption = (css) => {\n if (func(css))\n return css;\n return getMixinFromCSSProperties(css);\n};\nconst dasherize = (key) => key.replace(/[A-Z]/g, \"-$&\").toLowerCase();\nconst style = ({\n prop,\n css,\n themeGet,\n key,\n transform,\n cssProps: cssPropsOption\n}) => {\n const getter = themeGet || (key || transform ? themeGetter({ key, transform }) : void 0);\n const cssProps = cssPropsOption || (string(css) ? [css] : Array.isArray(css) ? css : string(prop) ? [prop] : Array.isArray(prop) ? prop : []);\n if (Array.isArray(prop)) {\n const mixin2 = css ? getMixinFromCSSOption(css) : css;\n const generators2 = prop.map(\n (prop2) => style({ prop: prop2, css: mixin2, cssProps, themeGet: getter })\n );\n return compose(...generators2);\n }\n const props = [prop];\n const mixin = getMixinFromCSSOption(css || props);\n const generators = [];\n const getStyle = getStyleFactory(prop, mixin, getter);\n const cssGetters = getter ? cssProps.reduce((getters, cssProp) => {\n getters[dasherize(cssProp)] = getter;\n return getters;\n }, {}) : {};\n const generator = createStyleGenerator({ getStyle, props, cssGetters });\n generators.push(generator);\n return compose(...generators);\n};\n\nconst getPx = themeGetter({\n name: \"px\",\n transform: (value, { props }) => {\n var _a, _b, _c;\n const rootFontSize = (_c = (_b = (_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.settings) == null ? void 0 : _b.rootFontSize) != null ? _c : void 0;\n const num = Number(value);\n return px$1(rpx(Number.isNaN(num) ? value : num, { rootFontSize }));\n }\n});\nconst getDuration = themeGetter({\n name: \"duration\",\n key: \"durations\",\n transform: (value) => {\n const num = Number(value);\n return ms(Number.isNaN(num) ? value : num);\n }\n});\nconst getAngle = themeGetter({\n name: \"angle\",\n transform: (value) => {\n const num = Number(value);\n return deg(Number.isNaN(num) ? value : num);\n }\n});\nconst getPercent = themeGetter({\n name: \"percent\",\n compose: getPx,\n transform: percent\n});\n\nconst getTransition = themeGetter({\n name: \"transition\",\n key: \"transitions\"\n});\nconst getTransitionProperty = themeGetter({\n name: \"transitionProperty\",\n key: \"transitionProperties\"\n});\nconst getTimingFunction = themeGetter({\n name: \"timingFunction\",\n key: \"timingFunctions\"\n});\nconst transition = style({\n prop: \"transition\",\n themeGet: getTransition\n});\nconst transitionProperty = style({\n prop: \"transitionProperty\",\n themeGet: getTransitionProperty\n});\nconst transitionDuration = style({\n prop: \"transitionDuration\",\n themeGet: getDuration\n});\nconst transitionTimingFunction = style({\n prop: \"transitionTimingFunction\",\n themeGet: getTimingFunction\n});\nconst transitionDelay = style({\n prop: \"transitionDelay\",\n themeGet: getDuration\n});\nconst transitions$1 = compose(\n transition,\n transitionProperty,\n transitionDuration,\n transitionTimingFunction,\n transitionDelay\n);\n\nconst getAnimation = themeGetter({\n name: \"animation\",\n key: \"animations\"\n});\nconst animation = style({\n prop: \"animation\",\n themeGet: getAnimation\n});\nconst animationDuration = style({\n prop: \"animationDuration\",\n themeGet: getDuration\n});\nconst animationTimingFunction = style({\n prop: \"animationTimingFunction\",\n themeGet: getTimingFunction\n});\nconst animations = compose(\n animation,\n animationDuration,\n animationTimingFunction\n);\n\nconst getColor = themeGetter({\n name: \"color\",\n key: \"colors\"\n});\n\nconst gradientBackgrounds = {\n \"gradient-to-t\": \"linear-gradient(to top, var(--x-gradient-stops))\",\n \"gradient-to-tr\": \"linear-gradient(to top right, var(--x-gradient-stops))\",\n \"gradient-to-r\": \"linear-gradient(to right, var(--x-gradient-stops))\",\n \"gradient-to-br\": \"linear-gradient(to bottom right, var(--x-gradient-stops))\",\n \"gradient-to-b\": \"linear-gradient(to bottom, var(--x-gradient-stops))\",\n \"gradient-to-bl\": \"linear-gradient(to bottom left, var(--x-gradient-stops))\",\n \"gradient-to-l\": \"linear-gradient(to left, var(--x-gradient-stops))\",\n \"gradient-to-tl\": \"linear-gradient(to top left, var(--x-gradient-stops))\"\n};\nconst background = style({\n prop: \"background\",\n css: (value) => ({\n background: gradientBackgrounds[value] || value\n })\n});\nconst backgroundColor = style({\n prop: [\"backgroundColor\", \"bg\"],\n css: \"backgroundColor\",\n themeGet: getColor\n});\nconst backgroundImage = style({\n prop: \"backgroundImage\",\n css: (value) => ({\n backgroundImage: gradientBackgrounds[value] || value\n })\n});\nconst backgroundSize = style({\n prop: \"backgroundSize\"\n});\nconst backgroundPosition = style({\n prop: \"backgroundPosition\"\n});\nconst backgroundRepeat = style({\n prop: \"backgroundRepeat\"\n});\nconst backgroundAttachment = style({\n prop: \"backgroundAttachment\"\n});\nconst backgroundClip = style({\n prop: \"backgroundClip\",\n css: [\"backgroundClip\", \"-webkitBackgroundClip\"]\n});\nconst gradientFrom = style({\n prop: \"gradientFrom\",\n themeGet: getColor,\n css: (value) => {\n return {\n \"--x-gradient-from\": value,\n \"--x-gradient-stops\": \"var(--x-gradient-from), var(--x-gradient-to, transparent)\"\n };\n }\n});\nconst gradientVia = style({\n prop: \"gradientVia\",\n themeGet: getColor,\n css: (value) => ({\n \"--x-gradient-stops\": `var(--x-gradient-from), ${value}, var(--x-gradient-to, transparent)`\n })\n});\nconst gradientTo = style({\n prop: \"gradientTo\",\n themeGet: getColor,\n css: \"--x-gradient-to\"\n});\nconst backgrounds = compose(\n background,\n backgroundColor,\n backgroundImage,\n backgroundSize,\n backgroundPosition,\n backgroundRepeat,\n backgroundAttachment,\n backgroundClip,\n gradientFrom,\n gradientVia,\n gradientTo\n);\n\nconst getBorder = themeGetter({\n name: \"border\",\n key: \"borders\",\n transform: (value) => {\n const num = Number(value);\n return num > 0 ? `${px$1(num)} solid` : value;\n }\n});\nconst getBorderWidth = themeGetter({\n name: \"borderWidth\",\n key: \"borderWidths\",\n compose: getPx,\n shorthand: true\n});\nconst getBorderColor = themeGetter({\n name: \"borderColor\",\n compose: getColor,\n shorthand: true\n});\nconst getBorderStyle = themeGetter({\n name: \"borderStyle\",\n key: \"borderStyles\"\n});\nconst border = style({\n prop: \"border\",\n themeGet: getBorder\n});\nconst borderTop = style({\n prop: \"borderTop\",\n themeGet: getBorder\n});\nconst borderRight = style({\n prop: \"borderRight\",\n themeGet: getBorder\n});\nconst borderBottom = style({\n prop: \"borderBottom\",\n themeGet: getBorder\n});\nconst borderLeft = style({\n prop: \"borderLeft\",\n themeGet: getBorder\n});\nconst borderColor = style({\n prop: \"borderColor\",\n themeGet: getBorderColor\n});\nconst borderTopColor = style({\n prop: \"borderTopColor\",\n themeGet: getColor\n});\nconst borderRightColor = style({\n prop: \"borderRightColor\",\n themeGet: getColor\n});\nconst borderBottomColor = style({\n prop: \"borderBottomColor\",\n themeGet: getColor\n});\nconst borderLeftColor = style({\n prop: \"borderLeftColor\",\n themeGet: getColor\n});\nconst borderWidth = style({\n prop: \"borderWidth\",\n themeGet: getBorderWidth\n});\nconst borderTopWidth = style({\n prop: \"borderTopWidth\",\n themeGet: getBorderWidth\n});\nconst borderRightWidth = style({\n prop: \"borderRightWidth\",\n themeGet: getBorderWidth\n});\nconst borderBottomWidth = style({\n prop: \"borderBottomWidth\",\n themeGet: getBorderWidth\n});\nconst borderLeftWidth = style({\n prop: \"borderLeftWidth\",\n themeGet: getBorderWidth\n});\nconst borderStyle = style({\n prop: \"borderStyle\",\n themeGet: getBorderStyle,\n cssProps: [\n \"borderStyle\",\n \"borderTopStyle\",\n \"borderRightStyle\",\n \"borderBottomStyle\",\n \"borderLeftStyle\"\n ]\n});\nconst borderTopStyle = style({\n prop: \"borderTopStyle\",\n themeGet: getBorderStyle\n});\nconst borderRightStyle = style({\n prop: \"borderRightStyle\",\n themeGet: getBorderStyle\n});\nconst borderBottomStyle = style({\n prop: \"borderBottomStyle\",\n themeGet: getBorderStyle\n});\nconst borderLeftStyle = style({\n prop: \"borderLeftStyle\",\n themeGet: getBorderStyle\n});\nconst outline = style({\n prop: \"outline\",\n themeGet: getBorder\n});\nconst outlineColor = style({\n prop: \"outlineColor\",\n themeGet: getColor\n});\nconst outlineWidth = style({\n prop: \"outlineWidth\",\n themeGet: getBorderWidth\n});\nconst outlineStyle = style({\n prop: \"outlineStyle\",\n themeGet: getBorderStyle\n});\nconst outlineOffset = style({\n prop: \"outlineOffset\",\n themeGet: getBorderWidth\n});\nconst getRadius = themeGetter({\n name: \"radius\",\n key: \"radii\",\n compose: getPx,\n shorthand: true\n});\nconst borderRadius = style({\n prop: \"borderRadius\",\n themeGet: getRadius,\n cssProps: [\n \"borderRadius\",\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomRightRadius\",\n \"borderBottomLeftRadius\"\n ]\n});\nconst divideSelector = `& > :not([hidden]) ~ :not([hidden])`;\nconst divideY = style({\n prop: \"divideY\",\n themeGet: getBorderWidth,\n css: (value) => {\n const v = value === true ? 1 : value;\n return {\n [divideSelector]: {\n \"--x-divide-y-reverse\": 0,\n borderTopWidth: `calc(${v} * calc(1 - var(--x-divide-y-reverse)))`,\n borderBottomWidth: `calc(${v} * var(--x-divide-y-reverse))`\n }\n };\n }\n});\nconst divideX = style({\n prop: \"divideX\",\n themeGet: getBorderWidth,\n css: (value) => {\n const v = value === true ? 1 : value;\n return {\n [divideSelector]: {\n \"--x-divide-x-reverse\": 0,\n borderRightWidth: `calc(${v} * var(--x-divide-x-reverse))`,\n borderLeftWidth: `calc(${v} * calc(1 - var(--x-divide-x-reverse)))`\n }\n };\n }\n});\nconst divideXReverse = style({\n prop: \"divideXReverse\",\n css: () => ({\n [divideSelector]: {\n \"--x-divide-x-reverse\": \"1\"\n }\n })\n});\nconst divideYReverse = style({\n prop: \"divideYReverse\",\n css: () => ({\n [divideSelector]: {\n \"--x-divide-y-reverse\": \"1\"\n }\n })\n});\nconst divideColor = style({\n prop: \"divideColor\",\n themeGet: getColor,\n css: (value) => ({\n [divideSelector]: {\n borderColor: value\n }\n })\n});\nconst divideStyle = style({\n prop: \"divideStyle\",\n themeGet: getBorderStyle,\n css: (value) => ({\n [divideSelector]: {\n borderStyle: value\n }\n })\n});\nconst getRingWidth = themeGetter({\n name: \"ringWidth\",\n key: \"ringWidths\",\n compose: getPx\n});\nconst ring = style({\n prop: \"ring\",\n themeGet: getRingWidth,\n css: (value) => ({\n \"--x-ring-shadow\": `var(--x-ring-inset, /*!*/ /*!*/) 0 0 0 ${value} var(--x-ring-color)`,\n boxShadow: \"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow, 0 0 #0000)\"\n })\n});\nconst ringInset = style({\n prop: \"ringInset\",\n css: () => ({ \"--x-ring-inset\": \"inset\" })\n});\nconst ringColor = style({\n prop: \"ringColor\",\n themeGet: getColor,\n css: (value) => ({ \"--x-ring-color\": value })\n});\nconst borders = compose(\n border,\n borderTop,\n borderRight,\n borderBottom,\n borderLeft,\n borderColor,\n borderTopColor,\n borderRightColor,\n borderBottomColor,\n borderLeftColor,\n borderWidth,\n borderTopWidth,\n borderRightWidth,\n borderBottomWidth,\n borderLeftWidth,\n borderStyle,\n borderTopStyle,\n borderRightStyle,\n borderBottomStyle,\n borderLeftStyle,\n borderRadius,\n outline,\n outlineColor,\n outlineWidth,\n outlineStyle,\n outlineOffset,\n divideX,\n divideY,\n divideXReverse,\n divideYReverse,\n divideColor,\n divideStyle,\n ring,\n ringInset,\n ringColor\n);\n\nconst getShadow = themeGetter({\n name: \"shadow\",\n key: \"shadows\",\n multiple: true\n});\nconst opacity = style({\n prop: \"opacity\"\n});\nconst boxShadow = style({\n prop: \"boxShadow\",\n themeGet: getShadow,\n css: (value) => ({\n \"--x-shadow\": value,\n boxShadow: \"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow)\"\n })\n});\nconst textShadow = style({\n prop: \"textShadow\",\n themeGet: getShadow\n});\nconst effects = compose(opacity, boxShadow, textShadow);\n\nvar __defProp$4 = Object.defineProperty;\nvar __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$4 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$4 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$4 = (obj2, key, value) => key in obj2 ? __defProp$4(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;\nvar __spreadValues$4 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$4.call(b, prop))\n __defNormalProp$4(a, prop, b[prop]);\n if (__getOwnPropSymbols$4)\n for (var prop of __getOwnPropSymbols$4(b)) {\n if (__propIsEnum$4.call(b, prop))\n __defNormalProp$4(a, prop, b[prop]);\n }\n return a;\n};\nconst row = style({\n prop: \"row\",\n css: () => ({\n boxSizing: \"border-box\",\n flexGrow: 1,\n flexWrap: \"wrap\",\n display: \"flex\"\n })\n});\nconst getColStyle = (props, size) => {\n if (!is(size))\n return null;\n if (size === true) {\n return {\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: \"100%\"\n };\n }\n if (size === \"auto\") {\n return {\n flex: `0 0 auto`,\n maxWidth: \"none\",\n width: \"auto\"\n };\n }\n const sizeWidth = getPercent(size)(props);\n return {\n flex: `0 0 ${sizeWidth}`,\n maxWidth: sizeWidth\n };\n};\nconst col = createStyleGenerator({\n getStyle: (props) => {\n const value = props.col;\n const common = {\n boxSizing: \"border-box\",\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: \"100%\"\n };\n if (obj(value)) {\n const breakpointsStyle = reduceVariants(\n props,\n value,\n (v) => getColStyle(props, v)\n );\n return __spreadValues$4(__spreadValues$4({}, common), breakpointsStyle);\n }\n return __spreadValues$4(__spreadValues$4({}, common), getColStyle(props, value));\n },\n props: [\"col\"]\n});\nconst flexboxGrids = compose(row, col);\n\nvar __defProp$3 = Object.defineProperty;\nvar __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$3 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$3 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$3 = (obj2, key, value) => key in obj2 ? __defProp$3(obj2, key, { enumerable: true, configurable: true, writable: true, value }) : obj2[key] = value;\nvar __spreadValues$3 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$3.call(b, prop))\n __defNormalProp$3(a, prop, b[prop]);\n if (__getOwnPropSymbols$3)\n for (var prop of __getOwnPropSymbols$3(b)) {\n if (__propIsEnum$3.call(b, prop))\n __defNormalProp$3(a, prop, b[prop]);\n }\n return a;\n};\nconst display = style({\n prop: \"display\"\n});\nconst float = style({\n prop: \"float\"\n});\nconst boxSizing = style({\n prop: \"boxSizing\"\n});\nconst container = createStyleGenerator({\n getStyle: (props) => {\n if (!props.container)\n return null;\n const breakpoints = getScreens(props);\n let styles = reduceVariants(\n props,\n breakpoints,\n (v) => v !== 0 ? { maxWidth: v } : {}\n );\n if (obj(props.container)) {\n styles = reduceVariants(props, props.container, () => styles);\n }\n return __spreadValues$3({\n width: \"100%\"\n }, styles);\n },\n props: [\"container\"]\n});\nconst overflow = style({\n prop: \"overflow\"\n});\nconst overflowX = style({\n prop: \"overflowX\"\n});\nconst overflowY = style({\n prop: \"overflowY\"\n});\nconst getZIndex = themeGetter({\n name: \"zIndex\",\n key: \"zIndices\"\n});\nconst zIndex = style({\n prop: \"zIndex\",\n themeGet: getZIndex\n});\nconst position = style({\n prop: \"position\"\n});\nconst getInset = themeGetter({\n name: \"inset\",\n key: \"inset\",\n compose: getPx,\n transform: transformNegative\n});\nconst top = style({\n prop: \"top\",\n themeGet: getInset\n});\nconst right = style({\n prop: \"right\",\n themeGet: getInset\n});\nconst bottom = style({\n prop: \"bottom\",\n themeGet: getInset\n});\nconst left = style({\n prop: \"left\",\n themeGet: getInset\n});\nconst visibility = style({\n prop: \"visibility\"\n});\nconst overscrollBehavior = style({\n prop: \"overscrollBehavior\"\n});\nconst objectFit = style({\n prop: \"objectFit\"\n});\nconst layout = compose(\n boxSizing,\n display,\n float,\n container,\n overflow,\n overflowX,\n overflowY,\n position,\n zIndex,\n top,\n right,\n bottom,\n left,\n visibility,\n overscrollBehavior,\n objectFit\n);\n\nconst alignItems = style({\n prop: \"alignItems\"\n});\nconst alignContent = style({\n prop: \"alignContent\"\n});\nconst justifyContent = style({\n prop: \"justifyContent\"\n});\nconst justifyItems = style({\n prop: \"justifyItems\"\n});\nconst flexWrap = style({\n prop: \"flexWrap\"\n});\nconst flexGrow = style({\n prop: \"flexGrow\"\n});\nconst flexShrink = style({\n prop: \"flexShrink\"\n});\nconst flexBasis = style({\n prop: \"flexBasis\",\n themeGet: getPercent\n});\nconst flexDirection = style({\n prop: \"flexDirection\"\n});\nconst flex = style({\n prop: \"flex\"\n});\nconst justifySelf = style({\n prop: \"justifySelf\"\n});\nconst alignSelf = style({\n prop: \"alignSelf\"\n});\nconst order = style({\n prop: \"order\"\n});\nconst flexboxes = compose(\n display,\n alignItems,\n alignContent,\n justifyContent,\n justifyItems,\n flexWrap,\n flexBasis,\n flexShrink,\n flexGrow,\n flexDirection,\n flex,\n justifySelf,\n alignSelf,\n order\n);\n\nconst getSpace = themeGetter({\n name: \"space\",\n key: \"space\",\n compose: getPx,\n shorthand: true,\n transform: transformNegative\n});\nconst margin = style({\n prop: [\"margin\", \"m\"],\n themeGet: getSpace,\n css: \"margin\"\n});\nconst marginTop = style({\n prop: [\"marginTop\", \"mt\"],\n themeGet: getSpace,\n css: \"marginTop\"\n});\nconst marginRight = style({\n prop: [\"marginRight\", \"mr\"],\n themeGet: getSpace,\n css: \"marginRight\"\n});\nconst marginBottom = style({\n prop: [\"marginBottom\", \"mb\"],\n themeGet: getSpace,\n css: \"marginBottom\"\n});\nconst marginLeft = style({\n prop: [\"marginLeft\", \"ml\"],\n themeGet: getSpace,\n css: \"marginLeft\"\n});\nconst mx = style({\n prop: \"mx\",\n themeGet: getSpace,\n css: [\"marginRight\", \"marginLeft\"]\n});\nconst my = style({\n prop: \"my\",\n themeGet: getSpace,\n css: [\"marginTop\", \"marginBottom\"]\n});\nconst padding = style({\n prop: [\"padding\", \"p\"],\n themeGet: getSpace,\n css: \"padding\"\n});\nconst paddingTop = style({\n prop: [\"paddingTop\", \"pt\"],\n themeGet: getSpace,\n css: \"paddingTop\"\n});\nconst paddingRight = style({\n prop: [\"paddingRight\", \"pr\"],\n themeGet: getSpace,\n css: \"paddingRight\"\n});\nconst paddingBottom = style({\n prop: [\"paddingBottom\", \"pb\"],\n themeGet: getSpace,\n css: \"paddingBottom\"\n});\nconst paddingLeft = style({\n prop: [\"paddingLeft\", \"pl\"],\n themeGet: getSpace,\n css: \"paddingLeft\"\n});\nconst px = style({\n prop: \"px\",\n themeGet: getSpace,\n css: [\"paddingRight\", \"paddingLeft\"]\n});\nconst py = style({\n prop: \"py\",\n themeGet: getSpace,\n css: [\"paddingTop\", \"paddingBottom\"]\n});\nconst spaceY = style({\n prop: \"spaceY\",\n themeGet: getSpace,\n css: (value) => ({\n \"& > :not([hidden]) ~ :not([hidden])\": {\n \"--x-space-y-reverse\": 0,\n marginTop: `calc(${value} * calc(1 - var(--x-space-y-reverse)))`,\n marginBottom: `calc(${value} * var(--x-space-y-reverse))`\n }\n })\n});\nconst spaceX = style({\n prop: \"spaceX\",\n themeGet: getSpace,\n css: (value) => ({\n \"& > :not([hidden]) ~ :not([hidden])\": {\n \"--x-space-x-reverse\": 0,\n marginRight: `calc(${value} * var(--x-space-x-reverse))`,\n marginLeft: `calc(${value} * calc(1 - var(--x-space-x-reverse)))`\n }\n })\n});\nconst spaceXReverse = style({\n prop: \"spaceXReverse\",\n css: () => ({\n \"& > :not([hidden]) ~ :not([hidden])\": {\n \"--x-space-x-reverse\": \"1\"\n }\n })\n});\nconst spaceYReverse = style({\n prop: \"spaceYReverse\",\n css: () => ({\n \"& > :not([hidden]) ~ :not([hidden])\": {\n \"--x-space-y-reverse\": \"1\"\n }\n })\n});\nconst space$1 = compose(\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n mx,\n my,\n padding,\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n px,\n py,\n spaceX,\n spaceY,\n spaceXReverse,\n spaceYReverse\n);\n\nconst gap = style({\n prop: \"gap\",\n themeGet: getSpace\n});\nconst columnGap = style({\n prop: \"columnGap\",\n themeGet: getSpace\n});\nconst rowGap = style({\n prop: \"rowGap\",\n themeGet: getSpace\n});\nconst gridColumn = style({\n prop: \"gridColumn\"\n});\nconst gridRow = style({\n prop: \"gridRow\"\n});\nconst gridAutoFlow = style({\n prop: \"gridAutoFlow\"\n});\nconst gridAutoColumns = style({\n prop: \"gridAutoColumns\"\n});\nconst gridAutoRows = style({\n prop: \"gridAutoRows\"\n});\nconst gridTemplateColumns = style({\n prop: \"gridTemplateColumns\",\n key: \"gridTemplateColumns\"\n});\nconst gridTemplateRows = style({\n prop: \"gridTemplateRows\",\n key: \"gridTemplateRows\"\n});\nconst gridTemplateAreas = style({\n prop: \"gridTemplateAreas\"\n});\nconst gridArea = style({\n prop: \"gridArea\"\n});\nconst grids = compose(\n gap,\n columnGap,\n rowGap,\n gridColumn,\n gridRow,\n gridAutoFlow,\n gridAutoColumns,\n gridAutoRows,\n gridTemplateColumns,\n gridTemplateRows,\n gridTemplateAreas,\n gridArea\n);\n\nconst appearance = style({\n prop: \"appearance\"\n});\nconst cursor = style({\n prop: \"cursor\"\n});\nconst pointerEvents = style({\n prop: \"pointerEvents\"\n});\nconst resize = style({\n prop: \"resize\"\n});\nconst userSelect = style({\n prop: \"userSelect\"\n});\nconst interactivity = compose(\n appearance,\n cursor,\n pointerEvents,\n resize,\n userSelect\n);\n\nconst getSize = themeGetter({\n name: \"size\",\n key: \"sizes\",\n compose: getPercent\n});\nconst width = style({\n prop: \"w\",\n themeGet: getSize,\n css: \"width\"\n});\nconst height = style({\n prop: \"h\",\n themeGet: getSize,\n css: \"height\"\n});\nconst maxWidth = style({\n prop: [\"maxWidth\", \"maxW\"],\n themeGet: getSize,\n css: \"maxWidth\"\n});\nconst maxHeight = style({\n prop: [\"maxHeight\", \"maxH\"],\n themeGet: getSize,\n css: \"maxHeight\"\n});\nconst minWidth = style({\n prop: [\"minWidth\", \"minW\"],\n themeGet: getSize,\n css: \"minWidth\"\n});\nconst minHeight = style({\n prop: [\"minHeight\", \"minH\"],\n themeGet: getSize,\n css: \"minHeight\"\n});\nconst maskSize = style({\n prop: \"maskSize\",\n themeGet: themeGetter({\n name: \"size\",\n key: \"sizes\",\n compose: getPercent,\n multiple: true,\n shorthand: true\n })\n});\nconst sizing = compose(\n width,\n height,\n maxWidth,\n maxHeight,\n minWidth,\n minHeight,\n maskSize\n);\n\nconst fill = style({\n prop: \"fill\",\n themeGet: getColor\n});\nconst stroke = style({\n prop: \"stroke\",\n themeGet: getColor\n});\nconst svg = compose(fill, stroke);\n\nconst borderCollapse = style({\n prop: \"borderCollapse\"\n});\nconst tableLayout = style({\n prop: \"tableLayout\"\n});\nconst tables = compose(borderCollapse, tableLayout);\n\nconst getTransform = themeGetter({\n name: \"transform\",\n key: \"transforms\"\n});\nconst transform = style({\n prop: \"transform\",\n themeGet: getTransform,\n css: (value) => {\n if (value === true) {\n return {\n \"--x-translate-x\": 0,\n \"--x-translate-y\": 0,\n \"--x-rotate\": 0,\n \"--x-skew-x\": 0,\n \"--x-skew-y\": 0,\n \"--x-scale-x\": \"1\",\n \"--x-scale-y\": \"1\",\n transform: \"translate3d(var(--x-translate-x), var(--x-translate-y), 0) rotate(var(--x-rotate)) skewX(var(--x-skew-x)) skewY(var(--x-skew-y)) scaleX(var(--x-scale-x)) scaleY(var(--x-scale-y))\"\n };\n }\n return { transform: value };\n }\n});\nconst transformOrigin = style({\n prop: \"transformOrigin\"\n});\nconst translateX = style({\n prop: \"translateX\",\n themeGet: getSpace,\n css: \"--x-translate-x\"\n});\nconst translateY = style({\n prop: \"translateY\",\n themeGet: getSpace,\n css: \"--x-translate-y\"\n});\nconst rotate = style({\n prop: \"rotate\",\n themeGet: getAngle,\n css: \"--x-rotate\"\n});\nconst skewX = style({\n prop: \"skewX\",\n themeGet: getAngle,\n css: \"--x-skew-x\"\n});\nconst skewY = style({\n prop: \"skewY\",\n themeGet: getAngle,\n css: \"--x-skew-y\"\n});\nconst scale = style({\n prop: \"scale\",\n transform: (v) => String(v),\n css: [\"--x-scale-x\", \"--x-scale-y\"]\n});\nconst scaleX = style({\n prop: \"scaleX\",\n transform: (v) => String(v),\n css: \"--x-scale-x\"\n});\nconst scaleY = style({\n prop: \"scaleY\",\n transform: (v) => String(v),\n css: \"--x-scale-y\"\n});\nconst transforms = compose(\n transform,\n transformOrigin,\n translateX,\n translateY,\n rotate,\n skewX,\n skewY,\n scale,\n scaleX,\n scaleY\n);\n\nvar __defProp$2 = Object.defineProperty;\nvar __defProps$1 = Object.defineProperties;\nvar __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$2 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$2 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues$2 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$2.call(b, prop))\n __defNormalProp$2(a, prop, b[prop]);\n if (__getOwnPropSymbols$2)\n for (var prop of __getOwnPropSymbols$2(b)) {\n if (__propIsEnum$2.call(b, prop))\n __defNormalProp$2(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));\nconst getFont = themeGetter({ name: \"font\", key: \"fonts\" });\nconst getLineHeight = themeGetter({\n name: \"lineHeight\",\n key: \"lineHeights\",\n transform: (value, { props }) => {\n var _a, _b, _c;\n const rootFontSize = (_c = (_b = (_a = props == null ? void 0 : props.theme) == null ? void 0 : _a.settings) == null ? void 0 : _b.rootFontSize) != null ? _c : void 0;\n return rpx(value, { rootFontSize });\n }\n});\nconst getFontWeight = themeGetter({\n name: \"fontWeight\",\n key: \"fontWeights\"\n});\nconst getLetterSpacing = themeGetter({\n name: \"letterSpacing\",\n key: \"letterSpacings\",\n compose: getPx\n});\nconst getFontSize = themeGetter({\n name: \"fontSize\",\n key: \"fontSizes\",\n compose: getPx\n});\nconst fontFamily = style({\n prop: \"fontFamily\",\n themeGet: getFont\n});\nconst fontSize = style({\n prop: \"fontSize\",\n themeGet: getFontSize\n});\nconst fontVariant = style({\n prop: \"fontVariant\"\n});\nconst lineHeight = style({\n prop: \"lineHeight\",\n themeGet: getLineHeight\n});\nconst fontWeight = style({\n prop: \"fontWeight\",\n themeGet: getFontWeight\n});\nconst fontStyle = style({\n prop: \"fontStyle\"\n});\nconst letterSpacing = style({\n prop: \"letterSpacing\",\n themeGet: getLetterSpacing\n});\nconst color = style({\n prop: \"color\",\n themeGet: getColor\n});\nconst textTransform = style({\n prop: \"textTransform\"\n});\nconst textDecoration = style({\n prop: \"textDecoration\"\n});\nconst textAlign = style({\n prop: \"textAlign\"\n});\nconst verticalAlign = style({\n prop: \"verticalAlign\"\n});\nconst whiteSpace = style({\n prop: \"whiteSpace\"\n});\nconst textOverflow = style({\n prop: \"textOverflow\"\n});\nconst listStyleType = style({\n prop: \"listStyleType\"\n});\nconst listStylePosition = style({\n prop: \"listStylePosition\"\n});\nconst all = compose(\n space$1,\n fontFamily,\n fontSize,\n fontStyle,\n fontVariant,\n lineHeight,\n fontWeight,\n textAlign,\n letterSpacing,\n color,\n textTransform,\n textDecoration,\n verticalAlign,\n whiteSpace,\n textOverflow,\n listStyleType,\n listStylePosition\n);\nconst text = style({\n prop: \"text\",\n key: \"texts\",\n css: (value) => ({ theme }) => all(__spreadProps$1(__spreadValues$2({}, value), { theme }))\n});\nconst typography = compose(all, text);\n\nconst system = compose(\n animations,\n backgrounds,\n borders,\n effects,\n flexboxGrids,\n flexboxes,\n grids,\n interactivity,\n layout,\n sizing,\n space$1,\n svg,\n tables,\n transforms,\n transitions$1,\n typography\n);\n\nconst th = (path, defaultValue) => (props) => {\n const value = getThemeValue(props, path);\n if (is(value))\n return value;\n if (is(defaultValue))\n return defaultValue;\n return path;\n};\n[\n getAngle,\n getAnimation,\n getBorder,\n getBorderColor,\n getBorderStyle,\n getBorderWidth,\n getColor,\n getDuration,\n getFont,\n getFontSize,\n getFontWeight,\n getInset,\n getLetterSpacing,\n getLineHeight,\n getPercent,\n getPx,\n getRadius,\n getRingWidth,\n getShadow,\n getSize,\n getSpace,\n getTimingFunction,\n getTransform,\n getTransition,\n getTransitionProperty,\n getZIndex\n].forEach((themeGetter) => {\n th[themeGetter.meta.name] = themeGetter;\n});\n\nconst up = (key, rules) => (props) => {\n const screens = getScreens(props);\n const value = getBreakpointMin(screens, key);\n if (value === null)\n return rules;\n return [`${mediaMinWidth(value)} {`, rules, \"}\"];\n};\nconst down = (key, rules) => (props) => {\n const screens = getScreens(props);\n const value = getBreakpointMax(screens, key);\n if (value === null)\n return null;\n return [`${mediaMaxWidth(value)} {`, rules, \"}\"];\n};\nconst between = (lower, upper, rules) => (props) => {\n const screens = getScreens(props);\n const min = getBreakpointMin(screens, lower);\n const max = getBreakpointMax(screens, upper);\n if (max === null)\n return up(lower, rules)(props);\n if (min === null)\n return down(upper, rules)(props);\n return [`${mediaBetweenWidth(min, max)} {`, rules, \"}\"];\n};\nconst breakpoints = (values) => (props) => {\n const allRules = [];\n const keys = Object.keys(values);\n const keysLength = keys.length;\n for (let i = 0; i < keysLength; i++) {\n const key = keys[i];\n const rules = values[key];\n const result = up(key, rules)(props);\n if (Array.isArray(result)) {\n result.forEach((v) => allRules.push(v));\n } else {\n allRules.push(result);\n }\n }\n return allRules;\n};\n\nconst rpxTransformers = {\n px: (value) => remPx(rpx(value)),\n border: (value) => num(value) && value > 0 ? `${remPx(value)} solid` : value\n};\n\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;\nvar __hasOwnProp$1 = Object.prototype.hasOwnProperty;\nvar __propIsEnum$1 = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues$1 = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp$1.call(b, prop))\n __defNormalProp$1(a, prop, b[prop]);\n if (__getOwnPropSymbols$1)\n for (var prop of __getOwnPropSymbols$1(b)) {\n if (__propIsEnum$1.call(b, prop))\n __defNormalProp$1(a, prop, b[prop]);\n }\n return a;\n};\nconst defaultAlphaVariants = [\n 0,\n 5,\n 10,\n 20,\n 25,\n 30,\n 40,\n 50,\n 60,\n 70,\n 75,\n 80,\n 90,\n 95,\n 100\n];\nconst generateHexAlphaVariants = (colors, variants = defaultAlphaVariants) => {\n const transform = (value, variant) => `${value}${Math.round(variant / 100 * 255).toString(16).padStart(2, \"0\")}`;\n const alphaColors = Object.keys(colors).reduce((obj, key) => {\n variants.forEach((variant) => {\n const value = colors[key];\n const variantKey = `${key}-a${variant}`;\n obj[variantKey] = string(value) ? transform(value, variant) : generateHexAlphaVariants(value, variants);\n });\n return obj;\n }, {});\n return __spreadValues$1(__spreadValues$1({}, colors), alphaColors);\n};\nconst defaultTones = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];\nconst aliasColor = (alias, color, tones = defaultTones, variants = defaultAlphaVariants) => {\n return tones.reduce((obj, tone) => {\n obj[`${alias}-${tone}`] = th.color(`${color}-${tone}`);\n variants.forEach((i) => {\n obj[`${alias}-${tone}-a${i}`] = th.color(`${color}-${tone}-a${i}`);\n });\n return obj;\n }, {});\n};\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nconst space = {\n 0.5: \"0.125rem\",\n 1: \"0.25rem\",\n 1.5: \"0.375rem\",\n 2: \"0.5rem\",\n 2.5: \"0.625rem\",\n 3: \"0.75rem\",\n 3.5: \"0.875rem\",\n 4: \"1rem\",\n 5: \"1.25rem\",\n 6: \"1.5rem\",\n 7: \"1.75rem\",\n 8: \"2rem\",\n 9: \"2.25rem\",\n 10: \"2.5rem\",\n 11: \"2.75rem\",\n 12: \"3rem\",\n 14: \"3.5rem\",\n 16: \"4rem\",\n 20: \"5rem\",\n 24: \"6rem\",\n 28: \"7rem\",\n 32: \"8rem\",\n 36: \"9rem\",\n 40: \"10rem\",\n 44: \"11rem\",\n 48: \"12rem\",\n 52: \"13rem\",\n 56: \"14rem\",\n 60: \"15rem\",\n 64: \"16rem\",\n 72: \"18rem\",\n 80: \"20rem\",\n 96: \"24rem\"\n};\nconst timingFunctions = {\n \"ease-in\": \"cubic-bezier(0.4, 0, 1, 1)\",\n \"ease-out\": \"cubic-bezier(0, 0, 0.2, 1)\",\n \"ease-in-out\": \"cubic-bezier(0.4, 0, 0.2, 1)\"\n};\nconst transitionProperties = {\n default: [\n \"background-color\",\n \"border-color\",\n \"color\",\n \"fill\",\n \"stroke\",\n \"opacity\",\n \"box-shadow\",\n \"transform\"\n ],\n colors: [\"background-color\", \"border-color\", \"color\", \"fill\", \"stroke\"],\n opacity: [\"opacity\"],\n shadow: [\"box-shadow\"],\n transform: [\"transform\"]\n};\nconst transitions = Object.keys(\n transitionProperties\n).reduce((obj, key) => {\n obj[key] = transitionProperties[key].map((property) => `${property} ${timingFunctions[\"ease-in-out\"]} 150ms`).join(\",\");\n return obj;\n}, {});\nconst colors = {\n black: \"#000000\",\n white: \"#ffffff\",\n \"blue-gray-50\": \"#f8fafc\",\n \"blue-gray-100\": \"#f1f5f9\",\n \"blue-gray-200\": \"#e2e8f0\",\n \"blue-gray-300\": \"#cbd5e1\",\n \"blue-gray-400\": \"#94a3b8\",\n \"blue-gray-500\": \"#64748b\",\n \"blue-gray-600\": \"#475569\",\n \"blue-gray-700\": \"#334155\",\n \"blue-gray-800\": \"#1e293b\",\n \"blue-gray-900\": \"#0f172a\",\n \"cool-gray-50\": \"#f9fafb\",\n \"cool-gray-100\": \"#f3f4f6\",\n \"cool-gray-200\": \"#e5e7eb\",\n \"cool-gray-300\": \"#d1d5db\",\n \"cool-gray-400\": \"#9ca3af\",\n \"cool-gray-500\": \"#6b7280\",\n \"cool-gray-600\": \"#4b5563\",\n \"cool-gray-700\": \"#374151\",\n \"cool-gray-800\": \"#1f2937\",\n \"cool-gray-900\": \"#111827\",\n \"gray-50\": \"#fafafa\",\n \"gray-100\": \"#f4f4f5\",\n \"gray-200\": \"#e4e4e7\",\n \"gray-300\": \"#d4d4d8\",\n \"gray-400\": \"#a1a1aa\",\n \"gray-500\": \"#71717a\",\n \"gray-600\": \"#52525b\",\n \"gray-700\": \"#3f3f46\",\n \"gray-800\": \"#27272a\",\n \"gray-900\": \"#18181b\",\n \"true-gray-50\": \"#fafafa\",\n \"true-gray-100\": \"#f5f5f5\",\n \"true-gray-200\": \"#e5e5e5\",\n \"true-gray-300\": \"#d4d4d4\",\n \"true-gray-400\": \"#a3a3a3\",\n \"true-gray-500\": \"#737373\",\n \"true-gray-600\": \"#525252\",\n \"true-gray-700\": \"#404040\",\n \"true-gray-800\": \"#262626\",\n \"true-gray-900\": \"#171717\",\n \"warm-gray-50\": \"#fafaf9\",\n \"warm-gray-100\": \"#f5f5f4\",\n \"warm-gray-200\": \"#e7e5e4\",\n \"warm-gray-300\": \"#d6d3d1\",\n \"warm-gray-400\": \"#a8a29e\",\n \"warm-gray-500\": \"#78716c\",\n \"warm-gray-600\": \"#57534e\",\n \"warm-gray-700\": \"#44403c\",\n \"warm-gray-800\": \"#292524\",\n \"warm-gray-900\": \"#1c1917\",\n \"red-50\": \"#fef2f2\",\n \"red-100\": \"#fee2e2\",\n \"red-200\": \"#fecaca\",\n \"red-300\": \"#fca5a5\",\n \"red-400\": \"#f87171\",\n \"red-500\": \"#ef4444\",\n \"red-600\": \"#dc2626\",\n \"red-700\": \"#b91c1c\",\n \"red-800\": \"#991b1b\",\n \"red-900\": \"#7f1d1d\",\n \"orange-50\": \"#fff7ed\",\n \"orange-100\": \"#ffedd5\",\n \"orange-200\": \"#fed7aa\",\n \"orange-300\": \"#fdba74\",\n \"orange-400\": \"#fb923c\",\n \"orange-500\": \"#f97316\",\n \"orange-600\": \"#ea580c\",\n \"orange-700\": \"#c2410c\",\n \"orange-800\": \"#9a3412\",\n \"orange-900\": \"#7c2d12\",\n \"amber-50\": \"#fffbeb\",\n \"amber-100\": \"#fef3c7\",\n \"amber-200\": \"#fde68a\",\n \"amber-300\": \"#fcd34d\",\n \"amber-400\": \"#fbbf24\",\n \"amber-500\": \"#f59e0b\",\n \"amber-600\": \"#d97706\",\n \"amber-700\": \"#b45309\",\n \"amber-800\": \"#92400e\",\n \"amber-900\": \"#78350f\",\n \"yellow-50\": \"#fefce8\",\n \"yellow-100\": \"#fef9c3\",\n \"yellow-200\": \"#fef08a\",\n \"yellow-300\": \"#fde047\",\n \"yellow-400\": \"#facc15\",\n \"yellow-500\": \"#eab308\",\n \"yellow-600\": \"#ca8a04\",\n \"yellow-700\": \"#a16207\",\n \"yellow-800\": \"#854d0e\",\n \"yellow-900\": \"#713f12\",\n \"lime-50\": \"#f7fee7\",\n \"lime-100\": \"#ecfccb\",\n \"lime-200\": \"#d9f99d\",\n \"lime-300\": \"#bef264\",\n \"lime-400\": \"#a3e635\",\n \"lime-500\": \"#84cc16\",\n \"lime-600\": \"#65a30d\",\n \"lime-700\": \"#4d7c0f\",\n \"lime-800\": \"#3f6212\",\n \"lime-900\": \"#365314\",\n \"green-50\": \"#f0fdf4\",\n \"green-100\": \"#dcfce7\",\n \"green-200\": \"#bbf7d0\",\n \"green-300\": \"#86efac\",\n \"green-400\": \"#4ade80\",\n \"green-500\": \"#22c55e\",\n \"green-600\": \"#16a34a\",\n \"green-700\": \"#15803d\",\n \"green-800\": \"#166534\",\n \"green-900\": \"#14532d\",\n \"emerald-50\": \"#ecfdf5\",\n \"emerald-100\": \"#d1fae5\",\n \"emerald-200\": \"#a7f3d0\",\n \"emerald-300\": \"#6ee7b7\",\n \"emerald-400\": \"#34d399\",\n \"emerald-500\": \"#10b981\",\n \"emerald-600\": \"#059669\",\n \"emerald-700\": \"#047857\",\n \"emerald-800\": \"#065f46\",\n \"emerald-900\": \"#064e3b\",\n \"teal-50\": \"#f0fdfa\",\n \"teal-100\": \"#ccfbf1\",\n \"teal-200\": \"#99f6e4\",\n \"teal-300\": \"#5eead4\",\n \"teal-400\": \"#2dd4bf\",\n \"teal-500\": \"#14b8a6\",\n \"teal-600\": \"#0d9488\",\n \"teal-700\": \"#0f766e\",\n \"teal-800\": \"#115e59\",\n \"teal-900\": \"#134e4a\",\n \"cyan-50\": \"#ecfeff\",\n \"cyan-100\": \"#cffafe\",\n \"cyan-200\": \"#a5f3fc\",\n \"cyan-300\": \"#67e8f9\",\n \"cyan-400\": \"#22d3ee\",\n \"cyan-500\": \"#06b6d4\",\n \"cyan-600\": \"#0891b2\",\n \"cyan-700\": \"#0e7490\",\n \"cyan-800\": \"#155e75\",\n \"cyan-900\": \"#164e63\",\n \"light-blue-50\": \"#f0f9ff\",\n \"light-blue-100\": \"#e0f2fe\",\n \"light-blue-200\": \"#bae6fd\",\n \"light-blue-300\": \"#7dd3fc\",\n \"light-blue-400\": \"#38bdf8\",\n \"light-blue-500\": \"#0ea5e9\",\n \"light-blue-600\": \"#0284c7\",\n \"light-blue-700\": \"#0369a1\",\n \"light-blue-800\": \"#075985\",\n \"light-blue-900\": \"#0c4a6e\",\n \"blue-50\": \"#eff6ff\",\n \"blue-100\": \"#dbeafe\",\n \"blue-200\": \"#bfdbfe\",\n \"blue-300\": \"#93c5fd\",\n \"blue-400\": \"#60a5fa\",\n \"blue-500\": \"#3b82f6\",\n \"blue-600\": \"#2563eb\",\n \"blue-700\": \"#1d4ed8\",\n \"blue-800\": \"#1e40af\",\n \"blue-900\": \"#1e3a8a\",\n \"indigo-50\": \"#eef2ff\",\n \"indigo-100\": \"#e0e7ff\",\n \"indigo-200\": \"#c7d2fe\",\n \"indigo-300\": \"#a5b4fc\",\n \"indigo-400\": \"#818cf8\",\n \"indigo-500\": \"#6366f1\",\n \"indigo-600\": \"#4f46e5\",\n \"indigo-700\": \"#4338ca\",\n \"indigo-800\": \"#3730a3\",\n \"indigo-900\": \"#312e81\",\n \"violet-50\": \"#f5f3ff\",\n \"violet-100\": \"#ede9fe\",\n \"violet-200\": \"#ddd6fe\",\n \"violet-300\": \"#c4b5fd\",\n \"violet-400\": \"#a78bfa\",\n \"violet-500\": \"#8b5cf6\",\n \"violet-600\": \"#7c3aed\",\n \"violet-700\": \"#6d28d9\",\n \"violet-800\": \"#5b21b6\",\n \"violet-900\": \"#4c1d95\",\n \"purple-50\": \"#faf5ff\",\n \"purple-100\": \"#f3e8ff\",\n \"purple-200\": \"#e9d5ff\",\n \"purple-300\": \"#d8b4fe\",\n \"purple-400\": \"#c084fc\",\n \"purple-500\": \"#a855f7\",\n \"purple-600\": \"#9333ea\",\n \"purple-700\": \"#7e22ce\",\n \"purple-800\": \"#6b21a8\",\n \"purple-900\": \"#581c87\",\n \"fuchsia-50\": \"#fdf4ff\",\n \"fuchsia-100\": \"#fae8ff\",\n \"fuchsia-200\": \"#f5d0fe\",\n \"fuchsia-300\": \"#f0abfc\",\n \"fuchsia-400\": \"#e879f9\",\n \"fuchsia-500\": \"#d946ef\",\n \"fuchsia-600\": \"#c026d3\",\n \"fuchsia-700\": \"#a21caf\",\n \"fuchsia-800\": \"#86198f\",\n \"fuchsia-900\": \"#701a75\",\n \"pink-50\": \"#fdf2f8\",\n \"pink-100\": \"#fce7f3\",\n \"pink-200\": \"#fbcfe8\",\n \"pink-300\": \"#f9a8d4\",\n \"pink-400\": \"#f472b6\",\n \"pink-500\": \"#ec4899\",\n \"pink-600\": \"#db2777\",\n \"pink-700\": \"#be185d\",\n \"pink-800\": \"#9d174d\",\n \"pink-900\": \"#831843\",\n \"rose-50\": \"#fff1f2\",\n \"rose-100\": \"#ffe4e6\",\n \"rose-200\": \"#fecdd3\",\n \"rose-300\": \"#fda4af\",\n \"rose-400\": \"#fb7185\",\n \"rose-500\": \"#f43f5e\",\n \"rose-600\": \"#e11d48\",\n \"rose-700\": \"#be123c\",\n \"rose-800\": \"#9f1239\",\n \"rose-900\": \"#881337\"\n};\nconst fontSizes = {\n xs: \"0.75rem\",\n sm: \"0.875rem\",\n default: \"1rem\",\n lg: \"1.125rem\",\n xl: \"1.25rem\",\n \"2xl\": \"1.5rem\",\n \"3xl\": \"1.875rem\",\n \"4xl\": \"2.25rem\",\n \"5xl\": \"3rem\",\n \"6xl\": \"3.75rem\",\n \"7xl\": \"4.5rem\",\n \"8xl\": \"6rem\",\n \"9xl\": \"8rem\"\n};\nconst texts = Object.keys(fontSizes).reduce(\n (texts2, key) => {\n texts2[key] = { fontSize: key, lineHeight: key };\n return texts2;\n },\n {}\n);\nconst defaultTheme = {\n colors: generateHexAlphaVariants(colors),\n space,\n screens: {\n _: 0,\n xs: 0,\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n \"2xl\": 1536\n },\n durations: {\n instant: \"100ms\",\n \"fast-in\": \"250ms\",\n \"fast-out\": \"200ms\",\n \"slow-in\": \"300ms\",\n \"slow-out\": \"250ms\"\n },\n sizes: __spreadProps(__spreadValues({}, space), {\n 0.5: void 0,\n 1: void 0,\n \"0.5s\": space[0.5],\n \"1s\": space[1],\n full: \"100%\",\n xs: \"20rem\",\n sm: \"24rem\",\n md: \"28rem\",\n lg: \"32rem\",\n xl: \"36rem\",\n \"2xl\": \"42rem\",\n \"3xl\": \"48rem\",\n \"4xl\": \"56rem\",\n \"5xl\": \"64rem\",\n \"6xl\": \"72rem\",\n \"7xl\": \"80rem\"\n }),\n radii: {\n none: \"0\",\n sm: \"0.125rem\",\n default: \"0.25rem\",\n md: \"0.375rem\",\n lg: \"0.5rem\",\n xl: \"0.75rem\",\n \"2xl\": \"1rem\",\n \"3xl\": \"1.5rem\",\n full: \"9999px\"\n },\n shadows: {\n xs: \"0 0 0 1px rgba(0, 0, 0, 0.05)\",\n sm: \"0 1px 2px 0 rgba(0, 0, 0, 0.05)\",\n default: \"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)\",\n md: \"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)\",\n lg: \"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)\",\n xl: \"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)\",\n \"2xl\": \"0 25px 50px -12px rgba(0, 0, 0, 0.25)\",\n inner: \"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)\",\n outline: \"0 0 0 3px rgba(66, 153, 225, 0.5)\"\n },\n fontSizes,\n fontWeights: {\n hairline: \"100\",\n thin: \"200\",\n light: \"300\",\n normal: \"400\",\n medium: \"500\",\n semibold: \"600\",\n bold: \"700\",\n extrabold: \"800\",\n black: \"900\"\n },\n fonts: {\n mono: `ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace`,\n serif: `ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif`,\n sans: `ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"`\n },\n letterSpacings: {\n tighter: \"-0.05em\",\n tight: \"-0.025em\",\n normal: \"0em\",\n wide: \"0.025em\",\n wider: \"0.05em\",\n widest: \"0.1em\"\n },\n lineHeights: {\n none: 1,\n tight: 1.25,\n snug: 1.375,\n normal: 1.5,\n relaxed: 1.625,\n loose: 2,\n 3: \".75rem\",\n 4: \"1rem\",\n 5: \"1.25rem\",\n 6: \"1.5rem\",\n 7: \"1.75rem\",\n 8: \"2rem\",\n 9: \"2.25rem\",\n 10: \"2.5rem\",\n xs: \"1rem\",\n sm: \"1.25rem\",\n default: \"1.5rem\",\n lg: \"1.75rem\",\n xl: \"1.75rem\",\n \"2xl\": \"2rem\",\n \"3xl\": \"2.25rem\",\n \"4xl\": \"2.5rem\",\n \"5xl\": 1,\n \"6xl\": 1,\n \"7xl\": 1,\n \"8xl\": 1,\n \"9xl\": 1\n },\n gridTemplateColumns: {\n 1: \"repeat(1, minmax(0, 1fr))\",\n 2: \"repeat(2, minmax(0, 1fr))\",\n 3: \"repeat(3, minmax(0, 1fr))\",\n 4: \"repeat(4, minmax(0, 1fr))\",\n 5: \"repeat(5, minmax(0, 1fr))\",\n 6: \"repeat(6, minmax(0, 1fr))\",\n 7: \"repeat(7, minmax(0, 1fr))\",\n 8: \"repeat(8, minmax(0, 1fr))\",\n 9: \"repeat(9, minmax(0, 1fr))\",\n 10: \"repeat(10, minmax(0, 1fr))\",\n 11: \"repeat(11, minmax(0, 1fr))\",\n 12: \"repeat(12, minmax(0, 1fr))\"\n },\n gridTemplateRows: {\n 1: \"repeat(1, minmax(0, 1fr))\",\n 2: \"repeat(2, minmax(0, 1fr))\",\n 3: \"repeat(3, minmax(0, 1fr))\",\n 4: \"repeat(4, minmax(0, 1fr))\",\n 5: \"repeat(5, minmax(0, 1fr))\",\n 6: \"repeat(6, minmax(0, 1fr))\"\n },\n borderWidths: {\n default: 1\n },\n ringWidths: {\n default: 3\n },\n borders: {\n default: \"1px solid transparent\"\n },\n texts,\n transitions,\n transitionProperties,\n timingFunctions,\n animations: {\n spin: \"x-spin 1s linear infinite\",\n ping: \"x-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite\",\n pulse: \"x-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite\",\n bounce: \"x-bounce 1s infinite\"\n },\n states: {\n _: null,\n motionSafe: \"@media (prefers-reduced-motion: no-preference)\",\n motionReduce: \"@media (prefers-reduced-motion: reduce)\",\n first: \"&:first-child\",\n last: \"&:last-child\",\n odd: \"&:odd\",\n even: \"&:even\",\n visited: \"&:visited\",\n checked: \"&:checked\",\n focusWithin: \"&:focus-within\",\n hover: \"&:hover\",\n focus: \"&:focus\",\n focusVisible: \"&:focus-visible\",\n active: \"&:active\",\n disabled: \"&:disabled, &[aria-disabled=true]\",\n placeholder: \"&::placeholder\"\n },\n xstyled: {\n cache: true\n }\n};\n\nconst getPreflightStyles = (theme) => `\n/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */\n*,::after,::before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}\n\n/* Role button pointer */\n[role=button], button {\n cursor: pointer;\n}\n\n/* Remove default margins */\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\n/* Remove headings styles */\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/* Unstyle lists */\nol,\nul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/* Image are block-level */\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block;\n vertical-align: middle;\n}\n\n/* Reset border styles */\n*,\n::before,\n::after {\n border-width: 0;\n border-style: solid;\n border-color: ${th.color(\"default-border-color\", \"currentColor\")({ theme })};\n}\n\n* {\n --x-ring-color: ${th.color(\n \"default-ring-color\",\n \"rgba(59,130,246,0.5)\"\n)({ theme })};\n}\n\n/* Default outline on buttons */\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n\n// Animations\n@keyframes x-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes x-ping {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 75%, 100% {\n transform: scale(2);\n opacity: 0;\n }\n}\n\n@keyframes x-pulse {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: .5;\n }\n}\n\n@keyframes x-bounce {\n 0%, 100% {\n transform: translateY(-25%);\n animationTimingFunction: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: translateY(0);\n animationTimingFunction: cubic-bezier(0, 0, 0.2, 1);\n }\n}\n`;\n\nexport { aliasColor, alignContent, alignItems, alignSelf, animation, animationDuration, animationTimingFunction, animations, appearance, background, backgroundAttachment, backgroundClip, backgroundColor, backgroundImage, backgroundPosition, backgroundRepeat, backgroundSize, backgrounds, between, border, borderBottom, borderBottomColor, borderBottomStyle, borderBottomWidth, borderCollapse, borderColor, borderLeft, borderLeftColor, borderLeftStyle, borderLeftWidth, borderRadius, borderRight, borderRightColor, borderRightStyle, borderRightWidth, borderStyle, borderTop, borderTopColor, borderTopStyle, borderTopWidth, borderWidth, borders, bottom, boxShadow, boxSizing, breakpoints, col, color, columnGap, compose, container, createStyleGenerator, cursor, defaultTheme, display, divideColor, divideStyle, divideX, divideXReverse, divideY, divideYReverse, down, effects, fill, flex, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, flexboxGrids, flexboxes, float, fontFamily, fontSize, fontStyle, fontVariant, fontWeight, gap, generateHexAlphaVariants, getAngle, getAnimation, getBorder, getBorderColor, getBorderStyle, getBorderWidth, getBreakpointMax, getBreakpointMin, getColor, getDuration, getFont, getFontSize, getFontWeight, getInset, getLetterSpacing, getLineHeight, getPercent, getPreflightStyles, getPx, getRadius, getRingWidth, getScreens, getShadow, getSize, getSpace, getStates, getTimingFunction, getTransform, getTransition, getTransitionProperty, getVariants, getZIndex, gradientFrom, gradientTo, gradientVia, gridArea, gridAutoColumns, gridAutoFlow, gridAutoRows, gridColumn, gridRow, gridTemplateAreas, gridTemplateColumns, gridTemplateRows, grids, height, interactivity, justifyContent, justifyItems, justifySelf, layout, left, letterSpacing, lineHeight, listStylePosition, listStyleType, margin, marginBottom, marginLeft, marginRight, marginTop, maskSize, maxHeight, maxWidth, minHeight, minWidth, mx, my, objectFit, opacity, order, outline, outlineColor, outlineOffset, outlineStyle, outlineWidth, overflow, overflowX, overflowY, overscrollBehavior, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, pointerEvents, position, px, py, resize, right, ring, ringColor, ringInset, rotate, row, rowGap, rpxTransformers, scale, scaleX, scaleY, sizing, skewX, skewY, space$1 as space, spaceX, spaceXReverse, spaceY, spaceYReverse, stroke, style, svg, system, tableLayout, tables, text, textAlign, textDecoration, textOverflow, textShadow, textTransform, th, themeGetter, top, transform, transformOrigin, transforms, transition, transitionDelay, transitionDuration, transitionProperty, transitionTimingFunction, transitions$1 as transitions, translateX, translateY, typography, up, userSelect, verticalAlign, visibility, whiteSpace, width, zIndex };\n//# sourceMappingURL=index.mjs.map\n","import * as React from 'react';\nimport { useMemo } from 'react';\nimport { getScreens, system, getBreakpointMin, getBreakpointMax } from '@xstyled/system';\nimport { obj, string, func, cascade } from '@xstyled/util';\n\nfunction useThemeScreens(theme) {\n return getScreens({ theme });\n}\nfunction useThemeMinValue(theme, key) {\n const screens = useThemeScreens(theme);\n const value = screens[key];\n return value === 0 ? null : value;\n}\nfunction useThemeMaxValue(theme, key) {\n const screens = useThemeScreens(theme);\n const breakPoint = screens[key];\n return breakPoint === 0 ? null : breakPoint - 0.02;\n}\nfunction useViewportWidth() {\n const [width, setWidth] = React.useState(\n typeof window === \"undefined\" ? null : window.innerWidth\n );\n React.useEffect(() => {\n function handleResize() {\n setWidth(window.innerWidth);\n }\n window.addEventListener(\"resize\", handleResize);\n setWidth(window.innerWidth);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n return width;\n}\nfunction useThemeBreakpoint(theme) {\n const screns = useThemeScreens(theme);\n const width = useViewportWidth();\n return React.useMemo(() => {\n return Object.keys(screns).reverse().find((screen) => width !== null && width > screns[screen]) || null;\n }, [screns, width]);\n}\nfunction useThemeUp(theme, key) {\n const value = useThemeMinValue(theme, key);\n const width = useViewportWidth();\n return width !== null && value !== null && width >= value;\n}\nfunction useThemeDown(theme, key) {\n const value = useThemeMaxValue(theme, key);\n const width = useViewportWidth();\n return width !== null && value !== null && width < value;\n}\n\nconst join = (...args) => args.filter(Boolean).join(\".\");\nconst toVarName = (key) => `--${key.replace(/\\./g, \"-\")}`;\nconst toVarValue = (key, value) => `var(${toVarName(key)}, ${value})`;\nconst toProp = (key, value) => `${key}: ${value};`;\nfunction toCustomPropertiesReferences(values, theme, keys = Object.keys(values), parent) {\n const next = Array.isArray(values) ? [] : {};\n for (const i in keys) {\n const key = keys[i];\n const value = values[key];\n const name = join(parent, key);\n if (obj(value)) {\n next[key] = toCustomPropertiesReferences(\n value,\n theme,\n Object.keys(value),\n name\n );\n continue;\n }\n if (string(value)) {\n next[key] = toVarValue(name, value);\n continue;\n }\n if (func(value)) {\n next[key] = toVarValue(name, cascade(value, { theme }));\n continue;\n }\n }\n return next;\n}\nfunction toCustomPropertiesDeclarations(values, theme, keys = Object.keys(values), parent, state = { value: \"\" }) {\n for (const i in keys) {\n const key = keys[i];\n const value = values[key];\n const name = join(parent, key);\n if (obj(value)) {\n toCustomPropertiesDeclarations(\n value,\n theme,\n Object.keys(value),\n name,\n state\n );\n continue;\n }\n if (string(value)) {\n state.value += toProp(toVarName(name), value);\n continue;\n }\n if (func(value)) {\n state.value += toProp(toVarName(name), cascade(value, { theme }));\n continue;\n }\n }\n return state.value;\n}\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst STORAGE_KEY = \"xstyled-color-mode\";\nconst isLocalStorageAvailable = typeof window !== \"undefined\" && (() => {\n try {\n const key = \"xstyled-test-key\";\n window.localStorage.setItem(key, key);\n window.localStorage.removeItem(key);\n return true;\n } catch (err) {\n return false;\n }\n})();\nconst storage = isLocalStorageAvailable ? {\n get: () => window.localStorage.getItem(STORAGE_KEY),\n set: (value) => {\n window.localStorage.setItem(STORAGE_KEY, value);\n },\n clear: () => window.localStorage.removeItem(STORAGE_KEY)\n} : {\n get: () => null,\n set: () => {\n },\n clear: () => {\n }\n};\nconst COLOR_MODE_CLASS_PREFIX = \"xstyled-color-mode-\";\nconst getColorModeClassName = (mode) => `${COLOR_MODE_CLASS_PREFIX}${mode}`;\nconst XSTYLED_COLORS_PREFIX = \"xstyled-colors\";\nconst SYSTEM_MODES = [\"light\", \"dark\"];\nfunction getModeTheme(theme, mode) {\n return __spreadProps(__spreadValues({}, theme), {\n colors: __spreadValues(__spreadValues({}, theme.colors), theme.colors.modes[mode])\n });\n}\nconst getMediaQuery = (query) => `@media ${query}`;\nconst getColorModeQuery = (mode) => `(prefers-color-scheme: ${mode})`;\nfunction checkHasColorModes(theme) {\n return Boolean(theme && theme.colors && theme.colors.modes);\n}\nfunction checkHasCustomPropertiesEnabled(theme) {\n return Boolean(\n theme && (theme.useCustomProperties === void 0 || theme.useCustomProperties)\n );\n}\nfunction checkHasMediaQueryEnabled(theme) {\n return Boolean(\n theme && (theme.useColorSchemeMediaQuery === void 0 || theme.useColorSchemeMediaQuery)\n );\n}\nfunction getInitialColorModeName(theme) {\n return theme.initialColorModeName || \"default\";\n}\nfunction getDefaultColorModeName(theme) {\n return theme.defaultColorModeName || getInitialColorModeName(theme);\n}\nfunction getUsedColorKeys(modes) {\n let keys = [];\n for (const key in modes) {\n keys = [...keys, ...Object.keys(modes[key])];\n }\n return keys;\n}\nfunction createColorStyles(theme, { targetSelector = \"body\" } = {}) {\n if (!checkHasColorModes(theme))\n return null;\n const _a = theme.colors, { modes } = _a, colors = __objRest(_a, [\"modes\"]);\n const colorKeys = getUsedColorKeys(modes);\n let styles = toCustomPropertiesDeclarations(\n colors,\n theme,\n colorKeys,\n XSTYLED_COLORS_PREFIX\n );\n function getModePropertiesDeclarations(mode) {\n const modeTheme = getModeTheme(theme, mode);\n const _a2 = modeTheme.colors, { modes: modes2 } = _a2, colors2 = __objRest(_a2, [\"modes\"]);\n return toCustomPropertiesDeclarations(\n __spreadValues(__spreadValues({}, colors2), modes2[mode]),\n modeTheme,\n colorKeys,\n XSTYLED_COLORS_PREFIX\n );\n }\n if (theme.useColorSchemeMediaQuery !== false) {\n SYSTEM_MODES.forEach((mode) => {\n if (modes[mode]) {\n const mediaQuery = getMediaQuery(getColorModeQuery(mode));\n styles += `${mediaQuery}{${getModePropertiesDeclarations(mode)}}`;\n }\n });\n }\n const initialModeName = getInitialColorModeName(theme);\n [initialModeName, ...Object.keys(modes)].forEach((mode) => {\n const key = `&.${getColorModeClassName(mode)}`;\n styles += `${key}{${getModePropertiesDeclarations(mode)}}`;\n });\n return `${targetSelector}{${styles}}`;\n}\nfunction getSystemModeMql(mode) {\n if (typeof window === \"undefined\" || window.matchMedia === void 0) {\n return null;\n }\n const query = getColorModeQuery(mode);\n return window.matchMedia(query);\n}\nfunction useSystemMode(theme) {\n const configs = React.useMemo(() => {\n if (!checkHasMediaQueryEnabled(theme))\n return [];\n return SYSTEM_MODES.map((mode) => {\n if (!checkHasColorModes(theme))\n return null;\n if (!theme.colors.modes[mode])\n return null;\n const mql = getSystemModeMql(mode);\n return mql ? { mode, mql } : null;\n }).filter(Boolean);\n }, [theme]);\n const [systemMode, setSystemMode] = React.useState(() => {\n const config = configs.find((config2) => config2.mql.matches);\n return config ? config.mode : null;\n });\n React.useEffect(() => {\n const cleans = configs.map(({ mode, mql }) => {\n const handler = ({ matches }) => {\n if (matches) {\n setSystemMode(mode);\n } else {\n setSystemMode((previousMode) => previousMode === mode ? null : mode);\n }\n };\n mql.addEventListener(\"change\", handler);\n return () => mql.removeEventListener(\"change\", handler);\n });\n return () => cleans.forEach((clean) => clean());\n });\n return systemMode;\n}\nconst useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? React.useLayoutEffect : React.useEffect;\nfunction useColorModeState(theme, { target } = {}) {\n const systemMode = useSystemMode(theme);\n const defaultColorMode = getDefaultColorModeName(theme);\n const initialColorMode = getInitialColorModeName(theme);\n const [mode, setMode] = React.useState(() => {\n if (!checkHasColorModes(theme))\n return null;\n return defaultColorMode;\n });\n const customPropertiesEnabled = checkHasCustomPropertiesEnabled(theme);\n const manuallySetMode = React.useCallback((value) => {\n setMode(value || null);\n if (value) {\n storage.set(value);\n } else {\n storage.clear();\n }\n }, []);\n useIsomorphicLayoutEffect(() => {\n if (!checkHasColorModes(theme))\n return;\n const storedMode = storage.get();\n const initialMode = storedMode || systemMode || defaultColorMode;\n if (mode !== initialMode) {\n setMode(storedMode || systemMode || defaultColorMode);\n }\n }, []);\n useIsomorphicLayoutEffect(() => {\n const storedMode = storage.get();\n if (storedMode)\n return;\n const targetMode = systemMode || defaultColorMode;\n if (targetMode === mode)\n return;\n setMode(targetMode);\n }, [mode, systemMode, defaultColorMode]);\n useIsomorphicLayoutEffect(() => {\n if (!mode)\n return void 0;\n if (!customPropertiesEnabled)\n return void 0;\n const stored = storage.get();\n const initial = initialColorMode !== mode;\n if (!stored && !initial)\n return void 0;\n const className = getColorModeClassName(mode);\n const usedTarget = target || document.body;\n usedTarget.classList.add(className);\n return () => {\n usedTarget.classList.remove(className);\n };\n }, [customPropertiesEnabled, target, mode, initialColorMode]);\n return [mode, manuallySetMode];\n}\nfunction useColorModeTheme(theme, mode) {\n const [initialMode] = React.useState(mode);\n const customPropertiesTheme = React.useMemo(() => {\n if (!initialMode)\n return null;\n if (!checkHasCustomPropertiesEnabled(theme))\n return null;\n if (!checkHasColorModes(theme))\n return theme;\n const _a = theme.colors, { modes } = _a, colors = __objRest(_a, [\"modes\"]);\n const colorKeys = getUsedColorKeys(modes);\n return __spreadProps(__spreadValues({}, theme), {\n colors: __spreadProps(__spreadValues(__spreadValues({}, colors), toCustomPropertiesReferences(\n colors,\n theme,\n colorKeys,\n XSTYLED_COLORS_PREFIX\n )), {\n modes\n }),\n __rawColors: theme.colors\n });\n }, [initialMode, theme]);\n const swapModeTheme = React.useMemo(() => {\n if (!mode)\n return null;\n if (checkHasCustomPropertiesEnabled(theme))\n return null;\n if (!checkHasColorModes(theme))\n return theme;\n if (mode === getInitialColorModeName(theme)) {\n return __spreadProps(__spreadValues({}, theme), { __colorMode: mode });\n }\n return __spreadProps(__spreadValues({}, theme), {\n colors: __spreadValues(__spreadValues({}, theme.colors), theme.colors.modes[mode]),\n __colorMode: mode,\n __rawColors: theme.colors\n });\n }, [theme, mode]);\n return customPropertiesTheme || swapModeTheme;\n}\nconst ColorModeContext = React.createContext(null);\nfunction useColorMode() {\n const colorModeState = React.useContext(ColorModeContext);\n if (!colorModeState) {\n throw new Error(`[useColorMode] requires the ColorModeProvider component`);\n }\n return colorModeState;\n}\nfunction createColorModeProvider({\n ThemeContext,\n ThemeProvider,\n ColorModeStyle\n}) {\n function ColorModeProvider({\n children,\n target,\n targetSelector\n }) {\n const theme = React.useContext(ThemeContext);\n if (!theme) {\n throw new Error(\n \"[ColorModeProvider] requires ThemeProvider upper in the tree\"\n );\n }\n const colorState = useColorModeState(theme, { target });\n const colorModeTheme = useColorModeTheme(theme, colorState[0]);\n return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ColorModeStyle, {\n targetSelector\n }), /* @__PURE__ */ React.createElement(ThemeProvider, {\n theme: colorModeTheme\n }, /* @__PURE__ */ React.createElement(ColorModeContext.Provider, {\n value: colorState\n }, children)));\n }\n return ColorModeProvider;\n}\nfunction getInitScript({\n target = \"document.body\"\n} = {}) {\n return `(function() { try {\n var mode = localStorage.getItem('${STORAGE_KEY}');\n if (mode) ${target}.classList.add('${COLOR_MODE_CLASS_PREFIX}' + mode);\n } catch (e) {} })();`;\n}\nfunction getColorModeInitScriptElement(options) {\n return /* @__PURE__ */ React.createElement(\"script\", {\n key: \"xstyled-color-mode-init\",\n dangerouslySetInnerHTML: { __html: getInitScript(options) }\n });\n}\nfunction getColorModeInitScriptTag(options) {\n return `<script>${getInitScript(options)}<\\/script>`;\n}\n\nfunction createBox() {\n return [`&&{`, system, `}`];\n}\ncreateBox.meta = system.meta;\n\nconst getMediaWidth = (getBreakpointBound) => (value) => (props) => {\n const v = getBreakpointBound(getScreens(props), value);\n return v === null ? \"0\" : v || value;\n};\nconst mediaGetters = {\n \"min-width\": getMediaWidth(getBreakpointMin),\n \"max-width\": getMediaWidth(getBreakpointMax)\n};\n\nconst PROP_CHAR = `[-\\\\w]`;\nconst VALUE_CHAR = `(?:\\\\\\\\[\\\\s\\\\S]|[^\\\\\\\\;{}])`;\nconst PROP_PATT = `(${PROP_CHAR}+)(\\\\s*:\\\\s*)(?=\\\\S)(${VALUE_CHAR}*?)(\\\\s*!important)?(\\\\s*;)`;\nconst MEDIA_CHAR = `[^{]`;\nconst MEDIA_PATT = `(@media\\\\b\\\\s*)(?=\\\\S)(${MEDIA_CHAR}+?)(\\\\s*\\\\{)`;\nconst MATCH_REGEXP = new RegExp(`(?:${PROP_PATT}|${MEDIA_PATT})`, `g`);\nconst QUERY_REGEXP = new RegExp(\n `(\\\\(\\\\s*)(${PROP_CHAR}+)(\\\\s*:\\\\s*)([^\\\\)]*?)(\\\\s*\\\\))`,\n `g`\n);\nconst mediaTransform = (rawValue) => {\n let matches;\n let lastIndex = 0;\n const values = [];\n while (matches = QUERY_REGEXP.exec(rawValue)) {\n const [, open, prop, colon, value, close] = matches;\n const getter = mediaGetters[prop];\n if (getter) {\n values.push(rawValue.slice(lastIndex, matches.index));\n values.push(\n (p) => `${open}${prop}${colon}${getter(value)(p)}${close}`\n );\n lastIndex = matches.index + matches[0].length;\n }\n }\n values.push(rawValue.slice(lastIndex, rawValue.length));\n return values;\n};\nconst createTransform = (generator) => (rawValue) => {\n if (typeof rawValue !== \"string\")\n return rawValue;\n let matches;\n let lastIndex = 0;\n const values = [];\n while (matches = MATCH_REGEXP.exec(rawValue)) {\n const [, prop, colon, value, imp, semi, media, query, brace] = matches;\n if (media) {\n values.push(rawValue.slice(lastIndex, matches.index));\n values.push(media);\n mediaTransform(query).forEach((v) => values.push(v));\n values.push(brace);\n lastIndex = matches.index + matches[0].length;\n } else {\n const getter = generator.meta.cssGetters[prop];\n if (getter) {\n values.push(rawValue.slice(lastIndex, matches.index));\n values.push(\n (p) => `${prop}${colon}${getter(value)(p)}${imp || \"\"}${semi}`\n );\n lastIndex = matches.index + matches[0].length;\n }\n }\n }\n values.push(rawValue.slice(lastIndex, rawValue.length));\n return values;\n};\n\nconst createUseGetter = (getter, useTheme) => (value, defaultValue) => {\n const theme = useTheme();\n return useMemo(\n () => getter(value, defaultValue)({ theme }),\n [value, defaultValue, theme]\n );\n};\n\nexport { ColorModeContext, createBox, createColorModeProvider, createColorStyles, createTransform, createUseGetter, getColorModeInitScriptElement, getColorModeInitScriptTag, useColorMode, useColorModeState, useColorModeTheme, useThemeBreakpoint, useThemeDown, useThemeScreens, useThemeUp, useViewportWidth };\n//# sourceMappingURL=index.mjs.map\n","import styled$1, { createGlobalStyle as createGlobalStyle$1, ThemeContext, ThemeProvider, css as css$1 } from 'styled-components';\nexport { ServerStyleSheet, StyleSheetManager, ThemeConsumer, ThemeContext, ThemeProvider, isStyledComponent, keyframes, withTheme } from 'styled-components';\nimport { createColorStyles, createColorModeProvider, createUseGetter, useThemeScreens, useThemeBreakpoint, useThemeUp, useThemeDown, createTransform } from '@xstyled/core';\nexport { getColorModeInitScriptElement, getColorModeInitScriptTag, useColorMode, useViewportWidth } from '@xstyled/core';\nimport { useContext } from 'react';\nimport { th, getPreflightStyles, system as system$1 } from '@xstyled/system';\nexport * from '@xstyled/system';\nimport { flattenStrings, string } from '@xstyled/util';\n\nconst ColorModeStyle = createGlobalStyle$1`${(p) => createColorStyles(p.theme, { targetSelector: p.targetSelector })}`;\nconst ColorModeProvider = createColorModeProvider({\n ThemeContext,\n ThemeProvider,\n ColorModeStyle\n});\n\nconst useTheme = () => {\n return useContext(ThemeContext);\n};\nconst useTh = createUseGetter(th, useTheme);\nconst useAngle = createUseGetter(th.angle, useTheme);\nconst useAnimation = createUseGetter(th.animation, useTheme);\nconst useBorder = createUseGetter(th.border, useTheme);\nconst useBorderColor = createUseGetter(th.borderColor, useTheme);\nconst useBorderStyle = createUseGetter(th.borderStyle, useTheme);\nconst useBorderWidth = createUseGetter(th.borderWidth, useTheme);\nconst useColor = createUseGetter(th.color, useTheme);\nconst useDuration = createUseGetter(th.duration, useTheme);\nconst useFont = createUseGetter(th.font, useTheme);\nconst useFontSize = createUseGetter(th.fontSize, useTheme);\nconst useFontWeight = createUseGetter(th.fontWeight, useTheme);\nconst useInset = createUseGetter(th.inset, useTheme);\nconst useLetterSpacing = createUseGetter(th.letterSpacing, useTheme);\nconst useLineHeight = createUseGetter(th.lineHeight, useTheme);\nconst usePercent = createUseGetter(th.percent, useTheme);\nconst usePx = createUseGetter(th.px, useTheme);\nconst useRadius = createUseGetter(th.radius, useTheme);\nconst useRingWidth = createUseGetter(th.ringWidth, useTheme);\nconst useShadow = createUseGetter(th.shadow, useTheme);\nconst useSize = createUseGetter(th.size, useTheme);\nconst useSpace = createUseGetter(th.space, useTheme);\nconst useTimingFunction = createUseGetter(th.timingFunction, useTheme);\nconst useTransform = createUseGetter(th.transform, useTheme);\nconst useTransition = createUseGetter(th.transition, useTheme);\nconst useTransitionProperty = createUseGetter(\n th.transitionProperty,\n useTheme\n);\nconst useZIndex = createUseGetter(th.zIndex, useTheme);\n\nconst useScreens = () => {\n return useThemeScreens(useTheme());\n};\nconst useBreakpoint = () => {\n return useThemeBreakpoint(useTheme());\n};\nconst useUp = (key) => {\n return useThemeUp(useTheme(), key);\n};\nconst useDown = (key) => {\n return useThemeDown(useTheme(), key);\n};\n\nconst Preflight = createGlobalStyle$1(\n ({ theme }) => getPreflightStyles(theme)\n);\n\nconst createCssFunction = (generator) => {\n const transform = createTransform(generator);\n return (...args) => {\n const scCssArgs = css$1(...args);\n const flattenedArgs = flattenStrings(scCssArgs);\n return flattenedArgs.map(transform);\n };\n};\n\nconst scStyled = typeof styled$1 === \"function\" ? styled$1 : styled$1.default;\n\nconst getCreateStyle = (baseCreateStyle, css, generator) => {\n const createStyle = (...args) => baseCreateStyle`${css(...args)}${generator}`;\n createStyle.attrs = (attrs) => getCreateStyle(baseCreateStyle.attrs(attrs), css, generator);\n createStyle.withConfig = (config) => getCreateStyle(baseCreateStyle.withConfig(config), css, generator);\n return createStyle;\n};\nconst createShouldForwardProp = (generator) => {\n const propSet = new Set(generator.meta.props);\n return (prop, defaultValidatorFn, elementToBeCreated) => {\n if (string(prop) && propSet.has(prop)) {\n return false;\n }\n if (typeof elementToBeCreated === \"string\") {\n return defaultValidatorFn(prop);\n }\n return true;\n };\n};\nconst createBaseStyled = (css, generator) => {\n const config = generator ? {\n shouldForwardProp: createShouldForwardProp(generator)\n } : {};\n return (component) => {\n const baseStyled = scStyled(component);\n return getCreateStyle(\n config ? baseStyled.withConfig(config) : baseStyled,\n css,\n generator\n );\n };\n};\nconst createStyled = (generator) => {\n const css = createCssFunction(generator);\n const styled = createBaseStyled(css);\n const xstyled = createBaseStyled(css, generator);\n styled.box = xstyled(\"div\");\n Object.keys(scStyled).forEach((key) => {\n styled[key] = styled(key);\n styled[`${key}Box`] = xstyled(key);\n });\n return styled;\n};\n\nconst createX = (generator) => {\n const xstyled = createBaseStyled(createCssFunction(generator), generator);\n const x = {};\n Object.keys(scStyled).forEach((tag) => {\n x[tag] = xstyled(tag)``;\n });\n return x;\n};\n\nconst createCreateGlobalStyle = (generator) => {\n const css = createCssFunction(generator);\n return (...args) => createGlobalStyle$1([\n css(...args)\n ]);\n};\n\nconst createCss = (generator) => {\n return {\n css: createCssFunction(generator),\n x: createX(generator),\n styled: createStyled(generator),\n createGlobalStyle: createCreateGlobalStyle(generator)\n };\n};\n\nconst { css, styled, x, createGlobalStyle } = createCss(system$1);\n\nexport { ColorModeProvider, Preflight, createCss, createGlobalStyle, css, styled as default, styled, useAngle, useAnimation, useBorder, useBorderColor, useBorderStyle, useBorderWidth, useBreakpoint, useColor, useDown, useDuration, useFont, useFontSize, useFontWeight, useInset, useLetterSpacing, useLineHeight, usePercent, usePx, useRadius, useRingWidth, useScreens, useShadow, useSize, useSpace, useTh, useTheme, useTimingFunction, useTransform, useTransition, useTransitionProperty, useUp, useZIndex, x };\n//# sourceMappingURL=index.mjs.map\n"],"names":["specialProperties","is","n","num","string","obj","func","negative","get","from","path","paths","pathsLength","result","i","path2","assign","target","source","key","merge","cascade","value","arg","getThemeValue","props","initial","flattenStrings","array","flattenedArray","lastIndex","last","__pow","round","unit","unit2","ms","px$1","deg","pxToRem","rootFontSize","rpx","options","percent","transformNegative","_","rawValue","variants","neg","abs","varVal","mediaMinWidth","getBreakpointMin","screens","getBreakpointMax","__defProp$6","__getOwnPropSymbols$6","__hasOwnProp$6","__propIsEnum$6","__defNormalProp$6","__spreadValues$6","a","b","prop","getScreens","getStates","getVariants","states","medias","selector","getCachedVariants","cache","cacheSupported","caches","isCacheDisabled","theme","_a","getThemeCache","noopCache","getCache","namespace","__defProp$5","__getOwnPropSymbols$5","__hasOwnProp$5","__propIsEnum$5","__defNormalProp$5","obj2","__spreadValues$5","themeGetterId","SPLITTERS","splitValue","splitter","transform","themeGetter","name","defaultTransform","compose2","shorthand","multiple","id","getter","defaultValue","res","cacheKey","getValue","value2","localDefaultValue","res2","fromTheme","createStyleGenerator","getStyle","cssGetters","generators","generator","values","reduceVariants","styles","style2","state","getStyleFactory","mixin","themeGet","fromValue","indexGeneratorsByProp","index","j","sortStyles","variant","compose","flatGenerators","gen","generatorsByProp","props2","sort","merged","getMixinFromCSSProperties","properties","getMixinFromCSSOption","css","dasherize","style","cssPropsOption","cssProps","mixin2","generators2","prop2","getters","cssProp","getPx","_b","_c","getDuration","getAngle","getPercent","getTransition","getTransitionProperty","getTimingFunction","transition","transitionProperty","transitionDuration","transitionTimingFunction","transitionDelay","transitions$1","getAnimation","animation","animationDuration","animationTimingFunction","animations","getColor","gradientBackgrounds","background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","backgroundClip","gradientFrom","gradientVia","gradientTo","backgrounds","getBorder","getBorderWidth","getBorderColor","getBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","outline","outlineColor","outlineWidth","outlineStyle","outlineOffset","getRadius","borderRadius","divideSelector","divideY","v","divideX","divideXReverse","divideYReverse","divideColor","divideStyle","getRingWidth","ring","ringInset","ringColor","borders","getShadow","opacity","boxShadow","textShadow","effects","__defProp$4","__getOwnPropSymbols$4","__hasOwnProp$4","__propIsEnum$4","__defNormalProp$4","__spreadValues$4","row","getColStyle","size","sizeWidth","col","common","breakpointsStyle","flexboxGrids","__defProp$3","__getOwnPropSymbols$3","__hasOwnProp$3","__propIsEnum$3","__defNormalProp$3","__spreadValues$3","display","float","boxSizing","container","breakpoints","overflow","overflowX","overflowY","getZIndex","zIndex","position","getInset","top","right","bottom","left","visibility","overscrollBehavior","objectFit","layout","alignItems","alignContent","justifyContent","justifyItems","flexWrap","flexGrow","flexShrink","flexBasis","flexDirection","flex","justifySelf","alignSelf","order","flexboxes","getSpace","margin","marginTop","marginRight","marginBottom","marginLeft","mx","my","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","px","py","spaceY","spaceX","spaceXReverse","spaceYReverse","space$1","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","grids","appearance","cursor","pointerEvents","resize","userSelect","interactivity","getSize","width","height","maxWidth","maxHeight","minWidth","minHeight","maskSize","sizing","fill","stroke","svg","borderCollapse","tableLayout","tables","getTransform","transformOrigin","translateX","translateY","rotate","skewX","skewY","scale","scaleX","scaleY","transforms","__defProp$2","__defProps$1","__getOwnPropDescs$1","__getOwnPropSymbols$2","__hasOwnProp$2","__propIsEnum$2","__defNormalProp$2","__spreadValues$2","__spreadProps$1","getFont","getLineHeight","getFontWeight","getLetterSpacing","getFontSize","fontFamily","fontSize","fontVariant","lineHeight","fontWeight","fontStyle","letterSpacing","color","textTransform","textDecoration","textAlign","verticalAlign","whiteSpace","textOverflow","listStyleType","listStylePosition","all","text","typography","system","th","__defProp$1","__getOwnPropSymbols$1","__hasOwnProp$1","__propIsEnum$1","__defNormalProp$1","__spreadValues$1","defaultAlphaVariants","generateHexAlphaVariants","colors","alphaColors","variantKey","__defProp","__defProps","__getOwnPropDescs","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","__defNormalProp","__spreadValues","__spreadProps","space","timingFunctions","transitionProperties","transitions","property","fontSizes","texts","texts2","getPreflightStyles","join","args","toVarName","toProp","toCustomPropertiesDeclarations","keys","parent","__objRest","exclude","COLOR_MODE_CLASS_PREFIX","getColorModeClassName","mode","XSTYLED_COLORS_PREFIX","SYSTEM_MODES","getModeTheme","getMediaQuery","query","getColorModeQuery","checkHasColorModes","getInitialColorModeName","getUsedColorKeys","modes","createColorStyles","targetSelector","colorKeys","getModePropertiesDeclarations","modeTheme","_a2","modes2","colors2","mediaQuery","React.createContext","getMediaWidth","getBreakpointBound","mediaGetters","PROP_CHAR","VALUE_CHAR","PROP_PATT","MEDIA_CHAR","MEDIA_PATT","MATCH_REGEXP","QUERY_REGEXP","mediaTransform","matches","open","colon","close","p","createTransform","imp","semi","media","brace","createUseGetter","useTheme","useMemo","createGlobalStyle$1","useContext","ThemeContext","createCssFunction","scCssArgs","css$1","scStyled","styled$1","getCreateStyle","baseCreateStyle","createStyle","attrs","config","createShouldForwardProp","propSet","defaultValidatorFn","elementToBeCreated","createBaseStyled","component","baseStyled","createStyled","styled","xstyled","createX","x","tag","createCreateGlobalStyle","createCss","createGlobalStyle","system$1"],"mappings":"kIACA,MAAMA,GAAoB,CAAC,YAAa,cAAe,WAAW,EAE5DC,EAAMC,GAAsBA,GAAM,KAClCC,EAAOD,GAAM,OAAOA,GAAM,UAAY,CAAC,OAAO,MAAMA,CAAC,EACrDE,EAAUF,GAAM,OAAOA,GAAM,UAAYA,IAAM,GAC/CG,EAAOH,GAAM,OAAOA,GAAM,UAAYA,IAAM,KAC5CI,GAAQJ,GAAM,OAAOA,GAAM,WAC3BK,GAAYL,GAAMC,EAAID,CAAC,GAAKA,EAAI,EAChCM,GAAM,CAACC,EAAMC,IAAS,CAC1B,MAAMC,EAAQ,OAAOD,CAAI,EAAE,MAAM,GAAG,EAC9BE,EAAcD,EAAM,OAC1B,IAAIE,EAASJ,EACb,QAASK,EAAI,EAAGA,EAAIF,EAAaE,GAAK,EAAG,CACvC,GAAI,CAACb,EAAGY,CAAM,EACZ,OAAOA,EACT,MAAME,EAAQJ,EAAMG,CAAC,EACrBD,EAASZ,EAAGY,EAAOE,CAAK,CAAC,EAAIF,EAAOE,CAAK,EAAI,MAC9C,CACD,OAAOF,CACT,EACMG,GAAS,CAACC,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MyB,EAAM+U,EAAkBxW,CAAS,EACvC,MAAO,IAAI8S,IAASuD,GAAoB,CACtC5U,EAAI,GAAGqR,CAAI,CACf,CAAG,CACH,EAEMkF,GAAahY,IACV,CACL,IAAKwW,EAAkBxW,CAAS,EAChC,EAAG4X,GAAQ5X,CAAS,EACpB,OAAQyX,GAAazX,CAAS,EAC9B,kBAAmB+X,GAAwB/X,CAAS,CACxD,GAGM,CAAE,IAAAyB,GAAK,OAAAiW,GAAQ,EAAAG,GAAG,kBAAAI,EAAmB,EAAGD,GAAUE,EAAQ","x_google_ignoreList":[0,1,2,3]}
@@ -0,0 +1,21 @@
1
+ import{d as E}from"./index-356e4a49.js";const{global:M}=__STORYBOOK_MODULE_GLOBAL__,{logger:h}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",{document:s,window:B}=M,S=()=>B.matchMedia("(prefers-reduced-motion: reduce)").matches,x=(r,e=[],a)=>{if(r==="transparent")return"transparent";if(e.find(t=>t.value===r))return r;let n=e.find(t=>t.name===a);if(n)return n.value;if(a){let t=e.map(o=>o.name).join(", ");h.warn(E`
2
+ Backgrounds Addon: could not find the default color "${a}".
3
+ These are the available colors for your story based on your configuration:
4
+ ${t}.
5
+ `)}return"transparent"},v=r=>{(Array.isArray(r)?r:[r]).forEach(O)},O=r=>{var a;let e=s.getElementById(r);e&&((a=e.parentElement)==null||a.removeChild(e))},w=(r,e)=>{let a=s.getElementById(r);if(a)a.innerHTML!==e&&(a.innerHTML=e);else{let n=s.createElement("style");n.setAttribute("id",r),n.innerHTML=e,s.head.appendChild(n)}},A=(r,e,a)=>{var t;let n=s.getElementById(r);if(n)n.innerHTML!==e&&(n.innerHTML=e);else{let o=s.createElement("style");o.setAttribute("id",r),o.innerHTML=e;let i=`addon-backgrounds-grid${a?`-docs-${a}`:""}`,d=s.getElementById(i);d?(t=d.parentElement)==null||t.insertBefore(o,d):s.head.appendChild(o)}};const{useMemo:f,useEffect:k}=__STORYBOOK_MODULE_PREVIEW_API__;var L=(r,e)=>{var c;let{globals:a,parameters:n}=e,t=(c=a[p])==null?void 0:c.value,o=n[p],i=f(()=>o.disable?"transparent":x(t,o.values,o.default),[o,t]),d=f(()=>i&&i!=="transparent",[i]),g=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",u=f(()=>{let l="transition: background-color 0.3s;";return`
6
+ ${g} {
7
+ background: ${i} !important;
8
+ ${S()?"":l}
9
+ }
10
+ `},[i,g]);return k(()=>{let l=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!d){v(l);return}A(l,u,e.viewMode==="docs"?e.id:null)},[d,u,e]),r()},T=(r,e)=>{var y;let{globals:a,parameters:n}=e,t=n[p].grid,o=((y=a[p])==null?void 0:y.grid)===!0&&t.disable!==!0,{cellAmount:i,cellSize:d,opacity:g}=t,u=e.viewMode==="docs",c=n.layout===void 0||n.layout==="padded"?16:0,l=t.offsetX??(u?20:c),m=t.offsetY??(u?20:c),$=f(()=>{let b=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",_=[`${d*i}px ${d*i}px`,`${d*i}px ${d*i}px`,`${d}px ${d}px`,`${d}px ${d}px`].join(", ");return`
11
+ ${b} {
12
+ background-size: ${_} !important;
13
+ background-position: ${l}px ${m}px, ${l}px ${m}px, ${l}px ${m}px, ${l}px ${m}px !important;
14
+ background-blend-mode: difference !important;
15
+ background-image: linear-gradient(rgba(130, 130, 130, ${g}) 1px, transparent 1px),
16
+ linear-gradient(90deg, rgba(130, 130, 130, ${g}) 1px, transparent 1px),
17
+ linear-gradient(rgba(130, 130, 130, ${g/2}) 1px, transparent 1px),
18
+ linear-gradient(90deg, rgba(130, 130, 130, ${g/2}) 1px, transparent 1px) !important;
19
+ }
20
+ `},[d]);return k(()=>{let b=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!o){v(b);return}w(b,$)},[o,$,e]),r()},I=[T,L],R={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}},G={[p]:null};export{I as decorators,G as globals,R as parameters};
21
+ //# sourceMappingURL=preview-108c1c3c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-108c1c3c.js","sources":["../../node_modules/@storybook/addon-backgrounds/dist/chunk-OKHCZ3TL.mjs","../../node_modules/@storybook/addon-backgrounds/dist/preview.mjs"],"sourcesContent":["import { global } from '@storybook/global';\nimport { dedent } from 'ts-dedent';\nimport { logger } from '@storybook/client-logger';\n\nvar ADDON_ID=\"storybook/background\",PARAM_KEY=\"backgrounds\";var {document,window}=global,isReduceMotionEnabled=()=>window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches,getBackgroundColorByName=(currentSelectedValue,backgrounds=[],defaultName)=>{if(currentSelectedValue===\"transparent\")return \"transparent\";if(backgrounds.find(background=>background.value===currentSelectedValue))return currentSelectedValue;let defaultBackground=backgrounds.find(background=>background.name===defaultName);if(defaultBackground)return defaultBackground.value;if(defaultName){let availableColors=backgrounds.map(background=>background.name).join(\", \");logger.warn(dedent`\n Backgrounds Addon: could not find the default color \"${defaultName}\".\n These are the available colors for your story based on your configuration:\n ${availableColors}.\n `);}return \"transparent\"},clearStyles=selector=>{(Array.isArray(selector)?selector:[selector]).forEach(clearStyle);},clearStyle=selector=>{let element=document.getElementById(selector);element&&element.parentElement?.removeChild(element);},addGridStyle=(selector,css)=>{let existingStyle=document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else {let style=document.createElement(\"style\");style.setAttribute(\"id\",selector),style.innerHTML=css,document.head.appendChild(style);}},addBackgroundStyle=(selector,css,storyId)=>{let existingStyle=document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else {let style=document.createElement(\"style\");style.setAttribute(\"id\",selector),style.innerHTML=css;let gridStyleSelector=`addon-backgrounds-grid${storyId?`-docs-${storyId}`:\"\"}`,existingGridStyle=document.getElementById(gridStyleSelector);existingGridStyle?existingGridStyle.parentElement?.insertBefore(style,existingGridStyle):document.head.appendChild(style);}};\n\nexport { ADDON_ID, PARAM_KEY, addBackgroundStyle, addGridStyle, clearStyles, getBackgroundColorByName, isReduceMotionEnabled };\n","import { PARAM_KEY, getBackgroundColorByName, isReduceMotionEnabled, clearStyles, addBackgroundStyle, addGridStyle } from './chunk-OKHCZ3TL.mjs';\nimport { useMemo, useEffect } from '@storybook/preview-api';\n\nvar withBackground=(StoryFn,context)=>{let{globals:globals2,parameters:parameters2}=context,globalsBackgroundColor=globals2[PARAM_KEY]?.value,backgroundsConfig=parameters2[PARAM_KEY],selectedBackgroundColor=useMemo(()=>backgroundsConfig.disable?\"transparent\":getBackgroundColorByName(globalsBackgroundColor,backgroundsConfig.values,backgroundsConfig.default),[backgroundsConfig,globalsBackgroundColor]),isActive=useMemo(()=>selectedBackgroundColor&&selectedBackgroundColor!==\"transparent\",[selectedBackgroundColor]),selector=context.viewMode===\"docs\"?`#anchor--${context.id} .docs-story`:\".sb-show-main\",backgroundStyles=useMemo(()=>{let transitionStyle=\"transition: background-color 0.3s;\";return `\n ${selector} {\n background: ${selectedBackgroundColor} !important;\n ${isReduceMotionEnabled()?\"\":transitionStyle}\n }\n `},[selectedBackgroundColor,selector]);return useEffect(()=>{let selectorId=context.viewMode===\"docs\"?`addon-backgrounds-docs-${context.id}`:\"addon-backgrounds-color\";if(!isActive){clearStyles(selectorId);return}addBackgroundStyle(selectorId,backgroundStyles,context.viewMode===\"docs\"?context.id:null);},[isActive,backgroundStyles,context]),StoryFn()};var withGrid=(StoryFn,context)=>{let{globals:globals2,parameters:parameters2}=context,gridParameters=parameters2[PARAM_KEY].grid,isActive=globals2[PARAM_KEY]?.grid===!0&&gridParameters.disable!==!0,{cellAmount,cellSize,opacity}=gridParameters,isInDocs=context.viewMode===\"docs\",defaultOffset=parameters2.layout===void 0||parameters2.layout===\"padded\"?16:0,offsetX=gridParameters.offsetX??(isInDocs?20:defaultOffset),offsetY=gridParameters.offsetY??(isInDocs?20:defaultOffset),gridStyles=useMemo(()=>{let selector=context.viewMode===\"docs\"?`#anchor--${context.id} .docs-story`:\".sb-show-main\",backgroundSize=[`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize*cellAmount}px ${cellSize*cellAmount}px`,`${cellSize}px ${cellSize}px`,`${cellSize}px ${cellSize}px`].join(\", \");return `\n ${selector} {\n background-size: ${backgroundSize} !important;\n background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${opacity/2}) 1px, transparent 1px) !important;\n }\n `},[cellSize]);return useEffect(()=>{let selectorId=context.viewMode===\"docs\"?`addon-backgrounds-grid-docs-${context.id}`:\"addon-backgrounds-grid\";if(!isActive){clearStyles(selectorId);return}addGridStyle(selectorId,gridStyles);},[isActive,gridStyles,context]),StoryFn()};var decorators=[withGrid,withBackground],parameters={[PARAM_KEY]:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:\"light\",value:\"#F8F8F8\"},{name:\"dark\",value:\"#333333\"}]}},globals={[PARAM_KEY]:null};\n\nexport { decorators, globals, parameters };\n"],"names":["global","logger","PARAM_KEY","document","window","isReduceMotionEnabled","getBackgroundColorByName","currentSelectedValue","backgrounds","defaultName","background","defaultBackground","availableColors","dedent","clearStyles","selector","clearStyle","element","_a","addGridStyle","css","existingStyle","style","addBackgroundStyle","storyId","gridStyleSelector","existingGridStyle","useMemo","useEffect","withBackground","StoryFn","context","globals2","parameters2","globalsBackgroundColor","backgroundsConfig","selectedBackgroundColor","isActive","backgroundStyles","transitionStyle","selectorId","withGrid","gridParameters","cellAmount","cellSize","opacity","isInDocs","defaultOffset","offsetX","offsetY","gridStyles","backgroundSize","decorators","parameters","globals"],"mappings":"wCAAA,KAAA,CAAA,OAAAA,CAAA,EAAA,4BAEA,CAAA,OAAAC,CAAA,EAAA,mCAEG,IAAiCC,EAAU,cAAkB,CAAC,SAAAC,EAAS,OAAAC,CAAM,EAAEJ,EAAOK,EAAsB,IAAID,EAAO,WAAW,kCAAkC,EAAE,QAAQE,EAAyB,CAACC,EAAqBC,EAAY,CAAA,EAAGC,IAAc,CAAC,GAAGF,IAAuB,cAAc,MAAO,cAAc,GAAGC,EAAY,KAAKE,GAAYA,EAAW,QAAQH,CAAoB,EAAE,OAAOA,EAAqB,IAAII,EAAkBH,EAAY,KAAKE,GAAYA,EAAW,OAAOD,CAAW,EAAE,GAAGE,EAAkB,OAAOA,EAAkB,MAAM,GAAGF,EAAY,CAAC,IAAIG,EAAgBJ,EAAY,IAAIE,GAAYA,EAAW,IAAI,EAAE,KAAK,IAAI,EAAET,EAAO,KAAKY;AAAA,+DAC/kBJ,CAAW;AAAA;AAAA,UAEhEG,CAAe;AAAA,OAClB,CAAE,CAAC,MAAO,aAAa,EAAEE,EAAYC,GAAU,EAAE,MAAM,QAAQA,CAAQ,EAAEA,EAAS,CAACA,CAAQ,GAAG,QAAQC,CAAU,CAAE,EAAEA,EAAWD,GAAU,OAAC,IAAIE,EAAQd,EAAS,eAAeY,CAAQ,EAAEE,KAASC,EAAAD,EAAQ,gBAAR,MAAAC,EAAuB,YAAYD,GAAS,EAAEE,EAAa,CAACJ,EAASK,IAAM,CAAC,IAAIC,EAAclB,EAAS,eAAeY,CAAQ,EAAE,GAAGM,EAAcA,EAAc,YAAYD,IAAMC,EAAc,UAAUD,OAAU,CAAC,IAAIE,EAAMnB,EAAS,cAAc,OAAO,EAAEmB,EAAM,aAAa,KAAKP,CAAQ,EAAEO,EAAM,UAAUF,EAAIjB,EAAS,KAAK,YAAYmB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AAA;AAAA,KAE1D,EAAE,CAACD,CAAQ,CAAC,EAAE,OAAOhB,EAAU,IAAI,CAAC,IAAIY,EAAWT,EAAQ,WAAW,OAAO,+BAA+BA,EAAQ,EAAE,GAAG,yBAAyB,GAAG,CAACM,EAAS,CAACvB,EAAY0B,CAAU,EAAE,MAAM,CAACrB,EAAaqB,EAAWU,CAAU,CAAE,EAAE,CAACb,EAASa,EAAWnB,CAAO,CAAC,EAAED,EAAO,CAAE,EAAMsB,EAAW,CAACX,EAASZ,CAAc,EAAEwB,EAAW,CAAC,CAACnD,CAAS,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,QAAQ,MAAM,SAAS,EAAE,CAAC,KAAK,OAAO,MAAM,SAAS,CAAC,CAAC,CAAC,EAAEoD,EAAQ,CAAC,CAACpD,CAAS,EAAE,IAAI","x_google_ignoreList":[0,1]}
@@ -0,0 +1,2 @@
1
+ var K="measureEnabled",U=!0,S="Invariant failed";function A(o,t){if(!o){if(U)throw new Error(S);var e=typeof t=="function"?t():t,l=e?"".concat(S,": ").concat(e):S;throw new Error(l)}}const{useEffect:W}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;function H(){let o=d.document.documentElement,t=Math.max(o.scrollHeight,o.offsetHeight);return{width:Math.max(o.scrollWidth,o.offsetWidth),height:t}}function V(){let o=d.document.createElement("canvas");o.id="storybook-addon-measure";let t=o.getContext("2d");A(t!=null);let{width:e,height:l}=H();return P(o,t,{width:e,height:l}),o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.zIndex="2147483647",o.style.pointerEvents="none",d.document.body.appendChild(o),{canvas:o,context:t,width:e,height:l}}function P(o,t,{width:e,height:l}){o.style.width=`${e}px`,o.style.height=`${l}px`;let i=d.window.devicePixelRatio;o.width=Math.floor(e*i),o.height=Math.floor(l*i),t.scale(i,i)}var s={};function Z(){s.canvas||(s=V())}function C(){s.context&&s.context.clearRect(0,0,s.width??0,s.height??0)}function G(o){C(),o(s.context)}function J(){A(s.canvas,"Canvas should exist in the state."),A(s.context,"Context should exist in the state."),P(s.canvas,s.context,{width:0,height:0});let{width:o,height:t}=H();P(s.canvas,s.context,{width:o,height:t}),s.width=o,s.height=t}function Q(){var o;s.canvas&&(C(),(o=s.canvas.parentNode)==null||o.removeChild(s.canvas),s={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},p=6;function B(o,{x:t,y:e,w:l,h:i,r:n}){t=t-l/2,e=e-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),o.beginPath(),o.moveTo(t+n,e),o.arcTo(t+l,e,t+l,e+i,n),o.arcTo(t+l,e+i,t,e+i,n),o.arcTo(t,e+i,t,e,n),o.arcTo(t,e,t+l,e,n),o.closePath()}function x(o,{padding:t,border:e,width:l,height:i,top:n,left:f}){let r=l-e.left-e.right-t.left-t.right,a=i-t.top-t.bottom-e.top-e.bottom,h=f+e.left+t.left,u=n+e.top+t.top;return o==="top"?h+=r/2:o==="right"?(h+=r,u+=a/2):o==="bottom"?(h+=r/2,u+=a):o==="left"?u+=a/2:o==="center"&&(h+=r/2,u+=a/2),{x:h,y:u}}function tt(o,t,{margin:e,border:l,padding:i},n,f){let r=m=>0,a=0,h=0,u=f?1:.5,c=f?n*2:0;return o==="padding"?r=m=>i[m]*u+c:o==="border"?r=m=>i[m]+l[m]*u+c:o==="margin"&&(r=m=>i[m]+l[m]+e[m]*u+c),t==="top"?h=-r("top"):t==="right"?a=r("right"):t==="bottom"?h=r("bottom"):t==="left"&&(a=-r("left")),{offsetX:a,offsetY:h}}function ot(o,t){return Math.abs(o.x-t.x)<Math.abs(o.w+t.w)/2&&Math.abs(o.y-t.y)<Math.abs(o.h+t.h)/2}function et(o,t,e){return o==="top"?t.y=e.y-e.h-p:o==="right"?t.x=e.x+e.w/2+p+t.w/2:o==="bottom"?t.y=e.y+e.h+p:o==="left"&&(t.x=e.x-e.w/2-p-t.w/2),{x:t.x,y:t.y}}function X(o,t,{x:e,y:l,w:i,h:n},f){return B(o,{x:e,y:l,w:i,h:n,r:3}),o.fillStyle=`${w[t]}dd`,o.fill(),o.strokeStyle=w[t],o.stroke(),o.fillStyle=w.text,o.fillText(f,e,l),B(o,{x:e,y:l,w:i,h:n,r:3}),o.fillStyle=`${w[t]}dd`,o.fill(),o.strokeStyle=w[t],o.stroke(),o.fillStyle=w.text,o.fillText(f,e,l),{x:e,y:l,w:i,h:n}}function k(o,t){o.font="600 12px monospace",o.textBaseline="middle",o.textAlign="center";let e=o.measureText(t),l=e.actualBoundingBoxAscent+e.actualBoundingBoxDescent,i=e.width+p*2,n=l+p*2;return{w:i,h:n}}function it(o,t,{type:e,position:l="center",text:i},n,f=!1){let{x:r,y:a}=x(l,t),{offsetX:h,offsetY:u}=tt(e,l,t,p+1,f);r+=h,a+=u;let{w:c,h:m}=k(o,i);if(n&&ot({x:r,y:a,w:c,h:m},n)){let E=et(l,{x:r,y:a,w:c,h:m},n);r=E.x,a=E.y}return X(o,e,{x:r,y:a,w:c,h:m},i)}function lt(o,{w:t,h:e}){let l=t*.5+p,i=e*.5+p;return{offsetX:(o.x==="left"?-1:1)*l,offsetY:(o.y==="top"?-1:1)*i}}function nt(o,t,{type:e,text:l}){let{floatingAlignment:i,extremities:n}=t,f=n[i.x],r=n[i.y],{w:a,h}=k(o,l),{offsetX:u,offsetY:c}=lt(i,{w:a,h});return f+=u,r+=c,X(o,e,{x:f,y:r,w:a,h},l)}function v(o,t,e,l){let i=[];e.forEach((n,f)=>{let r=l&&n.position==="center"?nt(o,t,n):it(o,t,n,i[f-1],l);i[f]=r})}function rt(o,t,e,l){let i=e.reduce((n,f)=>{var r;return Object.prototype.hasOwnProperty.call(n,f.position)||(n[f.position]=[]),(r=n[f.position])==null||r.push(f),n},{});i.top&&v(o,t,i.top,l),i.right&&v(o,t,i.right,l),i.bottom&&v(o,t,i.bottom,l),i.left&&v(o,t,i.left,l),i.center&&v(o,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},O=30;function g(o){return parseInt(o.replace("px",""),10)}function b(o){return Number.isInteger(o)?o:o.toFixed(2)}function _(o){return o.filter(t=>t.text!==0&&t.text!=="0")}function ft(o){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},e={top:Math.abs(t.top-o.top),bottom:Math.abs(t.bottom-o.bottom),left:Math.abs(t.left-o.left),right:Math.abs(t.right-o.right)};return{x:e.left>e.right?"left":"right",y:e.top>e.bottom?"top":"bottom"}}function at(o){let t=d.getComputedStyle(o),{top:e,left:l,right:i,bottom:n,width:f,height:r}=o.getBoundingClientRect(),{marginTop:a,marginBottom:h,marginLeft:u,marginRight:c,paddingTop:m,paddingBottom:E,paddingLeft:F,paddingRight:I,borderBottomWidth:D,borderTopWidth:$,borderLeftWidth:N,borderRightWidth:q}=t;e=e+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:g(a),bottom:g(h),left:g(u),right:g(c)},z={top:g(m),bottom:g(E),left:g(F),right:g(I)},j={top:g($),bottom:g(D),left:g(N),right:g(q)},T={top:e-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:z,border:j,top:e,left:l,bottom:n,right:i,width:f,height:r,extremities:T,floatingAlignment:ft(T)}}function ht(o,{margin:t,width:e,height:l,top:i,left:n,bottom:f,right:r}){let a=l+t.bottom+t.top;o.fillStyle=L.margin,o.fillRect(n,i-t.top,e,t.top),o.fillRect(r,i-t.top,t.right,a),o.fillRect(n,f,e,t.bottom),o.fillRect(n-t.left,i-t.top,t.left,a);let h=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return _(h)}function st(o,{padding:t,border:e,width:l,height:i,top:n,left:f,bottom:r,right:a}){let h=l-e.left-e.right,u=i-t.top-t.bottom-e.top-e.bottom;o.fillStyle=L.padding,o.fillRect(f+e.left,n+e.top,h,t.top),o.fillRect(a-t.right-e.right,n+t.top+e.top,t.right,u),o.fillRect(f+e.left,r-t.bottom-e.bottom,h,t.bottom),o.fillRect(f+e.left,n+t.top+e.top,t.left,u);let c=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return _(c)}function ut(o,{border:t,width:e,height:l,top:i,left:n,bottom:f,right:r}){let a=l-t.top-t.bottom;o.fillStyle=L.border,o.fillRect(n,i,e,t.top),o.fillRect(n,f-t.bottom,e,t.bottom),o.fillRect(n,i+t.top,t.left,a),o.fillRect(r-t.right,i+t.top,t.right,a);let h=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return _(h)}function dt(o,{padding:t,border:e,width:l,height:i,top:n,left:f}){let r=l-e.left-e.right-t.left-t.right,a=i-t.top-t.bottom-e.top-e.bottom;return o.fillStyle=L.content,o.fillRect(f+e.left+t.left,n+e.top+t.top,r,a),[{type:"content",position:"center",text:`${b(r)} x ${b(a)}`}]}function mt(o){return t=>{if(o&&t){let e=at(o),l=ht(t,e),i=st(t,e),n=ut(t,e),f=dt(t,e),r=e.width<=O*3||e.height<=O;rt(t,e,[...f,...i,...n,...l],r)}}}function ct(o){G(mt(o))}var gt=(o,t)=>{let e=d.document.elementFromPoint(o,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(o,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(e)||e},R,M={x:0,y:0};function Y(o,t){R=gt(o,t),ct(R)}var pt=(o,t)=>{let{measureEnabled:e}=t.globals;return W(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),W(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),Y(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{J()})};return t.viewMode==="story"&&e&&(document.addEventListener("pointerover",l),Z(),window.addEventListener("resize",i),Y(M.x,M.y)),()=>{window.removeEventListener("resize",i),Q()}},[e,t.viewMode]),o()},wt=[pt],bt={[K]:!1};export{wt as decorators,bt as globals};
2
+ //# sourceMappingURL=preview-2059b184.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-2059b184.js","sources":["../../node_modules/@storybook/addon-measure/dist/chunk-YIXVQKZ5.mjs","../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js","../../node_modules/@storybook/addon-measure/dist/preview.mjs"],"sourcesContent":["var ADDON_ID=\"storybook/measure-addon\",TOOL_ID=`${ADDON_ID}/tool`,PARAM_KEY=\"measureEnabled\";\n\nexport { ADDON_ID, PARAM_KEY, TOOL_ID };\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? \"\".concat(prefix, \": \").concat(provided) : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n","import { PARAM_KEY } from './chunk-YIXVQKZ5.mjs';\nimport { useEffect } from '@storybook/preview-api';\nimport { global } from '@storybook/global';\nimport invariant from 'tiny-invariant';\n\nfunction getDocumentWidthAndHeight(){let container=global.document.documentElement,height=Math.max(container.scrollHeight,container.offsetHeight);return {width:Math.max(container.scrollWidth,container.offsetWidth),height}}function createCanvas(){let canvas=global.document.createElement(\"canvas\");canvas.id=\"storybook-addon-measure\";let context=canvas.getContext(\"2d\");invariant(context!=null);let{width,height}=getDocumentWidthAndHeight();return setCanvasWidthAndHeight(canvas,context,{width,height}),canvas.style.position=\"absolute\",canvas.style.left=\"0\",canvas.style.top=\"0\",canvas.style.zIndex=\"2147483647\",canvas.style.pointerEvents=\"none\",global.document.body.appendChild(canvas),{canvas,context,width,height}}function setCanvasWidthAndHeight(canvas,context,{width,height}){canvas.style.width=`${width}px`,canvas.style.height=`${height}px`;let scale=global.window.devicePixelRatio;canvas.width=Math.floor(width*scale),canvas.height=Math.floor(height*scale),context.scale(scale,scale);}var state={};function init(){state.canvas||(state=createCanvas());}function clear(){state.context&&state.context.clearRect(0,0,state.width??0,state.height??0);}function draw(callback){clear(),callback(state.context);}function rescale(){invariant(state.canvas,\"Canvas should exist in the state.\"),invariant(state.context,\"Context should exist in the state.\"),setCanvasWidthAndHeight(state.canvas,state.context,{width:0,height:0});let{width,height}=getDocumentWidthAndHeight();setCanvasWidthAndHeight(state.canvas,state.context,{width,height}),state.width=width,state.height=height;}function destroy(){state.canvas&&(clear(),state.canvas.parentNode?.removeChild(state.canvas),state={});}var colors={margin:\"#f6b26b\",border:\"#ffe599\",padding:\"#93c47d\",content:\"#6fa8dc\",text:\"#232020\"},labelPadding=6;function roundedRect(context,{x,y,w,h,r}){x=x-w/2,y=y-h/2,w<2*r&&(r=w/2),h<2*r&&(r=h/2),context.beginPath(),context.moveTo(x+r,y),context.arcTo(x+w,y,x+w,y+h,r),context.arcTo(x+w,y+h,x,y+h,r),context.arcTo(x,y+h,x,y,r),context.arcTo(x,y,x+w,y,r),context.closePath();}function positionCoordinate(position,{padding,border,width,height,top,left}){let contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom,x=left+border.left+padding.left,y=top+border.top+padding.top;return position===\"top\"?x+=contentWidth/2:position===\"right\"?(x+=contentWidth,y+=contentHeight/2):position===\"bottom\"?(x+=contentWidth/2,y+=contentHeight):position===\"left\"?y+=contentHeight/2:position===\"center\"&&(x+=contentWidth/2,y+=contentHeight/2),{x,y}}function offset(type,position,{margin,border,padding},labelPaddingSize,external){let shift=dir=>0,offsetX=0,offsetY=0,locationMultiplier=external?1:.5,labelPaddingShift=external?labelPaddingSize*2:0;return type===\"padding\"?shift=dir=>padding[dir]*locationMultiplier+labelPaddingShift:type===\"border\"?shift=dir=>padding[dir]+border[dir]*locationMultiplier+labelPaddingShift:type===\"margin\"&&(shift=dir=>padding[dir]+border[dir]+margin[dir]*locationMultiplier+labelPaddingShift),position===\"top\"?offsetY=-shift(\"top\"):position===\"right\"?offsetX=shift(\"right\"):position===\"bottom\"?offsetY=shift(\"bottom\"):position===\"left\"&&(offsetX=-shift(\"left\")),{offsetX,offsetY}}function collide(a,b){return Math.abs(a.x-b.x)<Math.abs(a.w+b.w)/2&&Math.abs(a.y-b.y)<Math.abs(a.h+b.h)/2}function overlapAdjustment(position,currentRect,prevRect){return position===\"top\"?currentRect.y=prevRect.y-prevRect.h-labelPadding:position===\"right\"?currentRect.x=prevRect.x+prevRect.w/2+labelPadding+currentRect.w/2:position===\"bottom\"?currentRect.y=prevRect.y+prevRect.h+labelPadding:position===\"left\"&&(currentRect.x=prevRect.x-prevRect.w/2-labelPadding-currentRect.w/2),{x:currentRect.x,y:currentRect.y}}function textWithRect(context,type,{x,y,w,h},text){return roundedRect(context,{x,y,w,h,r:3}),context.fillStyle=`${colors[type]}dd`,context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),roundedRect(context,{x,y,w,h,r:3}),context.fillStyle=`${colors[type]}dd`,context.fill(),context.strokeStyle=colors[type],context.stroke(),context.fillStyle=colors.text,context.fillText(text,x,y),{x,y,w,h}}function configureText(context,text){context.font=\"600 12px monospace\",context.textBaseline=\"middle\",context.textAlign=\"center\";let metrics=context.measureText(text),actualHeight=metrics.actualBoundingBoxAscent+metrics.actualBoundingBoxDescent,w=metrics.width+labelPadding*2,h=actualHeight+labelPadding*2;return {w,h}}function drawLabel(context,measurements,{type,position=\"center\",text},prevRect,external=!1){let{x,y}=positionCoordinate(position,measurements),{offsetX,offsetY}=offset(type,position,measurements,labelPadding+1,external);x+=offsetX,y+=offsetY;let{w,h}=configureText(context,text);if(prevRect&&collide({x,y,w,h},prevRect)){let adjusted=overlapAdjustment(position,{x,y,w,h},prevRect);x=adjusted.x,y=adjusted.y;}return textWithRect(context,type,{x,y,w,h},text)}function floatingOffset(alignment,{w,h}){let deltaW=w*.5+labelPadding,deltaH=h*.5+labelPadding;return {offsetX:(alignment.x===\"left\"?-1:1)*deltaW,offsetY:(alignment.y===\"top\"?-1:1)*deltaH}}function drawFloatingLabel(context,measurements,{type,text}){let{floatingAlignment:floatingAlignment2,extremities}=measurements,x=extremities[floatingAlignment2.x],y=extremities[floatingAlignment2.y],{w,h}=configureText(context,text),{offsetX,offsetY}=floatingOffset(floatingAlignment2,{w,h});return x+=offsetX,y+=offsetY,textWithRect(context,type,{x,y,w,h},text)}function drawStack(context,measurements,stack,external){let rects=[];stack.forEach((l,idx)=>{let rect=external&&l.position===\"center\"?drawFloatingLabel(context,measurements,l):drawLabel(context,measurements,l,rects[idx-1],external);rects[idx]=rect;});}function labelStacks(context,measurements,labels,externalLabels){let stacks=labels.reduce((acc,l)=>(Object.prototype.hasOwnProperty.call(acc,l.position)||(acc[l.position]=[]),acc[l.position]?.push(l),acc),{});stacks.top&&drawStack(context,measurements,stacks.top,externalLabels),stacks.right&&drawStack(context,measurements,stacks.right,externalLabels),stacks.bottom&&drawStack(context,measurements,stacks.bottom,externalLabels),stacks.left&&drawStack(context,measurements,stacks.left,externalLabels),stacks.center&&drawStack(context,measurements,stacks.center,externalLabels);}var colors2={margin:\"#f6b26ba8\",border:\"#ffe599a8\",padding:\"#93c47d8c\",content:\"#6fa8dca8\"},SMALL_NODE_SIZE=30;function pxToNumber(px){return parseInt(px.replace(\"px\",\"\"),10)}function round(value){return Number.isInteger(value)?value:value.toFixed(2)}function filterZeroValues(labels){return labels.filter(l=>l.text!==0&&l.text!==\"0\")}function floatingAlignment(extremities){let windowExtremities={top:global.window.scrollY,bottom:global.window.scrollY+global.window.innerHeight,left:global.window.scrollX,right:global.window.scrollX+global.window.innerWidth},distances={top:Math.abs(windowExtremities.top-extremities.top),bottom:Math.abs(windowExtremities.bottom-extremities.bottom),left:Math.abs(windowExtremities.left-extremities.left),right:Math.abs(windowExtremities.right-extremities.right)};return {x:distances.left>distances.right?\"left\":\"right\",y:distances.top>distances.bottom?\"top\":\"bottom\"}}function measureElement(element){let style=global.getComputedStyle(element),{top,left,right,bottom,width,height}=element.getBoundingClientRect(),{marginTop,marginBottom,marginLeft,marginRight,paddingTop,paddingBottom,paddingLeft,paddingRight,borderBottomWidth,borderTopWidth,borderLeftWidth,borderRightWidth}=style;top=top+global.window.scrollY,left=left+global.window.scrollX,bottom=bottom+global.window.scrollY,right=right+global.window.scrollX;let margin={top:pxToNumber(marginTop),bottom:pxToNumber(marginBottom),left:pxToNumber(marginLeft),right:pxToNumber(marginRight)},padding={top:pxToNumber(paddingTop),bottom:pxToNumber(paddingBottom),left:pxToNumber(paddingLeft),right:pxToNumber(paddingRight)},border={top:pxToNumber(borderTopWidth),bottom:pxToNumber(borderBottomWidth),left:pxToNumber(borderLeftWidth),right:pxToNumber(borderRightWidth)},extremities={top:top-margin.top,bottom:bottom+margin.bottom,left:left-margin.left,right:right+margin.right};return {margin,padding,border,top,left,bottom,right,width,height,extremities,floatingAlignment:floatingAlignment(extremities)}}function drawMargin(context,{margin,width,height,top,left,bottom,right}){let marginHeight=height+margin.bottom+margin.top;context.fillStyle=colors2.margin,context.fillRect(left,top-margin.top,width,margin.top),context.fillRect(right,top-margin.top,margin.right,marginHeight),context.fillRect(left,bottom,width,margin.bottom),context.fillRect(left-margin.left,top-margin.top,margin.left,marginHeight);let marginLabels=[{type:\"margin\",text:round(margin.top),position:\"top\"},{type:\"margin\",text:round(margin.right),position:\"right\"},{type:\"margin\",text:round(margin.bottom),position:\"bottom\"},{type:\"margin\",text:round(margin.left),position:\"left\"}];return filterZeroValues(marginLabels)}function drawPadding(context,{padding,border,width,height,top,left,bottom,right}){let paddingWidth=width-border.left-border.right,paddingHeight=height-padding.top-padding.bottom-border.top-border.bottom;context.fillStyle=colors2.padding,context.fillRect(left+border.left,top+border.top,paddingWidth,padding.top),context.fillRect(right-padding.right-border.right,top+padding.top+border.top,padding.right,paddingHeight),context.fillRect(left+border.left,bottom-padding.bottom-border.bottom,paddingWidth,padding.bottom),context.fillRect(left+border.left,top+padding.top+border.top,padding.left,paddingHeight);let paddingLabels=[{type:\"padding\",text:padding.top,position:\"top\"},{type:\"padding\",text:padding.right,position:\"right\"},{type:\"padding\",text:padding.bottom,position:\"bottom\"},{type:\"padding\",text:padding.left,position:\"left\"}];return filterZeroValues(paddingLabels)}function drawBorder(context,{border,width,height,top,left,bottom,right}){let borderHeight=height-border.top-border.bottom;context.fillStyle=colors2.border,context.fillRect(left,top,width,border.top),context.fillRect(left,bottom-border.bottom,width,border.bottom),context.fillRect(left,top+border.top,border.left,borderHeight),context.fillRect(right-border.right,top+border.top,border.right,borderHeight);let borderLabels=[{type:\"border\",text:border.top,position:\"top\"},{type:\"border\",text:border.right,position:\"right\"},{type:\"border\",text:border.bottom,position:\"bottom\"},{type:\"border\",text:border.left,position:\"left\"}];return filterZeroValues(borderLabels)}function drawContent(context,{padding,border,width,height,top,left}){let contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=colors2.content,context.fillRect(left+border.left+padding.left,top+border.top+padding.top,contentWidth,contentHeight),[{type:\"content\",position:\"center\",text:`${round(contentWidth)} x ${round(contentHeight)}`}]}function drawBoxModel(element){return context=>{if(element&&context){let measurements=measureElement(element),marginLabels=drawMargin(context,measurements),paddingLabels=drawPadding(context,measurements),borderLabels=drawBorder(context,measurements),contentLabels=drawContent(context,measurements),externalLabels=measurements.width<=SMALL_NODE_SIZE*3||measurements.height<=SMALL_NODE_SIZE;labelStacks(context,measurements,[...contentLabels,...paddingLabels,...borderLabels,...marginLabels],externalLabels);}}}function drawSelectedElement(element){draw(drawBoxModel(element));}var deepElementFromPoint=(x,y)=>{let element=global.document.elementFromPoint(x,y),crawlShadows=node=>{if(node&&node.shadowRoot){let nestedElement=node.shadowRoot.elementFromPoint(x,y);return node.isEqualNode(nestedElement)?node:nestedElement.shadowRoot?crawlShadows(nestedElement):nestedElement}return node};return crawlShadows(element)||element};var nodeAtPointerRef,pointer={x:0,y:0};function findAndDrawElement(x,y){nodeAtPointerRef=deepElementFromPoint(x,y),drawSelectedElement(nodeAtPointerRef);}var withMeasure=(StoryFn,context)=>{let{measureEnabled}=context.globals;return useEffect(()=>{let onPointerMove=event=>{window.requestAnimationFrame(()=>{event.stopPropagation(),pointer.x=event.clientX,pointer.y=event.clientY;});};return document.addEventListener(\"pointermove\",onPointerMove),()=>{document.removeEventListener(\"pointermove\",onPointerMove);}},[]),useEffect(()=>{let onPointerOver=event=>{window.requestAnimationFrame(()=>{event.stopPropagation(),findAndDrawElement(event.clientX,event.clientY);});},onResize=()=>{window.requestAnimationFrame(()=>{rescale();});};return context.viewMode===\"story\"&&measureEnabled&&(document.addEventListener(\"pointerover\",onPointerOver),init(),window.addEventListener(\"resize\",onResize),findAndDrawElement(pointer.x,pointer.y)),()=>{window.removeEventListener(\"resize\",onResize),destroy();}},[measureEnabled,context.viewMode]),StoryFn()};var decorators=[withMeasure],globals={[PARAM_KEY]:!1};\n\nexport { decorators, globals };\n"],"names":["PARAM_KEY","isProduction","prefix","invariant","condition","message","provided","value","useEffect","global","getDocumentWidthAndHeight","container","height","createCanvas","canvas","context","width","setCanvasWidthAndHeight","scale","state","init","clear","draw","callback","rescale","destroy","_a","colors","labelPadding","roundedRect","x","y","w","h","r","positionCoordinate","position","padding","border","top","left","contentWidth","contentHeight","offset","type","margin","labelPaddingSize","external","shift","dir","offsetX","offsetY","locationMultiplier","labelPaddingShift","collide","a","b","overlapAdjustment","currentRect","prevRect","textWithRect","text","configureText","metrics","actualHeight","drawLabel","measurements","adjusted","floatingOffset","alignment","deltaW","deltaH","drawFloatingLabel","floatingAlignment2","extremities","drawStack","stack","rects","l","idx","rect","labelStacks","labels","externalLabels","stacks","acc","colors2","SMALL_NODE_SIZE","pxToNumber","px","round","filterZeroValues","floatingAlignment","windowExtremities","distances","measureElement","element","style","right","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight","borderBottomWidth","borderTopWidth","borderLeftWidth","borderRightWidth","drawMargin","marginHeight","marginLabels","drawPadding","paddingWidth","paddingHeight","paddingLabels","drawBorder","borderHeight","borderLabels","drawContent","drawBoxModel","contentLabels","drawSelectedElement","deepElementFromPoint","crawlShadows","node","nestedElement","nodeAtPointerRef","pointer","findAndDrawElement","withMeasure","StoryFn","measureEnabled","onPointerMove","event","onPointerOver","onResize","decorators","globals"],"mappings":"AAAG,IAA+DA,EAAU,iBCAxEC,EAAe,GACfC,EAAS,mBACb,SAASC,EAAUC,EAAWC,EAAS,CACnC,GAAI,CAAAD,EAGJ,IAAIH,EACA,MAAM,IAAI,MAAMC,CAAM,EAE1B,IAAII,EAAW,OAAOD,GAAY,WAAaA,EAAO,EAAKA,EACvDE,EAAQD,EAAW,GAAG,OAAOJ,EAAQ,IAAI,EAAE,OAAOI,CAAQ,EAAIJ,EAClE,MAAM,IAAI,MAAMK,CAAK,EACzB,CCXA,KAAA,CAAA,UAAAC,CAAA,EAAA,iCACA,CAAA,OAAAC,CAAA,EAAA,4BAGA,SAASC,GAA2B,CAAC,IAAIC,EAAUF,EAAO,SAAS,gBAAgBG,EAAO,KAAK,IAAID,EAAU,aAAaA,EAAU,YAAY,EAAE,MAAO,CAAC,MAAM,KAAK,IAAIA,EAAU,YAAYA,EAAU,WAAW,EAAE,OAAAC,CAAM,CAAC,CAAC,SAASC,GAAc,CAAC,IAAIC,EAAOL,EAAO,SAAS,cAAc,QAAQ,EAAEK,EAAO,GAAG,0BAA0B,IAAIC,EAAQD,EAAO,WAAW,IAAI,EAAEX,EAAUY,GAAS,IAAI,EAAE,GAA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,OAAO,iBAAiB,SAASuH,CAAQ,EAAEP,EAAmBD,EAAQ,EAAEA,EAAQ,CAAC,GAAG,IAAI,CAAC,OAAO,oBAAoB,SAASQ,CAAQ,EAAElH,EAAO,CAAG,CAAC,EAAE,CAAC8G,EAAexH,EAAQ,QAAQ,CAAC,EAAEuH,EAAS,CAAA,EAAMM,GAAW,CAACP,EAAW,EAAEQ,GAAQ,CAAC,CAAC7I,CAAS,EAAE,EAAE","x_google_ignoreList":[0,1,2]}
@@ -0,0 +1,2 @@
1
+ import{_ as t}from"./iframe-5c6ac1e4.js";import"../sb-preview/runtime.js";var _={docs:{renderer:async()=>{let{DocsRenderer:r}=await t(()=>import("./DocsRenderer-NNNQARDV-8865c748.js").then(e=>e.D),["./DocsRenderer-NNNQARDV-8865c748.js","./iframe-5c6ac1e4.js","./index-76fb7be0.js","./_commonjsHelpers-de833af9.js","./_getPrototype-c468d7b4.js","./index-d37d4223.js","./index-356e4a49.js"],import.meta.url);return new r}}};export{_ as parameters};
2
+ //# sourceMappingURL=preview-3c29a369.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":"0EAAG,IAACA,EAAW,CAAC,KAAK,CAAC,SAAS,SAAS,CAAC,GAAG,CAAC,aAAAC,CAAY,EAAE,YAAM,OAAO,qCAA6B,OAAAC,KAAA,oNAAE,OAAO,IAAID,CAAY,CAAC,CAAC","names":["parameters","DocsRenderer","n"],"sources":["../../node_modules/@storybook/addon-docs/dist/preview.mjs"],"sourcesContent":["var parameters={docs:{renderer:async()=>{let{DocsRenderer}=await import('./DocsRenderer-NNNQARDV.mjs');return new DocsRenderer}}};\n\nexport { parameters };\n"],"file":"assets/preview-3c29a369.js"}
@@ -0,0 +1,2 @@
1
+ import{c as G}from"./_commonjsHelpers-de833af9.js";const{addons:Y}=__STORYBOOK_MODULE_PREVIEW_API__,{once:V,logger:K}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:M,STORY_RENDER_PHASE_CHANGED:W,SET_CURRENT_STORY:$,IGNORED_EXCEPTION:z}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:g}=__STORYBOOK_MODULE_GLOBAL__;var H=(s=>(s.DONE="done",s.ERROR="error",s.ACTIVE="active",s.WAITING="waiting",s))(H||{}),y={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},T={start:!1,back:!1,goto:!1,next:!1,end:!1},A=new Error("This function ran after the play function completed. Did you forget to `await` it?"),P=s=>Object.prototype.toString.call(s)==="[object Object]",X=s=>Object.prototype.toString.call(s)==="[object Module]",J=s=>{if(!P(s)&&!X(s))return!1;if(s.constructor===void 0)return!0;let t=s.constructor.prototype;return!(!P(t)||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)},q=s=>{try{return new s.constructor}catch{return{}}},R=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),N=(s,t=!1)=>{let e=(t?s.shadowCalls:s.calls).filter(o=>o.retain);if(!e.length)return;let c=new Map(Array.from(s.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:e.length,calls:e,callRefsByResult:c}},Q=class{constructor(){this.initialized=!1,this.channel=Y.getChannel(),this.state=g.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let s=({storyId:i,isPlaying:n=!0,isDebugging:r=!1})=>{let l=this.getState(i);this.setState(i,{...R(),...N(l,r),shadowCalls:r?l.shadowCalls:[],chainedCallIds:r?l.chainedCallIds:new Set,playUntil:r?l.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(i)};this.channel.on(M,s),this.channel.on(W,({storyId:i,newPhase:n})=>{let{isDebugging:r}=this.getState(i);this.setState(i,{renderPhase:n}),n==="preparing"&&r&&s({storyId:i}),n==="playing"&&s({storyId:i,isDebugging:r}),n==="played"&&this.setState(i,{isLocked:!1,isPlaying:!1,isDebugging:!1}),n==="errored"&&this.setState(i,{isLocked:!1,isPlaying:!1})}),this.channel.on($,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:i,playUntil:n})=>{this.getState(i).isDebugging||this.setState(i,({calls:l})=>({calls:[],shadowCalls:l.map(u=>({...u,status:"waiting"})),isDebugging:!0}));let r=this.getLog(i);this.setState(i,({shadowCalls:l})=>{var f;if(n||!r.length)return{playUntil:n};let u=l.findIndex(_=>_.id===r[0].callId);return{playUntil:(f=l.slice(0,u).filter(_=>_.interceptable&&!_.ancestors.length).slice(-1)[0])==null?void 0:f.id}}),this.channel.emit(M,{storyId:i,isDebugging:!0})},e=({storyId:i})=>{var l;let n=this.getLog(i).filter(u=>!u.ancestors.length),r=n.reduceRight((u,f,_)=>u>=0||f.status==="waiting"?u:_,-1);t({storyId:i,playUntil:(l=n[r-1])==null?void 0:l.callId})},c=({storyId:i,callId:n})=>{var d;let{calls:r,shadowCalls:l,resolvers:u}=this.getState(i),f=r.find(({id:p})=>p===n),_=l.find(({id:p})=>p===n);if(!f&&_&&Object.values(u).length>0){let p=(d=this.getLog(i).find(h=>h.status==="waiting"))==null?void 0:d.callId;_.id!==p&&this.setState(i,{playUntil:_.id}),Object.values(u).forEach(h=>h())}else t({storyId:i,playUntil:n})},o=({storyId:i})=>{var r;let{resolvers:n}=this.getState(i);if(Object.values(n).length>0)Object.values(n).forEach(l=>l());else{let l=(r=this.getLog(i).find(u=>u.status==="waiting"))==null?void 0:r.callId;l?t({storyId:i,playUntil:l}):a({storyId:i})}},a=({storyId:i})=>{this.setState(i,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(i).resolvers).forEach(n=>n())};this.channel.on(y.START,t),this.channel.on(y.BACK,e),this.channel.on(y.GOTO,c),this.channel.on(y.NEXT,o),this.channel.on(y.END,a)}getState(s){return this.state[s]||R()}setState(s,t){let e=this.getState(s),c=typeof t=="function"?t(e):t;this.state={...this.state,[s]:{...e,...c}},g.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}cleanup(){this.state=Object.entries(this.state).reduce((t,[e,c])=>{let o=N(c);return o&&(t[e]=Object.assign(R(),o)),t},{});let s={controlStates:T,logItems:[]};this.channel.emit(y.SYNC,s),g.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}getLog(s){let{calls:t,shadowCalls:e}=this.getState(s),c=[...e];t.forEach((a,i)=>{c[i]=a});let o=new Set;return c.reduceRight((a,i)=>(i.args.forEach(n=>{n!=null&&n.__callId__&&o.add(n.__callId__)}),i.path.forEach(n=>{n.__callId__&&o.add(n.__callId__)}),(i.interceptable||i.exception)&&!o.has(i.id)&&(a.unshift({callId:i.id,status:i.status,ancestors:i.ancestors}),o.add(i.id)),a),[])}instrument(s,t){if(!J(s))return s;let{mutate:e=!1,path:c=[]}=t;return Object.keys(s).reduce((o,a)=>{let i=s[a];return typeof i!="function"?(o[a]=this.instrument(i,{...t,path:c.concat(a)}),o):typeof i.__originalFn__=="function"?(o[a]=i,o):(o[a]=(...n)=>this.track(a,i,n,t),o[a].__originalFn__=i,Object.defineProperty(o[a],"name",{value:a,writable:!1}),Object.keys(i).length>0&&Object.assign(o[a],this.instrument({...i},{...t,path:c.concat(a)})),o)},e?s:q(s))}track(s,t,e,c){var p,h,m,k;let o=((p=e==null?void 0:e[0])==null?void 0:p.__storyId__)||((k=(m=(h=g.__STORYBOOK_PREVIEW__)==null?void 0:h.selectionStore)==null?void 0:m.selection)==null?void 0:k.storyId),{cursor:a,ancestors:i}=this.getState(o);this.setState(o,{cursor:a+1});let n=`${i.slice(-1)[0]||o} [${a}] ${s}`,{path:r=[],intercept:l=!1,retain:u=!1}=c,f=typeof l=="function"?l(s,r):l,_={id:n,cursor:a,storyId:o,ancestors:i,path:r,method:s,args:e,interceptable:f,retain:u},d=(f&&!i.length?this.intercept:this.invoke).call(this,t,_,c);return this.instrument(d,{...c,mutate:!0,path:[{__callId__:_.id}]})}intercept(s,t,e){let{chainedCallIds:c,isDebugging:o,playUntil:a}=this.getState(t.storyId),i=c.has(t.id);return!o||i||a?(a===t.id&&this.setState(t.storyId,{playUntil:void 0}),this.invoke(s,t,e)):new Promise(n=>{this.setState(t.storyId,({resolvers:r})=>({isLocked:!1,resolvers:{...r,[t.id]:n}}))}).then(()=>(this.setState(t.storyId,n=>{let{[t.id]:r,...l}=n.resolvers;return{isLocked:!0,resolvers:l}}),this.invoke(s,t,e)))}invoke(s,t,e){let{callRefsByResult:c,renderPhase:o}=this.getState(t.storyId),a=r=>{var l,u;if(c.has(r))return c.get(r);if(r instanceof Array)return r.map(a);if(r instanceof Date)return{__date__:{value:r.toISOString()}};if(r instanceof Error){let{name:f,message:_,stack:d}=r;return{__error__:{name:f,message:_,stack:d}}}if(r instanceof RegExp){let{flags:f,source:_}=r;return{__regexp__:{flags:f,source:_}}}if(r instanceof g.window.HTMLElement){let{prefix:f,localName:_,id:d,classList:p,innerText:h}=r,m=Array.from(p);return{__element__:{prefix:f,localName:_,id:d,classNames:m,innerText:h}}}return typeof r=="function"?{__function__:{name:r.name}}:typeof r=="symbol"?{__symbol__:{description:r.description}}:typeof r=="object"&&((l=r==null?void 0:r.constructor)!=null&&l.name)&&((u=r==null?void 0:r.constructor)==null?void 0:u.name)!=="Object"?{__class__:{name:r.constructor.name}}:Object.prototype.toString.call(r)==="[object Object]"?Object.fromEntries(Object.entries(r).map(([f,_])=>[f,a(_)])):r},i={...t,args:t.args.map(a)};t.path.forEach(r=>{r!=null&&r.__callId__&&this.setState(t.storyId,({chainedCallIds:l})=>({chainedCallIds:new Set(Array.from(l).concat(r.__callId__))}))});let n=r=>{if(r instanceof Error){let{name:l,message:u,stack:f,callId:_=t.id}=r,d={name:l,message:u,stack:f,callId:_};if(this.update({...i,status:"error",exception:d}),this.setState(t.storyId,p=>({callRefsByResult:new Map([...Array.from(p.callRefsByResult.entries()),[r,{__callId__:t.id,retain:t.retain}]])})),t.ancestors.length)throw Object.prototype.hasOwnProperty.call(r,"callId")||Object.defineProperty(r,"callId",{value:t.id}),r;if(r!==A)throw K.warn(r),z}throw r};try{if(o==="played"&&!t.retain)throw A;let r=(e.getArgs?e.getArgs(t,this.getState(t.storyId)):t.args).map(u=>typeof u!="function"||Object.keys(u).length?u:(...f)=>{let{cursor:_,ancestors:d}=this.getState(t.storyId);this.setState(t.storyId,{cursor:0,ancestors:[...d,t.id]});let p=()=>this.setState(t.storyId,{cursor:_,ancestors:d}),h=!1;try{let m=u(...f);return m instanceof Promise?(h=!0,m.finally(p)):m}finally{h||p()}}),l=s(...r);return l&&["object","function","symbol"].includes(typeof l)&&this.setState(t.storyId,u=>({callRefsByResult:new Map([...Array.from(u.callRefsByResult.entries()),[l,{__callId__:t.id,retain:t.retain}]])})),this.update({...i,status:l instanceof Promise?"active":"done"}),l instanceof Promise?l.then(u=>(this.update({...i,status:"done"}),u),n):l}catch(r){return n(r)}}update(s){this.channel.emit(y.CALL,s),this.setState(s.storyId,({calls:t})=>{let e=t.concat(s).reduce((c,o)=>Object.assign(c,{[o.id]:o}),{});return{calls:Object.values(e).sort((c,o)=>c.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(s.storyId)}sync(s){let t=()=>{var l;let{isLocked:e,isPlaying:c}=this.getState(s),o=this.getLog(s),a=(l=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting"))==null?void 0:l.callId,i=o.some(u=>u.status==="active");if(e||i||o.length===0){let u={controlStates:T,logItems:o};this.channel.emit(y.SYNC,u);return}let n=o.some(u=>u.status==="done"||u.status==="error"),r={controlStates:{start:n,back:n,goto:!0,next:c,end:c},logItems:o,pausedAt:a};this.channel.emit(y.SYNC,r)};this.setState(s,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}};function j(s,t={}){var e,c,o,a;try{let i=!1,n=!1;return(c=(e=g.window.location)==null?void 0:e.search)!=null&&c.includes("instrument=true")?i=!0:(a=(o=g.window.location)==null?void 0:o.search)!=null&&a.includes("instrument=false")&&(n=!0),g.window.parent===g.window&&!i||n?s:(g.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__||(g.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Q),g.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__.instrument(s,t))}catch(i){return V.warn(i),s}}var O={};Object.defineProperty(O,"__esModule",{value:!0});O.spyOn=O.mocked=O.fn=L=O.ModuleMocker=void 0;function E(s,t,e){return t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}const w="mockConstructor",x=/[\s!-\/:-@\[-`{-~]/,Z=new RegExp(x.source,"g"),tt=new Set(["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"]);function et(s,t){let e;switch(t){case 1:e=function(c){return s.apply(this,arguments)};break;case 2:e=function(c,o){return s.apply(this,arguments)};break;case 3:e=function(c,o,a){return s.apply(this,arguments)};break;case 4:e=function(c,o,a,i){return s.apply(this,arguments)};break;case 5:e=function(c,o,a,i,n){return s.apply(this,arguments)};break;case 6:e=function(c,o,a,i,n,r){return s.apply(this,arguments)};break;case 7:e=function(c,o,a,i,n,r,l){return s.apply(this,arguments)};break;case 8:e=function(c,o,a,i,n,r,l,u){return s.apply(this,arguments)};break;case 9:e=function(c,o,a,i,n,r,l,u,f){return s.apply(this,arguments)};break;default:e=function(){return s.apply(this,arguments)};break}return e}function b(s){return Object.prototype.toString.apply(s).slice(8,-1)}function nt(s){const t=b(s);return t==="Function"||t==="AsyncFunction"||t==="GeneratorFunction"?"function":Array.isArray(s)?"array":t==="Object"?"object":t==="Number"||t==="String"||t==="Boolean"||t==="Symbol"?"constant":t==="Map"||t==="WeakMap"||t==="Set"?"collection":t==="RegExp"?"regexp":s===void 0?"undefined":s===null?"null":null}function rt(s,t){if(t==="arguments"||t==="caller"||t==="callee"||t==="name"||t==="length"){const e=b(s);return e==="Function"||e==="AsyncFunction"||e==="GeneratorFunction"}return t==="source"||t==="global"||t==="ignoreCase"||t==="multiline"?b(s)==="RegExp":!1}class F{constructor(t){E(this,"_environmentGlobal",void 0),E(this,"_mockState",void 0),E(this,"_mockConfigRegistry",void 0),E(this,"_spyState",void 0),E(this,"_invocationCallCounter",void 0),this._environmentGlobal=t,this._mockState=new WeakMap,this._mockConfigRegistry=new WeakMap,this._spyState=new Set,this._invocationCallCounter=1}_getSlots(t){if(!t)return[];const e=new Set,c=this._environmentGlobal.Object.prototype,o=this._environmentGlobal.Function.prototype,a=this._environmentGlobal.RegExp.prototype,i=Object.prototype,n=Function.prototype,r=RegExp.prototype;for(;t!=null&&t!==c&&t!==o&&t!==a&&t!==i&&t!==n&&t!==r;){const l=Object.getOwnPropertyNames(t);for(let u=0;u<l.length;u++){const f=l[u];if(!rt(t,f)){const _=Object.getOwnPropertyDescriptor(t,f);(_!==void 0&&!_.get||t.__esModule)&&e.add(f)}}t=Object.getPrototypeOf(t)}return Array.from(e)}_ensureMockConfig(t){let e=this._mockConfigRegistry.get(t);return e||(e=this._defaultMockConfig(),this._mockConfigRegistry.set(t,e)),e}_ensureMockState(t){let e=this._mockState.get(t);return e||(e=this._defaultMockState(),this._mockState.set(t,e)),e.calls.length>0&&(e.lastCall=e.calls[e.calls.length-1]),e}_defaultMockConfig(){return{mockImpl:void 0,mockName:"jest.fn()",specificMockImpls:[],specificReturnValues:[]}}_defaultMockState(){return{calls:[],instances:[],invocationCallOrder:[],results:[]}}_makeComponent(t,e){if(t.type==="object")return new this._environmentGlobal.Object;if(t.type==="array")return new this._environmentGlobal.Array;if(t.type==="regexp")return new this._environmentGlobal.RegExp("");if(t.type==="constant"||t.type==="collection"||t.type==="null"||t.type==="undefined")return t.value;if(t.type==="function"){const c=t.members&&t.members.prototype&&t.members.prototype.members||{},o=this._getSlots(c),a=this,i=et(function(...r){const l=a._ensureMockState(n),u=a._ensureMockConfig(n);l.instances.push(this),l.calls.push(r);const f={type:"incomplete",value:void 0};l.results.push(f),l.invocationCallOrder.push(a._invocationCallCounter++);let _,d,p=!1;try{_=(()=>{if(this instanceof n){o.forEach(k=>{if(c[k].type==="function"){const B=this[k];this[k]=a.generateFromMetadata(c[k]),this[k]._protoImpl=B}});const m=u.specificMockImpls.length?u.specificMockImpls.shift():u.mockImpl;return m&&m.apply(this,arguments)}let h=u.specificMockImpls.shift();if(h===void 0&&(h=u.mockImpl),h)return h.apply(this,arguments);if(n._protoImpl)return n._protoImpl.apply(this,arguments)})()}catch(h){throw d=h,p=!0,h}finally{f.type=p?"throw":"return",f.value=p?d:_}return _},t.length||0),n=this._createMockFunction(t,i);return n._isMockFunction=!0,n.getMockImplementation=()=>this._ensureMockConfig(n).mockImpl,typeof e=="function"&&this._spyState.add(e),this._mockState.set(n,this._defaultMockState()),this._mockConfigRegistry.set(n,this._defaultMockConfig()),Object.defineProperty(n,"mock",{configurable:!1,enumerable:!0,get:()=>this._ensureMockState(n),set:r=>this._mockState.set(n,r)}),n.mockClear=()=>(this._mockState.delete(n),n),n.mockReset=()=>(n.mockClear(),this._mockConfigRegistry.delete(n),n),n.mockRestore=()=>(n.mockReset(),e?e():void 0),n.mockReturnValueOnce=r=>n.mockImplementationOnce(()=>r),n.mockResolvedValueOnce=r=>n.mockImplementationOnce(()=>Promise.resolve(r)),n.mockRejectedValueOnce=r=>n.mockImplementationOnce(()=>Promise.reject(r)),n.mockReturnValue=r=>n.mockImplementation(()=>r),n.mockResolvedValue=r=>n.mockImplementation(()=>Promise.resolve(r)),n.mockRejectedValue=r=>n.mockImplementation(()=>Promise.reject(r)),n.mockImplementationOnce=r=>(this._ensureMockConfig(n).specificMockImpls.push(r),n),n.mockImplementation=r=>{const l=this._ensureMockConfig(n);return l.mockImpl=r,n},n.mockReturnThis=()=>n.mockImplementation(function(){return this}),n.mockName=r=>{if(r){const l=this._ensureMockConfig(n);l.mockName=r}return n},n.getMockName=()=>this._ensureMockConfig(n).mockName||"jest.fn()",t.mockImpl&&n.mockImplementation(t.mockImpl),n}else{const c=t.type||"undefined type";throw new Error("Unrecognized type "+c)}}_createMockFunction(t,e){let c=t.name;if(!c)return e;const o="bound ";let a="";if(c&&c.startsWith(o))do c=c.substring(o.length),a=".bind(null)";while(c&&c.startsWith(o));if(c===w)return e;(tt.has(c)||/^\d/.test(c))&&(c="$"+c),x.test(c)&&(c=c.replace(Z,"$"));const i="return function "+c+"() {return "+w+".apply(this,arguments);}"+a;return new this._environmentGlobal.Function(w,i)(e)}_generateMock(t,e,c){const o=this._makeComponent(t);return t.refID!=null&&(c[t.refID]=o),this._getSlots(t.members).forEach(a=>{const i=t.members&&t.members[a]||{};i.ref!=null?e.push(function(n){return()=>o[a]=c[n]}(i.ref)):o[a]=this._generateMock(i,e,c)}),t.type!=="undefined"&&t.type!=="null"&&o.prototype&&typeof o.prototype=="object"&&(o.prototype.constructor=o),o}generateFromMetadata(t){const e=[],c={},o=this._generateMock(t,e,c);return e.forEach(a=>a()),o}getMetadata(t,e){const c=e||new Map,o=c.get(t);if(o!=null)return{ref:o};const a=nt(t);if(!a)return null;const i={type:a};if(a==="constant"||a==="collection"||a==="undefined"||a==="null")return i.value=t,i;a==="function"&&(i.name=t.name,t._isMockFunction===!0&&(i.mockImpl=t.getMockImplementation())),i.refID=c.size,c.set(t,i.refID);let n=null;return a!=="array"&&this._getSlots(t).forEach(r=>{if(a==="function"&&t._isMockFunction===!0&&r.match(/^mock/))return;const l=this.getMetadata(t[r],c);l&&(n||(n={}),n[r]=l)}),n&&(i.members=n),i}isMockFunction(t){return!!t&&t._isMockFunction===!0}fn(t){const e=t?t.length:0,c=this._makeComponent({length:e,type:"function"});return t&&c.mockImplementation(t),c}spyOn(t,e,c){if(c)return this._spyOnProperty(t,e,c);if(typeof t!="object"&&typeof t!="function")throw new Error("Cannot spyOn on a primitive value; "+this._typeOf(t)+" given");const o=t[e];if(!this.isMockFunction(o)){if(typeof o!="function")throw new Error("Cannot spy the "+e+" property because it is not a function; "+this._typeOf(o)+" given instead");const a=Object.prototype.hasOwnProperty.call(t,e);let i=Object.getOwnPropertyDescriptor(t,e),n=Object.getPrototypeOf(t);for(;!i&&n!==null;)i=Object.getOwnPropertyDescriptor(n,e),n=Object.getPrototypeOf(n);let r;if(i&&i.get){const l=i.get;r=this._makeComponent({type:"function"},()=>{i.get=l,Object.defineProperty(t,e,i)}),i.get=()=>r,Object.defineProperty(t,e,i)}else r=this._makeComponent({type:"function"},()=>{a?t[e]=o:delete t[e]}),t[e]=r;r.mockImplementation(function(){return o.apply(this,arguments)})}return t[e]}_spyOnProperty(t,e,c="get"){if(typeof t!="object"&&typeof t!="function")throw new Error("Cannot spyOn on a primitive value; "+this._typeOf(t)+" given");if(!t)throw new Error("spyOn could not find an object to spy upon for "+e);if(!e)throw new Error("No property name supplied");let o=Object.getOwnPropertyDescriptor(t,e),a=Object.getPrototypeOf(t);for(;!o&&a!==null;)o=Object.getOwnPropertyDescriptor(a,e),a=Object.getPrototypeOf(a);if(!o)throw new Error(e+" property does not exist");if(!o.configurable)throw new Error(e+" is not declared configurable");if(!o[c])throw new Error("Property "+e+" does not have access type "+c);const i=o[c];if(!this.isMockFunction(i)){if(typeof i!="function")throw new Error("Cannot spy the "+e+" property because it is not a function; "+this._typeOf(i)+" given instead");o[c]=this._makeComponent({type:"function"},()=>{o[c]=i,Object.defineProperty(t,e,o)}),o[c].mockImplementation(function(){return i.apply(this,arguments)})}return Object.defineProperty(t,e,o),o[c]}clearAllMocks(){this._mockState=new WeakMap}resetAllMocks(){this._mockConfigRegistry=new WeakMap,this._mockState=new WeakMap}restoreAllMocks(){this._spyState.forEach(t=>t()),this._spyState=new Set}_typeOf(t){return t==null?""+t:typeof t}mocked(t,e=!1){return t}}var L=O.ModuleMocker=F;const S=new F(G),it=S.fn.bind(S);O.fn=it;const st=S.spyOn.bind(S);O.spyOn=st;const ot=S.mocked.bind(S);O.mocked=ot;const{addons:ct}=__STORYBOOK_MODULE_PREVIEW_API__,{global:at}=__STORYBOOK_MODULE_GLOBAL__,{FORCE_REMOUNT:lt,STORY_RENDER_PHASE_CHANGED:ut}=__STORYBOOK_MODULE_CORE_EVENTS__;var D=new L(at),_t=D.fn.bind(D),{action:ft}=j({action:_t},{retain:!0}),U=ct.getChannel(),v=new Set,C=[];U.on(lt,()=>C.forEach(s=>{var t;return(t=s==null?void 0:s.mockClear)==null?void 0:t.call(s)}));U.on(ut,({newPhase:s})=>{s==="loading"&&C.forEach(t=>{var e;return(e=t==null?void 0:t.mockClear)==null?void 0:e.call(t)})});var I=(s,t,e)=>{if(v.has(t))return t;v.add(t);try{if(Object.prototype.toString.call(t)==="[object Object]"){for(let[c,o]of Object.entries(t))t[c]=I(s,o,c);return t}if(Array.isArray(t))return t.map((c,o)=>I(s,c,`${e}[${o}]`));if(typeof t=="function"&&t.isAction){Object.defineProperty(t,"name",{value:e,writable:!1}),Object.defineProperty(t,"__storyId__",{value:s,writable:!1});let c=ft(t);return C.push(c),c}}catch{}return t},pt=({id:s,initialArgs:t})=>I(s,t),dt=[pt],{step:gt}=j({step:(s,t,e)=>t(e)},{intercept:!0}),mt={throwPlayFunctionExceptions:!1};export{dt as argsEnhancers,mt as parameters,gt as runStep};
2
+ //# sourceMappingURL=preview-6751e51d.js.map