@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":"getSplitStyles.native.js","names":[],"sources":["esm/helpers/getSplitStyles.native.js"],"sourcesContent":["import { isAndroid, isClient, isWeb } from \"@tamagui/constants\";\nimport { stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig, getFont } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some(function(value) {\n\t\treturn Object.is(value, actual);\n\t});\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (var key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tif (!compoundMatcherMatches(compoundVariant[key], props[key])) return false;\n\t}\n\treturn true;\n}\nvar styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tvar entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tvar defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (var key in defaults) (entries || (entries = [])).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (var index = 0; index < styledDefaults.length; index++) {\n\t\tvar key = styledDefaults[index][0];\n\t\tvar styledValue = styledDefaults[index][1];\n\t\tvar propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (typeof styledValue === \"string\" && styledValue.includes(\":\") || typeof propValue === \"string\" && propValue.includes(\":\"))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {\n\tvar processedBaseStyle = staticConfig.baseStyle;\n\tvar compoundVariants = staticConfig.compoundVariants;\n\tvar styledDefaults = getStyledDefaults(staticConfig);\n\tif (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {\n\t\tif (processedBaseStyle) for (var key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (var key1 in processedProps) contribute(key1, processedProps[key1]);\n\t\treturn;\n\t}\n\tvar propEntries = Object.entries(processedProps);\n\tvar orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, function(k, v) {\n\t\treturn orderedEntries.push([k, v]);\n\t});\n\tvar compoundsByAnchor = /* @__PURE__ */ new Map();\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = compoundVariants[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar compoundVariant = _step.value;\n\t\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\t\tvar { style } = compoundVariant;\n\t\t\tif (!isPlainObject(style)) continue;\n\t\t\tvar anchor = -1;\n\t\t\tfor (var selectorKey in compoundVariant) {\n\t\t\t\tif (selectorKey === \"style\") continue;\n\t\t\t\tfor (var index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar entries = compoundsByAnchor.get(anchor) || [];\n\t\t\tfor (var key2 in style) entries.push([key2, style[key2]]);\n\t\t\tcompoundsByAnchor.set(anchor, entries);\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tfor (var index1 = 0; index1 < orderedEntries.length; index1++) contribute(orderedEntries[index1][0], orderedEntries[index1][1]);\n\tvar beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (var index2 = 0; index2 < beforeProps.length; index2++) contribute(beforeProps[index2][0], beforeProps[index2][1]);\n\tfor (var index3 = 0; index3 < propEntries.length; index3++) {\n\t\tcontribute(propEntries[index3][0], propEntries[index3][1]);\n\t\tvar compounds = compoundsByAnchor.get(index3);\n\t\tif (compounds) for (var i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nvar getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {\n\tvar _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;\n\tvar conf = getConfig();\n\tif ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tvar driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;\n\tvar resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tvar { shorthands } = conf;\n\tvar { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tvar viewProps = {};\n\tvar mediaState$1 = styleProps.mediaState || mediaState;\n\tvar shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tvar rulesToInsert = void 0;\n\tvar classNames = {};\n\tprops.space;\n\tvar hasMedia = false;\n\tvar pseudoGroups;\n\tvar mediaGroups;\n\tvar className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tvar validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tvar styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.IS_STATIC === \"is_static\") {\n\t\tvar { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key8, val2) {\n\t\t\tif (!Reflect.has(props, key8)) return Reflect.get(fallbackProps, key8);\n\t\t\treturn Reflect.get(props, key8);\n\t\t} });\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tvar { asChild } = props;\n\tvar { accept, neverSkipProps } = staticConfig;\n\tvar { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tvar processedProps;\n\tvar styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tvar { webContainerType } = conf.settings;\n\tvar parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;\n\tvar mergeStylePropAtCurrentPosition = function(styleProp) {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tvar isArray = Array.isArray(styleProp);\n\t\tvar length = isArray ? styleProp.length : 1;\n\t\tfor (var index = 0; index < length; index++) {\n\t\t\tvar style2 = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style2) continue;\n\t\t\tif (style2[\"$$css\"]) {\n\t\t\t\tfor (var key8 in style2) clearDirectStyle(styleState, key8);\n\t\t\t\tObject.assign(styleState.classNames, style2);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar normalized = normalizeStyle(style2);\n\t\t\tvar styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style2) : void 0;\n\t\t\tfor (var key12 in normalized) {\n\t\t\t\tif (normalized[key12] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key12, normalized[key12], mergeStyle, styleOriginals === null || styleOriginals === void 0 ? void 0 : styleOriginals[key12]);\n\t\t\t}\n\t\t}\n\t};\n\tvar flushForwardStylesToClasses = function() {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tvar contributeProp = function(keyOg, valOg) {\n\t\tvar keyInit = keyOg;\n\t\tvar valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (keyInit[0] === \"d\" && keyInit.startsWith(\"data-\")) return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (keyInit === \"transition\" || keyInit === \"transitionProperty\" || keyInit === \"transitionDuration\" || keyInit === \"transitionTimingFunction\" || keyInit === \"transitionDelay\" || keyInit === \"transitionBehavior\") return;\n\t\tif (accept) {\n\t\t\tvar accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && (typeof valInit === \"undefined\" ? \"undefined\" : _type_of(valInit)) === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tvar defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tvar _defaults_keyOg;\n\t\t\t\tvar defaultVal = (_defaults_keyOg = defaults[keyOg]) !== null && _defaults_keyOg !== void 0 ? _defaults_keyOg : defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tif (keyInit === \"group\");\n\t\t\tif (keyInit === \"container\" && valInit) {}\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tvar _driver_animations;\n\t\t\t\tvar animationConfig = driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit];\n\t\t\t\tif (animationConfig && (driver === null || driver === void 0 ? void 0 : driver.outputStyle) === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tvar isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tvar _driver_View;\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !((_driver_View = driver.View) === null || _driver_View === void 0 ? void 0 : _driver_View.acceptRenderProp)) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tvar _viewProps2, _dataSet;\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\t(_viewProps2 = viewProps)[_dataSet = \"dataSet\"] || (_viewProps2[_dataSet] = {});\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!isValidStyleKeyInit) {\n\t\t\tif (!isAndroid) {\n\t\t\t\tif (keyInit === \"elevationAndroid\") return;\n\t\t\t}\n\t\t\tif (keyInit === \"userSelect\") {\n\t\t\t\tkeyInit = \"selectable\";\n\t\t\t\tvalInit = valInit !== \"none\";\n\t\t\t} else if (keyInit === \"textOverflow\") {\n\t\t\t\tif (isText && valInit === \"ellipsis\") {\n\t\t\t\t\tvar _viewProps1, _viewProps22;\n\t\t\t\t\tvar _numberOfLines;\n\t\t\t\t\t(_numberOfLines = (_viewProps1 = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps1.numberOfLines = 1);\n\t\t\t\t\tvar _ellipsizeMode;\n\t\t\t\t\t(_ellipsizeMode = (_viewProps22 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps22.ellipsizeMode = \"tail\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t} else if (keyInit.startsWith(\"data-\")) return;\n\t\t}\n\t\tvar isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tvar isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tvar isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tvar shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));\n\t\tvar parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];\n\t\tvar isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tvar shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants === null || variants === void 0 ? void 0 : variants[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tvar _driver_animations1;\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[valInit]))) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tvar disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(valInit === \"unset\") && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, function(key8, val2, originalVal, conditionSource) {\n\t\t\tvar _parentStaticConfig_variants;\n\t\t\tvar isStyledContextProp = styledContext && key8 in styledContext;\n\t\t\tif (key8 === \"className\") {\n\t\t\t\tif (typeof val2 === \"string\" && val2) className = `${className} ${val2}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key8);\n\t\t\t\tlog(val2);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val2 == null) return;\n\t\t\tif (accept && key8 in accept) {\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar isHostStyleKey = !isHOC && isValidStyleKey(key8, validStyles$1, accept) || isAndroid && key8 === \"elevation\";\n\t\t\tvar isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key8, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tvar appended = appendFlatClause(viewProps[key8], conditionSource, val2);\n\t\t\t\t\tif (appended !== void 0) viewProps[key8] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key8}\" is not string-representable; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key8, val2, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key8 in variants;\n\t\t\tif (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key8)) {\n\t\t\t\tvar _props_key;\n\t\t\t\tviewProps[key8] = (_props_key = props[key8]) !== null && _props_key !== void 0 ? _props_key : val2;\n\t\t\t}\n\t\t\tif (isHOC && Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key8, val2);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key8}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval: val2,\n\t\t\t\t\t\tafter: { ...viewProps[key8] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch (e) {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tvar conditionalStates = styleState.flatStateKeys || null;\n\tvar usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = styleState.flatMediaKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar key = _step.value;\n\t\t\t\t\thasMedia.add(key);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {\n\t\tpseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator1 = styleState.flatGroupKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\tvar key1 = _step1.value;\n\t\t\t\tpseudoGroups.add(key1);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError1 = true;\n\t\t\t_iteratorError1 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {\n\t\tmediaGroups || (mediaGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = styleState.flatGroupMedia[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar key2 = _step2.value;\n\t\t\t\tmediaGroups.add(key2);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t}\n\tvar effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;\n\tif (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;\n\tif (styleState.style) {\n\t\tif (\"containerType\" in styleState.style) delete styleState.style.containerType;\n\t\tif (\"containerName\" in styleState.style) delete styleState.style.containerName;\n\t}\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? (driver === null || driver === void 0 ? void 0 : driver.inputStyle) !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tvar _styleState;\n\t\t\t(_styleState = styleState).style || (_styleState.style = {});\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {\n\t\t\t\tvar _styleState1;\n\t\t\t\tif (key4 in classNames || styleState.style && key4 in styleState.style) continue;\n\t\t\t\t(_styleState1 = styleState).style || (_styleState1.style = {});\n\t\t\t\tstyleState.style[key4] = parentSplitStyles.style[key4];\n\t\t\t}\n\t\t}\n\t}\n\tif (viewProps.tabIndex === 0) {\n\t\tvar _viewProps;\n\t\tvar _accessible;\n\t\t(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);\n\t}\n\tvar style = styleState.style;\n\tif (style === null || style === void 0 ? void 0 : style.fontFamily) {\n\t\tvar _getFont;\n\t\tvar faceInfo = (_getFont = getFont(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;\n\t\tif (faceInfo) {\n\t\t\tvar _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;\n\t\t\tvar overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || \"normal\"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;\n\t\t\tif (overrideFace) {\n\t\t\t\tstyle.fontFamily = overrideFace;\n\t\t\t\tstyleState.fontFamily = overrideFace;\n\t\t\t\tdelete style.fontWeight;\n\t\t\t\tdelete style.fontStyle;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && debug && debug !== \"profile\") log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tvar provenance = {};\n\t\tvar hasProvenance = false;\n\t\tfor (var key5 in styleState.tokenProvenance) {\n\t\t\tprovenance[key5] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key5],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tvar result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tvar effectiveKeys = function(keys) {\n\t\t\tif (!keys) return;\n\t\t\tvar out = /* @__PURE__ */ new Set();\n\t\t\tvar _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator4 = keys[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n\t\t\t\t\tvar key8 = _step4.value;\n\t\t\t\t\tout.add(key8 === \"--t-x\" || key8 === \"--t-y\" ? \"translate\" : key8 === \"--t-scale-x\" || key8 === \"--t-scale-y\" ? \"scale\" : key8);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError4 = true;\n\t\t\t\t_iteratorError4 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion4 && _iterator4.return != null) _iterator4.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError4) throw _iteratorError4;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tvar asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tvar style1 = styleState.style;\n\t\t\tif (style1) viewProps.style = style1;\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tvar logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (var key7 in logs) log(key7, logs[key7]);\n\t\t\t} catch (e) {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tvar transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tvar hasScaleX = \"scaleX\" in flatTransforms;\n\tvar hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tvar keys = [];\n\tfor (var key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key1 = _step.value;\n\t\t\ttransform.push({ [mapTransformKeys[key1] || key1]: flatTransforms[key1] });\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance) {\n\tvar disableNormalize = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, originalVal = arguments.length > 5 ? arguments[5] : void 0;\n\tvar _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _contextConfig_propKeys;\n\tvar { viewProps, styleProps, staticConfig } = styleState;\n\tvar contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);\n\tvar contextProps = contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props;\n\tvar inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;\n\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(key)) || (contextConfig === null || contextConfig === void 0 ? void 0 : (_contextConfig_propKeys = contextConfig.propKeys) === null || _contextConfig_propKeys === void 0 ? void 0 : _contextConfig_propKeys.includes(key))) {\n\t\tvar _styleState_originalContextPropValues;\n\t\tvar _styleState;\n\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\tvar originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];\n\t\tvar _ref;\n\t\tstyleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tvar _styleState1;\n\t\t(_styleState1 = styleState).flatTransforms || (_styleState1.flatTransforms = {});\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tvar out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tvar _styleState2;\n\t\t\t(_styleState2 = styleState).style || (_styleState2.style = {});\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tvar _styleState_conf_themes;\n\tvar tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tvar slash = tokenName.lastIndexOf(\"/\");\n\t\tvar opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || \"\"]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {\n\t\treturn Object.prototype.hasOwnProperty.call(category, tokenName);\n\t}))) {\n\t\tvar _styleState;\n\t\t((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;\n\t} else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nvar getSubStyle = function(styleState, _subKey, styleIn, avoidMergeTransform) {\n\tvar { staticConfig, conf, styleProps } = styleState;\n\tvar styleOut = {};\n\tvar originalValues;\n\tvar styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tvar parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tvar _loop = function(key1) {\n\t\t\tvar val = styleIn[key1];\n\t\t\tkey1 = conf.shorthands[key1] || key1;\n\t\t\tif (!staticConfig.isHOC && key1 in skipProps && !styleProps.noSkip) return key = key1, \"continue\";\n\t\t\tpropMapper(key1, val, styleState, false, function(skey, sval, originalVal) {\n\t\t\t\tvar _styleInOriginalValues_skey;\n\t\t\t\tvar trackedOriginalVal = (_styleInOriginalValues_skey = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[skey]) !== null && _styleInOriginalValues_skey !== void 0 ? _styleInOriginalValues_skey : originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues || (originalValues = {});\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key1);\n\t\t\t});\n\t\t\tkey = key1;\n\t\t};\n\t\tfor (var key in styleIn) _loop(key);\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tvar _styleState_style;\n\t\tvar parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;\n\t\tvar flatTransforms = styleState.flatTransforms;\n\t\tvar styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tvar len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tvar merged = [];\n\t\t\t\touter: for (var i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tvar pt = parentTransform[i];\n\t\t\t\t\tfor (var pk in pt) {\n\t\t\t\t\t\tfor (var j = 0; j < len; j++) for (var sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (var fk in flatTransforms) {\n\t\t\t\tvar ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {\n\t\t\t\t\tif (ck === sk1) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nisWeb && React.useInsertionEffect;\nvar useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {\n\t\"use no memo\";\n\treturn getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n};\nvar mergeTransform = function(obj, key, val) {\n\tvar backwards = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar _obj;\n\tif (typeof obj.transform === \"string\") return;\n\t(_obj = obj).transform || (_obj.transform = []);\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nvar mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tvar out = {};\n\tfor (var key in style) {\n\t\tvar val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplitStyles };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,SAAS,KAAK;CACtB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAC/F;AACA,IAAI,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACtI,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,KAAK,SAAS,OAAO;EACjE,OAAO,OAAO,GAAG,OAAO,MAAM;CAC/B,CAAC;CACD,OAAO,OAAO,GAAG,UAAU,MAAM;AAClC;AACA,SAAS,uBAAuB,iBAAiB,OAAO;CACvD,KAAK,IAAI,OAAO,iBAAiB;EAChC,IAAI,QAAQ,SAAS;EACrB,IAAI,CAAC,uBAAuB,gBAAgB,MAAM,MAAM,IAAI,GAAG,OAAO;CACvE;CACA,OAAO;AACR;AACA,IAAI,sCAAsC,IAAI,QAAQ;AACtD,SAAS,kBAAkB,cAAc;CACxC,IAAI,U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J,IAAI,OAAO,IAAI,cAAc,UAAU;CACvC,CAAC,OAAO,KAAK,cAAc,KAAK,YAAY,CAAC;CAC7C,IAAI,UAAU,YAAY,YAAY,QAAQ,GAAG,iBAAiB,QAAQ,MAAM,IAAI,CAAC;AACtF;AACA,IAAI,mBAAmB;CACtB,GAAG;CACH,GAAG;AACJ;AACA,SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,OAAO;EACtB,IAAI,MAAM,MAAM;EAChB,IAAI,OAAO,qBAAqB,eAAe,KAAK,KAAK,GAAG;OACvD,IAAI,OAAO,2BAA2B,KAAK,GAAG;CACpD;CACA,IAAI,SAAS,MAAM,QAAQ,IAAI,SAAS,GAAG,IAAI,YAAY,mBAAmB,IAAI,SAAS;CAC3F,UAAU,GAAG;CACb,OAAO;AACR"}
1
+ {"version":3,"file":"getSplitStyles.native.js","names":[],"sources":["esm/helpers/getSplitStyles.native.js"],"sourcesContent":["import { isAndroid, isClient, isWeb } from \"@tamagui/constants\";\nimport { stylePropsAll, stylePropsText, stylePropsTransform, validStyles } from \"@tamagui/helpers\";\nimport React from \"react\";\nimport { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED } from \"./styleFrontend\";\nimport { getConfig, getFont } from \"../config\";\nimport { isDevTools } from \"../constants/isDevTools\";\nimport { mediaState } from \"./mediaState\";\nimport { fixStyles } from \"./expandStyles\";\nimport { styleToCSS } from \"./getCSSStylesAtomic\";\nimport { getDefaultProps } from \"./getDefaultProps\";\nimport { isPlainObject } from \"./isObj\";\nimport { log } from \"./log\";\nimport { normalizeValueWithProperty } from \"./normalizeValueWithProperty\";\nimport { appendFlatClause, propMapper } from \"./propMapper\";\nimport { clearDirectStyle, contributeStyleValue, contributeVariantClauseValue, flushDirectStyles, getDirectDynamicThemeAccess } from \"./directStyle\";\nimport { contributeFrontendProgram, isFrontendProgram } from \"./frontendProgram\";\nimport { skipProps } from \"./skipProps\";\nimport { sortString } from \"./sortString\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\nimport { STYLE_TOKEN_PROVENANCE_KEY, getStyleTokenProvenance, setStyleTokenProvenance } from \"./styleProvenance\";\nimport { transformsToString } from \"./transformsToString\";\n\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar shouldTrackStyleTokenProvenance = process.env.NODE_ENV === \"development\" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === \"1\";\nfunction compoundMatcherMatches(expected, actual) {\n\tif (Array.isArray(expected)) return expected.some(function(value) {\n\t\treturn Object.is(value, actual);\n\t});\n\treturn Object.is(expected, actual);\n}\nfunction compoundVariantMatches(compoundVariant, props) {\n\tfor (var key in compoundVariant) {\n\t\tif (key === \"style\") continue;\n\t\tif (!compoundMatcherMatches(compoundVariant[key], props[key])) return false;\n\t}\n\treturn true;\n}\nvar styledDefaultsCache = /* @__PURE__ */ new WeakMap();\nfunction getStyledDefaults(staticConfig) {\n\tvar entries = styledDefaultsCache.get(staticConfig);\n\tif (entries === void 0) {\n\t\tentries = null;\n\t\tvar defaults = staticConfig.defaultProps;\n\t\tif (defaults) for (var key in defaults) (entries || (entries = [])).push([key, defaults[key]]);\n\t\tstyledDefaultsCache.set(staticConfig, entries);\n\t}\n\treturn entries;\n}\nfunction contributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute) {\n\tif (!styledDefaults) return;\n\tfor (var index = 0; index < styledDefaults.length; index++) {\n\t\tvar key = styledDefaults[index][0];\n\t\tvar styledValue = styledDefaults[index][1];\n\t\tvar propValue = processedProps[key];\n\t\tif (!(key in stylePropsAll) && !(key in shorthands)) continue;\n\t\tif (propValue !== void 0 && propValue !== styledValue && (typeof styledValue === \"string\" && styledValue.includes(\":\") || typeof propValue === \"string\" && propValue.includes(\":\"))) contribute(key, styledValue);\n\t}\n}\nfunction forEachPropInForwardOrder(processedProps, staticConfig, shorthands, contribute) {\n\tvar processedBaseStyle = staticConfig.baseStyle;\n\tvar compoundVariants = staticConfig.compoundVariants;\n\tvar styledDefaults = getStyledDefaults(staticConfig);\n\tif (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {\n\t\tif (processedBaseStyle) for (var key in processedBaseStyle) contribute(key, processedBaseStyle[key]);\n\t\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, contribute);\n\t\tfor (var key1 in processedProps) contribute(key1, processedProps[key1]);\n\t\treturn;\n\t}\n\tvar propEntries = Object.entries(processedProps);\n\tvar orderedEntries = processedBaseStyle ? Object.entries(processedBaseStyle) : [];\n\tcontributeDisplacedStyledDefaults(styledDefaults, processedProps, shorthands, function(k, v) {\n\t\treturn orderedEntries.push([k, v]);\n\t});\n\tvar compoundsByAnchor = /* @__PURE__ */ new Map();\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = compoundVariants[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar compoundVariant = _step.value;\n\t\t\tif (!compoundVariantMatches(compoundVariant, processedProps)) continue;\n\t\t\tvar { style } = compoundVariant;\n\t\t\tif (!isPlainObject(style)) continue;\n\t\t\tvar anchor = -1;\n\t\t\tfor (var selectorKey in compoundVariant) {\n\t\t\t\tif (selectorKey === \"style\") continue;\n\t\t\t\tfor (var index = propEntries.length - 1; index >= 0; index--) if (propEntries[index][0] === selectorKey) {\n\t\t\t\t\tanchor = Math.max(anchor, index);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar entries = compoundsByAnchor.get(anchor) || [];\n\t\t\tfor (var key2 in style) entries.push([key2, style[key2]]);\n\t\t\tcompoundsByAnchor.set(anchor, entries);\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tfor (var index1 = 0; index1 < orderedEntries.length; index1++) contribute(orderedEntries[index1][0], orderedEntries[index1][1]);\n\tvar beforeProps = compoundsByAnchor.get(-1);\n\tif (beforeProps) for (var index2 = 0; index2 < beforeProps.length; index2++) contribute(beforeProps[index2][0], beforeProps[index2][1]);\n\tfor (var index3 = 0; index3 < propEntries.length; index3++) {\n\t\tcontribute(propEntries[index3][0], propEntries[index3][1]);\n\t\tvar compounds = compoundsByAnchor.get(index3);\n\t\tif (compounds) for (var i = 0; i < compounds.length; i++) contribute(compounds[i][0], compounds[i][1]);\n\t}\n}\nfunction isValidStyleKey(key, validStyles, accept) {\n\treturn Boolean(key in validStyles || isWeb && (key === \"transitionProperty\" || key === \"transitionDuration\" || key === \"transitionTimingFunction\" || key === \"transitionDelay\" || key === \"transitionBehavior\") || accept && key in accept);\n}\nvar getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {\n\tvar _staticConfig_styleFrontend, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_style;\n\tvar conf = getConfig();\n\tif ((_staticConfig_styleFrontend = staticConfig.styleFrontend) === null || _staticConfig_styleFrontend === void 0 ? void 0 : _staticConfig_styleFrontend.normalizeStaticConfig) staticConfig = staticConfig.styleFrontend.normalizeStaticConfig(staticConfig, conf);\n\tvar driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;\n\tvar resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;\n\tif (props.passThrough) return null;\n\tif (isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) styleProps.noNormalize = \"values\";\n\tvar { shorthands } = conf;\n\tvar { isHOC, isText, isInput, variants, isReactNative, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;\n\tvar viewProps = {};\n\tvar mediaState$1 = styleProps.mediaState || mediaState;\n\tvar shouldDoClasses = acceptsClassName && isWeb && !styleProps.noClass;\n\tvar rulesToInsert = void 0;\n\tvar classNames = {};\n\tprops.space;\n\tvar hasMedia = false;\n\tvar pseudoGroups;\n\tvar mediaGroups;\n\tvar className = staticConfig.passthroughClassName || \"\";\n\tif (className) shouldDoClasses = false;\n\tvar validStyles$1 = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? stylePropsText : validStyles);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-setup`;\n\tvar styleState = {\n\t\tclassNames,\n\t\tconf,\n\t\tprops,\n\t\tstyleProps,\n\t\tcomponentState,\n\t\tstaticConfig,\n\t\tstyle: null,\n\t\ttheme,\n\t\tviewProps,\n\t\tcontext: componentContext,\n\t\tdebug,\n\t\tflatRulesToInsert: rulesToInsert,\n\t\tflatShouldDoClasses: shouldDoClasses,\n\t\tflatThemeName: themeName,\n\t\tflatMediaState: mediaState$1,\n\t\tflatGroupContext: groupContext,\n\t\tanimationDriver: resolvedDriver\n\t};\n\tif (process.env.IS_STATIC === \"is_static\") {\n\t\tvar { fallbackProps } = styleProps;\n\t\tif (fallbackProps) styleState.props = new Proxy(props, { get(_, key8, val2) {\n\t\t\tif (!Reflect.has(props, key8)) return Reflect.get(fallbackProps, key8);\n\t\t\treturn Reflect.get(props, key8);\n\t\t} });\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`style-state`;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && isClient) {\n\t\tif (isDevTools) {\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles 👇\");\n\t\t\tlog({\n\t\t\t\tprops,\n\t\t\t\tstaticConfig,\n\t\t\t\tshouldDoClasses,\n\t\t\t\tstyleProps,\n\t\t\t\trulesToInsert,\n\t\t\t\tcomponentState,\n\t\t\t\tstyleState,\n\t\t\t\ttheme: { ...theme }\n\t\t\t});\n\t\t}\n\t}\n\tvar { asChild } = props;\n\tvar { accept, neverSkipProps } = staticConfig;\n\tvar { noSkip, disableExpandShorthands, noExpand, styledContext } = styleProps;\n\tvar processedProps;\n\tvar styleFrontend = staticConfig.styleFrontend;\n\tif (styleFrontend && !props[STYLE_FRONTEND_PREPROCESSED]) processedProps = styleFrontend.preprocessProps(props, conf);\n\telse processedProps = props;\n\tvar { webContainerType } = conf.settings;\n\tvar parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;\n\tvar mergeStylePropAtCurrentPosition = function(styleProp) {\n\t\tif (styleProps.noMergeStyle || !styleProp) return;\n\t\tif (isHOC) {\n\t\t\tviewProps.style = normalizeStyle(styleProp);\n\t\t\treturn;\n\t\t}\n\t\tvar isArray = Array.isArray(styleProp);\n\t\tvar length = isArray ? styleProp.length : 1;\n\t\tfor (var index = 0; index < length; index++) {\n\t\t\tvar style2 = isArray ? styleProp[index] : styleProp;\n\t\t\tif (!style2) continue;\n\t\t\tif (style2[\"$$css\"]) {\n\t\t\t\tfor (var key8 in style2) clearDirectStyle(styleState, key8);\n\t\t\t\tObject.assign(styleState.classNames, style2);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar normalized = normalizeStyle(style2);\n\t\t\tvar styleOriginals = shouldTrackStyleTokenProvenance ? styleOriginalValues.get(style2) : void 0;\n\t\t\tfor (var key12 in normalized) {\n\t\t\t\tif (normalized[key12] == null) continue;\n\t\t\t\tcontributeStyleValue(styleState, key12, normalized[key12], mergeStyle, styleOriginals === null || styleOriginals === void 0 ? void 0 : styleOriginals[key12]);\n\t\t\t}\n\t\t}\n\t};\n\tvar flushForwardStylesToClasses = function() {\n\t\tif (!shouldDoClasses) return;\n\t\tflushDirectStyles(styleState, true);\n\t};\n\tvar contributeProp = function(keyOg, valOg) {\n\t\tvar keyInit = keyOg;\n\t\tvar valInit = valOg;\n\t\tif (styleFrontend && keyInit.startsWith(STYLE_FRONTEND_PASSTHROUGH_PREFIX)) keyInit = \"className\";\n\t\tif (keyInit === \"children\") {\n\t\t\tviewProps[keyInit] = valInit;\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"ref\") return;\n\t\tif (keyInit[0] === \"d\" && keyInit.startsWith(\"data-\")) return;\n\t\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`before-prop-${keyInit}`;\n\t\tif (process.env.NODE_ENV === \"test\" && keyInit === \"jestAnimatedStyle\") return;\n\t\tif (keyInit === \"transition\" || keyInit === \"transitionProperty\" || keyInit === \"transitionDuration\" || keyInit === \"transitionTimingFunction\" || keyInit === \"transitionDelay\" || keyInit === \"transitionBehavior\") return;\n\t\tif (accept) {\n\t\t\tvar accepted = accept[keyInit];\n\t\t\tif ((accepted === \"style\" || accepted === \"textStyle\") && valInit && (typeof valInit === \"undefined\" ? \"undefined\" : _type_of(valInit)) === \"object\") {\n\t\t\t\tviewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClass);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!disableExpandShorthands) {\n\t\t\tif (keyInit in shorthands) keyInit = shorthands[keyInit];\n\t\t}\n\t\tif (keyInit === \"className\") {\n\t\t\tif (typeof valInit === \"string\" && valInit) {\n\t\t\t\tclassName = `${className} ${valInit}`.trim();\n\t\t\t\tif (styleFrontend) {\n\t\t\t\t\tflushForwardStylesToClasses();\n\t\t\t\t\tshouldDoClasses = false;\n\t\t\t\t\tstyleState.flatShouldDoClasses = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (keyInit === \"style\") {\n\t\t\tmergeStylePropAtCurrentPosition(valInit);\n\t\t\treturn;\n\t\t}\n\t\tif (asChild) {\n\t\t\tvar defaults = getDefaultProps(staticConfig);\n\t\t\tif (defaults) {\n\t\t\t\tvar _defaults_keyOg;\n\t\t\t\tvar defaultVal = (_defaults_keyOg = defaults[keyOg]) !== null && _defaults_keyOg !== void 0 ? _defaults_keyOg : defaults[keyInit];\n\t\t\t\tif (defaultVal !== void 0 && valInit === defaultVal) return;\n\t\t\t}\n\t\t}\n\t\tif (keyInit in skipProps && !noSkip && !isHOC && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tif (keyInit === \"group\");\n\t\t\tif (keyInit === \"container\" && valInit) {}\n\t\t\tif (keyInit === \"transition\" && typeof valInit === \"string\") {\n\t\t\t\tvar _driver_animations;\n\t\t\t\tvar animationConfig = driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit];\n\t\t\t\tif (animationConfig && (driver === null || driver === void 0 ? void 0 : driver.outputStyle) === \"css\" && process.env.IS_STATIC === \"is_static\") valInit = `all ${animationConfig}`;\n\t\t\t\telse if (animationConfig) return;\n\t\t\t} else return;\n\t\t}\n\t\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && isFrontendProgram(valInit)) {\n\t\t\tif (isValidStyleKey(valInit.property, validStyles$1, accept)) contributeFrontendProgram(styleState, valInit, mergeStyle);\n\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${valInit.property}\" is not a valid style on this component; the frontend value is dropped.`);\n\t\t\treturn;\n\t\t}\n\t\tvar isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles$1, accept);\n\t\tif (isWeb) {\n\t\t\tvar _driver_View;\n\t\t\tif ((staticConfig.isReactNative || styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !((_driver_View = driver.View) === null || _driver_View === void 0 ? void 0 : _driver_View.acceptRenderProp)) && keyInit.startsWith(\"data-\")) {\n\t\t\t\tvar _viewProps2, _dataSet;\n\t\t\t\tkeyInit = keyInit.replace(\"data-\", \"\");\n\t\t\t\t(_viewProps2 = viewProps)[_dataSet = \"dataSet\"] || (_viewProps2[_dataSet] = {});\n\t\t\t\tviewProps[\"dataSet\"][keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (keyInit.startsWith(\"data-\")) {\n\t\t\t\tviewProps[keyInit] = valInit;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (!isValidStyleKeyInit) {\n\t\t\tif (!isAndroid) {\n\t\t\t\tif (keyInit === \"elevationAndroid\") return;\n\t\t\t}\n\t\t\tif (keyInit === \"userSelect\") {\n\t\t\t\tkeyInit = \"selectable\";\n\t\t\t\tvalInit = valInit !== \"none\";\n\t\t\t} else if (keyInit === \"textOverflow\") {\n\t\t\t\tif (isText && valInit === \"ellipsis\") {\n\t\t\t\t\tvar _viewProps1, _viewProps22;\n\t\t\t\t\tvar _numberOfLines;\n\t\t\t\t\t(_numberOfLines = (_viewProps1 = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps1.numberOfLines = 1);\n\t\t\t\t\tvar _ellipsizeMode;\n\t\t\t\t\t(_ellipsizeMode = (_viewProps22 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps22.ellipsizeMode = \"tail\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t} else if (keyInit.startsWith(\"data-\")) return;\n\t\t}\n\t\tvar isVariant = !isValidStyleKeyInit && variants && keyInit in variants;\n\t\tvar isStyleLikeKey = isValidStyleKeyInit || isVariant;\n\t\tvar isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;\n\t\tif (isStyleProp && (asChild === \"except-style\" || asChild === \"except-style-web\")) return;\n\t\tvar shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));\n\t\tvar parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];\n\t\tvar isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || parentVariant || keyInit in skipProps));\n\t\tvar shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\tconsole.groupCollapsed(` \\u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : \"\"} ${shouldPassThrough ? \"(pass)\" : \"\"}`);\n\t\t\tlog({\n\t\t\t\tisVariant,\n\t\t\t\tvalInit,\n\t\t\t\tshouldPassProp\n\t\t\t});\n\t\t\tif (isClient) log({\n\t\t\t\tvariants,\n\t\t\t\tvariant: variants === null || variants === void 0 ? void 0 : variants[keyInit],\n\t\t\t\tisVariant,\n\t\t\t\tisHOCShouldPassThrough,\n\t\t\t\tparentStaticConfig\n\t\t\t});\n\t\t}\n\t\tif (shouldPassThrough) {\n\t\t\tpassDownProp(viewProps, keyInit, valInit);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\tif (!isVariant) return;\n\t\t}\n\t\tif (!noSkip && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {\n\t\t\tvar _driver_animations1;\n\t\t\tif (keyInit in skipProps && !(keyInit === \"transition\" && typeof valInit === \"string\" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[valInit]))) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.groupEnd();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (isText || isInput) {\n\t\t\tif (valInit && (keyInit === \"fontFamily\" || keyInit === shorthands[\"fontFamily\"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;\n\t\t}\n\t\tvar disablePropMap = !isStyleLikeKey;\n\t\tif (!isHOC && isValidStyleKeyInit && valInit != null && !(valInit === \"unset\") && !(variants && keyInit in variants) && !(accept && keyInit in accept) && !(styledContext && keyInit in styledContext)) {\n\t\t\tcontributeStyleValue(styleState, keyInit, valInit, mergeStyle);\n\t\t\treturn;\n\t\t}\n\t\tpropMapper(keyInit, valInit, styleState, disablePropMap, function(key8, val2, originalVal, conditionSource) {\n\t\t\tvar _parentStaticConfig_variants;\n\t\t\tvar isStyledContextProp = styledContext && key8 in styledContext;\n\t\t\tif (key8 === \"className\") {\n\t\t\t\tif (typeof val2 === \"string\" && val2) className = `${className} ${val2}`.trim();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isHOC && disablePropMap && !isStyledContextProp) {\n\t\t\t\tif (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\tconsole.groupCollapsed(\" 💠 expanded\", keyInit, \"=>\", key8);\n\t\t\t\tlog(val2);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t\tif (val2 == null) return;\n\t\t\tif (accept && key8 in accept) {\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar isHostStyleKey = !isHOC && isValidStyleKey(key8, validStyles$1, accept) || isAndroid && key8 === \"elevation\";\n\t\t\tvar isContextProgramKey = !isHOC && Boolean(isStyledContextProp);\n\t\t\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && conditionSource !== void 0) {\n\t\t\t\tif (isHostStyleKey || isContextProgramKey) contributeVariantClauseValue(styleState, key8, val2, conditionSource, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\telse if (isHOC) {\n\t\t\t\t\tvar appended = appendFlatClause(viewProps[key8], conditionSource, val2);\n\t\t\t\t\tif (appended !== void 0) viewProps[key8] = appended;\n\t\t\t\t\telse if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key8}\" is not string-representable; dropping the clause`);\n\t\t\t\t} else if (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is not a valid style on this component; the conditional variant value is dropped.`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isHostStyleKey || isContextProgramKey) {\n\t\t\t\tcontributeStyleValue(styleState, key8, val2, mergeStyle, originalVal, !isHostStyleKey);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tisVariant = variants && key8 in variants;\n\t\t\tif (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key8)) {\n\t\t\t\tvar _props_key;\n\t\t\t\tviewProps[key8] = (_props_key = props[key8]) !== null && _props_key !== void 0 ? _props_key : val2;\n\t\t\t}\n\t\t\tif (isHOC && Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit])) {\n\t\t\t\tpassDownProp(viewProps, key8, val2);\n\t\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\t\t\tconsole.groupCollapsed(` - passing down prop ${key8}`);\n\t\t\t\t\tlog({\n\t\t\t\t\t\tval: val2,\n\t\t\t\t\t\tafter: { ...viewProps[key8] }\n\t\t\t\t\t});\n\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!isVariant) {\n\t\t\t\tif (isStyledContextProp) return;\n\t\t\t\tif (key8 in stylePropsAll && !isValidStyleKey(key8, validStyles$1, accept)) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] \"${key8}\" is a text style prop and this component is not text \\u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tviewProps[key8] = val2;\n\t\t\t}\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\t\ttry {\n\t\t\t\tlog(` \\u2714\\uFE0F expand complete`, keyInit);\n\t\t\t\tlog(\"style\", { ...styleState.style });\n\t\t\t\tlog(\"viewProps\", { ...viewProps });\n\t\t\t\tlog(\"transforms\", { ...styleState.flatTransforms });\n\t\t\t} catch (e) {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t};\n\tforEachPropInForwardOrder(processedProps, staticConfig, shorthands, contributeProp);\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-propsend`;\n\tvar conditionalStates = styleState.flatStateKeys || null;\n\tvar usesSafeArea = !!styleState.flatUsesSafeArea;\n\tif ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) {\n\t\tif (!hasMedia) hasMedia = /* @__PURE__ */ new Set();\n\t\tif (typeof hasMedia !== \"boolean\") {\n\t\t\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator = styleState.flatMediaKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\t\t\tvar key = _step.value;\n\t\t\t\t\thasMedia.add(key);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError = true;\n\t\t\t\t_iteratorError = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {\n\t\tpseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator1 = styleState.flatGroupKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n\t\t\t\tvar key1 = _step1.value;\n\t\t\t\tpseudoGroups.add(key1);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError1 = true;\n\t\t\t_iteratorError1 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError1) throw _iteratorError1;\n\t\t\t}\n\t\t}\n\t}\n\tif ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {\n\t\tmediaGroups || (mediaGroups = /* @__PURE__ */ new Set());\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = styleState.flatGroupMedia[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar key2 = _step2.value;\n\t\t\t\tmediaGroups.add(key2);\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t}\n\tvar effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;\n\tif (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;\n\tif (styleState.style) {\n\t\tif (\"containerType\" in styleState.style) delete styleState.style.containerType;\n\t\tif (\"containerName\" in styleState.style) delete styleState.style.containerName;\n\t}\n\tif (!(styleProps.noNormalize === false)) {\n\t\tif (styleState.style) {\n\t\t\tfixStyles(styleState.style);\n\t\t\tif (!styleProps.noExpand && !styleProps.noMergeStyle) {\n\t\t\t\tif (isWeb && (isReactNative ? (driver === null || driver === void 0 ? void 0 : driver.inputStyle) !== \"css\" : true)) styleToCSS(styleState.style);\n\t\t\t}\n\t\t}\n\t\tif (styleState.flatTransforms) {\n\t\t\tvar _styleState;\n\t\t\t(_styleState = styleState).style || (_styleState.style = {});\n\t\t\tmergeFlatTransforms(styleState.style, styleState.flatTransforms);\n\t\t}\n\t\tif (parentSplitStyles) {\n\t\t\tif (!shouldDoClasses) for (var key4 in parentSplitStyles.style) {\n\t\t\t\tvar _styleState1;\n\t\t\t\tif (key4 in classNames || styleState.style && key4 in styleState.style) continue;\n\t\t\t\t(_styleState1 = styleState).style || (_styleState1.style = {});\n\t\t\t\tstyleState.style[key4] = parentSplitStyles.style[key4];\n\t\t\t}\n\t\t}\n\t}\n\tif (viewProps.tabIndex === 0) {\n\t\tvar _viewProps;\n\t\tvar _accessible;\n\t\t(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);\n\t}\n\tvar style = styleState.style;\n\tif (style === null || style === void 0 ? void 0 : style.fontFamily) {\n\t\tvar _getFont;\n\t\tvar faceInfo = (_getFont = getFont(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;\n\t\tif (faceInfo) {\n\t\t\tvar _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;\n\t\t\tvar overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || \"normal\"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;\n\t\t\tif (overrideFace) {\n\t\t\t\tstyle.fontFamily = overrideFace;\n\t\t\t\tstyleState.fontFamily = overrideFace;\n\t\t\t\tdelete style.fontWeight;\n\t\t\t\tdelete style.fontStyle;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && debug && debug !== \"profile\") log(`Found fontFamily native: ${style.fontFamily}`, faceInfo);\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-pre-result`;\n\tif (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {\n\t\tvar provenance = {};\n\t\tvar hasProvenance = false;\n\t\tfor (var key5 in styleState.tokenProvenance) {\n\t\t\tprovenance[key5] = {\n\t\t\t\ttoken: styleState.tokenProvenance[key5],\n\t\t\t\ttheme: themeName\n\t\t\t};\n\t\t\thasProvenance = true;\n\t\t}\n\t\tif (hasProvenance) setStyleTokenProvenance(styleState.style, provenance);\n\t}\n\tvar result = {\n\t\thasMedia,\n\t\tfontFamily: styleState.fontFamily,\n\t\tviewProps,\n\t\tstyle: styleState.style,\n\t\tclassNames,\n\t\trulesToInsert,\n\t\tpseudoGroups,\n\t\tmediaGroups,\n\t\toverriddenContextProps: styleState.overriddenContextProps\n\t};\n\tif (effectiveTransition != null) result.effectiveTransition = effectiveTransition;\n\tif (conditionalStates) result.programStates = conditionalStates;\n\tif (usesSafeArea) result.usesSafeArea = true;\n\tif (getDirectDynamicThemeAccess(styleState)) result.dynamicThemeAccess = true;\n\tif (styleState.flatEnterKeys || styleState.flatExitKeys) {\n\t\tvar effectiveKeys = function(keys) {\n\t\t\tif (!keys) return;\n\t\t\tvar out = /* @__PURE__ */ new Set();\n\t\t\tvar _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;\n\t\t\ttry {\n\t\t\t\tfor (var _iterator4 = keys[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n\t\t\t\t\tvar key8 = _step4.value;\n\t\t\t\t\tout.add(key8 === \"--t-x\" || key8 === \"--t-y\" ? \"translate\" : key8 === \"--t-scale-x\" || key8 === \"--t-scale-y\" ? \"scale\" : key8);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t_didIteratorError4 = true;\n\t\t\t\t_iteratorError4 = err;\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (!_iteratorNormalCompletion4 && _iterator4.return != null) _iterator4.return();\n\t\t\t\t} finally {\n\t\t\t\t\tif (_didIteratorError4) throw _iteratorError4;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn out;\n\t\t};\n\t\tresult.programLifecycleStyleKeys = {\n\t\t\tenter: effectiveKeys(styleState.flatEnterKeys),\n\t\t\texit: effectiveKeys(styleState.flatExitKeys)\n\t\t};\n\t}\n\tvar asChildExceptStyleLike = asChild === \"except-style\" || asChild === \"except-style-web\";\n\tif (!styleProps.noMergeStyle) {\n\t\tif (!asChildExceptStyleLike) {\n\t\t\tvar style1 = styleState.style;\n\t\t\tif (style1) viewProps.style = style1;\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tif (isClient && isDevTools) {\n\t\t\tconsole.groupEnd();\n\t\t\tconsole.groupCollapsed(\"🔹 getSplitStyles ===>\");\n\t\t\ttry {\n\t\t\t\tvar logs = {\n\t\t\t\t\t...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },\n\t\t\t\t\t...result,\n\t\t\t\t\tclassName,\n\t\t\t\t\tcomponentState,\n\t\t\t\t\tviewProps,\n\t\t\t\t\trulesToInsert,\n\t\t\t\t\tparentSplitStyles\n\t\t\t\t};\n\t\t\t\tfor (var key7 in logs) log(key7, logs[key7]);\n\t\t\t} catch (e) {}\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tif (process.env.NODE_ENV === \"development\" && (debug === \"profile\" || globalThis.time)) time`split-styles-done`;\n\treturn result;\n};\nfunction mergeFlatTransforms(target, flatTransforms) {\n\tvar transform = [];\n\tif (\"x\" in flatTransforms) transform.push({ translateX: flatTransforms.x });\n\tif (\"y\" in flatTransforms) transform.push({ translateY: flatTransforms.y });\n\tif (\"rotate\" in flatTransforms) transform.push({ rotate: flatTransforms.rotate });\n\tvar hasScaleX = \"scaleX\" in flatTransforms;\n\tvar hasScaleY = \"scaleY\" in flatTransforms;\n\tif (hasScaleX && hasScaleY && Object.is(flatTransforms.scaleX, flatTransforms.scaleY)) transform.push({ scale: flatTransforms.scaleX });\n\telse {\n\t\tif (hasScaleX) transform.push({ scaleX: flatTransforms.scaleX });\n\t\tif (hasScaleY) transform.push({ scaleY: flatTransforms.scaleY });\n\t\tif (!hasScaleX && !hasScaleY && \"scale\" in flatTransforms) transform.push({ scale: flatTransforms.scale });\n\t}\n\tvar keys = [];\n\tfor (var key in flatTransforms) if (key !== \"x\" && key !== \"y\" && key !== \"rotate\" && key !== \"scale\" && key !== \"scaleX\" && key !== \"scaleY\") keys.push(key);\n\tkeys.sort(sortString);\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar key1 = _step.value;\n\t\t\ttransform.push({ [mapTransformKeys[key1] || key1]: flatTransforms[key1] });\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\tif (Array.isArray(target.transform)) transform.push(...target.transform);\n\ttarget.transform = transform;\n}\nfunction mergeStyle(styleState, key, val, _importance) {\n\tvar disableNormalize = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, originalVal = arguments.length > 5 ? arguments[5] : void 0;\n\tvar _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _contextConfig_propKeys;\n\tvar { viewProps, styleProps, staticConfig } = styleState;\n\tvar contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);\n\tvar contextProps = contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props;\n\tvar inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;\n\tvar contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\tif (contextProps && key in contextProps || (contextPropKeys === null || contextPropKeys === void 0 ? void 0 : contextPropKeys.includes(key)) || (contextConfig === null || contextConfig === void 0 ? void 0 : (_contextConfig_propKeys = contextConfig.propKeys) === null || _contextConfig_propKeys === void 0 ? void 0 : _contextConfig_propKeys.includes(key))) {\n\t\tvar _styleState_originalContextPropValues;\n\t\tvar _styleState;\n\t\t(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});\n\t\tvar originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];\n\t\tvar _ref;\n\t\tstyleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;\n\t}\n\tif (key in stylePropsTransform) {\n\t\tvar _styleState1;\n\t\t(_styleState1 = styleState).flatTransforms || (_styleState1.flatTransforms = {});\n\t\tstyleState.flatTransforms[key] = val;\n\t} else {\n\t\tvar out = isWeb && !disableNormalize && !styleProps.noNormalize ? normalizeValueWithProperty(val, key) : val;\n\t\tif (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;\n\t\telse {\n\t\t\tvar _styleState2;\n\t\t\t(_styleState2 = styleState).style || (_styleState2.style = {});\n\t\t\tstyleState.style[key] = key === \"transform\" && Array.isArray(out) ? [...out] : out;\n\t\t\tif (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);\n\t\t}\n\t}\n}\nfunction recordStyleTokenProvenance(styleState, key, originalVal) {\n\tvar _styleState_conf_themes;\n\tvar tokenName = typeof originalVal === \"string\" ? originalVal : \"\";\n\tif (tokenName) {\n\t\tvar slash = tokenName.lastIndexOf(\"/\");\n\t\tvar opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));\n\t\tif (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);\n\t}\n\tif (tokenName !== \"\" && (Object.prototype.hasOwnProperty.call(styleState.theme, tokenName) || Object.prototype.hasOwnProperty.call(((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || \"\"]) || {}, tokenName) || Object.values(styleState.conf.tokensParsed).some(function(category) {\n\t\treturn Object.prototype.hasOwnProperty.call(category, tokenName);\n\t}))) {\n\t\tvar _styleState;\n\t\t((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;\n\t} else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];\n}\nvar getSubStyle = function(styleState, _subKey, styleIn, avoidMergeTransform) {\n\tvar { staticConfig, conf, styleProps } = styleState;\n\tvar styleOut = {};\n\tvar originalValues;\n\tvar styleInOriginalValues = styleOriginalValues.get(styleIn);\n\tvar parentProps = styleState.props;\n\tstyleState.props = Object.create(parentProps, Object.getOwnPropertyDescriptors(styleIn));\n\ttry {\n\t\tvar _loop = function(key1) {\n\t\t\tvar val = styleIn[key1];\n\t\t\tkey1 = conf.shorthands[key1] || key1;\n\t\t\tif (!staticConfig.isHOC && key1 in skipProps && !styleProps.noSkip) return key = key1, \"continue\";\n\t\t\tpropMapper(key1, val, styleState, false, function(skey, sval, originalVal) {\n\t\t\t\tvar _styleInOriginalValues_skey;\n\t\t\t\tvar trackedOriginalVal = (_styleInOriginalValues_skey = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[skey]) !== null && _styleInOriginalValues_skey !== void 0 ? _styleInOriginalValues_skey : originalVal;\n\t\t\t\tif (trackedOriginalVal !== void 0) {\n\t\t\t\t\toriginalValues || (originalValues = {});\n\t\t\t\t\toriginalValues[skey] = trackedOriginalVal;\n\t\t\t\t}\n\t\t\t\tif (!avoidMergeTransform && skey in stylePropsTransform) mergeTransform(styleOut, skey, sval);\n\t\t\t\telse styleOut[skey] = styleProps.noNormalize ? sval : normalizeValueWithProperty(sval, key1);\n\t\t\t});\n\t\t\tkey = key1;\n\t\t};\n\t\tfor (var key in styleIn) _loop(key);\n\t} finally {\n\t\tstyleState.props = parentProps;\n\t}\n\tif (!avoidMergeTransform) {\n\t\tvar _styleState_style;\n\t\tvar parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;\n\t\tvar flatTransforms = styleState.flatTransforms;\n\t\tvar styleOutTransform = styleOut.transform;\n\t\tif (Array.isArray(styleOutTransform) && styleOutTransform.length) {\n\t\t\tvar len = styleOutTransform.length;\n\t\t\tif (Array.isArray(parentTransform)) {\n\t\t\t\tvar merged = [];\n\t\t\t\touter: for (var i = 0; i < parentTransform.length; i++) {\n\t\t\t\t\tvar pt = parentTransform[i];\n\t\t\t\t\tfor (var pk in pt) {\n\t\t\t\t\t\tfor (var j = 0; j < len; j++) for (var sk in styleOutTransform[j]) {\n\t\t\t\t\t\t\tif (pk === sk) continue outer;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmerged.push(pt);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);\n\t\t\t\tstyleOut.transform = merged;\n\t\t\t}\n\t\t\tif (flatTransforms) outer: for (var fk in flatTransforms) {\n\t\t\t\tvar ck = fk === \"x\" ? \"translateX\" : fk === \"y\" ? \"translateY\" : fk;\n\t\t\t\tfor (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {\n\t\t\t\t\tif (ck === sk1) continue outer;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmergeTransform(styleOut, fk, flatTransforms[fk]);\n\t\t\t}\n\t\t} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);\n\t}\n\tif (!styleProps.noNormalize) fixStyles(styleOut);\n\tif (originalValues) styleOriginalValues.set(styleOut, originalValues);\n\treturn styleOut;\n};\nisWeb && React.useInsertionEffect;\nvar useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m) {\n\t\"use no memo\";\n\treturn getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);\n};\nvar mergeTransform = function(obj, key, val) {\n\tvar backwards = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n\tvar _obj;\n\tif (typeof obj.transform === \"string\") return;\n\t(_obj = obj).transform || (_obj.transform = []);\n\tobj.transform[backwards ? \"unshift\" : \"push\"]({ [mapTransformKeys[key] || key]: val });\n};\nvar mapTransformKeys = {\n\tx: \"translateX\",\n\ty: \"translateY\"\n};\nfunction passDownProp(viewProps, key, val) {\n\tviewProps[key] = val;\n}\nfunction normalizeStyle(style) {\n\tvar out = {};\n\tfor (var key in style) {\n\t\tvar val = style[key];\n\t\tif (key in stylePropsTransform) mergeTransform(out, key, val);\n\t\telse out[key] = normalizeValueWithProperty(val, key);\n\t}\n\tif (isWeb && Array.isArray(out.transform)) out.transform = transformsToString(out.transform);\n\tfixStyles(out);\n\treturn out;\n}\n\nexport { STYLE_TOKEN_PROVENANCE_KEY, getSplitStyles, getStyleTokenProvenance, getSubStyle, isValidStyleKey, styleOriginalValues, useSplitStyles };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,SAAS,SAAS,KAAK;CACtB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAC/F;AACA,IAAI,kCAAkC,QAAQ,IAAI,aAAa,iBAAiB,QAAQ,IAAI,0CAA0C;AACtI,SAAS,uBAAuB,UAAU,QAAQ;CACjD,IAAI,MAAM,QAAQ,QAAQ,GAAG,OAAO,SAAS,KAAK,SAAS,OAAO;EACjE,OAAO,OAAO,GAAG,OAAO,MAAM;CAC/B,CAAC;CACD,OAAO,OAAO,GAAG,UAAU,MAAM;AAClC;AACA,SAAS,uBAAuB,iBAAiB,OAAO;CACvD,KAAK,IAAI,OAAO,iBAAiB;EAChC,IAAI,QAAQ,SAAS;EACrB,IAAI,CAAC,uBAAuB,gBAAgB,MAAM,MAAM,IAAI,GAAG,OAAO;CACvE;CACA,OAAO;AACR;AACA,IAAI,sCAAsC,IAAI,QAAQ;AACtD,SAAS,kBAAkB,cAAc;CACxC,IAAI,UAAU,oBAAoB,IAAI,YAAY;CAClD,IAAI,YAAY,KAAK,GAAG;EACvB,UAAU;EACV,IAAI,WAAW,aAAa;EAC5B,IAAI,UAAU,KAAK,IAAI,OAAO,UAAU,CAAC,YAAY,UAAU,CAAC,IAAI,KAAK,CAAC,KAAK,SAAS,IAAI,CAAC;EAC7F,oBAAoB,IAAI,cAAc,OAAO;CAC9C;CACA,OAAO;AACR;AACA,SAAS,kCAA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SAAS,aAAa,WAAW,KAAK,KAAK;CAC1C,UAAU,OAAO;AAClB;AACA,SAAS,eAAe,OAAO;CAC9B,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,OAAO;EACtB,IAAI,MAAM,MAAM;EAChB,IAAI,OAAO,qBAAqB,eAAe,KAAK,KAAK,GAAG;OACvD,IAAI,OAAO,2BAA2B,KAAK,GAAG;CACpD;CACA,IAAI,SAAS,MAAM,QAAQ,IAAI,SAAS,GAAG,IAAI,YAAY,mBAAmB,IAAI,SAAS;CAC3F,UAAU,GAAG;CACb,OAAO;AACR"}
@@ -8,7 +8,7 @@ function mergeStyleBranch(parentBranch, ourBranch) {
8
8
  out[key] = parentBranch[key];
9
9
  }
10
10
  for (const key in ourBranch) {
11
- out[key] = key in parentBranch ? mergeFlatValues(parentBranch[key], ourBranch[key]) : ourBranch[key];
11
+ out[key] = key in parentBranch ? process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled" ? ourBranch[key] : mergeFlatValues(parentBranch[key], ourBranch[key]) : ourBranch[key];
12
12
  }
13
13
  return out;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mergeVariants.js","names":[],"sources":["esm/helpers/mergeVariants.js"],"sourcesContent":["import { mergeFlatValues } from \"@tamagui/style-grammar/runtime\";\nimport { isPlainObject } from \"./isObj\";\nfunction mergeStyleBranch(parentBranch, ourBranch) {\n const out = {};\n for (const key in parentBranch) {\n if (key in ourBranch) continue;\n out[key] = parentBranch[key];\n }\n for (const key in ourBranch) {\n out[key] = key in parentBranch ? mergeFlatValues(parentBranch[key], ourBranch[key]) : ourBranch[key];\n }\n return out;\n}\nconst mergeVariants = (parentVariants, ourVariants, level = 0) => {\n if (!ourVariants) {\n return parentVariants || {};\n }\n if (!parentVariants) {\n return ourVariants || {};\n }\n const variants = {};\n for (const key in ourVariants) {\n const parentVariant = parentVariants?.[key];\n const ourVariant = ourVariants[key];\n if (!isPlainObject(parentVariant) || !isPlainObject(ourVariant)) {\n variants[key] = ourVariant;\n } else {\n if (level === 0) {\n variants[key] = mergeVariants(parentVariant, ourVariant, level + 1);\n } else {\n variants[key] = mergeStyleBranch(parentVariant, ourVariant);\n }\n }\n }\n return {\n ...parentVariants,\n ...variants\n };\n};\nexport {\n mergeVariants\n};\n//# sourceMappingURL=mergeVariants.js.map\n"],"mappings":";;;;AAEA,SAAS,iBAAiB,cAAc,WAAW;CACjD,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,cAAc;EAC9B,IAAI,OAAO,WAAW;EACtB,IAAI,OAAO,aAAa;CAC1B;CACA,KAAK,MAAM,OAAO,WAAW;EAC3B,IAAI,OAAO,OAAO,eAAe,gBAAgB,aAAa,MAAM,UAAU,IAAI,IAAI,UAAU;CAClG;CACA,OAAO;AACT;AACA,MAAM,iBAAiB,gBAAgB,aAAa,QAAQ,MAAM;CAChE,IAAI,CAAC,aAAa;EAChB,OAAO,kBAAkB,CAAC;CAC5B;CACA,IAAI,CAAC,gBAAgB;EACnB,OAAO,eAAe,CAAC;CACzB;CACA,MAAM,WAAW,CAAC;CAClB,KAAK,MAAM,OAAO,aAAa;EAC7B,MAAM,gBAAgB,iBAAiB;EACvC,MAAM,aAAa,YAAY;EAC/B,IAAI,CAAC,cAAc,aAAa,KAAK,CAAC,cAAc,UAAU,GAAG;GAC/D,SAAS,OAAO;EAClB,OAAO;GACL,IAAI,UAAU,GAAG;IACf,SAAS,OAAO,cAAc,eAAe,YAAY,QAAQ,CAAC;GACpE,OAAO;IACL,SAAS,OAAO,iBAAiB,eAAe,UAAU;GAC5D;EACF;CACF;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;AACF"}
1
+ {"version":3,"file":"mergeVariants.js","names":[],"sources":["esm/helpers/mergeVariants.js"],"sourcesContent":["import { mergeFlatValues } from \"@tamagui/style-grammar/runtime\";\nimport { isPlainObject } from \"./isObj\";\nfunction mergeStyleBranch(parentBranch, ourBranch) {\n const out = {};\n for (const key in parentBranch) {\n if (key in ourBranch) continue;\n out[key] = parentBranch[key];\n }\n for (const key in ourBranch) {\n out[key] = key in parentBranch ? process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === \"disabled\" ? ourBranch[key] : mergeFlatValues(parentBranch[key], ourBranch[key]) : ourBranch[key];\n }\n return out;\n}\nconst mergeVariants = (parentVariants, ourVariants, level = 0) => {\n if (!ourVariants) {\n return parentVariants || {};\n }\n if (!parentVariants) {\n return ourVariants || {};\n }\n const variants = {};\n for (const key in ourVariants) {\n const parentVariant = parentVariants?.[key];\n const ourVariant = ourVariants[key];\n if (!isPlainObject(parentVariant) || !isPlainObject(ourVariant)) {\n variants[key] = ourVariant;\n } else {\n if (level === 0) {\n variants[key] = mergeVariants(parentVariant, ourVariant, level + 1);\n } else {\n variants[key] = mergeStyleBranch(parentVariant, ourVariant);\n }\n }\n }\n return {\n ...parentVariants,\n ...variants\n };\n};\nexport {\n mergeVariants\n};\n//# sourceMappingURL=mergeVariants.js.map\n"],"mappings":";;;;AAEA,SAAS,iBAAiB,cAAc,WAAW;CACjD,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,cAAc;EAC9B,IAAI,OAAO,WAAW;EACtB,IAAI,OAAO,aAAa;CAC1B;CACA,KAAK,MAAM,OAAO,WAAW;EAC3B,IAAI,OAAO,OAAO,eAAe,QAAQ,IAAI,wCAAwC,aAAa,UAAU,OAAO,gBAAgB,aAAa,MAAM,UAAU,IAAI,IAAI,UAAU;CACpL;CACA,OAAO;AACT;AACA,MAAM,iBAAiB,gBAAgB,aAAa,QAAQ,MAAM;CAChE,IAAI,CAAC,aAAa;EAChB,OAAO,kBAAkB,CAAC;CAC5B;CACA,IAAI,CAAC,gBAAgB;EACnB,OAAO,eAAe,CAAC;CACzB;CACA,MAAM,WAAW,CAAC;CAClB,KAAK,MAAM,OAAO,aAAa;EAC7B,MAAM,gBAAgB,iBAAiB;EACvC,MAAM,aAAa,YAAY;EAC/B,IAAI,CAAC,cAAc,aAAa,KAAK,CAAC,cAAc,UAAU,GAAG;GAC/D,SAAS,OAAO;EAClB,OAAO;GACL,IAAI,UAAU,GAAG;IACf,SAAS,OAAO,cAAc,eAAe,YAAY,QAAQ,CAAC;GACpE,OAAO;IACL,SAAS,OAAO,iBAAiB,eAAe,UAAU;GAC5D;EACF;CACF;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;AACF"}
@@ -8,7 +8,7 @@ function mergeStyleBranch(parentBranch, ourBranch) {
8
8
  out[key] = parentBranch[key];
9
9
  }
10
10
  for (var key1 in ourBranch) {
11
- out[key1] = key1 in parentBranch ? mergeFlatValues(parentBranch[key1], ourBranch[key1]) : ourBranch[key1];
11
+ out[key1] = key1 in parentBranch ? process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled" ? ourBranch[key1] : mergeFlatValues(parentBranch[key1], ourBranch[key1]) : ourBranch[key1];
12
12
  }
13
13
  return out;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mergeVariants.native.js","names":[],"sources":["esm/helpers/mergeVariants.native.js"],"sourcesContent":["import { mergeFlatValues } from \"@tamagui/style-grammar/runtime\";\nimport { isPlainObject } from \"./isObj\";\nfunction mergeStyleBranch(parentBranch, ourBranch) {\n var out = {};\n for (var key in parentBranch) {\n if (key in ourBranch) continue;\n out[key] = parentBranch[key];\n }\n for (var key1 in ourBranch) {\n out[key1] = key1 in parentBranch ? mergeFlatValues(parentBranch[key1], ourBranch[key1]) : ourBranch[key1];\n }\n return out;\n}\nvar mergeVariants = function(parentVariants, ourVariants) {\n var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;\n if (!ourVariants) {\n return parentVariants || {};\n }\n if (!parentVariants) {\n return ourVariants || {};\n }\n var variants = {};\n for (var key in ourVariants) {\n var parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[key];\n var ourVariant = ourVariants[key];\n if (!isPlainObject(parentVariant) || !isPlainObject(ourVariant)) {\n variants[key] = ourVariant;\n } else {\n if (level === 0) {\n variants[key] = mergeVariants(parentVariant, ourVariant, level + 1);\n } else {\n variants[key] = mergeStyleBranch(parentVariant, ourVariant);\n }\n }\n }\n return {\n ...parentVariants,\n ...variants\n };\n};\nexport {\n mergeVariants\n};\n//# sourceMappingURL=mergeVariants.js.map\n"],"mappings":";;;;AAEA,SAAS,iBAAiB,cAAc,WAAW;CACjD,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,cAAc;EAC5B,IAAI,OAAO,WAAW;EACtB,IAAI,OAAO,aAAa;CAC1B;CACA,KAAK,IAAI,QAAQ,WAAW;EAC1B,IAAI,QAAQ,QAAQ,eAAe,gBAAgB,aAAa,OAAO,UAAU,KAAK,IAAI,UAAU;CACtG;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,SAAS,gBAAgB,aAAa;CACxD,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC7E,IAAI,CAAC,aAAa;EAChB,OAAO,kBAAkB,CAAC;CAC5B;CACA,IAAI,CAAC,gBAAgB;EACnB,OAAO,eAAe,CAAC;CACzB;CACA,IAAI,WAAW,CAAC;CAChB,KAAK,IAAI,OAAO,aAAa;EAC3B,IAAI,gBAAgB,mBAAmB,QAAQ,mBAAmB,KAAK,IAAI,KAAK,IAAI,eAAe;EACnG,IAAI,aAAa,YAAY;EAC7B,IAAI,CAAC,cAAc,aAAa,KAAK,CAAC,cAAc,UAAU,GAAG;GAC/D,SAAS,OAAO;EAClB,OAAO;GACL,IAAI,UAAU,GAAG;IACf,SAAS,OAAO,cAAc,eAAe,YAAY,QAAQ,CAAC;GACpE,OAAO;IACL,SAAS,OAAO,iBAAiB,eAAe,UAAU;GAC5D;EACF;CACF;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;AACF"}
1
+ {"version":3,"file":"mergeVariants.native.js","names":[],"sources":["esm/helpers/mergeVariants.native.js"],"sourcesContent":["import { mergeFlatValues } from \"@tamagui/style-grammar/runtime\";\nimport { isPlainObject } from \"./isObj\";\nfunction mergeStyleBranch(parentBranch, ourBranch) {\n var out = {};\n for (var key in parentBranch) {\n if (key in ourBranch) continue;\n out[key] = parentBranch[key];\n }\n for (var key1 in ourBranch) {\n out[key1] = key1 in parentBranch ? process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === \"disabled\" ? ourBranch[key1] : mergeFlatValues(parentBranch[key1], ourBranch[key1]) : ourBranch[key1];\n }\n return out;\n}\nvar mergeVariants = function(parentVariants, ourVariants) {\n var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;\n if (!ourVariants) {\n return parentVariants || {};\n }\n if (!parentVariants) {\n return ourVariants || {};\n }\n var variants = {};\n for (var key in ourVariants) {\n var parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[key];\n var ourVariant = ourVariants[key];\n if (!isPlainObject(parentVariant) || !isPlainObject(ourVariant)) {\n variants[key] = ourVariant;\n } else {\n if (level === 0) {\n variants[key] = mergeVariants(parentVariant, ourVariant, level + 1);\n } else {\n variants[key] = mergeStyleBranch(parentVariant, ourVariant);\n }\n }\n }\n return {\n ...parentVariants,\n ...variants\n };\n};\nexport {\n mergeVariants\n};\n//# sourceMappingURL=mergeVariants.js.map\n"],"mappings":";;;;AAEA,SAAS,iBAAiB,cAAc,WAAW;CACjD,IAAI,MAAM,CAAC;CACX,KAAK,IAAI,OAAO,cAAc;EAC5B,IAAI,OAAO,WAAW;EACtB,IAAI,OAAO,aAAa;CAC1B;CACA,KAAK,IAAI,QAAQ,WAAW;EAC1B,IAAI,QAAQ,QAAQ,eAAe,QAAQ,IAAI,wCAAwC,aAAa,UAAU,QAAQ,gBAAgB,aAAa,OAAO,UAAU,KAAK,IAAI,UAAU;CACzL;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,SAAS,gBAAgB,aAAa;CACxD,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC7E,IAAI,CAAC,aAAa;EAChB,OAAO,kBAAkB,CAAC;CAC5B;CACA,IAAI,CAAC,gBAAgB;EACnB,OAAO,eAAe,CAAC;CACzB;CACA,IAAI,WAAW,CAAC;CAChB,KAAK,IAAI,OAAO,aAAa;EAC3B,IAAI,gBAAgB,mBAAmB,QAAQ,mBAAmB,KAAK,IAAI,KAAK,IAAI,eAAe;EACnG,IAAI,aAAa,YAAY;EAC7B,IAAI,CAAC,cAAc,aAAa,KAAK,CAAC,cAAc,UAAU,GAAG;GAC/D,SAAS,OAAO;EAClB,OAAO;GACL,IAAI,UAAU,GAAG;IACf,SAAS,OAAO,cAAc,eAAe,YAAY,QAAQ,CAAC;GACpE,OAAO;IACL,SAAS,OAAO,iBAAiB,eAAe,UAAU;GAC5D;EACF;CACF;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;AACF"}
@@ -37,7 +37,7 @@ const propMapper = (key, value, styleState, disabled, map) => {
37
37
  if (key in conf.shorthands) key = conf.shorthands[key];
38
38
  }
39
39
  const originalValue = value;
40
- if (value === "safe" && isSafeAreaKey(key)) {
40
+ if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && value === "safe" && isSafeAreaKey(key)) {
41
41
  const expanded = expandSafeAreaValue(key);
42
42
  if (expanded) {
43
43
  for (let i = 0; i < expanded.length; i++) {
@@ -68,7 +68,7 @@ const propMapper = (key, value, styleState, disabled, map) => {
68
68
  };
69
69
  const resolveVariants = (key, value, styleProps, styleState, parentVariantKey) => {
70
70
  const variantDefinition = styleState.staticConfig.variants?.[key];
71
- if (typeof value === "string" && value.indexOf(":") !== -1 && !(variantDefinition && typeof variantDefinition === "object" && value in variantDefinition)) {
71
+ if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && typeof value === "string" && value.indexOf(":") !== -1 && !(variantDefinition && typeof variantDefinition === "object" && value in variantDefinition)) {
72
72
  const starts = [];
73
73
  const ends = [];
74
74
  const modifiers = [];
@@ -1 +1 @@
1
- {"version":3,"file":"propMapper.js","names":[],"sources":["esm/helpers/propMapper.js"],"sourcesContent":["import { scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { variantResolverNames } from \"../types\";\nimport { getCondition } from \"./directStyle\";\nimport { expandStyle } from \"./expandStyle\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { getVariantExtras } from \"./getVariantExtras\";\nimport { isObj } from \"./isObj\";\nimport { normalizeStyle } from \"./normalizeStyle\";\nimport { isRemValue, resolveRem } from \"./resolveRem\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { skipProps } from \"./skipProps\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\n\nexport * from \"./tokenCategories\"\n\nfunction appendFlatClause(prev, conditionSource, value) {\n\tif (prev != null && typeof prev !== \"string\" && typeof prev !== \"number\") return;\n\tif (typeof value !== \"string\" && typeof value !== \"number\") return;\n\treturn prev == null ? `${conditionSource}:${value}` : `${prev} ${conditionSource}:${value}`;\n}\nconst propMapper = (key, value, styleState, disabled, map) => {\n\tif (disabled) return map(key, value);\n\tif (key === \"elevationAndroid\") return;\n\tconst { conf, styleProps, staticConfig } = styleState;\n\tconst { variants } = staticConfig;\n\tif (!styleProps.noExpand) {\n\t\tif (variants && key in variants) {\n\t\t\tconst variantValue = resolveVariants(key, value, styleProps, styleState, \"\");\n\t\t\tif (variantValue) {\n\t\t\t\tfor (const entry of variantValue) map(entry[0], entry[1], entry[2], entry[3]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.disableExpandShorthands) {\n\t\tif (key in conf.shorthands) key = conf.shorthands[key];\n\t}\n\tconst originalValue = value;\n\tif (value === \"safe\" && isSafeAreaKey(key)) {\n\t\tconst expanded = expandSafeAreaValue(key);\n\t\tif (expanded) {\n\t\t\tfor (let i = 0; i < expanded.length; i++) {\n\t\t\t\tconst [nkey, nvalue] = expanded[i];\n\t\t\t\tmap(nkey, nvalue, originalValue);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tif (value != null) {\n\t\tif (typeof value === \"string\") value = isRemValue(value) ? resolveRem(value) : value;\n\t\telse if (isVariable(value)) value = resolveVariableValue(key, value, styleProps.resolveValues);\n\t\telse if (isRemValue(value)) value = resolveRem(value);\n\t}\n\tif (value != null) {\n\t\tif (key === \"fontFamily\" && typeof originalValue === \"string\") {\n\t\t\tif (originalValue in conf.fontsParsed) styleState.fontFamily = originalValue;\n\t\t}\n\t\tconst expanded = styleProps.noExpand || typeof value === \"string\" ? null : expandStyle(key, value, conf.settings.styleCompat || \"web\");\n\t\tif (expanded) {\n\t\t\tconst max = expanded.length;\n\t\t\tfor (let i = 0; i < max; i++) {\n\t\t\t\tconst [nkey, nvalue, noriginalValue] = expanded[i];\n\t\t\t\tmap(nkey, nvalue, noriginalValue ?? originalValue);\n\t\t\t}\n\t\t} else map(key, value, originalValue);\n\t}\n};\nconst resolveVariants = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst variantDefinition = styleState.staticConfig.variants?.[key];\n\tif (typeof value === \"string\" && value.indexOf(\":\") !== -1 && !(variantDefinition && typeof variantDefinition === \"object\" && value in variantDefinition)) {\n\t\tconst starts = [];\n\t\tconst ends = [];\n\t\tconst modifiers = [];\n\t\tlet pendingModifier;\n\t\tlet sawClause = false;\n\t\tlet refused = false;\n\t\tscanFlatValue(value, {\n\t\t\tsegment(start, end, isBase) {\n\t\t\t\tif (start === end) {\n\t\t\t\t\tif (!isBase) refused = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tstarts.push(start);\n\t\t\t\tends.push(end);\n\t\t\t\tmodifiers.push(pendingModifier);\n\t\t\t},\n\t\t\tchain(start, end) {\n\t\t\t\tif (refused) return false;\n\t\t\t\tconst source = value.slice(start, end);\n\t\t\t\tif (!getCondition(styleState, source)) {\n\t\t\t\t\trefused = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tpendingModifier = source;\n\t\t\t\tsawClause = true;\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\terror() {\n\t\t\t\trefused = true;\n\t\t\t}\n\t\t});\n\t\tif (refused) return [];\n\t\tif (sawClause) {\n\t\t\tlet entries;\n\t\t\tfor (let index = 0; index < starts.length; index++) {\n\t\t\t\tconst resolved = resolveVariantValue(key, value.slice(starts[index], ends[index]), styleProps, styleState, parentVariantKey);\n\t\t\t\tif (!resolved) continue;\n\t\t\t\tentries ||= [];\n\t\t\t\tconst modifier = modifiers[index];\n\t\t\t\tfor (const entry of resolved) {\n\t\t\t\t\tif (modifier !== void 0) entry[3] = modifier;\n\t\t\t\t\tentries.push(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn entries || [];\n\t\t}\n\t}\n\treturn resolveVariantValue(key, value, styleProps, styleState, parentVariantKey);\n};\nconst resolveVariantValue = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst { staticConfig, conf, debug } = styleState;\n\tconst { variants } = staticConfig;\n\tif (!variants) return;\n\tconst variant = variants[key];\n\tlet variantValue = getVariantDefinition(variant, value, conf, styleState);\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tconsole.groupCollapsed(`\\u2666\\uFE0F\\u2666\\uFE0F\\u2666\\uFE0F resolve variant ${key}`);\n\t\tconsole.info({\n\t\t\tkey,\n\t\t\tvalue,\n\t\t\tvariantValue,\n\t\t\tvariants\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (!variantValue) {\n\t\tif (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === \"1\") {\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tconst name = styleState.styleProps.displayName || \"[UnnamedComponent]\";\n\t\t\t\tconsole.warn(`No variant found: ${name} has variant \"${key}\", but no matching value \"${value}\"`);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof variantValue === \"function\") {\n\t\tconst fn = variantValue;\n\t\tconst extras = getVariantExtras(styleState);\n\t\tvariantValue = fn(value, extras);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && true) {\n\t\t\tconsole.groupCollapsed(\" expanded functional variant\", key);\n\t\t\tconsole.info({\n\t\t\t\tfn,\n\t\t\t\tvariantValue,\n\t\t\t\textras\n\t\t\t});\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tlet fontFamilyResult;\n\tif (isObj(variantValue)) {\n\t\tconst fontFamilyUpdate = variantValue.fontFamily || variantValue[conf.inverseShorthands.fontFamily];\n\t\tif (fontFamilyUpdate) {\n\t\t\tfontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf);\n\t\t\tstyleState.fontFamily = fontFamilyResult;\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` updating font family`, fontFamilyResult);\n\t\t}\n\t\tvariantValue = resolveTokensAndVariants(key, variantValue, styleProps, styleState, parentVariantKey);\n\t}\n\tif (variantValue) {\n\t\tconst expanded = normalizeStyle(variantValue, !!styleProps.noNormalize);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` expanding styles from `, variantValue, `to`, expanded);\n\t\tconst originalValues = styleOriginalValues.get(expanded);\n\t\tconst next = [];\n\t\tfor (const key2 in expanded) next.push([\n\t\t\tkey2,\n\t\t\texpanded[key2],\n\t\t\toriginalValues?.[key2]\n\t\t]);\n\t\treturn next;\n\t}\n};\nfunction getFontFamilyFromNameOrVariable(input, conf) {\n\tif (isVariable(input)) {\n\t\tconst val = variableToFontNameCache.get(input);\n\t\tif (val) return val;\n\t\tfor (const key in conf.fontsParsed) {\n\t\t\tconst familyVariable = conf.fontsParsed[key].family;\n\t\t\tif (isVariable(familyVariable)) {\n\t\t\t\tvariableToFontNameCache.set(familyVariable, key);\n\t\t\t\tif (familyVariable === input) return key;\n\t\t\t}\n\t\t}\n\t} else if (typeof input === \"string\" && input in conf.fontsParsed) return input;\n}\nconst variableToFontNameCache = /* @__PURE__ */ new WeakMap();\nconst resolveTokensAndVariants = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst { conf, staticConfig, debug } = styleState;\n\tconst { variants } = staticConfig;\n\tconst res = {};\n\tlet originalValues;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` - resolveTokensAndVariants`, key, value);\n\tfor (const _key in value) {\n\t\tconst subKey = conf.shorthands[_key] || _key;\n\t\tconst val = value[_key];\n\t\tif (!styleProps.noSkip && subKey in skipProps) continue;\n\t\toriginalValues ||= {};\n\t\toriginalValues[subKey] = val;\n\t\tif (staticConfig) {\n\t\t\tconst contextProps = staticConfig.context?.props || staticConfig.parentStaticConfig?.context?.props;\n\t\t\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\t\t\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\t\t\tif (contextProps && subKey in contextProps || contextPropKeys?.includes(subKey) || staticConfig.context?.propKeys?.includes(subKey) || staticConfig.parentStaticConfig?.context?.propKeys?.includes(subKey)) {\n\t\t\t\tstyleState.overriddenContextProps ||= {};\n\t\t\t\tstyleState.overriddenContextProps[subKey] = val;\n\t\t\t\tstyleState.originalContextPropValues ||= {};\n\t\t\t\tstyleState.originalContextPropValues[subKey] = val;\n\t\t\t}\n\t\t}\n\t\tif (styleProps.noExpand) res[subKey] = val;\n\t\telse if (variants && subKey in variants) {\n\t\t\tif (parentVariantKey && parentVariantKey === key) res[subKey] = val;\n\t\t\telse {\n\t\t\t\tconst variantOut = resolveVariants(subKey, val, styleProps, styleState, key);\n\t\t\t\tif (variantOut) for (const [key2, val2, originalVal, conditionSource] of variantOut) {\n\t\t\t\t\tif (val2 == null) continue;\n\t\t\t\t\tif (conditionSource !== void 0) {\n\t\t\t\t\t\tconst appended = appendFlatClause(res[key2], conditionSource, val2);\n\t\t\t\t\t\tif (appended === void 0) {\n\t\t\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key2}\" is not string-representable; dropping the clause`);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tres[key2] = appended;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tres[key2] = val2;\n\t\t\t\t\tif (originalVal !== void 0) {\n\t\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\t\toriginalValues[key2] = originalVal;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif (isVariable(val)) {\n\t\t\tres[subKey] = resolveVariableValue(subKey, val, styleProps.resolveValues);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`variable`, subKey, res[subKey]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof val === \"string\") {\n\t\t\tres[subKey] = isRemValue(val) ? resolveRem(val) : val;\n\t\t\tcontinue;\n\t\t}\n\t\tif (isObj(val)) {\n\t\t\tconst subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`object`, subKey, subObject);\n\t\t\tres[subKey] ??= {};\n\t\t\tObject.assign(res[subKey], subObject);\n\t\t\tconst subOriginalValues = styleOriginalValues.get(subObject);\n\t\t\tif (subOriginalValues) {\n\t\t\t\tconst existing = styleOriginalValues.get(res[subKey]);\n\t\t\t\tif (existing) Object.assign(existing, subOriginalValues);\n\t\t\t\telse styleOriginalValues.set(res[subKey], { ...subOriginalValues });\n\t\t\t}\n\t\t} else res[subKey] = val;\n\t}\n\tif (originalValues) styleOriginalValues.set(res, originalValues);\n\treturn res;\n};\nfunction getVariantDefinition(variant, value, conf, { theme }) {\n\tif (!variant) return;\n\tif (value === void 0) return;\n\tif (typeof variant === \"function\") return variant;\n\tif (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];\n\tfor (const { key, parts } of getCompiledVariantResolvers(variant)) for (const part of parts) if (matchesVariantResolver(part, value, conf, theme)) return variant[key];\n}\nconst variantResolverNameSet = new Set(variantResolverNames);\nconst variantResolverCache = /* @__PURE__ */ new WeakMap();\nfunction getCompiledVariantResolvers(variant) {\n\tlet cached = variantResolverCache.get(variant);\n\tif (cached) return cached;\n\tconst compiled = [];\n\tfor (const key of Object.keys(variant)) {\n\t\tconst parts = parseVariantResolverKey(key);\n\t\tif (parts) compiled.push({\n\t\t\tkey,\n\t\t\tparts\n\t\t});\n\t}\n\tvariantResolverCache.set(variant, compiled);\n\treturn compiled;\n}\nfunction parseVariantResolverKey(key) {\n\tif (!key) return null;\n\tconst parts = key.split(\"|\").map((part) => part.trim());\n\tif (!parts.length) return null;\n\tfor (const part of parts) if (!variantResolverNameSet.has(part)) return null;\n\treturn parts;\n}\nconst numberStringPattern = /[+-]?(?:(?:\\d+\\.?\\d*)|(?:\\.\\d+))(?:[eE][+-]?\\d+)?|[+-]?0[xX][\\da-fA-F]+|[+-]?0[bB][01]+|[+-]?0[oO][0-7]+/;\nconst remStringPattern = new RegExp(`^(?:${numberStringPattern.source})rem$`);\nconst viewportValuePattern = new RegExp(`^(?:${numberStringPattern.source})(vw|dvw|lvw|svw|vh|dvh|lvh|svh)$`);\nfunction isAllowedStyleValue(category, value, conf, string, number, rem) {\n\tconst hasSetting = Object.prototype.hasOwnProperty.call(conf.settings, \"allowedStyleValues\");\n\tconst configured = conf.settings.allowedStyleValues;\n\tconst setting = configured && typeof configured === \"object\" ? configured[category] : configured;\n\tconst web = value === \"unset\" || value === \"inherit\" || string && /^var\\(.*\\)$/.test(value) || (category === \"size\" || category === \"space\") && (value === \"max-content\" || value === \"min-content\" || string && (viewportValuePattern.test(value) || /^(calc|min|max)\\(.*\\)$/.test(value)));\n\tconst somewhat = category === \"size\" || category === \"space\" ? value === \"auto\" || number || rem || string && value.endsWith(\"%\") : number;\n\tif (setting === \"strict\") return false;\n\tif (setting === \"strict-web\") return web;\n\tif (setting === \"somewhat-strict\") return somewhat;\n\tif (setting === \"somewhat-strict-web\") return somewhat || web;\n\treturn number || string && (category === \"size\" || category === \"space\" || !hasSetting);\n}\nfunction matchesVariantResolver(resolverName, value, conf, theme) {\n\tconst string = typeof value === \"string\";\n\tconst number = typeof value === \"number\";\n\tconst rem = string && remStringPattern.test(value);\n\tswitch (resolverName) {\n\t\tcase \"Size\":\n\t\tcase \"Space\":\n\t\tcase \"Radius\":\n\t\tcase \"ZIndex\": {\n\t\t\tconst category = resolverName === \"ZIndex\" ? \"zIndex\" : resolverName.toLowerCase();\n\t\t\treturn value === true || value != null && value in conf.tokensParsed[category] || (resolverName === \"Space\" || resolverName === \"Radius\" || resolverName === \"ZIndex\") && isVariable(value) || (resolverName === \"Radius\" || resolverName === \"ZIndex\") && (number || rem) || isAllowedStyleValue(category, value, conf, string, number, rem);\n\t\t}\n\t\tcase \"Color\": return value != null && value in conf.tokensParsed.color || string;\n\t\tcase \"Theme\": return string && !!theme && value in theme;\n\t\tcase \"FontSize\": return value === true || !!conf.fontsParsed.body?.size?.[value] || number || rem;\n\t\tcase \"FontStyle\": return !!conf.fontsParsed.body?.style?.[value] || value === \"normal\" || value === \"italic\";\n\t\tcase \"FontTransform\": return !!conf.fontsParsed.body?.transform?.[value] || value === \"none\" || value === \"capitalize\" || value === \"uppercase\" || value === \"lowercase\";\n\t\tcase \"FontLineHeight\": return !!conf.fontsParsed.body?.lineHeight?.[value] || number || rem;\n\t\tcase \"FontLetterSpacing\": return !!conf.fontsParsed.body?.letterSpacing?.[value] || number || rem;\n\t\tcase \"number\":\n\t\tcase \"string\":\n\t\tcase \"boolean\": return typeof value === resolverName;\n\t\tcase \"any\": return true;\n\t}\n}\n\nexport { appendFlatClause, getFontFamilyFromNameOrVariable, propMapper };"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,SAAS,iBAAiB,MAAM,iBAAiB,OAAO;CACvD,IAAI,QAAQ,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU;C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qB,OAAO,CAAC,CAAC,KAAK,YAAY,MAAM,gBAAgB,UAAU,UAAU;EAC9F,KAAK;EACL,KAAK;EACL,KAAK,WAAW,OAAO,OAAO,UAAU;EACxC,KAAK,OAAO,OAAO;CACpB;AACD"}
1
+ {"version":3,"file":"propMapper.js","names":[],"sources":["esm/helpers/propMapper.js"],"sourcesContent":["import { scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { variantResolverNames } from \"../types\";\nimport { getCondition } from \"./directStyle\";\nimport { expandStyle } from \"./expandStyle\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { getVariantExtras } from \"./getVariantExtras\";\nimport { isObj } from \"./isObj\";\nimport { normalizeStyle } from \"./normalizeStyle\";\nimport { isRemValue, resolveRem } from \"./resolveRem\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { skipProps } from \"./skipProps\";\nimport { styleOriginalValues } from \"./styleOriginalValues\";\n\nexport * from \"./tokenCategories\"\n\nfunction appendFlatClause(prev, conditionSource, value) {\n\tif (prev != null && typeof prev !== \"string\" && typeof prev !== \"number\") return;\n\tif (typeof value !== \"string\" && typeof value !== \"number\") return;\n\treturn prev == null ? `${conditionSource}:${value}` : `${prev} ${conditionSource}:${value}`;\n}\nconst propMapper = (key, value, styleState, disabled, map) => {\n\tif (disabled) return map(key, value);\n\tif (key === \"elevationAndroid\") return;\n\tconst { conf, styleProps, staticConfig } = styleState;\n\tconst { variants } = staticConfig;\n\tif (!styleProps.noExpand) {\n\t\tif (variants && key in variants) {\n\t\t\tconst variantValue = resolveVariants(key, value, styleProps, styleState, \"\");\n\t\t\tif (variantValue) {\n\t\t\t\tfor (const entry of variantValue) map(entry[0], entry[1], entry[2], entry[3]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\tif (!styleProps.disableExpandShorthands) {\n\t\tif (key in conf.shorthands) key = conf.shorthands[key];\n\t}\n\tconst originalValue = value;\n\tif (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== \"disabled\" && value === \"safe\" && isSafeAreaKey(key)) {\n\t\tconst expanded = expandSafeAreaValue(key);\n\t\tif (expanded) {\n\t\t\tfor (let i = 0; i < expanded.length; i++) {\n\t\t\t\tconst [nkey, nvalue] = expanded[i];\n\t\t\t\tmap(nkey, nvalue, originalValue);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tif (value != null) {\n\t\tif (typeof value === \"string\") value = isRemValue(value) ? resolveRem(value) : value;\n\t\telse if (isVariable(value)) value = resolveVariableValue(key, value, styleProps.resolveValues);\n\t\telse if (isRemValue(value)) value = resolveRem(value);\n\t}\n\tif (value != null) {\n\t\tif (key === \"fontFamily\" && typeof originalValue === \"string\") {\n\t\t\tif (originalValue in conf.fontsParsed) styleState.fontFamily = originalValue;\n\t\t}\n\t\tconst expanded = styleProps.noExpand || typeof value === \"string\" ? null : expandStyle(key, value, conf.settings.styleCompat || \"web\");\n\t\tif (expanded) {\n\t\t\tconst max = expanded.length;\n\t\t\tfor (let i = 0; i < max; i++) {\n\t\t\t\tconst [nkey, nvalue, noriginalValue] = expanded[i];\n\t\t\t\tmap(nkey, nvalue, noriginalValue ?? originalValue);\n\t\t\t}\n\t\t} else map(key, value, originalValue);\n\t}\n};\nconst resolveVariants = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst variantDefinition = styleState.staticConfig.variants?.[key];\n\tif (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== \"disabled\" && typeof value === \"string\" && value.indexOf(\":\") !== -1 && !(variantDefinition && typeof variantDefinition === \"object\" && value in variantDefinition)) {\n\t\tconst starts = [];\n\t\tconst ends = [];\n\t\tconst modifiers = [];\n\t\tlet pendingModifier;\n\t\tlet sawClause = false;\n\t\tlet refused = false;\n\t\tscanFlatValue(value, {\n\t\t\tsegment(start, end, isBase) {\n\t\t\t\tif (start === end) {\n\t\t\t\t\tif (!isBase) refused = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tstarts.push(start);\n\t\t\t\tends.push(end);\n\t\t\t\tmodifiers.push(pendingModifier);\n\t\t\t},\n\t\t\tchain(start, end) {\n\t\t\t\tif (refused) return false;\n\t\t\t\tconst source = value.slice(start, end);\n\t\t\t\tif (!getCondition(styleState, source)) {\n\t\t\t\t\trefused = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tpendingModifier = source;\n\t\t\t\tsawClause = true;\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\terror() {\n\t\t\t\trefused = true;\n\t\t\t}\n\t\t});\n\t\tif (refused) return [];\n\t\tif (sawClause) {\n\t\t\tlet entries;\n\t\t\tfor (let index = 0; index < starts.length; index++) {\n\t\t\t\tconst resolved = resolveVariantValue(key, value.slice(starts[index], ends[index]), styleProps, styleState, parentVariantKey);\n\t\t\t\tif (!resolved) continue;\n\t\t\t\tentries ||= [];\n\t\t\t\tconst modifier = modifiers[index];\n\t\t\t\tfor (const entry of resolved) {\n\t\t\t\t\tif (modifier !== void 0) entry[3] = modifier;\n\t\t\t\t\tentries.push(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn entries || [];\n\t\t}\n\t}\n\treturn resolveVariantValue(key, value, styleProps, styleState, parentVariantKey);\n};\nconst resolveVariantValue = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst { staticConfig, conf, debug } = styleState;\n\tconst { variants } = staticConfig;\n\tif (!variants) return;\n\tconst variant = variants[key];\n\tlet variantValue = getVariantDefinition(variant, value, conf, styleState);\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") {\n\t\tconsole.groupCollapsed(`\\u2666\\uFE0F\\u2666\\uFE0F\\u2666\\uFE0F resolve variant ${key}`);\n\t\tconsole.info({\n\t\t\tkey,\n\t\t\tvalue,\n\t\t\tvariantValue,\n\t\t\tvariants\n\t\t});\n\t\tconsole.groupEnd();\n\t}\n\tif (!variantValue) {\n\t\tif (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === \"1\") {\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tconst name = styleState.styleProps.displayName || \"[UnnamedComponent]\";\n\t\t\t\tconsole.warn(`No variant found: ${name} has variant \"${key}\", but no matching value \"${value}\"`);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}\n\tif (typeof variantValue === \"function\") {\n\t\tconst fn = variantValue;\n\t\tconst extras = getVariantExtras(styleState);\n\t\tvariantValue = fn(value, extras);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\" && true) {\n\t\t\tconsole.groupCollapsed(\" expanded functional variant\", key);\n\t\t\tconsole.info({\n\t\t\t\tfn,\n\t\t\t\tvariantValue,\n\t\t\t\textras\n\t\t\t});\n\t\t\tconsole.groupEnd();\n\t\t}\n\t}\n\tlet fontFamilyResult;\n\tif (isObj(variantValue)) {\n\t\tconst fontFamilyUpdate = variantValue.fontFamily || variantValue[conf.inverseShorthands.fontFamily];\n\t\tif (fontFamilyUpdate) {\n\t\t\tfontFamilyResult = getFontFamilyFromNameOrVariable(fontFamilyUpdate, conf);\n\t\t\tstyleState.fontFamily = fontFamilyResult;\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` updating font family`, fontFamilyResult);\n\t\t}\n\t\tvariantValue = resolveTokensAndVariants(key, variantValue, styleProps, styleState, parentVariantKey);\n\t}\n\tif (variantValue) {\n\t\tconst expanded = normalizeStyle(variantValue, !!styleProps.noNormalize);\n\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` expanding styles from `, variantValue, `to`, expanded);\n\t\tconst originalValues = styleOriginalValues.get(expanded);\n\t\tconst next = [];\n\t\tfor (const key2 in expanded) next.push([\n\t\t\tkey2,\n\t\t\texpanded[key2],\n\t\t\toriginalValues?.[key2]\n\t\t]);\n\t\treturn next;\n\t}\n};\nfunction getFontFamilyFromNameOrVariable(input, conf) {\n\tif (isVariable(input)) {\n\t\tconst val = variableToFontNameCache.get(input);\n\t\tif (val) return val;\n\t\tfor (const key in conf.fontsParsed) {\n\t\t\tconst familyVariable = conf.fontsParsed[key].family;\n\t\t\tif (isVariable(familyVariable)) {\n\t\t\t\tvariableToFontNameCache.set(familyVariable, key);\n\t\t\t\tif (familyVariable === input) return key;\n\t\t\t}\n\t\t}\n\t} else if (typeof input === \"string\" && input in conf.fontsParsed) return input;\n}\nconst variableToFontNameCache = /* @__PURE__ */ new WeakMap();\nconst resolveTokensAndVariants = (key, value, styleProps, styleState, parentVariantKey) => {\n\tconst { conf, staticConfig, debug } = styleState;\n\tconst { variants } = staticConfig;\n\tconst res = {};\n\tlet originalValues;\n\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(` - resolveTokensAndVariants`, key, value);\n\tfor (const _key in value) {\n\t\tconst subKey = conf.shorthands[_key] || _key;\n\t\tconst val = value[_key];\n\t\tif (!styleProps.noSkip && subKey in skipProps) continue;\n\t\toriginalValues ||= {};\n\t\toriginalValues[subKey] = val;\n\t\tif (staticConfig) {\n\t\t\tconst contextProps = staticConfig.context?.props || staticConfig.parentStaticConfig?.context?.props;\n\t\t\tconst inheritedContextPropKeys = !staticConfig.context || staticConfig.context === staticConfig.parentStaticConfig?.context ? staticConfig.parentStaticConfig?.contextProps : void 0;\n\t\t\tconst contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;\n\t\t\tif (contextProps && subKey in contextProps || contextPropKeys?.includes(subKey) || staticConfig.context?.propKeys?.includes(subKey) || staticConfig.parentStaticConfig?.context?.propKeys?.includes(subKey)) {\n\t\t\t\tstyleState.overriddenContextProps ||= {};\n\t\t\t\tstyleState.overriddenContextProps[subKey] = val;\n\t\t\t\tstyleState.originalContextPropValues ||= {};\n\t\t\t\tstyleState.originalContextPropValues[subKey] = val;\n\t\t\t}\n\t\t}\n\t\tif (styleProps.noExpand) res[subKey] = val;\n\t\telse if (variants && subKey in variants) {\n\t\t\tif (parentVariantKey && parentVariantKey === key) res[subKey] = val;\n\t\t\telse {\n\t\t\t\tconst variantOut = resolveVariants(subKey, val, styleProps, styleState, key);\n\t\t\t\tif (variantOut) for (const [key2, val2, originalVal, conditionSource] of variantOut) {\n\t\t\t\t\tif (val2 == null) continue;\n\t\t\t\t\tif (conditionSource !== void 0) {\n\t\t\t\t\t\tconst appended = appendFlatClause(res[key2], conditionSource, val2);\n\t\t\t\t\t\tif (appended === void 0) {\n\t\t\t\t\t\t\tif (process.env.NODE_ENV === \"development\") console.warn(`[tamagui] conditional variant value for \"${key2}\" is not string-representable; dropping the clause`);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tres[key2] = appended;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tres[key2] = val2;\n\t\t\t\t\tif (originalVal !== void 0) {\n\t\t\t\t\t\toriginalValues ||= {};\n\t\t\t\t\t\toriginalValues[key2] = originalVal;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif (isVariable(val)) {\n\t\t\tres[subKey] = resolveVariableValue(subKey, val, styleProps.resolveValues);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`variable`, subKey, res[subKey]);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof val === \"string\") {\n\t\t\tres[subKey] = isRemValue(val) ? resolveRem(val) : val;\n\t\t\tcontinue;\n\t\t}\n\t\tif (isObj(val)) {\n\t\t\tconst subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);\n\t\t\tif (process.env.NODE_ENV === \"development\" && debug === \"verbose\") console.info(`object`, subKey, subObject);\n\t\t\tres[subKey] ??= {};\n\t\t\tObject.assign(res[subKey], subObject);\n\t\t\tconst subOriginalValues = styleOriginalValues.get(subObject);\n\t\t\tif (subOriginalValues) {\n\t\t\t\tconst existing = styleOriginalValues.get(res[subKey]);\n\t\t\t\tif (existing) Object.assign(existing, subOriginalValues);\n\t\t\t\telse styleOriginalValues.set(res[subKey], { ...subOriginalValues });\n\t\t\t}\n\t\t} else res[subKey] = val;\n\t}\n\tif (originalValues) styleOriginalValues.set(res, originalValues);\n\treturn res;\n};\nfunction getVariantDefinition(variant, value, conf, { theme }) {\n\tif (!variant) return;\n\tif (value === void 0) return;\n\tif (typeof variant === \"function\") return variant;\n\tif (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];\n\tfor (const { key, parts } of getCompiledVariantResolvers(variant)) for (const part of parts) if (matchesVariantResolver(part, value, conf, theme)) return variant[key];\n}\nconst variantResolverNameSet = new Set(variantResolverNames);\nconst variantResolverCache = /* @__PURE__ */ new WeakMap();\nfunction getCompiledVariantResolvers(variant) {\n\tlet cached = variantResolverCache.get(variant);\n\tif (cached) return cached;\n\tconst compiled = [];\n\tfor (const key of Object.keys(variant)) {\n\t\tconst parts = parseVariantResolverKey(key);\n\t\tif (parts) compiled.push({\n\t\t\tkey,\n\t\t\tparts\n\t\t});\n\t}\n\tvariantResolverCache.set(variant, compiled);\n\treturn compiled;\n}\nfunction parseVariantResolverKey(key) {\n\tif (!key) return null;\n\tconst parts = key.split(\"|\").map((part) => part.trim());\n\tif (!parts.length) return null;\n\tfor (const part of parts) if (!variantResolverNameSet.has(part)) return null;\n\treturn parts;\n}\nconst numberStringPattern = /[+-]?(?:(?:\\d+\\.?\\d*)|(?:\\.\\d+))(?:[eE][+-]?\\d+)?|[+-]?0[xX][\\da-fA-F]+|[+-]?0[bB][01]+|[+-]?0[oO][0-7]+/;\nconst remStringPattern = new RegExp(`^(?:${numberStringPattern.source})rem$`);\nconst viewportValuePattern = new RegExp(`^(?:${numberStringPattern.source})(vw|dvw|lvw|svw|vh|dvh|lvh|svh)$`);\nfunction isAllowedStyleValue(category, value, conf, string, number, rem) {\n\tconst hasSetting = Object.prototype.hasOwnProperty.call(conf.settings, \"allowedStyleValues\");\n\tconst configured = conf.settings.allowedStyleValues;\n\tconst setting = configured && typeof configured === \"object\" ? configured[category] : configured;\n\tconst web = value === \"unset\" || value === \"inherit\" || string && /^var\\(.*\\)$/.test(value) || (category === \"size\" || category === \"space\") && (value === \"max-content\" || value === \"min-content\" || string && (viewportValuePattern.test(value) || /^(calc|min|max)\\(.*\\)$/.test(value)));\n\tconst somewhat = category === \"size\" || category === \"space\" ? value === \"auto\" || number || rem || string && value.endsWith(\"%\") : number;\n\tif (setting === \"strict\") return false;\n\tif (setting === \"strict-web\") return web;\n\tif (setting === \"somewhat-strict\") return somewhat;\n\tif (setting === \"somewhat-strict-web\") return somewhat || web;\n\treturn number || string && (category === \"size\" || category === \"space\" || !hasSetting);\n}\nfunction matchesVariantResolver(resolverName, value, conf, theme) {\n\tconst string = typeof value === \"string\";\n\tconst number = typeof value === \"number\";\n\tconst rem = string && remStringPattern.test(value);\n\tswitch (resolverName) {\n\t\tcase \"Size\":\n\t\tcase \"Space\":\n\t\tcase \"Radius\":\n\t\tcase \"ZIndex\": {\n\t\t\tconst category = resolverName === \"ZIndex\" ? \"zIndex\" : resolverName.toLowerCase();\n\t\t\treturn value === true || value != null && value in conf.tokensParsed[category] || (resolverName === \"Space\" || resolverName === \"Radius\" || resolverName === \"ZIndex\") && isVariable(value) || (resolverName === \"Radius\" || resolverName === \"ZIndex\") && (number || rem) || isAllowedStyleValue(category, value, conf, string, number, rem);\n\t\t}\n\t\tcase \"Color\": return value != null && value in conf.tokensParsed.color || string;\n\t\tcase \"Theme\": return string && !!theme && value in theme;\n\t\tcase \"FontSize\": return value === true || !!conf.fontsParsed.body?.size?.[value] || number || rem;\n\t\tcase \"FontStyle\": return !!conf.fontsParsed.body?.style?.[value] || value === \"normal\" || value === \"italic\";\n\t\tcase \"FontTransform\": return !!conf.fontsParsed.body?.transform?.[value] || value === \"none\" || value === \"capitalize\" || value === \"uppercase\" || value === \"lowercase\";\n\t\tcase \"FontLineHeight\": return !!conf.fontsParsed.body?.lineHeight?.[value] || number || rem;\n\t\tcase \"FontLetterSpacing\": return !!conf.fontsParsed.body?.letterSpacing?.[value] || number || rem;\n\t\tcase \"number\":\n\t\tcase \"string\":\n\t\tcase \"boolean\": return typeof value === resolverName;\n\t\tcase \"any\": return true;\n\t}\n}\n\nexport { appendFlatClause, getFontFamilyFromNameOrVariable, propMapper };"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,SAAS,iBAAiB,MAAM,iBAAiB,OAAO;CACvD,IAAI,QAAQ,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU;CAC1E,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAAU;CAC5D,OAAO,QAAQ,OAAO,GAAG,gBAAgB,GAAG,UAAU,GAAG,KAAK,GAAG,gBAAgB,GAAG;AACrF;AACA,MAAM,cAAc,KAAK,OAAO,YAAY,UAAU,QAAQ;CAC7D,IAAI,UAAU,OAAO,IAAI,KAAK,KAAK;CACnC,IAAI,QAAQ,oBAAoB;CAChC,MAAM,EAAE,MAAM,YAAY,iBAAiB;CAC3C,MAAM,EAAE,aAAa;CACrB,IAAI,CAAC,WAAW,UAAU;EACzB,IAAI,YAAY,OAAO,UAAU;GAChC,MAAM,eAAe,gBAAgB,KAAK,OAAO,YAAY,YAAY,EAAE;GAC3E,IAAI,cAAc;IACjB,KAAK,MAAM,SAAS,cAAc,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE;IAC5E;GACD;EACD;CACD;CACA,IAAI,CAAC,WAAW,yBAAyB;EACxC,IAAI,OAAO,KAAK,YAAY,MAAM,KAAK,WAAW;CACnD;CACA,MAAM,gBAAgB;CACtB,IAAI,QAAQ,IAAI,8BAA8B,cAAc,UAAU,UAAU,cAAc,GAAG,GAAG;EACnG,MAAM,WAAW,oBAAoB,GAAG;EACxC,IAAI,UAAU;GACb,KAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;IACzC,MAAM,CAAC,MAAM,UAAU,SAAS;IAChC,IAAI,MAAM,QAAQ,aAAa;GAChC;GACA;EACD;CACD;CACA,IAAI,SAAS,MAAM;EAClB,IAAI,OAAO,UAAU,UA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,UAAU,UAAU;EAC9F,KAAK,aAAa,OAAO,CAAC,CAAC,KAAK,YAAY,MAAM,QAAQ,UAAU,UAAU,YAAY,UAAU;EACpG,KAAK,iBAAiB,OAAO,CAAC,CAAC,KAAK,YAAY,MAAM,YAAY,UAAU,UAAU,UAAU,UAAU,gBAAgB,UAAU,eAAe,UAAU;EAC7J,KAAK,kBAAkB,OAAO,CAAC,CAAC,KAAK,YAAY,MAAM,aAAa,UAAU,UAAU;EACxF,KAAK,qBAAqB,OAAO,CAAC,CAAC,KAAK,YAAY,MAAM,gBAAgB,UAAU,UAAU;EAC9F,KAAK;EACL,KAAK;EACL,KAAK,WAAW,OAAO,OAAO,UAAU;EACxC,KAAK,OAAO,OAAO;CACpB;AACD"}
@@ -82,7 +82,7 @@ var propMapper = function(key, value, styleState, disabled, map) {
82
82
  if (key in conf.shorthands) key = conf.shorthands[key];
83
83
  }
84
84
  var originalValue = value;
85
- if (value === "safe" && isSafeAreaKey(key)) {
85
+ if (process.env.TAMAGUI_RUNTIME_SAFE_AREA !== "disabled" && value === "safe" && isSafeAreaKey(key)) {
86
86
  var expanded1 = expandSafeAreaValue(key);
87
87
  if (expanded1) {
88
88
  for (var i = 0; i < expanded1.length; i++) {
@@ -114,7 +114,7 @@ var propMapper = function(key, value, styleState, disabled, map) {
114
114
  var resolveVariants = function(key, value, styleProps, styleState, parentVariantKey) {
115
115
  var _styleState_staticConfig_variants;
116
116
  var variantDefinition = (_styleState_staticConfig_variants = styleState.staticConfig.variants) === null || _styleState_staticConfig_variants === void 0 ? void 0 : _styleState_staticConfig_variants[key];
117
- if (typeof value === "string" && value.indexOf(":") !== -1 && !(variantDefinition && (typeof variantDefinition === "undefined" ? "undefined" : _type_of(variantDefinition)) === "object" && value in variantDefinition)) {
117
+ if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR !== "disabled" && typeof value === "string" && value.indexOf(":") !== -1 && !(variantDefinition && (typeof variantDefinition === "undefined" ? "undefined" : _type_of(variantDefinition)) === "object" && value in variantDefinition)) {
118
118
  var starts = [];
119
119
  var ends = [];
120
120
  var modifiers = [];