@tamagui/web 3.0.0-beta.655.1 → 3.0.0-beta.669.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/cjs/createComponent.cjs +1 -1
  2. package/dist/cjs/createComponent.native.cjs +1 -1
  3. package/dist/cjs/createComponent.native.js +1 -1
  4. package/dist/cjs/createComponent.native.js.map +1 -1
  5. package/dist/cjs/createTamagui.cjs +1 -1
  6. package/dist/cjs/createTamagui.native.cjs +1 -1
  7. package/dist/cjs/createTamagui.native.js +1 -1
  8. package/dist/cjs/createTamagui.native.js.map +1 -1
  9. package/dist/cjs/helpers/directStyle.cjs +12 -12
  10. package/dist/cjs/helpers/directStyle.native.cjs +12 -12
  11. package/dist/cjs/helpers/directStyle.native.js +12 -12
  12. package/dist/cjs/helpers/directStyle.native.js.map +1 -1
  13. package/dist/cjs/helpers/formatDiagnostic.cjs +3 -0
  14. package/dist/cjs/helpers/formatDiagnostic.native.cjs +3 -0
  15. package/dist/cjs/helpers/formatDiagnostic.native.js +3 -0
  16. package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
  17. package/dist/cjs/helpers/getSplitStyles.cjs +2 -2
  18. package/dist/cjs/helpers/getSplitStyles.native.cjs +2 -2
  19. package/dist/cjs/helpers/getSplitStyles.native.js +2 -2
  20. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  21. package/dist/cjs/helpers/mergeVariants.cjs +1 -1
  22. package/dist/cjs/helpers/mergeVariants.native.cjs +1 -1
  23. package/dist/cjs/helpers/mergeVariants.native.js +1 -1
  24. package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
  25. package/dist/cjs/helpers/propMapper.cjs +2 -2
  26. package/dist/cjs/helpers/propMapper.native.cjs +2 -2
  27. package/dist/cjs/helpers/propMapper.native.js +2 -2
  28. package/dist/cjs/helpers/propMapper.native.js.map +1 -1
  29. package/dist/cjs/hooks/getThemeProxied.native.cjs +1 -1
  30. package/dist/cjs/hooks/getThemeProxied.native.js +1 -1
  31. package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
  32. package/dist/cjs/hooks/useComponentState.cjs +2 -2
  33. package/dist/cjs/hooks/useComponentState.native.cjs +2 -2
  34. package/dist/cjs/hooks/useComponentState.native.js +2 -2
  35. package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
  36. package/dist/cjs/hooks/useProps.cjs +1 -1
  37. package/dist/cjs/hooks/useProps.native.cjs +1 -1
  38. package/dist/cjs/hooks/useProps.native.js +1 -1
  39. package/dist/cjs/hooks/useProps.native.js.map +1 -1
  40. package/dist/cjs/hooks/useThemeState.cjs +2 -2
  41. package/dist/cjs/hooks/useThemeState.native.cjs +2 -2
  42. package/dist/cjs/hooks/useThemeState.native.js +2 -2
  43. package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
  44. package/dist/cjs/internal-runtime.cjs +3 -1
  45. package/dist/cjs/internal-runtime.native.cjs +3 -1
  46. package/dist/cjs/internal-runtime.native.js +3 -1
  47. package/dist/cjs/internal-runtime.native.js.map +1 -1
  48. package/dist/cjs/views/Theme.cjs +1 -1
  49. package/dist/cjs/views/Theme.native.cjs +1 -1
  50. package/dist/cjs/views/Theme.native.js +1 -1
  51. package/dist/cjs/views/Theme.native.js.map +1 -1
  52. package/dist/esm/createComponent.mjs +1 -1
  53. package/dist/esm/createComponent.mjs.map +1 -1
  54. package/dist/esm/createComponent.native.js +1 -1
  55. package/dist/esm/createComponent.native.js.map +1 -1
  56. package/dist/esm/createTamagui.mjs +1 -1
  57. package/dist/esm/createTamagui.mjs.map +1 -1
  58. package/dist/esm/createTamagui.native.js +1 -1
  59. package/dist/esm/createTamagui.native.js.map +1 -1
  60. package/dist/esm/helpers/directStyle.mjs +13 -13
  61. package/dist/esm/helpers/directStyle.mjs.map +1 -1
  62. package/dist/esm/helpers/directStyle.native.js +13 -13
  63. package/dist/esm/helpers/directStyle.native.js.map +1 -1
  64. package/dist/esm/helpers/formatDiagnostic.mjs +3 -0
  65. package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
  66. package/dist/esm/helpers/formatDiagnostic.native.js +3 -0
  67. package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
  68. package/dist/esm/helpers/getSplitStyles.mjs +2 -2
  69. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  70. package/dist/esm/helpers/getSplitStyles.native.js +2 -2
  71. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  72. package/dist/esm/helpers/mergeVariants.mjs +1 -1
  73. package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
  74. package/dist/esm/helpers/mergeVariants.native.js +1 -1
  75. package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
  76. package/dist/esm/helpers/propMapper.mjs +2 -2
  77. package/dist/esm/helpers/propMapper.mjs.map +1 -1
  78. package/dist/esm/helpers/propMapper.native.js +2 -2
  79. package/dist/esm/helpers/propMapper.native.js.map +1 -1
  80. package/dist/esm/hooks/getThemeProxied.native.js +1 -1
  81. package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
  82. package/dist/esm/hooks/useComponentState.mjs +2 -2
  83. package/dist/esm/hooks/useComponentState.mjs.map +1 -1
  84. package/dist/esm/hooks/useComponentState.native.js +2 -2
  85. package/dist/esm/hooks/useComponentState.native.js.map +1 -1
  86. package/dist/esm/hooks/useProps.mjs +1 -1
  87. package/dist/esm/hooks/useProps.mjs.map +1 -1
  88. package/dist/esm/hooks/useProps.native.js +1 -1
  89. package/dist/esm/hooks/useProps.native.js.map +1 -1
  90. package/dist/esm/hooks/useThemeState.mjs +2 -2
  91. package/dist/esm/hooks/useThemeState.mjs.map +1 -1
  92. package/dist/esm/hooks/useThemeState.native.js +2 -2
  93. package/dist/esm/hooks/useThemeState.native.js.map +1 -1
  94. package/dist/esm/internal-runtime.mjs +3 -1
  95. package/dist/esm/internal-runtime.mjs.map +1 -1
  96. package/dist/esm/internal-runtime.native.js +3 -1
  97. package/dist/esm/internal-runtime.native.js.map +1 -1
  98. package/dist/esm/views/Theme.mjs +1 -1
  99. package/dist/esm/views/Theme.mjs.map +1 -1
  100. package/dist/esm/views/Theme.native.js +2 -1
  101. package/dist/esm/views/Theme.native.js.map +1 -1
  102. package/package.json +15 -15
  103. package/src/createComponent.tsx +4 -1
  104. package/src/createTamagui.ts +6 -1
  105. package/src/helpers/directStyle.ts +23 -12
  106. package/src/helpers/formatDiagnostic.ts +3 -0
  107. package/src/helpers/getSplitStyles.tsx +8 -2
  108. package/src/helpers/mergeVariants.ts +3 -1
  109. package/src/helpers/propMapper.ts +6 -1
  110. package/src/hooks/getThemeProxied.ts +4 -3
  111. package/src/hooks/useComponentState.ts +4 -1
  112. package/src/hooks/useProps.tsx +4 -1
  113. package/src/hooks/useThemeState.ts +8 -2
  114. package/src/internal-runtime.ts +8 -1
  115. package/src/views/Theme.tsx +4 -1
  116. package/types/createComponent.d.ts.map +1 -1
  117. package/types/helpers/directStyle.d.ts.map +1 -1
  118. package/types/helpers/formatDiagnostic.d.ts.map +1 -1
  119. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  120. package/types/helpers/mergeVariants.d.ts.map +1 -1
  121. package/types/helpers/propMapper.d.ts.map +1 -1
  122. package/types/hooks/getThemeProxied.d.ts.map +1 -1
  123. package/types/hooks/useComponentState.d.ts.map +1 -1
  124. package/types/hooks/useProps.d.ts.map +1 -1
  125. package/types/hooks/useThemeState.d.ts.map +1 -1
  126. package/types/internal-runtime.d.ts.map +1 -1
  127. package/types/views/Theme.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"createTamagui.native.js","names":["getCSS","getCSSHelper"],"sources":["esm/createTamagui.native.js"],"sourcesContent":["import { getConfigMaybe, setConfig, setTokens } from \"./config\";\nimport { createVariables } from \"./createVariables\";\nimport { defaultAnimationDriver } from \"./helpers/defaultAnimationDriver\";\nimport { resolveAnimationDriver } from \"./helpers/resolveAnimationDriver\";\nimport { buildCSSRuleSets, createFontCSS, createThemeCSS, createTokenCSS, getCSS as getCSSHelper } from \"./helpers/createDesignSystem\";\nimport { scanAllSheets } from \"./helpers/insertStyleRule\";\nimport { proxyThemesToParents } from \"./helpers/proxyThemeToParents\";\nimport { ensureThemeVariable } from \"./helpers/themes\";\nimport { mergeConfigVariablesIntoTheme } from \"./helpers/variables\";\nimport { configureMedia } from \"./hooks/useMedia\";\nimport { parseFont, registerFontVariables } from \"./insertFont\";\nimport { Tamagui } from \"./Tamagui\";\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar reservedCssIdentsLower = /* @__PURE__ */ new Set([\n \"inherit\",\n \"initial\",\n \"unset\",\n \"revert\",\n \"none\",\n \"auto\",\n \"transparent\",\n \"currentcolor\"\n]);\nfunction shouldTokenCategoryHaveUnits(category) {\n var UNIT_CATEGORIES = /* @__PURE__ */ new Set([\n \"size\",\n \"space\",\n \"radius\"\n ]);\n return UNIT_CATEGORIES.has(category);\n}\nfunction initializeTamaguiConfig(config) {\n setConfig(config);\n configureMedia(config);\n}\nfunction installTamaguiConfig(config) {\n setTokens(config.tokensParsed);\n initializeTamaguiConfig(config);\n return config;\n}\nfunction createParsedTokens(tokensIn) {\n var parsed = createVariables(tokensIn || {});\n for (var _i = 0, _iter = [\n \"color\",\n \"space\",\n \"size\",\n \"radius\",\n \"zIndex\"\n ]; _i < _iter.length; _i++) {\n var category = _iter[_i];\n var _parsed, _category;\n (_parsed = parsed)[_category = category] || (_parsed[_category] = {});\n }\n return parsed;\n}\nfunction isNamesOnlyThemeProjection(themes) {\n var names = Object.keys(themes);\n if (names.length === 0) return false;\n return names.every(function(name) {\n var theme = themes[name];\n if (!theme || (typeof theme === \"undefined\" ? \"undefined\" : _type_of(theme)) !== \"object\") return false;\n var variables = Object.keys(theme);\n return variables.length > 0 && variables.every(function(key) {\n return theme[key] === void 0;\n });\n });\n}\nfunction createTamagui(configIn) {\n var _configIn_settings, _process_env_DEBUG;\n if (process.env.TAMAGUI_RUNTIME === \"zero\") {\n throw new Error(`[tamagui zero-runtime] createTamagui ran in a zero-runtime graph. Config parsing and CSS generation happen at build time in this mode and the bundler loads the generated CSS artifact. Remove the client config reference or make this entry full-runtime.`);\n }\n var existingConfig = getConfigMaybe();\n if (existingConfig) {\n configIn = {\n ...existingConfig,\n ...configIn\n };\n }\n var tokensParsed = createParsedTokens(configIn.tokens);\n var tokens = tokensParsed;\n if (configIn.tokens) {\n for (var cat in tokens) {\n var tokenCat = tokens[cat];\n for (var key in tokenCat) {\n if (reservedCssIdentsLower.has(key.toLowerCase())) {\n throw new Error(`Token tokens.${cat}.${key} takes a reserved CSS-wide keyword name. These always resolve as literal CSS (\"${key.toLowerCase()}\"), so this token could never be referenced. Rename it.`);\n }\n }\n }\n setTokens(tokensParsed);\n }\n var foundThemes;\n if (configIn.themes) {\n var noThemes = Object.keys(configIn.themes).length === 0;\n var namesOnlyThemes = isNamesOnlyThemeProjection(configIn.themes);\n if ((noThemes || namesOnlyThemes) && !process.env.TAMAGUI_DID_OUTPUT_CSS) {\n foundThemes = scanAllSheets(true, tokensParsed);\n }\n }\n var fontSizeTokens = null;\n var fontsParsed;\n if (configIn.fonts) {\n var fontTokens = Object.fromEntries(Object.entries(configIn.fonts).map(function(param) {\n var [k, v] = param;\n return [\n k,\n createVariables(v, \"f\", true)\n ];\n }));\n fontsParsed = (function() {\n var res = {};\n for (var familyName in fontTokens) {\n var font = fontTokens[familyName];\n var fontParsed = parseFont(font);\n res[familyName] = fontParsed;\n if (!fontSizeTokens && fontParsed.size) {\n fontSizeTokens = new Set(Object.keys(fontParsed.size));\n }\n }\n return res;\n })();\n }\n var { defaultSize: _removedDefaultSize, defaultTokens: _removedDefaultTokens, ...settingsIn } = configIn.settings || {};\n var defaultFontSetting = (_configIn_settings = configIn.settings) === null || _configIn_settings === void 0 ? void 0 : _configIn_settings.defaultFont;\n var defaultFont = defaultFontSetting;\n var defaultFontToken = (defaultFont ? defaultFont : (fontsParsed === null || fontsParsed === void 0 ? void 0 : fontsParsed.body) ? \"body\" : Object.keys(fontsParsed || {})[0]) || \"\";\n if (defaultFont && !(fontsParsed === null || fontsParsed === void 0 ? void 0 : fontsParsed[defaultFontToken])) {\n throw new Error(`settings.defaultFont points to missing font \"${defaultFontToken}\". Configure fonts.${defaultFont} or choose an existing default.`);\n }\n var themeConfig = (function() {\n var declarations = createTokenCSS(tokens, shouldTokenCategoryHaveUnits);\n var fontDeclarations = createFontCSS(fontsParsed, registerFontVariables);\n var cssRuleSets = buildCSSRuleSets(declarations, fontDeclarations, defaultFontToken);\n var themesIn = configIn.themes;\n var dedupedThemes = foundThemes !== null && foundThemes !== void 0 ? foundThemes : getThemesDeduped(themesIn, tokens.color, configIn.variables, {\n tokensParsed\n });\n var themes = proxyThemesToParents(dedupedThemes);\n return {\n themes,\n cssRuleSets,\n getThemeRulesSets() {\n return createThemeCSS(dedupedThemes, configIn);\n }\n };\n })();\n var userShorthands = configIn.shorthands || {};\n var shorthands = {\n ...builtinShorthands,\n ...userShorthands\n };\n var cssState = {\n lastIndex: -1,\n static: null\n };\n var getCSS = function() {\n var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return getCSSHelper(themeConfig, opts, cssState);\n };\n var getNewCSS = function(opts) {\n return getCSS({\n ...opts,\n sinceLastCall: true\n });\n };\n var inputAnimations = configIn.animations;\n var resolvedDriver = resolveAnimationDriver(inputAnimations);\n var isMultiDriver = resolvedDriver !== null && resolvedDriver !== inputAnimations;\n var resolvedAnimations = resolvedDriver !== null && resolvedDriver !== void 0 ? resolvedDriver : inputAnimations;\n var animationDrivers = isMultiDriver ? inputAnimations : void 0;\n var config = {\n fonts: {},\n onlyAllowShorthands: false,\n fontLanguages: [],\n media: {},\n ...configIn,\n // normalized animations (resolved from multi-driver format if needed)\n animations: resolvedAnimations !== null && resolvedAnimations !== void 0 ? resolvedAnimations : defaultAnimationDriver,\n animationDrivers,\n settings: {\n webContainerType: \"inline-size\",\n ...settingsIn\n },\n tokens,\n // vite made this into a function if it wasn't set\n shorthands,\n userShorthands,\n inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(function(param) {\n var [k, v] = param;\n return [\n v,\n k\n ];\n })) : {},\n themes: themeConfig.themes,\n fontsParsed: fontsParsed || {},\n themeConfig,\n tokensParsed,\n parsed: true,\n getNewCSS,\n getCSS,\n defaultFont,\n fontSizeTokens: fontSizeTokens || /* @__PURE__ */ new Set(),\n defaultFontToken\n };\n initializeTamaguiConfig(config);\n if (process.env.NODE_ENV !== \"development\") {\n return config;\n }\n if ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith(\"tamagui\")) {\n console.info(\"Tamagui config:\", config);\n }\n if (!globalThis[\"Tamagui\"]) {\n globalThis[\"Tamagui\"] = Tamagui;\n }\n return config;\n}\nfunction getThemesDeduped(themes, colorTokens, variables, variablesCtx) {\n var dedupedThemes = [];\n var existing = /* @__PURE__ */ new Map();\n var sortedThemeNames = Object.keys(themes).sort(function(a, b) {\n var aIsBase = a === \"light\" || a === \"dark\";\n var bIsBase = b === \"light\" || b === \"dark\";\n return aIsBase === bIsBase ? a.localeCompare(b) : aIsBase ? -1 : 1;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = sortedThemeNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var themeName = _step.value;\n var rawTheme = themes[themeName];\n var key = JSON.stringify(rawTheme);\n if (existing.has(key)) {\n var e = existing.get(key);\n e.names.push(themeName);\n continue;\n }\n var theme = {\n ...colorTokens,\n ...rawTheme\n };\n for (var key1 in theme) {\n ensureThemeVariable(theme, key1);\n }\n if (variables && variablesCtx && !themeName.includes(\"_\")) {\n mergeConfigVariablesIntoTheme(theme, themeName, variables, variablesCtx.tokensParsed);\n }\n var deduped = {\n names: [\n themeName\n ],\n theme\n };\n dedupedThemes.push(deduped);\n existing.set(key, deduped);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return dedupedThemes;\n}\nvar builtinShorthands = {\n bblr: \"borderBottomLeftRadius\",\n bbrr: \"borderBottomRightRadius\",\n bbs: \"borderBottomStyle\",\n bls: \"borderLeftStyle\",\n brc: \"borderRightColor\",\n brs: \"borderRightStyle\",\n brw: \"borderRightWidth\",\n bs: \"borderStyle\",\n btc: \"borderTopColor\",\n btlr: \"borderTopLeftRadius\",\n btrr: \"borderTopRightRadius\",\n bts: \"borderTopStyle\",\n btw: \"borderTopWidth\",\n bw: \"borderWidth\",\n bxs: \"boxSizing\",\n bxsh: \"boxShadow\",\n col: \"color\",\n cur: \"cursor\",\n dsp: \"display\",\n fb: \"flexBasis\",\n fd: \"flexDirection\",\n ff: \"fontFamily\",\n fs: \"fontSize\",\n fst: \"fontStyle\",\n fw: \"fontWeight\",\n fwr: \"flexWrap\",\n // height: 'h',\n lh: \"lineHeight\",\n ls: \"letterSpacing\",\n o: \"opacity\",\n ov: \"overflow\",\n ox: \"overflowX\",\n oy: \"overflowY\",\n pe: \"pointerEvents\",\n pos: \"position\",\n td: \"textDecorationLine\",\n tr: \"transform\",\n tt: \"textTransform\",\n va: \"verticalAlign\",\n wb: \"wordBreak\",\n // width: 'w',\n ws: \"whiteSpace\",\n ww: \"wordWrap\"\n};\nexport {\n createTamagui,\n installTamaguiConfig\n};\n//# sourceMappingURL=createTamagui.js.map\n"],"mappings":";;;;;;;;;;;;;;AAYA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,IAAI,yCAAyC,IAAI,IAAI;CACnD;CACA;CACA;CACA;CACA;C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;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CAEJ,IAAI;CACJ,IAAI;AACN"}
1
+ {"version":3,"file":"createTamagui.native.js","names":["getCSS","getCSSHelper"],"sources":["esm/createTamagui.native.js"],"sourcesContent":["import { getConfigMaybe, setConfig, setTokens } from \"./config\";\nimport { createVariables } from \"./createVariables\";\nimport { defaultAnimationDriver } from \"./helpers/defaultAnimationDriver\";\nimport { resolveAnimationDriver } from \"./helpers/resolveAnimationDriver\";\nimport { buildCSSRuleSets, createFontCSS, createThemeCSS, createTokenCSS, getCSS as getCSSHelper } from \"./helpers/createDesignSystem\";\nimport { scanAllSheets } from \"./helpers/insertStyleRule\";\nimport { proxyThemesToParents } from \"./helpers/proxyThemeToParents\";\nimport { ensureThemeVariable } from \"./helpers/themes\";\nimport { mergeConfigVariablesIntoTheme } from \"./helpers/variables\";\nimport { configureMedia } from \"./hooks/useMedia\";\nimport { parseFont, registerFontVariables } from \"./insertFont\";\nimport { Tamagui } from \"./Tamagui\";\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar reservedCssIdentsLower = /* @__PURE__ */ new Set([\n \"inherit\",\n \"initial\",\n \"unset\",\n \"revert\",\n \"none\",\n \"auto\",\n \"transparent\",\n \"currentcolor\"\n]);\nfunction shouldTokenCategoryHaveUnits(category) {\n var UNIT_CATEGORIES = /* @__PURE__ */ new Set([\n \"size\",\n \"space\",\n \"radius\"\n ]);\n return UNIT_CATEGORIES.has(category);\n}\nfunction initializeTamaguiConfig(config) {\n setConfig(config);\n configureMedia(config);\n}\nfunction installTamaguiConfig(config) {\n setTokens(config.tokensParsed);\n initializeTamaguiConfig(config);\n return config;\n}\nfunction createParsedTokens(tokensIn) {\n var parsed = createVariables(tokensIn || {});\n for (var _i = 0, _iter = [\n \"color\",\n \"space\",\n \"size\",\n \"radius\",\n \"zIndex\"\n ]; _i < _iter.length; _i++) {\n var category = _iter[_i];\n var _parsed, _category;\n (_parsed = parsed)[_category = category] || (_parsed[_category] = {});\n }\n return parsed;\n}\nfunction isNamesOnlyThemeProjection(themes) {\n var names = Object.keys(themes);\n if (names.length === 0) return false;\n return names.every(function(name) {\n var theme = themes[name];\n if (!theme || (typeof theme === \"undefined\" ? \"undefined\" : _type_of(theme)) !== \"object\") return false;\n var variables = Object.keys(theme);\n return variables.length > 0 && variables.every(function(key) {\n return theme[key] === void 0;\n });\n });\n}\nfunction createTamagui(configIn) {\n var _configIn_settings, _process_env_DEBUG;\n if (process.env.TAMAGUI_RUNTIME === \"zero\") {\n throw new Error(`[tamagui zero-runtime] createTamagui ran in a zero-runtime graph. Config parsing and CSS generation happen at build time in this mode and the bundler loads the generated CSS artifact. Remove the client config reference or make this entry full-runtime.`);\n }\n var existingConfig = getConfigMaybe();\n if (existingConfig) {\n configIn = {\n ...existingConfig,\n ...configIn\n };\n }\n var tokensParsed = createParsedTokens(configIn.tokens);\n var tokens = tokensParsed;\n if (configIn.tokens) {\n for (var cat in tokens) {\n var tokenCat = tokens[cat];\n for (var key in tokenCat) {\n if (reservedCssIdentsLower.has(key.toLowerCase())) {\n throw new Error(`Token tokens.${cat}.${key} takes a reserved CSS-wide keyword name. These always resolve as literal CSS (\"${key.toLowerCase()}\"), so this token could never be referenced. Rename it.`);\n }\n }\n }\n setTokens(tokensParsed);\n }\n var foundThemes;\n if (configIn.themes) {\n var noThemes = Object.keys(configIn.themes).length === 0;\n var namesOnlyThemes = isNamesOnlyThemeProjection(configIn.themes);\n if ((noThemes || namesOnlyThemes) && !process.env.TAMAGUI_DID_OUTPUT_CSS) {\n foundThemes = scanAllSheets(true, tokensParsed);\n }\n }\n var fontSizeTokens = null;\n var fontsParsed;\n if (configIn.fonts) {\n var fontTokens = Object.fromEntries(Object.entries(configIn.fonts).map(function(param) {\n var [k, v] = param;\n return [\n k,\n createVariables(v, \"f\", true)\n ];\n }));\n fontsParsed = (function() {\n var res = {};\n for (var familyName in fontTokens) {\n var font = fontTokens[familyName];\n var fontParsed = parseFont(font);\n res[familyName] = fontParsed;\n if (!fontSizeTokens && fontParsed.size) {\n fontSizeTokens = new Set(Object.keys(fontParsed.size));\n }\n }\n return res;\n })();\n }\n var { defaultSize: _removedDefaultSize, defaultTokens: _removedDefaultTokens, ...settingsIn } = configIn.settings || {};\n var defaultFontSetting = (_configIn_settings = configIn.settings) === null || _configIn_settings === void 0 ? void 0 : _configIn_settings.defaultFont;\n var defaultFont = defaultFontSetting;\n var defaultFontToken = (defaultFont ? defaultFont : (fontsParsed === null || fontsParsed === void 0 ? void 0 : fontsParsed.body) ? \"body\" : Object.keys(fontsParsed || {})[0]) || \"\";\n if (defaultFont && !(fontsParsed === null || fontsParsed === void 0 ? void 0 : fontsParsed[defaultFontToken])) {\n throw new Error(`settings.defaultFont points to missing font \"${defaultFontToken}\". Configure fonts.${defaultFont} or choose an existing default.`);\n }\n var themeConfig = (function() {\n var declarations = createTokenCSS(tokens, shouldTokenCategoryHaveUnits);\n var fontDeclarations = createFontCSS(fontsParsed, registerFontVariables);\n var cssRuleSets = buildCSSRuleSets(declarations, fontDeclarations, defaultFontToken);\n var themesIn = configIn.themes;\n var dedupedThemes = foundThemes !== null && foundThemes !== void 0 ? foundThemes : getThemesDeduped(themesIn, tokens.color, configIn.variables, {\n tokensParsed\n });\n var themes = proxyThemesToParents(dedupedThemes);\n return {\n themes,\n cssRuleSets,\n getThemeRulesSets() {\n return createThemeCSS(dedupedThemes, configIn);\n }\n };\n })();\n var userShorthands = configIn.shorthands || {};\n var shorthands = {\n ...builtinShorthands,\n ...userShorthands\n };\n var cssState = {\n lastIndex: -1,\n static: null\n };\n var getCSS = function() {\n var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return getCSSHelper(themeConfig, opts, cssState);\n };\n var getNewCSS = function(opts) {\n return getCSS({\n ...opts,\n sinceLastCall: true\n });\n };\n var inputAnimations = configIn.animations;\n var resolvedDriver = resolveAnimationDriver(inputAnimations);\n var isMultiDriver = resolvedDriver !== null && resolvedDriver !== inputAnimations;\n var resolvedAnimations = resolvedDriver !== null && resolvedDriver !== void 0 ? resolvedDriver : inputAnimations;\n var animationDrivers = isMultiDriver ? inputAnimations : void 0;\n var config = {\n fonts: {},\n onlyAllowShorthands: false,\n fontLanguages: [],\n media: {},\n ...configIn,\n // normalized animations (resolved from multi-driver format if needed)\n animations: resolvedAnimations !== null && resolvedAnimations !== void 0 ? resolvedAnimations : defaultAnimationDriver,\n animationDrivers,\n settings: {\n webContainerType: \"inline-size\",\n ...settingsIn\n },\n tokens,\n // vite made this into a function if it wasn't set\n shorthands,\n userShorthands,\n inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(function(param) {\n var [k, v] = param;\n return [\n v,\n k\n ];\n })) : {},\n themes: themeConfig.themes,\n fontsParsed: fontsParsed || {},\n themeConfig,\n tokensParsed,\n parsed: true,\n getNewCSS,\n getCSS,\n defaultFont,\n fontSizeTokens: fontSizeTokens || /* @__PURE__ */ new Set(),\n defaultFontToken\n };\n initializeTamaguiConfig(config);\n if (process.env.NODE_ENV !== \"development\") {\n return config;\n }\n if ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith(\"tamagui\")) {\n console.info(\"Tamagui config:\", config);\n }\n if (!globalThis[\"Tamagui\"]) {\n globalThis[\"Tamagui\"] = Tamagui;\n }\n return config;\n}\nfunction getThemesDeduped(themes, colorTokens, variables, variablesCtx) {\n var dedupedThemes = [];\n var existing = /* @__PURE__ */ new Map();\n var sortedThemeNames = Object.keys(themes).sort(function(a, b) {\n var aIsBase = a === \"light\" || a === \"dark\";\n var bIsBase = b === \"light\" || b === \"dark\";\n return aIsBase === bIsBase ? a.localeCompare(b) : aIsBase ? -1 : 1;\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = sortedThemeNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var themeName = _step.value;\n var rawTheme = themes[themeName];\n var key = JSON.stringify(rawTheme);\n if (existing.has(key)) {\n var e = existing.get(key);\n e.names.push(themeName);\n continue;\n }\n var theme = {\n ...colorTokens,\n ...rawTheme\n };\n for (var key1 in theme) {\n ensureThemeVariable(theme, key1);\n }\n if (process.env.TAMAGUI_RUNTIME_INLINE_THEME_VALUES !== \"disabled\" && variables && variablesCtx && !themeName.includes(\"_\")) {\n mergeConfigVariablesIntoTheme(theme, themeName, variables, variablesCtx.tokensParsed);\n }\n var deduped = {\n names: [\n themeName\n ],\n theme\n };\n dedupedThemes.push(deduped);\n existing.set(key, deduped);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return dedupedThemes;\n}\nvar builtinShorthands = {\n bblr: \"borderBottomLeftRadius\",\n bbrr: \"borderBottomRightRadius\",\n bbs: \"borderBottomStyle\",\n bls: \"borderLeftStyle\",\n brc: \"borderRightColor\",\n brs: \"borderRightStyle\",\n brw: \"borderRightWidth\",\n bs: \"borderStyle\",\n btc: \"borderTopColor\",\n btlr: \"borderTopLeftRadius\",\n btrr: \"borderTopRightRadius\",\n bts: \"borderTopStyle\",\n btw: \"borderTopWidth\",\n bw: \"borderWidth\",\n bxs: \"boxSizing\",\n bxsh: \"boxShadow\",\n col: \"color\",\n cur: \"cursor\",\n dsp: \"display\",\n fb: \"flexBasis\",\n fd: \"flexDirection\",\n ff: \"fontFamily\",\n fs: \"fontSize\",\n fst: \"fontStyle\",\n fw: \"fontWeight\",\n fwr: \"flexWrap\",\n // height: 'h',\n lh: \"lineHeight\",\n ls: \"letterSpacing\",\n o: \"opacity\",\n ov: \"overflow\",\n ox: \"overflowX\",\n oy: \"overflowY\",\n pe: \"pointerEvents\",\n pos: \"position\",\n td: \"textDecorationLine\",\n tr: \"transform\",\n tt: \"textTransform\",\n va: \"verticalAlign\",\n wb: \"wordBreak\",\n // width: 'w',\n ws: \"whiteSpace\",\n ww: \"wordWrap\"\n};\nexport {\n createTamagui,\n installTamaguiConfig\n};\n//# sourceMappingURL=createTamagui.js.map\n"],"mappings":";;;;;;;;;;;;;;AAYA,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,IAAI,yCAAyC,IAAI,IAAI;CACnD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,SAAS,6BAA6B,UAAU;CAC9C,IAAI,kCAAkC,IAAI,IAAI;EAC5C;EACA;EACA;CACF,CAAC;CACD,OAAO,gBAAgB,IAAI,QAAQ;AACrC;AACA,SAAS,wBAAwB,QAAQ;CACvC,UAAU,MAAM;CAChB,eAAe,MAAM;AACvB;AACA,SAAS,qBAAqB,QAAQ;CACpC,UAAU,OAAO,YAAY;CAC7B,wBAAwB,MAAM;CAC9B,OAAO;AACT;AACA,SAAS,mBAAmB,UAAU;CACpC,IAAI,SAAS,gBAAgB,YAAY,CAAC,CAAC;CAC3C,KAAK,IAAI,KAAK,GAAG,QAAQ;EACvB;EACA;EACA;EACA;EACA;CACF,GAAG,KAAK,MAAM,QAAQ,MAAM;EAC1B,IAAI,WAAW,MAAM;EACrB,IAAI,SAAS;EACb,CAAC,UAAU,QAAQ,YAAY,cAAc,QAAQ,aAAa,CAAC;CACrE;CACA,OAAO;AACT;AACA,SAAS,2BAA2B,QAAQ;CAC1C,IAAI,QAAQ,OAAO,KAAK,MAAM;CAC9B,IAAI,MAAM,WAAW,GAAG,OAAO;CAC/B,OAAO,MAAM,MAAM,SAAS,MAAM;EAChC,IAAI,QAAQ,OAAO;EACnB,IAAI,CAAC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,6BAA6B,UAAU,UAAU,MAAM;IAC1D,UAAU,OAAO;GACnB;EACF,UAAU;GACR,IAAI,mBAAmB;IACrB,MAAM;GACR;EACF;CACF;CACA,OAAO;AACT;AACA,IAAI,oBAAoB;CACtB,MAAM;CACN,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,IAAI;CACJ,KAAK;CACL,MAAM;CACN,MAAM;CACN,KAAK;CACL,KAAK;CACL,IAAI;CACJ,KAAK;CACL,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,KAAK;CAEL,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CAEJ,IAAI;CACJ,IAAI;AACN"}
@@ -1,6 +1,6 @@
1
1
  import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from "@tamagui/constants";
2
2
  import { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from "@tamagui/helpers";
3
- import { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, compareClausePrecedence, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from "@tamagui/style-grammar/runtime";
3
+ import { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from "@tamagui/style-grammar/runtime";
4
4
  import { isVariable } from "../createVariable.mjs";
5
5
  import { mediaKeyMatch } from "../hooks/useMedia.mjs";
6
6
  import { warnOnce, warnRefusedValue } from "./warnOnce.mjs";
@@ -17,12 +17,6 @@ import { resolveVariableValue } from "./resolveVariableValue.mjs";
17
17
  import { THEME_REF_PREFIX } from "./themeRef.mjs";
18
18
  import { transformsToString } from "./transformsToString.mjs";
19
19
 
20
- const baseClausePrecedence = [
21
- 0,
22
- 0,
23
- 0,
24
- 0
25
- ];
26
20
  const stateSelectors = {
27
21
  hover: ":hover",
28
22
  press: ":active",
@@ -343,7 +337,7 @@ function configuredValue(state, property, raw) {
343
337
  opacity = amount;
344
338
  }
345
339
  }
346
- const safeArea = resolveSafeAreaVariable(name);
340
+ const safeArea = process.env.TAMAGUI_RUNTIME_SAFE_AREA === "disabled" ? void 0 : resolveSafeAreaVariable(name);
347
341
  if (safeArea !== void 0) {
348
342
  state.flatUsesSafeArea = true;
349
343
  return safeArea;
@@ -442,7 +436,7 @@ function directAtomic(state, property, value, condition, isDefault = false) {
442
436
  if (slotted) atomic.conditions = { [atomicKey === "transition" ? `${condition?.key || ""}\0${property}` : condition.key]: {
443
437
  count: nextRules.length,
444
438
  index: 0,
445
- precedence: condition?.precedence ?? baseClausePrecedence,
439
+ precedence: condition?.precedence ?? 0,
446
440
  default: isDefault
447
441
  } };
448
442
  atomics[atomicKey] = atomic;
@@ -475,12 +469,12 @@ function directAtomic(state, property, value, condition, isDefault = false) {
475
469
  }
476
470
  delete existing.conditions[slot];
477
471
  }
478
- const precedence = condition?.precedence ?? baseClausePrecedence;
472
+ const precedence = condition?.precedence ?? 0;
479
473
  let insertionIndex = rules.length;
480
474
  if (existing.conditions) {
481
475
  for (const key in existing.conditions) {
482
476
  const entry = existing.conditions[key];
483
- if (compareClausePrecedence(entry.precedence, precedence) > 0 && entry.index < insertionIndex) insertionIndex = entry.index;
477
+ if (entry.precedence > precedence && entry.index < insertionIndex) insertionIndex = entry.index;
484
478
  }
485
479
  for (const key in existing.conditions) {
486
480
  const entry = existing.conditions[key];
@@ -559,7 +553,7 @@ function emitProperty(state, property, value, condition, merge, originalValue, c
559
553
  if (condition) {
560
554
  if (!condition.active) return;
561
555
  const previous = direct.flatPrecedence?.[property];
562
- if (previous && compareClausePrecedence(condition.precedence, previous) < 0) return;
556
+ if (previous !== void 0 && condition.precedence < previous) return;
563
557
  (direct.flatPrecedence ||= {})[property] = condition.precedence;
564
558
  (state.flatActiveConditions ||= {})[property] = true;
565
559
  } else if (state.flatActiveConditions?.[property]) return;
@@ -800,6 +794,10 @@ function emitSegment(state, property, source, start, end, condition, merge, orig
800
794
  return true;
801
795
  }
802
796
  function contributeStyleString(state, property, source, merge, originalValue, contextOnly = false) {
797
+ if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled") {
798
+ emitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);
799
+ return true;
800
+ }
803
801
  if (isWeb && source.indexOf(":") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {
804
802
  if (process.env.NODE_ENV === "development") warnOnce(`conditional "${property}" needs its composite property; dropping it`);
805
803
  return true;
@@ -865,6 +863,7 @@ function contributeStyleString(state, property, source, merge, originalValue, co
865
863
  return true;
866
864
  }
867
865
  function contributeFrontendValue(state, property, value, merge, contextOnly = false) {
866
+ if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled") return false;
868
867
  if (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);
869
868
  for (const clause of value.clauses) {
870
869
  const condition = getCondition(state, clause.modifiers.join(":"));
@@ -873,6 +872,7 @@ function contributeFrontendValue(state, property, value, merge, contextOnly = fa
873
872
  return true;
874
873
  }
875
874
  function contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue, contextOnly = false) {
875
+ if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled") return;
876
876
  const condition = getCondition(state, conditionSource);
877
877
  if (!condition) {
878
878
  if (process.env.NODE_ENV === "development") warnRefusedValue(property, value, `unknown modifier "${conditionSource}"`);
@@ -882,7 +882,7 @@ function contributeVariantClauseValue(state, property, value, conditionSource, m
882
882
  if (condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);
883
883
  }
884
884
  function contributeStyleValue(state, property, value, merge, originalValue, contextOnly = false) {
885
- if (value === "safe" && isSafeAreaKey(property)) {
885
+ if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && value === "safe" && isSafeAreaKey(property)) {
886
886
  const expanded = expandSafeAreaValue(property);
887
887
  if (expanded) {
888
888
  state.flatUsesSafeArea = true;
@@ -1 +1 @@
1
- {"version":3,"file":"directStyle.js","names":[],"sources":["esm/helpers/directStyle.js"],"sourcesContent":["import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from \"@tamagui/helpers\";\nimport { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, compareClausePrecedence, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { mediaKeyMatch } from \"../hooks/useMedia\";\nimport { warnOnce, warnRefusedValue } from \"./warnOnce\";\nimport { expandStyle } from \"./expandStyle\";\nimport { getCSSStyleAtomic } from \"./getCSSStylesAtomic\";\nimport { isColorStyleKey } from \"./getDynamicVal\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { mediaObjectToString } from \"./mediaObjectToString\";\nimport { normalizeColor } from \"./normalizeColor\";\nimport { getTokenCategoryForProperty, tokenCategoryByProperty } from \"./tokenCategories\";\nimport { resolveSafeAreaVariable } from \"./resolveSafeAreaVariable\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { THEME_REF_PREFIX } from \"./themeRef\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst baseClausePrecedence = [\n\t0,\n\t0,\n\t0,\n\t0\n];\nconst stateSelectors = {\n\thover: \":hover\",\n\tpress: \":active\",\n\tfocus: \":focus\",\n\t\"focus-visible\": \":focus-visible\",\n\t\"focus-within\": \":focus-within\",\n\tdisabled: \"[aria-disabled]\",\n\topen: \"[data-state=\\\"open\\\"]\",\n\tchecked: \"[data-state=\\\"checked\\\"]\",\n\thighlighted: \"[data-highlighted]\",\n\tselected: \"[data-state=\\\"active\\\"]\",\n\tinvalid: \"[aria-invalid=\\\"true\\\"]\"\n};\nconst legacyTransformParts = /* @__PURE__ */ new Set([\n\t\"matrix\",\n\t\"perspective\",\n\t\"rotateX\",\n\t\"rotateY\",\n\t\"rotateZ\",\n\t\"scaleZ\",\n\t\"skewX\",\n\t\"skewY\"\n]);\nconst webShadowParts = /* @__PURE__ */ new Set([\n\t\"shadowColor\",\n\t\"shadowOffset\",\n\t\"shadowOpacity\",\n\t\"shadowRadius\"\n]);\nconst webTextShadowParts = /* @__PURE__ */ new Set([\n\t\"textShadowColor\",\n\t\"textShadowOffset\",\n\t\"textShadowRadius\"\n]);\nconst lineStyles = /* @__PURE__ */ new Set([\n\t\"none\",\n\t\"hidden\",\n\t\"dotted\",\n\t\"dashed\",\n\t\"solid\",\n\t\"double\",\n\t\"groove\",\n\t\"ridge\",\n\t\"inset\",\n\t\"outset\"\n]);\nconst borderTargets = {\n\tborder: {\n\t\twidth: [\n\t\t\t\"borderTopWidth\",\n\t\t\t\"borderRightWidth\",\n\t\t\t\"borderBottomWidth\",\n\t\t\t\"borderLeftWidth\"\n\t\t],\n\t\tstyle: [\n\t\t\t\"borderTopStyle\",\n\t\t\t\"borderRightStyle\",\n\t\t\t\"borderBottomStyle\",\n\t\t\t\"borderLeftStyle\"\n\t\t],\n\t\tcolor: [\n\t\t\t\"borderTopColor\",\n\t\t\t\"borderRightColor\",\n\t\t\t\"borderBottomColor\",\n\t\t\t\"borderLeftColor\"\n\t\t]\n\t},\n\tborderTop: {\n\t\twidth: [\"borderTopWidth\"],\n\t\tstyle: [\"borderTopStyle\"],\n\t\tcolor: [\"borderTopColor\"]\n\t},\n\tborderRight: {\n\t\twidth: [\"borderRightWidth\"],\n\t\tstyle: [\"borderRightStyle\"],\n\t\tcolor: [\"borderRightColor\"]\n\t},\n\tborderBottom: {\n\t\twidth: [\"borderBottomWidth\"],\n\t\tstyle: [\"borderBottomStyle\"],\n\t\tcolor: [\"borderBottomColor\"]\n\t},\n\tborderLeft: {\n\t\twidth: [\"borderLeftWidth\"],\n\t\tstyle: [\"borderLeftStyle\"],\n\t\tcolor: [\"borderLeftColor\"]\n\t},\n\toutline: {\n\t\twidth: [\"outlineWidth\"],\n\t\tstyle: [\"outlineStyle\"],\n\t\tcolor: [\"outlineColor\"]\n\t},\n\tborderBlock: {\n\t\twidth: [\"borderBlockStartWidth\", \"borderBlockEndWidth\"],\n\t\tstyle: [\"borderBlockStartStyle\", \"borderBlockEndStyle\"],\n\t\tcolor: [\"borderBlockStartColor\", \"borderBlockEndColor\"]\n\t},\n\tborderInline: {\n\t\twidth: [\"borderInlineStartWidth\", \"borderInlineEndWidth\"],\n\t\tstyle: [\"borderInlineStartStyle\", \"borderInlineEndStyle\"],\n\t\tcolor: [\"borderInlineStartColor\", \"borderInlineEndColor\"]\n\t}\n};\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nconst mediaQueries = /* @__PURE__ */ new WeakMap();\nconst clausePrecedenceOrders = /* @__PURE__ */ new WeakMap();\nfunction queryFor(state, name) {\n\tlet queries = mediaQueries.get(state.conf);\n\tif (!queries) {\n\t\tqueries = {};\n\t\tconst media = state.conf.media || {};\n\t\tfor (const key in media) queries[key] = mediaObjectToString(media[key]);\n\t\tmediaQueries.set(state.conf, queries);\n\t}\n\treturn queries[name];\n}\nfunction precedenceOrderFor(state) {\n\tlet order = clausePrecedenceOrders.get(state.conf);\n\tif (!order) {\n\t\torder = createClausePrecedenceOrder(state.conf.media);\n\t\tclausePrecedenceOrders.set(state.conf, order);\n\t}\n\treturn order;\n}\nfunction stateIsActive(state, name) {\n\tconst component = state.componentState;\n\tif (name === \"hover\") return !!component.hover;\n\tif (name === \"press\") return !!(component.press || component.pressIn);\n\tif (name === \"focus\") return !!component.focus;\n\tif (name === \"focus-visible\") return !!component.focusVisible;\n\tif (name === \"focus-within\") return !!component.focusWithin;\n\tif (name === \"disabled\") return !!(component.disabled || state.props.disabled);\n\tif (name === \"enter\") return !!component.unmounted;\n\tif (name === \"exit\") return !!state.styleProps.isExiting;\n\treturn false;\n}\nfunction platformMatches(name) {\n\tif (name === \"web\") return isWeb;\n\tif (name === \"native\") return !isWeb;\n\tif (name === \"ios\") return isIos;\n\tif (name === \"android\") return isAndroid;\n\tif (name === \"tvos\") return isIos && isTV;\n\tif (name === \"androidtv\") return isAndroid && isTV;\n\treturn name === \"tv\" && isTV;\n}\nfunction groupCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst stateName = modifier.slice(6, slash === -1 ? void 0 : slash);\n\tconst groupName = slash === -1 ? \"true\" : modifier.slice(slash + 1);\n\tconst selector = stateSelectors[stateName];\n\tif (!selector || !groupName) return false;\n\tout.selector += `:where(.t_group_${groupName}${selector} *)`;\n\tif (stateName === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\tconst component = state.componentState.group?.[groupName];\n\tconst context = state.flatGroupContext?.[groupName];\n\tout.active &&= !!(component?.pseudo ?? context?.state.pseudo)?.[stateName];\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(groupName);\n\treturn true;\n}\nfunction containerCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst size = modifier.slice(1, slash === -1 ? void 0 : slash);\n\tconst name = slash === -1 ? null : modifier.slice(slash + 1);\n\tconst query = queryFor(state, size);\n\tif (!query || name !== null && !name) return false;\n\tconst key = name === null ? \"@\" : `@${name}`;\n\t(out.wrappers ||= []).push(name === null ? `@container ${query}` : `@container ${name} ${query}`);\n\tconst component = state.componentState.group?.[key];\n\tconst context = state.flatGroupContext?.[key];\n\tconst active = component?.media?.[size];\n\tout.active &&= active === void 0 ? !!(context?.state.layout && mediaKeyMatch(size, context.state.layout)) : !!active;\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(key);\n\t(state.flatGroupMedia ||= /* @__PURE__ */ new Set()).add(size);\n\treturn true;\n}\nfunction getCondition(state, source) {\n\tconst out = {\n\t\tkey: \"\",\n\t\tactive: true,\n\t\temit: true,\n\t\tselector: \"\"\n\t};\n\tconst canonical = [];\n\tconst kinds = [];\n\tconst seenModifiers = /* @__PURE__ */ new Set();\n\tlet selfStateSpecificity = 0;\n\tlet start = 0;\n\tfor (let index = 0; index <= source.length; index++) {\n\t\tif (index !== source.length && source.charCodeAt(index) !== 58) continue;\n\t\tlet modifier = canonicalClauseModifier(source.slice(start, index));\n\t\tstart = index + 1;\n\t\tif (!modifier) return null;\n\t\tif (seenModifiers.has(modifier)) continue;\n\t\tseenModifiers.add(modifier);\n\t\tif (modifier.startsWith(\"group-\")) {\n\t\t\tif (!groupCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"group\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier.charCodeAt(0) === 64) {\n\t\t\tif (!containerCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"container\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in stateSelectors || modifier === \"enter\" || modifier === \"exit\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"state\");\n\t\t\tselfStateSpecificity++;\n\t\t\tconst selector = stateSelectors[modifier];\n\t\t\tif (!isWeb && modifier !== \"hover\" && modifier !== \"press\" && modifier !== \"focus\" && modifier !== \"focus-visible\" && modifier !== \"focus-within\" && modifier !== \"disabled\" && modifier !== \"enter\" && modifier !== \"exit\") out.unsupportedState = modifier;\n\t\t\tif (modifier === \"enter\" || modifier === \"exit\") {\n\t\t\t\tconst cls = modifier === \"enter\" ? \".t_unmounted\" : \".t_exiting\";\n\t\t\t\tout.selector += `:is(${cls}, ${cls} *)`;\n\t\t\t\tout[modifier] = true;\n\t\t\t} else if (selector) out.selector += selector;\n\t\t\tif (modifier === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\t\t\tout.active &&= stateIsActive(state, modifier);\n\t\t\tif (modifier === \"hover\" || modifier === \"press\" || modifier === \"focus\" || modifier === \"focus-visible\" || modifier === \"focus-within\") (state.flatStateKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in (state.conf.media || {})) {\n\t\t\tconst query = queryFor(state, modifier);\n\t\t\tif (!query) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"media\");\n\t\t\t(out.wrappers ||= []).push(`@media ${query}`);\n\t\t\tout.active &&= !!state.flatMediaState?.[modifier];\n\t\t\t(state.flatMediaKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (isRootThemeName(modifier) && modifier in (state.conf.themes || {})) {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"theme\");\n\t\t\tout.theme = modifier;\n\t\t\tout.selector += `:where(.t_${modifier}, .t_${modifier} *)`;\n\t\t\tout.active &&= state.flatThemeName === modifier || state.flatThemeName?.startsWith(`${modifier}_`) === true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier === \"web\" || modifier === \"native\" || modifier === \"ios\" || modifier === \"android\" || modifier === \"tv\" || modifier === \"tvos\" || modifier === \"androidtv\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"platform\");\n\t\t\tconst matches = platformMatches(modifier);\n\t\t\tout.active &&= matches;\n\t\t\tout.emit &&= matches;\n\t\t\tcontinue;\n\t\t}\n\t\treturn null;\n\t}\n\tout.key = clauseConditionSetKey(canonical);\n\tout.precedence = getClausePrecedenceKeyFromKinds(canonical, kinds, precedenceOrderFor(state));\n\tout.classRepetitions = clauseSubjectClassRepetitions(out.precedence, selfStateSpecificity);\n\treturn out;\n}\nconst tokenLookup = {\n\tvalue: void 0,\n\tfromTheme: false,\n\tthemeKey: \"\"\n};\nfunction fillTokenLookup(value, fromTheme, themeKey) {\n\ttokenLookup.value = value;\n\ttokenLookup.fromTheme = fromTheme;\n\ttokenLookup.themeKey = themeKey;\n\treturn tokenLookup;\n}\nfunction tokenVariable(state, property, name) {\n\tlet lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;\n\tif (property === \"fontFamily\") {\n\t\tconst family = state.conf.fontsParsed[lookupName]?.family;\n\t\treturn family ? fillTokenLookup(family, false, lookupName) : void 0;\n\t}\n\tconst fontKey = property === \"fontSize\" ? \"size\" : property === \"fontWeight\" ? \"weight\" : property === \"lineHeight\" || property === \"letterSpacing\" ? property : void 0;\n\tif (fontKey) {\n\t\tconst value = (state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken])?.[fontKey]?.[lookupName];\n\t\treturn value ? fillTokenLookup(value, false, lookupName) : void 0;\n\t}\n\tconst category = getTokenCategoryForProperty(property);\n\tconst dot = lookupName.indexOf(\".\");\n\tif (dot !== -1) {\n\t\tconst prefix = lookupName.slice(0, dot);\n\t\tif (!category || prefix === category || prefix === \"color\") lookupName = lookupName.slice(dot + 1);\n\t}\n\tif (category) {\n\t\tconst own = state.conf.tokensParsed[category]?.[lookupName];\n\t\tif (own) return fillTokenLookup(own, false, lookupName);\n\t\tfor (const sibling of [\n\t\t\t\"color\",\n\t\t\t\"space\",\n\t\t\t\"size\",\n\t\t\t\"radius\",\n\t\t\t\"zIndex\"\n\t\t]) if (sibling !== category && state.conf.tokensParsed[sibling]?.[lookupName]) return;\n\t} else {\n\t\tconst first = lookupName.charCodeAt(0);\n\t\tif (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;\n\t}\n\tconst theme = state.theme?.[lookupName] || state.conf.themes?.[state.flatThemeName || \"\"]?.[lookupName];\n\tif (theme) return fillTokenLookup(theme, true, lookupName);\n\tif (category) return;\n\tconst token = state.conf.tokensParsed.space?.[lookupName] || state.conf.tokensParsed.color?.[lookupName];\n\treturn token ? fillTokenLookup(token, false, lookupName) : void 0;\n}\nfunction configuredValue(state, property, raw) {\n\tlet name = raw;\n\tlet opacity;\n\tconst slash = raw.lastIndexOf(\"/\");\n\tif (slash > 0) {\n\t\tconst amount = Number(raw.slice(slash + 1));\n\t\tif (Number.isInteger(amount) && amount >= 0 && amount <= 100) {\n\t\t\tname = raw.slice(0, slash);\n\t\t\topacity = amount;\n\t\t}\n\t}\n\tconst safeArea = resolveSafeAreaVariable(name);\n\tif (safeArea !== void 0) {\n\t\tstate.flatUsesSafeArea = true;\n\t\treturn safeArea;\n\t}\n\tconst lookup = tokenVariable(state, property, name);\n\tif (!lookup || !isVariable(lookup.value)) {\n\t\tif (process.env.NODE_ENV === \"development\" && tokenCategoryByProperty[property] && state.conf.tokensParsed.color?.[name]) warnOnce(`\"${name}\" contributes to \"color\", not \"${property}\"; keeping it literal`);\n\t\treturn raw;\n\t}\n\tconst resolveValues = isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues;\n\tif (resolveValues === \"except-theme\" && lookup.fromTheme) return `${THEME_REF_PREFIX}${lookup.themeKey}${opacity !== void 0 ? `/${opacity}` : \"\"}`;\n\tlet value = resolveVariableValue(property, lookup.value, resolveValues);\n\tif (opacity !== void 0) value = isWeb ? `color-mix(in srgb, ${value} ${opacity}%, transparent)` : normalizeColor(value, opacity / 100);\n\treturn value;\n}\nconst letterFreeCallPattern = /^[A-Za-z-]+\\([^A-Za-z]*\\)$/;\nfunction resolveEmbeddedTokens(state, property, raw) {\n\tif (letterFreeCallPattern.test(raw)) return raw;\n\treturn raw.replace(/[$A-Za-z_][\\w.$-]*(?:\\/\\d+)?/g, (word, index) => {\n\t\tif (word.charCodeAt(0) !== 36) {\n\t\t\tconst before = raw.charCodeAt(index - 1);\n\t\t\tif (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(index - 2) === 45 || raw.charCodeAt(index + word.length) === 40) return word;\n\t\t}\n\t\tconst value = configuredValue(state, property, word);\n\t\treturn value === word ? word : String(value);\n\t});\n}\nfunction normalizeTransitionNames(state, raw) {\n\tlet quote = 0;\n\tlet depth = 0;\n\tlet copyFrom = 0;\n\tlet out = \"\";\n\tfor (let index = 0; index < raw.length; index++) {\n\t\tconst code = raw.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) {\n\t\t\tquote = code;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 40) {\n\t\t\tdepth++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 41) {\n\t\t\tdepth--;\n\t\t\tcontinue;\n\t\t}\n\t\tif (depth || !(code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) || index > 1 && raw.charCodeAt(index - 1) === 45 && raw.charCodeAt(index - 2) === 45) continue;\n\t\tlet end = index + 1;\n\t\twhile (end < raw.length) {\n\t\t\tconst next = raw.charCodeAt(end);\n\t\t\tif (next >= 48 && next <= 57 || next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 45 || next === 95) end++;\n\t\t\telse break;\n\t\t}\n\t\tif (raw.charCodeAt(end) !== 40) {\n\t\t\tconst authored = raw.slice(index, end);\n\t\t\tlet property = state.conf.shorthands[authored] || authored;\n\t\t\tif (property === \"x\" || property === \"y\") property = \"translate\";\n\t\t\telse if (property === \"scaleX\" || property === \"scaleY\") property = \"scale\";\n\t\t\telse if (legacyTransformParts.has(property)) property = \"transform\";\n\t\t\tif (property !== authored || /[A-Z]/.test(property)) {\n\t\t\t\tout += raw.slice(copyFrom, index);\n\t\t\t\tout += property.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n\t\t\t\tcopyFrom = end;\n\t\t\t}\n\t\t}\n\t\tindex = end - 1;\n\t}\n\treturn copyFrom ? out + raw.slice(copyFrom) : raw;\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nfunction directAtomic(state, property, value, condition, isDefault = false) {\n\tconst atomics = state.flatAtomics ||= {};\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : property;\n\tconst existing = atomics[atomicKey];\n\tconst contribution = directStyleSignature(property, value, condition?.key || \"\");\n\tconst signature = existing ? existing.signature + contribution : contribution;\n\tconst next = getCSSStyleAtomic(property, value, condition?.selector, condition?.wrappers, signature, true, atomicKey, condition?.classRepetitions);\n\tif (!next) return;\n\tconst identifier = next[StyleObjectIdentifier];\n\tconst nextRules = next[StyleObjectRules];\n\tconst slotted = condition || atomicKey === \"transition\";\n\tif (!existing) {\n\t\tconst atomic = {\n\t\t\tbaseRules: slotted ? 0 : nextRules.length,\n\t\t\tconditions: void 0,\n\t\t\tsignature,\n\t\t\tstyleObject: next\n\t\t};\n\t\tif (slotted) atomic.conditions = { [atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key]: {\n\t\t\tcount: nextRules.length,\n\t\t\tindex: 0,\n\t\t\tprecedence: condition?.precedence ?? baseClausePrecedence,\n\t\t\tdefault: isDefault\n\t\t} };\n\t\tatomics[atomicKey] = atomic;\n\t} else {\n\t\tconst previousIdentifier = existing.styleObject[StyleObjectIdentifier];\n\t\tconst rules = existing.styleObject[StyleObjectRules];\n\t\tif (!condition && !isDefault && existing.conditions) for (const key in existing.conditions) {\n\t\t\tconst entry = existing.conditions[key];\n\t\t\tif (!entry.default) continue;\n\t\t\trules.splice(entry.index, entry.count);\n\t\t\tdelete existing.conditions[key];\n\t\t\tfor (const otherKey in existing.conditions) {\n\t\t\t\tconst other = existing.conditions[otherKey];\n\t\t\t\tif (other.index > entry.index) other.index -= entry.count;\n\t\t\t}\n\t\t}\n\t\tif (previousIdentifier !== identifier) {\n\t\t\tconst oldSelector = `.${previousIdentifier}`;\n\t\t\tconst newSelector = `.${identifier}`;\n\t\t\tfor (let index = 0; index < rules.length; index++) rules[index] = rules[index].replaceAll(oldSelector, newSelector);\n\t\t}\n\t\tif (slotted) {\n\t\t\tconst slot = atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key;\n\t\t\tconst previous = existing.conditions?.[slot];\n\t\t\tif (previous) {\n\t\t\t\trules.splice(previous.index, previous.count);\n\t\t\t\tif (existing.conditions) for (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry !== previous && entry.index > previous.index) entry.index -= previous.count;\n\t\t\t\t}\n\t\t\t\tdelete existing.conditions[slot];\n\t\t\t}\n\t\t\tconst precedence = condition?.precedence ?? baseClausePrecedence;\n\t\t\tlet insertionIndex = rules.length;\n\t\t\tif (existing.conditions) {\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (compareClausePrecedence(entry.precedence, precedence) > 0 && entry.index < insertionIndex) insertionIndex = entry.index;\n\t\t\t\t}\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry.index >= insertionIndex) entry.index += nextRules.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\t(existing.conditions ||= {})[slot] = {\n\t\t\t\tcount: nextRules.length,\n\t\t\t\tindex: insertionIndex,\n\t\t\t\tprecedence,\n\t\t\t\tdefault: isDefault\n\t\t\t};\n\t\t\trules.splice(insertionIndex, 0, ...nextRules);\n\t\t} else {\n\t\t\tconst difference = nextRules.length - existing.baseRules;\n\t\t\trules.splice(0, existing.baseRules, ...nextRules);\n\t\t\tif (difference && existing.conditions) for (const key in existing.conditions) existing.conditions[key].index += difference;\n\t\t\texisting.baseRules = nextRules.length;\n\t\t}\n\t\texisting.signature = signature;\n\t\texisting.styleObject[StyleObjectIdentifier] = identifier;\n\t\texisting.styleObject[1] = next[1];\n\t}\n\tstate.classNames[atomicKey] = identifier;\n}\nfunction emitBorderStyleDefault(state, property, condition) {\n\tif (!isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst atomic = state.flatAtomics?.[target];\n\tif (atomic?.baseRules || state.classNames[target] && !atomic || condition && atomic?.conditions?.[condition.key]) return;\n\tdirectAtomic(state, target, \"solid\", condition, true);\n}\nfunction flushDirectStyles(state, clear = false) {\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property].styleObject;\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nfunction getDirectDynamicThemeAccess(state) {\n\treturn state.flatDynamicThemeAccess;\n}\nfunction emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {\n\tconst direct = state;\n\tif (condition?.enter) (state.flatEnterKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (condition?.exit) (state.flatExitKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (!isWeb && condition?.theme) {\n\t\tif (supportsDynamicColorIOS && isColorStyleKey(property)) {\n\t\t\tconst schemes = (direct.flatDynamicColors ||= {})[property] ||= {};\n\t\t\tschemes[condition.theme] = typeof originalValue === \"string\" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;\n\t\t\tmerge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);\n\t\t\treturn;\n\t\t}\n\t\tdirect.flatDynamicThemeAccess = true;\n\t}\n\tif (contextOnly) {\n\t\tif (!condition || condition.active) (state.overriddenContextProps ||= {})[property] = originalValue;\n\t\treturn;\n\t}\n\tconst shouldPromoteAnimatedStyle = isWeb && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && !state.animationDriver?.isReactNative && property in nonAnimatableStyleProps;\n\tif (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {\n\t\tif (!condition) {\n\t\t\tif (state.style) delete state.style[property];\n\t\t}\n\t\tdirectAtomic(state, property, value, condition);\n\t\treturn;\n\t}\n\tif (condition) {\n\t\tif (!condition.active) return;\n\t\tconst previous = direct.flatPrecedence?.[property];\n\t\tif (previous && compareClausePrecedence(condition.precedence, previous) < 0) return;\n\t\t(direct.flatPrecedence ||= {})[property] = condition.precedence;\n\t\t(state.flatActiveConditions ||= {})[property] = true;\n\t} else if (state.flatActiveConditions?.[property]) return;\n\tmerge(state, property, value, 1, true, originalValue);\n}\nfunction splitComponents(value) {\n\tconst parts = [];\n\tlet start = 0;\n\tlet quote = 0;\n\tlet depth = 0;\n\tfor (let index = 0; index <= value.length; index++) {\n\t\tconst code = index === value.length ? 32 : value.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) quote = code;\n\t\telse if (code === 40) depth++;\n\t\telse if (code === 41) depth--;\n\t\telse if (!depth && code <= 32) {\n\t\t\tif (index > start) parts.push(value.slice(start, index));\n\t\t\tstart = index + 1;\n\t\t}\n\t}\n\treturn parts;\n}\nfunction emitBorder(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb && (property === \"borderBlock\" || property === \"borderInline\")) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`RN has no logical border shorthand \"${property}\"; dropping it`);\n\t\treturn;\n\t}\n\tconst targets = borderTargets[property];\n\tlet width;\n\tlet style;\n\tlet color;\n\tfor (const part of splitComponents(raw)) {\n\t\tconst lower = part.toLowerCase();\n\t\tif (lineStyles.has(lower) || property === \"outline\" && lower === \"auto\") style = part;\n\t\telse if (lower === \"thin\" || lower === \"medium\" || lower === \"thick\" || /^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[a-z%]+)?$/i.test(part) || /^(?:calc|var|min|max|clamp)\\(/i.test(part)) width = part;\n\t\telse color = part;\n\t}\n\tif (style === \"none\" && width === void 0) width = \"0\";\n\tif (width !== void 0) for (const target of targets.width) emitResolved(state, target, width, condition, merge, originalValue, contextOnly);\n\tif (style !== void 0) {\n\t\tconst styleTargets = !isWeb && property === \"border\" ? [\"borderStyle\"] : targets.style;\n\t\tfor (const target of styleTargets) emitProperty(state, target, style, condition, merge, originalValue, contextOnly);\n\t}\n\tif (color !== void 0) for (const target of targets.color) emitResolved(state, target, color, condition, merge, originalValue, contextOnly);\n}\nfunction emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly) {\n\tfor (const part of splitComponents(raw)) emitResolved(state, part === \"solid\" || part === \"double\" || part === \"dotted\" || part === \"dashed\" || part === \"wavy\" ? \"textDecorationStyle\" : part === \"underline\" || part === \"overline\" || part === \"line-through\" || part === \"none\" ? \"textDecorationLine\" : \"textDecorationColor\", part, condition, merge, originalValue, contextOnly);\n}\nfunction addComposition(state, property) {\n\tif (state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tconst styleObject = getCSSStyleAtomic(property, value, \"\", void 0, void 0, true);\n\tconst identifier = styleObject[StyleObjectIdentifier];\n\tstyleObject[StyleObjectRules].unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction emitTransform(state, property, value, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb || !state.flatShouldDoClasses) {\n\t\tif (!isWeb && property === \"scale\") {\n\t\t\temitProperty(state, \"scaleX\", value, condition, merge, originalValue, contextOnly);\n\t\t\temitProperty(state, \"scaleY\", value, condition, merge, originalValue, contextOnly);\n\t\t} else emitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tconst targets = property === \"scale\" ? [\"--t-scale-x\", \"--t-scale-y\"] : [property === \"x\" ? \"--t-x\" : property === \"y\" ? \"--t-y\" : property === \"scaleX\" ? \"--t-scale-x\" : property === \"scaleY\" ? \"--t-scale-y\" : \"rotate\"];\n\tfor (const target of targets) {\n\t\tlet targetValue = value;\n\t\tif (typeof targetValue === \"number\") {\n\t\t\tif (target === \"--t-x\" || target === \"--t-y\") targetValue = `${targetValue}px`;\n\t\t\telse if (target === \"rotate\") targetValue = `${targetValue}deg`;\n\t\t}\n\t\temitProperty(state, target, targetValue, condition, merge, originalValue, contextOnly);\n\t\tif (target === \"--t-x\" || target === \"--t-y\") addComposition(state, \"translate\");\n\t\telse if (target.startsWith(\"--t-scale\")) addComposition(state, \"scale\");\n\t}\n}\nfunction emitResolved(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tlet value = configuredValue(state, property, raw);\n\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction shadowUnit(part) {\n\treturn typeof part === \"number\" ? `${part}px` : part || \"0px\";\n}\nfunction emitWebShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatWebShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.shadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tconst color = normalizeColor(shadow.shadowColor, shadow.shadowOpacity ?? 1);\n\tif (!color) return;\n\tconst next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;\n\temitProperty(state, \"boxShadow\", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, null, merge, originalValue, contextOnly);\n}\nfunction emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatTextShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.textShadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tif (!shadow.textShadowColor) return;\n\temitProperty(state, \"textShadow\", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, null, merge, originalValue, contextOnly);\n}\nfunction emitValue(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (typeof raw === \"string\") raw = raw.trim();\n\tif (isVariable(raw)) raw = resolveVariableValue(property, raw, isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues);\n\temitBorderStyleDefault(state, property, condition);\n\tif (typeof raw === \"string\" && (property === \"transition\" || property === \"transitionProperty\")) raw = normalizeTransitionNames(state, raw);\n\tif (legacyTransformParts.has(property)) {\n\t\tif (isWeb && state.flatShouldDoClasses && state.classNames.transform) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`legacy transform part \"${property}\" is dropped because \"transform\" owns the property`);\n\t\t\treturn;\n\t\t}\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (isWeb && state.flatShouldDoClasses && !condition) {\n\t\t\tconst direct = state;\n\t\t\t(direct.flatLegacyTransforms ||= {})[property] = value2;\n\t\t\temitProperty(state, \"transform\", transformsToString(Object.keys(direct.flatLegacyTransforms).sort().map((key) => ({ [key]: direct.flatLegacyTransforms[key] }))), null, merge, originalValue, contextOnly);\n\t\t} else if (condition && isWeb && state.flatShouldDoClasses) emitProperty(state, \"transform\", `${property}(${value2})`, condition, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webTextShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebTextShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && state.flatShouldDoClasses) {\n\t\tif (property === \"transform\") {\n\t\t\tconst direct = state;\n\t\t\tif (process.env.NODE_ENV === \"development\" && direct.flatLegacyTransforms) for (const part in direct.flatLegacyTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\tdirect.flatLegacyTransforms = void 0;\n\t\t\tif (state.flatTransforms) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") for (const part in state.flatTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\t\tstate.flatTransforms = void 0;\n\t\t\t}\n\t\t}\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"transform\" && Array.isArray(raw)) raw = transformsToString(raw);\n\tif (typeof raw === \"string\" && property in borderTargets) {\n\t\temitBorder(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"textDecoration\") {\n\t\temitTextDecoration(state, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"background\") {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length === 1 && !/^(?:url|image-set|.*gradient)\\(/i.test(parts[0])) {\n\t\t\temitResolved(state, \"backgroundColor\", parts[0], condition, merge, originalValue, contextOnly);\n\t\t\treturn;\n\t\t}\n\t\tif (!isWeb) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native background cannot represent \"${raw}\"; dropping it`);\n\t\t\treturn;\n\t\t}\n\t}\n\tif (property === \"x\" || property === \"y\" || property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" || property === \"rotate\") {\n\t\tlet value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value2 === \"string\" && !value2.startsWith(THEME_REF_PREFIX)) {\n\t\t\tif (property === \"rotate\" && !/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:deg|rad)$/i.test(value2)) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native transform \"${property}\" cannot represent \"${value2}\"; dropping it`);\n\t\t\t\tif (condition?.active && state.flatTransforms) delete state.flatTransforms[property];\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value2)) value2 = Number.parseFloat(value2);\n\t\t\telse if (Number.isFinite(Number(value2))) value2 = Number(value2);\n\t\t}\n\t\temitTransform(state, property, value2, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (isWeb && !state.flatShouldDoClasses && !condition && property === \"borderRadius\") {\n\t\tif (typeof raw === \"string\") emitResolved(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\telse emitProperty(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tlet value = raw;\n\tif (typeof raw === \"string\") {\n\t\tvalue = configuredValue(state, property, raw);\n\t\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\t}\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"boxShadow\" && !condition) state.flatBoxShadow = value;\n\tif (!isWeb && property === \"fontVariant\" && typeof value === \"string\") value = value.split(/[,\\s]+/).filter(Boolean);\n\tconst expanded = state.styleProps.noExpand ? null : expandStyle(property, value, state.conf.settings.styleCompat || \"web\");\n\tif (!expanded) {\n\t\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && expanded.length > 1) {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length > 0 && parts.length <= (expanded.length === 4 ? 4 : 2)) {\n\t\t\tfor (let index = 0; index < expanded.length; index++) {\n\t\t\t\tconst partIndex = index === 0 || parts.length === 1 ? 0 : index === 1 || index === 3 && parts.length < 4 ? 1 : index === 2 && parts.length < 3 ? 0 : index;\n\t\t\t\temitResolved(state, expanded[index][0], parts[partIndex], condition, merge, originalValue, contextOnly);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tfor (let index = 0; index < expanded.length; index++) emitProperty(state, expanded[index][0], expanded[index][1], condition, merge, originalValue, contextOnly);\n}\nfunction emitSegment(state, property, source, start, end, condition, merge, originalValue, contextOnly) {\n\twhile (start < end && source.charCodeAt(start) <= 32) start++;\n\twhile (end > start && source.charCodeAt(end - 1) <= 32) end--;\n\tif (start === end) return false;\n\tif (!condition || condition.emit && (condition.active || isWeb && state.flatShouldDoClasses || !isWeb && condition.theme && supportsDynamicColorIOS && isColorStyleKey(property))) {\n\t\tconst value = source.slice(start, end);\n\t\temitValue(state, property, value, condition, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeStyleString(state, property, source, merge, originalValue, contextOnly = false) {\n\tif (isWeb && source.indexOf(\":\") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`conditional \"${property}\" needs its composite property; dropping it`);\n\t\treturn true;\n\t}\n\tif (source.indexOf(\":\") === -1) {\n\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\treturn true;\n\t}\n\tconst conditions = [];\n\tconst starts = [];\n\tconst ends = [];\n\tlet pending = null;\n\tlet refused = \"\";\n\tlet lifecycle = false;\n\tscanFlatValue(source, {\n\t\tsegment(start, end, isBase) {\n\t\t\tif (start === end) {\n\t\t\t\tif (!isBase && !refused) refused = \"a conditional clause has no value\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconditions.push(pending);\n\t\t\tstarts.push(start);\n\t\t\tends.push(end);\n\t\t},\n\t\tchain(start, end) {\n\t\t\tif (refused) return false;\n\t\t\tconst next = getCondition(state, source.slice(start, end));\n\t\t\tif (!next) {\n\t\t\t\trefused = `unknown modifier \"${source.slice(start, end)}\"`;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && next.unsupportedState) warnOnce(`${property}: \"${next.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\t\t\tpending = next;\n\t\t\tlifecycle ||= !!(next.enter || next.exit);\n\t\t\treturn true;\n\t\t},\n\t\terror(code, index) {\n\t\t\tif (refused) return;\n\t\t\trefused = code === \"invalid-character\" ? `\"${source[index]}\" would end the declaration or rule` : code === \"unterminated-string\" ? \"an unterminated string\" : code === \"unterminated-comment\" ? \"an unterminated \\\"/*\\\" comment\" : code === \"stray-comment-close\" ? \"a stray \\\"*/\\\"\" : \"an unterminated \\\"(\\\"\";\n\t\t}\n\t});\n\tif (refused) {\n\t\tif (property === \"aspectRatio\") {\n\t\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, source, refused);\n\t\treturn true;\n\t}\n\tlet hasBase = false;\n\tlet lastPayloadStart = 0;\n\tfor (let index = 0; index < conditions.length; index++) {\n\t\tconst condition = conditions[index];\n\t\tlastPayloadStart = starts[index];\n\t\tconst emitted = emitSegment(state, property, source, starts[index], ends[index], condition, merge, originalValue, contextOnly);\n\t\tif (!condition && emitted) hasBase = true;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && !hasBase && conditions.length > 0 && (property in tokenCategories.color || property in tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) warnOnce(`${property}=\"${source}\" has multiple values after its first conditional. Write the base value before the first conditional.`);\n\tif ((!isWeb || !state.flatShouldDoClasses) && lifecycle && !hasBase) {\n\t\tconst value = property === \"opacity\" ? 1 : property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" ? 1 : property === \"rotate\" ? \"0deg\" : property === \"x\" || property === \"y\" ? 0 : null;\n\t\tif (value !== null) emitValue(state, property, value, null, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeFrontendValue(state, property, value, merge, contextOnly = false) {\n\tif (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);\n\tfor (const clause of value.clauses) {\n\t\tconst condition = getCondition(state, clause.modifiers.join(\":\"));\n\t\tif (condition && condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, clause.payload, condition, merge, clause.payload, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue, contextOnly = false) {\n\tconst condition = getCondition(state, conditionSource);\n\tif (!condition) {\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, value, `unknown modifier \"${conditionSource}\"`);\n\t\treturn;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && condition.unsupportedState) warnOnce(`${property}: \"${condition.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\tif (condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction contributeStyleValue(state, property, value, merge, originalValue, contextOnly = false) {\n\tif (value === \"safe\" && isSafeAreaKey(property)) {\n\t\tconst expanded = expandSafeAreaValue(property);\n\t\tif (expanded) {\n\t\t\tstate.flatUsesSafeArea = true;\n\t\t\tfor (const [key, resolved] of expanded) emitValue(state, key, resolved, null, merge, originalValue ?? value, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t}\n\tif (typeof value === \"string\") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);\n\tif (value != null) {\n\t\temitValue(state, property, value, null, merge, originalValue ?? value, contextOnly);\n\t\treturn true;\n\t}\n\treturn false;\n}\nfunction clearDirectStyle(state, property) {\n\tconst direct = state;\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : webShadowParts.has(property) ? \"boxShadow\" : webTextShadowParts.has(property) ? \"textShadow\" : legacyTransformParts.has(property) ? \"transform\" : property;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tdelete state.classNames[atomicKey];\n}\n\nexport { clearDirectStyle, contributeFrontendValue, contributeStyleString, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getCondition, getDirectDynamicThemeAccess, platformMatches };"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB;CAC5B;CACA;CACA;CACA;AACD;AACA,MAAM,iBAAiB;CACtB,OAAO;CACP,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;CACV,MAAM;CACN,SAAS;CACT,aAAa;CACb,UAAU;CACV,SAAS;AACV;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,iCAAiC,IAAI,IAAI;CAC9C;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,qCAAqC,IAAI,IAAI;CAClD;C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ACA,IAAI,OAAO,UAAU,UAAU,OAAO,sBAAsB,OAAO,UAAU,OAAO,OAAO,eAAe,WAAW;CACrH,IAAI,SAAS,MAAM;EAClB,UAAU,OAAO,UAAU,OAAO,MAAM,OAAO,iBAAiB,OAAO,WAAW;EAClF,OAAO;CACR;CACA,OAAO;AACR;AACA,SAAS,iBAAiB,OAAO,UAAU;CAC1C,MAAM,SAAS;CACf,MAAM,YAAY,SAAS,WAAW,YAAY,IAAI,eAAe,eAAe,IAAI,QAAQ,IAAI,cAAc,mBAAmB,IAAI,QAAQ,IAAI,eAAe,qBAAqB,IAAI,QAAQ,IAAI,cAAc;CACvN,IAAI,OAAO,aAAa,OAAO,OAAO,YAAY;CAClD,OAAO,MAAM,WAAW;AACzB"}
1
+ {"version":3,"file":"directStyle.js","names":[],"sources":["esm/helpers/directStyle.js"],"sourcesContent":["import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from \"@tamagui/helpers\";\nimport { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { mediaKeyMatch } from \"../hooks/useMedia\";\nimport { warnOnce, warnRefusedValue } from \"./warnOnce\";\nimport { expandStyle } from \"./expandStyle\";\nimport { getCSSStyleAtomic } from \"./getCSSStylesAtomic\";\nimport { isColorStyleKey } from \"./getDynamicVal\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { mediaObjectToString } from \"./mediaObjectToString\";\nimport { normalizeColor } from \"./normalizeColor\";\nimport { getTokenCategoryForProperty, tokenCategoryByProperty } from \"./tokenCategories\";\nimport { resolveSafeAreaVariable } from \"./resolveSafeAreaVariable\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { THEME_REF_PREFIX } from \"./themeRef\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst stateSelectors = {\n\thover: \":hover\",\n\tpress: \":active\",\n\tfocus: \":focus\",\n\t\"focus-visible\": \":focus-visible\",\n\t\"focus-within\": \":focus-within\",\n\tdisabled: \"[aria-disabled]\",\n\topen: \"[data-state=\\\"open\\\"]\",\n\tchecked: \"[data-state=\\\"checked\\\"]\",\n\thighlighted: \"[data-highlighted]\",\n\tselected: \"[data-state=\\\"active\\\"]\",\n\tinvalid: \"[aria-invalid=\\\"true\\\"]\"\n};\nconst legacyTransformParts = /* @__PURE__ */ new Set([\n\t\"matrix\",\n\t\"perspective\",\n\t\"rotateX\",\n\t\"rotateY\",\n\t\"rotateZ\",\n\t\"scaleZ\",\n\t\"skewX\",\n\t\"skewY\"\n]);\nconst webShadowParts = /* @__PURE__ */ new Set([\n\t\"shadowColor\",\n\t\"shadowOffset\",\n\t\"shadowOpacity\",\n\t\"shadowRadius\"\n]);\nconst webTextShadowParts = /* @__PURE__ */ new Set([\n\t\"textShadowColor\",\n\t\"textShadowOffset\",\n\t\"textShadowRadius\"\n]);\nconst lineStyles = /* @__PURE__ */ new Set([\n\t\"none\",\n\t\"hidden\",\n\t\"dotted\",\n\t\"dashed\",\n\t\"solid\",\n\t\"double\",\n\t\"groove\",\n\t\"ridge\",\n\t\"inset\",\n\t\"outset\"\n]);\nconst borderTargets = {\n\tborder: {\n\t\twidth: [\n\t\t\t\"borderTopWidth\",\n\t\t\t\"borderRightWidth\",\n\t\t\t\"borderBottomWidth\",\n\t\t\t\"borderLeftWidth\"\n\t\t],\n\t\tstyle: [\n\t\t\t\"borderTopStyle\",\n\t\t\t\"borderRightStyle\",\n\t\t\t\"borderBottomStyle\",\n\t\t\t\"borderLeftStyle\"\n\t\t],\n\t\tcolor: [\n\t\t\t\"borderTopColor\",\n\t\t\t\"borderRightColor\",\n\t\t\t\"borderBottomColor\",\n\t\t\t\"borderLeftColor\"\n\t\t]\n\t},\n\tborderTop: {\n\t\twidth: [\"borderTopWidth\"],\n\t\tstyle: [\"borderTopStyle\"],\n\t\tcolor: [\"borderTopColor\"]\n\t},\n\tborderRight: {\n\t\twidth: [\"borderRightWidth\"],\n\t\tstyle: [\"borderRightStyle\"],\n\t\tcolor: [\"borderRightColor\"]\n\t},\n\tborderBottom: {\n\t\twidth: [\"borderBottomWidth\"],\n\t\tstyle: [\"borderBottomStyle\"],\n\t\tcolor: [\"borderBottomColor\"]\n\t},\n\tborderLeft: {\n\t\twidth: [\"borderLeftWidth\"],\n\t\tstyle: [\"borderLeftStyle\"],\n\t\tcolor: [\"borderLeftColor\"]\n\t},\n\toutline: {\n\t\twidth: [\"outlineWidth\"],\n\t\tstyle: [\"outlineStyle\"],\n\t\tcolor: [\"outlineColor\"]\n\t},\n\tborderBlock: {\n\t\twidth: [\"borderBlockStartWidth\", \"borderBlockEndWidth\"],\n\t\tstyle: [\"borderBlockStartStyle\", \"borderBlockEndStyle\"],\n\t\tcolor: [\"borderBlockStartColor\", \"borderBlockEndColor\"]\n\t},\n\tborderInline: {\n\t\twidth: [\"borderInlineStartWidth\", \"borderInlineEndWidth\"],\n\t\tstyle: [\"borderInlineStartStyle\", \"borderInlineEndStyle\"],\n\t\tcolor: [\"borderInlineStartColor\", \"borderInlineEndColor\"]\n\t}\n};\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nconst mediaQueries = /* @__PURE__ */ new WeakMap();\nconst clausePrecedenceOrders = /* @__PURE__ */ new WeakMap();\nfunction queryFor(state, name) {\n\tlet queries = mediaQueries.get(state.conf);\n\tif (!queries) {\n\t\tqueries = {};\n\t\tconst media = state.conf.media || {};\n\t\tfor (const key in media) queries[key] = mediaObjectToString(media[key]);\n\t\tmediaQueries.set(state.conf, queries);\n\t}\n\treturn queries[name];\n}\nfunction precedenceOrderFor(state) {\n\tlet order = clausePrecedenceOrders.get(state.conf);\n\tif (!order) {\n\t\torder = createClausePrecedenceOrder(state.conf.media);\n\t\tclausePrecedenceOrders.set(state.conf, order);\n\t}\n\treturn order;\n}\nfunction stateIsActive(state, name) {\n\tconst component = state.componentState;\n\tif (name === \"hover\") return !!component.hover;\n\tif (name === \"press\") return !!(component.press || component.pressIn);\n\tif (name === \"focus\") return !!component.focus;\n\tif (name === \"focus-visible\") return !!component.focusVisible;\n\tif (name === \"focus-within\") return !!component.focusWithin;\n\tif (name === \"disabled\") return !!(component.disabled || state.props.disabled);\n\tif (name === \"enter\") return !!component.unmounted;\n\tif (name === \"exit\") return !!state.styleProps.isExiting;\n\treturn false;\n}\nfunction platformMatches(name) {\n\tif (name === \"web\") return isWeb;\n\tif (name === \"native\") return !isWeb;\n\tif (name === \"ios\") return isIos;\n\tif (name === \"android\") return isAndroid;\n\tif (name === \"tvos\") return isIos && isTV;\n\tif (name === \"androidtv\") return isAndroid && isTV;\n\treturn name === \"tv\" && isTV;\n}\nfunction groupCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst stateName = modifier.slice(6, slash === -1 ? void 0 : slash);\n\tconst groupName = slash === -1 ? \"true\" : modifier.slice(slash + 1);\n\tconst selector = stateSelectors[stateName];\n\tif (!selector || !groupName) return false;\n\tout.selector += `:where(.t_group_${groupName}${selector} *)`;\n\tif (stateName === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\tconst component = state.componentState.group?.[groupName];\n\tconst context = state.flatGroupContext?.[groupName];\n\tout.active &&= !!(component?.pseudo ?? context?.state.pseudo)?.[stateName];\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(groupName);\n\treturn true;\n}\nfunction containerCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst size = modifier.slice(1, slash === -1 ? void 0 : slash);\n\tconst name = slash === -1 ? null : modifier.slice(slash + 1);\n\tconst query = queryFor(state, size);\n\tif (!query || name !== null && !name) return false;\n\tconst key = name === null ? \"@\" : `@${name}`;\n\t(out.wrappers ||= []).push(name === null ? `@container ${query}` : `@container ${name} ${query}`);\n\tconst component = state.componentState.group?.[key];\n\tconst context = state.flatGroupContext?.[key];\n\tconst active = component?.media?.[size];\n\tout.active &&= active === void 0 ? !!(context?.state.layout && mediaKeyMatch(size, context.state.layout)) : !!active;\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(key);\n\t(state.flatGroupMedia ||= /* @__PURE__ */ new Set()).add(size);\n\treturn true;\n}\nfunction getCondition(state, source) {\n\tconst out = {\n\t\tkey: \"\",\n\t\tactive: true,\n\t\temit: true,\n\t\tselector: \"\"\n\t};\n\tconst canonical = [];\n\tconst kinds = [];\n\tconst seenModifiers = /* @__PURE__ */ new Set();\n\tlet selfStateSpecificity = 0;\n\tlet start = 0;\n\tfor (let index = 0; index <= source.length; index++) {\n\t\tif (index !== source.length && source.charCodeAt(index) !== 58) continue;\n\t\tlet modifier = canonicalClauseModifier(source.slice(start, index));\n\t\tstart = index + 1;\n\t\tif (!modifier) return null;\n\t\tif (seenModifiers.has(modifier)) continue;\n\t\tseenModifiers.add(modifier);\n\t\tif (modifier.startsWith(\"group-\")) {\n\t\t\tif (!groupCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"group\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier.charCodeAt(0) === 64) {\n\t\t\tif (!containerCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"container\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in stateSelectors || modifier === \"enter\" || modifier === \"exit\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"state\");\n\t\t\tselfStateSpecificity++;\n\t\t\tconst selector = stateSelectors[modifier];\n\t\t\tif (!isWeb && modifier !== \"hover\" && modifier !== \"press\" && modifier !== \"focus\" && modifier !== \"focus-visible\" && modifier !== \"focus-within\" && modifier !== \"disabled\" && modifier !== \"enter\" && modifier !== \"exit\") out.unsupportedState = modifier;\n\t\t\tif (modifier === \"enter\" || modifier === \"exit\") {\n\t\t\t\tconst cls = modifier === \"enter\" ? \".t_unmounted\" : \".t_exiting\";\n\t\t\t\tout.selector += `:is(${cls}, ${cls} *)`;\n\t\t\t\tout[modifier] = true;\n\t\t\t} else if (selector) out.selector += selector;\n\t\t\tif (modifier === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\t\t\tout.active &&= stateIsActive(state, modifier);\n\t\t\tif (modifier === \"hover\" || modifier === \"press\" || modifier === \"focus\" || modifier === \"focus-visible\" || modifier === \"focus-within\") (state.flatStateKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in (state.conf.media || {})) {\n\t\t\tconst query = queryFor(state, modifier);\n\t\t\tif (!query) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"media\");\n\t\t\t(out.wrappers ||= []).push(`@media ${query}`);\n\t\t\tout.active &&= !!state.flatMediaState?.[modifier];\n\t\t\t(state.flatMediaKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (isRootThemeName(modifier) && modifier in (state.conf.themes || {})) {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"theme\");\n\t\t\tout.theme = modifier;\n\t\t\tout.selector += `:where(.t_${modifier}, .t_${modifier} *)`;\n\t\t\tout.active &&= state.flatThemeName === modifier || state.flatThemeName?.startsWith(`${modifier}_`) === true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier === \"web\" || modifier === \"native\" || modifier === \"ios\" || modifier === \"android\" || modifier === \"tv\" || modifier === \"tvos\" || modifier === \"androidtv\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"platform\");\n\t\t\tconst matches = platformMatches(modifier);\n\t\t\tout.active &&= matches;\n\t\t\tout.emit &&= matches;\n\t\t\tcontinue;\n\t\t}\n\t\treturn null;\n\t}\n\tout.key = clauseConditionSetKey(canonical);\n\tout.precedence = getClausePrecedenceKeyFromKinds(canonical, kinds, precedenceOrderFor(state));\n\tout.classRepetitions = clauseSubjectClassRepetitions(out.precedence, selfStateSpecificity);\n\treturn out;\n}\nconst tokenLookup = {\n\tvalue: void 0,\n\tfromTheme: false,\n\tthemeKey: \"\"\n};\nfunction fillTokenLookup(value, fromTheme, themeKey) {\n\ttokenLookup.value = value;\n\ttokenLookup.fromTheme = fromTheme;\n\ttokenLookup.themeKey = themeKey;\n\treturn tokenLookup;\n}\nfunction tokenVariable(state, property, name) {\n\tlet lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;\n\tif (property === \"fontFamily\") {\n\t\tconst family = state.conf.fontsParsed[lookupName]?.family;\n\t\treturn family ? fillTokenLookup(family, false, lookupName) : void 0;\n\t}\n\tconst fontKey = property === \"fontSize\" ? \"size\" : property === \"fontWeight\" ? \"weight\" : property === \"lineHeight\" || property === \"letterSpacing\" ? property : void 0;\n\tif (fontKey) {\n\t\tconst value = (state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken])?.[fontKey]?.[lookupName];\n\t\treturn value ? fillTokenLookup(value, false, lookupName) : void 0;\n\t}\n\tconst category = getTokenCategoryForProperty(property);\n\tconst dot = lookupName.indexOf(\".\");\n\tif (dot !== -1) {\n\t\tconst prefix = lookupName.slice(0, dot);\n\t\tif (!category || prefix === category || prefix === \"color\") lookupName = lookupName.slice(dot + 1);\n\t}\n\tif (category) {\n\t\tconst own = state.conf.tokensParsed[category]?.[lookupName];\n\t\tif (own) return fillTokenLookup(own, false, lookupName);\n\t\tfor (const sibling of [\n\t\t\t\"color\",\n\t\t\t\"space\",\n\t\t\t\"size\",\n\t\t\t\"radius\",\n\t\t\t\"zIndex\"\n\t\t]) if (sibling !== category && state.conf.tokensParsed[sibling]?.[lookupName]) return;\n\t} else {\n\t\tconst first = lookupName.charCodeAt(0);\n\t\tif (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;\n\t}\n\tconst theme = state.theme?.[lookupName] || state.conf.themes?.[state.flatThemeName || \"\"]?.[lookupName];\n\tif (theme) return fillTokenLookup(theme, true, lookupName);\n\tif (category) return;\n\tconst token = state.conf.tokensParsed.space?.[lookupName] || state.conf.tokensParsed.color?.[lookupName];\n\treturn token ? fillTokenLookup(token, false, lookupName) : void 0;\n}\nfunction configuredValue(state, property, raw) {\n\tlet name = raw;\n\tlet opacity;\n\tconst slash = raw.lastIndexOf(\"/\");\n\tif (slash > 0) {\n\t\tconst amount = Number(raw.slice(slash + 1));\n\t\tif (Number.isInteger(amount) && amount >= 0 && amount <= 100) {\n\t\t\tname = raw.slice(0, slash);\n\t\t\topacity = amount;\n\t\t}\n\t}\n\tconst safeArea = process.env.TAMAGUI_RUNTIME_SAFE_AREA === \"disabled\" ? void 0 : resolveSafeAreaVariable(name);\n\tif (safeArea !== void 0) {\n\t\tstate.flatUsesSafeArea = true;\n\t\treturn safeArea;\n\t}\n\tconst lookup = tokenVariable(state, property, name);\n\tif (!lookup || !isVariable(lookup.value)) {\n\t\tif (process.env.NODE_ENV === \"development\" && tokenCategoryByProperty[property] && state.conf.tokensParsed.color?.[name]) warnOnce(`\"${name}\" contributes to \"color\", not \"${property}\"; keeping it literal`);\n\t\treturn raw;\n\t}\n\tconst resolveValues = isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues;\n\tif (resolveValues === \"except-theme\" && lookup.fromTheme) return `${THEME_REF_PREFIX}${lookup.themeKey}${opacity !== void 0 ? `/${opacity}` : \"\"}`;\n\tlet value = resolveVariableValue(property, lookup.value, resolveValues);\n\tif (opacity !== void 0) value = isWeb ? `color-mix(in srgb, ${value} ${opacity}%, transparent)` : normalizeColor(value, opacity / 100);\n\treturn value;\n}\nconst letterFreeCallPattern = /^[A-Za-z-]+\\([^A-Za-z]*\\)$/;\nfunction resolveEmbeddedTokens(state, property, raw) {\n\tif (letterFreeCallPattern.test(raw)) return raw;\n\treturn raw.replace(/[$A-Za-z_][\\w.$-]*(?:\\/\\d+)?/g, (word, index) => {\n\t\tif (word.charCodeAt(0) !== 36) {\n\t\t\tconst before = raw.charCodeAt(index - 1);\n\t\t\tif (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(index - 2) === 45 || raw.charCodeAt(index + word.length) === 40) return word;\n\t\t}\n\t\tconst value = configuredValue(state, property, word);\n\t\treturn value === word ? word : String(value);\n\t});\n}\nfunction normalizeTransitionNames(state, raw) {\n\tlet quote = 0;\n\tlet depth = 0;\n\tlet copyFrom = 0;\n\tlet out = \"\";\n\tfor (let index = 0; index < raw.length; index++) {\n\t\tconst code = raw.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) {\n\t\t\tquote = code;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 40) {\n\t\t\tdepth++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 41) {\n\t\t\tdepth--;\n\t\t\tcontinue;\n\t\t}\n\t\tif (depth || !(code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) || index > 1 && raw.charCodeAt(index - 1) === 45 && raw.charCodeAt(index - 2) === 45) continue;\n\t\tlet end = index + 1;\n\t\twhile (end < raw.length) {\n\t\t\tconst next = raw.charCodeAt(end);\n\t\t\tif (next >= 48 && next <= 57 || next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 45 || next === 95) end++;\n\t\t\telse break;\n\t\t}\n\t\tif (raw.charCodeAt(end) !== 40) {\n\t\t\tconst authored = raw.slice(index, end);\n\t\t\tlet property = state.conf.shorthands[authored] || authored;\n\t\t\tif (property === \"x\" || property === \"y\") property = \"translate\";\n\t\t\telse if (property === \"scaleX\" || property === \"scaleY\") property = \"scale\";\n\t\t\telse if (legacyTransformParts.has(property)) property = \"transform\";\n\t\t\tif (property !== authored || /[A-Z]/.test(property)) {\n\t\t\t\tout += raw.slice(copyFrom, index);\n\t\t\t\tout += property.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n\t\t\t\tcopyFrom = end;\n\t\t\t}\n\t\t}\n\t\tindex = end - 1;\n\t}\n\treturn copyFrom ? out + raw.slice(copyFrom) : raw;\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nfunction directAtomic(state, property, value, condition, isDefault = false) {\n\tconst atomics = state.flatAtomics ||= {};\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : property;\n\tconst existing = atomics[atomicKey];\n\tconst contribution = directStyleSignature(property, value, condition?.key || \"\");\n\tconst signature = existing ? existing.signature + contribution : contribution;\n\tconst next = getCSSStyleAtomic(property, value, condition?.selector, condition?.wrappers, signature, true, atomicKey, condition?.classRepetitions);\n\tif (!next) return;\n\tconst identifier = next[StyleObjectIdentifier];\n\tconst nextRules = next[StyleObjectRules];\n\tconst slotted = condition || atomicKey === \"transition\";\n\tif (!existing) {\n\t\tconst atomic = {\n\t\t\tbaseRules: slotted ? 0 : nextRules.length,\n\t\t\tconditions: void 0,\n\t\t\tsignature,\n\t\t\tstyleObject: next\n\t\t};\n\t\tif (slotted) atomic.conditions = { [atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key]: {\n\t\t\tcount: nextRules.length,\n\t\t\tindex: 0,\n\t\t\tprecedence: condition?.precedence ?? 0,\n\t\t\tdefault: isDefault\n\t\t} };\n\t\tatomics[atomicKey] = atomic;\n\t} else {\n\t\tconst previousIdentifier = existing.styleObject[StyleObjectIdentifier];\n\t\tconst rules = existing.styleObject[StyleObjectRules];\n\t\tif (!condition && !isDefault && existing.conditions) for (const key in existing.conditions) {\n\t\t\tconst entry = existing.conditions[key];\n\t\t\tif (!entry.default) continue;\n\t\t\trules.splice(entry.index, entry.count);\n\t\t\tdelete existing.conditions[key];\n\t\t\tfor (const otherKey in existing.conditions) {\n\t\t\t\tconst other = existing.conditions[otherKey];\n\t\t\t\tif (other.index > entry.index) other.index -= entry.count;\n\t\t\t}\n\t\t}\n\t\tif (previousIdentifier !== identifier) {\n\t\t\tconst oldSelector = `.${previousIdentifier}`;\n\t\t\tconst newSelector = `.${identifier}`;\n\t\t\tfor (let index = 0; index < rules.length; index++) rules[index] = rules[index].replaceAll(oldSelector, newSelector);\n\t\t}\n\t\tif (slotted) {\n\t\t\tconst slot = atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key;\n\t\t\tconst previous = existing.conditions?.[slot];\n\t\t\tif (previous) {\n\t\t\t\trules.splice(previous.index, previous.count);\n\t\t\t\tif (existing.conditions) for (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry !== previous && entry.index > previous.index) entry.index -= previous.count;\n\t\t\t\t}\n\t\t\t\tdelete existing.conditions[slot];\n\t\t\t}\n\t\t\tconst precedence = condition?.precedence ?? 0;\n\t\t\tlet insertionIndex = rules.length;\n\t\t\tif (existing.conditions) {\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry.precedence > precedence && entry.index < insertionIndex) insertionIndex = entry.index;\n\t\t\t\t}\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry.index >= insertionIndex) entry.index += nextRules.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\t(existing.conditions ||= {})[slot] = {\n\t\t\t\tcount: nextRules.length,\n\t\t\t\tindex: insertionIndex,\n\t\t\t\tprecedence,\n\t\t\t\tdefault: isDefault\n\t\t\t};\n\t\t\trules.splice(insertionIndex, 0, ...nextRules);\n\t\t} else {\n\t\t\tconst difference = nextRules.length - existing.baseRules;\n\t\t\trules.splice(0, existing.baseRules, ...nextRules);\n\t\t\tif (difference && existing.conditions) for (const key in existing.conditions) existing.conditions[key].index += difference;\n\t\t\texisting.baseRules = nextRules.length;\n\t\t}\n\t\texisting.signature = signature;\n\t\texisting.styleObject[StyleObjectIdentifier] = identifier;\n\t\texisting.styleObject[1] = next[1];\n\t}\n\tstate.classNames[atomicKey] = identifier;\n}\nfunction emitBorderStyleDefault(state, property, condition) {\n\tif (!isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst atomic = state.flatAtomics?.[target];\n\tif (atomic?.baseRules || state.classNames[target] && !atomic || condition && atomic?.conditions?.[condition.key]) return;\n\tdirectAtomic(state, target, \"solid\", condition, true);\n}\nfunction flushDirectStyles(state, clear = false) {\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property].styleObject;\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nfunction getDirectDynamicThemeAccess(state) {\n\treturn state.flatDynamicThemeAccess;\n}\nfunction emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {\n\tconst direct = state;\n\tif (condition?.enter) (state.flatEnterKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (condition?.exit) (state.flatExitKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (!isWeb && condition?.theme) {\n\t\tif (supportsDynamicColorIOS && isColorStyleKey(property)) {\n\t\t\tconst schemes = (direct.flatDynamicColors ||= {})[property] ||= {};\n\t\t\tschemes[condition.theme] = typeof originalValue === \"string\" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;\n\t\t\tmerge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);\n\t\t\treturn;\n\t\t}\n\t\tdirect.flatDynamicThemeAccess = true;\n\t}\n\tif (contextOnly) {\n\t\tif (!condition || condition.active) (state.overriddenContextProps ||= {})[property] = originalValue;\n\t\treturn;\n\t}\n\tconst shouldPromoteAnimatedStyle = isWeb && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && !state.animationDriver?.isReactNative && property in nonAnimatableStyleProps;\n\tif (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {\n\t\tif (!condition) {\n\t\t\tif (state.style) delete state.style[property];\n\t\t}\n\t\tdirectAtomic(state, property, value, condition);\n\t\treturn;\n\t}\n\tif (condition) {\n\t\tif (!condition.active) return;\n\t\tconst previous = direct.flatPrecedence?.[property];\n\t\tif (previous !== void 0 && condition.precedence < previous) return;\n\t\t(direct.flatPrecedence ||= {})[property] = condition.precedence;\n\t\t(state.flatActiveConditions ||= {})[property] = true;\n\t} else if (state.flatActiveConditions?.[property]) return;\n\tmerge(state, property, value, 1, true, originalValue);\n}\nfunction splitComponents(value) {\n\tconst parts = [];\n\tlet start = 0;\n\tlet quote = 0;\n\tlet depth = 0;\n\tfor (let index = 0; index <= value.length; index++) {\n\t\tconst code = index === value.length ? 32 : value.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) quote = code;\n\t\telse if (code === 40) depth++;\n\t\telse if (code === 41) depth--;\n\t\telse if (!depth && code <= 32) {\n\t\t\tif (index > start) parts.push(value.slice(start, index));\n\t\t\tstart = index + 1;\n\t\t}\n\t}\n\treturn parts;\n}\nfunction emitBorder(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb && (property === \"borderBlock\" || property === \"borderInline\")) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`RN has no logical border shorthand \"${property}\"; dropping it`);\n\t\treturn;\n\t}\n\tconst targets = borderTargets[property];\n\tlet width;\n\tlet style;\n\tlet color;\n\tfor (const part of splitComponents(raw)) {\n\t\tconst lower = part.toLowerCase();\n\t\tif (lineStyles.has(lower) || property === \"outline\" && lower === \"auto\") style = part;\n\t\telse if (lower === \"thin\" || lower === \"medium\" || lower === \"thick\" || /^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[a-z%]+)?$/i.test(part) || /^(?:calc|var|min|max|clamp)\\(/i.test(part)) width = part;\n\t\telse color = part;\n\t}\n\tif (style === \"none\" && width === void 0) width = \"0\";\n\tif (width !== void 0) for (const target of targets.width) emitResolved(state, target, width, condition, merge, originalValue, contextOnly);\n\tif (style !== void 0) {\n\t\tconst styleTargets = !isWeb && property === \"border\" ? [\"borderStyle\"] : targets.style;\n\t\tfor (const target of styleTargets) emitProperty(state, target, style, condition, merge, originalValue, contextOnly);\n\t}\n\tif (color !== void 0) for (const target of targets.color) emitResolved(state, target, color, condition, merge, originalValue, contextOnly);\n}\nfunction emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly) {\n\tfor (const part of splitComponents(raw)) emitResolved(state, part === \"solid\" || part === \"double\" || part === \"dotted\" || part === \"dashed\" || part === \"wavy\" ? \"textDecorationStyle\" : part === \"underline\" || part === \"overline\" || part === \"line-through\" || part === \"none\" ? \"textDecorationLine\" : \"textDecorationColor\", part, condition, merge, originalValue, contextOnly);\n}\nfunction addComposition(state, property) {\n\tif (state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tconst styleObject = getCSSStyleAtomic(property, value, \"\", void 0, void 0, true);\n\tconst identifier = styleObject[StyleObjectIdentifier];\n\tstyleObject[StyleObjectRules].unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction emitTransform(state, property, value, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb || !state.flatShouldDoClasses) {\n\t\tif (!isWeb && property === \"scale\") {\n\t\t\temitProperty(state, \"scaleX\", value, condition, merge, originalValue, contextOnly);\n\t\t\temitProperty(state, \"scaleY\", value, condition, merge, originalValue, contextOnly);\n\t\t} else emitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tconst targets = property === \"scale\" ? [\"--t-scale-x\", \"--t-scale-y\"] : [property === \"x\" ? \"--t-x\" : property === \"y\" ? \"--t-y\" : property === \"scaleX\" ? \"--t-scale-x\" : property === \"scaleY\" ? \"--t-scale-y\" : \"rotate\"];\n\tfor (const target of targets) {\n\t\tlet targetValue = value;\n\t\tif (typeof targetValue === \"number\") {\n\t\t\tif (target === \"--t-x\" || target === \"--t-y\") targetValue = `${targetValue}px`;\n\t\t\telse if (target === \"rotate\") targetValue = `${targetValue}deg`;\n\t\t}\n\t\temitProperty(state, target, targetValue, condition, merge, originalValue, contextOnly);\n\t\tif (target === \"--t-x\" || target === \"--t-y\") addComposition(state, \"translate\");\n\t\telse if (target.startsWith(\"--t-scale\")) addComposition(state, \"scale\");\n\t}\n}\nfunction emitResolved(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tlet value = configuredValue(state, property, raw);\n\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction shadowUnit(part) {\n\treturn typeof part === \"number\" ? `${part}px` : part || \"0px\";\n}\nfunction emitWebShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatWebShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.shadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tconst color = normalizeColor(shadow.shadowColor, shadow.shadowOpacity ?? 1);\n\tif (!color) return;\n\tconst next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;\n\temitProperty(state, \"boxShadow\", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, null, merge, originalValue, contextOnly);\n}\nfunction emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatTextShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.textShadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tif (!shadow.textShadowColor) return;\n\temitProperty(state, \"textShadow\", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, null, merge, originalValue, contextOnly);\n}\nfunction emitValue(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (typeof raw === \"string\") raw = raw.trim();\n\tif (isVariable(raw)) raw = resolveVariableValue(property, raw, isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues);\n\temitBorderStyleDefault(state, property, condition);\n\tif (typeof raw === \"string\" && (property === \"transition\" || property === \"transitionProperty\")) raw = normalizeTransitionNames(state, raw);\n\tif (legacyTransformParts.has(property)) {\n\t\tif (isWeb && state.flatShouldDoClasses && state.classNames.transform) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`legacy transform part \"${property}\" is dropped because \"transform\" owns the property`);\n\t\t\treturn;\n\t\t}\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (isWeb && state.flatShouldDoClasses && !condition) {\n\t\t\tconst direct = state;\n\t\t\t(direct.flatLegacyTransforms ||= {})[property] = value2;\n\t\t\temitProperty(state, \"transform\", transformsToString(Object.keys(direct.flatLegacyTransforms).sort().map((key) => ({ [key]: direct.flatLegacyTransforms[key] }))), null, merge, originalValue, contextOnly);\n\t\t} else if (condition && isWeb && state.flatShouldDoClasses) emitProperty(state, \"transform\", `${property}(${value2})`, condition, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webTextShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebTextShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && state.flatShouldDoClasses) {\n\t\tif (property === \"transform\") {\n\t\t\tconst direct = state;\n\t\t\tif (process.env.NODE_ENV === \"development\" && direct.flatLegacyTransforms) for (const part in direct.flatLegacyTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\tdirect.flatLegacyTransforms = void 0;\n\t\t\tif (state.flatTransforms) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") for (const part in state.flatTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\t\tstate.flatTransforms = void 0;\n\t\t\t}\n\t\t}\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"transform\" && Array.isArray(raw)) raw = transformsToString(raw);\n\tif (typeof raw === \"string\" && property in borderTargets) {\n\t\temitBorder(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"textDecoration\") {\n\t\temitTextDecoration(state, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"background\") {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length === 1 && !/^(?:url|image-set|.*gradient)\\(/i.test(parts[0])) {\n\t\t\temitResolved(state, \"backgroundColor\", parts[0], condition, merge, originalValue, contextOnly);\n\t\t\treturn;\n\t\t}\n\t\tif (!isWeb) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native background cannot represent \"${raw}\"; dropping it`);\n\t\t\treturn;\n\t\t}\n\t}\n\tif (property === \"x\" || property === \"y\" || property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" || property === \"rotate\") {\n\t\tlet value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value2 === \"string\" && !value2.startsWith(THEME_REF_PREFIX)) {\n\t\t\tif (property === \"rotate\" && !/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:deg|rad)$/i.test(value2)) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native transform \"${property}\" cannot represent \"${value2}\"; dropping it`);\n\t\t\t\tif (condition?.active && state.flatTransforms) delete state.flatTransforms[property];\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value2)) value2 = Number.parseFloat(value2);\n\t\t\telse if (Number.isFinite(Number(value2))) value2 = Number(value2);\n\t\t}\n\t\temitTransform(state, property, value2, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (isWeb && !state.flatShouldDoClasses && !condition && property === \"borderRadius\") {\n\t\tif (typeof raw === \"string\") emitResolved(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\telse emitProperty(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tlet value = raw;\n\tif (typeof raw === \"string\") {\n\t\tvalue = configuredValue(state, property, raw);\n\t\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\t}\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"boxShadow\" && !condition) state.flatBoxShadow = value;\n\tif (!isWeb && property === \"fontVariant\" && typeof value === \"string\") value = value.split(/[,\\s]+/).filter(Boolean);\n\tconst expanded = state.styleProps.noExpand ? null : expandStyle(property, value, state.conf.settings.styleCompat || \"web\");\n\tif (!expanded) {\n\t\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && expanded.length > 1) {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length > 0 && parts.length <= (expanded.length === 4 ? 4 : 2)) {\n\t\t\tfor (let index = 0; index < expanded.length; index++) {\n\t\t\t\tconst partIndex = index === 0 || parts.length === 1 ? 0 : index === 1 || index === 3 && parts.length < 4 ? 1 : index === 2 && parts.length < 3 ? 0 : index;\n\t\t\t\temitResolved(state, expanded[index][0], parts[partIndex], condition, merge, originalValue, contextOnly);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tfor (let index = 0; index < expanded.length; index++) emitProperty(state, expanded[index][0], expanded[index][1], condition, merge, originalValue, contextOnly);\n}\nfunction emitSegment(state, property, source, start, end, condition, merge, originalValue, contextOnly) {\n\twhile (start < end && source.charCodeAt(start) <= 32) start++;\n\twhile (end > start && source.charCodeAt(end - 1) <= 32) end--;\n\tif (start === end) return false;\n\tif (!condition || condition.emit && (condition.active || isWeb && state.flatShouldDoClasses || !isWeb && condition.theme && supportsDynamicColorIOS && isColorStyleKey(property))) {\n\t\tconst value = source.slice(start, end);\n\t\temitValue(state, property, value, condition, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeStyleString(state, property, source, merge, originalValue, contextOnly = false) {\n\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === \"disabled\") {\n\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\treturn true;\n\t}\n\tif (isWeb && source.indexOf(\":\") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`conditional \"${property}\" needs its composite property; dropping it`);\n\t\treturn true;\n\t}\n\tif (source.indexOf(\":\") === -1) {\n\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\treturn true;\n\t}\n\tconst conditions = [];\n\tconst starts = [];\n\tconst ends = [];\n\tlet pending = null;\n\tlet refused = \"\";\n\tlet lifecycle = false;\n\tscanFlatValue(source, {\n\t\tsegment(start, end, isBase) {\n\t\t\tif (start === end) {\n\t\t\t\tif (!isBase && !refused) refused = \"a conditional clause has no value\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconditions.push(pending);\n\t\t\tstarts.push(start);\n\t\t\tends.push(end);\n\t\t},\n\t\tchain(start, end) {\n\t\t\tif (refused) return false;\n\t\t\tconst next = getCondition(state, source.slice(start, end));\n\t\t\tif (!next) {\n\t\t\t\trefused = `unknown modifier \"${source.slice(start, end)}\"`;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && next.unsupportedState) warnOnce(`${property}: \"${next.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\t\t\tpending = next;\n\t\t\tlifecycle ||= !!(next.enter || next.exit);\n\t\t\treturn true;\n\t\t},\n\t\terror(code, index) {\n\t\t\tif (refused) return;\n\t\t\trefused = code === \"invalid-character\" ? `\"${source[index]}\" would end the declaration or rule` : code === \"unterminated-string\" ? \"an unterminated string\" : code === \"unterminated-comment\" ? \"an unterminated \\\"/*\\\" comment\" : code === \"stray-comment-close\" ? \"a stray \\\"*/\\\"\" : \"an unterminated \\\"(\\\"\";\n\t\t}\n\t});\n\tif (refused) {\n\t\tif (property === \"aspectRatio\") {\n\t\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, source, refused);\n\t\treturn true;\n\t}\n\tlet hasBase = false;\n\tlet lastPayloadStart = 0;\n\tfor (let index = 0; index < conditions.length; index++) {\n\t\tconst condition = conditions[index];\n\t\tlastPayloadStart = starts[index];\n\t\tconst emitted = emitSegment(state, property, source, starts[index], ends[index], condition, merge, originalValue, contextOnly);\n\t\tif (!condition && emitted) hasBase = true;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && !hasBase && conditions.length > 0 && (property in tokenCategories.color || property in tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) warnOnce(`${property}=\"${source}\" has multiple values after its first conditional. Write the base value before the first conditional.`);\n\tif ((!isWeb || !state.flatShouldDoClasses) && lifecycle && !hasBase) {\n\t\tconst value = property === \"opacity\" ? 1 : property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" ? 1 : property === \"rotate\" ? \"0deg\" : property === \"x\" || property === \"y\" ? 0 : null;\n\t\tif (value !== null) emitValue(state, property, value, null, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeFrontendValue(state, property, value, merge, contextOnly = false) {\n\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === \"disabled\") return false;\n\tif (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);\n\tfor (const clause of value.clauses) {\n\t\tconst condition = getCondition(state, clause.modifiers.join(\":\"));\n\t\tif (condition && condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, clause.payload, condition, merge, clause.payload, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue, contextOnly = false) {\n\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === \"disabled\") return;\n\tconst condition = getCondition(state, conditionSource);\n\tif (!condition) {\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, value, `unknown modifier \"${conditionSource}\"`);\n\t\treturn;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && condition.unsupportedState) warnOnce(`${property}: \"${condition.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\tif (condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction contributeStyleValue(state, property, value, merge, originalValue, contextOnly = false) {\n\tif (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== \"disabled\" && value === \"safe\" && isSafeAreaKey(property)) {\n\t\tconst expanded = expandSafeAreaValue(property);\n\t\tif (expanded) {\n\t\t\tstate.flatUsesSafeArea = true;\n\t\t\tfor (const [key, resolved] of expanded) emitValue(state, key, resolved, null, merge, originalValue ?? value, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t}\n\tif (typeof value === \"string\") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);\n\tif (value != null) {\n\t\temitValue(state, property, value, null, merge, originalValue ?? value, contextOnly);\n\t\treturn true;\n\t}\n\treturn false;\n}\nfunction clearDirectStyle(state, property) {\n\tconst direct = state;\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : webShadowParts.has(property) ? \"boxShadow\" : webTextShadowParts.has(property) ? \"textShadow\" : legacyTransformParts.has(property) ? \"transform\" : property;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tdelete state.classNames[atomicKey];\n}\n\nexport { clearDirectStyle, contributeFrontendValue, contributeStyleString, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getCondition, getDirectDynamicThemeAccess, platformMatches };"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,iBAAiB;CACtB,OAAO;CACP,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;CACV,MAAM;CACN,SAAS;CACT,aAAa;CACb,UAAU;CACV,SAAS;AACV;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,iCAAiC,IAAI,IAAI;CAC9C;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,qCAAqC,IAAI,IAAI;CAClD;CACA;CACA;AACD,CAAC;AACD,MAAM,6BAA6B,IAAI,IAAI;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,gBAAgB;CACrB,QAAQ;EACP,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;CACD;CACA,WAAW;EACV,OAAO,CAAC,gBAAgB;EACxB,OAAO,CAAC,gBAAgB;EACxB,OAAO,CAAC,gBAAgB;CACzB;CACA,aAAa;EACZ,OAAO,CAAC,kBAAkB;EAC1B,OAAO,CAAC,kBAAkB;EAC1B,OAAO,CAAC,kBAAkB;CAC3B;CACA,cAAc;EACb,OAAO,CAAC,mBAAmB;EAC3B,OAAO,CAAC,mBAAmB;EAC3B,OAAO,CAAC,mBAAmB;CAC5B;CACA,YAAY;EACX,OAAO,CAAC,iBAAiB;EACzB,OAAO,CAAC,iBAAiB;EACzB,OAAO,CAAC,iBAAiB;CAC1B;CACA,SAAS;EACR,OAAO,CAAC,cAAc;EACtB,OAAO,CAAC,cAAc;EACtB,OAAO,CAAC,cAAc;CACvB;CACA,aAAa;EACZ,OAAO,CAAC,yBAAyB,qBAAqB;EACtD,OAAO,CAAC,yBAAyB,qBAAqB;EACtD,OAAO,CAAC,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