@fluentic/style 0.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (521) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/LICENSE +21 -0
  3. package/README.md +409 -0
  4. package/atomic/atRule/counterStyle.ts +35 -0
  5. package/atomic/atRule/fontFace.ts +37 -0
  6. package/atomic/atRule/fontPaletteValues.ts +36 -0
  7. package/atomic/atRule/fontSrc.ts +13 -0
  8. package/atomic/atRule/keyframes.ts +43 -0
  9. package/atomic/atRule/positionTry.ts +73 -0
  10. package/atomic/atRule/property.ts +39 -0
  11. package/atomic/atRule/utils.ts +81 -0
  12. package/atomic/className.ts +93 -0
  13. package/atomic/debug/className/className.ts +33 -0
  14. package/atomic/debug/className/index.ts +1 -0
  15. package/atomic/debug/property/data.ts +59 -0
  16. package/atomic/debug/property/index.ts +1 -0
  17. package/atomic/debug/property/property.ts +59 -0
  18. package/atomic/debug/selector.ts +88 -0
  19. package/atomic/debug/value.ts +53 -0
  20. package/atomic/element.ts +29 -0
  21. package/atomic/layer/README.md +116 -0
  22. package/atomic/layer/index.ts +3 -0
  23. package/atomic/layer/layer.ts +95 -0
  24. package/atomic/layer/types.ts +37 -0
  25. package/atomic/layer/utils.ts +51 -0
  26. package/atomic/property/index.ts +2 -0
  27. package/atomic/property/presets.ts +34 -0
  28. package/atomic/property/property.ts +13 -0
  29. package/atomic/property/type_maps.ts +389 -0
  30. package/atomic/property/types.ts +7 -0
  31. package/atomic/rule.ts +116 -0
  32. package/atomic/theme.ts +48 -0
  33. package/atomic/token.ts +53 -0
  34. package/atomic/utils/css.ts +49 -0
  35. package/atomic/utils/debug.ts +37 -0
  36. package/atomic/utils/format.ts +192 -0
  37. package/atomic/utils/selector.ts +14 -0
  38. package/atomic/utils/types.ts +11 -0
  39. package/atomic/value/index.ts +2 -0
  40. package/atomic/value/unitless.ts +47 -0
  41. package/atomic/value/value.ts +17 -0
  42. package/atomic/var.ts +19 -0
  43. package/builder/data/check_selector.noop.ts +8 -0
  44. package/builder/data/check_selector.ts +30 -0
  45. package/builder/data/const.ts +25 -0
  46. package/builder/data/create.ts +96 -0
  47. package/builder/data/data.ts +63 -0
  48. package/builder/data/debug.ts +113 -0
  49. package/builder/data/index.ts +9 -0
  50. package/builder/data/is.ts +68 -0
  51. package/builder/data/merge/index.ts +2 -0
  52. package/builder/data/merge/scope.ts +300 -0
  53. package/builder/data/merge/style.ts +284 -0
  54. package/builder/data/merge/utils.ts +35 -0
  55. package/builder/data/selector.ts +11 -0
  56. package/builder/data/state.ts +134 -0
  57. package/builder/extract/index.ts +6 -0
  58. package/builder/extract/scope.ts +30 -0
  59. package/builder/extract/slot.ts +36 -0
  60. package/builder/extract/style.ts +89 -0
  61. package/builder/extract/theme.ts +16 -0
  62. package/builder/extract/token.ts +41 -0
  63. package/builder/extract/utils.ts +95 -0
  64. package/builder/extract/withTokens.ts +64 -0
  65. package/builder/index.ts +2 -0
  66. package/builder/style_builder.ts +234 -0
  67. package/builder/style_data.ts +81 -0
  68. package/builder/style_fns.ts +611 -0
  69. package/builder/types/alias.ts +83 -0
  70. package/builder/types/fns.ts +185 -0
  71. package/builder/types/index.ts +1 -0
  72. package/builder/types/types.ts +51 -0
  73. package/builder/utils.ts +19 -0
  74. package/compiler/compiler/cache.ts +155 -0
  75. package/compiler/compiler/compiler.ts +173 -0
  76. package/compiler/compiler/index.ts +3 -0
  77. package/compiler/compiler/types.ts +62 -0
  78. package/compiler/extract/collector.ts +25 -0
  79. package/compiler/extract/extract.ts +51 -0
  80. package/compiler/extract/index.ts +3 -0
  81. package/compiler/extract/types.ts +35 -0
  82. package/compiler/index.ts +2 -0
  83. package/compiler/transform/debug/index.ts +2 -0
  84. package/compiler/transform/debug/plugin.ts +1347 -0
  85. package/compiler/transform/debug/transform.ts +47 -0
  86. package/compiler/transform/debug/utils/debug_data.ts +187 -0
  87. package/compiler/transform/debug/utils/source_url.ts +29 -0
  88. package/compiler/transform/evaluator/evaluator.ts +1138 -0
  89. package/compiler/transform/evaluator/index.ts +3 -0
  90. package/compiler/transform/evaluator/tracer.ts +607 -0
  91. package/compiler/transform/evaluator/types.ts +22 -0
  92. package/compiler/transform/extract/chain/chain.ts +2343 -0
  93. package/compiler/transform/extract/chain/extract_chain.ts +89 -0
  94. package/compiler/transform/extract/chain/index.ts +3 -0
  95. package/compiler/transform/extract/chain/types.ts +37 -0
  96. package/compiler/transform/extract/index.ts +2 -0
  97. package/compiler/transform/extract/plugin.ts +665 -0
  98. package/compiler/transform/extract/transform.ts +45 -0
  99. package/compiler/transform/extract/utils/imports.ts +132 -0
  100. package/compiler/transform/extract/utils/replacement.ts +349 -0
  101. package/compiler/transform/extract/utils/slot.ts +186 -0
  102. package/compiler/transform/extract/utils/state.ts +48 -0
  103. package/compiler/transform/extract/utils/theme.ts +86 -0
  104. package/compiler/transform/extract/utils/token.ts +1 -0
  105. package/compiler/transform/index.ts +5 -0
  106. package/compiler/transform/syntax/index.ts +5 -0
  107. package/compiler/transform/syntax/isStaticStyleValue.ts +44 -0
  108. package/compiler/transform/syntax/isStyleChainCall.ts +16 -0
  109. package/compiler/transform/syntax/static_ids.ts +282 -0
  110. package/compiler/transform/syntax/types.ts +7 -0
  111. package/compiler/transform/syntax/utils.ts +31 -0
  112. package/compiler/transform/utils/babel.ts +100 -0
  113. package/compiler/transform/utils/import.ts +47 -0
  114. package/compiler/transform/utils/path.ts +13 -0
  115. package/compiler/transform/utils/selector.ts +252 -0
  116. package/compiler/utils/constants.ts +69 -0
  117. package/compiler/utils/file_resolver.ts +72 -0
  118. package/compiler/utils/import_source.ts +200 -0
  119. package/compiler/utils/imports.ts +24 -0
  120. package/compiler/utils/path.ts +40 -0
  121. package/compiler/utils/sourcemap.ts +61 -0
  122. package/config/build.ts +32 -0
  123. package/config/config/css.ts +32 -0
  124. package/config/config/css_extra.ts +22 -0
  125. package/config/config/debug.ts +26 -0
  126. package/config/config/dev.ts +145 -0
  127. package/config/config/runtime.ts +29 -0
  128. package/config/configure.ts +28 -0
  129. package/config/constants.ts +1 -0
  130. package/config/index.ts +2 -0
  131. package/config/types.ts +56 -0
  132. package/config/utils.ts +5 -0
  133. package/css/counterStyle.ts +20 -0
  134. package/css/fontFace.ts +25 -0
  135. package/css/fontPaletteValues.ts +20 -0
  136. package/css/index.ts +8 -0
  137. package/css/keyframes.ts +20 -0
  138. package/css/positionTry.ts +20 -0
  139. package/css/property.ts +32 -0
  140. package/css/utils.ts +56 -0
  141. package/dev/config.ts +16 -0
  142. package/dev/fns.ts +48 -0
  143. package/dev/index.ts +2 -0
  144. package/dev/trace.ts +413 -0
  145. package/dev/utils.ts +528 -0
  146. package/dist/assert-h_Zkqc4E.js +105 -0
  147. package/dist/assert-h_Zkqc4E.js.map +1 -0
  148. package/dist/className-C1Ht5Wvv.js +144 -0
  149. package/dist/className-C1Ht5Wvv.js.map +1 -0
  150. package/dist/className-DC2Cq8p3.js +251 -0
  151. package/dist/className-DC2Cq8p3.js.map +1 -0
  152. package/dist/compiler/index.mjs +2 -0
  153. package/dist/compiler-DweanHoB.mjs +6847 -0
  154. package/dist/compiler-DweanHoB.mjs.map +1 -0
  155. package/dist/config/index.js +3 -0
  156. package/dist/config-BryWDfQX.js +25 -0
  157. package/dist/config-BryWDfQX.js.map +1 -0
  158. package/dist/config-DKHXWhe1.js +1 -0
  159. package/dist/config-Di2VYYKV.js +6 -0
  160. package/dist/config-Di2VYYKV.js.map +1 -0
  161. package/dist/config-DloHOG6I.js +13 -0
  162. package/dist/config-DloHOG6I.js.map +1 -0
  163. package/dist/css-BowBszUt.js +243 -0
  164. package/dist/css-BowBszUt.js.map +1 -0
  165. package/dist/css-ByOrugEX.js +805 -0
  166. package/dist/css-ByOrugEX.js.map +1 -0
  167. package/dist/css-DcazYor9.js +235 -0
  168. package/dist/css-DcazYor9.js.map +1 -0
  169. package/dist/css.js +2 -0
  170. package/dist/css_extra-DlOnsnR1.js +8 -0
  171. package/dist/css_extra-DlOnsnR1.js.map +1 -0
  172. package/dist/css_extra-oIi3UEPK.js +8 -0
  173. package/dist/css_extra-oIi3UEPK.js.map +1 -0
  174. package/dist/data-_te7t0M4.js +473 -0
  175. package/dist/data-_te7t0M4.js.map +1 -0
  176. package/dist/debug-BAw63qX6.js +15 -0
  177. package/dist/debug-BAw63qX6.js.map +1 -0
  178. package/dist/debug-DGki_v7g.js +15 -0
  179. package/dist/debug-DGki_v7g.js.map +1 -0
  180. package/dist/debug-n2aZQBSa.js +172 -0
  181. package/dist/debug-n2aZQBSa.js.map +1 -0
  182. package/dist/dev/rsc.js +183 -0
  183. package/dist/dev/rsc.js.map +1 -0
  184. package/dist/dev-CcphAa3R.js +376 -0
  185. package/dist/dev-CcphAa3R.js.map +1 -0
  186. package/dist/dev-DfBbuLeE.js +71 -0
  187. package/dist/dev-DfBbuLeE.js.map +1 -0
  188. package/dist/dev.js +2 -0
  189. package/dist/elementMarker-Bu7gDAkE.js +800 -0
  190. package/dist/elementMarker-Bu7gDAkE.js.map +1 -0
  191. package/dist/entry/dev/css.js +3 -0
  192. package/dist/entry/dev/jsx-dev-runtime.js +3 -0
  193. package/dist/entry/dev/jsx-runtime.js +3 -0
  194. package/dist/entry/dev.js +10 -0
  195. package/dist/entry/prod/css.js +3 -0
  196. package/dist/entry/prod/extract.js +3 -0
  197. package/dist/entry/prod/jsx-dev-runtime.js +3 -0
  198. package/dist/entry/prod/jsx-runtime.js +3 -0
  199. package/dist/entry/prod/runtime.js +5 -0
  200. package/dist/entry/prod.js +1230 -0
  201. package/dist/entry/prod.js.map +1 -0
  202. package/dist/entry/rsc-dev/css.js +3 -0
  203. package/dist/entry/rsc-dev/dev.js +544 -0
  204. package/dist/entry/rsc-dev/dev.js.map +1 -0
  205. package/dist/entry/rsc-dev/jsx-dev-runtime.js +12 -0
  206. package/dist/entry/rsc-dev/jsx-dev-runtime.js.map +1 -0
  207. package/dist/entry/rsc-dev/jsx-runtime.js +3 -0
  208. package/dist/entry/rsc-dev.js +1429 -0
  209. package/dist/entry/rsc-dev.js.map +1 -0
  210. package/dist/entry/rsc-prod/css.js +3 -0
  211. package/dist/entry/rsc-prod/jsx-dev-runtime.js +3 -0
  212. package/dist/entry/rsc-prod/jsx-runtime.js +3 -0
  213. package/dist/entry/rsc-prod/runtime.js +5 -0
  214. package/dist/entry/rsc-prod.js +10 -0
  215. package/dist/extract-CzWJeQi8.js +121 -0
  216. package/dist/extract-CzWJeQi8.js.map +1 -0
  217. package/dist/extract-DEwSDJ9Z.js +2 -0
  218. package/dist/format-3nKBE_5t.js +144 -0
  219. package/dist/format-3nKBE_5t.js.map +1 -0
  220. package/dist/getClassName-BlvXHYuf.js +260 -0
  221. package/dist/getClassName-BlvXHYuf.js.map +1 -0
  222. package/dist/global-CvfmFLsK.js +11 -0
  223. package/dist/global-CvfmFLsK.js.map +1 -0
  224. package/dist/index.js +9 -0
  225. package/dist/jsx/jsx-dev-runtime.js +12 -0
  226. package/dist/jsx/jsx-dev-runtime.js.map +1 -0
  227. package/dist/jsx/jsx-dev-runtime.server.js +11 -0
  228. package/dist/jsx/jsx-dev-runtime.server.js.map +1 -0
  229. package/dist/jsx/jsx-runtime.js +13 -0
  230. package/dist/jsx/jsx-runtime.js.map +1 -0
  231. package/dist/jsx/jsx-runtime.server.js +12 -0
  232. package/dist/jsx/jsx-runtime.server.js.map +1 -0
  233. package/dist/jsx-CwTeyUxr.js +39 -0
  234. package/dist/jsx-CwTeyUxr.js.map +1 -0
  235. package/dist/jsx-D2BksHSv.js +38 -0
  236. package/dist/jsx-D2BksHSv.js.map +1 -0
  237. package/dist/jsx_dev_runtime-B6xs4by8.js +12 -0
  238. package/dist/jsx_dev_runtime-B6xs4by8.js.map +1 -0
  239. package/dist/jsx_runtime-04xfnsi7.js +13 -0
  240. package/dist/jsx_runtime-04xfnsi7.js.map +1 -0
  241. package/dist/jsx_runtime-iHLDwpcW.js +12 -0
  242. package/dist/jsx_runtime-iHLDwpcW.js.map +1 -0
  243. package/dist/layer-D1SaH07m.js +94 -0
  244. package/dist/layer-D1SaH07m.js.map +1 -0
  245. package/dist/loader-DS61nRqr.mjs +81 -0
  246. package/dist/loader-DS61nRqr.mjs.map +1 -0
  247. package/dist/misc-B9kqEb2N.mjs +360 -0
  248. package/dist/misc-B9kqEb2N.mjs.map +1 -0
  249. package/dist/plugin/farm/index.mjs +176 -0
  250. package/dist/plugin/farm/index.mjs.map +1 -0
  251. package/dist/plugin/nextjs/index.mjs +282 -0
  252. package/dist/plugin/nextjs/index.mjs.map +1 -0
  253. package/dist/plugin/nextjs/loader.mjs +162 -0
  254. package/dist/plugin/nextjs/loader.mjs.map +1 -0
  255. package/dist/plugin/parcel/index.cjs +9 -0
  256. package/dist/plugin/parcel/index.mjs +5 -0
  257. package/dist/plugin/parcel/optimizer.cjs +28 -0
  258. package/dist/plugin/parcel/optimizer.cjs.map +1 -0
  259. package/dist/plugin/parcel/optimizer.mjs +29 -0
  260. package/dist/plugin/parcel/optimizer.mjs.map +1 -0
  261. package/dist/plugin/parcel/resolver.cjs +17 -0
  262. package/dist/plugin/parcel/resolver.cjs.map +1 -0
  263. package/dist/plugin/parcel/resolver.mjs +18 -0
  264. package/dist/plugin/parcel/resolver.mjs.map +1 -0
  265. package/dist/plugin/parcel/runtime.cjs +17 -0
  266. package/dist/plugin/parcel/runtime.cjs.map +1 -0
  267. package/dist/plugin/parcel/runtime.mjs +17 -0
  268. package/dist/plugin/parcel/runtime.mjs.map +1 -0
  269. package/dist/plugin/parcel/transformer.cjs +41 -0
  270. package/dist/plugin/parcel/transformer.cjs.map +1 -0
  271. package/dist/plugin/parcel/transformer.mjs +41 -0
  272. package/dist/plugin/parcel/transformer.mjs.map +1 -0
  273. package/dist/plugin/rspack/index.mjs +11 -0
  274. package/dist/plugin/rspack/index.mjs.map +1 -0
  275. package/dist/plugin/vite/index.mjs +176 -0
  276. package/dist/plugin/vite/index.mjs.map +1 -0
  277. package/dist/plugin/webpack/index.mjs +2 -0
  278. package/dist/plugin/webpack/loader.mjs +19 -0
  279. package/dist/plugin/webpack/loader.mjs.map +1 -0
  280. package/dist/presets-Bye3ea2x.js +139 -0
  281. package/dist/presets-Bye3ea2x.js.map +1 -0
  282. package/dist/property-CnLFt5kx.js +406 -0
  283. package/dist/property-CnLFt5kx.js.map +1 -0
  284. package/dist/registry-CyIj8LYK.mjs +22 -0
  285. package/dist/registry-CyIj8LYK.mjs.map +1 -0
  286. package/dist/rules-9HSO1pxL.js +767 -0
  287. package/dist/rules-9HSO1pxL.js.map +1 -0
  288. package/dist/runtime-CYqNCiaM.js +53 -0
  289. package/dist/runtime-CYqNCiaM.js.map +1 -0
  290. package/dist/selector/index.js +3 -0
  291. package/dist/server.js +63 -0
  292. package/dist/server.js.map +1 -0
  293. package/dist/shared-BAL9peIw.cjs +7646 -0
  294. package/dist/shared-BAL9peIw.cjs.map +1 -0
  295. package/dist/shared-CCpq1zqA.mjs +132 -0
  296. package/dist/shared-CCpq1zqA.mjs.map +1 -0
  297. package/dist/sidecar-4u6GnlQG.mjs +236 -0
  298. package/dist/sidecar-4u6GnlQG.mjs.map +1 -0
  299. package/dist/style-4rFUy-zW.js +752 -0
  300. package/dist/style-4rFUy-zW.js.map +1 -0
  301. package/dist/style-B1UUqjj5.js +743 -0
  302. package/dist/style-B1UUqjj5.js.map +1 -0
  303. package/dist/style-Cw3NtvR0.js +5 -0
  304. package/dist/style-DNqQ6H-7.js +1255 -0
  305. package/dist/style-DNqQ6H-7.js.map +1 -0
  306. package/dist/styleStore-Dea_WVbr.js +2000 -0
  307. package/dist/styleStore-Dea_WVbr.js.map +1 -0
  308. package/dist/styleStore-DyNXBcUK.js +54 -0
  309. package/dist/styleStore-DyNXBcUK.js.map +1 -0
  310. package/dist/token-CKXUECuU.js +76 -0
  311. package/dist/token-CKXUECuU.js.map +1 -0
  312. package/dist/token-u_tM-mtg.js +204 -0
  313. package/dist/token-u_tM-mtg.js.map +1 -0
  314. package/dist/trace-Bu_qOqRy.js +245 -0
  315. package/dist/trace-Bu_qOqRy.js.map +1 -0
  316. package/dist/trace-CU0rvNYr.js +244 -0
  317. package/dist/trace-CU0rvNYr.js.map +1 -0
  318. package/dist/utils-BbehLOby.js +2415 -0
  319. package/dist/utils-BbehLOby.js.map +1 -0
  320. package/dist/utils-C7xfDxtM.mjs +97 -0
  321. package/dist/utils-C7xfDxtM.mjs.map +1 -0
  322. package/dist/utils-CWNHx4EC.js +170 -0
  323. package/dist/utils-CWNHx4EC.js.map +1 -0
  324. package/dist/utils-CdI6vZsP.js +37 -0
  325. package/dist/utils-CdI6vZsP.js.map +1 -0
  326. package/dist/utils-D7FAOyg6.js +129 -0
  327. package/dist/utils-D7FAOyg6.js.map +1 -0
  328. package/dist/utils-DMFgOOtA.mjs +49 -0
  329. package/dist/utils-DMFgOOtA.mjs.map +1 -0
  330. package/dist/utils.js +26 -0
  331. package/dist/utils.js.map +1 -0
  332. package/dist/value-BR4e2MKt.js +910 -0
  333. package/dist/value-BR4e2MKt.js.map +1 -0
  334. package/dist/value-E8rEv2Oe.js +136 -0
  335. package/dist/value-E8rEv2Oe.js.map +1 -0
  336. package/dist/valueRef-lshFk1Cs.js +16 -0
  337. package/dist/valueRef-lshFk1Cs.js.map +1 -0
  338. package/dist/webpack-CxS2FDYU.mjs +107 -0
  339. package/dist/webpack-CxS2FDYU.mjs.map +1 -0
  340. package/dist/withTokens-LRidu3Vc.js +95 -0
  341. package/dist/withTokens-LRidu3Vc.js.map +1 -0
  342. package/entry/dev/config.ts +2 -0
  343. package/entry/dev/css.ts +3 -0
  344. package/entry/dev/index.ts +3 -0
  345. package/entry/dev/jsx_dev_runtime.ts +3 -0
  346. package/entry/dev/jsx_runtime.ts +3 -0
  347. package/entry/prod/config.ts +2 -0
  348. package/entry/prod/css.ts +3 -0
  349. package/entry/prod/extract.ts +1 -0
  350. package/entry/prod/index.ts +3 -0
  351. package/entry/prod/jsx_dev_runtime.ts +3 -0
  352. package/entry/prod/jsx_runtime.ts +3 -0
  353. package/entry/prod/runtime.ts +14 -0
  354. package/entry/rsc_dev/config.ts +6 -0
  355. package/entry/rsc_dev/css.ts +3 -0
  356. package/entry/rsc_dev/dev.ts +5 -0
  357. package/entry/rsc_dev/index.ts +3 -0
  358. package/entry/rsc_dev/jsx_dev_runtime.ts +3 -0
  359. package/entry/rsc_dev/jsx_runtime.ts +3 -0
  360. package/entry/rsc_dev/server.ts +11 -0
  361. package/entry/rsc_prod/config.ts +6 -0
  362. package/entry/rsc_prod/css.ts +3 -0
  363. package/entry/rsc_prod/index.ts +3 -0
  364. package/entry/rsc_prod/jsx_dev_runtime.ts +3 -0
  365. package/entry/rsc_prod/jsx_runtime.ts +3 -0
  366. package/entry/rsc_prod/runtime.ts +12 -0
  367. package/entry/rsc_prod/server.ts +13 -0
  368. package/entry/shared/config.ts +5 -0
  369. package/entry/shared/dev.ts +19 -0
  370. package/entry/shared/prod.ts +4 -0
  371. package/index.ts +36 -0
  372. package/jsx/extracted/jsx_dev_runtime.ts +11 -0
  373. package/jsx/extracted/jsx_runtime.ts +12 -0
  374. package/jsx/rsc/jsx_dev_runtime.ts +11 -0
  375. package/jsx/rsc/jsx_runtime.ts +12 -0
  376. package/jsx/rsc_extracted/jsx_dev_runtime.ts +2 -0
  377. package/jsx/rsc_extracted/jsx_runtime.ts +2 -0
  378. package/jsx/runtime/jsx_dev_runtime.ts +11 -0
  379. package/jsx/runtime/jsx_runtime.ts +12 -0
  380. package/jsx/types.ts +8 -0
  381. package/jsx/utils.ts +59 -0
  382. package/package.json +298 -0
  383. package/plugin/bundler/farm/index.ts +1 -0
  384. package/plugin/bundler/farm/plugin.ts +320 -0
  385. package/plugin/bundler/parcel/config.json +19 -0
  386. package/plugin/bundler/parcel/index.ts +1 -0
  387. package/plugin/bundler/parcel/optimizer.ts +36 -0
  388. package/plugin/bundler/parcel/plugin.ts +4 -0
  389. package/plugin/bundler/parcel/resolver.ts +36 -0
  390. package/plugin/bundler/parcel/runtime.ts +23 -0
  391. package/plugin/bundler/parcel/shared.ts +234 -0
  392. package/plugin/bundler/parcel/transformer.ts +67 -0
  393. package/plugin/bundler/rspack/index.ts +1 -0
  394. package/plugin/bundler/rspack/plugin.ts +14 -0
  395. package/plugin/bundler/vite/index.ts +1 -0
  396. package/plugin/bundler/vite/plugin.ts +133 -0
  397. package/plugin/bundler/vite/state.ts +153 -0
  398. package/plugin/bundler/webpack/index.ts +1 -0
  399. package/plugin/bundler/webpack/loader.ts +19 -0
  400. package/plugin/bundler/webpack/plugin.ts +240 -0
  401. package/plugin/bundler/webpack/shared/index.ts +2 -0
  402. package/plugin/bundler/webpack/shared/loader.ts +155 -0
  403. package/plugin/bundler/webpack/shared/registry.ts +16 -0
  404. package/plugin/bundler/webpack/utils.ts +96 -0
  405. package/plugin/nextjs/constants.ts +7 -0
  406. package/plugin/nextjs/html.ts +62 -0
  407. package/plugin/nextjs/index.ts +2 -0
  408. package/plugin/nextjs/loader.ts +222 -0
  409. package/plugin/nextjs/plugin.ts +532 -0
  410. package/plugin/nextjs/types.ts +33 -0
  411. package/plugin/nextjs/utils.ts +210 -0
  412. package/plugin/utils/cache/css_cache.ts +146 -0
  413. package/plugin/utils/cache/file.ts +40 -0
  414. package/plugin/utils/cache/index.ts +2 -0
  415. package/plugin/utils/compiler.ts +94 -0
  416. package/plugin/utils/constants.ts +7 -0
  417. package/plugin/utils/cssMarker.ts +14 -0
  418. package/plugin/utils/cssOutput.ts +65 -0
  419. package/plugin/utils/filter.ts +98 -0
  420. package/plugin/utils/imports.ts +5 -0
  421. package/plugin/utils/index.ts +10 -0
  422. package/plugin/utils/injection.ts +28 -0
  423. package/plugin/utils/misc.ts +5 -0
  424. package/plugin/utils/runtimeEntry.ts +57 -0
  425. package/plugin/utils/sidecar/index.ts +1 -0
  426. package/plugin/utils/sidecar/server.ts +143 -0
  427. package/plugin/utils/sidecar/sidecar.ts +167 -0
  428. package/plugin/utils/sidecar/utils.ts +109 -0
  429. package/plugin/utils/sourcemap.ts +52 -0
  430. package/plugin/utils/virtual.ts +81 -0
  431. package/runtime/core/cache/combine.ts +102 -0
  432. package/runtime/core/cache/index.ts +5 -0
  433. package/runtime/core/cache/item.ts +231 -0
  434. package/runtime/core/cache/pool.ts +310 -0
  435. package/runtime/core/cache/prop.ts +283 -0
  436. package/runtime/core/cache/propCache.ts +62 -0
  437. package/runtime/core/cache/resolvedItem.ts +31 -0
  438. package/runtime/core/cache/result.ts +115 -0
  439. package/runtime/core/cache/stateItem.ts +208 -0
  440. package/runtime/core/cache/tokenValues.ts +150 -0
  441. package/runtime/core/cache/utils/tree.ts +57 -0
  442. package/runtime/core/cache/utils/walk.ts +24 -0
  443. package/runtime/core/className.ts +101 -0
  444. package/runtime/core/combinedStyle.ts +101 -0
  445. package/runtime/core/createTransformElement.ts +39 -0
  446. package/runtime/core/elementMarker.ts +189 -0
  447. package/runtime/core/elementMarkerData.ts +27 -0
  448. package/runtime/core/getClassName.ts +47 -0
  449. package/runtime/core/getSheetRules.ts +7 -0
  450. package/runtime/core/getToken.ts +14 -0
  451. package/runtime/core/index.ts +5 -0
  452. package/runtime/core/jsx.ts +4 -0
  453. package/runtime/core/resolveClassNameRuntime.ts +33 -0
  454. package/runtime/env.ts +7 -0
  455. package/runtime/extract/getClassName.ts +476 -0
  456. package/runtime/extract/index.ts +4 -0
  457. package/runtime/extract/jsx.ts +55 -0
  458. package/runtime/index.ts +12 -0
  459. package/runtime/rsc/constants.ts +6 -0
  460. package/runtime/rsc/dev.ts +38 -0
  461. package/runtime/rsc/getClassName.ts +98 -0
  462. package/runtime/rsc/index.ts +3 -0
  463. package/runtime/rsc/jsx.ts +4 -0
  464. package/runtime/rsc/observer.ts +238 -0
  465. package/runtime/rsc/styleStore.ts +82 -0
  466. package/runtime/sheet/element.ts +13 -0
  467. package/runtime/sheet/global-noop.ts +13 -0
  468. package/runtime/sheet/global-prod.ts +13 -0
  469. package/runtime/sheet/global.ts +13 -0
  470. package/runtime/sheet/index.ts +3 -0
  471. package/runtime/sheet/insert.ts +37 -0
  472. package/runtime/sheet/rule.ts +77 -0
  473. package/runtime/sheet/rules.ts +131 -0
  474. package/runtime/sheet/theme.ts +34 -0
  475. package/runtime/style/index.ts +3 -0
  476. package/runtime/style/scope.ts +65 -0
  477. package/runtime/style/style.ts +34 -0
  478. package/runtime/style/token.ts +1 -0
  479. package/runtime/types.ts +42 -0
  480. package/selector/assert.ts +131 -0
  481. package/selector/index.ts +5 -0
  482. package/selector/presets/default.ts +27 -0
  483. package/selector/presets/index.ts +3 -0
  484. package/selector/presets/minimal.ts +37 -0
  485. package/selector/presets/selectors.ts +85 -0
  486. package/selector/selector.ts +68 -0
  487. package/selector/types.ts +24 -0
  488. package/selector/validate.ts +91 -0
  489. package/sheet/dev/dev_layer.ts +151 -0
  490. package/sheet/dev/dev_sort.ts +249 -0
  491. package/sheet/dev/index.ts +129 -0
  492. package/sheet/dev/utils.ts +130 -0
  493. package/sheet/index.ts +4 -0
  494. package/sheet/prod.ts +109 -0
  495. package/sheet/sheet.ts +10 -0
  496. package/sheet/sourcemap.ts +70 -0
  497. package/sheet/types.ts +31 -0
  498. package/sheet/utils/dom.ts +71 -0
  499. package/sheet/utils/index.ts +4 -0
  500. package/sheet/utils/layer.ts +14 -0
  501. package/sheet/utils/noop.ts +11 -0
  502. package/sheet/utils/rule.ts +3 -0
  503. package/sheet/utils/sourcemap.ts +221 -0
  504. package/style/index.ts +9 -0
  505. package/style/keyframes.ts +40 -0
  506. package/style/style.ts +112 -0
  507. package/style/theme.ts +36 -0
  508. package/style/token.ts +101 -0
  509. package/style/tokens.ts +64 -0
  510. package/style/transform.ts +9 -0
  511. package/style/types.ts +32 -0
  512. package/style/utils/expose.ts +43 -0
  513. package/style/utils/index.ts +1 -0
  514. package/style/value.ts +103 -0
  515. package/style/valueRef.ts +25 -0
  516. package/utils/global.ts +44 -0
  517. package/utils/hash.ts +22 -0
  518. package/utils/id.ts +20 -0
  519. package/utils/object.ts +87 -0
  520. package/utils/trace.ts +211 -0
  521. package/utils/type.ts +22 -0
@@ -0,0 +1,3 @@
1
+ import { o as LayerPlaceholder } from "../runtime-CYqNCiaM.js";
2
+ import { t as configureStyleRuntime } from "../config-BryWDfQX.js";
3
+ export { LayerPlaceholder, configureStyleRuntime };
@@ -0,0 +1,25 @@
1
+ import { c as globalData, i as CSS_CONFIG, r as getCacheTTL, t as RUNTIME_CONFIG } from "./runtime-CYqNCiaM.js";
2
+ //#region config/build.ts
3
+ const BUILD_CONFIG = globalData("config.build", () => ({ current: null }));
4
+ function setBuildConfig(config) {
5
+ BUILD_CONFIG.current = config;
6
+ RUNTIME_CONFIG.isHoist = config.hoist;
7
+ if (config.css) Object.assign(CSS_CONFIG, config.css);
8
+ }
9
+ //#endregion
10
+ //#region config/configure.ts
11
+ function configureStyleRuntime(options = {}) {
12
+ if (options.css) {
13
+ checkBuildConfig("css");
14
+ Object.assign(CSS_CONFIG, options.css);
15
+ }
16
+ if (options.cacheTTL !== void 0) RUNTIME_CONFIG.runtimeCacheTTL = getCacheTTL(options.cacheTTL);
17
+ }
18
+ function checkBuildConfig(field) {
19
+ if (!BUILD_CONFIG.current) return;
20
+ throw new Error(`Configure "${field}" via plugin options.`);
21
+ }
22
+ //#endregion
23
+ export { setBuildConfig as n, configureStyleRuntime as t };
24
+
25
+ //# sourceMappingURL=config-BryWDfQX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-BryWDfQX.js","names":[],"sources":["../config/build.ts","../config/configure.ts"],"sourcesContent":["import { globalData } from '../utils/global';\nimport type { ReplaceProps } from '../utils/type';\nimport { CSS_CONFIG, type CssConfig } from './config/css';\nimport type { DevRuntimeOptions } from './config/dev';\nimport { RUNTIME_CONFIG } from './config/runtime';\nimport type { CheckSelectorMode } from './types';\n\nexport type BuildCssConfig = Partial<CssConfig>;\n\nexport type BuildDevConfig = ReplaceProps<DevRuntimeOptions, {\n checkSelector?: CheckSelectorMode;\n}>;\n\nexport type BuildConfig = {\n hoist: boolean;\n css: BuildCssConfig;\n};\n\nexport const BUILD_CONFIG = globalData(\n 'config.build',\n () => ({ current: null as BuildConfig | null }),\n);\n\nexport function setBuildConfig(config: BuildConfig) {\n BUILD_CONFIG.current = config;\n\n RUNTIME_CONFIG.isHoist = config.hoist;\n\n if (config.css) {\n Object.assign(CSS_CONFIG, config.css);\n }\n}\n","import { BUILD_CONFIG } from './build';\nimport { CSS_CONFIG, type CssConfig } from './config/css';\nimport { RUNTIME_CONFIG } from './config/runtime';\nimport { getCacheTTL } from './utils';\n\nexport type RuntimeCssOptions = Partial<CssConfig>;\n\nexport type ConfigureStyleRuntimeOptions = {\n css?: RuntimeCssOptions;\n cacheTTL?: boolean | number;\n};\n\nexport function configureStyleRuntime(options: ConfigureStyleRuntimeOptions = {}) {\n if (options.css) {\n checkBuildConfig('css');\n Object.assign(CSS_CONFIG, options.css);\n }\n\n if (options.cacheTTL !== undefined) {\n RUNTIME_CONFIG.runtimeCacheTTL = getCacheTTL(options.cacheTTL);\n }\n}\n\nfunction checkBuildConfig(field: string) {\n if (!BUILD_CONFIG.current) return;\n\n throw new Error(`Configure \"${field}\" via plugin options.`);\n}\n"],"mappings":";;AAkBA,MAAa,eAAe,WAC1B,uBACO,EAAE,SAAS,KAA2B,EAC/C;AAEA,SAAgB,eAAe,QAAqB;CAClD,aAAa,UAAU;CAEvB,eAAe,UAAU,OAAO;CAEhC,IAAI,OAAO,KACT,OAAO,OAAO,YAAY,OAAO,GAAG;AAExC;;;ACnBA,SAAgB,sBAAsB,UAAwC,CAAC,GAAG;CAChF,IAAI,QAAQ,KAAK;EACf,iBAAiB,KAAK;EACtB,OAAO,OAAO,YAAY,QAAQ,GAAG;CACvC;CAEA,IAAI,QAAQ,aAAa,KAAA,GACvB,eAAe,kBAAkB,YAAY,QAAQ,QAAQ;AAEjE;AAEA,SAAS,iBAAiB,OAAe;CACvC,IAAI,CAAC,aAAa,SAAS;CAE3B,MAAM,IAAI,MAAM,cAAc,MAAM,sBAAsB;AAC5D"}
@@ -0,0 +1 @@
1
+ import "./token-u_tM-mtg.js";
@@ -0,0 +1,6 @@
1
+ import { f as RUNTIME_CONFIG } from "./token-u_tM-mtg.js";
2
+ //#region entry/rsc_prod/config.ts
3
+ RUNTIME_CONFIG.isRSC = true;
4
+ //#endregion
5
+
6
+ //# sourceMappingURL=config-Di2VYYKV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-Di2VYYKV.js","names":[],"sources":["../entry/rsc_prod/config.ts"],"sourcesContent":["import { RUNTIME_CONFIG } from '../../config/config/runtime';\n\nimport '../shared/config';\nimport '../shared/prod';\n\nRUNTIME_CONFIG.isRSC = true;\n"],"mappings":";;AAKA,eAAe,QAAQ"}
@@ -0,0 +1,13 @@
1
+ import { n as SIDECAR_URL_GLOBAL_SYMBOL, t as RUNTIME_CONFIG } from "./runtime-CYqNCiaM.js";
2
+ import { n as setBuildConfig } from "./config-BryWDfQX.js";
3
+ import { r as setBuildDevConfig, s as set } from "./dev-DfBbuLeE.js";
4
+ //#region entry/shared/config.ts
5
+ setBuildConfig(JSON.parse(FLUENTIC_STYLE_BUILD_CONFIG));
6
+ //#endregion
7
+ //#region entry/shared/dev.ts
8
+ set(globalThis, Symbol.for(SIDECAR_URL_GLOBAL_SYMBOL), FLUENTIC_STYLE_SIDECAR_SERVER_URL || "");
9
+ setBuildDevConfig(JSON.parse(FLUENTIC_STYLE_DEV_CONFIG));
10
+ RUNTIME_CONFIG.isPlugin = true;
11
+ //#endregion
12
+
13
+ //# sourceMappingURL=config-DloHOG6I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-DloHOG6I.js","names":[],"sources":["../entry/shared/config.ts","../entry/shared/dev.ts"],"sourcesContent":["import { setBuildConfig } from '../../config/build';\n\ndeclare const FLUENTIC_STYLE_BUILD_CONFIG: string;\n\nsetBuildConfig(JSON.parse(FLUENTIC_STYLE_BUILD_CONFIG));\n","import { setBuildDevConfig } from '../../config/config/dev';\nimport { RUNTIME_CONFIG } from '../../config/config/runtime';\nimport { SIDECAR_URL_GLOBAL_SYMBOL } from '../../config/utils';\nimport { set } from '../../utils/object';\n\ndeclare const FLUENTIC_STYLE_SIDECAR_SERVER_URL: string;\ndeclare const FLUENTIC_STYLE_DEV_CONFIG: string;\n\nset(\n globalThis,\n Symbol.for(SIDECAR_URL_GLOBAL_SYMBOL),\n FLUENTIC_STYLE_SIDECAR_SERVER_URL || '',\n);\n\nsetBuildDevConfig(\n JSON.parse(FLUENTIC_STYLE_DEV_CONFIG),\n);\n\nRUNTIME_CONFIG.isPlugin = true;\n"],"mappings":";;;;AAIA,eAAe,KAAK,MAAM,2BAA2B,CAAC;;;ACItD,IACE,YACA,OAAO,IAAI,yBAAyB,GACpC,qCAAqC,EACvC;AAEA,kBACE,KAAK,MAAM,yBAAyB,CACtC;AAEA,eAAe,WAAW"}
@@ -0,0 +1,243 @@
1
+ import { D as createNameFormatter, G as globalData, K as symbol, h as isStyleTokenData, j as getIdentifierSafeHash, o as getTokenVar, p as getStyleTokenId, r as getCssPropertyName, t as getCssPropertyValue, z as CSS_CONFIG } from "./value-BR4e2MKt.js";
2
+ import { t as CSS_EXTRA_CONFIG } from "./css_extra-oIi3UEPK.js";
3
+ //#region atomic/atRule/utils.ts
4
+ function createAtRuleNameFormatter(defaultFormat, prefix) {
5
+ const formatter = createNameFormatter(["name"]);
6
+ return (format, id, info) => {
7
+ const hash = getIdentifierSafeHash(id);
8
+ const name = formatter(format || defaultFormat, hash, info);
9
+ if (!prefix) return name;
10
+ return name.startsWith(prefix) ? name : prefix + name;
11
+ };
12
+ }
13
+ function buildNamedAtRuleCss(atRule, name, descriptors, tokens, tokenLookup, tokenNameFormat) {
14
+ return `@${atRule} ${name} {${buildAtRuleDeclarationCss(descriptors, tokens, tokenLookup, tokenNameFormat, true)}}`;
15
+ }
16
+ function buildAtRuleDeclarationCss(style, tokens, tokenLookup, tokenNameFormat, rawValue, shouldInclude) {
17
+ let css = "";
18
+ for (const property in style) {
19
+ if (shouldInclude && !shouldInclude(property)) continue;
20
+ let value = style[property];
21
+ if (Array.isArray(value) && value.length === 2 && typeof value[0] === "number") value = value[1];
22
+ if (isStyleTokenData(value)) {
23
+ const tokenId = getStyleTokenId(value);
24
+ if (!tokenLookup.has(tokenId)) {
25
+ tokenLookup.add(tokenId);
26
+ tokens.push(value);
27
+ }
28
+ css += `${getCssPropertyName(property)}: ${getTokenVar(value, tokenNameFormat)};`;
29
+ continue;
30
+ }
31
+ const valueString = String(value ?? "");
32
+ css += `${getCssPropertyName(property)}: ${rawValue ? valueString : getCssPropertyValue(property, valueString)};`;
33
+ }
34
+ return css;
35
+ }
36
+ //#endregion
37
+ //#region atomic/atRule/counterStyle.ts
38
+ const COUNTER_STYLE_AT_RULE = "counter-style";
39
+ const formatCounterStyleName = createAtRuleNameFormatter("counter-style[-(name)]-$hash");
40
+ function buildCounterStyleCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
41
+ name = formatCounterStyleName(format, id, { name });
42
+ const css = buildNamedAtRuleCss(COUNTER_STYLE_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
43
+ return {
44
+ name,
45
+ css
46
+ };
47
+ }
48
+ //#endregion
49
+ //#region utils/id.ts
50
+ function createIdCounter(name) {
51
+ return globalData("idCounter." + name, () => ({ value: 0 }));
52
+ }
53
+ function getId(idCounter, stableId) {
54
+ return stableId || {
55
+ name: null,
56
+ id: String(idCounter.value++)
57
+ };
58
+ }
59
+ //#endregion
60
+ //#region style/valueRef.ts
61
+ const AT_RULE_REF = symbol("atRule.ref");
62
+ function createAtRuleRef(data) {
63
+ return {
64
+ [AT_RULE_REF]: true,
65
+ ...data
66
+ };
67
+ }
68
+ function isAtRuleRef(value) {
69
+ return !!value && typeof value === "object" && value[AT_RULE_REF] === true;
70
+ }
71
+ //#endregion
72
+ //#region css/utils.ts
73
+ function createNamedAtRuleRef(config) {
74
+ const { id, name } = getId(config.idCounter, config.stableId || null);
75
+ const tokens = [];
76
+ const tokenLookup = /* @__PURE__ */ new Set();
77
+ const css = config.buildCss(config.format || null, name, id, config.value, tokens, tokenLookup, CSS_CONFIG.tokenNameFormat || null);
78
+ return createAtRuleRef({
79
+ key: css.name,
80
+ value: css.name,
81
+ css: css.css,
82
+ tokens: tokens.length ? tokens : void 0
83
+ });
84
+ }
85
+ //#endregion
86
+ //#region css/counterStyle.ts
87
+ const idCounter$5 = createIdCounter("counterStyle");
88
+ function createCounterStyle(descriptors, stableId) {
89
+ return createNamedAtRuleRef({
90
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.counterStyle,
91
+ buildCss: buildCounterStyleCss,
92
+ value: descriptors,
93
+ idCounter: idCounter$5,
94
+ stableId
95
+ });
96
+ }
97
+ //#endregion
98
+ //#region atomic/atRule/fontFace.ts
99
+ const FONT_FACE_AT_RULE = "font-face";
100
+ const formatFontFaceName = createAtRuleNameFormatter("font[-(name)]-$hash");
101
+ function buildFontFaceCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
102
+ name = formatFontFaceName(format, id, { name });
103
+ let css = buildAtRuleDeclarationCss(descriptors, tokens, tokenLookup, tokenNameFormat, true, (property) => property !== "fontFamily");
104
+ css = `@${FONT_FACE_AT_RULE} { font-family: ${name}; ${css} }`;
105
+ return {
106
+ name,
107
+ css
108
+ };
109
+ }
110
+ //#endregion
111
+ //#region atomic/atRule/fontSrc.ts
112
+ function fontSrc(url, format) {
113
+ if (typeof url !== "string") throw new Error("fontSrc url must be a static string");
114
+ const src = `url("${escapeFontSrcPart(url)}")`;
115
+ return format ? `${src} format("${escapeFontSrcPart(format)}")` : src;
116
+ }
117
+ function escapeFontSrcPart(value) {
118
+ return value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
119
+ }
120
+ //#endregion
121
+ //#region css/fontFace.ts
122
+ const idCounter$4 = createIdCounter("fontFace");
123
+ function createFontFace(descriptors, stableId) {
124
+ if (typeof descriptors.src !== "string") throw new Error("createFontFace \"src\" must be a static string");
125
+ return createNamedAtRuleRef({
126
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.fontFace,
127
+ buildCss: buildFontFaceCss,
128
+ value: descriptors,
129
+ idCounter: idCounter$4,
130
+ stableId
131
+ });
132
+ }
133
+ //#endregion
134
+ //#region atomic/atRule/fontPaletteValues.ts
135
+ const FONT_PALETTE_VALUES_AT_RULE = "font-palette-values";
136
+ const formatFontPaletteValuesName = createAtRuleNameFormatter("font-palettle[-(name)]-$hash", "--");
137
+ function buildFontPaletteValuesCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
138
+ name = formatFontPaletteValuesName(format, id, { name });
139
+ const css = buildNamedAtRuleCss(FONT_PALETTE_VALUES_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
140
+ return {
141
+ name,
142
+ css
143
+ };
144
+ }
145
+ //#endregion
146
+ //#region css/fontPaletteValues.ts
147
+ const idCounter$3 = createIdCounter("fontPaletteValues");
148
+ function createFontPaletteValues(descriptors, stableId) {
149
+ return createNamedAtRuleRef({
150
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.fontPaletteValues,
151
+ buildCss: buildFontPaletteValuesCss,
152
+ value: descriptors,
153
+ idCounter: idCounter$3,
154
+ stableId
155
+ });
156
+ }
157
+ //#endregion
158
+ //#region atomic/atRule/keyframes.ts
159
+ const KEYFRAMES_AT_RULE = "keyframes";
160
+ const formatKeyFramesName = createAtRuleNameFormatter("keyframes[-(name)]-$hash");
161
+ function buildKeyframesCss(format, name, id, frames, tokens, tokenLookup, tokenNameFormat) {
162
+ name = formatKeyFramesName(format, id, { name });
163
+ let css = `@${KEYFRAMES_AT_RULE} ${name} {`;
164
+ for (const selector in frames) {
165
+ const frame = frames[selector];
166
+ if (!frame) continue;
167
+ css += selector + "{";
168
+ css += buildAtRuleDeclarationCss(frame, tokens, tokenLookup, tokenNameFormat, false);
169
+ css += "}";
170
+ }
171
+ css += "}";
172
+ return {
173
+ name,
174
+ css
175
+ };
176
+ }
177
+ //#endregion
178
+ //#region css/keyframes.ts
179
+ const idCounter$2 = createIdCounter("keyframes");
180
+ function createKeyframes(frames, stableId) {
181
+ return createNamedAtRuleRef({
182
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.keyframes,
183
+ buildCss: buildKeyframesCss,
184
+ value: frames,
185
+ idCounter: idCounter$2,
186
+ stableId
187
+ });
188
+ }
189
+ //#endregion
190
+ //#region atomic/atRule/positionTry.ts
191
+ const POSITION_TRY_AT_RULE = "position-try";
192
+ const formatPositionTryName = createAtRuleNameFormatter("position-try[-(name)]-$hash", "--");
193
+ function buildPositionTryCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
194
+ name = formatPositionTryName(format, id, { name });
195
+ const css = buildNamedAtRuleCss(POSITION_TRY_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat);
196
+ return {
197
+ name,
198
+ css
199
+ };
200
+ }
201
+ //#endregion
202
+ //#region css/positionTry.ts
203
+ const idCounter$1 = createIdCounter("positionTry");
204
+ function createPositionTry(descriptors, stableId) {
205
+ return createNamedAtRuleRef({
206
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.positionTry,
207
+ buildCss: buildPositionTryCss,
208
+ value: descriptors,
209
+ idCounter: idCounter$1,
210
+ stableId
211
+ });
212
+ }
213
+ //#endregion
214
+ //#region atomic/atRule/property.ts
215
+ const PROPERTY_AT_RULE = "property";
216
+ const formatPropertyName = createAtRuleNameFormatter("[-(name)]-$hash", "--");
217
+ function buildPropertyCss(format, name, id, descriptors, tokens, tokenLookup, tokenNameFormat) {
218
+ name = formatPropertyName(format, id, { name });
219
+ return {
220
+ css: buildNamedAtRuleCss(PROPERTY_AT_RULE, name, descriptors, tokens, tokenLookup, tokenNameFormat),
221
+ name
222
+ };
223
+ }
224
+ //#endregion
225
+ //#region css/property.ts
226
+ const idCounter = createIdCounter("property");
227
+ function createProperty(nameOrDescriptors, descriptorsOrStableId) {
228
+ const descriptors = typeof nameOrDescriptors === "string" ? descriptorsOrStableId : nameOrDescriptors;
229
+ return createNamedAtRuleRef({
230
+ idCounter,
231
+ stableId: typeof nameOrDescriptors === "string" ? {
232
+ name: nameOrDescriptors,
233
+ id: nameOrDescriptors
234
+ } : descriptorsOrStableId,
235
+ format: CSS_EXTRA_CONFIG.namedRuleFormat.property,
236
+ value: descriptors,
237
+ buildCss: buildPropertyCss
238
+ });
239
+ }
240
+ //#endregion
241
+ export { createFontFace as a, AT_RULE_REF as c, createIdCounter as d, getId as f, createFontPaletteValues as i, createAtRuleRef as l, createPositionTry as n, fontSrc as o, createKeyframes as r, createCounterStyle as s, createProperty as t, isAtRuleRef as u };
242
+
243
+ //# sourceMappingURL=css-BowBszUt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-BowBszUt.js","names":["idCounter","idCounter","idCounter","idCounter","idCounter"],"sources":["../atomic/atRule/utils.ts","../atomic/atRule/counterStyle.ts","../utils/id.ts","../style/valueRef.ts","../css/utils.ts","../css/counterStyle.ts","../atomic/atRule/fontFace.ts","../atomic/atRule/fontSrc.ts","../css/fontFace.ts","../atomic/atRule/fontPaletteValues.ts","../css/fontPaletteValues.ts","../atomic/atRule/keyframes.ts","../css/keyframes.ts","../atomic/atRule/positionTry.ts","../css/positionTry.ts","../atomic/atRule/property.ts","../css/property.ts"],"sourcesContent":["import { type NamedAtRuleFormat, type NamedAtRuleInfo, type TokenNameFormat } from '../../config/types';\nimport { getStyleTokenId, isStyleTokenData, type StyleTokenData } from '../../style/token';\nimport { getCssPropertyName } from '../property';\nimport { getTokenVar } from '../token';\nimport { getIdentifierSafeHash } from '../utils/css';\nimport { createNameFormatter } from '../utils/format';\nimport { getCssPropertyValue } from '../value';\n\nexport function createAtRuleNameFormatter(defaultFormat: NamedAtRuleFormat, prefix?: string) {\n const formatter = createNameFormatter<NamedAtRuleInfo>(['name']);\n\n return (\n format: NamedAtRuleFormat | null,\n id: string,\n info: NamedAtRuleInfo,\n ) => {\n const hash = getIdentifierSafeHash(id);\n const name = formatter(format || defaultFormat, hash, info);\n\n if (!prefix) return name;\n\n return name.startsWith(prefix) ? name : prefix + name;\n };\n}\n\nexport function buildNamedAtRuleCss(\n atRule: string,\n name: string,\n descriptors: object,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n return `@${atRule} ${name} {${\n buildAtRuleDeclarationCss(\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n true,\n )\n }}`;\n}\n\nexport function buildAtRuleDeclarationCss(\n style: Record<string, any>,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n rawValue: boolean,\n shouldInclude?: (property: string) => boolean,\n) {\n let css = '';\n\n for (const property in style) {\n if (shouldInclude && !shouldInclude(property)) continue;\n\n let value = style[property];\n\n if (Array.isArray(value) && value.length === 2 && typeof value[0] === 'number') {\n value = value[1];\n }\n\n if (isStyleTokenData(value)) {\n const tokenId = getStyleTokenId(value);\n if (!tokenLookup.has(tokenId)) {\n tokenLookup.add(tokenId);\n tokens.push(value);\n }\n\n css += `${getCssPropertyName(property)}: ${getTokenVar(value, tokenNameFormat)};`;\n continue;\n }\n\n const valueString = String(value ?? '');\n\n css += `${getCssPropertyName(property)}: ${rawValue ? valueString : getCssPropertyValue(property, valueString)};`;\n }\n\n return css;\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type CounterStyleObject = CSS.AtRule.CounterStyle;\n\nexport const COUNTER_STYLE_AT_RULE = 'counter-style';\n\nexport const formatCounterStyleName = createAtRuleNameFormatter(\n 'counter-style[-(name)]-$hash',\n);\n\nexport function buildCounterStyleCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: CounterStyleObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatCounterStyleName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n COUNTER_STYLE_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { globalData } from './global';\n\nexport type StableId = {\n name: string | null;\n id: string;\n};\n\nexport type IdCounter = { value: number; };\n\nexport function createIdCounter(name: string) {\n return globalData('idCounter.' + name, () => ({ value: 0 }));\n}\n\nexport function resetIdCounter(idCounter: IdCounter) {\n idCounter.value = 0;\n}\n\nexport function getId(idCounter: IdCounter, stableId: StableId | null): StableId {\n return stableId || { name: null, id: String(idCounter.value++) };\n}\n","import { symbol } from '../utils/global';\nimport type { StyleTokenData } from './token';\n\nexport const AT_RULE_REF: unique symbol = symbol('atRule.ref');\n\nexport type AtRuleRefData = {\n key: string;\n value: string;\n css: string | null;\n tokens?: readonly StyleTokenData[];\n};\n\nexport type AtRuleRef = AtRuleRefData & {\n [AT_RULE_REF]: true;\n};\n\nexport function createAtRuleRef(data: AtRuleRefData): AtRuleRef {\n return { [AT_RULE_REF]: true, ...data };\n}\n\nexport function isAtRuleRef(value: unknown): value is AtRuleRef {\n return !!value &&\n typeof value === 'object' &&\n (value as AtRuleRef)[AT_RULE_REF] === true;\n}\n","import { CSS_CONFIG } from '../config/config/css';\nimport type { NamedAtRuleFormat, TokenNameFormat } from '../config/types';\nimport type { StyleTokenData } from '../style/token';\nimport { type AtRuleRef, createAtRuleRef } from '../style/valueRef';\nimport { getId, type IdCounter, type StableId } from '../utils/id';\n\nexport type StableIdInput = StableId;\n\nexport type BuiltAtRuleCss = {\n name: string;\n css: string;\n};\n\nexport type BuildNamedAtRuleCss<Value> = (\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n value: Value,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) => BuiltAtRuleCss;\n\ntype CreateNamedAtRuleRefConfig<Value> = {\n format: NamedAtRuleFormat | null | undefined;\n value: Value;\n buildCss: BuildNamedAtRuleCss<Value>;\n idCounter: IdCounter;\n stableId: StableId | null | undefined;\n};\n\nexport function createNamedAtRuleRef<Value>(\n config: CreateNamedAtRuleRefConfig<Value>,\n): AtRuleRef {\n const { id, name } = getId(config.idCounter, config.stableId || null);\n\n const tokens: StyleTokenData[] = [];\n const tokenLookup = new Set<string>();\n\n const css = config.buildCss(\n config.format || null,\n name,\n id,\n config.value,\n tokens,\n tokenLookup,\n CSS_CONFIG.tokenNameFormat || null,\n );\n\n return createAtRuleRef({\n key: css.name,\n value: css.name,\n css: css.css,\n tokens: tokens.length ? tokens : undefined,\n });\n}\n","import { buildCounterStyleCss, type CounterStyleObject } from '../atomic/atRule/counterStyle';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { CounterStyleObject };\n\nconst idCounter = createIdCounter('counterStyle');\n\nexport function createCounterStyle(descriptors: CounterStyleObject): AtRuleRef;\nexport function createCounterStyle(descriptors: CounterStyleObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.counterStyle,\n buildCss: buildCounterStyleCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildAtRuleDeclarationCss, createAtRuleNameFormatter } from './utils';\n\nexport type FontFaceObject = CSS.AtRule.FontFace;\n\nexport const FONT_FACE_AT_RULE = 'font-face';\n\nexport const formatFontFaceName = createAtRuleNameFormatter(\n 'font[-(name)]-$hash',\n);\n\nexport function buildFontFaceCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: FontFaceObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatFontFaceName(format, id, { name });\n\n let css = buildAtRuleDeclarationCss(\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n true,\n (property) => property !== 'fontFamily',\n );\n\n css = `@${FONT_FACE_AT_RULE} { font-family: ${name}; ${css} }`;\n\n return { name, css };\n}\n","export function fontSrc(url: string, format?: string) {\n if (typeof url !== 'string') {\n throw new Error('fontSrc url must be a static string');\n }\n\n const src = `url(\"${escapeFontSrcPart(url)}\")`;\n\n return format ? `${src} format(\"${escapeFontSrcPart(format)}\")` : src;\n}\n\nfunction escapeFontSrcPart(value: string) {\n return value.replace(/\\\\/g, '\\\\\\\\').replace(/\"/g, '\\\\\"');\n}\n","import { buildFontFaceCss, type FontFaceObject } from '../atomic/atRule/fontFace';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport { fontSrc } from '../atomic/atRule/fontSrc';\nexport type { FontFaceObject };\n\nconst idCounter = createIdCounter('fontFace');\n\nexport function createFontFace(descriptors: FontFaceObject): AtRuleRef;\nexport function createFontFace(descriptors: FontFaceObject, stableId?: StableId): AtRuleRef {\n if (typeof descriptors.src !== 'string') {\n throw new Error('createFontFace \"src\" must be a static string');\n }\n\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.fontFace,\n buildCss: buildFontFaceCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSS } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type FontPaletteValuesObject = CSS.AtRule.FontPaletteValues;\n\nexport const FONT_PALETTE_VALUES_AT_RULE = 'font-palette-values';\n\nexport const formatFontPaletteValuesName = createAtRuleNameFormatter(\n 'font-palettle[-(name)]-$hash',\n '--',\n);\n\nexport function buildFontPaletteValuesCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: FontPaletteValuesObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatFontPaletteValuesName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n FONT_PALETTE_VALUES_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { buildFontPaletteValuesCss, type FontPaletteValuesObject } from '../atomic/atRule/fontPaletteValues';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { FontPaletteValuesObject };\n\nconst idCounter = createIdCounter('fontPaletteValues');\n\nexport function createFontPaletteValues(descriptors: FontPaletteValuesObject): AtRuleRef;\nexport function createFontPaletteValues(descriptors: FontPaletteValuesObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.fontPaletteValues,\n buildCss: buildFontPaletteValuesCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport type { AtRuleStyleObject, CSSProperties } from '../../style/types';\nimport { buildAtRuleDeclarationCss, createAtRuleNameFormatter } from './utils';\n\nexport type KeyframeSelector = 'from' | 'to' | `${number}%` | (string & {});\n\nexport type KeyframesObject<Style = CSSProperties> = {\n [Selector in KeyframeSelector]?: AtRuleStyleObject<Style>;\n};\n\nexport const KEYFRAMES_AT_RULE = 'keyframes';\n\nexport const formatKeyFramesName = createAtRuleNameFormatter(\n 'keyframes[-(name)]-$hash',\n);\n\nexport function buildKeyframesCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n frames: KeyframesObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatKeyFramesName(format, id, { name });\n\n let css = `@${KEYFRAMES_AT_RULE} ${name} {`;\n\n for (const selector in frames) {\n const frame = frames[selector];\n if (!frame) continue;\n\n css += selector + '{';\n css += buildAtRuleDeclarationCss(frame, tokens, tokenLookup, tokenNameFormat, false);\n css += '}';\n }\n\n css += '}';\n\n return { name, css };\n}\n","import { buildKeyframesCss, type KeyframesObject } from '../atomic/atRule/keyframes';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { KeyframesObject };\n\nconst idCounter = createIdCounter('keyframes');\n\nexport function createKeyframes(frames: KeyframesObject): AtRuleRef;\nexport function createKeyframes(frames: KeyframesObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.keyframes,\n buildCss: buildKeyframesCss,\n value: frames,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { AtRuleStyleObject } from '../../style';\nimport type { StyleTokenData } from '../../style/token';\nimport type { CSSProperties } from '../utils/types';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\ntype Properties = Pick<\n CSSProperties,\n | 'positionArea'\n | 'insetArea'\n | 'top'\n | 'right'\n | 'bottom'\n | 'left'\n | 'inset'\n | 'insetBlock'\n | 'insetBlockStart'\n | 'insetBlockEnd'\n | 'insetInline'\n | 'insetInlineStart'\n | 'insetInlineEnd'\n | 'width'\n | 'minWidth'\n | 'maxWidth'\n | 'height'\n | 'minHeight'\n | 'maxHeight'\n | 'blockSize'\n | 'minBlockSize'\n | 'maxBlockSize'\n | 'inlineSize'\n | 'minInlineSize'\n | 'maxInlineSize'\n | 'margin'\n | 'marginBlock'\n | 'marginBlockStart'\n | 'marginBlockEnd'\n | 'marginInline'\n | 'marginInlineStart'\n | 'marginInlineEnd'\n>;\n\nexport type PositionTryObject = AtRuleStyleObject<Properties>;\n\nexport const POSITION_TRY_AT_RULE = 'position-try';\n\nexport const formatPositionTryName = createAtRuleNameFormatter(\n 'position-try[-(name)]-$hash',\n '--',\n);\n\nexport function buildPositionTryCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: PositionTryObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatPositionTryName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n POSITION_TRY_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { name, css };\n}\n","import { buildPositionTryCss, type PositionTryObject } from '../atomic/atRule/positionTry';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { PositionTryObject };\n\nconst idCounter = createIdCounter('positionTry');\n\nexport function createPositionTry(descriptors: PositionTryObject): AtRuleRef;\nexport function createPositionTry(descriptors: PositionTryObject, stableId?: StableId): AtRuleRef {\n return createNamedAtRuleRef({\n format: CSS_EXTRA_CONFIG.namedRuleFormat.positionTry,\n buildCss: buildPositionTryCss,\n value: descriptors,\n idCounter,\n stableId,\n });\n}\n","import type { NamedAtRuleFormat, TokenNameFormat } from '../../config/types';\nimport type { StyleTokenData } from '../../style/token';\nimport { buildNamedAtRuleCss, createAtRuleNameFormatter } from './utils';\n\nexport type PropertyObject = {\n syntax: string;\n inherits: boolean;\n initialValue: string | number;\n};\n\nexport const PROPERTY_AT_RULE = 'property';\n\nexport const formatPropertyName = createAtRuleNameFormatter(\n '[-(name)]-$hash',\n '--',\n);\n\nexport function buildPropertyCss(\n format: NamedAtRuleFormat | null,\n name: string | null,\n id: string,\n descriptors: PropertyObject,\n tokens: StyleTokenData[],\n tokenLookup: Set<string>,\n tokenNameFormat: TokenNameFormat | null,\n) {\n name = formatPropertyName(format, id, { name });\n\n const css = buildNamedAtRuleCss(\n PROPERTY_AT_RULE,\n name,\n descriptors,\n tokens,\n tokenLookup,\n tokenNameFormat,\n );\n\n return { css, name };\n}\n","import { buildPropertyCss, type PropertyObject } from '../atomic/atRule/property';\nimport { CSS_EXTRA_CONFIG } from '../config/config/css_extra';\nimport type { AtRuleRef } from '../style/valueRef';\nimport { createIdCounter, type StableId } from '../utils/id';\nimport { createNamedAtRuleRef } from './utils';\n\nexport type { PropertyObject };\n\nconst idCounter = createIdCounter('property');\n\nexport function createProperty(descriptors: PropertyObject): AtRuleRef;\nexport function createProperty(descriptors: PropertyObject, stableId?: StableId): AtRuleRef;\nexport function createProperty(name: string, descriptors: PropertyObject): AtRuleRef;\nexport function createProperty(\n nameOrDescriptors: string | PropertyObject,\n descriptorsOrStableId?: PropertyObject | StableId,\n): AtRuleRef {\n const descriptors = typeof nameOrDescriptors === 'string'\n ? descriptorsOrStableId as PropertyObject\n : nameOrDescriptors;\n const stableId = typeof nameOrDescriptors === 'string'\n ? { name: nameOrDescriptors, id: nameOrDescriptors }\n : descriptorsOrStableId as StableId | undefined;\n\n return createNamedAtRuleRef({\n idCounter,\n stableId,\n format: CSS_EXTRA_CONFIG.namedRuleFormat.property,\n value: descriptors,\n buildCss: buildPropertyCss,\n });\n}\n"],"mappings":";;;AAQA,SAAgB,0BAA0B,eAAkC,QAAiB;CAC3F,MAAM,YAAY,oBAAqC,CAAC,MAAM,CAAC;CAE/D,QACE,QACA,IACA,SACG;EACH,MAAM,OAAO,sBAAsB,EAAE;EACrC,MAAM,OAAO,UAAU,UAAU,eAAe,MAAM,IAAI;EAE1D,IAAI,CAAC,QAAQ,OAAO;EAEpB,OAAO,KAAK,WAAW,MAAM,IAAI,OAAO,SAAS;CACnD;AACF;AAEA,SAAgB,oBACd,QACA,MACA,aACA,QACA,aACA,iBACA;CACA,OAAO,IAAI,OAAO,GAAG,KA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