app-studio 0.5.83 → 0.5.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/dist/app-studio.cjs.development.js +147 -4
- package/dist/app-studio.cjs.development.js.map +1 -1
- package/dist/app-studio.cjs.production.min.js +1 -1
- package/dist/app-studio.esm.js +147 -4
- package/dist/app-studio.esm.js.map +1 -1
- package/dist/app-studio.umd.development.js +147 -4
- package/dist/app-studio.umd.development.js.map +1 -1
- package/dist/app-studio.umd.production.min.js +1 -1
- package/dist/element/Element.d.ts +23 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,10 +161,10 @@ function LocallyThemedSection() {
|
|
|
161
161
|
|
|
162
162
|
// Define a local override theme and colors for this specific section
|
|
163
163
|
const localThemeOverride = { primary: 'color.orange.500', secondary: 'color.teal.300' };
|
|
164
|
-
const localDarkColorsOverride = {
|
|
164
|
+
const localDarkColorsOverride = {
|
|
165
165
|
main: {
|
|
166
166
|
white: '#EEE'
|
|
167
|
-
}
|
|
167
|
+
}
|
|
168
168
|
}; // Using defaults for demonstration
|
|
169
169
|
|
|
170
170
|
return (
|
|
@@ -179,7 +179,7 @@ function LocallyThemedSection() {
|
|
|
179
179
|
backgroundColor="theme.secondary" // Resolves to 'color.teal.300' via localThemeOverride in dark mode
|
|
180
180
|
borderRadius={8}
|
|
181
181
|
>
|
|
182
|
-
<Text color="color.white"
|
|
182
|
+
<Text color="color.white"
|
|
183
183
|
colors={localDarkColorsOverride}> {/* 'color.white' from localDarkColorsOverride.main */}
|
|
184
184
|
This section forces dark mode with an orange primary, even if the app is light.
|
|
185
185
|
</Text>
|
|
@@ -778,6 +778,23 @@ function AnimatedButton() {
|
|
|
778
778
|
|
|
779
779
|
---
|
|
780
780
|
|
|
781
|
+
# Documentation
|
|
782
|
+
|
|
783
|
+
Explore our comprehensive documentation to learn more about App-Studio:
|
|
784
|
+
|
|
785
|
+
- [Getting Started](docs/README.md) - Quick start guide and core concepts
|
|
786
|
+
- [Components](docs/Components.md) - Detailed documentation of all available components
|
|
787
|
+
- [Hooks](docs/Hooks.md) - Guide to the React hooks provided by App-Studio
|
|
788
|
+
- [Theming](docs/Theming.md) - How to customize the look and feel of your app
|
|
789
|
+
- [Animation](docs/Animation.md) - Creating animations with App-Studio
|
|
790
|
+
- [Responsive Design](docs/Responsive.md) - Building responsive layouts
|
|
791
|
+
- [Design System](docs/Design.md) - Understanding the design system
|
|
792
|
+
- [Event Handling](docs/Events.md) - Working with events and interactions
|
|
793
|
+
- [Providers](docs/Providers.md) - Context providers for global state
|
|
794
|
+
- [Migration Guide](codemod/README.md) - Migrating to App-Studio
|
|
795
|
+
|
|
796
|
+
---
|
|
797
|
+
|
|
781
798
|
# API Reference Summary
|
|
782
799
|
|
|
783
800
|
* **Core:** `Element`
|
|
@@ -1031,7 +1031,11 @@ const ResponsiveProvider = _ref => {
|
|
|
1031
1031
|
// List of numeric properties that don't need 'px' suffix
|
|
1032
1032
|
const NumberProps = /*#__PURE__*/new Set(['numberOfLines', 'fontWeight', 'timeStamp', 'flex', 'flexGrow', 'flexShrink', 'order', 'zIndex', 'aspectRatio', 'shadowOpacity', 'shadowRadius', 'scale', 'opacity', 'min', 'max', 'now']);
|
|
1033
1033
|
// Keys to exclude when passing props to the component
|
|
1034
|
-
const excludedKeys = /*#__PURE__*/new Set([
|
|
1034
|
+
const excludedKeys = /*#__PURE__*/new Set([
|
|
1035
|
+
// Standard styling props
|
|
1036
|
+
'on', 'shadow', 'only', 'media', 'css', 'widthHeight', 'paddingHorizontal', 'paddingVertical', 'marginHorizontal', 'marginVertical', 'animate',
|
|
1037
|
+
// Underscore-prefixed event props
|
|
1038
|
+
'_hover', '_active', '_focus', '_visited', '_disabled', '_enabled', '_checked', '_unchecked', '_invalid', '_valid', '_required', '_optional', '_selected', '_target', '_firstChild', '_lastChild', '_onlyChild', '_firstOfType', '_lastOfType', '_empty', '_focusVisible', '_focusWithin', '_placeholder']);
|
|
1035
1039
|
// Keys to exclude when passing props to the component
|
|
1036
1040
|
const extraKeys = /*#__PURE__*/new Set(['on', 'shadow', 'only', 'media', 'css']);
|
|
1037
1041
|
const includeKeys = /*#__PURE__*/new Set(['src', 'alt', 'style', 'as']);
|
|
@@ -1108,6 +1112,22 @@ const processStyleProperty = (property, value, getColor) => {
|
|
|
1108
1112
|
if (property.toLowerCase().indexOf('color') >= 0 || property === 'fill' || property === 'stroke') {
|
|
1109
1113
|
return getColor(value);
|
|
1110
1114
|
}
|
|
1115
|
+
// Handle border properties that might contain color values
|
|
1116
|
+
if (typeof value === 'string' && value.length > 7 && (value.indexOf('color.') >= 0 || value.indexOf('theme.') >= 0)) {
|
|
1117
|
+
// Parse border property to extract color
|
|
1118
|
+
// Format could be like: "1px solid red" or "1px solid color.red.500"
|
|
1119
|
+
const parts = value.split(' ');
|
|
1120
|
+
if (parts.length >= 3) {
|
|
1121
|
+
// The color is typically the last part
|
|
1122
|
+
const colorIndex = parts.length - 1;
|
|
1123
|
+
const colorValue = parts[colorIndex];
|
|
1124
|
+
// Process the color part through getColor
|
|
1125
|
+
const processedColor = getColor(colorValue);
|
|
1126
|
+
// Replace the color part and reconstruct the border value
|
|
1127
|
+
parts[colorIndex] = processedColor;
|
|
1128
|
+
return parts.join(' ');
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1111
1131
|
// Handle arrays (e.g., for transforms)
|
|
1112
1132
|
if (Array.isArray(value)) {
|
|
1113
1133
|
return value.join(' ');
|
|
@@ -1466,6 +1486,22 @@ class UtilityClassManager {
|
|
|
1466
1486
|
if (property.toLowerCase().includes('color')) {
|
|
1467
1487
|
processedValue = getColor(value);
|
|
1468
1488
|
}
|
|
1489
|
+
// Handle border properties that might contain color values
|
|
1490
|
+
if (typeof value === 'string' && value.length > 7 && (value.indexOf('color.') >= 0 || value.indexOf('theme.') >= 0)) {
|
|
1491
|
+
// Parse border property to extract color
|
|
1492
|
+
// Format could be like: "1px solid red" or "1px solid color.red.500"
|
|
1493
|
+
const parts = value.split(' ');
|
|
1494
|
+
if (parts.length >= 3) {
|
|
1495
|
+
// The color is typically the last part
|
|
1496
|
+
const colorIndex = parts.length - 1;
|
|
1497
|
+
const colorValue = parts[colorIndex];
|
|
1498
|
+
// Process the color part through getColor
|
|
1499
|
+
const processedColor = getColor(colorValue);
|
|
1500
|
+
// Replace the color part and reconstruct the border value
|
|
1501
|
+
parts[colorIndex] = processedColor;
|
|
1502
|
+
processedValue = parts.join(' ');
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1469
1505
|
// Handle numeric values
|
|
1470
1506
|
if (typeof processedValue === 'number') {
|
|
1471
1507
|
if (numericCssProperties.has(property)) {
|
|
@@ -1636,14 +1672,41 @@ class UtilityClassManager {
|
|
|
1636
1672
|
}
|
|
1637
1673
|
}
|
|
1638
1674
|
/**
|
|
1639
|
-
*
|
|
1675
|
+
* Maps a React event to a CSS pseudo-class.
|
|
1640
1676
|
*/
|
|
1641
1677
|
const mapEventToPseudo = event => {
|
|
1642
1678
|
const eventWeakMap = {
|
|
1679
|
+
// Basic interaction states
|
|
1643
1680
|
hover: 'hover',
|
|
1644
1681
|
active: 'active',
|
|
1645
1682
|
focus: 'focus',
|
|
1646
|
-
visited: 'visited'
|
|
1683
|
+
visited: 'visited',
|
|
1684
|
+
// Form states
|
|
1685
|
+
disabled: 'disabled',
|
|
1686
|
+
enabled: 'enabled',
|
|
1687
|
+
checked: 'checked',
|
|
1688
|
+
unchecked: 'not(:checked)',
|
|
1689
|
+
invalid: 'invalid',
|
|
1690
|
+
valid: 'valid',
|
|
1691
|
+
required: 'required',
|
|
1692
|
+
optional: 'optional',
|
|
1693
|
+
// Selection states
|
|
1694
|
+
selected: 'selected',
|
|
1695
|
+
// Target states
|
|
1696
|
+
target: 'target',
|
|
1697
|
+
// Child states
|
|
1698
|
+
firstChild: 'first-child',
|
|
1699
|
+
lastChild: 'last-child',
|
|
1700
|
+
onlyChild: 'only-child',
|
|
1701
|
+
firstOfType: 'first-of-type',
|
|
1702
|
+
lastOfType: 'last-of-type',
|
|
1703
|
+
// Other states
|
|
1704
|
+
empty: 'empty',
|
|
1705
|
+
// Focus states
|
|
1706
|
+
focusVisible: 'focus-visible',
|
|
1707
|
+
focusWithin: 'focus-within',
|
|
1708
|
+
// Placeholder
|
|
1709
|
+
placeholder: 'placeholder-shown'
|
|
1647
1710
|
};
|
|
1648
1711
|
return eventWeakMap[event] || null;
|
|
1649
1712
|
};
|
|
@@ -1834,9 +1897,20 @@ const extractUtilityClasses = (props, getColor, mediaQueries, devices) => {
|
|
|
1834
1897
|
});
|
|
1835
1898
|
};
|
|
1836
1899
|
generateUtilityClasses(computedStyles, 'base');
|
|
1900
|
+
// Process underscore-prefixed properties (e.g., _hover, _active)
|
|
1901
|
+
// and collect them into a pseudo-'on' object
|
|
1902
|
+
const underscoreProps = {};
|
|
1903
|
+
Object.keys(props).forEach(property => {
|
|
1904
|
+
if (property.startsWith('_') && property.length > 1) {
|
|
1905
|
+
const eventName = property.substring(1); // Remove the underscore
|
|
1906
|
+
underscoreProps[eventName] = props[property];
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1837
1909
|
// Iterate over remaining style props
|
|
1838
1910
|
Object.keys(props).forEach(property => {
|
|
1839
|
-
if (property !== 'style' && property !== 'css' && (
|
|
1911
|
+
if (property !== 'style' && property !== 'css' && !property.startsWith('_') && (
|
|
1912
|
+
// Skip underscore props as we handle them separately
|
|
1913
|
+
isStyleProp(property) || ['on', 'media'].includes(property))) {
|
|
1840
1914
|
const value = props[property];
|
|
1841
1915
|
if (typeof value === 'object' && value !== null) {
|
|
1842
1916
|
if (property === 'on') {
|
|
@@ -1917,6 +1991,75 @@ const extractUtilityClasses = (props, getColor, mediaQueries, devices) => {
|
|
|
1917
1991
|
classes.push(uniqueClassName);
|
|
1918
1992
|
}
|
|
1919
1993
|
}
|
|
1994
|
+
// Process the underscore-prefixed properties we collected earlier
|
|
1995
|
+
if (Object.keys(underscoreProps).length > 0) {
|
|
1996
|
+
Object.keys(underscoreProps).forEach(event => {
|
|
1997
|
+
const eventStyles = underscoreProps[event];
|
|
1998
|
+
// Handle both object and non-object values
|
|
1999
|
+
if (typeof eventStyles === 'object' && eventStyles !== null) {
|
|
2000
|
+
const {
|
|
2001
|
+
animate,
|
|
2002
|
+
...otherEventStyles
|
|
2003
|
+
} = eventStyles;
|
|
2004
|
+
if (animate) {
|
|
2005
|
+
const animations = Array.isArray(animate) ? animate : [animate];
|
|
2006
|
+
const animationNames = [];
|
|
2007
|
+
const animationDurations = [];
|
|
2008
|
+
const animationTimingFunctions = [];
|
|
2009
|
+
const animationDelays = [];
|
|
2010
|
+
const animationIterationCounts = [];
|
|
2011
|
+
const animationDirections = [];
|
|
2012
|
+
const animationFillModes = [];
|
|
2013
|
+
const animationPlayStates = [];
|
|
2014
|
+
animations.forEach(animation => {
|
|
2015
|
+
const {
|
|
2016
|
+
keyframesName,
|
|
2017
|
+
keyframes
|
|
2018
|
+
} = generateKeyframes(animation);
|
|
2019
|
+
if (keyframes && typeof document !== 'undefined') {
|
|
2020
|
+
utilityClassManager.injectRule(keyframes);
|
|
2021
|
+
}
|
|
2022
|
+
animationNames.push(keyframesName);
|
|
2023
|
+
animationDurations.push(animation.duration || '0s');
|
|
2024
|
+
animationTimingFunctions.push(animation.timingFunction || 'ease');
|
|
2025
|
+
animationDelays.push(animation.delay || '0s');
|
|
2026
|
+
animationIterationCounts.push(animation.iterationCount !== undefined ? `${animation.iterationCount}` : '1');
|
|
2027
|
+
animationDirections.push(animation.direction || 'normal');
|
|
2028
|
+
animationFillModes.push(animation.fillMode || 'none');
|
|
2029
|
+
animationPlayStates.push(animation.playState || 'running');
|
|
2030
|
+
});
|
|
2031
|
+
const animationStyles = {
|
|
2032
|
+
animationName: animationNames.join(', '),
|
|
2033
|
+
animationDuration: animationDurations.join(', '),
|
|
2034
|
+
animationTimingFunction: animationTimingFunctions.join(', '),
|
|
2035
|
+
animationDelay: animationDelays.join(', '),
|
|
2036
|
+
animationIterationCount: animationIterationCounts.join(', '),
|
|
2037
|
+
animationDirection: animationDirections.join(', '),
|
|
2038
|
+
animationFillMode: animationFillModes.join(', '),
|
|
2039
|
+
animationPlayState: animationPlayStates.join(', ')
|
|
2040
|
+
};
|
|
2041
|
+
Object.assign(otherEventStyles, animationStyles);
|
|
2042
|
+
}
|
|
2043
|
+
if (Object.keys(otherEventStyles).length > 0) {
|
|
2044
|
+
const pseudo = mapEventToPseudo(event);
|
|
2045
|
+
if (pseudo) {
|
|
2046
|
+
generateUtilityClasses(otherEventStyles, 'pseudo', pseudo);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
} else {
|
|
2050
|
+
// For non-object values, create a simple style object with a default property
|
|
2051
|
+
// This allows syntax like _hover="color.blue" to work
|
|
2052
|
+
const defaultProperty = 'color'; // You can change this or make it configurable
|
|
2053
|
+
const styleObj = {
|
|
2054
|
+
[defaultProperty]: eventStyles
|
|
2055
|
+
};
|
|
2056
|
+
const pseudo = mapEventToPseudo(event);
|
|
2057
|
+
if (pseudo) {
|
|
2058
|
+
generateUtilityClasses(styleObj, 'pseudo', pseudo);
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
1920
2063
|
return classes;
|
|
1921
2064
|
};
|
|
1922
2065
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-studio.cjs.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-studio.cjs.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=e(require("color-convert"));const o={whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},white:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.08)",200:"rgba(255, 255, 255, 0.16)",300:"rgba(255, 255, 255, 0.24)",400:"rgba(255, 255, 255, 0.36)",500:"rgba(255, 255, 255, 0.48)",600:"rgba(255, 255, 255, 0.64)",700:"rgba(255, 255, 255, 0.80)",800:"rgba(255, 255, 255, 0.92)",900:"rgba(255, 255, 255, 1)"},black:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.08)",200:"rgba(0, 0, 0, 0.16)",300:"rgba(0, 0, 0, 0.24)",400:"rgba(0, 0, 0, 0.36)",500:"rgba(0, 0, 0, 0.48)",600:"rgba(0, 0, 0, 0.64)",700:"rgba(0, 0, 0, 0.80)",800:"rgba(0, 0, 0, 0.92)",900:"rgba(0, 0, 0, 1)"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},lightBlue:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},warmGray:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},trueGray:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},gray:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},dark:{50:"#18181b",100:"#27272a",200:"#3f3f46",300:"#52525b",400:"#71717a",500:"#a1a1aa",600:"#d4d4d8",700:"#e4e4e7",800:"#f4f4f5",900:"#fafafa"},light:{50:"#f8f9fa",100:"#f1f3f5",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#868e96",700:"#495057",800:"#343a40",900:"#212529"},coolGray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},blueGray:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"}},a={whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},white:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.08)",200:"rgba(255, 255, 255, 0.16)",300:"rgba(255, 255, 255, 0.24)",400:"rgba(255, 255, 255, 0.36)",500:"rgba(255, 255, 255, 0.48)",600:"rgba(255, 255, 255, 0.64)",700:"rgba(255, 255, 255, 0.80)",800:"rgba(255, 255, 255, 0.92)",900:"rgba(255, 255, 255, 1)"},black:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.08)",200:"rgba(0, 0, 0, 0.16)",300:"rgba(0, 0, 0, 0.24)",400:"rgba(0, 0, 0, 0.36)",500:"rgba(0, 0, 0, 0.48)",600:"rgba(0, 0, 0, 0.64)",700:"rgba(0, 0, 0, 0.80)",800:"rgba(0, 0, 0, 0.92)",900:"rgba(0, 0, 0, 1)"},rose:{50:"#330517",100:"#4a031e",200:"#6b112f",300:"#9f1239",400:"#c81e5b",500:"#e11d48",600:"#be123c",700:"#9f1239",800:"#7f1235",900:"#581c87"},pink:{50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#581c87"},fuchsia:{50:"#c026d3",100:"#a21caf",200:"#86198f",300:"#701a75",400:"#9333ea",500:"#d946ef",600:"#e879f9",700:"#f0abfc",800:"#f5d0fe",900:"#fae8ff"},purple:{50:"#6b21a8",100:"#7e22ce",200:"#9333ea",300:"#a855f7",400:"#c084fc",500:"#d8b4fe",600:"#e9d5ff",700:"#f3e8ff",800:"#faf5ff",900:"#fef4ff"},violet:{50:"#4c1d95",100:"#701a75",200:"#86198f",300:"#a21caf",400:"#c026d3",500:"#d946ef",600:"#e879f9",700:"#f0abfc",800:"#f5d0fe",900:"#fae8ff"},indigo:{50:"#312e81",100:"#3730a3",200:"#1e40af",300:"#1d4ed8",400:"#2563eb",500:"#3b82f6",600:"#60a5fa",700:"#93c5fd",800:"#bfdbfe",900:"#dbeafe"},blue:{50:"#1e3a8a",100:"#1e40af",200:"#1d4ed8",300:"#2563eb",400:"#3b82f6",500:"#60a5fa",600:"#93c5fd",700:"#bfdbfe",800:"#dbeafe",900:"#eff6ff"},lightBlue:{50:"#0c4a6e",100:"#075985",200:"#0369a1",300:"#0284c7",400:"#0ea5e9",500:"#38bdf8",600:"#7dd3fc",700:"#bae6fd",800:"#e0f2fe",900:"#f0f9ff"},cyan:{50:"#164e63",100:"#155e75",200:"#0e7490",300:"#0891b2",400:"#22d3ee",500:"#67e8f9",600:"#a5f3fc",700:"#cffafe",800:"#ecfeff",900:"#f0fefe"},teal:{50:"#134e4a",100:"#166534",200:"#15803d",300:"#16a34a",400:"#22c55e",500:"#4ade80",600:"#5eead4",700:"#99f6e4",800:"#ccfbf1",900:"#f0fdfa"},emerald:{50:"#064e3b",100:"#065f46",200:"#047857",300:"#059669",400:"#10b981",500:"#34d399",600:"#6ee7b7",700:"#a7f3d0",800:"#d1fae5",900:"#ecfdf5"},green:{50:"#14532d",100:"#166534",200:"#15803d",300:"#16a34a",400:"#22c55e",500:"#4ade80",600:"#86efac",700:"#bbf7d0",800:"#dcfce7",900:"#f0fdf4"},lime:{50:"#365314",100:"#3f6212",200:"#4d7c0f",300:"#65a30d",400:"#84cc16",500:"#a3e635",600:"#bef264",700:"#d9f99d",800:"#ecfccb",900:"#f7fee7"},yellow:{50:"#713f12",100:"#854d0e",200:"#a16207",300:"#ca8a04",400:"#eab308",500:"#facc15",600:"#fde047",700:"#fef08a",800:"#fef9c3",900:"#fefce8"},amber:{50:"#78350f",100:"#92400e",200:"#b45309",300:"#d97706",400:"#f59e0b",500:"#fbbf24",600:"#fcd34d",700:"#fde68a",800:"#fef3c7",900:"#fffbeb"},orange:{50:"#7c2d12",100:"#9a3412",200:"#c2410c",300:"#ea580c",400:"#f97316",500:"#fb923c",600:"#fdba74",700:"#fed7aa",800:"#ffedd5",900:"#fff7ed"},red:{50:"#7f1d1d",100:"#991b1b",200:"#b91c1c",300:"#dc2626",400:"#ef4444",500:"#f87171",600:"#fca5a5",700:"#fecaca",800:"#fee2e2",900:"#fef2f2"},warmGray:{50:"#1c1917",100:"#292524",200:"#44403c",300:"#57534e",400:"#78716c",500:"#a8a29e",600:"#d6d3d1",700:"#e7e5e4",800:"#f5f5f4",900:"#fafaf9"},trueGray:{50:"#171717",100:"#262626",200:"#404040",300:"#525252",400:"#737373",500:"#a3a3a3",600:"#d4d4d4",700:"#e5e5e5",800:"#f5f5f5",900:"#fafafa"},gray:{50:"#18181b",100:"#27272a",200:"#3f3f46",300:"#52525b",400:"#71717a",500:"#a1a1aa",600:"#d4d4d8",700:"#e4e4e7",800:"#f4f4f5",900:"#fafafa"},dark:{50:"#212529",100:"#343a40",200:"#495057",300:"#868e96",400:"#adb5bd",500:"#ced4da",600:"#dee2e6",700:"#f1f3f5",800:"#f8f9fa",900:"#ffffff"},light:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},coolGray:{50:"#111827",100:"#1f2937",200:"#374151",300:"#4b5563",400:"#6b7280",500:"#9ca3af",600:"#d1d5db",700:"#e5e7eb",800:"#f3f4f6",900:"#f9fafb"},blueGray:{50:"#0f172a",100:"#1e293b",200:"#334155",300:"#475569",400:"#64748b",500:"#94a3b8",600:"#cbd5e1",700:"#e2e8f0",800:"#f1f5f9",900:"#f8fafc"}},i={white:"#FFFFFF",black:"#000000",red:"#FF0000",green:"#00FF00",blue:"#0000FF",yellow:"#FFFF00",cyan:"#00FFFF",magenta:"#FF00FF",grey:"#808080",orange:"#FFA500",brown:"#A52A2A",purple:"#800080",pink:"#FFC0CB",lime:"#00FF00",teal:"#008080",navy:"#000080",olive:"#808000",maroon:"#800000",gold:"#FFD700",silver:"#C0C0C0",indigo:"#4B0082",violet:"#EE82EE",beige:"#F5F5DC",turquoise:"#40E0D0",coral:"#FF7F50",chocolate:"#D2691E",skyBlue:"#87CEEB",plum:"#DDA0DD",darkGreen:"#006400",salmon:"#FA8072"},s={...i,dark:"#a1a1aa",white:"#FFFFFF",black:"#000000"},c={...i,dark:"#adb5bd",white:"#000000",black:"#FFFFFF"},l="theme.",f="color.",d={primary:`${f}black`,secondary:`${f}blue`,success:`${f}green.500`,error:`${f}red.500`,warning:`${f}orange.500`,disabled:`${f}gray.500`,loading:`${f}dark.500`},u={main:s,palette:o},m={main:c,palette:a},g=t.createContext(null),h=()=>{const e=t.useContext(g);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},p=(e,t)=>{if("object"!=typeof t||null===t)return e;const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=t[n],a=e[n];Array.isArray(o)?r[n]=o:"object"!=typeof o||null===o||Array.isArray(o)?void 0!==o&&(r[n]=o):r[n]=p(a||{},o)}return r},b={xs:0,sm:340,md:560,lg:1080,xl:1300},w={mobile:["xs","sm"],tablet:["md","lg"],desktop:["lg","xl"]},y=e=>{const t=Object.keys(e).map((t=>({breakpoint:t,min:e[t],max:void 0}))).sort(((e,t)=>e.min-t.min));for(let e=0;e<t.length-1;e++)t[e].max=t[e+1].min-1;const r={};return t.forEach((e=>{let t="only screen";e.min>0&&(t+=` and (min-width: ${e.min}px)`),void 0!==e.max&&(t+=` and (max-width: ${e.max}px)`),r[e.breakpoint]=t.trim()})),r},x=(e,t)=>{for(const r in t)if(t[r].includes(e))return r;return"desktop"},v=t.createContext({breakpoints:b,devices:w,mediaQueries:y(b),currentWidth:0,currentHeight:0,currentBreakpoint:"xs",currentDevice:"mobile",orientation:"portrait"}),S=()=>t.useContext(v),F=new Set(["numberOfLines","fontWeight","timeStamp","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","shadowOpacity","shadowRadius","scale","opacity","min","max","now"]),k=new Set(["on","shadow","only","media","css","widthHeight","paddingHorizontal","paddingVertical","marginHorizontal","marginVertical","animate"]),C=new Set(["on","shadow","only","media","css"]),E=new Set(["src","alt","style","as"]),R=new Set([...Object.keys(document.createElement("div").style),"margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","width","height","minWidth","minHeight","maxWidth","maxHeight","position","top","right","bottom","left","zIndex","flex","flexDirection","flexWrap","flexFlow","justifyContent","alignItems","alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","gridTemplateColumns","gridTemplateRows","gridTemplate","gridAutoColumns","gridAutoRows","gridAutoFlow","gridArea","gridColumn","gridRow","gap","gridGap","rowGap","columnGap","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","textDecoration","textTransform","whiteSpace","wordBreak","wordSpacing","wordWrap","color","backgroundColor","background","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","opacity","border","borderWidth","borderStyle","borderColor","borderRadius","borderTop","borderRight","borderBottom","borderLeft","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","boxShadow","textShadow","transform","transition","animation","filter","backdropFilter","display","visibility","overflow","overflowX","overflowY","float","clear","objectFit","objectPosition","cursor","pointerEvents","userSelect","resize","widthHeight","shadow","textJustify","lineClamp","textIndent","perspective"]),$=e=>R.has(e)||C.has(e)||/^(webkit|moz|ms|o)[A-Z]/.test(e)||e.startsWith("--")||e.startsWith("data-style-")&&!E.has(e),O=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),j=(e,t,r)=>null==t?"":"number"==typeof t?F.has(e)?t:`${t}px`:e.toLowerCase().indexOf("color")>=0||"fill"===e||"stroke"===e?r(t):Array.isArray(t)?t.join(" "):"object"==typeof t?JSON.stringify(t):t,X=Array.from(R),L={0:{shadowColor:"#000",shadowOffset:{width:1,height:2},shadowOpacity:.18,shadowRadius:1},1:{shadowColor:"#000",shadowOffset:{width:2,height:2},shadowOpacity:.2,shadowRadius:1.41},2:{shadowColor:"#000",shadowOffset:{width:3,height:3},shadowOpacity:.22,shadowRadius:2.22},3:{shadowColor:"#000",shadowOffset:{width:4,height:4},shadowOpacity:.23,shadowRadius:2.62},4:{shadowColor:"#000",shadowOffset:{width:5,height:5},shadowOpacity:.25,shadowRadius:3.84},5:{shadowColor:"#000",shadowOffset:{width:6,height:6},shadowOpacity:.27,shadowRadius:4.65},6:{shadowColor:"#000",shadowOffset:{width:7,height:7},shadowOpacity:.29,shadowRadius:4.65},7:{shadowColor:"#000",shadowOffset:{width:8,height:8},shadowOpacity:.3,shadowRadius:4.65},8:{shadowColor:"#000",shadowOffset:{width:9,height:9},shadowOpacity:.32,shadowRadius:5.46},9:{shadowColor:"#000",shadowOffset:{width:10,height:10},shadowOpacity:.34,shadowRadius:6.27}};let D=0;const A=new Map,T=e=>{const{duration:t,timingFunction:r,delay:n,iterationCount:o,direction:a,fillMode:i,playState:s,timeline:c,range:l,...f}=e,d=JSON.stringify(f);if(A.has(d)){return{keyframesName:A.get(d),keyframes:""}}const u="animation-"+D++;A.set(d,u);const m=[];Object.keys(f).sort(((e,t)=>{const r=e=>"from"===e?0:"to"===e||"enter"===e?100:parseInt(e.replace("%",""),10);return r(e)-r(t)})).forEach((e=>{const t="enter"===e?"to":e,r=f[e];m.push(`${t} { ${(e=>Object.entries(e).filter((e=>{let[t]=e;return $(t)})).map((e=>{let[t,r]=e;return`${O(t)}: ${j(t,r,(e=>e))};`})).join(" "))(r)} }`)}));return{keyframesName:u,keyframes:`\n @keyframes ${u} {\n ${m.join("\n")}\n }\n `}},M=new Set(["border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-left-width","border-radius","border-right-width","border-spacing","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","column-gap","column-rule-width","column-width","font-size","gap","height","left","letter-spacing","line-height","margin","margin-bottom","margin-left","margin-right","margin-top","max-height","max-width","min-height","min-width","outline-offset","outline-width","padding","padding-bottom","padding-left","padding-right","padding-top","perspective","right","row-gap","text-indent","top","width"]);class Y{constructor(e){this.maxSize=e,this.cache=new Map}get(e){const t=this.cache.get(e);if(t)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}delete(e){this.cache.delete(e)}get size(){return this.cache.size}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}}class I{constructor(e,t){void 0===t&&(t=1e4),this.baseStyleSheet=new Map,this.mediaStyleSheet=new Map,this.modifierStyleSheet=new Map,this.mainDocument=null,this.propertyShorthand=e,this.maxCacheSize=t,this.classCache=new Y(this.maxCacheSize),"undefined"!=typeof document&&(this.mainDocument=document,this.initStyleSheets(document))}initStyleSheets(e){if(!this.baseStyleSheet.has(e)){let t=e.getElementById("utility-classes-base");t||(t=e.createElement("style"),t.id="utility-classes-base",e.head.appendChild(t)),this.baseStyleSheet.set(e,t.sheet)}if(!this.mediaStyleSheet.has(e)){let t=e.getElementById("utility-classes-media");t||(t=e.createElement("style"),t.id="utility-classes-media",e.head.appendChild(t)),this.mediaStyleSheet.set(e,t.sheet)}if(!this.modifierStyleSheet.has(e)){let t=e.getElementById("utility-classes-modifier");t||(t=e.createElement("style"),t.id="utility-classes-modifier",e.head.appendChild(t)),this.modifierStyleSheet.set(e,t.sheet)}}getMainDocumentRules(){if(!this.mainDocument)return[];const e=[],t=this.baseStyleSheet.get(this.mainDocument);t&&Array.from(t.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"base"})}));const r=this.mediaStyleSheet.get(this.mainDocument);r&&Array.from(r.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"media"})}));const n=this.modifierStyleSheet.get(this.mainDocument);return n&&Array.from(n.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"modifier"})})),e}addDocument(e){if(e===this.mainDocument)return;this.initStyleSheets(e),this.clearStylesFromDocument(e);this.getMainDocumentRules().forEach((t=>{let{cssText:r,context:n}=t;this.injectRuleToDocument(r,n,e)}))}clearStylesFromDocument(e){const t=this.baseStyleSheet.get(e),r=this.mediaStyleSheet.get(e),n=this.modifierStyleSheet.get(e);t&&this.clearStyleSheet(t),r&&this.clearStyleSheet(r),n&&this.clearStyleSheet(n)}escapeClassName(e){return e.replace(/:/g,"\\:")}injectRule(e,t){void 0===t&&(t="base"),this.mainDocument&&this.injectRuleToDocument(e,t,this.mainDocument);for(const r of this.getAllRegisteredDocuments())r!==this.mainDocument&&this.injectRuleToDocument(e,t,r)}getAllRegisteredDocuments(){return Array.from(this.baseStyleSheet.keys())}addToCache(e,t,r){this.classCache.set(e,{className:t,rules:r})}getClassNames(e,t,r,n,o,a){void 0===r&&(r="base"),void 0===n&&(n=""),void 0===a&&(a=[]);let i=t;e.toLowerCase().includes("color")&&(i=o(t)),"number"==typeof i&&M.has(e)&&(i=`${i}px`);let s=i.toString().split(" ").join("-"),c=`${e}:${s}`;n&&"base"!==r&&(c=`${e}:${s}|${r}:${n}`);const l=this.classCache.get(c);if(l)return[l.className];let f=this.propertyShorthand[e];f||(f=e.replace(/([A-Z])/g,"-$1").toLowerCase());let d=`${f}-${s.toString().replace(/\./g,"p").replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-]/g,"").replace(/%/g,"pct").replace(/vw/g,"vw").replace(/vh/g,"vh").replace(/em/g,"em").replace(/rem/g,"rem")}`,u=[d],m=[];const g=e.replace(/([A-Z])/g,"-$1").toLowerCase();let h=i;"number"==typeof h&&M.has(g)&&(h=`${h}px`);const p=e=>{const t=this.escapeClassName(e);switch(r){case"base":m.push({rule:`.${t} { ${g}: ${h}; }`,context:"base"});break;case"pseudo":m.push({rule:`.${t}:${n} { ${g}: ${h}; }`,context:"pseudo"});break;case"media":a.forEach((e=>{m.push({rule:`@media ${e} { .${t} { ${g}: ${h}; } }`,context:"media"})}))}};if("pseudo"===r&&n){const e=`${d}--${n}`;u=[e],p(e)}else if("media"===r&&n){const e=`${n}--${d}`;u=[e],p(e)}else p(d);return m.forEach((e=>{let{rule:t,context:r}=e;this.injectRule(t,r)})),this.addToCache(c,u[0],m),u}removeDocument(e){e!==this.mainDocument&&(this.baseStyleSheet.delete(e),this.mediaStyleSheet.delete(e),this.modifierStyleSheet.delete(e))}clearCache(){this.classCache.clear()}clearStyleSheet(e){for(;e.cssRules.length>0;)e.deleteRule(0)}regenerateStyles(e){if(e===this.mainDocument){this.clearStylesFromDocument(e);const t=Array.from(this.classCache.values());for(const{rules:r}of t)r.forEach((t=>{let{rule:r,context:n}=t;this.injectRuleToDocument(r,n,e)}))}else this.addDocument(e)}regenerateAllStyles(){for(const e of this.getAllRegisteredDocuments())this.regenerateStyles(e)}injectRuleToDocument(e,t,r){let n=null;switch(t){case"base":case"pseudo":n=this.baseStyleSheet.get(r)||null;break;case"media":n=this.mediaStyleSheet.get(r)||null;break;case"modifier":n=this.modifierStyleSheet.get(r)||null}if(n)try{n.insertRule(e,n.cssRules.length)}catch(t){console.error(`Error inserting CSS rule to document: "${e}"`,t)}}printStyles(e){console.group("Current styles for document:"),console.group("Base styles:");const t=this.baseStyleSheet.get(e);t&&Array.from(t.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.group("Media styles:");const r=this.mediaStyleSheet.get(e);r&&Array.from(r.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.group("Modifier styles:");const n=this.modifierStyleSheet.get(e);n&&Array.from(n.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.groupEnd()}}function z(e){const t={},r=new Set;function n(e){const t=e[0].toLowerCase(),n=e[e.length-1].toLowerCase();let o=t+e.slice(1,-1).replace(/[a-z]/g,"").toLowerCase()+n;o.length<2&&(o=e.slice(0,2).toLowerCase());let a=0,i=o;for(;r.has(i);)a++,i=o+e.slice(-a).toLowerCase();return r.add(i),i}for(const r of e)t[r]=n(r);return t}const H=new Map;const P=new I(z(X),1e4);function B(e){const t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const r=parseFloat(t[1]);return"s"===t[2]?1e3*r:r}function W(e){return e>=1e3&&e%1e3==0?e/1e3+"s":`${e}ms`}const N=(e,t,r,o)=>{const a=[],i={},s=void 0!==e.height&&void 0!==e.width&&e.height===e.width?e.height:e.widthHeight||null;if(s){const e="number"==typeof s?`${s}px`:s;i.width=e,i.height=e}if(e.paddingHorizontal){const t="number"==typeof e.paddingHorizontal?`${e.paddingHorizontal}px`:e.paddingHorizontal;i.paddingLeft=t,i.paddingRight=t}if(e.marginHorizontal){const t="number"==typeof e.marginHorizontal?`${e.marginHorizontal}px`:e.marginHorizontal;i.marginLeft=t,i.marginRight=t}if(e.paddingVertical){const t="number"==typeof e.paddingVertical?`${e.paddingVertical}px`:e.paddingVertical;i.paddingTop=t,i.paddingBottom=t}if(e.marginVertical){const t="number"==typeof e.marginVertical?`${e.marginVertical}px`:e.marginVertical;i.marginTop=t,i.marginBottom=t}if(e.shadow){let t;if(t="number"==typeof e.shadow&&void 0!==L[e.shadow]?e.shadow:"boolean"==typeof e.shadow?e.shadow?2:0:2,L[t]){const{shadowColor:e,shadowOpacity:r,shadowOffset:o,shadowRadius:a}=L[t],s=`rgba(${n.hex.rgb(e).join(",")}, ${r})`;i.boxShadow=`${o.height}px ${o.width}px ${a}px ${s}`}}if(e.animate){const t=Array.isArray(e.animate)?e.animate:[e.animate],r=[],n=[],o=[],a=[],s=[],c=[],l=[],f=[],d=[],u=[];let m=0;t.forEach((e=>{const{keyframesName:t,keyframes:i}=T(e);i&&"undefined"!=typeof document&&P.injectRule(i),r.push(t);const g=B(e.duration||"0s"),h=B(e.delay||"0s"),p=m+h;m=p+g,n.push(W(g)),o.push(e.timingFunction||"ease"),a.push(W(p)),s.push(void 0!==e.iterationCount?`${e.iterationCount}`:"1"),c.push(e.direction||"normal"),l.push(e.fillMode||"none"),f.push(e.playState||"running"),d.push(e.timeline||""),u.push(e.range||"")})),i.animationName=r.join(", "),i.animationDuration=n.join(", "),i.animationTimingFunction=o.join(", "),i.animationDelay=a.join(", "),i.animationIterationCount=s.join(", "),i.animationDirection=c.join(", "),i.animationFillMode=l.join(", "),i.animationPlayState=f.join(", "),d.some((e=>e))&&(i.animationTimeline=d.join(", ")),u.some((e=>e))&&(i.animationRange=u.join(", "))}const c=function(e,n,i){void 0===n&&(n="base"),void 0===i&&(i=""),Object.keys(e).forEach((s=>{const c=e[s];let l=[];if("media"===n&&(r[i]?l=[r[i]]:o[i]&&(l=o[i].map((e=>r[e])).filter((e=>e)))),void 0!==c&&""!==c){const e=P.getClassNames(s,c,n,i,t,l);a.push(...e)}}))};if(c(i,"base"),Object.keys(e).forEach((r=>{if("style"!==r&&"css"!==r&&($(r)||["on","media"].includes(r))){const n=e[r];if("object"==typeof n&&null!==n)"on"===r?Object.keys(n).forEach((e=>{const t=n[e],{animate:r,...o}=t;if(r){const e=Array.isArray(r)?r:[r],t=[],n=[],a=[],i=[],s=[],c=[],l=[],f=[];e.forEach((e=>{const{keyframesName:r,keyframes:o}=T(e);o&&"undefined"!=typeof document&&P.injectRule(o),t.push(r),n.push(e.duration||"0s"),a.push(e.timingFunction||"ease"),i.push(e.delay||"0s"),s.push(void 0!==e.iterationCount?`${e.iterationCount}`:"1"),c.push(e.direction||"normal"),l.push(e.fillMode||"none"),f.push(e.playState||"running")}));const d={animationName:t.join(", "),animationDuration:n.join(", "),animationTimingFunction:a.join(", "),animationDelay:i.join(", "),animationIterationCount:s.join(", "),animationDirection:c.join(", "),animationFillMode:l.join(", "),animationPlayState:f.join(", ")};Object.assign(o,d)}if(Object.keys(o).length>0){const t=(e=>({hover:"hover",active:"active",focus:"focus",visited:"visited"}[e]||null))(e);t&&c(o,"pseudo",t)}})):"media"===r&&Object.keys(n).forEach((e=>{const t=n[e];c(t,"media",e)}));else if(void 0!==n&&""!==n){const e=P.getClassNames(r,n,"base","",t,[]);a.push(...e)}}})),e.css)if("object"==typeof e.css)Object.assign(i,e.css);else if("string"==typeof e.css){const t=function(e){if(H.has(e))return H.get(e);const t=`raw-css-${Math.random().toString(36).substring(7)}`;return H.set(e,t),t}(e.css);console.log("uniqueClassName",t,e.css),P.injectRule(`.${t} { ${e.css} }`),a.push(t)}return a},V=t.createContext({}),G=()=>t.useContext(V),U=r.memo(t.forwardRef(((e,n)=>{let{as:o="div",...a}=e;(a.onClick||a.onPress)&&null==a.cursor&&(a.cursor="pointer");const{onPress:i,...s}=a,{getColor:c,theme:l}=h(),{trackEvent:f}=G(),{mediaQueries:d,devices:u}=S(),m=t.useMemo((()=>N(s,(e=>c(e,{colors:a.colors,theme:a.theme,themeMode:a.themeMode})),d,u)),[s,d,u,l]),g={ref:n};if(i&&(g.onClick=i),m.length>0&&(g.className=m.join(" ")),f&&a.onClick){let e,t;e="string"==typeof o?o:o.displayName||o.name||"div","string"==typeof a.children&&(t=a.children.slice(0,100)),g.onClick=r=>{f({type:"click",target:"div"!==e?e:void 0,text:t}),a.onClick&&a.onClick(r)}}const{style:p,children:b,...w}=s;Object.keys(w).forEach((e=>{(!k.has(e)&&!$(e)||E.has(e))&&(g[e]=w[e])})),p&&(g.style=p);const y=o;return r.createElement(y,Object.assign({},g),b)}))),_=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({},e,{ref:t})))),q=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({display:"flex",flexDirection:"row"},e,{ref:t})))),Z=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({display:"flex",flexDirection:"column"},e,{ref:t})))),J=r.forwardRef(((e,t)=>{let{media:n={},...o}=e;return r.createElement(q,Object.assign({media:{...n,mobile:{...n.mobile,flexDirection:"column"}}},o,{ref:t}))})),Q=r.forwardRef(((e,t)=>{let{media:n={},...o}=e;return r.createElement(Z,Object.assign({media:{...n,mobile:{...n.mobile,flexDirection:"row"}}},o,{ref:t}))})),K=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({},e,{ref:t})))),ee=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({overflow:"auto"},e,{ref:t})))),te=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({},e,{ref:t})))),re=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({as:"span"},e,{ref:t})))),ne=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({as:"img"},e,{ref:t})))),oe=r.forwardRef(((e,t)=>{let{src:n,...o}=e;return r.createElement(U,Object.assign({backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundRepeat:"no-repeat"},o,{ref:t}))})),ae=r.forwardRef(((e,t)=>{const{toUpperCase:n,children:o,...a}=e,i=n&&"string"==typeof o?o.toUpperCase():o;return r.createElement(U,Object.assign({as:"span"},a,{ref:t}),i)})),ie=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({as:"form"},e,{ref:t})))),se=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({as:"input"},e,{ref:t})))),ce=r.forwardRef(((e,t)=>r.createElement(U,Object.assign({as:"button"},e,{ref:t})))),le=e=>{let{duration:t="2s",timingFunction:r="linear",iterationCount:n="infinite",...o}=e;return{from:{transform:"translateX(-100%)"},"50%":{transform:"translateX(100%)"},to:{transform:"translateX(100%)"},duration:t,timingFunction:r,iterationCount:n,...o}};var fe={__proto__:null,fadeIn:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:0},to:{opacity:1},duration:t,timingFunction:r,...n}},fadeOut:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:1},to:{opacity:0},duration:t,timingFunction:r,...n}},slideInLeft:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,...n}},slideInRight:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,...n}},slideInDown:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,...n}},slideInUp:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateY(100%)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,...n}},bounce:e=>{let{duration:t="2s",timingFunction:r="ease",iterationCount:n="infinite",...o}=e;return{from:{transform:"translateY(0)"},"20%":{transform:"translateY(-30px)"},"40%":{transform:"translateY(0)"},"60%":{transform:"translateY(-15px)"},"80%":{transform:"translateY(0)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,iterationCount:n,...o}},rotate:e=>{let{duration:t="1s",timingFunction:r="linear",iterationCount:n="infinite",...o}=e;return{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"},duration:t,timingFunction:r,iterationCount:n,...o}},pulse:e=>{let{duration:t="1s",timingFunction:r="ease-in-out",iterationCount:n="infinite",...o}=e;return{from:{transform:"scale(1)"},"50%":{transform:"scale(1.05)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,iterationCount:n,...o}},zoomIn:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(0)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,...n}},zoomOut:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(1)"},to:{transform:"scale(0)"},duration:t,timingFunction:r,...n}},flash:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{opacity:1},"50%":{opacity:0},to:{opacity:1},duration:t,iterationCount:r,...n}},shake:e=>{let{duration:t="0.5s",iterationCount:r="infinite",...n}=e;return{from:{transform:"translateX(0)"},"10%":{transform:"translateX(-10px)"},"20%":{transform:"translateX(10px)"},"30%":{transform:"translateX(-10px)"},"40%":{transform:"translateX(10px)"},"50%":{transform:"translateX(-10px)"},"60%":{transform:"translateX(10px)"},"70%":{transform:"translateX(-10px)"},"80%":{transform:"translateX(10px)"},"90%":{transform:"translateX(-10px)"},to:{transform:"translateX(0)"},duration:t,iterationCount:r,...n}},swing:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"rotate(0deg)"},"20%":{transform:"rotate(15deg)"},"40%":{transform:"rotate(-10deg)"},"60%":{transform:"rotate(5deg)"},"80%":{transform:"rotate(-5deg)"},to:{transform:"rotate(0deg)"},duration:t,iterationCount:r,...n}},rubberBand:e=>{let{duration:t="1s",timingFunction:r="ease-in-out",...n}=e;return{from:{transform:"scale3d(1, 1, 1)"},"30%":{transform:"scale3d(1.25, 0.75, 1)"},"40%":{transform:"scale3d(0.75, 1.25, 1)"},"50%":{transform:"scale3d(1.15, 0.85, 1)"},"65%":{transform:"scale3d(0.95, 1.05, 1)"},"75%":{transform:"scale3d(1.05, 0.95, 1)"},to:{transform:"scale3d(1, 1, 1)"},duration:t,timingFunction:r,...n}},wobble:e=>{let{duration:t="1s",...r}=e;return{from:{transform:"translateX(0%)"},"15%":{transform:"translateX(-25%) rotate(-5deg)"},"30%":{transform:"translateX(20%) rotate(3deg)"},"45%":{transform:"translateX(-15%) rotate(-3deg)"},"60%":{transform:"translateX(10%) rotate(2deg)"},"75%":{transform:"translateX(-5%) rotate(-1deg)"},to:{transform:"translateX(0%)"},duration:t,...r}},flip:e=>{let{duration:t="1s",...r}=e;return{from:{transform:"perspective(400px) rotateY(0deg)"},"40%":{transform:"perspective(400px) rotateY(-180deg)"},to:{transform:"perspective(400px) rotateY(-360deg)"},duration:t,...r}},heartBeat:e=>{let{duration:t="1.3s",iterationCount:r="infinite",...n}=e;return{from:{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"},to:{transform:"scale(1)"},duration:t,iterationCount:r,...n}},rollIn:e=>{let{duration:t="1s",...r}=e;return{from:{opacity:0,transform:"translateX(-100%) rotate(-120deg)"},to:{opacity:1,transform:"translateX(0px) rotate(0deg)"},duration:t,...r}},rollOut:e=>{let{duration:t="1s",...r}=e;return{from:{opacity:1,transform:"translateX(0px) rotate(0deg)"},to:{opacity:0,transform:"translateX(100%) rotate(120deg)"},duration:t,...r}},lightSpeedIn:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(100%) skewX(-30deg)",opacity:0},"60%":{transform:"skewX(20deg)",opacity:1},"80%":{transform:"skewX(-5deg)"},to:{transform:"translateX(0)",opacity:1},duration:t,timingFunction:r,...n}},lightSpeedOut:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1},"20%":{opacity:1,transform:"translateX(-20%) skewX(20deg)"},to:{opacity:0,transform:"translateX(-100%) skewX(30deg)"},duration:t,timingFunction:r,...n}},hinge:e=>{let{duration:t="2s",timingFunction:r="ease-in-out",...n}=e;return{from:{transform:"rotate(0deg)",transformOrigin:"top left",opacity:1},"20%":{transform:"rotate(80deg)",opacity:1},"40%":{transform:"rotate(60deg)",opacity:1},"60%":{transform:"rotate(80deg)",opacity:1},"80%":{transform:"rotate(60deg)",opacity:1},to:{transform:"translateY(700px)",opacity:0},duration:t,timingFunction:r,...n}},jackInTheBox:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:0,transform:"scale(0.1) rotate(30deg)",transformOrigin:"center bottom"},"50%":{transform:"rotate(-10deg)"},"70%":{transform:"rotate(3deg)"},to:{opacity:1,transform:"scale(1) rotate(0deg)"},duration:t,timingFunction:r,...n}},flipInX:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"perspective(400px) rotateX(90deg)",opacity:0},"40%":{transform:"perspective(400px) rotateX(-10deg)",opacity:1},to:{transform:"perspective(400px) rotateX(0deg)"},duration:t,timingFunction:r,...n}},flipInY:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"perspective(400px) rotateY(90deg)",opacity:0},"40%":{transform:"perspective(400px) rotateY(-10deg)",opacity:1},to:{transform:"perspective(400px) rotateY(0deg)"},duration:t,timingFunction:r,...n}},headShake:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"translateX(0)"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"translateX(0)"},duration:t,iterationCount:r,...n}},tada:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"scale3d(1, 1, 1)",opacity:1},"10%, 20%":{transform:"scale3d(0.9, 0.9, 0.9) rotate(-3deg)"},"30%, 50%, 70%, 90%":{transform:"scale3d(1.1, 1.1, 1.1) rotate(3deg)"},"40%, 60%, 80%":{transform:"scale3d(1.1, 1.1, 1.1) rotate(-3deg)"},to:{transform:"scale3d(1, 1, 1)",opacity:1},duration:t,iterationCount:r,...n}},jello:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"none"},"11.1%":{transform:"skewX(-12.5deg) skewY(-12.5deg)"},"22.2%":{transform:"skewX(6.25deg) skewY(6.25deg)"},"33.3%":{transform:"skewX(-3.125deg) skewY(-3.125deg)"},"44.4%":{transform:"skewX(1.5625deg) skewY(1.5625deg)"},"55.5%":{transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},"66.6%":{transform:"skewX(0.390625deg) skewY(0.390625deg)"},"77.7%":{transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},"88.8%":{transform:"skewX(0.09765625deg) skewY(0.09765625deg)"},to:{transform:"none"},duration:t,iterationCount:r,...n}},fadeInDown:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"translateY(-100%)"},to:{opacity:1,transform:"translateY(0)"},duration:t,timingFunction:r,...n}},fadeInUp:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"translateY(100%)"},to:{opacity:1,transform:"translateY(0)"},duration:t,timingFunction:r,...n}},bounceIn:e=>{let{duration:t="0.75s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:0,transform:"scale(0.3)"},"50%":{opacity:1,transform:"scale(1.05)"},"70%":{transform:"scale(0.9)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,...n}},bounceOut:e=>{let{duration:t="0.75s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(1)"},"20%":{transform:"scale(0.9)"},"50%, 55%":{opacity:1,transform:"scale(1.1)"},to:{opacity:0,transform:"scale(0.3)"},duration:t,timingFunction:r,...n}},slideOutLeft:e=>{let{duration:t="0.5s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"},duration:t,timingFunction:r,...n}},slideOutRight:e=>{let{duration:t="0.5s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"},duration:t,timingFunction:r,...n}},zoomInDown:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"scale(0.1) translateY(-1000px)"},"60%":{opacity:1,transform:"scale(0.475) translateY(60px)"},to:{transform:"scale(1) translateY(0)"},duration:t,timingFunction:r,...n}},zoomOutUp:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1,transform:"scale(1) translateY(0)"},"40%":{opacity:1,transform:"scale(0.475) translateY(-60px)"},to:{opacity:0,transform:"scale(0.1) translateY(-1000px)"},duration:t,timingFunction:r,...n}},backInDown:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:.7,transform:"translateY(-2000px) scaleY(2.5) scaleX(0.2)"},to:{opacity:1,transform:"translateY(0) scaleY(1) scaleX(1)"},duration:t,timingFunction:r,...n}},backOutUp:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1,transform:"translateY(0)"},"80%":{opacity:.7,transform:"translateY(-20px)"},to:{opacity:0,transform:"translateY(-2000px)"},duration:t,timingFunction:r,...n}},shimmer:le,progress:e=>{let{duration:t="2s",timingFunction:r="linear",direction:n="forwards",from:o={width:"0%"},to:a={width:"100%"},...i}=e;return{from:o,to:a,duration:t,timingFunction:r,direction:n,...i}},typewriter:e=>{let{duration:t="10s",steps:r=10,iterationCount:n=1,width:o=0,...a}=e;return{from:{width:"0px"},to:{width:`${o}px`},timingFunction:`steps(${r})`,duration:t,iterationCount:n,...a}},blinkCursor:e=>{let{duration:t="0.75s",timingFunction:r="step-end",iterationCount:n="infinite",color:o="black",...a}=e;return{from:{color:o},to:{color:o},"0%":{color:o},"50%":{color:"transparent"},"100%":{color:o},duration:t,timingFunction:r,iterationCount:n,...a}},fadeInScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{opacity:0},to:{opacity:1},duration:t,timingFunction:r,timeline:n,range:o,...a}},slideInLeftScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{transform:"translateX(-200%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},scaleDownScroll:e=>{let{duration:t="0.8s",timingFunction:r="ease",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{transform:"scale(3)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},fillTextScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--section",range:o="entry 100% cover 50%, cover 50% exit 0%",...a}=e;return{from:{"--fill":0,color:"transparent",backgroundPositionX:"calc(var(--underline-block-width) * -1), calc(var(--underline-block-width) * -1), 0"},"50%":{"--fill":.5},to:{"--fill":1,backgroundPositionX:"0, 0, 0",color:"var(--finish-fill)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},ctaCollapseScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="scroll()",range:o="0 400px",...a}=e;return{from:{width:"calc(48px + 120px)"},to:{width:"48px"},duration:t,timingFunction:r,timeline:n,range:o,...a}},handWaveScroll:e=>{let{duration:t="2s",timingFunction:r="linear",timeline:n="scroll()",range:o="10vh 60vh",...a}=e;return{from:{transform:"rotate(0deg)"},"50%":{transform:"rotate(20deg)"},to:{transform:"rotate(0deg)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},fadeBlurScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="view()",range:o="cover 40% cover 85%",...a}=e;return{to:{opacity:0,filter:"blur(2rem)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},unclipScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--article",range:o="entry",...a}=e;return{to:{clipPath:"ellipse(220% 200% at 50% 175%)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},scaleDownArticleScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--article",range:o="entry",...a}=e;return{"0%":{transform:"scale(5)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},listItemScaleScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease",timeline:n="--i",range:o="cover 40% cover 60%",...a}=e;return{from:{transform:"scale(0.8)"},"50%":{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}}};const de=r.memo((e=>{let{duration:t="2s",timingFunction:n="linear",iterationCount:o="infinite",...a}=e;return r.createElement(_,Object.assign({backgroundColor:"color.black.300"},a,{overflow:"hidden"}),r.createElement(_,{position:"relative",inset:0,width:"100%",height:"100%",animate:le({duration:t,timingFunction:n,iterationCount:o}),background:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent)"}))})),ue=()=>"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,me=!ue();const ge=t.createContext({width:0,height:0});exports.AnalyticsContext=V,exports.AnalyticsProvider=e=>{let{trackEvent:t,children:n}=e;return r.createElement(V.Provider,{value:{trackEvent:t}},n)},exports.Animation=fe,exports.Button=ce,exports.Div=te,exports.Element=U,exports.Form=ie,exports.Horizontal=q,exports.HorizontalResponsive=J,exports.Image=ne,exports.ImageBackground=oe,exports.Input=se,exports.ResponsiveContext=v,exports.ResponsiveProvider=e=>{let{breakpoints:n=b,devices:o=w,children:a}=e;const[i,s]=t.useState("xs"),[c,l]=t.useState("portrait"),f=t.useMemo((()=>y(n)),[n]);t.useEffect((()=>{const e=[];for(const t in f){const r=window.matchMedia(f[t]),n=()=>r.matches&&s(t);r.addListener(n),r.matches&&s(t),e.push((()=>r.removeListener(n)))}const t=window.matchMedia("(orientation: landscape)"),r=()=>l(t.matches?"landscape":"portrait");return t.addListener(r),r(),e.push((()=>t.removeListener(r))),()=>e.forEach((e=>e()))}),[n]);const d=t.useMemo((()=>({breakpoints:n,devices:o,mediaQueries:f,currentWidth:window.innerWidth,currentHeight:window.innerHeight,currentBreakpoint:i,currentDevice:x(i,o),orientation:c})),[n,o,i,c]);return r.createElement(v.Provider,{value:d},a)},exports.SafeArea=ee,exports.Scroll=K,exports.Shadows=L,exports.Skeleton=de,exports.Span=re,exports.Text=ae,exports.ThemeContext=g,exports.ThemeProvider=e=>{let{theme:n={},mode:o="light",dark:a={},light:i={},children:s}=e;const[c,h]=t.useState(o),b=t.useRef(new Map).current;t.useEffect((()=>{h(o)}),[o]),t.useEffect((()=>{b.clear()}),[i,a,n,b]);const w=t.useMemo((()=>p(d,n)),[n]),y=t.useMemo((()=>({light:p(u,i),dark:p(m,a)})),[i,a]),x=t.useMemo((()=>y[c]),[y,c]),v=t.useCallback((function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return String(e);if("transparent"===e)return e;const r=t.themeMode??c,n=0===Object.keys(t).length,o=`${e}-${r}`;if(b.has(o)&&n)return b.get(o);const a=y[r];if(!a)return console.warn(`Color set for mode "${r}" not found.`),e;let i=e;try{if(e.startsWith(l)){const r=e.substring(6).split(".");let n=p(w,t.theme||{});for(const e of r){if(null==n)break;n=n[e]}"string"==typeof n&&n!==e?i=v(n,t):void 0===n?(console.warn(`Theme path "${e}" not found.`),i=e):"string"!=typeof n&&(console.warn(`Theme path "${e}" resolved to a non-string value.`),i=e)}else if(e.startsWith(f)){const n=e.substring(6).split(".");if(1===n.length){const o=n[0],s=p(a.main,t.colors?.main||{}),c=s?.[o];"string"==typeof c?i=c:console.warn(`Singleton color "${e}" not found in ${r} mode.`)}else if(2===n.length){const[o,s]=n,c=p(a.palette,t.colors?.palette||{}),l=c?.[o]?.[s];"string"==typeof l?i=l:console.warn(`Palette color "${e}" not found in ${r} mode.`)}else console.warn(`Invalid color format: "${e}". Expected 'color.name' or 'color.name.shade'.`)}}catch(t){console.error(`Error resolving color "${e}" for mode "${r}":`,t),i=e}return n&&b.set(o,i),i}),[w,y,c,b]),S=t.useMemo((()=>({getColor:v,theme:w,colors:x,themeMode:c,setThemeMode:h})),[v,w,x,c]);return r.createElement(g.Provider,{value:S},s)},exports.Typography={letterSpacings:{tighter:-.08,tight:-.4,normal:0,wide:.4,wider:.8,widest:1.6},lineHeights:{xs:10,sm:12,md:14,lg:16,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semiBold:600,bold:700,extraBold:800,black:900},fontSizes:{xs:10,sm:12,md:14,lg:16,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64}},exports.Vertical=Z,exports.VerticalResponsive=Q,exports.View=_,exports.debounce=(e,t)=>{let r;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];clearTimeout(r),r=setTimeout((()=>e(...o)),t)}},exports.deepMerge=p,exports.defaultColors=i,exports.defaultDarkColors=c,exports.defaultDarkPalette=a,exports.defaultLightColors=s,exports.defaultLightPalette=o,exports.defaultThemeMain=d,exports.extractUtilityClasses=N,exports.getWindowInitialProps=()=>ue()?window.g_initialProps:void 0,exports.isBrowser=ue,exports.isDev=function(){let e=!1;return ue()&&(e=!(-1===window.location.hostname.indexOf("localhost"))),e},exports.isMobile=function(){return navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)},exports.isProd=function(){return!!(ue()&&window&&window.location&&window.location.hostname)&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("develop"))},exports.isSSR=me,exports.useActive=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1),a=()=>r(!0),i=()=>r(!1);return e.addEventListener("mousedown",t),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",o),e.addEventListener("touchstart",a),e.addEventListener("touchend",i),()=>{e.removeEventListener("mousedown",t),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",o),e.removeEventListener("touchstart",a),e.removeEventListener("touchend",i)}}),[]),[n,e]},exports.useAnalytics=G,exports.useClickOutside=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=e=>{n.current&&!n.current.contains(e.target)?r(!0):r(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),[n,e]},exports.useFocus=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1);return e.addEventListener("focus",t),e.addEventListener("blur",o),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",o)}}),[]),[n,e]},exports.useHover=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1);return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",o)}}),[]),[n,e]},exports.useInView=function(e){const{triggerOnce:r=!1,...n}=e||{},o=t.useRef(null),[a,i]=t.useState(!1);return t.useEffect((()=>{const e=o.current;if(!e)return;const t=new IntersectionObserver((e=>{let[n]=e;n.isIntersecting?(i(!0),r&&t.disconnect()):r||i(!1)}),n);return t.observe(e),()=>{t.disconnect()}}),[r,...Object.values(n||{})]),{ref:o,inView:a}},exports.useInfiniteScroll=function(e,r){void 0===r&&(r={});const[n,o]=t.useState(null),a=t.useRef(e),i=t.useRef();return t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(!n||r.isLoading)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&(r.debounceMs?(i.current&&clearTimeout(i.current),i.current=setTimeout(a.current,r.debounceMs)):a.current())}),{threshold:r.threshold??0,root:r.root??null,rootMargin:r.rootMargin??"0px"});return e.observe(n),()=>{e.disconnect(),i.current&&clearTimeout(i.current)}}),[n,r.threshold,r.isLoading,r.root,r.rootMargin,r.debounceMs]),{sentinelRef:o}},exports.useKeyPress=function(e){const[r,n]=t.useState(!1);return t.useEffect((()=>{const t=t=>{t.key===e&&n(!0)},r=t=>{t.key===e&&n(!1)};return window.addEventListener("keydown",t),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",t),window.removeEventListener("keyup",r)}}),[e]),r},exports.useMount=e=>{t.useEffect((()=>{e()}),[])},exports.useOnScreen=function(e){const r=t.useRef(null),[n,o]=t.useState(!1);return t.useEffect((()=>{const t=r.current;if(!t)return;const n=new IntersectionObserver((e=>{let[t]=e;o(t.isIntersecting)}),e);return n.observe(t),()=>{n.disconnect()}}),[e]),[r,n]},exports.useResponsive=()=>{const e=S(),{currentBreakpoint:t,orientation:r,devices:n}=e,o=e=>n[e]?n[e].includes(t):e===t;return{...e,screen:t,orientation:r,on:o,is:o}},exports.useResponsiveContext=S,exports.useScroll=function(e){let{container:r,offset:n=[0,0],throttleMs:o=100,disabled:a=!1}=void 0===e?{}:e;const[i,s]=t.useState({x:0,y:0,xProgress:0,yProgress:0}),c=t.useRef(0),l=t.useRef(),f=t.useCallback((()=>{if(a)return;const e=Date.now();if(o>0&&e-c.current<o)return void(l.current=requestAnimationFrame(f));const t=(e=>{if(e instanceof Window){const e=document.documentElement;return{scrollHeight:Math.max(e.scrollHeight,e.offsetHeight),scrollWidth:Math.max(e.scrollWidth,e.offsetWidth),clientHeight:window.innerHeight,clientWidth:window.innerWidth,scrollTop:window.scrollY,scrollLeft:window.scrollX}}return{scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,clientHeight:e.clientHeight,clientWidth:e.clientWidth,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}})(r&&r.current?r.current:window),i=t.scrollLeft+n[0],d=t.scrollTop+n[1],u=t.scrollWidth-t.clientWidth,m=t.scrollHeight-t.clientHeight,g=u<=0?1:Math.min(Math.max(i/u,0),1),h=m<=0?1:Math.min(Math.max(d/m,0),1);s((t=>t.x!==i||t.y!==d||t.xProgress!==g||t.yProgress!==h?(c.current=e,{x:i,y:d,xProgress:g,yProgress:h}):t))}),[r,n,o,a]);return t.useEffect((()=>{if(a)return;const e=r&&r.current?r.current:window;f();const t={passive:!0};return e.addEventListener("scroll",f,t),window.addEventListener("resize",f,t),()=>{e.removeEventListener("scroll",f),window.removeEventListener("resize",f),l.current&&cancelAnimationFrame(l.current)}}),[f,r,a]),i},exports.useScrollAnimation=function(e,r){void 0===r&&(r={});const[n,o]=t.useState(!1),[a,i]=t.useState(0);return t.useEffect((()=>{const t=e.current;if(!t)return;const n=new IntersectionObserver((e=>{const t=e[0];o(t.isIntersecting),i(t.intersectionRatio),r.onIntersectionChange&&r.onIntersectionChange(t.isIntersecting,t.intersectionRatio)}),{threshold:r.threshold??0,rootMargin:r.rootMargin??"0px",root:r.root??null});return n.observe(t),()=>n.disconnect()}),[e,r.threshold,r.rootMargin,r.root,r.onIntersectionChange]),{isInView:n,progress:a}},exports.useScrollDirection=function(e){void 0===e&&(e=5);const[r,n]=t.useState("up"),o=t.useRef(0),a=t.useRef("up"),i=t.useRef(),s=t.useRef(!1);return t.useEffect((()=>{const t=()=>{s.current||(i.current=requestAnimationFrame((()=>{(()=>{const t=window.scrollY||document.documentElement.scrollTop,r=t>o.current?"down":"up",i=Math.abs(t-o.current),c=window.innerHeight+t>=document.documentElement.scrollHeight-1;(i>e||"down"===r&&c)&&r!==a.current&&(a.current=r,n(r)),o.current=Math.max(t,0),s.current=!1})(),s.current=!1})),s.current=!0)};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),i.current&&cancelAnimationFrame(i.current)}}),[e]),r},exports.useSmoothScroll=()=>t.useCallback((function(e,t){if(void 0===t&&(t=0),e)try{const r=e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset)-t;"scrollBehavior"in document.documentElement.style?window.scrollTo({top:r,behavior:"smooth"}):window.scrollTo(0,r)}catch(e){console.error("Error during smooth scroll:",e)}}),[]),exports.useTheme=h,exports.useWindowSize=()=>t.useContext(ge),exports.utilityClassManager=P;
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=e(require("color-convert"));const o={whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},white:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.08)",200:"rgba(255, 255, 255, 0.16)",300:"rgba(255, 255, 255, 0.24)",400:"rgba(255, 255, 255, 0.36)",500:"rgba(255, 255, 255, 0.48)",600:"rgba(255, 255, 255, 0.64)",700:"rgba(255, 255, 255, 0.80)",800:"rgba(255, 255, 255, 0.92)",900:"rgba(255, 255, 255, 1)"},black:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.08)",200:"rgba(0, 0, 0, 0.16)",300:"rgba(0, 0, 0, 0.24)",400:"rgba(0, 0, 0, 0.36)",500:"rgba(0, 0, 0, 0.48)",600:"rgba(0, 0, 0, 0.64)",700:"rgba(0, 0, 0, 0.80)",800:"rgba(0, 0, 0, 0.92)",900:"rgba(0, 0, 0, 1)"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},lightBlue:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},warmGray:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},trueGray:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},gray:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},dark:{50:"#18181b",100:"#27272a",200:"#3f3f46",300:"#52525b",400:"#71717a",500:"#a1a1aa",600:"#d4d4d8",700:"#e4e4e7",800:"#f4f4f5",900:"#fafafa"},light:{50:"#f8f9fa",100:"#f1f3f5",200:"#e9ecef",300:"#dee2e6",400:"#ced4da",500:"#adb5bd",600:"#868e96",700:"#495057",800:"#343a40",900:"#212529"},coolGray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},blueGray:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"}},a={whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},white:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.08)",200:"rgba(255, 255, 255, 0.16)",300:"rgba(255, 255, 255, 0.24)",400:"rgba(255, 255, 255, 0.36)",500:"rgba(255, 255, 255, 0.48)",600:"rgba(255, 255, 255, 0.64)",700:"rgba(255, 255, 255, 0.80)",800:"rgba(255, 255, 255, 0.92)",900:"rgba(255, 255, 255, 1)"},black:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.08)",200:"rgba(0, 0, 0, 0.16)",300:"rgba(0, 0, 0, 0.24)",400:"rgba(0, 0, 0, 0.36)",500:"rgba(0, 0, 0, 0.48)",600:"rgba(0, 0, 0, 0.64)",700:"rgba(0, 0, 0, 0.80)",800:"rgba(0, 0, 0, 0.92)",900:"rgba(0, 0, 0, 1)"},rose:{50:"#330517",100:"#4a031e",200:"#6b112f",300:"#9f1239",400:"#c81e5b",500:"#e11d48",600:"#be123c",700:"#9f1239",800:"#7f1235",900:"#581c87"},pink:{50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#581c87"},fuchsia:{50:"#c026d3",100:"#a21caf",200:"#86198f",300:"#701a75",400:"#9333ea",500:"#d946ef",600:"#e879f9",700:"#f0abfc",800:"#f5d0fe",900:"#fae8ff"},purple:{50:"#6b21a8",100:"#7e22ce",200:"#9333ea",300:"#a855f7",400:"#c084fc",500:"#d8b4fe",600:"#e9d5ff",700:"#f3e8ff",800:"#faf5ff",900:"#fef4ff"},violet:{50:"#4c1d95",100:"#701a75",200:"#86198f",300:"#a21caf",400:"#c026d3",500:"#d946ef",600:"#e879f9",700:"#f0abfc",800:"#f5d0fe",900:"#fae8ff"},indigo:{50:"#312e81",100:"#3730a3",200:"#1e40af",300:"#1d4ed8",400:"#2563eb",500:"#3b82f6",600:"#60a5fa",700:"#93c5fd",800:"#bfdbfe",900:"#dbeafe"},blue:{50:"#1e3a8a",100:"#1e40af",200:"#1d4ed8",300:"#2563eb",400:"#3b82f6",500:"#60a5fa",600:"#93c5fd",700:"#bfdbfe",800:"#dbeafe",900:"#eff6ff"},lightBlue:{50:"#0c4a6e",100:"#075985",200:"#0369a1",300:"#0284c7",400:"#0ea5e9",500:"#38bdf8",600:"#7dd3fc",700:"#bae6fd",800:"#e0f2fe",900:"#f0f9ff"},cyan:{50:"#164e63",100:"#155e75",200:"#0e7490",300:"#0891b2",400:"#22d3ee",500:"#67e8f9",600:"#a5f3fc",700:"#cffafe",800:"#ecfeff",900:"#f0fefe"},teal:{50:"#134e4a",100:"#166534",200:"#15803d",300:"#16a34a",400:"#22c55e",500:"#4ade80",600:"#5eead4",700:"#99f6e4",800:"#ccfbf1",900:"#f0fdfa"},emerald:{50:"#064e3b",100:"#065f46",200:"#047857",300:"#059669",400:"#10b981",500:"#34d399",600:"#6ee7b7",700:"#a7f3d0",800:"#d1fae5",900:"#ecfdf5"},green:{50:"#14532d",100:"#166534",200:"#15803d",300:"#16a34a",400:"#22c55e",500:"#4ade80",600:"#86efac",700:"#bbf7d0",800:"#dcfce7",900:"#f0fdf4"},lime:{50:"#365314",100:"#3f6212",200:"#4d7c0f",300:"#65a30d",400:"#84cc16",500:"#a3e635",600:"#bef264",700:"#d9f99d",800:"#ecfccb",900:"#f7fee7"},yellow:{50:"#713f12",100:"#854d0e",200:"#a16207",300:"#ca8a04",400:"#eab308",500:"#facc15",600:"#fde047",700:"#fef08a",800:"#fef9c3",900:"#fefce8"},amber:{50:"#78350f",100:"#92400e",200:"#b45309",300:"#d97706",400:"#f59e0b",500:"#fbbf24",600:"#fcd34d",700:"#fde68a",800:"#fef3c7",900:"#fffbeb"},orange:{50:"#7c2d12",100:"#9a3412",200:"#c2410c",300:"#ea580c",400:"#f97316",500:"#fb923c",600:"#fdba74",700:"#fed7aa",800:"#ffedd5",900:"#fff7ed"},red:{50:"#7f1d1d",100:"#991b1b",200:"#b91c1c",300:"#dc2626",400:"#ef4444",500:"#f87171",600:"#fca5a5",700:"#fecaca",800:"#fee2e2",900:"#fef2f2"},warmGray:{50:"#1c1917",100:"#292524",200:"#44403c",300:"#57534e",400:"#78716c",500:"#a8a29e",600:"#d6d3d1",700:"#e7e5e4",800:"#f5f5f4",900:"#fafaf9"},trueGray:{50:"#171717",100:"#262626",200:"#404040",300:"#525252",400:"#737373",500:"#a3a3a3",600:"#d4d4d4",700:"#e5e5e5",800:"#f5f5f5",900:"#fafafa"},gray:{50:"#18181b",100:"#27272a",200:"#3f3f46",300:"#52525b",400:"#71717a",500:"#a1a1aa",600:"#d4d4d8",700:"#e4e4e7",800:"#f4f4f5",900:"#fafafa"},dark:{50:"#212529",100:"#343a40",200:"#495057",300:"#868e96",400:"#adb5bd",500:"#ced4da",600:"#dee2e6",700:"#f1f3f5",800:"#f8f9fa",900:"#ffffff"},light:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},coolGray:{50:"#111827",100:"#1f2937",200:"#374151",300:"#4b5563",400:"#6b7280",500:"#9ca3af",600:"#d1d5db",700:"#e5e7eb",800:"#f3f4f6",900:"#f9fafb"},blueGray:{50:"#0f172a",100:"#1e293b",200:"#334155",300:"#475569",400:"#64748b",500:"#94a3b8",600:"#cbd5e1",700:"#e2e8f0",800:"#f1f5f9",900:"#f8fafc"}},i={white:"#FFFFFF",black:"#000000",red:"#FF0000",green:"#00FF00",blue:"#0000FF",yellow:"#FFFF00",cyan:"#00FFFF",magenta:"#FF00FF",grey:"#808080",orange:"#FFA500",brown:"#A52A2A",purple:"#800080",pink:"#FFC0CB",lime:"#00FF00",teal:"#008080",navy:"#000080",olive:"#808000",maroon:"#800000",gold:"#FFD700",silver:"#C0C0C0",indigo:"#4B0082",violet:"#EE82EE",beige:"#F5F5DC",turquoise:"#40E0D0",coral:"#FF7F50",chocolate:"#D2691E",skyBlue:"#87CEEB",plum:"#DDA0DD",darkGreen:"#006400",salmon:"#FA8072"},s={...i,dark:"#a1a1aa",white:"#FFFFFF",black:"#000000"},c={...i,dark:"#adb5bd",white:"#000000",black:"#FFFFFF"},l="theme.",f="color.",d={primary:`${f}black`,secondary:`${f}blue`,success:`${f}green.500`,error:`${f}red.500`,warning:`${f}orange.500`,disabled:`${f}gray.500`,loading:`${f}dark.500`},u={main:s,palette:o},m={main:c,palette:a},g=t.createContext(null),h=()=>{const e=t.useContext(g);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},p=(e,t)=>{if("object"!=typeof t||null===t)return e;const r={...e};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const o=t[n],a=e[n];Array.isArray(o)?r[n]=o:"object"!=typeof o||null===o||Array.isArray(o)?void 0!==o&&(r[n]=o):r[n]=p(a||{},o)}return r},b={xs:0,sm:340,md:560,lg:1080,xl:1300},w={mobile:["xs","sm"],tablet:["md","lg"],desktop:["lg","xl"]},y=e=>{const t=Object.keys(e).map((t=>({breakpoint:t,min:e[t],max:void 0}))).sort(((e,t)=>e.min-t.min));for(let e=0;e<t.length-1;e++)t[e].max=t[e+1].min-1;const r={};return t.forEach((e=>{let t="only screen";e.min>0&&(t+=` and (min-width: ${e.min}px)`),void 0!==e.max&&(t+=` and (max-width: ${e.max}px)`),r[e.breakpoint]=t.trim()})),r},x=(e,t)=>{for(const r in t)if(t[r].includes(e))return r;return"desktop"},v=t.createContext({breakpoints:b,devices:w,mediaQueries:y(b),currentWidth:0,currentHeight:0,currentBreakpoint:"xs",currentDevice:"mobile",orientation:"portrait"}),S=()=>t.useContext(v),F=new Set(["numberOfLines","fontWeight","timeStamp","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","shadowOpacity","shadowRadius","scale","opacity","min","max","now"]),k=new Set(["on","shadow","only","media","css","widthHeight","paddingHorizontal","paddingVertical","marginHorizontal","marginVertical","animate","_hover","_active","_focus","_visited","_disabled","_enabled","_checked","_unchecked","_invalid","_valid","_required","_optional","_selected","_target","_firstChild","_lastChild","_onlyChild","_firstOfType","_lastOfType","_empty","_focusVisible","_focusWithin","_placeholder"]),C=new Set(["on","shadow","only","media","css"]),E=new Set(["src","alt","style","as"]),R=new Set([...Object.keys(document.createElement("div").style),"margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","width","height","minWidth","minHeight","maxWidth","maxHeight","position","top","right","bottom","left","zIndex","flex","flexDirection","flexWrap","flexFlow","justifyContent","alignItems","alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","gridTemplateColumns","gridTemplateRows","gridTemplate","gridAutoColumns","gridAutoRows","gridAutoFlow","gridArea","gridColumn","gridRow","gap","gridGap","rowGap","columnGap","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","textDecoration","textTransform","whiteSpace","wordBreak","wordSpacing","wordWrap","color","backgroundColor","background","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","opacity","border","borderWidth","borderStyle","borderColor","borderRadius","borderTop","borderRight","borderBottom","borderLeft","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","boxShadow","textShadow","transform","transition","animation","filter","backdropFilter","display","visibility","overflow","overflowX","overflowY","float","clear","objectFit","objectPosition","cursor","pointerEvents","userSelect","resize","widthHeight","shadow","textJustify","lineClamp","textIndent","perspective"]),j=e=>R.has(e)||C.has(e)||/^(webkit|moz|ms|o)[A-Z]/.test(e)||e.startsWith("--")||e.startsWith("data-style-")&&!E.has(e),O=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),$=(e,t,r)=>{if(null==t)return"";if("number"==typeof t)return F.has(e)?t:`${t}px`;if(e.toLowerCase().indexOf("color")>=0||"fill"===e||"stroke"===e)return r(t);if("string"==typeof t&&t.length>7&&(t.indexOf("color.")>=0||t.indexOf("theme.")>=0)){const e=t.split(" ");if(e.length>=3){const t=e.length-1,n=r(e[t]);return e[t]=n,e.join(" ")}}return Array.isArray(t)?t.join(" "):"object"==typeof t?JSON.stringify(t):t},X=Array.from(R),D={0:{shadowColor:"#000",shadowOffset:{width:1,height:2},shadowOpacity:.18,shadowRadius:1},1:{shadowColor:"#000",shadowOffset:{width:2,height:2},shadowOpacity:.2,shadowRadius:1.41},2:{shadowColor:"#000",shadowOffset:{width:3,height:3},shadowOpacity:.22,shadowRadius:2.22},3:{shadowColor:"#000",shadowOffset:{width:4,height:4},shadowOpacity:.23,shadowRadius:2.62},4:{shadowColor:"#000",shadowOffset:{width:5,height:5},shadowOpacity:.25,shadowRadius:3.84},5:{shadowColor:"#000",shadowOffset:{width:6,height:6},shadowOpacity:.27,shadowRadius:4.65},6:{shadowColor:"#000",shadowOffset:{width:7,height:7},shadowOpacity:.29,shadowRadius:4.65},7:{shadowColor:"#000",shadowOffset:{width:8,height:8},shadowOpacity:.3,shadowRadius:4.65},8:{shadowColor:"#000",shadowOffset:{width:9,height:9},shadowOpacity:.32,shadowRadius:5.46},9:{shadowColor:"#000",shadowOffset:{width:10,height:10},shadowOpacity:.34,shadowRadius:6.27}};let L=0;const T=new Map,A=e=>{const{duration:t,timingFunction:r,delay:n,iterationCount:o,direction:a,fillMode:i,playState:s,timeline:c,range:l,...f}=e,d=JSON.stringify(f);if(T.has(d)){return{keyframesName:T.get(d),keyframes:""}}const u="animation-"+L++;T.set(d,u);const m=[];Object.keys(f).sort(((e,t)=>{const r=e=>"from"===e?0:"to"===e||"enter"===e?100:parseInt(e.replace("%",""),10);return r(e)-r(t)})).forEach((e=>{const t="enter"===e?"to":e,r=f[e];m.push(`${t} { ${(e=>Object.entries(e).filter((e=>{let[t]=e;return j(t)})).map((e=>{let[t,r]=e;return`${O(t)}: ${$(t,r,(e=>e))};`})).join(" "))(r)} }`)}));return{keyframesName:u,keyframes:`\n @keyframes ${u} {\n ${m.join("\n")}\n }\n `}},M=new Set(["border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-left-width","border-radius","border-right-width","border-spacing","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","column-gap","column-rule-width","column-width","font-size","gap","height","left","letter-spacing","line-height","margin","margin-bottom","margin-left","margin-right","margin-top","max-height","max-width","min-height","min-width","outline-offset","outline-width","padding","padding-bottom","padding-left","padding-right","padding-top","perspective","right","row-gap","text-indent","top","width"]);class I{constructor(e){this.maxSize=e,this.cache=new Map}get(e){const t=this.cache.get(e);if(t)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}delete(e){this.cache.delete(e)}get size(){return this.cache.size}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}}class Y{constructor(e,t){void 0===t&&(t=1e4),this.baseStyleSheet=new Map,this.mediaStyleSheet=new Map,this.modifierStyleSheet=new Map,this.mainDocument=null,this.propertyShorthand=e,this.maxCacheSize=t,this.classCache=new I(this.maxCacheSize),"undefined"!=typeof document&&(this.mainDocument=document,this.initStyleSheets(document))}initStyleSheets(e){if(!this.baseStyleSheet.has(e)){let t=e.getElementById("utility-classes-base");t||(t=e.createElement("style"),t.id="utility-classes-base",e.head.appendChild(t)),this.baseStyleSheet.set(e,t.sheet)}if(!this.mediaStyleSheet.has(e)){let t=e.getElementById("utility-classes-media");t||(t=e.createElement("style"),t.id="utility-classes-media",e.head.appendChild(t)),this.mediaStyleSheet.set(e,t.sheet)}if(!this.modifierStyleSheet.has(e)){let t=e.getElementById("utility-classes-modifier");t||(t=e.createElement("style"),t.id="utility-classes-modifier",e.head.appendChild(t)),this.modifierStyleSheet.set(e,t.sheet)}}getMainDocumentRules(){if(!this.mainDocument)return[];const e=[],t=this.baseStyleSheet.get(this.mainDocument);t&&Array.from(t.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"base"})}));const r=this.mediaStyleSheet.get(this.mainDocument);r&&Array.from(r.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"media"})}));const n=this.modifierStyleSheet.get(this.mainDocument);return n&&Array.from(n.cssRules).forEach((t=>{e.push({cssText:t.cssText,context:"modifier"})})),e}addDocument(e){if(e===this.mainDocument)return;this.initStyleSheets(e),this.clearStylesFromDocument(e);this.getMainDocumentRules().forEach((t=>{let{cssText:r,context:n}=t;this.injectRuleToDocument(r,n,e)}))}clearStylesFromDocument(e){const t=this.baseStyleSheet.get(e),r=this.mediaStyleSheet.get(e),n=this.modifierStyleSheet.get(e);t&&this.clearStyleSheet(t),r&&this.clearStyleSheet(r),n&&this.clearStyleSheet(n)}escapeClassName(e){return e.replace(/:/g,"\\:")}injectRule(e,t){void 0===t&&(t="base"),this.mainDocument&&this.injectRuleToDocument(e,t,this.mainDocument);for(const r of this.getAllRegisteredDocuments())r!==this.mainDocument&&this.injectRuleToDocument(e,t,r)}getAllRegisteredDocuments(){return Array.from(this.baseStyleSheet.keys())}addToCache(e,t,r){this.classCache.set(e,{className:t,rules:r})}getClassNames(e,t,r,n,o,a){void 0===r&&(r="base"),void 0===n&&(n=""),void 0===a&&(a=[]);let i=t;if(e.toLowerCase().includes("color")&&(i=o(t)),"string"==typeof t&&t.length>7&&(t.indexOf("color.")>=0||t.indexOf("theme.")>=0)){const e=t.split(" ");if(e.length>=3){const t=e.length-1,r=o(e[t]);e[t]=r,i=e.join(" ")}}"number"==typeof i&&M.has(e)&&(i=`${i}px`);let s=i.toString().split(" ").join("-"),c=`${e}:${s}`;n&&"base"!==r&&(c=`${e}:${s}|${r}:${n}`);const l=this.classCache.get(c);if(l)return[l.className];let f=this.propertyShorthand[e];f||(f=e.replace(/([A-Z])/g,"-$1").toLowerCase());let d=`${f}-${s.toString().replace(/\./g,"p").replace(/\s+/g,"-").replace(/[^a-zA-Z0-9\-]/g,"").replace(/%/g,"pct").replace(/vw/g,"vw").replace(/vh/g,"vh").replace(/em/g,"em").replace(/rem/g,"rem")}`,u=[d],m=[];const g=e.replace(/([A-Z])/g,"-$1").toLowerCase();let h=i;"number"==typeof h&&M.has(g)&&(h=`${h}px`);const p=e=>{const t=this.escapeClassName(e);switch(r){case"base":m.push({rule:`.${t} { ${g}: ${h}; }`,context:"base"});break;case"pseudo":m.push({rule:`.${t}:${n} { ${g}: ${h}; }`,context:"pseudo"});break;case"media":a.forEach((e=>{m.push({rule:`@media ${e} { .${t} { ${g}: ${h}; } }`,context:"media"})}))}};if("pseudo"===r&&n){const e=`${d}--${n}`;u=[e],p(e)}else if("media"===r&&n){const e=`${n}--${d}`;u=[e],p(e)}else p(d);return m.forEach((e=>{let{rule:t,context:r}=e;this.injectRule(t,r)})),this.addToCache(c,u[0],m),u}removeDocument(e){e!==this.mainDocument&&(this.baseStyleSheet.delete(e),this.mediaStyleSheet.delete(e),this.modifierStyleSheet.delete(e))}clearCache(){this.classCache.clear()}clearStyleSheet(e){for(;e.cssRules.length>0;)e.deleteRule(0)}regenerateStyles(e){if(e===this.mainDocument){this.clearStylesFromDocument(e);const t=Array.from(this.classCache.values());for(const{rules:r}of t)r.forEach((t=>{let{rule:r,context:n}=t;this.injectRuleToDocument(r,n,e)}))}else this.addDocument(e)}regenerateAllStyles(){for(const e of this.getAllRegisteredDocuments())this.regenerateStyles(e)}injectRuleToDocument(e,t,r){let n=null;switch(t){case"base":case"pseudo":n=this.baseStyleSheet.get(r)||null;break;case"media":n=this.mediaStyleSheet.get(r)||null;break;case"modifier":n=this.modifierStyleSheet.get(r)||null}if(n)try{n.insertRule(e,n.cssRules.length)}catch(t){console.error(`Error inserting CSS rule to document: "${e}"`,t)}}printStyles(e){console.group("Current styles for document:"),console.group("Base styles:");const t=this.baseStyleSheet.get(e);t&&Array.from(t.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.group("Media styles:");const r=this.mediaStyleSheet.get(e);r&&Array.from(r.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.group("Modifier styles:");const n=this.modifierStyleSheet.get(e);n&&Array.from(n.cssRules).forEach(((e,t)=>{console.log(`${t}: ${e.cssText}`)})),console.groupEnd(),console.groupEnd()}}const z=e=>({hover:"hover",active:"active",focus:"focus",visited:"visited",disabled:"disabled",enabled:"enabled",checked:"checked",unchecked:"not(:checked)",invalid:"invalid",valid:"valid",required:"required",optional:"optional",selected:"selected",target:"target",firstChild:"first-child",lastChild:"last-child",onlyChild:"only-child",firstOfType:"first-of-type",lastOfType:"last-of-type",empty:"empty",focusVisible:"focus-visible",focusWithin:"focus-within",placeholder:"placeholder-shown"}[e]||null);function H(e){const t={},r=new Set;function n(e){const t=e[0].toLowerCase(),n=e[e.length-1].toLowerCase();let o=t+e.slice(1,-1).replace(/[a-z]/g,"").toLowerCase()+n;o.length<2&&(o=e.slice(0,2).toLowerCase());let a=0,i=o;for(;r.has(i);)a++,i=o+e.slice(-a).toLowerCase();return r.add(i),i}for(const r of e)t[r]=n(r);return t}const P=new Map;const W=new Y(H(X),1e4);function B(e){const t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const r=parseFloat(t[1]);return"s"===t[2]?1e3*r:r}function _(e){return e>=1e3&&e%1e3==0?e/1e3+"s":`${e}ms`}const N=(e,t,r,o)=>{const a=[],i={},s=void 0!==e.height&&void 0!==e.width&&e.height===e.width?e.height:e.widthHeight||null;if(s){const e="number"==typeof s?`${s}px`:s;i.width=e,i.height=e}if(e.paddingHorizontal){const t="number"==typeof e.paddingHorizontal?`${e.paddingHorizontal}px`:e.paddingHorizontal;i.paddingLeft=t,i.paddingRight=t}if(e.marginHorizontal){const t="number"==typeof e.marginHorizontal?`${e.marginHorizontal}px`:e.marginHorizontal;i.marginLeft=t,i.marginRight=t}if(e.paddingVertical){const t="number"==typeof e.paddingVertical?`${e.paddingVertical}px`:e.paddingVertical;i.paddingTop=t,i.paddingBottom=t}if(e.marginVertical){const t="number"==typeof e.marginVertical?`${e.marginVertical}px`:e.marginVertical;i.marginTop=t,i.marginBottom=t}if(e.shadow){let t;if(t="number"==typeof e.shadow&&void 0!==D[e.shadow]?e.shadow:"boolean"==typeof e.shadow?e.shadow?2:0:2,D[t]){const{shadowColor:e,shadowOpacity:r,shadowOffset:o,shadowRadius:a}=D[t],s=`rgba(${n.hex.rgb(e).join(",")}, ${r})`;i.boxShadow=`${o.height}px ${o.width}px ${a}px ${s}`}}if(e.animate){const t=Array.isArray(e.animate)?e.animate:[e.animate],r=[],n=[],o=[],a=[],s=[],c=[],l=[],f=[],d=[],u=[];let m=0;t.forEach((e=>{const{keyframesName:t,keyframes:i}=A(e);i&&"undefined"!=typeof document&&W.injectRule(i),r.push(t);const g=B(e.duration||"0s"),h=B(e.delay||"0s"),p=m+h;m=p+g,n.push(_(g)),o.push(e.timingFunction||"ease"),a.push(_(p)),s.push(void 0!==e.iterationCount?`${e.iterationCount}`:"1"),c.push(e.direction||"normal"),l.push(e.fillMode||"none"),f.push(e.playState||"running"),d.push(e.timeline||""),u.push(e.range||"")})),i.animationName=r.join(", "),i.animationDuration=n.join(", "),i.animationTimingFunction=o.join(", "),i.animationDelay=a.join(", "),i.animationIterationCount=s.join(", "),i.animationDirection=c.join(", "),i.animationFillMode=l.join(", "),i.animationPlayState=f.join(", "),d.some((e=>e))&&(i.animationTimeline=d.join(", ")),u.some((e=>e))&&(i.animationRange=u.join(", "))}const c=function(e,n,i){void 0===n&&(n="base"),void 0===i&&(i=""),Object.keys(e).forEach((s=>{const c=e[s];let l=[];if("media"===n&&(r[i]?l=[r[i]]:o[i]&&(l=o[i].map((e=>r[e])).filter((e=>e)))),void 0!==c&&""!==c){const e=W.getClassNames(s,c,n,i,t,l);a.push(...e)}}))};c(i,"base");const l={};if(Object.keys(e).forEach((t=>{if(t.startsWith("_")&&t.length>1){const r=t.substring(1);l[r]=e[t]}})),Object.keys(e).forEach((r=>{if("style"!==r&&"css"!==r&&!r.startsWith("_")&&(j(r)||["on","media"].includes(r))){const n=e[r];if("object"==typeof n&&null!==n)"on"===r?Object.keys(n).forEach((e=>{const t=n[e],{animate:r,...o}=t;if(r){const e=Array.isArray(r)?r:[r],t=[],n=[],a=[],i=[],s=[],c=[],l=[],f=[];e.forEach((e=>{const{keyframesName:r,keyframes:o}=A(e);o&&"undefined"!=typeof document&&W.injectRule(o),t.push(r),n.push(e.duration||"0s"),a.push(e.timingFunction||"ease"),i.push(e.delay||"0s"),s.push(void 0!==e.iterationCount?`${e.iterationCount}`:"1"),c.push(e.direction||"normal"),l.push(e.fillMode||"none"),f.push(e.playState||"running")}));const d={animationName:t.join(", "),animationDuration:n.join(", "),animationTimingFunction:a.join(", "),animationDelay:i.join(", "),animationIterationCount:s.join(", "),animationDirection:c.join(", "),animationFillMode:l.join(", "),animationPlayState:f.join(", ")};Object.assign(o,d)}if(Object.keys(o).length>0){const t=z(e);t&&c(o,"pseudo",t)}})):"media"===r&&Object.keys(n).forEach((e=>{const t=n[e];c(t,"media",e)}));else if(void 0!==n&&""!==n){const e=W.getClassNames(r,n,"base","",t,[]);a.push(...e)}}})),e.css)if("object"==typeof e.css)Object.assign(i,e.css);else if("string"==typeof e.css){const t=function(e){if(P.has(e))return P.get(e);const t=`raw-css-${Math.random().toString(36).substring(7)}`;return P.set(e,t),t}(e.css);console.log("uniqueClassName",t,e.css),W.injectRule(`.${t} { ${e.css} }`),a.push(t)}return Object.keys(l).length>0&&Object.keys(l).forEach((e=>{const t=l[e];if("object"==typeof t&&null!==t){const{animate:r,...n}=t;if(r){const e=Array.isArray(r)?r:[r],t=[],o=[],a=[],i=[],s=[],c=[],l=[],f=[];e.forEach((e=>{const{keyframesName:r,keyframes:n}=A(e);n&&"undefined"!=typeof document&&W.injectRule(n),t.push(r),o.push(e.duration||"0s"),a.push(e.timingFunction||"ease"),i.push(e.delay||"0s"),s.push(void 0!==e.iterationCount?`${e.iterationCount}`:"1"),c.push(e.direction||"normal"),l.push(e.fillMode||"none"),f.push(e.playState||"running")}));const d={animationName:t.join(", "),animationDuration:o.join(", "),animationTimingFunction:a.join(", "),animationDelay:i.join(", "),animationIterationCount:s.join(", "),animationDirection:c.join(", "),animationFillMode:l.join(", "),animationPlayState:f.join(", ")};Object.assign(n,d)}if(Object.keys(n).length>0){const t=z(e);t&&c(n,"pseudo",t)}}else{const r="color",n={[r]:t},o=z(e);o&&c(n,"pseudo",o)}})),a},V=t.createContext({}),G=()=>t.useContext(V),q=r.memo(t.forwardRef(((e,n)=>{let{as:o="div",...a}=e;(a.onClick||a.onPress)&&null==a.cursor&&(a.cursor="pointer");const{onPress:i,...s}=a,{getColor:c,theme:l}=h(),{trackEvent:f}=G(),{mediaQueries:d,devices:u}=S(),m=t.useMemo((()=>N(s,(e=>c(e,{colors:a.colors,theme:a.theme,themeMode:a.themeMode})),d,u)),[s,d,u,l]),g={ref:n};if(i&&(g.onClick=i),m.length>0&&(g.className=m.join(" ")),f&&a.onClick){let e,t;e="string"==typeof o?o:o.displayName||o.name||"div","string"==typeof a.children&&(t=a.children.slice(0,100)),g.onClick=r=>{f({type:"click",target:"div"!==e?e:void 0,text:t}),a.onClick&&a.onClick(r)}}const{style:p,children:b,...w}=s;Object.keys(w).forEach((e=>{(!k.has(e)&&!j(e)||E.has(e))&&(g[e]=w[e])})),p&&(g.style=p);const y=o;return r.createElement(y,Object.assign({},g),b)}))),U=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({},e,{ref:t})))),Z=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({display:"flex",flexDirection:"row"},e,{ref:t})))),J=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({display:"flex",flexDirection:"column"},e,{ref:t})))),Q=r.forwardRef(((e,t)=>{let{media:n={},...o}=e;return r.createElement(Z,Object.assign({media:{...n,mobile:{...n.mobile,flexDirection:"column"}}},o,{ref:t}))})),K=r.forwardRef(((e,t)=>{let{media:n={},...o}=e;return r.createElement(J,Object.assign({media:{...n,mobile:{...n.mobile,flexDirection:"row"}}},o,{ref:t}))})),ee=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({},e,{ref:t})))),te=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({overflow:"auto"},e,{ref:t})))),re=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({},e,{ref:t})))),ne=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({as:"span"},e,{ref:t})))),oe=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({as:"img"},e,{ref:t})))),ae=r.forwardRef(((e,t)=>{let{src:n,...o}=e;return r.createElement(q,Object.assign({backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundRepeat:"no-repeat"},o,{ref:t}))})),ie=r.forwardRef(((e,t)=>{const{toUpperCase:n,children:o,...a}=e,i=n&&"string"==typeof o?o.toUpperCase():o;return r.createElement(q,Object.assign({as:"span"},a,{ref:t}),i)})),se=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({as:"form"},e,{ref:t})))),ce=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({as:"input"},e,{ref:t})))),le=r.forwardRef(((e,t)=>r.createElement(q,Object.assign({as:"button"},e,{ref:t})))),fe=e=>{let{duration:t="2s",timingFunction:r="linear",iterationCount:n="infinite",...o}=e;return{from:{transform:"translateX(-100%)"},"50%":{transform:"translateX(100%)"},to:{transform:"translateX(100%)"},duration:t,timingFunction:r,iterationCount:n,...o}};var de={__proto__:null,fadeIn:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:0},to:{opacity:1},duration:t,timingFunction:r,...n}},fadeOut:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:1},to:{opacity:0},duration:t,timingFunction:r,...n}},slideInLeft:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,...n}},slideInRight:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,...n}},slideInDown:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateY(-100%)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,...n}},slideInUp:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateY(100%)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,...n}},bounce:e=>{let{duration:t="2s",timingFunction:r="ease",iterationCount:n="infinite",...o}=e;return{from:{transform:"translateY(0)"},"20%":{transform:"translateY(-30px)"},"40%":{transform:"translateY(0)"},"60%":{transform:"translateY(-15px)"},"80%":{transform:"translateY(0)"},to:{transform:"translateY(0)"},duration:t,timingFunction:r,iterationCount:n,...o}},rotate:e=>{let{duration:t="1s",timingFunction:r="linear",iterationCount:n="infinite",...o}=e;return{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"},duration:t,timingFunction:r,iterationCount:n,...o}},pulse:e=>{let{duration:t="1s",timingFunction:r="ease-in-out",iterationCount:n="infinite",...o}=e;return{from:{transform:"scale(1)"},"50%":{transform:"scale(1.05)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,iterationCount:n,...o}},zoomIn:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(0)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,...n}},zoomOut:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(1)"},to:{transform:"scale(0)"},duration:t,timingFunction:r,...n}},flash:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{opacity:1},"50%":{opacity:0},to:{opacity:1},duration:t,iterationCount:r,...n}},shake:e=>{let{duration:t="0.5s",iterationCount:r="infinite",...n}=e;return{from:{transform:"translateX(0)"},"10%":{transform:"translateX(-10px)"},"20%":{transform:"translateX(10px)"},"30%":{transform:"translateX(-10px)"},"40%":{transform:"translateX(10px)"},"50%":{transform:"translateX(-10px)"},"60%":{transform:"translateX(10px)"},"70%":{transform:"translateX(-10px)"},"80%":{transform:"translateX(10px)"},"90%":{transform:"translateX(-10px)"},to:{transform:"translateX(0)"},duration:t,iterationCount:r,...n}},swing:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"rotate(0deg)"},"20%":{transform:"rotate(15deg)"},"40%":{transform:"rotate(-10deg)"},"60%":{transform:"rotate(5deg)"},"80%":{transform:"rotate(-5deg)"},to:{transform:"rotate(0deg)"},duration:t,iterationCount:r,...n}},rubberBand:e=>{let{duration:t="1s",timingFunction:r="ease-in-out",...n}=e;return{from:{transform:"scale3d(1, 1, 1)"},"30%":{transform:"scale3d(1.25, 0.75, 1)"},"40%":{transform:"scale3d(0.75, 1.25, 1)"},"50%":{transform:"scale3d(1.15, 0.85, 1)"},"65%":{transform:"scale3d(0.95, 1.05, 1)"},"75%":{transform:"scale3d(1.05, 0.95, 1)"},to:{transform:"scale3d(1, 1, 1)"},duration:t,timingFunction:r,...n}},wobble:e=>{let{duration:t="1s",...r}=e;return{from:{transform:"translateX(0%)"},"15%":{transform:"translateX(-25%) rotate(-5deg)"},"30%":{transform:"translateX(20%) rotate(3deg)"},"45%":{transform:"translateX(-15%) rotate(-3deg)"},"60%":{transform:"translateX(10%) rotate(2deg)"},"75%":{transform:"translateX(-5%) rotate(-1deg)"},to:{transform:"translateX(0%)"},duration:t,...r}},flip:e=>{let{duration:t="1s",...r}=e;return{from:{transform:"perspective(400px) rotateY(0deg)"},"40%":{transform:"perspective(400px) rotateY(-180deg)"},to:{transform:"perspective(400px) rotateY(-360deg)"},duration:t,...r}},heartBeat:e=>{let{duration:t="1.3s",iterationCount:r="infinite",...n}=e;return{from:{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"},to:{transform:"scale(1)"},duration:t,iterationCount:r,...n}},rollIn:e=>{let{duration:t="1s",...r}=e;return{from:{opacity:0,transform:"translateX(-100%) rotate(-120deg)"},to:{opacity:1,transform:"translateX(0px) rotate(0deg)"},duration:t,...r}},rollOut:e=>{let{duration:t="1s",...r}=e;return{from:{opacity:1,transform:"translateX(0px) rotate(0deg)"},to:{opacity:0,transform:"translateX(100%) rotate(120deg)"},duration:t,...r}},lightSpeedIn:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"translateX(100%) skewX(-30deg)",opacity:0},"60%":{transform:"skewX(20deg)",opacity:1},"80%":{transform:"skewX(-5deg)"},to:{transform:"translateX(0)",opacity:1},duration:t,timingFunction:r,...n}},lightSpeedOut:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1},"20%":{opacity:1,transform:"translateX(-20%) skewX(20deg)"},to:{opacity:0,transform:"translateX(-100%) skewX(30deg)"},duration:t,timingFunction:r,...n}},hinge:e=>{let{duration:t="2s",timingFunction:r="ease-in-out",...n}=e;return{from:{transform:"rotate(0deg)",transformOrigin:"top left",opacity:1},"20%":{transform:"rotate(80deg)",opacity:1},"40%":{transform:"rotate(60deg)",opacity:1},"60%":{transform:"rotate(80deg)",opacity:1},"80%":{transform:"rotate(60deg)",opacity:1},to:{transform:"translateY(700px)",opacity:0},duration:t,timingFunction:r,...n}},jackInTheBox:e=>{let{duration:t="1s",timingFunction:r="ease",...n}=e;return{from:{opacity:0,transform:"scale(0.1) rotate(30deg)",transformOrigin:"center bottom"},"50%":{transform:"rotate(-10deg)"},"70%":{transform:"rotate(3deg)"},to:{opacity:1,transform:"scale(1) rotate(0deg)"},duration:t,timingFunction:r,...n}},flipInX:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"perspective(400px) rotateX(90deg)",opacity:0},"40%":{transform:"perspective(400px) rotateX(-10deg)",opacity:1},to:{transform:"perspective(400px) rotateX(0deg)"},duration:t,timingFunction:r,...n}},flipInY:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"perspective(400px) rotateY(90deg)",opacity:0},"40%":{transform:"perspective(400px) rotateY(-10deg)",opacity:1},to:{transform:"perspective(400px) rotateY(0deg)"},duration:t,timingFunction:r,...n}},headShake:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"translateX(0)"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"translateX(0)"},duration:t,iterationCount:r,...n}},tada:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"scale3d(1, 1, 1)",opacity:1},"10%, 20%":{transform:"scale3d(0.9, 0.9, 0.9) rotate(-3deg)"},"30%, 50%, 70%, 90%":{transform:"scale3d(1.1, 1.1, 1.1) rotate(3deg)"},"40%, 60%, 80%":{transform:"scale3d(1.1, 1.1, 1.1) rotate(-3deg)"},to:{transform:"scale3d(1, 1, 1)",opacity:1},duration:t,iterationCount:r,...n}},jello:e=>{let{duration:t="1s",iterationCount:r="infinite",...n}=e;return{from:{transform:"none"},"11.1%":{transform:"skewX(-12.5deg) skewY(-12.5deg)"},"22.2%":{transform:"skewX(6.25deg) skewY(6.25deg)"},"33.3%":{transform:"skewX(-3.125deg) skewY(-3.125deg)"},"44.4%":{transform:"skewX(1.5625deg) skewY(1.5625deg)"},"55.5%":{transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},"66.6%":{transform:"skewX(0.390625deg) skewY(0.390625deg)"},"77.7%":{transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},"88.8%":{transform:"skewX(0.09765625deg) skewY(0.09765625deg)"},to:{transform:"none"},duration:t,iterationCount:r,...n}},fadeInDown:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"translateY(-100%)"},to:{opacity:1,transform:"translateY(0)"},duration:t,timingFunction:r,...n}},fadeInUp:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"translateY(100%)"},to:{opacity:1,transform:"translateY(0)"},duration:t,timingFunction:r,...n}},bounceIn:e=>{let{duration:t="0.75s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:0,transform:"scale(0.3)"},"50%":{opacity:1,transform:"scale(1.05)"},"70%":{transform:"scale(0.9)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,...n}},bounceOut:e=>{let{duration:t="0.75s",timingFunction:r="ease-out",...n}=e;return{from:{transform:"scale(1)"},"20%":{transform:"scale(0.9)"},"50%, 55%":{opacity:1,transform:"scale(1.1)"},to:{opacity:0,transform:"scale(0.3)"},duration:t,timingFunction:r,...n}},slideOutLeft:e=>{let{duration:t="0.5s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"},duration:t,timingFunction:r,...n}},slideOutRight:e=>{let{duration:t="0.5s",timingFunction:r="ease-in",...n}=e;return{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"},duration:t,timingFunction:r,...n}},zoomInDown:e=>{let{duration:t="1s",timingFunction:r="ease-out",...n}=e;return{from:{opacity:0,transform:"scale(0.1) translateY(-1000px)"},"60%":{opacity:1,transform:"scale(0.475) translateY(60px)"},to:{transform:"scale(1) translateY(0)"},duration:t,timingFunction:r,...n}},zoomOutUp:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1,transform:"scale(1) translateY(0)"},"40%":{opacity:1,transform:"scale(0.475) translateY(-60px)"},to:{opacity:0,transform:"scale(0.1) translateY(-1000px)"},duration:t,timingFunction:r,...n}},backInDown:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:.7,transform:"translateY(-2000px) scaleY(2.5) scaleX(0.2)"},to:{opacity:1,transform:"translateY(0) scaleY(1) scaleX(1)"},duration:t,timingFunction:r,...n}},backOutUp:e=>{let{duration:t="1s",timingFunction:r="ease-in",...n}=e;return{from:{opacity:1,transform:"translateY(0)"},"80%":{opacity:.7,transform:"translateY(-20px)"},to:{opacity:0,transform:"translateY(-2000px)"},duration:t,timingFunction:r,...n}},shimmer:fe,progress:e=>{let{duration:t="2s",timingFunction:r="linear",direction:n="forwards",from:o={width:"0%"},to:a={width:"100%"},...i}=e;return{from:o,to:a,duration:t,timingFunction:r,direction:n,...i}},typewriter:e=>{let{duration:t="10s",steps:r=10,iterationCount:n=1,width:o=0,...a}=e;return{from:{width:"0px"},to:{width:`${o}px`},timingFunction:`steps(${r})`,duration:t,iterationCount:n,...a}},blinkCursor:e=>{let{duration:t="0.75s",timingFunction:r="step-end",iterationCount:n="infinite",color:o="black",...a}=e;return{from:{color:o},to:{color:o},"0%":{color:o},"50%":{color:"transparent"},"100%":{color:o},duration:t,timingFunction:r,iterationCount:n,...a}},fadeInScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{opacity:0},to:{opacity:1},duration:t,timingFunction:r,timeline:n,range:o,...a}},slideInLeftScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease-out",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{transform:"translateX(-200%)"},to:{transform:"translateX(0)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},scaleDownScroll:e=>{let{duration:t="0.8s",timingFunction:r="ease",timeline:n="scroll()",range:o="cover",...a}=e;return{from:{transform:"scale(3)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},fillTextScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--section",range:o="entry 100% cover 50%, cover 50% exit 0%",...a}=e;return{from:{"--fill":0,color:"transparent",backgroundPositionX:"calc(var(--underline-block-width) * -1), calc(var(--underline-block-width) * -1), 0"},"50%":{"--fill":.5},to:{"--fill":1,backgroundPositionX:"0, 0, 0",color:"var(--finish-fill)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},ctaCollapseScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="scroll()",range:o="0 400px",...a}=e;return{from:{width:"calc(48px + 120px)"},to:{width:"48px"},duration:t,timingFunction:r,timeline:n,range:o,...a}},handWaveScroll:e=>{let{duration:t="2s",timingFunction:r="linear",timeline:n="scroll()",range:o="10vh 60vh",...a}=e;return{from:{transform:"rotate(0deg)"},"50%":{transform:"rotate(20deg)"},to:{transform:"rotate(0deg)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},fadeBlurScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="view()",range:o="cover 40% cover 85%",...a}=e;return{to:{opacity:0,filter:"blur(2rem)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},unclipScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--article",range:o="entry",...a}=e;return{to:{clipPath:"ellipse(220% 200% at 50% 175%)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},scaleDownArticleScroll:e=>{let{duration:t="1s",timingFunction:r="linear",timeline:n="--article",range:o="entry",...a}=e;return{"0%":{transform:"scale(5)"},to:{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}},listItemScaleScroll:e=>{let{duration:t="0.5s",timingFunction:r="ease",timeline:n="--i",range:o="cover 40% cover 60%",...a}=e;return{from:{transform:"scale(0.8)"},"50%":{transform:"scale(1)"},duration:t,timingFunction:r,timeline:n,range:o,...a}}};const ue=r.memo((e=>{let{duration:t="2s",timingFunction:n="linear",iterationCount:o="infinite",...a}=e;return r.createElement(U,Object.assign({backgroundColor:"color.black.300"},a,{overflow:"hidden"}),r.createElement(U,{position:"relative",inset:0,width:"100%",height:"100%",animate:fe({duration:t,timingFunction:n,iterationCount:o}),background:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent)"}))})),me=()=>"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ge=!me();const he=t.createContext({width:0,height:0});exports.AnalyticsContext=V,exports.AnalyticsProvider=e=>{let{trackEvent:t,children:n}=e;return r.createElement(V.Provider,{value:{trackEvent:t}},n)},exports.Animation=de,exports.Button=le,exports.Div=re,exports.Element=q,exports.Form=se,exports.Horizontal=Z,exports.HorizontalResponsive=Q,exports.Image=oe,exports.ImageBackground=ae,exports.Input=ce,exports.ResponsiveContext=v,exports.ResponsiveProvider=e=>{let{breakpoints:n=b,devices:o=w,children:a}=e;const[i,s]=t.useState("xs"),[c,l]=t.useState("portrait"),f=t.useMemo((()=>y(n)),[n]);t.useEffect((()=>{const e=[];for(const t in f){const r=window.matchMedia(f[t]),n=()=>r.matches&&s(t);r.addListener(n),r.matches&&s(t),e.push((()=>r.removeListener(n)))}const t=window.matchMedia("(orientation: landscape)"),r=()=>l(t.matches?"landscape":"portrait");return t.addListener(r),r(),e.push((()=>t.removeListener(r))),()=>e.forEach((e=>e()))}),[n]);const d=t.useMemo((()=>({breakpoints:n,devices:o,mediaQueries:f,currentWidth:window.innerWidth,currentHeight:window.innerHeight,currentBreakpoint:i,currentDevice:x(i,o),orientation:c})),[n,o,i,c]);return r.createElement(v.Provider,{value:d},a)},exports.SafeArea=te,exports.Scroll=ee,exports.Shadows=D,exports.Skeleton=ue,exports.Span=ne,exports.Text=ie,exports.ThemeContext=g,exports.ThemeProvider=e=>{let{theme:n={},mode:o="light",dark:a={},light:i={},children:s}=e;const[c,h]=t.useState(o),b=t.useRef(new Map).current;t.useEffect((()=>{h(o)}),[o]),t.useEffect((()=>{b.clear()}),[i,a,n,b]);const w=t.useMemo((()=>p(d,n)),[n]),y=t.useMemo((()=>({light:p(u,i),dark:p(m,a)})),[i,a]),x=t.useMemo((()=>y[c]),[y,c]),v=t.useCallback((function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return String(e);if("transparent"===e)return e;const r=t.themeMode??c,n=0===Object.keys(t).length,o=`${e}-${r}`;if(b.has(o)&&n)return b.get(o);const a=y[r];if(!a)return console.warn(`Color set for mode "${r}" not found.`),e;let i=e;try{if(e.startsWith(l)){const r=e.substring(6).split(".");let n=p(w,t.theme||{});for(const e of r){if(null==n)break;n=n[e]}"string"==typeof n&&n!==e?i=v(n,t):void 0===n?(console.warn(`Theme path "${e}" not found.`),i=e):"string"!=typeof n&&(console.warn(`Theme path "${e}" resolved to a non-string value.`),i=e)}else if(e.startsWith(f)){const n=e.substring(6).split(".");if(1===n.length){const o=n[0],s=p(a.main,t.colors?.main||{}),c=s?.[o];"string"==typeof c?i=c:console.warn(`Singleton color "${e}" not found in ${r} mode.`)}else if(2===n.length){const[o,s]=n,c=p(a.palette,t.colors?.palette||{}),l=c?.[o]?.[s];"string"==typeof l?i=l:console.warn(`Palette color "${e}" not found in ${r} mode.`)}else console.warn(`Invalid color format: "${e}". Expected 'color.name' or 'color.name.shade'.`)}}catch(t){console.error(`Error resolving color "${e}" for mode "${r}":`,t),i=e}return n&&b.set(o,i),i}),[w,y,c,b]),S=t.useMemo((()=>({getColor:v,theme:w,colors:x,themeMode:c,setThemeMode:h})),[v,w,x,c]);return r.createElement(g.Provider,{value:S},s)},exports.Typography={letterSpacings:{tighter:-.08,tight:-.4,normal:0,wide:.4,wider:.8,widest:1.6},lineHeights:{xs:10,sm:12,md:14,lg:16,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semiBold:600,bold:700,extraBold:800,black:900},fontSizes:{xs:10,sm:12,md:14,lg:16,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64}},exports.Vertical=J,exports.VerticalResponsive=K,exports.View=U,exports.debounce=(e,t)=>{let r;return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];clearTimeout(r),r=setTimeout((()=>e(...o)),t)}},exports.deepMerge=p,exports.defaultColors=i,exports.defaultDarkColors=c,exports.defaultDarkPalette=a,exports.defaultLightColors=s,exports.defaultLightPalette=o,exports.defaultThemeMain=d,exports.extractUtilityClasses=N,exports.getWindowInitialProps=()=>me()?window.g_initialProps:void 0,exports.isBrowser=me,exports.isDev=function(){let e=!1;return me()&&(e=!(-1===window.location.hostname.indexOf("localhost"))),e},exports.isMobile=function(){return navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)},exports.isProd=function(){return!!(me()&&window&&window.location&&window.location.hostname)&&(window.location.hostname.includes("localhost")||window.location.hostname.includes("develop"))},exports.isSSR=ge,exports.useActive=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1),a=()=>r(!0),i=()=>r(!1);return e.addEventListener("mousedown",t),e.addEventListener("mouseup",o),e.addEventListener("mouseleave",o),e.addEventListener("touchstart",a),e.addEventListener("touchend",i),()=>{e.removeEventListener("mousedown",t),e.removeEventListener("mouseup",o),e.removeEventListener("mouseleave",o),e.removeEventListener("touchstart",a),e.removeEventListener("touchend",i)}}),[]),[n,e]},exports.useAnalytics=G,exports.useClickOutside=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=e=>{n.current&&!n.current.contains(e.target)?r(!0):r(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),[n,e]},exports.useFocus=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1);return e.addEventListener("focus",t),e.addEventListener("blur",o),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",o)}}),[]),[n,e]},exports.useHover=function(){const[e,r]=t.useState(!1),n=t.useRef(null);return t.useEffect((()=>{const e=n.current;if(!e)return;const t=()=>r(!0),o=()=>r(!1);return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",o)}}),[]),[n,e]},exports.useInView=function(e){const{triggerOnce:r=!1,...n}=e||{},o=t.useRef(null),[a,i]=t.useState(!1);return t.useEffect((()=>{const e=o.current;if(!e)return;const t=new IntersectionObserver((e=>{let[n]=e;n.isIntersecting?(i(!0),r&&t.disconnect()):r||i(!1)}),n);return t.observe(e),()=>{t.disconnect()}}),[r,...Object.values(n||{})]),{ref:o,inView:a}},exports.useInfiniteScroll=function(e,r){void 0===r&&(r={});const[n,o]=t.useState(null),a=t.useRef(e),i=t.useRef();return t.useEffect((()=>{a.current=e}),[e]),t.useEffect((()=>{if(!n||r.isLoading)return;const e=new IntersectionObserver((e=>{e[0].isIntersecting&&(r.debounceMs?(i.current&&clearTimeout(i.current),i.current=setTimeout(a.current,r.debounceMs)):a.current())}),{threshold:r.threshold??0,root:r.root??null,rootMargin:r.rootMargin??"0px"});return e.observe(n),()=>{e.disconnect(),i.current&&clearTimeout(i.current)}}),[n,r.threshold,r.isLoading,r.root,r.rootMargin,r.debounceMs]),{sentinelRef:o}},exports.useKeyPress=function(e){const[r,n]=t.useState(!1);return t.useEffect((()=>{const t=t=>{t.key===e&&n(!0)},r=t=>{t.key===e&&n(!1)};return window.addEventListener("keydown",t),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",t),window.removeEventListener("keyup",r)}}),[e]),r},exports.useMount=e=>{t.useEffect((()=>{e()}),[])},exports.useOnScreen=function(e){const r=t.useRef(null),[n,o]=t.useState(!1);return t.useEffect((()=>{const t=r.current;if(!t)return;const n=new IntersectionObserver((e=>{let[t]=e;o(t.isIntersecting)}),e);return n.observe(t),()=>{n.disconnect()}}),[e]),[r,n]},exports.useResponsive=()=>{const e=S(),{currentBreakpoint:t,orientation:r,devices:n}=e,o=e=>n[e]?n[e].includes(t):e===t;return{...e,screen:t,orientation:r,on:o,is:o}},exports.useResponsiveContext=S,exports.useScroll=function(e){let{container:r,offset:n=[0,0],throttleMs:o=100,disabled:a=!1}=void 0===e?{}:e;const[i,s]=t.useState({x:0,y:0,xProgress:0,yProgress:0}),c=t.useRef(0),l=t.useRef(),f=t.useCallback((()=>{if(a)return;const e=Date.now();if(o>0&&e-c.current<o)return void(l.current=requestAnimationFrame(f));const t=(e=>{if(e instanceof Window){const e=document.documentElement;return{scrollHeight:Math.max(e.scrollHeight,e.offsetHeight),scrollWidth:Math.max(e.scrollWidth,e.offsetWidth),clientHeight:window.innerHeight,clientWidth:window.innerWidth,scrollTop:window.scrollY,scrollLeft:window.scrollX}}return{scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,clientHeight:e.clientHeight,clientWidth:e.clientWidth,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}})(r&&r.current?r.current:window),i=t.scrollLeft+n[0],d=t.scrollTop+n[1],u=t.scrollWidth-t.clientWidth,m=t.scrollHeight-t.clientHeight,g=u<=0?1:Math.min(Math.max(i/u,0),1),h=m<=0?1:Math.min(Math.max(d/m,0),1);s((t=>t.x!==i||t.y!==d||t.xProgress!==g||t.yProgress!==h?(c.current=e,{x:i,y:d,xProgress:g,yProgress:h}):t))}),[r,n,o,a]);return t.useEffect((()=>{if(a)return;const e=r&&r.current?r.current:window;f();const t={passive:!0};return e.addEventListener("scroll",f,t),window.addEventListener("resize",f,t),()=>{e.removeEventListener("scroll",f),window.removeEventListener("resize",f),l.current&&cancelAnimationFrame(l.current)}}),[f,r,a]),i},exports.useScrollAnimation=function(e,r){void 0===r&&(r={});const[n,o]=t.useState(!1),[a,i]=t.useState(0);return t.useEffect((()=>{const t=e.current;if(!t)return;const n=new IntersectionObserver((e=>{const t=e[0];o(t.isIntersecting),i(t.intersectionRatio),r.onIntersectionChange&&r.onIntersectionChange(t.isIntersecting,t.intersectionRatio)}),{threshold:r.threshold??0,rootMargin:r.rootMargin??"0px",root:r.root??null});return n.observe(t),()=>n.disconnect()}),[e,r.threshold,r.rootMargin,r.root,r.onIntersectionChange]),{isInView:n,progress:a}},exports.useScrollDirection=function(e){void 0===e&&(e=5);const[r,n]=t.useState("up"),o=t.useRef(0),a=t.useRef("up"),i=t.useRef(),s=t.useRef(!1);return t.useEffect((()=>{const t=()=>{s.current||(i.current=requestAnimationFrame((()=>{(()=>{const t=window.scrollY||document.documentElement.scrollTop,r=t>o.current?"down":"up",i=Math.abs(t-o.current),c=window.innerHeight+t>=document.documentElement.scrollHeight-1;(i>e||"down"===r&&c)&&r!==a.current&&(a.current=r,n(r)),o.current=Math.max(t,0),s.current=!1})(),s.current=!1})),s.current=!0)};return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t),i.current&&cancelAnimationFrame(i.current)}}),[e]),r},exports.useSmoothScroll=()=>t.useCallback((function(e,t){if(void 0===t&&(t=0),e)try{const r=e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset)-t;"scrollBehavior"in document.documentElement.style?window.scrollTo({top:r,behavior:"smooth"}):window.scrollTo(0,r)}catch(e){console.error("Error during smooth scroll:",e)}}),[]),exports.useTheme=h,exports.useWindowSize=()=>t.useContext(he),exports.utilityClassManager=W;
|
|
2
2
|
//# sourceMappingURL=app-studio.cjs.production.min.js.map
|